MicroG on S20 FE 5G with SafetyNet Pass OneUI 4.1 & OneUI 5.0 - Samsung Galaxy S20 FE Guides, News, & Discussion

MicroG with Stock OneUI 4.1 ROM
If you read it then you know what is MicroG...
I made this tutorial from my own tests with S20 FE 5G. This is possible that i removed too much google apps but nessesery are Google Play Services, Google services framework and Google Play Store.
Installing MicroG in Stock ROM is more difficult than with Custom ROM which doesn't have gapps.
Code:
I am not responsible for bricked devices.
!!!!!MAKE BACKUP in TWRP BEFORE YOU START!!!!!
!!!!!BACKUP is only one way to recover GAPPS if something gone wrong!!!!!
Those steps i have done to get MicroG working with SafetyNet passed.
1. Install Magisk here (Canary is too fine) -> Enable Zygisk but DO NOT enable Enforce DenyList
2. Install latest Universal SafetyNet Fix from here (at writing time latest was 2.2.1 Zygisk) -> (Check if gapps pass safetynet if not you need fix it first with gapps here)
3. When you pass SafetyNet with gapps -> Install LSPosed Zygisk here (at writing time latest was 1.8.2)
4. Install FakeGapps here (Must be v3.1 or v3.2 which support Android 12)
5. Enable FakeGapps in LSposed(default settings are fine! Only System Framework checked) -> Reboot
6. Time to remove Gapps:
I made little script which could help with removing gapps with ADB:
6.1. Remove Google apps updates (Without it MicroG crashes)
#Remove updates from apps: (WARN i removed those apps but might be enough to remove Google Play Services, Google services framework and Google Play Store (Google Play Store special version are you going to install back...)
adb uninstall com.google.android.gms
#Google Play Store
adb uninstall com.android.vending
#Google services framework
adb uninstall com.google.android.gsf
#Market-feedbackagent
adb uninstall com.google.android.feedback
#Google Partner Setup
adb uninstall com.google.android.partnersetup
#Google Partner Setup
adb uninstall com.google.android.partnersetup
#Google Android Setup
adb uninstall com.google.android.setupwizard
#Google One Time Init
adb uninstall com.google.android.onetimeinitializer
#Google Velvet (Search App)
adb uninstall com.google.android.googlequicksearchbox
##6.2. Remove google apps and permission files - if you don't remove permissions files installing MicroG magisk module give you permission error: (Like with removing updates you don't need to remove everything)
adb shell
su
mount -o rw,remount -t ext4 /product
rm -f /product/etc/permissions/privapp-permissions-google-product.xml
rm -f /product/etc/permissions/split-permissions-google.xml
rm -f /product/etc/permissions/turboapk-permissions.xml
rm -f /product/etc/permissions/carrerwifi.xml
rm -f /product/etc/default-permissions/default-permissions-google.xml
rm -rf /product/priv-app/GmsCore
rm -rf /product/priv-app/GoogleOneTimeInitializer
rm -rf /product/priv-app/GooglePartnerSetup
rm -rf /product/priv-app/GoogleRestore
rm -rf /product/priv-app/Phonesky
rm -rf /product/priv-app/Turbo
rm -rf /product/priv-app/Velvet
#If in TWRP:
mount -o rw,remount -t ext4 /system_root
rm -rf /system_root/system/system_ext/priv-app/GoogleServicesFramework
rm -rf /system_root/system/system_ext/priv-app/SetupWizard
#In System:
mount -o rw,remount -t ext4 /system
rm -rf /system/system_ext/priv-app/GoogleServicesFramework
rm -rf /system/system_ext/priv-app/SetupWizard
reboot
Ignore spam of apps which need google play services...
7. Install MinMicroG Standard here (Look which version is best for you here if you removed Google Play Store you need one which have it)
reboot
8. Now you can get MicroG crash it is because of not granted permissions.
9. Install Terminal Emulator -> execute as root "su" -> run command npem to grant most of permissions
10. Start MicroG -> Self-Check -> System spoofs signature must be checked! Click at all another permissions which aren't checked and grant it (enable location before)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
11. When everything is checked go to Google device registration -> Enable it
12. Go to Cloud Messaging -> Enable Receive push notifications
13. Go to Google SafetyNet -> Enable Allow device attestion ( Might you can now pass safety net check it with "Test SafetyNet attestion"
14. Go to Location modules and enable which Network-based Geolocation module you want and Address lookup module.
15. This step is needed to hide root from apps
15.1. Install Magisk module Shamiko here which works like old Magisk Hide and uses Zygisk "DenyList" when "Enforce DenyList" IS NOT enabled
15.2. Choose your Apps which don't like root in DenyList
15.3. reboot
Known bugs:
Cloud Messaging: Some apps register Cloud Messaging ONLY ONCE after install. If you have used long time gapps and have Whatsapp, Signal etc... Run they and look if in Cloud Messaging are they added, if not you need clean data and start they again or reinstall apps.
If you have beter steps i could update my Tutorial! ;]

