Skip to content
This repository has been archived by the owner on Jan 27, 2025. It is now read-only.

Fixed issue with installing APK Keyboard. #421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion insomniac/typewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self, device_id):
def set_adb_keyboard(self):
if not self._is_adb_ime_existing():
print("Installing ADB Keyboard to enable typewriting...")
apk_path = os.path.join(os.path.dirname(os.path.abspath(insomniac.__file__)), "assets", ADB_KEYBOARD_APK)
apk_path = os.path.join(os.path.dirname("os.path.abspath(insomniac.__file__)"), "assets", ADB_KEYBOARD_APK)
os.popen("adb" + ("" if self.device_id is None else " -s " + self.device_id)
+ f" install {apk_path}").close()
self.is_adb_keyboard_set = self._set_adb_ime()
Expand Down