LINUX.ORG.RU

История изменений

Исправление Grapow, (текущая версия) :

Ну я попробовал сделать, как по ссылке: https://android.stackexchange.com/questions/56620/enable-and-disable-system-apps-via-adb и получил следующее:

$ pm list packages -e | grep 'phone'                                                                                                                                                
package:com.miui.phone.carriers.overlay.vodafone
package:com.android.phone.overlay.common
package:com.android.phone
package:com.miui.phone.carriers.overlay.h3g
package:com.qti.phone
$ pm disable com.android.phone

Exception occurred while executing 'disable':
java.lang.SecurityException: Shell cannot change component state for com.android.phone/null to 2
        at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:24497)
        at com.android.server.pm.PackageManagerService.setApplicationEnabledSetting(PackageManagerService.java:24293)
        at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2194)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:240)
        at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at android.os.ShellCommand.exec(ShellCommand.java:38)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:25183)
        at android.os.Binder.shellCommand(Binder.java:953)
        at android.os.Binder.onTransact(Binder.java:837)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8716)
        at android.os.Binder.execTransactInternal(Binder.java:1187)
        at android.os.Binder.execTransact(Binder.java:1146)

Исходная версия Grapow, :

Ну я попробовал сделать, как по ссылке: https://android.stackexchange.com/questions/56620/enable-and-disable-system-apps-via-adb и получил следующее:

$ pm list packages -e | grep 'phone'                                                                                                                                                
package:com.miui.phone.carriers.overlay.vodafone
package:com.android.phone.overlay.common
package:com.android.phone
package:com.miui.phone.carriers.overlay.h3g
package:com.qti.phone
lemon:/ $ pm disable com.android.phone

Exception occurred while executing 'disable':
java.lang.SecurityException: Shell cannot change component state for com.android.phone/null to 2
        at com.android.server.pm.PackageManagerService.setEnabledSetting(PackageManagerService.java:24497)
        at com.android.server.pm.PackageManagerService.setApplicationEnabledSetting(PackageManagerService.java:24293)
        at com.android.server.pm.PackageManagerShellCommand.runSetEnabledSetting(PackageManagerShellCommand.java:2194)
        at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:240)
        at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
        at android.os.ShellCommand.exec(ShellCommand.java:38)
        at com.android.server.pm.PackageManagerService.onShellCommand(PackageManagerService.java:25183)
        at android.os.Binder.shellCommand(Binder.java:953)
        at android.os.Binder.onTransact(Binder.java:837)
        at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4818)
        at com.android.server.pm.PackageManagerService.onTransact(PackageManagerService.java:8716)
        at android.os.Binder.execTransactInternal(Binder.java:1187)
        at android.os.Binder.execTransact(Binder.java:1146)