Since "Motorola Software Update" decided to download Nougat OTA without asking my opinion, I declared a war. But the weapons I use are broken.
Withot su
:
shell@athene:/ $ pm disable com.motorola.ccc.ota
Error: java.lang.SecurityException: Permission Denial: attempt to
change component state from pid=22598, uid=2000, package uid=10009
With su
:
1|shell@athene:/ $ su
root@athene:/ # pm disble com.motorola.ccc.ota
Error: Could not access the Package Manager. Is the system running?
How can I disable this app?
I wouldn't like to rm
the app entirely (if possible), have everything system-less so far. If relevant, I am using Moto G4 with Marshmallow.
pm
doesn't work in it. Superusers have either separate mount namespaces or share it withinit
. I cannot see a way to make systemrw
for unprivileged user. Maybe I miss something? :\adb shell su -c "mount -o remount,rw /system"
and then runpm
, however I am not sure it will work.