[Q] How to re-enable the stock launcher (or any disabled app)??? - LG Nitro HD

i am still trying to figure out how to re-enable com.lge.launcher2 as it was disabled and i have no idea how to get it back as primary launcher via command line in ADB.
I can't install it from the SDcard or as an attachment as it says "Application Not Installed" (maybe protected????).
tried "pm install -r com.lge.launcher2 -f" and get:
pkg: com.lge.launcher2 - Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
anyone have any ideas??

Did you just switch launchers or did you freeze it with nobloat/titanium backup? If you are trying to do it with abd are you doing it from a shell terminal or just adb from a command prompt? Did you issue the su command to give yourself superuser priveledges?

I downloaded Go Launcher and switched launchers then did a backup with titanium backup, but when i rebooted after a hard reset (trying things on your phone and screwing up can make that happen sometimes LOL!!) it showed up in TB with a line through it and i cannot restore it, as when i hit restore in TB it hangs at the restore screen.
i am using ADB shell from a PC with XP home.
and yes, after 26 years using computers (and loving linux since 13!!) i did use SU to elevate me to SuperUser.

Settings -> Applications -> Manage Applications
Go to the launcher that you made default and click the 'Clear defaults' button.
---------- Post added at 09:24 AM ---------- Previous post was at 09:23 AM ----------
But you may be looking for something more advanced as it sounds like you may have deleted/removed the application?

clear defaults for the current launcher is not available, greyed out. I wonder if the LGhome2.apk and obex need to be signed or something. i am stumped.
Here's what i have done so far:
copied the LGHome2.apk and LGHome2.obex to the /system/apps/ directory
changed permissions and ownership to the same as other files in the directory
tried renaming them to com.lge.launcher2.apk and com.lge.launcher2.obex, no change.
pm enable lghome2 -f
and
pm install lghome2 -f
pm enable com.lge.launcher2 -f
and
pm install com.lge.launcher2 -f
I went as far as setting the /system and /system/app to Read/Write for the install.
All i get is:
pm install LGHome2
pkg: LGHome2
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
i'm outta my scope now, HELP!?!

Related

[Q] URGENT: Lock Screen stuck with Game Keyboard

Hi all,
I have gotten myself into a bit of a dilemma here - I was playing GTA III with the input method set to "Game Keyboard", and then accidentally pressed the power button on my HOX. Now my phone is stuck with a lock screen (with pin code to unlock), but I cannot enter the pin as the damn game keyboard is set as the input method.
Is there any way to uninstall the game keyboard app from recovery, or a way to change the input method before the unlock screen.
I am running out of ideas, and my last resort is to restore a nandroid backup from a week ago ( I really dont want to do this as this means losing all changes since a week ago).
Any urgent help appreciated.
HTC One X
ARHD 21.0
CWM touch recovery
When you reboot it's still there? Try wiping the dalvik in recovery
Try this...
Code:
adb remount
adb shell
rm /data/app/xxxx.apk
XXX=name of app.apk
is there a way to list the contents of /data/app is adb as I dont know what the name of the apk is
carbon5000 said:
is there a way to list the contents of /data/app is adb as I dont know what the name of the apk is
Click to expand...
Click to collapse
I don't remember the command to mount it to PC via recovery... may b someone else can help you with it... Tried remembering, can't recollect...
Or you can give me the link of the app your using? I can install it and tell you the apk file name! :good:
---------- Post added at 02:38 PM ---------- Previous post was at 02:36 PM ----------
Or you can flash this recovery: http://d-h.st/HiV
It has aroma file manager by which you can take a look...
vin4yak said:
I don't remember the command to mount it to PC via recovery... may b someone else can help you with it... Tried remembering, can't recollect...
Or you can give me the link of the app your using? I can install it and tell you the apk file name! :good:
---------- Post added at 02:38 PM ---------- Previous post was at 02:36 PM ----------
Or you can flash this recovery: http://d-h.st/HiV
It has aroma file manager by which you can take a look...
Click to expand...
Click to collapse
Just realised I have the app installed on my tablet as well, so got the apk name from that - but after running the commands you suggested, I got the following error:
C:\Android\SDK\platform-tools>adb devices
List of devices attached
HT266W104018 recovery
C:\Android\SDK\platform-tools>adb remount
remount failed: Success
C:\Android\SDK\platform-tools>adb shell
~ # rm /data/app/com.locnet.gamekeyboard-1.apk
rm: can't remove '/data/app/com.locnet.gamekeyboard-1.apk': No such file or directory
~ #
am i missing something?
carbon5000 said:
Just realised I have the app installed on my tablet as well, so got the apk name from that - but after running the commands you suggested, I got the following error:
C:\Android\SDK\platform-tools>adb devices
List of devices attached
HT266W104018 recovery
C:\Android\SDK\platform-tools>adb remount
remount failed: Success
C:\Android\SDK\platform-tools>adb shell
~ # rm /data/app/com.locnet.gamekeyboard-1.apk
rm: can't remove '/data/app/com.locnet.gamekeyboard-1.apk': No such file or directory
~ #
am i missing something?
Click to expand...
Click to collapse
Everything seems OK...
Maybe try from the recovery....
Sent from my HTC One X using xda app-developers app
Is it a system app? if so then use this directory:
/system/apps
Also if it doesn't work then put a -r after rm... mostly it's in /data/app
SOLVED: just needed to mount the partitions in recovery before doing the adb commands.
Thanks for your help!!!!

