Hi people!
Now that we have temporary roots (like GerdaRoot or my adbroot-script) we can uninstall pre-installed apps without loosing ota-updates...
Because: all apps are installed on the /data-partition - even the pre-installed.
(the app-copies on /system are only the 'installation-media'...)
So the simpliest way to get rid of unwanted apps (in my opinion) is:
-- get temporary root:
-- now:
adb pull /data/local/webapps/webapps.json
--- open webapps.json with a 'not-to-stupid' text-editor (on Linux nearly everything will do - on Windows you can use Notepadd++)
--- It should be an editor which preserve the line-endings.
--- now for every app you might want to uninstall, change the field/line
adb push webapps.json /data/local/tmp
---> we now have a modded copy of webapps.json on device's temp-folder...
-- now to replace the 'real' one:
adb shell
cd /data/local/webapps
cp webapps.json webapps.json_bak
rm webapps.json && cp /data/local/tmp/webapps.json . && chmod 600 webapps.json && chown root:root webapps.json
-- now check permissions
should respond with something like
-rw------- root root 57563 2019-03-23 15:58 webapps.json
(date and time may differ - but the '
-rw------- root root' - part needs to be exact!)
---> if so, and no errors until this point, you may
adb reboot
After the reboot the apps are still there --- but the 'options'-menu of the app-drawer now allows you to uninstall them in a clean way like any other app...
Because we didn't modified the system-partion:
-- ota-updates are not prevented
-- pre-installed apps will re-install on factory-reset
But until factory-reset the apps are gone and the space on /data is freed.
happy hacking,
speeduploop