DeGoogling - General Questions and Answers

Hi
I used to use Cyanogenmod on my phones years ago and want to DeGoogle my Samsung A12. CF-ROOT is what I always used and Odin but It's not supported and seems to be depreciating. What Is the way forward now as I don't think Lineage does anything like a rom for this phone. I've gone for this phone because It's easy to get the back off and disconnect the battery easily.
Can you help?
Kind Regards
Graeme

You may manually - or programmatically by a script that makes use of ADB-commands - remove / uninstall all of Google's services and apps ( read: GMS ) what are put inside the running Android system. You can't do that unless you have the permissions level of the system itself - means ROOT, and you can't remove / uninstall files that are in use.
Example of a Degooglefy script
Code:
adb devices
adb root & adb shell "stop"
for /F "tokens=2 delims=:" %%a in ('adb shell "pm list packages | grep 'google'"') do (
set "pkg=%%a"
if NOT [%pkg%]==[] (
adb uninstall %pkg%
)
)
adb shell "start"
adb reboot

jwoegerbauer said:
You may manually - or programmatically by a script that makes use of ADB-commands - remove / uninstall all of Google's services and apps ( read: GMS ) what are put inside the running Android system. You can't do that unless you have the permissions level of the system itself - means ROOT, and you can't remove / uninstall files that are in use.
Example of a Degooglefy script
Code:
adb devices
adb root & adb shell "stop"
for /F "tokens=2 delims=:" %%a in ('adb shell "pm list packages | grep 'google'"') do (
set "pkg=%%a"
if NOT [%pkg%]==[] (
adb uninstall %pkg%
)
)
adb shell "start"
adb reboot
Click to expand...
Click to collapse
Thanks
Problem is I don't know how to achieve root to this device since I always previously used CF-ROOT sadly depreciated. I've unlocked the bootloader and have odin but no further forward.
Graeme3514

If anyone can help me root and get another software on this phone I'll donate/ pay , whatever. I'm sick of having Google running in the background and CF-ROOT is now depreciated, sadly.

jwoegerbauer said:
You may manually - or programmatically by a script that makes use of ADB-commands - remove / uninstall all of Google's services and apps ( read: GMS ) what are put inside the running Android system. You can't do that unless you have the permissions level of the system itself - means ROOT, and you can't remove / uninstall files that are in use.
Example of a Degooglefy script
Code:
adb devices
adb root & adb shell "stop"
for /F "tokens=2 delims=:" %%a in ('adb shell "pm list packages | grep 'google'"') do (
set "pkg=%%a"
if NOT [%pkg%]==[] (
adb uninstall %pkg%
)
)
adb shell "start"
adb reboot
Click to expand...
Click to collapse
If anyone can help me root and get another software on this phone I'll donate/ pay , whatever. I'm sick of having Google running in the background and CF-ROOT is now depreciated, sadly.
Graeme

Related

[q] hcl me u1

Can any one plz root this tablet...... M so depressed coz it doesn't include google play if it can be rooted....i could buy dis.....
successfully rooted HCL ME U1 Tablet
jeevan92ultimate said:
Can any one plz root this tablet...... M so depressed coz it doesn't include google play if it can be rooted....i could buy dis.....
Click to expand...
Click to collapse
This guide is successfully tested by me.
1. You need a 32 bit OS. (I have used 7 Pro x86).
2. Turn USB debugging ‘ON’ in settings of the tablet.
3. Download Superuser. Then extract the zip file to desktop :\ & you will see 2 folders as “System” and “Meta-INF”.
4. Download the drivers from here. Then connect the tablet & install the drivers using device manager.
5. Download SuperOneClick!. Extract the archive, go to the folder named ADB. Open an elevated command prompt there using this.
6. Continue with the following commands:
Code:
>adb root (you will see a message “adb is already running as a root”)
>adb devices (you should see your device number)
>adb shell (adb shell will run and daemon tool will also run) 7. Now restart the tablet & wait till the home screen appears. Now continue with the following commands:
Code:
>adb shell getprop ro.secure (output should be 0)
>adb shell mount -oremount,rw /dev/block/system /system
>adb push d:\system/bin/su /system/bin/
>adb push d:\system/bin/su /system/_install/bin/
>adb shell chmod 4777 /system/bin/su
>adb shell mount -oremount,ro /dev/block/system /system 8. Exit adb, disconnect the tab, restart it again.
9. Open the new Superuser app just once.
10. Download apks of BusyBox, Google Play & Titanium Backup (Google is your friend!!).
11. Install BusyBox first, then check the rooting status with Titanium Backup. After that, install Google Play.
Move your discussion into device forum.
If it doesn't have it, move it to Android Hacking and Development
Trolls, trolls everywhere
ppero196 said:
Move your discussion into device forum.
If it doesn't have it, move it to Android Hacking and Development
Trolls, trolls everywhere
Click to expand...
Click to collapse
Sorry, ppero196. OK