Svirusx said:
MicroG with Stock OneUI 4.1 ROM
If you read it then you know what is MicroG...
I made this tutorial from my own tests with S20 FE 5G. This is possible that i removed too much google apps but nessesery are Google Play Services, Google services framework and Google Play Store.
Installing MicroG in Stock ROM is more difficult than with Custom ROM which doesn't have gapps.
Code:
I am not responsible for bricked devices.
!!!!!MAKE BACKUP in TWRP BEFORE YOU START!!!!!
!!!!!BACKUP is only one way to recover GAPPS if something gone wrong!!!!!
Those steps i have done to get MicroG working with SafetyNet passed.
1. Install Magisk here (Canary is too fine) -> Enable Zygisk but DO NOT enable Enforce DenyList
2. Install latest Universal SafetyNet Fix from here (at writing time latest was 2.2.1 Zygisk) -> (Check if gapps pass safetynet if not you need fix it first with gapps here)
3. When you pass SafetyNet with gapps -> Install LSPosed Zygisk here (at writing time latest was 1.8.2)
4. Install FakeGapps here (Must be v3.1 or v3.2 which support Android 12)
5. Enable FakeGapps in LSposed(default settings are fine! Only System Framework checked) -> Reboot
6. Time to remove Gapps:
I made little script which could help with removing gapps with ADB:
6.1. Remove Google apps updates (Without it MicroG crashes)
#Remove updates from apps: (WARN i removed those apps but might be enough to remove Google Play Services, Google services framework and Google Play Store (Google Play Store special version are you going to install back...)
adb uninstall com.google.android.gms
#Google Play Store
adb uninstall com.android.vending
#Google services framework
adb uninstall com.google.android.gsf
#Market-feedbackagent
adb uninstall com.google.android.feedback
#Google Partner Setup
adb uninstall com.google.android.partnersetup
#Google Partner Setup
adb uninstall com.google.android.partnersetup
#Google Android Setup
adb uninstall com.google.android.setupwizard
#Google One Time Init
adb uninstall com.google.android.onetimeinitializer
#Google Velvet (Search App)
adb uninstall com.google.android.googlequicksearchbox
6.2. ##Remove google apps and permission files - if you don't remove permissions files installing MicroG magisk module give you permission error: (Like with removing updates you don't need to remove everything)
adb shell
su
mount -o rw,remount -t ext4 /product
rm -f /product/etc/permissions/privapp-permissions-google-product.xml
rm -f /product/etc/permissions/split-permissions-google.xml
rm -f /product/etc/permissions/turboapk-permissions.xml
rm -f /product/etc/permissions/carrerwifi.xml
rm -f /product/etc/default-permissions/default-permissions-google.xml
rm -rf /product/priv-app/GmsCore
rm -rf /product/priv-app/GoogleOneTimeInitializer
rm -rf /product/priv-app/GooglePartnerSetup
rm -rf /product/priv-app/GoogleRestore
rm -rf /product/priv-app/Phonesky
rm -rf /product/priv-app/Turbo
rm -rf /product/priv-app/Velvet
#You need too remove com.google.android.gsf (Google services framework) but i don't remember where it was...
reboot
Ignore spam of apps which need google play services...
7. Install MinMicroG Standard here (Look which version is best for you here if you removed Google Play Store you need one which have it)
reboot
8. Now you can get MicroG crash it is because of not granted permissions.
9. Install Terminal Emulator -> execute as root "su" -> run command npem to grant most of permissions
10. Start MicroG -> Self-Check -> System spoofs signature must be checked! Click at all another permissions which aren't checked and grant it (enable location before)
View attachment 5595669
11. When everything is checked go to Google device registration -> Enable it
12. Go to Cloud Messaging -> Enable Receive push notifications
13. Go to Google SafetyNet -> Enable Allow device attestion ( Might you can now pass safety net check it with "Test SafetyNet attestion"
View attachment 5595673
14. Go to Location modules and enable which Network-based Geolocation module you want and Address lookup module.
View attachment 5595671
15. This step is needed to hide root from apps
15.1. Install Magisk module Shamiko here which works like old Magisk Hide and uses Zygisk "DenyList" when "Enforce DenyList" IS NOT enabled
15.2. Choose your Apps which don't like root in DenyList
15.3. reboot
Known bugs:
Cloud Messaging: Some apps register Cloud Messaging ONLY ONCE after install. If you have used long time gapps and have Whatsapp, Signal etc... Run they and look if in Cloud Messaging are they added, if not you need clean data and start they again or reinstall apps.
If you have beter steps i could update my Tutorial! ;]
Click to expand...
Click to collapse
really amazing, setupwizard and google framework are in system_ext/priv-app, the only issue I have was the playstore but after reinstall work fine.

