For everyone who doesn't want to stop using One UI 3.1 but is upset with the crashes, I made a script to debloat A20 with adb shell
Download the adb shell on windows, if you are on linux, put "sudo apt install adb" (without quotes) in the terminal, connect your device, put the execute script.
If you want an app back do: pm install-existing <package name>.
paypal: [email protected]
The script stops if any package is missing (because of &&), and also removes the keyboard. I replaced each && with a line break and it seems to have worked fine on my A20e. I added com.samsung.android.honeyboard back to have a keyboard.
Very good, you can feel free to modify and publish. And so it can get better
Related
Hello all.
By flashing my device many times, I am always fed up to plug it and remove all the application I don't want, or open the zip file, remove the apk and resign the ROM.
What I have in mind is making a little app that show us all the applications in system/app ( easy) and them when clicking on them just like a adb shell rm system/app/myUnwantedApp.apk.
The browser is easy to program, but the command line is not easy. I tried with eStrongs and Astro, but they cannot remove the apk..
Cam someone help me or teach me how to enter a adb command line in my phone?
Thank a lot.
profete162 said:
Hello all.
By flashing my device many times, I am always fed up to plug it and remove all the application I don't want, or open the zip file, remove the apk and resign the ROM.
What I have in mind is making a little app that show us all the applications in system/app ( easy) and them when clicking on them just like a adb shell rm system/app/myUnwantedApp.apk.
The browser is easy to program, but the command line is not easy. I tried with eStrongs and Astro, but they cannot remove the apk..
Cam someone help me or teach me how to enter a adb command line in my phone?
Thank a lot.
Click to expand...
Click to collapse
You can use a terminal emulator application like Better Term etc to run shell commands. There is nothing special about adb.
The command adb shell rm is simply running the shell first and then the "rm" command. Now, depending upon the ROM that you are using, the command adb shell will give you a root shell (or not). In any case, when you use a terminal emulator, simply use the "su" command to gain super user privileges (you have to have "su" and SuperUser.apk installed).
Since you are talking about a custom ROM, I think that root access is implied.
In any case, look at programs like Android Scripting Environment. It allows you to code scripts in an interpreted language like shell script, python etc... In your case simply write a shell script with the desired "rm ...." commands and execute them after gaining superuser permissions and make sure that your /system partition is mounted in rw mode.
Hi all, here is a package of command line tools I've put together, here's the readme with a few of the tools listed.
Android Command Line Tools
This Is Working Prefectly On Samsung Galaxy S3 'GT-I9305'
Your Phone Should Be Rooted To Perform These Steps!!!
Installation:
1. Copy The android-tools.zip To Your SD Card (Internal Or External) And Extract It
You Should Now Have A Directory Called 'android-tools'.
2. Open A Terminal On Your Phone And Type The Following
su
mkdir /data/tmp
cat /sdcard/android-tools/busybox > /data/tmp/busybox
cat /sdcard/android-tools/busybox-installer > /data/tmp/busybox-installer
cat /sdcard/android-tools/pkgs.tar > /data/tmp/pkgs.tar
cat /sdcard/android-tools/install.sh > /data/tmp/install.sh
cd /data/tmp
chmod 755 *
./install.sh
3. In Android Terminal Emulator Preferences, Set The Shell Path to '/system/bin/bash'
And Leave The Initial Command Blank.
4. Quit Terminal Emulator And Restart.
OpenSSH: ssh-keygen Save To '/data/local/home/root/.ssh/id_rsa'.
'ssh' And 'scp' Binaries Will Look For Keys In '/data/local/home/root/.ssh/'
So You Dont Need The '-i' Option, 'ssh-copy-id' Gets It From There Too.
Arduino:
There Is A Build Environment To Build And Upload Arduino Sketches With A Script Called 'arduino' To Wrap It Up
Type 'arduino --help' In Terminal To See Its Options, It Uses The Arduino-1.0 Core Library And I have Tested
Every Board And Can Confirm It Builds For All Boards Including 'micro' And 'leonardo'. It Uses 'avrdude'
'avr-libc-1.6.7' 'gcc-avr-4.5.1', I Wrote A 'arduino.nanorc' File For Writing Sketches Which Has All The
Functions And Constants Of The Arduino Core Library With The Same Colours As In The IDE.
Other Tools:
Some Other Binaries I Have Added Or Modified Are 'tar' With All Options Enabled, 'iwconfig', 'grep egrep fgrep'
With Colour And PCRE Enabled, '7zip', 'ipctool', 'shc' For Compiling Shell Scripts, 'ssh-copy-id', 'sed' With All Options
Enabled, 'macchanger', 'bootimg_baseaddr' In bash/sh, Compiled GNU 'core-utils', 'ncurses-hexedit', 'nmap', 'ngrep', 'nano'
'strace', 'gcc', 'g++', 'unpack-bootimg' In bash, 'unrar' And 'vim'.
Backtrack 5 ARM Is Configured And Ready To Go, Just 'mkdir /sdcard/Chroot'
And Copy Your bt5.img File Into It And Type 'bootbt', Then Edit The Scripts
For VNC Server 'startvnc' And 'stopvnc' To Reflect Your Screen Size, These
Are In The pkgs.tar
Replacing '/system/etc/mkshrc' With The One Included In This Package Enables Bash As Default In ADB Shell
If The Bash Binary Is Found In '/system/bin/bash' Else The Default Shell Will Drop Back To mksh.
Nano Does Not Save Through ADB Shell Using ^O Or '^X Then y' Method, Works Fine In Terminal Emulator App On Device.
There are more tools than listed above, here's the link> https://www.dropbox.com/s/yjumfljy7e1yoyc/android-tools.zip
If you're on an custom ROM and can't use the terminal emulator when you restart terminal emulator, get /system/lib/libncurses.so from stock ROM and use adb to copy it into /system/lib on your current ROM, I will fix this tomorrow.
Sent from my GT-I9305 using xda app-developers app
Please post the right link... this one is malformed.
sciurius said:
Please post the right link... this one is malformed.
Click to expand...
Click to collapse
op just updated the link, package is now ready for download again!
thank you, andreotti09!!!
greetz,
sUsH
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
if anybody intrested in debloating use this list its from a51 group. you will loose many funxtionality like camera wifi calling etc so try at your own risk as I am experimenting so i did it.
rooted user type su in termux
and then paste all of list in turmux once or choose what you want debloat hit enter & wait
Apps will uninstalled if you reset they will back
you can use fx file manager to view and edit .xml file.
76 system app left
1.5gb ram used
Download
to reinstall all packages use this
reinstall
Thanks to telegram user @ MeNoob2
Telegram group for m21
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
many features not removed like play store camera etc but wifi calling removed so you can also give try banking apps also working
Debloated Stock Rom for M21
So we finally have a debloated stock ROM now. There's nothing more to say about it other than that it works and it's as light as it gets. Now I didn't make this, @Raghu varma did. I'm only posting because he didn't make a thread here...
forum.xda-developers.com
Sagarking said:
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
many features not removed like play store camera etc but wifi calling removed so you can also give try banking apps also working
Click to expand...
Click to collapse
Pasting the package list into adb shell worked like a charm, except for root/admin apps, but it got most of them, thank you
Sagarking said:
in above method root permission is used so its heavily debloated but if you want safe debloat you can use same list in adb debloating method you can pate this list after command adb shell
Click to expand...
Click to collapse
Yeah, if you don't want to unlock you bootloader or if you just want to stay safe, this is the way to go.
Got termux root privileges, removed what i taught essential from your list, now im stuck on samsung logo after restart.. got the oneui 3.0 update..
Anyhelp ?
Atrosincity said:
Got termux root privileges, removed what i taught essential from your list, now im stuck on samsung logo after restart.. got the oneui 3.0 update..
Anyhelp ?
Click to expand...
Click to collapse
Above list was useful in one ui 2.5 only now flash stock rom via odin
termux debloat use above one ui 3.0
Open file via text editor app and copy paste after su in ternux
Credits @yillie sir who made the script
Adb debloat
Credits @yillie sir who made the script
Open file via text editor app and copy paste in command promt
If you are not rooted or have bootloader locked then copy and run this after the script:
adb shell install-existing com.sec.android.app.samsungapps
adb shell install-existing com.sec.android.systemupdate
adb shell install-existing com.sec.android.soagent
adb shell install-existing com.wssyncmldm
adb shell install-existing com.sec.enterprise.knox.attestation
adb shell install-existing com.samsung.android.knox.pushmanager
adb shell install-existing com.samsung.ucs.agent.ese
adb shell install-existing com.sec.enterprise.knox.cloudmdm.smdms
adb shell install-existing com.knox.vpn.proxyhandler
adb shell install-existing com.samsung.android.knox.containercore
adb shell install-existing com.samsung.android.mdm
adb shell install-existing com.knox.vpn.proxyhandler
adb shell install-existing com.samsung.android.knox.analytics.uploader
adb shell install-existing com.samsung.knox.keychain
Sagarking said:
termux debloat use above one ui 3.0
Open file via text editor app and copy paste after su in ternux
Click to expand...
Click to collapse
Thank you, more for the comments
You can use my script from here https://github.com/invinciblevenom/debloat_samsung_android I have updated the list of apps.
To debloat this device you need to open adb shell and copy and paste the text file below. (or you can also make this into a shell script and run)
If you want to remove more apps, type this in the adb shell: adb shell pm uninstall --user 0 com.android.google.chrome (example)
To find the package name,
(1) Install f-droid and install 'package manager' app (for quicker identification as you can see the app icon)
OR
(2) On adb shell, type: adb shell pm list packages (This will list all installed packages)
NOTE: This will remove Galaxy store and all Google apps (apart from Google Play)