{Guide} Fix yellowish display aka night-light [rootless and magisk] \(◎o◎)/

~Fix nightlight in MIUI~
For what is it?
Sometimes it happens that the Google setup activates the "classic" Nightlight mode from AOSP.
This one doesn't work like MIUI handles this feature.
This means that deactivation via the settings is not possible and your display will get every day to same time yellowish.
Will I have to do this after every new installation?
No, when you use the backup function from Google it will sync this settings and bug is fixed until you restore a old google backup or one from a other phone.
Post 2:
Rootless guide via PC (Mac/Windows/Linux/Other Phone with adb binary)
Post 3:
Root guide via termux (or any other terminal emulator)
•rootless•
For PC: *
Open either powershell or cmd or terminal, this depends on your installed system and run one after the other the following commands:
adb shell settings put secure night_display_activated 0
adb shell settings put secure night_display_auto_mode 0
\_That's all!_/
This star is talking to you
↓
*
You have to install adb binarys for your system before you can run this command.
Installation guide: https://wiki.lineageos.org/adb_fastboot_guide.html#installing-adb-and-fastboot
•rooted•
For termux**:
Open termux and run one after the other the following commands:
su
env -i USER=shell "$(PATH=/system/xbin:/system/bin:/su/bin:/sbin:/magisk/.core/bin which su)" shell --context u:r:shell:s0 --shell /system/bin/sh --command settings put secure night_display_activated 0
env -i USER=shell "$(PATH=/system/xbin:/system/bin:/su/bin:/sbin:/magisk/.core/bin which su)" shell --context u:r:shell:s0 --shell /system/bin/sh --command settings put secure night_display_auto_mode 0
\_That's all!_/
This stars are talking to you
↓
**
You need a magisk rooted device and termux
Download: https://play.google.com/store/apps/details?id=com.termux

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip,
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
Hi, I made a small shell script to remove bloat in my device. Anyone who are interested can check it.
Place it in root of Internal Storage, then
Code:
adb shell
sh /sdcard/bloat.sh.txt
Ref
⋆ [2022-09-28] Remove system apps on Realme UI 2.0 using ADB ⋆
Remove system apps on Realme UI 2.0 using ADB Updated : 2022-09-28 Tested On: Model: RMX2001 Hardware Version: RMX_2001_11 RealmeUI Version: V2.0 ColorOS Version: V11 Android Version: 11 Android Security Update: 2022-03-05 Build Number...
forum.xda-developers.com
Debloat Colour os For smooth Performance
Color OS preloaded with certain apps. Such apps can't simply uninstall. Its hard coded, , for e.g. App Market. Use these command to disable those apps.. No root required... Os updates will still work.. No problems there... Users need to apply...
forum.xda-developers.com
[GUIDE][EU/IN ROM] REALME UI Debloat List
I got this phone a few days ago, am positively surprised with it. As soon as I got it I installed the REALME UI update from the official website and spent the next hour trying to find out what apps should be removed for maximum privacy and...
forum.xda-developers.com
[GUIDE] Debloat your Realme X2 to get more free RAM
Install ADB Drivers properly .This is really important Video Tutorial : Debloat any Realme/Oppo phone Then open command windows in adb directory and type adb devices,then authorize it from your phone . After you have done it ,type adb shell...
forum.xda-developers.com
Debloat COS / RUI
For those who want to debloat the stock system without root, here my list with apps uninstalled for me. How-To: activate ADB in developer settings download ADB tools from Google...
forum.xda-developers.com
[GUIDE] [SCRIPT] Debloater for Bootloader locked & Unlocked devices
For Bootloader Locked: Download debloat_bootloaderLocked.zip extract & execute debloat-main.bat file For Bootloader Unlocked: Assuming you already have custom recovery, just download & flash debloat_flashable.zip Unhide to show up the list of...
forum.xda-developers.com
Nice thank you for sharing this wonderful trick thanks
Hi guys. Thanks for the nice debloat tutorial and script! These are always welcome.
debdeep98 said:
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
Click to expand...
Click to collapse
Are you sure about that? Have you tried it yet with my brand new
universal make system read write flashable script

Removing inbuilt app so that it will not comeback even after factory reset.