Doesn't FakeGapps slow down app open time, though? It did on my S9+.

DzbanCban said:
Doesn't FakeGapps slow down app open time, though? It did on my S9+.
Click to expand...
Click to collapse
I didn't saw any slowdown of my s20 FE 5G.

Svirusx said:
I didn't saw any slowdown of my s20 FE 5G.
Click to expand...
Click to collapse
Oh, that's good! Thanks for letting me know.

could someone please explain step
6.2. ##Remove google apps and permission files - if you don't remove permissions files installing MicroG magisk module give you permission error: (Like with removing updates you don't need to remove everything)
adb shell
su
mount -o rw,remount -t ext4 /product
rm -f /product/etc/permissions/privapp-permissions-google-product.xml
rm -f /product/etc/permissions/split-permissions-google.xml
rm -f /product/etc/permissions/turboapk-permissions.xml
rm -f /product/etc/permissions/carrerwifi.xml
rm -f /product/etc/default-permissions/default-permissions-google.xml
rm -rf /product/priv-app/GmsCore
rm -rf /product/priv-app/GoogleOneTimeInitializer
rm -rf /product/priv-app/GooglePartnerSetup
rm -rf /product/priv-app/GoogleRestore
rm -rf /product/priv-app/Phonesky
rm -rf /product/priv-app/Turbo
rm -rf /product/priv-app/Velvet
#You need too remove com.google.android.gsf (Google services framework) but i don't remember where it was...
reboot
and
step 9. Install Terminal Emulator -> execute as root "su" -> run command npem to grant most of permissions.
am i to go on command prompt to type this and what do I exactly type?
Have anyone else also removed the playstore completely and used the likes of aurora/f-droid instead?

Once i installed microg via magisk; cause i dont have twrp flashed, my phone reboots everytime after 15 seconds. i am able to within that time uninstall microg from magisk and the rebooting problems goes away.
Have any idea why it does this.
Also how to i reinstall google play services, GSF and Play store, ive tried redownloading the apk and installing them that way but seems to crash.

SteveJames99 said:
Once i installed microg via magisk; cause i dont have twrp flashed, my phone reboots everytime after 15 seconds. i am able to within that time uninstall microg from magisk and the rebooting problems goes away.
Have any idea why it does this.
Also how to i reinstall google play services, GSF and Play store, ive tried redownloading the apk and installing them that way but seems to crash.
Click to expand...
Click to collapse
to be part of the system you'd need twrp to install microG, likewise with play services et al.
play services etc isn't installed as an apkit's pasted to the correct folder and then has it's permissions fixed. you definitely need root to do this or to do from twrp and to use chmod.
remember that magisk is systemless i.e. it doesn't touch the system partition.

Hello
Is reCaptcha (in apps login verification) works as should?

Hello, my Play store not working, why ??
app stiil is off
Help
I not can step 6.2 make
1|r8q:/ # mount -o rw,remount -t ext4 /product
mount: '/dev/block/dm-5'->'/product': I/O error
1|r8q:/ #
or
1|r8q:/ # rm -f /product/etc/permissions/privapp-permissions-google-product.xml
rm: /product/etc/permissions/privapp-permissions-google-product.xml: Read-only file system