[Q] How to hide OTA update notification?

Does anyone know a method specific to the G2? I'm not worried about missing out on Knock Code right now and don't want to go through the effort required to unroot and root again and reinstall TWRP, but this notification just does not want to go away. I've seen similar threads but for other phones and wanted to make sure this phone doesnt have its own method for system update hiding.
You have to be rooted and use a file explorer to rename otacerts.zip or go under app settings and uncheck notifications for Google Services Framework.
Sent from my LG G3 via Tapatalk Pro
can't seem to disable the notification
haoleflip said:
You have to be rooted and use a file explorer to rename otacerts.zip or go under app settings and uncheck notifications for Google Services Framework.
Sent from my LG G3 via Tapatalk Pro
Click to expand...
Click to collapse
OK, I have done both, but cannot seem to disable the "System update downloaded" Notification.
1st I disabled the "Notification" from Google Services Framework and this didn't seem to make the message go away, even after a reboot.
2nd: I renamed the system etc security otacerts.zip file to otacerts.zip.bak using adb shell.
using these commands:
adb shell
# su
# mount -o rw,remount /system
cd /etc/security
# mv otacerts.zip otacerts.zip.bak
#exit
exit
These two things didn't seem to work. I also, don't care about the update if I need to unroot, and reflash.
Anyone have any ideas?
thanks
---------- Post added at 07:04 PM ---------- Previous post was at 06:43 PM ----------
badkarmah187 said:
OK, I have done both, but cannot seem to disable the "System update downloaded" Notification.
1st I disabled the "Notification" from Google Services Framework and this didn't seem to make the message go away, even after a reboot.
2nd: I renamed the system etc security otacerts.zip file to otacerts.zip.bak using adb shell.
using these commands:
adb shell
# su
# mount -o rw,remount /system
cd /etc/security
# mv otacerts.zip otacerts.zip.bak
#exit
exit
These two things didn't seem to work. I also, don't care about the update if I need to unroot, and reflash.
Anyone have any ideas?
thanks
Click to expand...
Click to collapse
I also renamed /system/app/LGFOTA.apk
and cleared the Google services: Settings -> Apps -> All -> Google Services Framework -> Clear data
message is gone.
I deleted the file, instead of renaming it. I also just held down the notification, went to App info and unchecked the box. Rebooted and had no issues afterwards.

Root for Fire Phone with SuperSU

** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **
** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **​** This method is designed for Amazon fire phone. Do not use it on other devices unless you are familiar with Android file system and are able to apply proper modifications. **​
This has been tested with the unlocked US version running 4.6.1.
This procedure installs superSU root binaries and busybox on your system.
Requirements
Make sure your PC can communicate with your fire phone via adb.
The success of this method depends on following the procedure very carefully. So read the instructions and make sure you understand every step before you try it.
Procedure
1- Install and run Kingroot 4.0. You can google and download it or you can use the one in the attached zip file. When Kingroot runs it is all in Chinese, but basically you need to be connected to the internet for it to work. It will do its thing and show progress up to 100% after which you can exit the program. Now your phone is rooted. The following steps replaces the Kinguser with SuperSU.
2- Unzip the attached file in your adb directory and then open an adb terminal and make sure the PC can see your phone (you can check that by typing adb devices). Then type the following:
Code:
adb push su /data/local/tmp
adb push busybox /data/local/tmp
adb shell
3- In the shell that you get type the following and make sure you give the permission when the phone prompts you:
Code:
su
4- Continue by typing the following commands:
Code:
mount -o remount,rw /system
cat /data/local/tmp/su >/system/xbin/daemonsu && chmod 0755 /system/xbin/daemonsu
cat /data/local/tmp/busybox >/system/xbin/busybox && chmod 0755 /system/xbin/busybox
daemonsu -d &
The key is to keep this session running while you continue with the rest, so be careful with typos and monitor this window for any errors.
5- At this point, leave the adb terminal window running and go to your phone, open the Kinguser app, open settings (the wheel at the top right corner of the screen), Root authorization setting, and Remove Root permission. The app will self-uninstall.
6- Uninstall the other two Kingroot programs that are still on your phone (KingRoot and the other one with the blue icon and Chinese text under it).
7- Back to the adb terminal, and type the following:
Code:
cat /data/local/tmp/su >/system/xbin/su && chmod 0755 /system/xbin/su
busybox chattr -ia /system/xbin/ku.sud
busybox chattr -ia /system/xbin/supolicy
rm /system/xbin/ku.sud
rm /system/xbin/supolicy
rm /system/bin/rt.sh
rm /system/bin/install-recovery.sh
rm /system/bin/shipclean
rm /system/bin/start-ssh
busybox chattr -ia /system/etc/install-recovery.sh
busybox chattr -ia /system/etc/install-recovery.sh-ku.bak
rm /system/etc/install-recovery.sh
rm /system/etc/install-recovery.sh-ku.bak
rm /system/etc/install_recovery.sh
rm /system/usr/icu/icusuflag.conf
busybox chattr -ia /system/usr/iku/isu
rm -rf /system/usr/iku
rm /system/kroot_*
rm /sdcard/kr-stock-conf
rm -rf /sdcard/Kingroot
rm -rf /data/data-lib/com.kingroot.RushRoot
rm -rf /data/data-lib/com.kingroot.kinguser
rm -rf /data/data-lib/king
Again, leave the adb terminal window running and go to your phone.
8- Install superSU (from the attached file) on your phone, run it, and let it update the SU binary.
9- Reboot the phone. After about 5 minutes your root is ready.
Hint: It is a good idea to disable Amazon device client platform, DCP platform contracts, and two apps called System Updates in Amazon settings. They are responsible for regular updates, constant chatter with Amazon servers, and possible patching of your root exploit. Also disable Kinesis service which is responsible for major battery drain and heating. You will find it under settings, display, configure motion and gesture settings. Disable all.
Troubleshooting
1- Most of the problems that I noticed people have encountered is due to not reading the instructions fully. So make sure you read the OP word by word.
2- If you miss a step or mess up something go back to installing Kingroot and start over from the beginning.
3- If instant video or some other Amazon app doesn't work it is because you should run them at least once prior to rooting the phone.
4- Finally, I noticed that with an AT&T sim card in the phone Kingroot fails (why am I not surprised?) Either a reboot occurs in the middle of rooting or it completes the cycle without accomplishing root. If that occurs, my best advice is to change your phone company. If that fails, you may need to factory reset your phone or even install the firmware from scratch and try again without the sim card.
Okay. Working. I tried it 2 Times because i get in troubles with the SuperSu App.
After First Time i Cant open it anymore after adb shell.
Second Time i installed SuperSu, but after adbshell the app was gone (!?) - but i installed it again with adb shell before reboot. Now SuperSu is Working.
And now tell me how to change the FireOS to a Android Status Bar with Notifications, and youre my Hero ;D
najoor said:
** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **
** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **​
This has been tested with the unlocked US version running 4.6.1.
Requirements
Make sure your PC can communicate with your fire phone via adb.
The success of this method depends on following the procedure very carefully. So read the instructions and make sure you understand every step before you try it.
Procedure
1- Install and run Kingroot 4.0. You can google and download it or you can use the one in the attached zip file. When Kingroot runs it is all in Chinese, but basically you need to be connected to the internet for it to work. It will do its thing and show progress up to 100% after which you can exit the program. Now your phone is rooted. The following steps replaces the Kinguser with SuperSU.
2- Unzip the attached file in your adb directory and then open an adb terminal and make sure the PC can see your phone (you can check that by typing adb devices). Then type the following:
Code:
adb push su /data/local/tmp
adb push busybox /data/local/tmp
adb shell
3- In the shell that you get type the following and make sure you give the permission when the phone prompts you:
Code:
su
4- Continue by typing the following commands:
Code:
mount -o remount,rw /system
cat /data/local/tmp/su >/system/xbin/daemonsu && chmod 0755 /system/xbin/daemonsu
cat /data/local/tmp/busybox >/system/xbin/busybox && chmod 0755 /system/xbin/busybox
daemonsu -d &
The key is to keep this session running while you continue with the rest, so be careful with typos and monitor this window for any errors.
5- At this point, leave the adb terminal window running and go to your phone, open the Kinguser app, open settings, Root authorization setting, and Remove Root permission .
6- Uninstall the other two Kingroot programs that are still on your phone (KingRoot and the other one with the blue icon and Chinese text under it).
7- Back to the adb terminal, and type the following:
Code:
cat /data/local/tmp/su >/system/xbin/su && chmod 0755 /system/xbin/su
busybox chattr -ia /system/xbin/ku.sud
busybox chattr -ia /system/xbin/supolicy
rm /system/xbin/ku.sud
rm /system/xbin/supolicy
rm /system/bin/rt.sh
rm /system/bin/install-recovery.sh
busybox chattr -ia /system/etc/install-recovery.sh
rm /system/etc/install-recovery.sh
busybox chattr -ia /system/etc/install-recovery.sh-ku.bak
rm /system/etc/install-recovery.sh-ku.bak
rm /system/kroot_*
rm /sdcard/kr-stock-conf
rm -rf /sdcard/Kingroot
rm /system/usr/icu/icusuflag.conf
busybox chattr -ia /system/usr/iku/isu
rm -rf /system/usr/iku
Again, leave the adb terminal window running and go to your phone.
8- Install superSU (from the attached file) on your phone, run it, and let it update the SU binary.
9- Reboot the phone. After about 5 minutes your root is ready.
Hint: It is a good idea to disable Amazon device client platform, DCP platform contracts, and two apps called System Updates in Amazon settings.
Click to expand...
Click to collapse
Not sure what I'm doing wrong but everything works till I get to rm stage of step 7. Im getting 255 read only file system error. Any ideas what I did wrong. since it didnt work to I have reinstall Kingroot and start over or do I start over from the adb shell part?
Viperise152 said:
Not sure what I'm doing wrong but everything works till I get to rm stage of step 7. Im getting 255 read only file system error. Any ideas what I did wrong. since it didnt work to I have reinstall Kingroot and start over or do I start over from the adb shell part?
Click to expand...
Click to collapse
Do you close the adb window between steps 4 and 7? Step 7 should be continued in the window that you left open in step 4.
Do you get any error message after you type each command in part 4?
To redo the process you should install the Kingroot again and stay overt from the beginning.
I did not get any errors for part 4 just when I get to the first rm command in part 7, I'm getting (rm failed for /system/xbin/ku.sud, Read-only file system). Is that normal?
FIXED!!!
Ok i was not following this step properly "open the Kinguser app, open settings, Root authorization setting, and Remove Root permission ." I was not doing through that Root authorization setting which was a few slots down.
Viperise152 said:
Not sure what I'm doing wrong but everything works till I get to rm stage of step 7. Im getting 255 read only file system error. Any ideas what I did wrong. since it didnt work to I have reinstall Kingroot and start over or do I start over from the adb shell part?
Click to expand...
Click to collapse
Please copy and paste the entire content of the adb terminal up to the point that you get the error message and send it to me via pm so I can debug it.
najoor said:
Please copy and paste the entire content of the adb terminal up to the point that you get the error message and send it to me via pm so I can debug it.
Click to expand...
Click to collapse
I still had this page open while I was giving it another go. I figured out what i was doing wrong. The " open the Kinguser app,open settings, Root authorization setting, and remove root permission." part I was just opening Kinguser settings and hitting the big center button turning it off. Did'nt realize i had to go down a few slots to the Root Authorization Setting then hit the Remove Root Permission. After i did it right Kinguser disappeared unistalled the other 2 apps. Everything after that work fine then. Thanks for trying to help me out. Maybe my confusion will help others.
Viperise152 said:
I still had this page open while I was giving it another go. I figured out what i was doing wrong. The " open the Kinguser app,open settings, Root authorization setting, and remove root permission." part I was just opening Kinguser settings and hitting the big center button turning it off. Did'nt realize i had to go down a few slots to the Root Authorization Setting then hit the Remove Root Permission. After i did it right Kinguser disappeared unistalled the other 2 apps. Everything after that work fine then. Thanks for trying to help me out. Maybe my confusion will help others.
Click to expand...
Click to collapse
Thanks for updating with what you were doing wrong. I was having the same issue. Cheers!
funkadelik said:
Thanks for updating with what you were doing wrong. I was having the same issue. Cheers!
Click to expand...
Click to collapse
And me too I should have read your post instead of bugging najoor who has been a great help to resolve my SuperSU
installation
Great thread :good::good:
thx for the guide.
can you explain why it is better to have SuperSu. What is wrong with kingsu?
planning to do this soon, cheers for the guide
so what is safe to remove out of the stock apps
veti said:
thx for the guide.
can you explain why it is better to have SuperSu. What is wrong with kingsu?
Click to expand...
Click to collapse
King user might even be a better SU than superSU, who knows? The problem is that we don't know kinguser. We don't know who wrote it, we don't know what kind of information it gathers, we don't know if it puts a backdoor exploit in your OS, etc. Super SU is a tool that we have used for years. We know exactly what supersu does and who wrote it. We can even communicate with him on xda. Chainfire, the author of SuperSU even has a weblog that he often uses to talk about the intricacies of designing a tool like superSU. There is almost nothing unknown or suspicious about superSU.
On the contrary kingroot/kinguser seems to be intrusive and sneaky. The first thing it does after rooting your phone is to install some random app on it that has nothing to do with rooting and at best I can describe it as bloat. It saves files and folders all over your phone for no apparent reason. Then, it does everything it can to prevent you from removing it. In effect, the only straightforward way to remove it is to give up root, and even then it very suspiciously leaves some executable files behind that God knows if they are sleeper cells or what. To devise the procedure in the OP I had to go through an extensive search to find every little carp that king user has planted into the system and truth be told I will not be surprised if I discover more hidden gems left behind.
The corrected op guide worked great. I had to tap a blue rectangle at two different times to get kingroot to finish (get to a screen that had 100% on it), but other than that, everything worked.
najoor said:
King user might even be a better SU than superSU, who knows? The problem is that we don't know kinguser. We don't know who wrote it, we don't know what kind of information it gathers, we don't know if it puts a backdoor exploit in your OS, etc. Super SU is a tool that we have used for years. We know exactly what supersu does and who wrote it. We can even communicate with him on xda. Chainfire, the author of SuperSU even has a weblog that he often uses to talk about the intricacies of designing a tool like superSU. There is almost nothing unknown or suspicious about superSU.
On the contrary kingroot/kinguser seems to be intrusive and sneaky. The first thing it does after rooting your phone is to install some random app on it that has nothing to do with rooting and at best I can describe it as bloat. It saves files and folders all over your phone for no apparent reason. Then, it does everything it can to prevent you from removing it. In effect, the only straightforward way to remove it is to give up root, and even then it very suspiciously leaves some executable files behind that God knows if they are sleeper cells or what. To devise the procedure in the OP I had to go through an extensive search to find every little carp that king user has planted into the system and truth be told I will not be surprised if I discover more hidden gems left behind.
Click to expand...
Click to collapse
Thank you _so_ much for your effort. I was doing some research too in advance prior to installing kingroot, but didn't get near as much useful information. Sniffing the network connection for any suspicious behaviour via wireshark and my router wasn't successful at all, as they use https.
I came up with the idea that they could have patched some of the system-apps to load an payload even after you tried to "delete everything"(tm). I am currently checking the MD5 and SHA-1 checksum of a identical, second Firephone without root.
---------- Post added at 09:09 PM ---------- Previous post was at 09:05 PM ----------
Also the Mods should pin your post. I totally agree that KingRoot uses intrusive behaviour - as it seems mostly for statistics, but anyway - and should be replaced with the method described in the OP.
EDIT: The MD5 checksum of an unrooted firephone is identical. The System apps might not have been replaced or touched at all. I didn't got a easy chance to check all apps with the SHA-1 checksum though.
Followed the directions and got the root with 0 issues
Just saw this article saying root is now achievable w/ SuperSU via Towelroot: http://dottech.org/180812/how-to-root-amazon-fire-phone-on-android-4-4-kitkat-guide/
Can anyone verify?
amf100 said:
Just saw this article saying root is now achievable w/ SuperSU via Towelroot: http://dottech.org/180812/how-to-root-amazon-fire-phone-on-android-4-4-kitkat-guide/
Can anyone verify?
Click to expand...
Click to collapse
No, it doesn't work. When you run it, the towelroot app pops up a message saying the phone is currently not supported.
Hmph! That's too bad. I wasn't with my fire phone to check for myself. The internet is so weird lol. Why make a whole page with instructions for nothing? Ugh lol
rm /system/bin/rt.sh
Click to expand...
Click to collapse
This part is not working for me. Can't seem to remove it with root explorer either. Any tips?
Im on 4.6.1 with SuperSu. If im Sideload 4.6.1 again and do an Factory Reset. Is root gone? Because Amazon send me New One Because Hardware issues

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

