[Android Head-Units] mjishnu:
This doesn't requires flashing new firmware or rooting. You don't need a PC or even a USB stick, this uses ADB to remove the apps by using the headunit itself (tested on Allwinner T5 Android 10 using LADB v1.2.4).

Before we start make sure you know the code to factory reset your headunit, in case something goes wrong [common code: "1234" (code for Allwinner T5 headunit)]

Step - 1: Enable developer options

Go to Android Settings and tap on About device or About Car device.

Then tap on Build number seven times.

After tapping seven times, enter the PIN "345543" (for Allwinner T5 headunit), the pin might vary, google and find the pin

Make sure usb debugging is disabled

Step - 2: Install Package Viewer and Notes

1. Open the package viewer and select all the apps that you want to remove then click on the copy button

2. Paste it in the notes app and remove all unwanted details and make a list of package names only

View attachment 5934993

View attachment 5934991

3. Add the command "pm uninstall --user 0" before the package name [eg: com.android.chrome --> pm uninstall --user 0 com.android.chrome]

4. Now choose Save as and save it to downloads folder as "debloat.txt"

View attachment 5935005

5. If you see any of these package you can remove them [its my debloat.txt for Allwinner T5 headunit, download from attachment if you have it]

pm uninstall --user 0 com.google.android.apps.maps
pm uninstall --user 0 com.nwd.android.video.ui
pm uninstall --user 0 com.spotify.music
pm uninstall --user 0 com.netflix.mediaclient
pm uninstall --user 0 com.nwd.carstore.service
pm uninstall --user 0 com.nwd.android.music.ui
pm uninstall --user 0 com.nwd.voice.analyze
pm uninstall --user 0 com.nwd.guidebookskin
pm uninstall --user 0 com.nwd.carad.service
pm uninstall --user 0 com.nwd.weiweiclient
pm uninstall --user 0 com.nwd.mycar
pm uninstall --user 0 com.nwd.can.setting
pm uninstall --user 0 com.allwinnertech.packageoverride
pm uninstall --user 0 com.softwinner.awmanager
pm uninstall --user 0 com.nwd.filemanager
pm uninstall --user 0 com.google.android.youtube
pm uninstall --user 0 com.android.chrome
pm uninstall --user 0 com.android.launcher.theme

1 more systemsetup or something app, i forgot to save its package name

Step - 3: Install LADB [its paid if possible buy it or download alternative]

After you have installed LADB clear all apps from recent menu and restart your head unit [make sure you have saved debloat.txt]

Open the debloat.txt via notes and copy all the commands that we made in step 2 then close notes

Open LADB and when it says waiting, go to setting [don't close it, minimize only]

In settings go to system --> developer options --> enable usb debugging

Go back to LADB and paste the commands that we copied and hit next arrow, it should start executing the commands

After all commands are executed restart your headunit

In case you want some junk back you can try downloading it from google/playstore if nothing works, you can factory reset the headunit this bring back all the stock apps and you may need to redo all the steps to debloat it again so make sure to only remove the package you deem necessary.

FAQ

----

1) LADB on Waiting even after enabling usb debugging ?

A) Close LADB and try to reopen it while usb debugging is enabled, if it says Shell dead or something similar then close LADB disable usb debugging open ladb again then enable usb debugging, still issue restart and try this again.