Install adb so it’s in your path and ensure developer options -> usb debugguing is enabled on your phone.
You might have to accept the connection on your phone if this is the first time doing this.
Now run adb from console
# adb devices
On the first run it should output this
List of devices attached * daemon not running;starting now at tcp:5037 * daemon started successfully
Now run adb devices again and it should look like this
# adb devices
List of devices attached APH0000000000000 device
Now run adb shell
# adb shell
Now you’re in the shell and can remove programs
I’ve found that removing the following doesn’t mess anything up and removes all the huawei stuff i don’t need
# pm uninstall -k --user 0 com.huawei.intelligent # pm uninstall -k --user 0 com.huawei.search # pm uninstall -k --user 0 com.huawei.vassistant # pm uninstall -k --user 0 com.huawei.appmarket # pm uninstall -k --user 0 com.huawei.himovie # pm uninstall -k --user 0 com.android.mediacenter # pm uninstall -k --user 0 com.huawei.synergy # pm uninstall -k --user 0 com.huawei.hidisk # pm uninstall -k --user 0 com.huawei.phoneservice # pm uninstall -k --user 0 com.android.calendar # pm uninstall -k --user 0 com.huawei.browser # pm uninstall -k --user 0 com.huawei.hwireader # pm uninstall -k --user 0 com.huawei.wallet # pm uninstall -k --user 0 com.huawei.powergenie # pm uninstall -k --user 0 com.iflytek.speechsuite # pm uninstall -k --user 0 com.huawei.skytone # pm uninstall -k --user 0 com.huawei.android.findmyphone # pm uninstall -k --user 0 com.huawei.health
Now reboot, and you should be able to swipe left for google, and have all the Huawei bloat removed!
Other Noteworthy Commands:
List all packages
# pm list packages
Find packages
# pm list packages | grep word_youre_looking_for
Don’t uninstall, just disable for current user
# pm disable-user --user 0
# pm enable --user 0
Some Other Notes:
I wanted to remove the stock contacts, but it seems to get rid of the dialer too. Haven’t had time to find a workaround to this yet. So I just put it back on
# pm uninstall -k --user 0 com.android.contacts
# cmd package install-existing com.android.contacts
I also wanted to remove the gallery and just use Google Photos, however, this made it so the gallery didn’t work from the camera app, so I ended up reinstalling this for now.
# pm uninstall -k --user 0 com.android.gallery3d.overlay # pm uninstall -k --user 0 com.android.gallery3d # cmd package install-existing com.android.gallery3d # cmd package install-existing com.android.gallery3d.overlay