How to Modify System files in OOS 10?

Hi,
I want to modify system files in OOS 10 but every method just fails.
Root File manager are shows that they delete the app, but it comes back after reboot.
I can delete app in TWRP but when boot up the OS, the app is back there. If I go in TWRP again to that directory the app doesn't exist but OS has the app there when booted up again. So TWRP is also failing me.
Debloater from magisk seem to work and is able to delete the apps but my main problem is that I want to modify build.prop but I can't as of yet. Nothing is able to save changes and it back to original state after reboot.
Has anyone manage to get proper access to be able to modify to system files via file manager or TWRP?
To edit build prop in oos 10 install magisk hide props config and busy box. Then open terminal and type props and choose options to add remove or change lines. Will keep researching and add a working way to change any system file but if it's anything getting put into the system twrp and magisk modules work but removing files and editing by removing bits doesn't seem to work through twrp.
---------- Post added at 02:20 PM ---------- Previous post was at 02:00 PM ----------
Appears you can mount in ADB to edit files and replace bits etc. Using the command " mount -o rw,remount / " without brackets and spaces beginning and end. Not to strong of a user with ADB but if I use the command to move an app to system combined with the mentioned command it lets me make a folder on system and puts the app into system.
So surely you can extract any file from system with ADB and then re insert it while mounted. It's long winded compared to root explorers but with Android 10 system being read only we may have to wait for a new method through root to do this again if ever possible at all.
This doesn't effect the ability to edit any part of the system for the purposes of custom ROMs but makes it near impossible to edit a running/installed ROM in Android 10 (atleast in stock os)
1. adb definitely works for uninstalling system apps. All you need to do is open an adb shell and run the following command,
Code:
pm list packages
pm uninstall --user 0 <package_name>
The list packages command will give you the appropriate package name
I use this myself and can confirm it works. I am running OOS 10 Open Beta 2.
2. I think you should be able to edit build.prop through adb shell. In case you run into /system mounting issues, reboot into recovery, manually mount system and run adb in recovery itself.
I haven't done this myself, so please tell me if it works!

Categories

Resources