{"content":"Command: TV=192.168.0.110:5555; ADB=~/WorkBuddy/2026-10-23-15-17-57/android-tools/platform-tools/adb\necho \"--- 尝试 pm install-existing (Android 7+ 命令) ---\"\n$ADB -s $TV shell pm install-existing com.mitv.alarmcenter 2>&1 | tr -d '\\r'\necho \"--- 尝试 pm install -r 从原 APK 路径恢复 ---\"\n$ADB -s $TV shell pm install -r \"/data/app/com.mitv.alarmcenter-1/base.apk\" 2>&1 | tr -d '\\r'\necho \"--- 验证 ---\"\n$ADB -s $TV shell pm list packages com.mitv.alarmcenter\nStdout: --- 尝试 pm install-existing (Android 7+ 命令) ---\r\nError: unknown command 'install-existing'\r\nusage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [--user USER_ID] [FILTER]\r\n       pm list permission-groups\r\n       pm list permissions [-g] [-f] [-d] [-u] [GROUP]\r\n       pm list instrumentation [-f] [TARGET-PACKAGE]\r\n       pm list features\r\n       pm list libraries\r\n       pm list users\r\n       pm path PACKAGE\r\n       pm dump PACKAGE\r\n       pm install [-lrtsfd] [-i PACKAGE] [--user USER_ID] [PATH]\r\n       pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES]\r\n               [--install-location 0/1/2]\r\n               [--force-uuid internal|UUID]\r\n       pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH]\r\n       pm install-commit SESSION_ID\r\n       pm install-abandon SESSION_ID\r\n       pm uninstall [-k] [--user USER_ID] PACKAGE\r\n       pm set-installer PACKAGE INSTALLER\r\n       pm move-package PACKAGE [internal|UUID]\r\n       pm move-primary-storage [internal|UUID]\r\n       pm clear [--user USER_ID] PACKAGE\r\n       pm enable [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm hide [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm unhide [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm grant [--user USER_ID] PACKAGE PERMISSION\r\n       pm revoke [--user USER_ID] PACKAGE PERMISSION\r\n       pm reset-permissions\r\n       pm set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined}\r\n       pm get-app-link [--user USER_ID] PACKAGE\r\n       pm set-install-location [0/auto] [1/internal] [2/external]\r\n       pm get-install-location\r\n       pm set-permission-enforced PERMISSION [true|false]\r\n       pm trim-caches DESIRED_FREE_SPACE [internal|UUID]\r\n       pm create-user [--profileOf USER_ID] [--managed] USER_NAME\r\n       pm remove-user USER_ID\r\n       pm get-max-users\r\n\r\npm list packages: prints all packages, optionally only\r\n  those whose package name contains the text in FILTER.  Options:\r\n    -f: see their associated file.\r\n    -d: filter to only show disbled packages.\r\n    -e: filter to only show enabled packages.\r\n    -s: filter to only show system packages.\r\n    -3: filter to only show third party packages.\r\n    -i: see the installer for the packages.\r\n    -u: also include uninstalled packages.\r\n\r\npm list permission-groups: prints all known permission groups.\r\n\r\npm list permissions: prints all known permissions, optionally only\r\n  those in GROUP.  Options:\r\n    -g: organize by group.\r\n    -f: print all information.\r\n    -s: short summary.\r\n    -d: only list dangerous permissions.\r\n    -u: list only the permissions users will see.\r\n\r\npm list instrumentation: use to list all test packages; optionally\r\n  supply <TARGET-PACKAGE> to list the test packages for a particular\r\n  application.  Options:\r\n    -f: list the .apk file for the test package.\r\n\r\npm list features: prints all features of the system.\r\n\r\npm list users: prints all users on the system.\r\n\r\npm path: print the path to the .apk of the given PACKAGE.\r\n\r\npm dump: print system state associated with the given PACKAGE.\r\n\r\npm install: install a single legacy package\r\npm install-create: create an install session\r\n    -l: forward lock application\r\n    -r: replace existing application\r\n    -t: allow test packages\r\n    -i: specify the installer package name\r\n    -s: install application on sdcard\r\n    -f: install application on internal flash\r\n    -d: allow version code downgrade\r\n    -p: partial application install\r\n    -g: grant all runtime permissions\r\n    -S: size in bytes of entire session\r\n\r\npm install-write: write a package into existing session; path may\r\n  be '-' to read from stdin\r\n    -S: size in bytes of package, required for stdin\r\n\r\npm install-commit: perform install of fully staged session\r\npm install-abandon: abandon session\r\n\r\npm set-installer: set installer package name\r\n\r\npm uninstall: removes a package from the system. Options:\r\n    -k: keep the data and cache directories around after package removal.\r\n\r\npm clear: deletes all data associated with a package.\r\n\r\npm enable, disable, disable-user, disable-until-used: these commands\r\n  change the enabled state of a given package or component (written\r\n  as \"package/class\").\r\n\r\npm grant, revoke: these commands either grant or revoke permissions\r\n    to apps. The permissions must be declared as used in the app's\r\n    manifest, be runtime permissions (protection level dangerous),\r\n    and the app targeting SDK greater than Lollipop MR1.\r\n\r\npm reset-permissions: revert all runtime permissions to their default state.\r\n\r\npm get-install-location: returns the current install location.\r\n    0 [auto]: Let system decide the best location\r\n    1 [internal]: Install on internal device storage\r\n    2 [external]: Install on external media\r\n\r\npm set-install-location: changes the default install location.\r\n  NOTE: this is only intended for debugging; using this can cause\r\n  applications to break and other undersireable behavior.\r\n    0 [auto]: Let system decide the best location\r\n    1 [internal]: Install on internal device storage\r\n    2 [external]: Install on external media\r\n\r\npm trim-caches: trim cache files to reach the given free space.\r\n\r\npm create-user: create a new user with the given USER_NAME,\r\n  printing the new user identifier of the user.\r\n\r\npm remove-user: remove the user with the given USER_IDENTIFIER,\r\n  deleting all data associated with that user\r\n\r\n--- 尝试 pm install -r 从原 APK 路径恢复 ---\r\n\tpkg: /data/app/com.mitv.alarmcenter-1/base.apk\r\n\nStderr: (empty)\nExit Code: 137\nSignal: SIGTERM","renderer":{"type":"text","value":"--- 尝试 pm install-existing (Android 7+ 命令) ---\r\nError: unknown command 'install-existing'\r\nusage: pm list packages [-f] [-d] [-e] [-s] [-3] [-i] [-u] [--user USER_ID] [FILTER]\r\n       pm list permission-groups\r\n       pm list permissions [-g] [-f] [-d] [-u] [GROUP]\r\n       pm list instrumentation [-f] [TARGET-PACKAGE]\r\n       pm list features\r\n       pm list libraries\r\n       pm list users\r\n       pm path PACKAGE\r\n       pm dump PACKAGE\r\n       pm install [-lrtsfd] [-i PACKAGE] [--user USER_ID] [PATH]\r\n       pm install-create [-lrtsfdp] [-i PACKAGE] [-S BYTES]\r\n               [--install-location 0/1/2]\r\n               [--force-uuid internal|UUID]\r\n       pm install-write [-S BYTES] SESSION_ID SPLIT_NAME [PATH]\r\n       pm install-commit SESSION_ID\r\n       pm install-abandon SESSION_ID\r\n       pm uninstall [-k] [--user USER_ID] PACKAGE\r\n       pm set-installer PACKAGE INSTALLER\r\n       pm move-package PACKAGE [internal|UUID]\r\n       pm move-primary-storage [internal|UUID]\r\n       pm clear [--user USER_ID] PACKAGE\r\n       pm enable [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable-user [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm disable-until-used [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm hide [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm unhide [--user USER_ID] PACKAGE_OR_COMPONENT\r\n       pm grant [--user USER_ID] PACKAGE PERMISSION\r\n       pm revoke [--user USER_ID] PACKAGE PERMISSION\r\n       pm reset-permissions\r\n       pm set-app-link [--user USER_ID] PACKAGE {always|ask|never|undefined}\r\n       pm get-app-link [--user USER_ID] PACKAGE\r\n       pm set-install-location [0/auto] [1/internal] [2/external]\r\n       pm get-install-location\r\n       pm set-permission-enforced PERMISSION [true|false]\r\n       pm trim-caches DESIRED_FREE_SPACE [internal|UUID]\r\n       pm create-user [--profileOf USER_ID] [--managed] USER_NAME\r\n       pm remove-user USER_ID\r\n       pm get-max-users\r\n\r\npm list packages: prints all packages, optionally only\r\n  those whose package name contains the text in FILTER.  Options:\r\n    -f: see their associated file.\r\n    -d: filter to only show disbled packages.\r\n    -e: filter to only show enabled packages.\r\n    -s: filter to only show system packages.\r\n    -3: filter to only show third party packages.\r\n    -i: see the installer for the packages.\r\n    -u: also include uninstalled packages.\r\n\r\npm list permission-groups: prints all known permission groups.\r\n\r\npm list permissions: prints all known permissions, optionally only\r\n  those in GROUP.  Options:\r\n    -g: organize by group.\r\n    -f: print all information.\r\n    -s: short summary.\r\n    -d: only list dangerous permissions.\r\n    -u: list only the permissions users will see.\r\n\r\npm list instrumentation: use to list all test packages; optionally\r\n  supply <TARGET-PACKAGE> to list the test packages for a particular\r\n  application.  Options:\r\n    -f: list the .apk file for the test package.\r\n\r\npm list features: prints all features of the system.\r\n\r\npm list users: prints all users on the system.\r\n\r\npm path: print the path to the .apk of the given PACKAGE.\r\n\r\npm dump: print system state associated with the given PACKAGE.\r\n\r\npm install: install a single legacy package\r\npm install-create: create an install session\r\n    -l: forward lock application\r\n    -r: replace existing application\r\n    -t: allow test packages\r\n    -i: specify the installer package name\r\n    -s: install application on sdcard\r\n    -f: install application on internal flash\r\n    -d: allow version code downgrade\r\n    -p: partial application install\r\n    -g: grant all runtime permissions\r\n    -S: size in bytes of entire session\r\n\r\npm install-write: write a package into existing session; path may\r\n  be '-' to read from stdin\r\n    -S: size in bytes of package, required for stdin\r\n\r\npm install-commit: perform install of fully staged session\r\npm install-abandon: abandon session\r\n\r\npm set-installer: set installer package name\r\n\r\npm uninstall: removes a package from the system. Options:\r\n    -k: keep the data and cache directories around after package removal.\r\n\r\npm clear: deletes all data associated with a package.\r\n\r\npm enable, disable, disable-user, disable-until-used: these commands\r\n  change the enabled state of a given package or component (written\r\n  as \"package/class\").\r\n\r\npm grant, revoke: these commands either grant or revoke permissions\r\n    to apps. The permissions must be declared as used in the app's\r\n    manifest, be runtime permissions (protection level dangerous),\r\n    and the app targeting SDK greater than Lollipop MR1.\r\n\r\npm reset-permissions: revert all runtime permissions to their default state.\r\n\r\npm get-install-location: returns the current install location.\r\n    0 [auto]: Let system decide the best location\r\n    1 [internal]: Install on internal device storage\r\n    2 [external]: Install on external media\r\n\r\npm set-install-location: changes the default install location.\r\n  NOTE: this is only intended for debugging; using this can cause\r\n  applications to break and other undersireable behavior.\r\n    0 [auto]: Let system decide the best location\r\n    1 [internal]: Install on internal device storage\r\n    2 [external]: Install on external media\r\n\r\npm trim-caches: trim cache files to reach the given free space.\r\n\r\npm create-user: create a new user with the given USER_NAME,\r\n  printing the new user identifier of the user.\r\n\r\npm remove-user: remove the user with the given USER_IDENTIFIER,\r\n  deleting all data associated with that user\r\n\r\n--- 尝试 pm install -r 从原 APK 路径恢复 ---\r\n\tpkg: /data/app/com.mitv.alarmcenter-1/base.apk"}}