Yo big thanks,
I was getting some errors uninstalling apps so I used pm uninstall -k --user 0 {aplication} in an adb shell.
also it was not letting me remount /system as rw so instead I remounted / (root) and it worked fine
working on my s20fe 4g exynos <3

@Svirusx would it be any help if I made a version of OneUI 5 that had all those packages removed before it was built ?

Hi, anyone can test if games who needs to login with Google Play Games work? Thank you.

Related

[Q] "Installation unsuccessful" for Google Voice Search

I've been trying to download Google Voice Search on my Evo running Cyanogenmod 6 8-10. Every time I try to download it though, I get "Installation unsuccessful". Is anyone else having the same problem? This is the only app I've had problems downloading.
Hairongreenfire said:
I've been trying to download Google Voice Search on my Evo running Cyanogenmod 6 8-10. Every time I try to download it though, I get "Installation unsuccessful". Is anyone else having the same problem? This is the only app I've had problems downloading.
Click to expand...
Click to collapse
I'm not sure of the cause, but I am having the same problem as well.
I'm having the same issue as well.
Going into Settings -> Force Stop on the Voice Search app already installed didn't resolve the issue.
I will keep looking for a solution personally ...
my solution was
download and install titanium backup
uninstall voice search via that,
reboot
install new one
worked for me
Jsimon9633 said:
my solution was
download and install titanium backup
uninstall voice search via that,
reboot
install new one
worked for me
Click to expand...
Click to collapse
Will try and report back -- thank you!!
Edit: This worked! Thanks!!
aikeru said:
Will try and report back -- thank you!!
Click to expand...
Click to collapse
I removed it using adb shell, and rebooted and it worked.
The google search widget won't install so I'm going to try the same thing. Also, I need to find the clock app to be able to do "Set Alarm" with it.
Jsimon9633 said:
my solution was
download and install titanium backup
uninstall voice search via that,
reboot
install new one
worked for me
Click to expand...
Click to collapse
Tried this, it hasn't worked for me. I get 'download unsuccessful.'
EDIT: Rebooted again, it worked this time.
Thanks for the quick reply, Jsimon, it worked perfect!
i had the same issue also. possibly because voice search was an existing embedded application in the system folder. I also had to remove via root explorer, reboot and re download. thank god for root
Uninstall version 1.6 with Titanium Backup first...
I had to do the same thing.
I was getting the "manual update required" error. Used TB to uninstall version 1.6. ADB reboot and then I installed version 2.1 from the market.
Works like a champ. This is true useful functionality!
Whats the adb command that I type into terminal to delete this? It won't let me delete in TB or Root Explorer or anything. Says I don't have permissions.
NEVERMIND, GOT THIS TO WORK!
I used Root Explorer to remove Voice Search and then rebooted Evo. Hit up the Market and DL'd Voice Search with a perfect install. Good Luck.
I was having the same problem and the TB work-around worked well for me. So thank you for that. This may or may not be related, but does anyone have any issues purchasing applications from the market? I have been trying to buy, "Tasker," for the better part of the last week and every time I go to enter my card information it fails.
How to get this trick work with Google Search from the Market?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Fixed
This worked for me running Cyanogenmod 6-RC2 on US MT3G:
from http://forum.cyanogenmod.com/topic/4231-installing-updated-voice-search/
Anyway, if you have adb, plug into usb and run:
Code:
adb pull /system/app/ ~/Desktop/app/
adb remount
adb shell rm -f /system/app/VoiceSearch.apk
adb shell pm uninstall com.google.android.voicesearch
adb shell rm -f /system/app/GoogleQuickSearchBox.apk
adb shell pm uninstall com.google.android.googlequicksearchbox
If you don't, open Terminal Emulator on your phone (This does NOT backup the .apk's, so proceed at your own risk!) and run:
Code:
su
mount -o rw,remount /system
rm -f /system/app/VoiceSearch.apk
pm uninstall com.google.android.voicesearch
rm -f /system/app/GoogleQuickSearchBox.apk
pm uninstall com.google.android.googlequicksearchbox
Your old out of date versions are now removed. Now go to the Market and install "Voice Search" and "Google Search".
WORKING!
Thanks ryanclemson!
Thanks Jsimon9633! It worked perfectly!
Im running CM's nightlys. I am trying to get this working also. Just a question, when I go to adb shell, I get "#" not "$". Shouldnt I have $?
RichTJ99 said:
Im running CM's nightlys. I am trying to get this working also. Just a question, when I go to adb shell, I get "#" not "$". Shouldnt I have $?
Click to expand...
Click to collapse
# means root access
$ means no root
ryanclemson said:
This worked for me running Cyanogenmod 6-RC2 on US MT3G:
from http://forum.cyanogenmod.com/topic/4231-installing-updated-voice-search/
Anyway, if you have adb, plug into usb and run:
Code:
adb pull /system/app/ ~/Desktop/app/
adb remount
adb shell rm -f /system/app/VoiceSearch.apk
adb shell pm uninstall com.google.android.voicesearch
adb shell rm -f /system/app/GoogleQuickSearchBox.apk
adb shell pm uninstall com.google.android.googlequicksearchbox
If you don't, open Terminal Emulator on your phone (This does NOT backup the .apk's, so proceed at your own risk!) and run:
Code:
su
mount -o rw,remount /system
rm -f /system/app/VoiceSearch.apk
pm uninstall com.google.android.voicesearch
rm -f /system/app/GoogleQuickSearchBox.apk
pm uninstall com.google.android.googlequicksearchbox
Your old out of date versions are now removed. Now go to the Market and install "Voice Search" and "Google Search".
Click to expand...
Click to collapse
get the following error when attempting:
rm failed for -f. read only file system
any ideas??

