Category: Android

Android: how to uninstall stock app

Example for Android 9.0

Connect your phone, be sure ADB is enabled and fire up the ADB shell.

adb shell
su

Get the package name from Settings->Apps & Notifications-><app you want to remove>->Advanced and look at the last line at the bottom.
In my case it was com.google.android.Pixel2Mod. Eventually list the installed packages:

pm list package

then remove it:

pm uninstall -k --user 0 <package-you-want-to-remove>

In my example:

pm uninstall -k --user 0 com.google.android.Pixel2Mod

 


 

Install GApps with ADB Sideload

Your phone has to be rooted and have TWRP installed.

Reboot to recovery

Start Sideload mode (Advanced => ADB Sideload and swipe)
will appear:

Starting ADB sideload feature...

On your computer, install GApps with ADB:

adb sideload <gapps-version.zip>

If you get this error:

adb: sideload connection failed: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: insufficient permissions for device: user in plugdev group; are your udev rules wrong?
See [http://developer.android.com/tools/device.html] for more information

You have to restart the ADB server using sudo (and gain the access to the plugdev grouip)
Stop the running adb server:

adb kill-server

Next step is to start the server again but this time with root privileges:

sudo adb start-server

Then proceed to install GApps, something like this:

adb sideload open_gapps-arm64-9.0-pico-20200205.zip

Android: turn on airplane mode without switching off WiFi

adb shell settings put global airplane_mode_radios "cell"

WordPress Themes