
service Управление службами Тип файла: команда usage: service [-h|-?]
service list
service check SERVICE
service call SERVICE CODE [i32 N | i64 N | f N | d N |
s16 STR | null | fd f | nfd n | afd f ] ...
Options:
i32: Write the 32-bit integer N into the send parcel.
i64: Write the 64-bit integer N into the send parcel.
f: Write the 32-bit single-precision number N into the send parcel.
d: Write the 64-bit double-precision number N into the send parcel.
s16: Write the UTF-16 string STR into the send parcel.
null: Write a null binder into the send parcel.
fd: Write a file descriptor for the file f to the send parcel.
nfd: Write file descriptor n to the send parcel.
afd: Write an ashmem file descriptor for a region containing the data
from file f to the send parcel. Комментарии Команда pm uninstall -k --user 0 для удаления приложения может не работать, если для этого приложения установлен запрет uninstall.compatibility.not_adbUninstall В этом случае можно использовать службу. service call package 134 s16 com.android.qqq i32 0 i32 0 Здесь: package - имя службы CODE: 131 s16 com.heytap.browser i32 0 i32 0 134 - номер команды удаления s16 com.qwerty.qqq - записать строку "com.android.qqq" (имя пакета приложения) i32 0 - записать 32-битное целое число 0 |
![]() |