Install Google Play on chinese tablets (Logicom TAB752)

This forum helped me in reaching the purpose. So I'd like to share the path I followed.
The Logicom TAB752 is quite "hard" to root, as it is not pre-rooted and not supported or even recognized by most software.
As said in other posts you need "USB debugging" enabled and "ADB drivers" installed together with adb software.
(A good distribution of ADB software and drivers comes with the "CyanogenMod" software)
After failures in getting root access with many popular methods I have been finally able to install the "su" command by using the "Cydia Impactor" (search on Google). It seems this software is able to get superuser acces on most of the "chinese" and ultra-low cost stuff now on the market.
After that, you can follow one of the tutors from this or other forums.
In very brief summary, opening a DOS shell in the folder where ADB is installed:
- adb shell
- su
- mount -o remount,rw /system
- busybox cp "filetobecopied.apk" /system/app/
- chmod 644 /system/app/"filetobecopied.apk"
- chown root.root /system/app/"filetobecopied.apk"
- reboot
where "filetobecopied.apk" is this list of apps (get them from gapps, with the version suitable for your Android release):
- OneTimeInitializer.apk
- Phonesky.apk
- GoogleLoginService.apk
- GoogleFeedback.apk
Ciao and good luck!

Google pay not working

No matter what i Google pay says my phone is rooted or modified. Does anyone know how to fix that? Magisk is passing safetynet fine.
I deleted the folder:
/data/data/com.google.android.gms
And Google pay worked fine after. With unlocked bootloader and magisk installed, on xiaomi.eu ROM. I deleted it from TWRP file manager, but any root file manager app should be able to do it.
Thanks man that works.
Same issue with updated rom. this time the fix doesn't work
Try this: https://forum.xda-developers.com/ap...7-1-22-pie-t3929950/post79539753#post79539753
It works for me, Magisk module + commands in terminal, without reboot.
MiuiEu 9.5.30
I did:
am force-stop /data/data/com.google.android.apps.walletnfcrel
chmod 777 /data/data/com.google.android.gms/databases/dg.db
sqlite3 /data/data/com.google.android.gms/databases/dg.db "update main set c='0' where a like '%attest%';"
sqlite3 /data/data/com.google.android.gms/databases/dg.db "update main set c='0' where a like '%attest%';"
/I closed terminal for exit sqlite & re-open/
chmod 444 /data/data/com.google.android.gms/databases/dg.db
You can accept the card without the description.
I'm using latest XenonHD (seems close to LineageOS).
I successfully added a card and made Google Pay think the phone is not rooted. Still, paying doesn't work with terminals. Has anyone here actually tried to pay with this phone on custom OS?

[Guide] GPS Setup Without GAPPS -- RC4

