[Root] System Debloat script - Sony Xperia XZ Premium Themes, Apps, and Mods

Hello,
I've created a simple .bat file which can be run from a Windows computer while your phone is booted into TWRP to remove various apps that I consider bloat. I have not encountered any issues in my usage the past week, but your usage pattern may vary. This is tested on a G8142 running Oreo 47.1.A.5.51, but there is no reason it should not work on other versions. This is limited to Windows, but the commands are all ADB-specific and have nothing to do with Windows, so it should also work on Mac & Linux by changing the file extension. I take no responsibility if this messes up your phone! But, all changes this script makes can be reversed by flashing system & oem with Newflasher.
Note: This script will remove Sony Home! Please make sure you have an alternate launcher installed or remove that app from the script!!! Additionally, the app removes Google Messages, Sony Clock, Sony Calendar, Chrome, Sony Email, Gmail, Google, various international keyboard layouts, and Text-to-speech functionality. All of these, or alternatives, can be re-installed through the Play Store though.
To Modify:
The .bat file can be modified by opening with any text editor. All apps are labeled with their name, as below:
::Google Messages
adb shell rm -rf /system/app/Messages
adb shell rm -rf /data/user/0/com.google.android.apps.messaging
To prevent this app from being uninstalled, just delete those lines.
To add an app that is not on the list, use an app such as App Inspector to find the directory the app is installed to and the directory its data is located in, then add those to the list as below:
adb shell rm -rf <app Source Dir, excluding last /******.apk>
adb shell rm -rf <app Data Dir>
In some instances, such as if the app has been updated from the Play Store, you may need to remove it from /data/app/ and from /system/app/ (or /system/priv-app) as below:
::Sony What's New
adb shell rm -rf /system/priv-app/sonyentrance2-release
adb shell rm -rf /data/app/com.sonymobile.entrance*
adb shell rm -rf /data/user/0/com.sonymobile.entrance
The * above is used as a wildcard, meaning that any folder that matches everything before the * will be deleted. This is needed because random strings of letters and numbers are added to the end of the app name when installed to /data/app/. Please be careful with your * use, since using something like "adb shell rm -rf /data/app/com.sonymobile.*" would clear out several apps' data!
Instructions:
Power down the device
Reboot into TWRP by holding Power and Volume Down (phone must not be plugged into computer yet)
Attach phone to computer
Unzip JunkCleaner.zip (this is not a flashable zip!) and extract JunkCleaner.bat
Move JunkCleaner.bat to a folder that contains adb.exe
Double click on JunkCleaner.bat and let run to completion
You're all set!
Known Issues:
Swiftkey may force close on you, to fix this, clear the cache from Settings -> Apps & notifications -> App Info -> Swiftkey Keyboard -> Storage -> Clear Cache
You will see a notification that com.sonymobile.rcahandler has force closed when you first boot the phone. This can be fixed by turning on Ultra Stamina mode, turning it off, then rebooting a second time after Ultra Stamina Mode has already rebooted your phone.
To Return to Stock/Reinstall any apps:
To get back to stock, just use Newflasher to reinstall system & oem partitions. This will restore all apps that this script removes.
Please let me know if there are any apps that you have safely removed that are not in my list, as I'm sure the amount of apps can be whittled down even further.

just what i needed. thank you!
and what about those system apps like basic sleep mode and crash monitor? doe they have any effect on phone after uninstalling? going to flash Oreo now and will use your debloater

Should not be any harm, no. The Basic Sleep Mode Apps are for Android's Screensaver (under Settings -> Display -> Screen Saver), which is a bit useless without an AMOLED display since it will just kill your battery. The Crash Monitor is used by Sony for getting diagnostic info in case of a crash, but we're out of warranty by unlocking the phone, so no real effect there either.

UPDATE:
just flashed this on nougat. successfully removed all apps specified. i edited the script and excluded xperia home, album and music. works as expected. maybe you can try to find more useless apps that doesnt do anything but hog up the Ram and battery.
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me

For anyone that doesn't want to use this but still want to easily debloat many apps at once.
Titanium Backup has an (un)installer feature which lets you pick all the apps you want and then hit (un)install.

FartyParty said:
For anyone that doesn't want to use this but still want to easily debloat many apps at once.
Titanium Backup has an (un)installer feature which lets you pick all the apps you want and then hit (un)install.
Click to expand...
Click to collapse
that doesnt uninstall all apps. advanced logging cant be removed for me. also prime video was never removed with TB

Saadkhalid786 said:
that doesnt
Click to expand...
Click to collapse
It does uninstall whatever you want so please stop spreading lies

FartyParty said:
It does uninstall whatever you want so please stop spreading lies
Click to expand...
Click to collapse
it never did uninstall prime video and audio settings for me.
can u pls try and remove audio settings and prime video on OREO 5.51 with TB (any version)?
all im asking is him to add these apps to the script.
i'll wait

FartyParty said:
It does uninstall whatever you want so please stop spreading lies
Click to expand...
Click to collapse
It may be that because Amazon Prime Video is located in the /oem partition rather than /system/app or /system/priv-app, Titanium Backup does not have code to grant write access to that directory, though I have not tested myself. Even then, the benefit of this script is that it saves you from having to manually delete ~50+ apps each time a monthly patch comes out.
Saadkhalid786 said:
UPDATE:
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me
Click to expand...
Click to collapse
Glad it's working well for you! I'll take a look at removing some of those and try and update the package later tonight. Fairly certain that telephonyservice and shell are both required by Android, but will see if any of the rest can be taken out.

Pointless816 said:
Glad it's working well for you! I'll take a look at removing some of those and try and update the package later tonight. Fairly certain that telephonyservice and shell are both required by Android, but will see if any of the rest can be taken out.
Click to expand...
Click to collapse
Much Obliged.

Pointless816 said:
manually delete ~50+ apps each time a monthly patch comes out..
Click to expand...
Click to collapse
You don't to manually delete apps, you can just quickselect and hit uninstall, you can also do schemes etc.
Anyway, thanks for the script regardless! Options are always nice.

Pointless816 said:
Hello,
I've created a simple .bat file which can be run from a Windows computer while your phone is booted into TWRP to remove various apps that I consider bloat. I have not encountered any issues in my usage the past week, but your usage pattern may vary. This is tested on a G8142 running Oreo 47.1.A.5.51, but there is no reason it should not work on other versions. This is limited to Windows, but the commands are all ADB-specific and have nothing to do with Windows, so it should also work on Mac & Linux by changing the file extension. I take no responsibility if this messes up your phone! But, all changes this script makes can be reversed by flashing system & oem with Newflasher.
Note: This script will remove Sony Home! Please make sure you have an alternate launcher installed or remove that app from the script!!! Additionally, the app removes Google Messages, Sony Clock, Sony Calendar, Chrome, Sony Email, Gmail, Google, various international keyboard layouts, and Text-to-speech functionality. All of these, or alternatives, can be re-installed through the Play Store though.
To Modify:
The .bat file can be modified by opening with any text editor. All apps are labeled with their name, as below:
::Google Messages
adb shell rm -rf /system/app/Messages
adb shell rm -rf /data/user/0/com.google.android.apps.messaging
To prevent this app from being uninstalled, just delete those lines.
To add an app that is not on the list, use an app such as App Inspector to find the directory the app is installed to and the directory its data is located in, then add those to the list as below:
adb shell rm -rf <app Source Dir, excluding last /******.apk>
adb shell rm -rf <app Data Dir>
In some instances, such as if the app has been updated from the Play Store, you may need to remove it from /data/app/ and from /system/app/ (or /system/priv-app) as below:
::Sony What's New
adb shell rm -rf /system/priv-app/sonyentrance2-release
adb shell rm -rf /data/app/com.sonymobile.entrance*
adb shell rm -rf /data/user/0/com.sonymobile.entrance
The * above is used as a wildcard, meaning that any folder that matches everything before the * will be deleted. This is needed because random strings of letters and numbers are added to the end of the app name when installed to /data/app/. Please be careful with your * use, since using something like "adb shell rm -rf /data/app/com.sonymobile.*" would clear out several apps' data!
Instructions:
Power down the device
Reboot into TWRP by holding Power and Volume Down (phone must not be plugged into computer yet)
Attach phone to computer
Unzip JunkCleaner.zip (this is not a flashable zip!) and extract JunkCleaner.bat
Move JunkCleaner.bat to a folder that contains adb.exe
Double click on JunkCleaner.bat and let run to completion
You're all set!
Known Issues:
Swiftkey may force close on you, to fix this, clear the cache from Settings -> Apps & notifications -> App Info -> Swiftkey Keyboard -> Storage -> Clear Cache
You will see a notification that com.sonymobile.rcahandler has force closed when you first boot the phone. This can be fixed by turning on Ultra Stamina mode, turning it off, then rebooting a second time after Ultra Stamina Mode has already rebooted your phone.
To Return to Stock/Reinstall any apps:
To get back to stock, just use Newflasher to reinstall system & oem partitions. This will restore all apps that this script removes.
Please let me know if there are any apps that you have safely removed that are not in my list, as I'm sure the amount of apps can be whittled down even further.
Click to expand...
Click to collapse
I was wondering how to use this exactly?? cause i ran it within the adb folder and it processed the list but nothing happened on the phone...i wanna debloat my phone with this but i cant get it to work for me lol any help would be much appreciated i am running the same oreo firmware..

gerald.mrrsn said:
I was wondering how to use this exactly?? cause i ran it within the adb folder and it processed the list but nothing happened on the phone...i wanna debloat my phone with this but i cant get it to work for me lol any help would be much appreciated i am running the same oreo firmware..
Click to expand...
Click to collapse
I use system app remover from the store. Works pretty well and it's quick for multiple uninstalls

Can you make a TWRP flash version of your script, I think its a lot easier if its done that way.
[MM / N] [UB] [COMBINED] System/OEM Debloat Script - v1.7
Also take a look at this: https://forum.xda-developers.com/xp...lopment/mm-n-oem-debloat-script-v1-0-t3527866

@gerald.mrrsn
Sorry to hear it was giving you troubles! I have a flashable version that you can try that's attached to this post.
@Patrck744
New flashable is attached!
I've attached a new flashable version of the script to this post--just stick it on your phone and flash in TWRP. I've added a few more apps to it compared to my original script and have also improved deletion of apps which may have been updated. I'm still planning to add more apps to the list and will update the main post with instructions on modifying the flashable zip and update the original .bat file once I've done some testing on removing additional apps.

Thanks, you're doing good work!
I tried uninstalling majority of the junk using TitaniumBackUp but I just got a bootloop. I'll test it and let you know if there are any issues with flashable version.

Hi Guys,
Do you think this would also work on the normal Xperia XZ F8331?

Erayh said:
Hi Guys,
Do you think this would also work on the normal Xperia XZ F8331?
Click to expand...
Click to collapse
Look in the x performance forum, there is a zip by serajr.

Saadkhalid786 said:
UPDATE:
just flashed this on nougat. successfully removed all apps specified. i edited the script and excluded xperia home, album and music. works as expected. maybe you can try to find more useless apps that doesnt do anything but hog up the Ram and battery.
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me
Click to expand...
Click to collapse
would you kindly post modified script for download.

good work!!thanx bro!!
+1 from me!

Related

Deleting system apps after root?? (Root Explorer won't do it)

I used to use "Root Explorer" on my hero to delete system apps before..doesn't seem to work anymore..
solution??
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
did you mount /system in rw mode? (it's ro by default)
U dont have write access to system partition in normal use if i read the tutorial right. U have to do it with an update.zip (editing the update script) or with adb both u have to do in recovery menu from modaco i think. Tell me if i am wrong.
Sry for my bad english
@cezarL yes I did
@xtcislove I wish u were wrong..seems like pain.. anyway to do it without a pc?
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Damn, you're right. Previously, I had deleted an .apk just to check if it's working, then reinstalled the app right away.
But I just tested now, it looks like after a reboot, the .apk magically reappears, and the application is running as usual
Click to expand...
Click to collapse
ye..I'm sure it has something to do with the root limitations Paul mentioned in his rooting guide. hope it'll be fixed soon.
Sent from my HTC Desire using the XDA mobile application powered by Tapatalk
Try this: Boot in recovery menu and try the following commands:
adb remount
adb shell rm /system/app/APP.apk
adb shell rm /data/app/APP.apk
where APP.apk is the filename of the apk with the .apk extention, remember case-sensitive!
for example:
adb remount
adb shell rm /system/app/FriendStream.apk
adb shell rm /system/app/FriendStream.odex
take a look before if your app has a odex or try this: (here u need only one command)
adb remount
adb shell rm /system/app/*FriendStream*
Good luck and have fun =)
Edit: Just find a topic =)
hxxp://android.modaco.com/content/htc-hero-hero-modaco-com/297207/removal-of-apps-via-adb/#entry1124362
(replace hxxp with http)
I'm trying to do these things in windows at the moment. No issues getting in the recovery with the windows scripts. But when I try to open a ADB Shell after I've gone to recovery I can't really do anything with it and the recovery hangs (not controllable with the track pad).
Anyone can tell me what I'm doing wrong?
You're not doing anything wrong, from what I've seen opening a new adb instance on Windows will kill the server created by the .bat file used for recovery... which means the connection to the device is lost. I haven't looked into it further, but it might be fixeable somehow.
Ah I see, so basicly you undo the patched recovery by opening a new session. It does work properly under Linux then? I run ubuntu on my netbook so It's not a big issue anyway. Thanks for the tip, gonna try under linux now!
I'm having the same problems as:
http://android.modaco.com/content/h...co-com/307401/removing-sys-apps/#entry1256015
I removed a load of HTC widgets but I get strange entries on the widget menu. Anyone know how to get rid of these?
Also, I removed Stocks (.apk and .odex), now I get a force close on 'Accounts & sync'. Anyone know how to remove Stocks properly?
Cheers.
After running the bat file to get into recovery, start a new cmd prompt in windows and use again adb-nilezon for shell commands instead of ordinary adb, and it wont be killed.
This has worked for me atleast
blackadder1000 said:
Anyone know how to remove Stocks properly?
Click to expand...
Click to collapse
The best, foolproof, failsafe way is to remove them from the rom before installing it... and remember that some services are still required, weather you use them or not.
But, if a system app is already installed you need to remove:
the apk from /system/app
the data from /data/data/appname
the cache from /cache/dalvik-cache
Do not remove Accounts & Sync...
Thanks for the answer.
I guess now is a good time to bake my own ROM!
blackadder1000 said:
Thanks for the answer.
I guess now is a good time to bake my own ROM!
Click to expand...
Click to collapse
Yep, that's what I do... see my sig...

Cannot delete apps within Android?

Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
casual864 said:
Help I've rooted my phone with nandroid and I still cannot delete apps within the android system with estrong file browser any help would be appreciated.
Running Damage Control 3.2.3.
Click to expand...
Click to collapse
Well, if you're trying to delete system apps -- you won't be able to delete them from Estrong. I believe Root Explorer will allow you to delete those files, but its a paid app.
I would just advice you to delete whatever apks you don't want from terminal/shell.
Just plug your phone in and open terminal/command prompt and type:
Code:
adb remount
adb shell
cd /system/app
ls -- lists all the apps on your phone, find what you want to remove
rm AppName.apk
rm AppName.odex (not all apks will have odex files), so don't worry if you get an error message
Example:
rm Mail.apk
When you're done, type:
exit
Hope that helps.
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
casual864 said:
Thanks for the answer. I didn't know that I couldn't delete apps with estrong. Though I find it easier to delete apps within android than going into terminal and executing the commands myself. Thanks for the heads up though.
Click to expand...
Click to collapse
Sure no problem.
I must be an idiot. Everyone keeps saying just type adb shell in a command prompt window. I just get errors saying ADB is not a recognized command. What gives?
It is in the sdk/tools directory.
Got it, I'm in. But now I'm getting read-only file system as I attempt to delete APK's.
Alternately, you can delete apps in one-click with Titanium Backup (which every rooted phone should have, IMO).
adb remount. Got it. Removed a few things I wanted gone after fresh 0.5.3.

Applications safe to remove

Requires Root
From your Phone:
1.
You can use/ download Root Explorer from the Android Market which costs ..
$3.79
In Root explorer:
Make sure you select R/W (read and write) to get out of R/O (read only) mode at the top of Root Explorer
Push menu ->Search->Search Term
ex. "SprintTV.apk" ->
Delete results that have the search term in it.
2.
Or use Sdx Stock app remover
This app can be downloaded and installed to any phone With Root. It has been tested and has been proven to work on many phones. There have been mention of some issues - please post if you do encounter problems.
Purpose:
It can be used to backup and remove any of the stock apps found in /system/app/. There's also a feature that will allow you to control whether /system/ is mount read/write (see settings->Auto mount)
Simply select all apps you want to delete... it will ask for SU permissions ...
3.
Third method is the good old ADB Method ...
Make sure you have the Samsung drivers installed on your PC.
They should be available to download directly from Samsung Shortly at this Webpage:
http://www.samsung.com/us/support/downloads/SPH-D710ZKASPR
Install drivers make sure USB debugging is on then connect it to your computer..
Make sure you have the Android SDK installed for adb shell on your computer.
Windows/Linux/Mac download at this link:
http://developer.android.com/sdk/index.html
Open Command Prompt
Navigate to your android sdk installation folder. It it's directly in C: then type this below.
Type each step one at a time, or copy and right click paste in command prompt (do not control+v)
1. cd C:\android-sdk-windows\tools>adb shell
2. $ su
3. # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
4. # cd /system/app
5. # ls
6. # rm Stock.apk
7. # rm Stock.odex
On steps 6-7, replace "Stock.apk" and "Stock.odex" with apk's you want to remove.
Step five lists the currently installed programs on your phone.
_________________________________________________________________
As people start removing apps please list on this thread which apps are safe to remove from the ROM, please post them here, along with what functionality is lost, including which "app" as it shows in the drawer, gets removed.
Credits :
Caspian
pulser_g2
newfireorange
I've seen several posts and reviews that say you are allowed to remove all Sprint bloatware through the normal Applications manager. No root needed.
bullet2300 said:
I've seen several posts and reviews that say you are allowed to remove all Sprint bloatware through the normal Applications manager. No root needed.
Click to expand...
Click to collapse
This, coupled with unlocked bootloader, is fantastic. Samsung, and to a smaller extent Sprint, deserves some love for these decisions.
If they come through on the consumer phones they absolutely do. I hope that Samsung does stick with this.
I can confirm deleting boat ware....well most, some has to stay. Really surprised. Only oneI didn't want is nascar..left turn ahead....left turn ahead....left turn ahead...
Sent from my SPH-D710 using Tapatalk
tubasteve said:
I can confirm deleting boat ware....well most, some has to stay. Really surprised. Only oneI didn't want is nascar..left turn ahead....left turn ahead....left turn ahead...
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
Nice! lol
Now we just need root!!!
I use System App Remover from the market which not only will remove system apps (if rooted) but has an "assisst mode" which color codes all the system apps according to their risk of removing.

[Q] Can't delete anything in system/app: Help appreciated!

What's up XDA?
I've been messing around with my Xperia Play and i successfully got it rooted. My next task is to get all the annoying icons and processes that are running in the background deleted to make my phone run like a champ (Also i just like the clean appearance of only the applications that i use in my menu, perhaps OCD).
With that said i have tried a few different ways to get my system folder writeable but nothing seems to work as I am unable to delete anything in that folder.
My questions are the following:
1) How to delete files out of this folder.
2) Is there a way to do this via computer so i don't have to mess around with an explorer application on my phone.
Thanks for the help thus far everyone!
FoXide- said:
What's up XDA?
I've been messing around with my Xperia Play and i successfully got it rooted. My next task is to get all the annoying icons and processes that are running in the background deleted to make my phone run like a champ (Also i just like the clean appearance of only the applications that i use in my menu, perhaps OCD).
With that said i have tried a few different ways to get my system folder writeable but nothing seems to work as I am unable to delete anything in that folder.
My questions are the following:
1) How to delete files out of this folder.
2) Is there a way to do this via computer so i don't have to mess around with an explorer application on my phone.
Thanks for the help thus far everyone!
Click to expand...
Click to collapse
You can delete system apps with adb. Here are some commands you may find useful:
"adb remount" - This will remount /system/ as R/W.
"ls /system/app/" This will list all the .apk's in /system/app/
"rm /system/app/***.apk" - this will delete the specified .apk file.
Thanks for the help.
I was able to get the abd to list out all the files in the apps folder but when i type adb remount it gives me an error saying "remount failed: Operation not permitted"
Any tips?
FoXide- said:
Thanks for the help.
I was able to get the abd to list out all the files in the apps folder but when i type adb remount it gives me an error saying "remount failed: Operation not permitted"
Any tips?
Click to expand...
Click to collapse
It's because you do not have insecure adb. Download and install this .apk. after install run it, and your device will reboot. You now have insecure adb and can remount /system/. also once installed you can uninstall app
http://loadbalancing.modaco.com/download.php?url=mf/?8qqca688rvbwcfk
You are a boss! I got it to work but i had to use a slightl different command to remove apps "adb shell rm -r /system/app/***.apk"
My last question is seeing as how your location is Manchester, are you going for city or united? =P
FoXide- said:
You are a boss! I got it to work but i had to use a slightl different command to remove apps "adb shell rm -r /system/app/***.apk"
My last question is seeing as how your location is Manchester, are you going for city or united? =P
Click to expand...
Click to collapse
Yeah sorry you have to be logged into shell for the remove command to work
I'm a man utd fan, city don't scare me there just throwing there money about ....... but they will run out just like chelski

DEBLOAT Script XZ1 Compact - STOCK Pie - G8441_47.2.A.11.228 (No root, Android 9)

This is debloat of Google stuff (Play and Services) / Sony / other / tracking apps etc. Updated version for Android 9 (Pie), you get better battery life and better privacy.
The main goal is mimic custom rom with fully working stock camera/connectivity/fingerprint and no Google bloat/track and as consequance, better battery life.
Root not needed for debloat, but necessary for further optimizations. (with underclocked CPUs, tuned RUN_IN_BACKGROUND privilege and BOOT_COMPLETED intent action of installed/system apps, you can reach 7 days on one charge - with deepsleep active 92% of time. /No wakelock tuning/)
Batch script reads file deb.xz1c.txt and process all lines which does not start with #. Lines/apps with starts with @ are disabled only (mainly Google components which don't like being uninstalled.)
---What You Need---
-you need working adb shell (or Flashtool), debloat_xz1c.bat and deb.xz1c.txt must be in the same directory. For example ...\Flashtool\x10flasher_lib\
-activated developer options - adb debugging
-have active screen security (pin code, password, fingerprint) so you can deactivate google as administrator app and agents of trust in settings.
-check there is no google in find my device etc.
-default Android 9 sms/mms app is Google framework dependent so you need a free alternative. QKMS is way better then default.
-install Firefox or another non-google browser. (you can enable/disable Chrome in deb.xz1c.txt)
debloat_xz1c.bat
Code:
SETLOCAL ENABLEDELAYEDEXPANSION
:: give user some time to respond to adb/root notification on phone o_o
adb devices
timeout 2
adb shell id
timeout 3
echo off
:: name of input file (deb.xz1c.txt)
for /f "eol=#" %%f in (deb.xz1c.txt) do (
set line=%%f
set fchar=!line:~0,1!
call :work_clear_data
if "!fchar!" == "@" call :work_disable
if not "!fchar!" == "@" call :work_uninst
)
goto :end
:work_clear_data
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo --------[ %%b ]
echo Force-Stopping and clearing app's data:
adb shell am force-stop %%b
adb shell pm clear %%b
)
goto :eof
:work_uninst
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo 'Uninstalling' app:
adb shell pm uninstall -k --user 0 %%b
)
goto :eof
:work_disable
for /f "tokens=1,2 delims=^=" %%a in ("%line%") do (
echo Disabling app:
adb shell pm disable-user %%b
)
goto :eof
:end
This is wip debloat list - minimum google stuff, no play services, sony and other. Ready for F-Droid. I am using alternative launcher/email/offline calendar/etc.
You can disable specific app without uninstalling it (place @ as first character on line).
deb.xz1c.txt
Code:
# script ignores lines starting with # ,lines(apps) starting with @ will be disabled only, lines without # or @ will be uninstalled.
# lines starting with #! and @! are important for system to function corectly. Don't remove them.
# add # to ignore
# add @ to disable
# remove # or @ to clear app's data and uninstall.
#----Sony Launcher---- (remove # if you have another launcher installed)
#/system/priv-app/home-sonyMobile-release/home-sonyMobile-release.apk=com.sonymobile.home
#----Google Chrome---- (remove # if you have another internet browser installed -Firefox,etc.. add # if you don't.)
/system/app/Chrome/Chrome.apk=com.android.chrome
#======Google Stuff======== (install another sms app first. for example QKSMS)
#!/system/app/GoogleExtShared/GoogleExtShared.apk=com.google.android.ext.shared
#!/system/app/WebViewStub/WebViewStub.apk=com.google.android.webview
#!/system/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk=com.google.android.packageinstaller
#!/system/priv-app/GoogleServicesFramework/GoogleServicesFramework.apk=com.google.android.gsf
@!/system/priv-app/GmsCore/GmsCore.apk=com.google.android.gms
@!/system/priv-app/CarrierServices/CarrierServices.apk=com.google.android.ims
@!/system/app/Messages/Messages.apk=com.google.android.apps.messaging
#/system/priv-app/OobConfig/OobConfig.apk=com.google.android.apps.work.oobconfig
/system/priv-app/SetupWizard/SetupWizard.apk=com.google.android.setupwizard
/system/app/ARCoreStub/ARCoreStub.apk=com.google.ar.core
/system/app/CalendarGoogle/CalendarGoogle.apk=com.google.android.calendar
/system/app/Chrome/Chrome.apk=com.android.chrome
/system/app/Drive/Drive.apk=com.google.android.apps.docs
/system/app/Duo/Duo.apk=com.google.android.apps.tachyon
/system/app/EasterEgg/EasterEgg.apk=com.android.egg
/system/app/Gmail2/Gmail2.apk=com.google.android.gm
/system/app/GoogleContactsSyncAdapter/GoogleContactsSyncAdapter.apk=com.google.android.syncadapters.contacts
/system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk=com.google.android.printservice.recommendation
/system/app/GoogleTTS/GoogleTTS.apk=com.google.android.tts
/system/app/Maps/Maps.apk=com.google.android.apps.maps
/system/app/Music2/Music2.apk=com.google.android.music
/system/app/Photos/Photos.apk=com.google.android.apps.photos
/system/app/Videos/Videos.apk=com.google.android.videos
/system/app/YouTube/YouTube.apk=com.google.android.youtube
/system/app/talkback/talkback.apk=com.google.android.marvin.talkback
/system/priv-app/AndroidPlatformServices/AndroidPlatformServices.apk=com.google.android.gms.policy_sidecar_aps
/system/priv-app/ConfigUpdater/ConfigUpdater.apk=com.google.android.configupdater
/system/priv-app/GoogleBackupTransport/GoogleBackupTransport.apk=com.google.android.backuptransport
/system/priv-app/GoogleFeedback/GoogleFeedback.apk=com.google.android.feedback
/system/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk=com.google.android.onetimeinitializer
/system/priv-app/GooglePartnerSetup/GooglePartnerSetup.apk=com.google.android.partnersetup
/system/priv-app/GoogleRestore/GoogleRestore.apk=com.google.android.apps.restore
/system/priv-app/HotwordEnrollmentOKGoogleWCD9340/HotwordEnrollmentOKGoogleWCD9340.apk=com.android.hotwordenrollment.okgoogle
/system/priv-app/Phonesky/Phonesky.apk=com.android.vending
/system/priv-app/Turbo/Turbo.apk=com.google.android.apps.turbo
/system/priv-app/Velvet/Velvet.apk=com.google.android.googlequicksearchbox
/system/priv-app/GoogleExtServices/GoogleExtServices.apk=com.google.android.ext.services
#----Safe to uninstall or disable----
#?/oem/priv-app/CellBroadcastReceiver/CellBroadcastReceiver.apk=com.android.cellbroadcastreceiver
#?/system/app/BluetoothMidiService/BluetoothMidiService.apk=com.android.bluetoothmidiservice
#?/system/app/CtsShimPrebuilt/CtsShimPrebuilt.apk=com.android.cts.ctsshim
#?/system/app/NfcExtension/NfcExtension.apk=com.sonymobile.nfcextension
#?/system/app/PrintSpooler/PrintSpooler.apk=com.android.printspooler
#?/system/app/SomcDualshockManager/SomcDualshockManager.apk=com.sonymobile.dualshockmanager
#?/system/app/Theme-Sou-M-cid19-silver-sw360dp-xhdpi-release/Theme-Sou-M-cid19-silver-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid19.silver
#?/system/app/Theme-Sou-M-cid20-blue-sw360dp-xhdpi-release/Theme-Sou-M-cid20-blue-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid20.blue
#?/system/app/Theme-Sou-M-cid21-pink-sw360dp-xhdpi-release/Theme-Sou-M-cid21-pink-sw360dp-xhdpi-release.apk=com.sonymobile.themes.sou.cid21.pink
#?/system/app/uceShimService/uceShimService.apk=com.qualcomm.qti.uceShimService
#?/system/app/UnsupportedHeadsetNotifier/UnsupportedHeadsetNotifier.apk=com.sonyericsson.unsupportedheadsetnotifier
#?/system/app/dlna-somc-xhdpi-release/dlna-somc-xhdpi-release.apk=com.sonymobile.dlna
#?/system/priv-app/CtsShimPrivPrebuilt/CtsShimPrivPrebuilt.apk=com.android.cts.priv.ctsshim
#?/system/priv-app/SemcCnapProvider/SemcCnapProvider.apk=com.sonyericsson.providers.cnap
#?/system/priv-app/SimlockUnlockApp/SimlockUnlockApp.apk=com.sonymobile.simlockunlockapp
#?/system/priv-app/assist_persistent-release/assist_persistent-release.apk=com.sonymobile.assist.persistent
#?/system/priv-app/dpmserviceapp/dpmserviceapp.apk=com.qti.dpmserviceapp
#?/system/priv-app/usb-mtp-vendor-extension-service/usb-mtp-vendor-extension-service.apk=com.sonyericsson.mtp
/system/app/AptxNotifier/AptxNotifier.apk=com.sonymobile.aptx.notifier
/system/app/BasicDreams/BasicDreams.apk=com.android.dreams.basic
/system/app/CrashMonitor/CrashMonitor.apk=com.sonyericsson.crashmonitor
/system/app/CrashMonitorSystem/CrashMonitorSystem.apk=com.sonymobile.crashmonitor.system
/system/app/ExternalKeyboardJP/ExternalKeyboardJP.apk=com.sonymobile.android.externalkeyboardjp
/system/app/FaceLock/FaceLock.apk=com.android.facelock
/system/app/IddAgent/IddAgent.apk=com.sonyericsson.idd.agent
/system/app/PartnerBookmarksProvider/PartnerBookmarksProvider.apk=com.android.providers.partnerbookmarks
/system/app/RcaHandler/RcaHandler.apk=com.sonymobile.rcahandler
/system/app/SecureClockService/SecureClockService.apk=com.sonymobile.secureclockservice
/system/app/SemcEmail-release/SemcEmail-release.apk=com.sonymobile.email
/system/app/SemcWarrantyTime/SemcWarrantyTime.apk=com.sonyericsson.warrantytime
/system/app/SomcMovieCreatorRmm-release/SomcMovieCreatorRmm-release.apk=com.sonymobile.moviecreator.rmm
/system/app/SomcPOBox-xhdpi/SomcPOBox-xhdpi.apk=com.sonymobile.pobox
/system/app/SomcXperiaServices/SomcXperiaServices.apk=com.sonymobile.xperiaservices
/system/app/SusResCheck/SusResCheck.apk=com.sonymobile.susrescheck
/system/app/SyncHub-release/SyncHub-release.apk=com.sonymobile.synchub
/system/app/Traceur/Traceur.apk=com.android.traceur
/system/app/WallpaperBackup/WallpaperBackup.apk=com.android.wallpaperbackup
/system/app/XperiaTransferMobile-release/XperiaTransferMobile-release.apk=com.sonymobile.xperiatransfermobile
/system/app/XperiaXLiveWallpaper-release/XperiaXLiveWallpaper-release.apk=com.sonymobile.xperiaxlivewallpaper
/system/app/android.autoinstalls.config.sony.xperia/android.autoinstalls.config.sony.xperia.apk=android.autoinstalls.config.sony.xperia
/system/app/app-scan3d-release/app-scan3d-release.apk=com.sonymobile.scan3d
/system/app/clock-widgets-release/clock-widgets-release.apk=com.sonymobile.advancedwidget.clock
/system/app/com.amazon.kindle/com.amazon.kindle.apk=com.amazon.kindle
/system/app/com.amazon.mShop.android.shopping/com.amazon.mShop.android.shopping.apk=com.amazon.mShop.android.shopping
/system/app/com.facebook.appmanager/com.facebook.appmanager.apk=com.facebook.appmanager
/system/app/com.facebook.katana/com.facebook.katana.apk=com.facebook.katana
/system/app/com.s.antivirus/com.s.antivirus.apk=com.s.antivirus
/system/app/com.sonyericsson.xhs/com.sonyericsson.xhs.apk=com.sonyericsson.xhs
/system/app/com.sonymobile.deqp/com.sonymobile.deqp.apk=com.sonymobile.deqp
/system/app/com.sonymobile.infoapp/com.sonymobile.infoapp.apk=com.sonymobile.infoapp
/system/app/com.sonymobile.support/com.sonymobile.support.apk=com.sonymobile.support
/system/app/com.sonymobile.xperialounge.services/com.sonymobile.xperialounge.services.apk=com.sonymobile.xperialounge.services
/system/app/com.spotify.music/com.spotify.music.apk=com.spotify.music
/system/app/fota-service/fota-service.apk=com.sonymobile.fota.service
/system/app/pip/pip.apk=com.sonymobile.pip
/system/app/update-center-config-auto-install-stub-release/update-center-config-auto-install-stub-release.apk=com.sonymobile.updatecenter.config.autoinstall
/system/app/update-center-config-late-cmz-stub-release/update-center-config-late-cmz-stub-release.apk=com.sonymobile.updatecenter.config.latecmz
/system/app/videoplaceholder/videoplaceholder.apk=com.sony.tvsideview.videoph
/system/app/weather-project-somctestkey-release/weather-project-somctestkey-release.apk=com.sonymobile.xperiaweather
/system/priv-app/AnonymousData/AnonymousData.apk=com.sonymobile.anondata
/system/priv-app/CameraWearableBridgeHandheldServer/CameraWearableBridgeHandheldServer.apk=com.sonymobile.cameracommon.wearablebridge
/system/priv-app/ManagedProvisioning/ManagedProvisioning.apk=com.android.managedprovisioning
/system/priv-app/OMAClientProvisioning/OMAClientProvisioning.apk=com.sonyericsson.android.omacp
/system/priv-app/SemcAlbum-albumLive-release/SemcAlbum-albumLive-release.apk=com.sonyericsson.album
/system/priv-app/SemcMusic/SemcMusic.apk=com.sonyericsson.music
/system/priv-app/SomcMovieCreator-release/SomcMovieCreator-release.apk=com.sonymobile.moviecreator
/system/priv-app/StartupFlagV2/StartupFlagV2.apk=com.sonyericsson.startupflagservice
/system/priv-app/Tag/Tag.apk=com.android.apps.tag
/system/priv-app/UpdateCenter-release/UpdateCenter-release.apk=com.sonyericsson.updatecenter
/system/priv-app/com.facebook.services/com.facebook.services.apk=com.facebook.services
/system/priv-app/com.facebook.system/com.facebook.system.apk=com.facebook.system
/system/priv-app/com.sonymobile.retaildemo/com.sonymobile.retaildemo.apk=com.sonymobile.retaildemo
/system/priv-app/sonyentrance2-release/sonyentrance2-release.apk=com.sonymobile.entrance
/system/priv-app/textinput-chn-xhdpi-release/textinput-chn-xhdpi-release.apk=com.sonyericsson.textinput.chinese
/system/priv-app/usb-mtp-backup-transport/usb-mtp-backup-transport.apk=com.sonyericsson.mtp.extension.backuprestore
/system/priv-app/usb-mtp-update-wrapper/usb-mtp-update-wrapper.apk=com.sonyericsson.mtp.extension.update
/vendor/app/ChromeCustomizations/ChromeCustomizations.apk=com.android.partnerbrowsercustomizations.chromeHomepage
/vendor/app/SSGTelemetryService/SSGTelemetryService.apk=com.qualcomm.qti.qms.service.telemetry
#----Core----
#/system/app/Bluetooth/Bluetooth.apk=com.android.bluetooth
#/system/app/BookmarkProvider/BookmarkProvider.apk=com.android.bookmarkprovider
#/system/app/BuiltInPrintService/BuiltInPrintService.apk=com.android.bips
#/system/app/CameraAddonPermission-release/CameraAddonPermission-release.apk=com.sonymobile.camera.addon.permission
#/system/app/CameraCommonPermission-release/CameraCommonPermission-release.apk=com.sonymobile.cameracommon.permission
#/system/app/CameraExtensionPermission-release/CameraExtensionPermission-release.apk=com.sonyericsson.cameraextension.permission
#/system/app/CaptivePortalLogin/CaptivePortalLogin.apk=com.android.captiveportallogin
#/system/app/CarrierDefaultApp/CarrierDefaultApp.apk=com.android.carrierdefaultapp
#/system/app/CertInstaller/CertInstaller.apk=com.android.certinstaller
#/system/app/CompanionDeviceManager/CompanionDeviceManager.apk=com.android.companiondevicemanager
#/system/app/DisplayBooster/DisplayBooster.apk=com.sonymobile.displaybooster
#/system/app/FidoCryptoService/FidoCryptoService.apk=com.qualcomm.qti.auth.fidocryptoservice
#/system/app/FingerprintExtensionService/FingerprintExtensionService.apk=com.fingerprints.extension.service
#/system/app/HTMLViewer/HTMLViewer.apk=com.android.htmlviewer
#/system/app/IddPermissionApplicationCertificate/IddPermissionApplicationCertificate.apk=com.sonymobile.idd.permission.application_certificate
#/system/app/Iengine/Iengine.apk=com.sonymobile.intelligent.iengine
#/system/app/ImageProcessorPermission-release/ImageProcessorPermission-release.apk=com.sonymobile.imageprocessor.permission
#/system/app/IntelligentObserver/IntelligentObserver.apk=com.sonymobile.intelligent.observer
#/system/app/KeyChain/KeyChain.apk=com.android.keychain
#/system/app/LiveWallpapersPicker/LiveWallpapersPicker.apk=com.android.wallpaper.livepicker
#/system/app/ManagedConfigAdminStub-release/ManagedConfigAdminStub-release.apk=com.sonymobile.enterprise.managedconfigadmin
#/system/app/NfcNci/NfcNci.apk=com.android.nfc
#/system/app/PacProcessor/PacProcessor.apk=com.android.pacprocessor
#/system/app/QtiTelephonyService/QtiTelephonyService.apk=com.qualcomm.qti.telephonyservice
#/system/app/SecureElement/SecureElement.apk=com.android.se
#/system/app/SemcAutoPowerOff/SemcAutoPowerOff.apk=com.sonyericsson.autopoweroffservice
#/system/app/SemcClock-somclive-release/SemcClock-somclive-release.apk=com.sonyericsson.organizer
#/system/app/SemcSettings/SemcSettings.apk=com.sonyericsson.settings
#/system/app/SemcSimDetection/SemcSimDetection.apk=com.sonyericsson.simdetection
#/system/app/ServiceMenu/ServiceMenu.apk=com.sonyericsson.android.servicemenu
#/system/app/SimAppDialog/SimAppDialog.apk=com.android.simappdialog
#/system/app/SimSettings/SimSettings.apk=com.qualcomm.qti.simsettings
#/system/app/SmartPrediction/SmartPrediction.apk=com.sonymobile.prediction
#/system/app/SomcExtGps/SomcExtGps.apk=com.sonymobile.gps.extension
#/system/app/SoundEnhancement/SoundEnhancement.apk=com.sonyericsson.soundenhancement
#/system/app/Stk/Stk.apk=com.android.stk
#/system/app/TetherEntitlementCheck/TetherEntitlementCheck.apk=com.sonyericsson.tetherentitlementcheck
#/system/app/TransmitPower/TransmitPower.apk=com.sonymobile.transmitpower
#/system/app/WAPPushManager/WAPPushManager.apk=com.android.smspush
#/system/app/XperiaConfigurator-release/XperiaConfigurator-release.apk=com.sonymobile.deviceconfigtool
#/system/app/btidd/btidd.apk=com.sonymobile.btidd
#/system/app/com.swiftkey.swiftkeyconfigurator/com.swiftkey.swiftkeyconfigurator.apk=com.swiftkey.swiftkeyconfigurator
#/system/app/com.touchtype.swiftkey/com.touchtype.swiftkey.apk=com.touchtype.swiftkey
#/system/app/datastatusnotification/datastatusnotification.apk=com.qti.qualcomm.datastatusnotification
#/system/app/device-monitor/device-monitor.apk=com.sonyericsson.devicemonitor
#/system/app/embms/embms.apk=com.qualcomm.embms
#/system/app/externalkeyboardsinternational-release/externalkeyboardsinternational-release.apk=com.sonymobile.android.externalkeyboard
#/system/app/skin-core-release/skin-core-release.apk=com.sonymobile.runtimeskinning.core
#/system/app/skin-effects-release/skin-effects-release.apk=com.sonymobile.runtimeskinning.effects
#/system/app/skin-picker-release/skin-picker-release.apk=com.sonymobile.runtimeskinning.picker
#/system/app/smtofrgbc/smtofrgbc.apk=com.sonymobile.smtofrgbc
#/system/app/white-balance/white-balance.apk=com.sonymobile.whitebalance
#/system/framework/framework-res.apk=android
#/system/priv-app/ApnUpdater/ApnUpdater.apk=com.sonymobile.apnupdater
#/system/priv-app/ArtFilterCamera-xhdpi-release/ArtFilterCamera-xhdpi-release.apk=com.sonyericsson.android.addoncamera.artfilter
#/system/priv-app/BackupRestoreConfirmation/BackupRestoreConfirmation.apk=com.android.backupconfirm
#/system/priv-app/BlockedNumberProvider/BlockedNumberProvider.apk=com.android.providers.blockednumber
#/system/priv-app/CNEService/CNEService.apk=com.quicinc.cne.CNEService
#/system/priv-app/CalendarProvider/CalendarProvider.apk=com.android.providers.calendar
#/system/priv-app/CallLogBackup/CallLogBackup.apk=com.android.calllogbackup
#/system/priv-app/CameraCommon/CameraCommon.apk=com.sonymobile.cameracommon
#/system/priv-app/CameraPanorama-release/CameraPanorama-release.apk=com.sonyericsson.android.camera3d
#/system/priv-app/CarrierConfig/CarrierConfig.apk=com.android.carrierconfig
#/system/priv-app/Contacts/Contacts.apk=com.sonymobile.android.contacts
#/system/priv-app/ContactsProvider/ContactsProvider.apk=com.android.providers.contacts
#/system/priv-app/CoreSettings/CoreSettings.apk=com.sonymobile.coresettings
#/system/priv-app/CustomizationSelector/CustomizationSelector.apk=com.sonymobile.customizationselector
#/system/priv-app/CustomizedSettings/CustomizedSettings.apk=com.sonyericsson.customizedsettings
#/system/priv-app/DefaultContainerService/DefaultContainerService.apk=com.android.defcontainer
#/system/priv-app/DeviceSecurityService/DeviceSecurityService.apk=com.sonymobile.devicesecurity.service
#/system/priv-app/Dialer2/Dialer2.apk=com.sonymobile.android.dialer
#/system/priv-app/DocumentsUI/DocumentsUI.apk=com.android.documentsui
#/system/priv-app/DownloadProvider/DownloadProvider.apk=com.android.providers.downloads
#/system/priv-app/DownloadProviderUi/DownloadProviderUi.apk=com.android.providers.downloads.ui
#/system/priv-app/EmergencyInfo/EmergencyInfo.apk=com.android.emergency
#/system/priv-app/EnterpriseService/EnterpriseService.apk=com.sonymobile.enterprise
#/system/priv-app/EnterpriseSystemService/EnterpriseSystemService.apk=com.sonymobile.enterprise.service
#/system/priv-app/ExternalStorageProvider/ExternalStorageProvider.apk=com.android.externalstorage
#/system/priv-app/FusedLocation/FusedLocation.apk=com.android.location.fused
#/system/priv-app/GetSetClient-release/GetSetClient-release.apk=com.sonymobile.getset
#/system/priv-app/GetSetSystem-release/GetSetSystem-release.apk=com.sonymobile.getset.priv
#/system/priv-app/ImageEnhancer/ImageEnhancer.apk=com.sonymobile.imageenhancer
#/system/priv-app/InputDevices/InputDevices.apk=com.android.inputdevices
#/system/priv-app/IntelligentBacklight/IntelligentBacklight.apk=com.sonymobile.intelligent.backlight
#/system/priv-app/IntelligentGesture/IntelligentGesture.apk=com.sonymobile.intelligent.gesture
#/system/priv-app/LockscreenSettings-common-release/LockscreenSettings-common-release.apk=com.sonyericsson.lockscreen.uxpnxt
#/system/priv-app/MediaProvider/MediaProvider.apk=com.android.providers.media
#/system/priv-app/MmsService/MmsService.apk=com.android.mms.service
#/system/priv-app/MtpDocumentsProvider/MtpDocumentsProvider.apk=com.android.mtp
#/system/priv-app/MusicFX/MusicFX.apk=com.android.musicfx
#/system/priv-app/NfcExtraResources/NfcExtraResources.apk=com.sonymobile.nfcextension.nfcextraresources
#/system/priv-app/ProxyHandler/ProxyHandler.apk=com.android.proxyhandler
#/system/priv-app/RemoteUnlockService/RemoteUnlockService.apk=com.sonymobile.simlock.service
#/system/priv-app/SEMCSetupWizard/SEMCSetupWizard.apk=com.sonyericsson.setupwizard
#/system/priv-app/SemcCameraUI-xhdpi-release/SemcCameraUI-xhdpi-release.apk=com.sonyericsson.android.camera
#/system/priv-app/SemcPhotoEditor/SemcPhotoEditor.apk=com.sonyericsson.photoeditor
#/system/priv-app/SemcPowerSaveModule/SemcPowerSaveModule.apk=com.sonyericsson.psm.sysmonservice
#/system/priv-app/SemcStorageChecker/SemcStorageChecker.apk=com.sonymobile.storagechecker
#/system/priv-app/SemcTelephonyProvider/SemcTelephonyProvider.apk=com.android.providers.telephony
#/system/priv-app/Settings/Settings.apk=com.android.settings
#/system/priv-app/SettingsIntelligence/SettingsIntelligence.apk=com.android.settings.intelligence
#/system/priv-app/SettingsProvider/SettingsProvider.apk=com.android.providers.settings
#/system/priv-app/SharedStorageBackup/SharedStorageBackup.apk=com.android.sharedstoragebackup
#/system/priv-app/Shell/Shell.apk=com.android.shell
#/system/priv-app/SmartCharger-release/SmartCharger-release.apk=com.sonymobile.smartcharger
#/system/priv-app/SmartCleaner/SmartCleaner.apk=com.sonymobile.smartcleaner
#/system/priv-app/SomcColorGamut/SomcColorGamut.apk=com.sonymobile.colorgamut
#/system/priv-app/SomcExtTelephony/SomcExtTelephony.apk=com.sonymobile.telephony.extension
#/system/priv-app/SomcGloveMode/SomcGloveMode.apk=com.sonymobile.glovemode
#/system/priv-app/SomcIndeviceIntelligence-release/SomcIndeviceIntelligence-release.apk=com.sonymobile.indeviceintelligence
#/system/priv-app/SomcWifiDisplay/SomcWifiDisplay.apk=com.sonymobile.tvout.wifidisplay
#/system/priv-app/SomcWifiService/SomcWifiService.apk=com.sonymobile.wifi
#/system/priv-app/SoundPhotoCamera-xhdpi-release/SoundPhotoCamera-xhdpi-release.apk=com.sonymobile.android.addoncamera.soundphoto
#/system/priv-app/StatementService/StatementService.apk=com.android.statementservice
#/system/priv-app/StorageManager/StorageManager.apk=com.android.storagemanager
#/system/priv-app/SuperStamina/SuperStamina.apk=com.sonymobile.superstamina
#/system/priv-app/SwiqiSystemService/SwiqiSystemService.apk=com.sonymobile.swiqisystemservice
#/system/priv-app/SystemUI/SystemUI.apk=com.android.systemui
#/system/priv-app/TeleService/TeleService.apk=com.android.phone
#/system/priv-app/Telecom/Telecom.apk=com.android.server.telecom
#/system/priv-app/TelephonyThermalCheck/TelephonyThermalCheck.apk=com.sonymobile.telephonythermalcheck
#/system/priv-app/TimeShiftCamera-release/TimeShiftCamera-release.apk=com.sonymobile.android.addoncamera.timeshift
#/system/priv-app/USMHome/USMHome.apk=com.sonymobile.usm
#/system/priv-app/UserDictionaryProvider/UserDictionaryProvider.apk=com.android.providers.userdictionary
#/system/priv-app/VpnDialogs/VpnDialogs.apk=com.android.vpndialogs
#/system/priv-app/WallpaperCropper/WallpaperCropper.apk=com.android.wallpapercropper
#/system/priv-app/WfdService/WfdService.apk=com.qualcomm.wfd.service
#/system/priv-app/assist_app-release/assist_app-release.apk=com.sonymobile.assist
#/system/priv-app/com.qualcomm.location/com.qualcomm.location.apk=com.qualcomm.location
#/system/priv-app/enhancedusbux/enhancedusbux.apk=com.sonyericsson.usbux
#/system/priv-app/ims/ims.apk=org.codeaurora.ims
#/system/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk=com.qualcomm.qcrilmsgtunnel
#/vendor/app/ConnectionSecurityService/ConnectionSecurityService.apk=com.qualcomm.qti.qms.service.connectionsecurity
#/vendor/app/TimeService/TimeService.apk=com.qualcomm.timeservice
---Important---
You can go back if you screw something
to enable disabled app
Code:
adb shell pm enable <name of package>
to install "uninstalled" app
Code:
adb shell cmd package install-existing <name of package>
my setup: xZ1c stock G8441_47.2.A.11.228, Android 9 + Magisk 20.1 + TWRP 3.3.1
This seems like a good thread to ask.
I went a step further to debloat my XZ1C and deleted all the apks that I thought were unnecessary.
Unfortunately i I deleted the apk responsible for the video editor (the one that pops up for example after taking a 120fps video with the stock camera app). I thought the apk was the one for the movie creator but instead it was the video editor.
I wish for a kind soul to
1. Tell me the package name of the video editor so I won't delete it again.
2. Upload the untouched apk for me so that I can restore it \ tell me how to extract it from the original ftf
reserved for rooted devices optimizations
It removed Play store.
OP thanks for posting this. I think I might try it out. I currently have Lineage 16 on my XZ1 Compact but it has issues with 5Ghz wifi and in my circumstance, I need to put on airplane mode for the GPS to work.
100% newb question - how do I run the script in adb? I've used adb to disable/enable apps but how do I run a batch file? I tried to find answers online but no solid answers.
Edit: found the answer - I double clicked the bat file.
@megaice
"Root not needed for debloat, but necessary for further optimizations. (with underclocked CPUs, tuned RUN_IN_BACKGROUND privilege and BOOT_COMPLETED intent action of installed/system apps, you can reach 7 days on one charge - with deepsleep active 92% of time. /No wakelock tuning/) "
Are this further optimization implemented?
Sent from my [device_name] using XDA-Developers Legacy app
After applying this debloating script, I lag when I go to bluetooth > connection preferences, it works but freezer for 10 seconds, solution?
Edit: Installing uninstalled apps doesn't work, or how to get it work exactly? Use app path or just package name? Does apk has to be on PC or not? Need explanation :/
@megaice thanks for this script.
is it possible to modify the script so it uninstalls the app for all users, not just current or default user?
how to add packages to the script? i have some packages in my version of stock rom, e.g. Prime Video, for which I can't locate the package in /system/app or /system/priv-app
thanks!
wyt18 said:
@megaice thanks for this script.
is it possible to modify the script so it uninstalls the app for all users, not just current or default user?
how to add packages to the script? i have some packages in my version of stock rom, e.g. Prime Video, for which I can't locate the package in /system/app or /system/priv-app
thanks!
Click to expand...
Click to collapse
Hi There,
1) script curently "uninstalls" app for all users, it uninstall it for user 0 (user 0 = root), so all users are affected.
2) you can list and sort installed packages in you rom by android shell command "pm list packages -f". switch -f means show install path. Some examples are here.
Frano35 said:
After applying this debloating script, I lag when I go to bluetooth > connection preferences, it works but freezer for 10 seconds, solution?
I am using bluetooth with BT repro/audio on car and home system without a problem. Did you try connect to other BT hardware?
Edit: Installing uninstalled apps doesn't work, or how to get it work exactly? Use app path or just package name? Does apk has to be on PC or not? Need explanation :/
Click to expand...
Click to collapse
If you want back uninstalled app, you can enable it by "adb shell cmd package install-existing <package_name_of_app>". The app is still on rom in your phone, just deactivated.
[email protected] said:
@megaice
Are this further optimization implemented?
Sent from my [device_name] using XDA-Developers Legacy app
Click to expand...
Click to collapse
Hi, not in .bat files. It's hand work with 2-3 applications. i want to do a bash script, but had no time for it. (family, RL) maybe later.
techno-viking said:
OP thanks for posting this. I think I might try it out. I currently have Lineage 16 on my XZ1 Compact but it has issues with 5Ghz wifi and in my circumstance, I need to put on airplane mode for the GPS to work.
100% newb question - how do I run the script in adb? I've used adb to disable/enable apps but how do I run a batch file? I tried to find answers online but no solid answers.
Edit: found the answer - I double clicked the bat file.
Click to expand...
Click to collapse
Hi Techno-wiking.
Yea, just double bash it with your sword. Btw. you nickname brings back (video) memories....
andacro said:
It removed Play store.
Click to expand...
Click to collapse
Hi there.
Yea, it's feature. You can edit the script and enable google bloat if you want.
megaice said:
Hi There,
1) script curently "uninstalls" app for all users, it uninstall it for user 0 (user 0 = root), so all users are affected.
2) you can list and sort installed packages in you rom by android shell command "pm list packages -f". switch -f means show install path. Some examples are here.
Click to expand...
Click to collapse
thanks! I still see the apk files of the system apps I "uninstalled" when browsing my root folder at /system/app though. and total storage space used has not changed. is that meant to happen?
wyt18 said:
thanks! I still see the apk files of the system apps I "uninstalled" when browsing my root folder at /system/app though. and total storage space used has not changed. is that meant to happen?
Click to expand...
Click to collapse
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
SXUsr said:
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
Click to expand...
Click to collapse
thanks - i do have root and plan to try this approach, but would doing this make safetynet fail?
SXUsr said:
Yes, as all it's doing is disabling, you're better off using Titanium Backup or you can use the pm uninstall -k --user 0 com.insertapp.name if you have root to remove them completely.
Click to expand...
Click to collapse
just tried this but it does not uninstall - it surfaces an error and then does nothing. I'm also not able to uninstall using Titanium backup. Not sure why but I am on stock rom with magisk root, nothing special
wyt18 said:
just tried this but it does not uninstall - it surfaces an error and then does nothing. I'm also not able to uninstall using Titanium backup. Not sure why but I am on stock rom with magisk root, nothing special
Click to expand...
Click to collapse
Try adb shell first then the command.
SXUsr said:
Try adb shell first then the command.
Click to expand...
Click to collapse
yes, have already tried that of course ... error message says cannot uninstall. might be due to the internal drive being encrypted?
Great work! Saved me a lot of time looking for these unwanted package names.
However, the script broke my themes app. Sometimes it even shows a "has stopped" message.
Is this intentional or something went wrong? Which disabled app has to be re-enabled to fix it? Can't really find anything that could stop it from working.
I attached the customized "deb.xz1c.txt" file I've used.
Bash version of the script:
Code:
#!/bin/bash
set -eu
exec 3< ${1:-deb.xz1c.txt}
while read -u 3 LINE; do
[[ $LINE =~ ^#|^$ ]] && continue
APP=${LINE##*=}
echo ======= $APP =======
adb shell am force-stop $APP
adb shell pm clear $APP
if [[ $LINE =~ ^@ ]]; then
adb shell pm disable-user $APP ||:
else
adb shell pm uninstall -k --user 0 $APP ||:
fi
done

Categories

Resources