I understand that I can remove packages via ADB, but the apk still reside inside ./system, thus still occupying space. Also these apps will comeback when I do a factory reset. How do I remove such packages safely.
A Factory Reset doesn't touch Android's /system partition, it simply restores /data partition ( AKA user-space ) to state when device has been brought to the market, means wiping it clean of any personal data & apps installed by user included.
If the packages you have in mind are installed in /system partition then they only can get removed when Android is rooted.
You can check whether a package is an user-app or not by running
Code:
adb devices
adb shell "pm list-packages -3"
To check whether a package is a system-app or not you run
Code:
adb devices
adb shell "pm list-packages -s"
If you want to uninstall the user-apps for Android's default user ( user-id 0 ) in one go then you may do it by means of a Windows batch file:
Code:
adb devices
for /F "tokens=2 delims=:" %%a in ('adb shell "pm list-packages -3"') do (
set "pkg_name=%%a"
if not "?%pkg_name%"=="?" (
adb shell "pm disable-user --user 0 %pkg_name%"
timeout /t 2 /nobreak >nul
rem uninstall user-app by app package name
adb shell "pm uninstall --user 0 %pkg_name% "
)
)
exit
what requires ADB is systemwide accessible.
HI,
I don't have any user apps. My phone has a lot of bloat, like builtin games, several google apps like play-music;news;books;street view, etc and some other apps. I'd like to remove them so I can use that extra space.
Also on linux.
What Android version you have?
What output you get if you run
Code:
adb shell "ls -al /dev/block/by-name"
Android version 5.0
adb shell "ls -al /dev/block/by-name"
reurned
/dev/block/by-name: No such file or directory
ThE___NiHiLiST said:
HI,
I don't have any user apps. My phone has a lot of bloat, like builtin games, several google apps like play-music;news;books;street view, etc and some other apps. I'd like to remove them so I can use that extra space.
Also on linux.
Click to expand...
Click to collapse
To remove system apps and/or system-privileged apps your phone's Android must be rooted.
Android 5 ? That's pretty old version. Why don't you upgrade to Android 9 or 10 ?
You have to mount system and debloat it. Good luck

Countless "Unfortunately com.android.XXX Has Stopped"

Hello. Please forgive my bad English. My Asus ZE500KL phone with Android 6, almost died. I have collected various things in it, phones, notes, passwords... and I had the stupidity of not having any backup. Sometimes it starts, but it throws up countless signs like "Unfortunately com.android.XXX Has Stopped". To do anything with the phone I have to be able to close them and I have very little time, it can be used and restarted in seconds. It behaves similarly in safe mode. Otherwise, it enters fastboot mode and adb, but I don't know how it got stuck there. Any ideas what I can do? A week ago I installed "SWAP no root", could it be from that?
Do a LOGCAT to get the very reason why you get this notification.
logcat is first thing you should do. you can redirect > into file and upload here
Code:
adb logcat '*:W' -b all > logcat.txt
try to uninstall some recent apps from adb maybe it stabilizes. the -k flag preserves app data
Code:
adb shell 'pm list packages -e'
adb shell 'pm uninstall --user 0 -k <pkgname>'
if you don't close any of that pop-up is phone rebooting anyway? if stable enough you can do backup and pull files (confirm blank no password)
Code:
adb pull -a /sdcard
adb backup -apk -shared -all
jwoegerbauer said:
Do a LOGCAT to get the very reason why you get this notification.
Click to expand...
Click to collapse
E:\platform-tools>adb devices
List of devices attached
G6AZCY00W177EUE recovery
E:\platform-tools>adb shell
- exec '/system/bin/sh' failed: No such file or directory (2) -
E:\platform-tools>adb logcat
adb server version (32) doesn't match this client (41); killing...
* daemon started successfully
- waiting for device -
* daemon still not running
error: cannot connect to daemon at tcp:5037: cannot connect to 127.0.0.1:5037: N
o connection could be made because the target machine actively refused it. (1006
1)
aIecxs said:
logcat is first thing you should do. you can redirect > into file and upload here
Code:
adb logcat '*:W' -b all > logcat.txt
try to uninstall some recent apps from adb maybe it stabilizes. the -k flag preserves app data
Code:
adb shell 'pm list packages -e'
adb shell 'pm uninstall --user 0 -k <pkgname>'
if you don't close any of that pop-up is phone rebooting anyway? if stable enough you can do backup and pull files (confirm blank no password)
Code:
adb pull -a /sdcard
adb backup -apk -shared -all
Click to expand...
Click to collapse
logcat.txt is empty
do this in android, not recovery
aIecxs said:
do this in android, not recovery
Click to expand...
Click to collapse
If I to load Android, the phone works for 20-30 seconds maximum and when I plug in the USB cable, it restarts immediately.
let usb plugged and adb logcat waiting while phone boots

Categories

Resources