Android: how to uninstall stock app

Example for Android 9.0 .

Get the app name from Settings->Apps & Notifications-><app you want to remove>->Advanced

In my case it was com.google.android.Pixel2Mod

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

adb shell
su
pm uninstall -k --user 0 <app 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"

NextCloud: remove “Get your own free account” share URL

Add this in /path/to/nextcloud/config/config.php:

 'simpleSignUpLink.shown' => false,

On Ubuntu we need to edit with www-data user rights:

sudo -u www-data nano config.php

WordPress Themes