Hello,
These are instructions for making GPS work for users who did not choose to install Google Play Services (GAPPS).
Please note that the following steps worked for me, and I am posting here in case they help someone. They may not work for you, and I do not bear any responsibility if you damage your phone in any way while following this guide. Proceed at your own risk!
Note: you'd need adb tools set-up on your system. The following commands I ran on a Linux system.
==
Some Background Info:
On a vanilla install of this ROM, we get the UnifiedNlp (GAPPS) system pre-installed as a system app.
You can confirm if you have this in your phone, by running this command:
Code:
adb shell pm list packages org.microg.nlp
SatStat and OsmAnd don't get GPS lock, and in Settings => Security Location => Location => Advanced => UnifiedNlp Settings => Self-Check you probably get the following:
The system did not bind the UnifiedNlp service
Click to expand...
Click to collapse
Now, if you look at F-Droid, you'll see another package called UnifiedNlp (no GAPPS), which, does sound like the right system for a No GAPPS phone.
However, if you try to install it from F-Droid, you'll get an error (Error -112) saying you are:
attempting to define a permission that is already defined by some existing package.
Click to expand...
Click to collapse
Here are the steps that worked for me:
First deleted the ROM's pre-installed system app UnifiedNlp (GAPPS):
Code:
adb root
adb shell
mount -o rw,remount /system
rm -rf /system/app/UnifiedNlp/UnifiedNlp.apk
rm -rf /data/data/org.microg.nlp
exit
adb reboot
Next, installed the UnifiedNlp (no GAPPS):
* Download the apk from F-Droid and save on your computer.
Code:
adb root
adb remount
adb push ./com.google.android.gms_20187.apk /system/app/UnifiedNlp/
adb shell chmod 644 /system/app/UnifiedNlp/com.google.android.gms_20187.apk
adb reboot
And finally when we reboot to system, we can go ahead and configure the UnifiedNlp system, and install and set Mozilla Location Service as your location backend (or other(s) of your choice).
Thanks!
I repeated the steps with a newly installed RC4 and in UnifiedNlp's Self Check, the "UnifiedNlp registered in system" check button would not be active.
While UnifiedNlp was listed in the apps drawer, it did not show up as a location provider in "Settings / Location / Location Services". I got that by installing the APK using the package manager after completing the steps you described:
Code:
adb root
adb shell
pm install --user 0 /system/app/UnifiedNlp/com.google.android.gms_20187.apk
reboot
This is also a good moment to remove Qualcomm's dodgy location service:
$ pm disable com.qualcomm.location.XT
Edit: Disabling com.qualcomm.location is not a good idea, since it provides Android's "LocationService". But disabling com.qualcomm.location.XT does the trick.
Edit2: After one day of testing and several reboots, I am pretty sure that com.qualcomm.location is not of use, because com.android.location.fused is the system-wide location provider that combines GPS and Nlp queries.
$ pm disable com.qualcomm.location
I still have some problems with RC4.
● Telephone calls are interrupted with the announcement "The number is not assigned, please call the operator". This happens randomly and you never know when the problem occurs.
● Tethering is no longer possible. At 5 GHz, the SSID is not displayed. I can connect with 2.4 GHz, but have no access to the Internet. A ping (from laptop to smartphone) sometimes goes through a few times. Then the connection is interrupted again. Disabling firewalls etc. is to no avail.
● From the laptop I can not access the smartphone via USB since RC4. The laptop recognizes the cellphone, I can choose File Transfer, but I can not mount the it or access it.
● Are the earplugs plugged in when receiving a call, I can't hear anything. Though the other side hears me. To use earplugs I have to plug them during a conversation only.
Kalimohan said:
I still have some problems with RC4.
● Telephone calls are interrupted with the announcement "The number is not assigned, please call the operator". This happens randomly and you never know when the problem occurs.
● Tethering is no longer possible. At 5 GHz, the SSID is not displayed. I can connect with 2.4 GHz, but have no access to the Internet. A ping (from laptop to smartphone) sometimes goes through a few times. Then the connection is interrupted again. Disabling firewalls etc. is to no avail.
● From the laptop I can not access the smartphone via USB since RC4. The laptop recognizes the cellphone, I can choose File Transfer, but I can not mount the it or access it.
● Are the earplugs plugged in when receiving a call, I can't hear anything. Though the other side hears me. To use earplugs I have to plug them during a conversation only.
Click to expand...
Click to collapse
Please repost that to the developer's thread.
Sorry!
[email protected] said:
Please repost that to the developer's thread.
Click to expand...
Click to collapse
Sorry, this was my fault. I opened different tabs and this was the wrong one.
Can you please delete it?
arslanon.e said:
Hello,
These are instructions for making GPS work for users who did not choose to install Google Play Services (GAPPS).
Please note that the following steps worked for me, and I am posting here in case they help someone. They may not work for you, and I do not bear any responsibility if you damage your phone in any way while following this guide. Proceed at your own risk!
Note: you'd need adb tools set-up on your system. The following commands I ran on a Linux system.
==
Some Background Info:
On a vanilla install of this ROM, we get the UnifiedNlp (GAPPS) system pre-installed as a system app.
You can confirm if you have this in your phone, by running this command:
Code:
adb shell pm list packages org.microg.nlp
SatStat and OsmAnd don't get GPS lock, and in Settings => Security Location => Location => Advanced => UnifiedNlp Settings => Self-Check you probably get the following:
Now, if you look at F-Droid, you'll see another package called UnifiedNlp (no GAPPS), which, does sound like the right system for a No GAPPS phone.
However, if you try to install it from F-Droid, you'll get an error (Error -112) saying you are:
Here are the steps that worked for me:
First deleted the ROM's pre-installed system app UnifiedNlp (GAPPS):
Code:
adb root
adb shell
mount -o rw,remount /system
rm -rf /system/app/UnifiedNlp/UnifiedNlp.apk
rm -rf /data/data/org.microg.nlp
exit
adb reboot
Next, installed the UnifiedNlp (no GAPPS):
* Download the apk from F-Droid and save on your computer.
Code:
adb root
adb remount
adb push ./com.google.android.gms_20187.apk /system/app/UnifiedNlp/
adb shell chmod 644 /system/app/UnifiedNlp/com.google.android.gms_20187.apk
adb reboot
And finally when we reboot to system, we can go ahead and configure the UnifiedNlp system, and install and set Mozilla Location Service as your location backend (or other(s) of your choice).
Click to expand...
Click to collapse
hello I have a fresh install of lineage on my XZ1 compact, and GPS doesn't fix.
I have follow what you describe,
when I try to tick "mozilla location service" under confirguration of unifiedNlp settings I got message "erro initializing backend"
before making this I can tick it ( but gps doesn't work)
ticking nominatim works.
I try to uninstall reinstall mozillaNlpbackend , but this don't change anything .
ok, gps doesn't ask me for permissions.
I grant permission for unifiedNlp and mozilla unifiedNlp backend and now all works fine !
great, thanks !
hazote said:
hello I have a fresh install of lineage on my XZ1 compact, and GPS doesn't fix.
I have follow what you describe,
when I try to tick "mozilla location service" under confirguration of unifiedNlp settings I got message "erro initializing backend"
before making this I can tick it ( but gps doesn't work)
ticking nominatim works.
I try to uninstall reinstall mozillaNlpbackend , but this don't change anything .
ok, gps doesn't ask me for permissions.
I grant permission for unifiedNlp and mozilla unifiedNlp backend and now all works fine !
great, thanks !
Click to expand...
Click to collapse
Hello and thanks for your guide, I've succeed on uninstalling UnifiedNlp (gappas version) and reinstall UnifiedNlp (no gapps version), thanks to your adb codes . I'm running Lineage OS 17.1 and it works fine except that I can't get no location on Osmand, nor GPS coordinates on GPS test or Statsat apps. I'm trying to use the localisation option (only gps ) as i would need to be totally offline using it... Is there a way To make the Gps coordinates usable and visible ? Is this a matter of configuration ( i would need wifi or connection ?)
On Osmand~ it just says "unknown position, GPS-A updated at ... ( moment of the try) " But if I'm pointing on the map, it says the exact distance from it... Is ther a way to test GPS hardware and coordinate (like the #*#*SERVICE*#*# on stock firmware ) ?
Thank a lot for your help.
everything fine ater updating "gps.conf" file in "/vendor/etc folder... Hat do put "XTRA Searc" on 1 to find satelitte signals. tx xda for all the resource
seven hole said:
XTRA Searc
Click to expand...
Click to collapse
What? Can you show your changes in your gps.conf, I'm not understanding what you changed.

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