Help wanted to root and put custom ROM - Sony Xperia X Compact Questions & Answers

I have bought a new, stock Sony Xperia X Compact from a Chinese online vendor. The cell phone can send SMS messages. I have tried to follow instructions on this forum to install a custom ROM, but i have not been able (i have found many expired links).
I offer 0.001 BTC = 1 mBTC (about 20 US$ at today's rate) for who can guide me to choose and install a custom ROM. My goal is to have a simple, secure, degoogled phone.
I have a Ubuntu PC and a Windows PC.

Start by reading
Info about suzu | LineageOS Wiki
wiki.lineageos.org
Install LineageOS on suzu | LineageOS Wiki
wiki.lineageos.org
Write if you don't understand something.

ok thanks.
I will read th link you provided

I have started to follow the instructions on a ubuntu PC.
see my log below.
I mark with the characters <<<< when something failed
--------------------------------------------------------
Info about suzu | LineageOS Wiki
wiki.lineageos.org
Get LineageOS for the Sony Xperia X
Get the builds here
Download lineage-18.1-20221021-recovery-suzu.img
lineage-18.1-20221021-recovery-suzu.imglineage-18.1-20221021-recovery-suzu.img
Install LineageOS on suzu | LineageOS Wiki
wiki.lineageos.org
Make sure your computer has adb and fastboot. Setup instructions can be found here.
Using ADB and fastboot | LineageOS Wiki
wiki.lineageos.org
Up to this point all OK. Now i follow:
5. You may also need to set up udev rules: see this repository for more info.
https://github.com/M0Rf30/android-udev-rules#installation
$ git clone https://github.com/M0Rf30/android-udev-rules.git
Cloning into 'android-udev-rules'...
remote: Enumerating objects: 1164, done.
remote: Counting objects: 100% (152/152), done.
remote: Compressing objects: 100% (67/67), done.
remote: Total 1164 (delta 91), reused 128 (delta 84), pack-reused 1012
Receiving objects: 100% (1164/1164), 300.93 KiB | 3.24 MiB/s, done.
Resolving deltas: 100% (521/521), done.
$ cd android-udev-rules
$ sudo cp -v 51-android.rules /etc/udev/rules.d/51-android.rules
'51-android.rules' -> '/etc/udev/rules.d/51-android.rules'
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules
$ sudo cp android-udev.conf /usr/lib/sysusers.d/
$ sudo systemd-sysusers
Creating group adbusers with gid 998.
$ sudo gpasswd -a $(whoami) adbusers
Adding user XXX to group adbusers
$ sudo udevadm control --reload-rules
$ sudo systemctl restart systemd-udevd.service
$ adb kill-server
cannot connect to daemon at tcp:5037: Connection refused <<<<<
$
# Replug your Android device and ...
the instructions have not said before to plug my Android device ! <<<<<<<
Anyway i connect my android smartphone to my ubuntu PC with a USB cable.
# You should now see your device
Where should i see my device ? <<<<<<<

On the phone, enable developer options by clicking repeatedly on the android version number, and then in the developer options enable usb debugging.
Then, after plugging in the enabled phone with a usb cable from the PC, confirm the authentication option in the pop-up window.
After executing the command
Code:
adb devices
you will receive information about the device number, which means that you have established a connection with which to perform further actions.

ze7zez said:
On the phone, enable developer options by clicking repeatedly on the android version number, and then in the developer options enable usb debugging.
Then, after plugging in the enabled phone with a usb cable from the PC, confirm the authentication option in the pop-up window.
After executing the command
Code:
adb devices
you will receive information about the device number, which means that you have established a connection with which to perform further actions.
Click to expand...
Click to collapse
Thanks, your advice worked, and i have made progress. I have arrived to the point:
Unlocking the bootloader
Step 1: On the device, dial *#*#7378423#*#* (*#*#SERVICE#*#*) to launch the service menu.
Step 2: service info --> Config :
Rooting status : Bootloader unlock allowed: NO <<<<<
So my phone is not rooted. I will search XDA how to root it, however let me know if you recommend a specific page

Since there are several different models of Xperia X show command results:
adb shell getprop ro.build.fingerprint
adb shell getprop ro.semc.version.cust
adb shell getprop ro.semc.version.cust_revision

ze7zez said:
Since there are several different models of Xperia X show command results:
adb shell getprop ro.build.fingerprint
adb shell getprop ro.semc.version.cust
adb shell getprop ro.semc.version.cust_revision
Click to expand...
Click to collapse
$ adb shell getprop ro.build.fingerprint
docomo/SO-02J/SO-02J:8.0.0/34.4.B.1.129/2043362636:user/release-keys
$ adb shell getprop ro.semc.version.cust
1305-8403
$ adb shell getprop ro.semc.version.cust_revision
R11E

I'm sorry, but there is no known way to root the Xperia X Compact (SO-02J - Japanese version).
I advise you against experimenting on your model based on the thread:
How To root and Twrp X compact Docomo so-02j
hello friends, i'm having trouble for my root and twrp because i have so-02j version. I've followed the guides trying the genesis kernel, but it just makes a stop in the sony logo when booting. does my device have a chance to root twrp and...
forum.xda-developers.com

Removing bloatware from sony Xperia SO-02J on a non-rooted Cell phone.
Adapted from
Find package names searching the app on https://www.apkmirror.com/apk/
$ adb devices
List of devices attached
BH9080Z65U device
$ adb shell
SO-02J:/ $ am get-current-user
0
SO-02J:/ $
SO-02J:/ $ pm uninstall -k --user 0 apps.r.compass
Failure [not installed for 0]
SO-02J:/ $
// try to remove Suguden :
SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.phonemotion
Success
SO-02J:/ $
// try to remove chrome:
SO-02J:/ $ pm uninstall -k --user 0 com.android.chrome
Success
// try to remove Docomo Disaster kit:
SO-02J:/ $ pm uninstall -k --user 0 jp.co.nttdocomo.saigaiban
Success
SO-02J:/ $
// remove docomo dmarket:
SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.store
Success
SO-02J:/ $
// try to remove docomo Application Manager
130|SO-02J:/ $ SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.applicationmanager
/system/bin/sh: SO-02J:/: not found
127|SO-02J:/ $
// try rm docomo mail 127|SO-02J:/ $ pm uninstall -k --user 0 jp.co.nttdocomo.carriermail
Success
SO-02J:/ $
// docomo data copy:
SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.sdcardbackup
Success
SO-02J:/ $
// Now restart the phone and try it: OK.
// Continue :
SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.dhome
Success
SO-02J:/ $ pm uninstall -k --user 0 com.facebook.katana
Success
SO-02J:/ $ pm uninstall -k --user 0 com.facebook.appmanager
Success
SO-02J:/ $ pm uninstall -k --user 0 com.google.android.videos
Success
SO-02J:/ $ pm uninstall -k --user 0 com.google.android.music
Success
SO-02J:/ $ pm uninstall -k --user 0 com.touchtype.swiftkey.beta
Failure [not installed for 0]
SO-02J:/ $ pm uninstall -k --user 0 com.sonymobile.entrance
Success
SO-02J:/ $ pm uninstall -k --user 0 com.sonymobile.assist
Success
SO-02J:/ $ pm uninstall -k --user 0 com.google.android.tts
Success
// Now restart the phone and try it: all OK.

try to unistall more docomo apps.
SO-02J:/ $ pm uninstall -k --user 0 com.nttdocomo.android.areamail
Success
Now try phone: cannot make or receive calls !!
Downloadl com.nttdocomo.android.areamail_11.00.00002-12610_minAPI18(nodpi)_apkmirror.com.apk from https://www.apkmirror.com/apk/ and install it on the phone.
Restart the phone.
I can make and receive calls.
Stop unintalling apps for the moment

Related

Debloat with ADB Shell [No Root]

See topic where package disablers are used first:
https://forum.xda-developers.com/tab-s5e/how-to/samsung-galaxy-tab-s5e-debloat-root-info-t3935010
See explained why you as a consumer should not buy or use package disablers:
https://forum.xda-developers.com/showpost.php?p=80048718&postcount=42
Thanks to TiTiB for finding many package names:
https://forum.xda-developers.com/member.php?u=6773321
The package names you can find in the original topic. That's in the topmost hyperlink in this post.
This does not void warranty, but in worse case, you need factory reset.
I recommend anyone wanting to debloat using ADB SHELL procedure, it's easy if you have a Linux USB stick or Linux installation.
First time you've been reading about ADB command? Instructions setting up your phone and computer here:
https://www.xda-developers.com/install-adb-windows-macos-linux/
In Linux, in this case a Debian based distribution like Ubuntu
Code:
sudo apt install adb
Then enable developer mode in your tablet by pressing the Kernel Build number until it says you have enabled developer mode. Learn how to control over a USB cable with ADB commands how to disable or enable packages for the current user ( which is user 0 ). This does not require root, and you will keep your warranty. In your phone settings menu the Developer section will appear and there you need to enable ADB Debugging. Then you start using ADB. See included link far below if this is your first time.
The first command after installing ADB at your Linux system is
Code:
adb shell
If you are using Windows or are new to using ADB:
https://www.xda-developers.com/disable-system-app-bloatware-android/
It's assumed you already in the adb shell with the command above.
You are then in your Tablet in a shell running at it.
For example to DISABLE Bixby you can simply do this
Code:
pm disable-user --user 0 com.samsung.android.bixby.wakeup
pm disable-user --user 0 com.samsung.android.app.spage
pm disable-user --user 0 com.samsung.android.app.routines
pm disable-user --user 0 com.samsung.android.bixby.service
pm disable-user --user 0 com.samsung.android.visionintelligence
pm disable-user --user 0 com.samsung.android.bixby.agent
pm disable-user --user 0 com.samsung.android.bixby.agent.dummy
pm disable-user --user 0 com.samsung.android.bixbyvision.framework
You can list disabled packages with this
Code:
pm list packages -d
To ENABLE Bixby again you can do this
Code:
pm enable com.samsung.android.bixby.wakeup
pm enable com.samsung.android.app.spage
pm enable com.samsung.android.app.routines
pm enable com.samsung.android.bixby.service
pm enable com.samsung.android.visionintelligence
pm enable com.samsung.android.bixby.agent
pm enable com.samsung.android.bixby.agent.dummy
pm enable com.samsung.android.bixbyvision.framework
Or this
Code:
pm enable --user 0 com.samsung.android.bixby.wakeup
pm enable --user 0 com.samsung.android.app.spage
pm enable --user 0 com.samsung.android.app.routines
pm enable --user 0 com.samsung.android.bixby.service
pm enable --user 0 com.samsung.android.visionintelligence
pm enable --user 0 com.samsung.android.bixby.agent
pm enable --user 0 com.samsung.android.bixby.agent.dummy
pm enable --user 0 com.samsung.android.bixbyvision.framework
For example to UNINSTALL Bixby PERMANENTLY, in the past for Android 6 or less, until Factory Reset you can do this [ Not recommended ?]
See supplemental code written inside this topic, you can bring back uninstalled packages without problem provided you have Android 7 or later!
Code:
pm uninstall -k --user 0 com.samsung.android.bixby.wakeup
pm uninstall -k --user 0 com.samsung.android.app.spage
pm uninstall -k --user 0 com.samsung.android.app.routines
pm uninstall -k --user 0 com.samsung.android.bixby.service
pm uninstall -k --user 0 com.samsung.android.visionintelligence
pm uninstall -k --user 0 com.samsung.android.bixby.agent
pm uninstall -k --user 0 com.samsung.android.bixby.agent.dummy
pm uninstall -k --user 0 com.samsung.android.bixbyvision.framework
There are several apps at the Google Playstore which can give you an exact package name for any given application. But simplest method is learning which options the pm in an ADB shell has.
example commands for ADB
Code:
adb shell pm list packages
pm list packages
If you uninstalled with ADB you can only Factory Reset to get the packages back, the Disable/Enable method however work fine without Factory reset to get packages back. I updated this entire post accordingly thanks to another user.
Before you remove all phone like packages, Samsung has Call and Message Continuity working for Galaxy S10, some countries since a few weeks Galaxy S9 and hopefully promised later this year also for the S8. This means you can use your phone to call with your tablet even if it only has WIFI provided you have your phone as is listed as example also connected to WIFI.
If you use ADB shell procedure, you must first write down with package you disable or enable by a text editor if you want to undo the changes. If you don't know the package name you disabled you can not enable it anymore unless you factory reset your device.
Hence the easy example of Bixby, and its package names listed in case you want Bixby back.
I am sure this tutorial I wrote uninstalls a package, but it might be safer you disable a package with ADB commands.
This XDA tutorial below might be the safest method described in following link
https://www.xda-developers.com/disable-system-app-bloatware-android/
This post had been updated to show the difference between JUST DISABLING and PERMANENTLY UNINSTALL of a given package name. The difference is once you use the uninstall method only a factory reset brings that package back, just disabling makes you able to enable it again without problem. Therefore JUST DISABLING is RECOMMENDED ONLY.
New information about ADB commands:
If you have used the UNINSTALL method, here commands to get those packages back.
https://forum.xda-developers.com/android/help/how-to-install-uninstalled-packages-t3894235
you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back .
By @Vordx
Click to expand...
Click to collapse
Good news everyone for those whom uninstalled Bixby for user 0, I was successfuly able to get Bixby back with the following commands which indeed work.
Code:
adb shell
You are now in a terminal at your computer interfacing with the tablet or phone
Code:
cmd package install-existing com.samsung.android.bixby.wakeup
cmd package install-existing com.samsung.android.app.spage
cmd package install-existing com.samsung.android.app.routines
cmd package install-existing com.samsung.android.bixby.service
cmd package install-existing com.samsung.android.visionintelligence
cmd package install-existing com.samsung.android.bixby.agent
cmd package install-existing com.samsung.android.bixby.agent.dummy
cmd package install-existing com.samsung.android.bixbyvision.framework
So you truly can uninstall Bixby or diable it and even reinstall Bixby without factory reset, that's really good news. I used Bixby as an example, since it is deep in official Samsung Rom its core. It does work to just use
Code:
cmd package install-existing <package name>
I got Bixby back with it, and that is really great since I now will uninstall it again, and You Do Not need To Factory Reset to get Uninstalled Packages back, try following procedure. I really used the uninstall commands over ADB Android Debugging Bridge and since the package was uninstalled for user 0, reinstall an existing package does work! That is great news, since it does not require a factory reset if you have to happen to uninstall for user 0 any package. The same is true but only for Android 7 and later. See the topic linked to that explains people with Android lower than 7 unable to do this. Seems Google did a good job regarding this.
If you know the package names you can use a simple script to automate it.
Post in thread '[Guide] Samsung Galaxy Tab S5e Debloat Without Root-Info' https://forum.xda-developers.com/t/...bloat-without-root-info.3935010/post-85910045

ADB script for enabling and disabling

Hello XDA,
This is the first script I have ever made.
I would like to thank the developers here on XDA for inspiring me to learn. this would not have been possible without you all posting the information you freely post.
I want to also personally thank user bbtdev, your post
https://forum.xda-developers.com/galaxy-note-9/how-to/note-9-debloat-bash-script-t3907659
was my inspiration to dig in and learn scripting in bash. and my work is based off of your post.
I wanted to have something automated that I can use to run ADB without having to put in all the redundent stuff. Not just to debloat my unrooted note9 but to also enable it back again if the need arised. After starting I thought maybe there might also be a need to do some individual packages and decided that would also be a nice option as well. To keep this short the script at this time debloat what I have debloated of my Note 9, this could be different on yours but everything I need works great. it will also allow you to undo the debloat process and enable everything it disabled. You can easily look at enable,disabled,system and third party packages wit just the click of a button. Also you can just manually enable or disable packages just by adding the name of the package.
I am sure experienced programmers will find some easier way to code it or even bugs, but like I said my first attempt and just wanted to share what I have learned over the past day. i also understand there may be other scripts like this I am not sure but if so it is not my intent to copy. my intent is just to learn and practice.
so have a look.
thanks.
Code:
#!/bin/bash
#My first bash script inspired by developers on XDA
#This is the start of the script my intro title (LODK)
begin() {
clear
echo " (◣_◢)--Lodk--(◣_◢) "
echo " ADB Debloat Tool "
echo " "
sleep 2.0
clear
}
#will kill then start the server for ADB maybe don't need the sleep
start() {
adb kill-server
adb start-server
sleep 1.0
clear
}
#this is what happens if you say no device is found in main menu
ts() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo " Troubleshooting "
echo " Check List "
echo "1. Is your USB-Cable plugged in and in working order? "
echo "2. Are your Drivers installed correctly? "
echo "3. Have you enabled USB-Debugging in developers options? "
echo "4. Have you allowed USB Debugging from your device? "
echo " If all these things check out please retry "
exit
}
#if you say yes device is found in main menu
connected() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo "Thats Great lets begin"
echo ""
sleep 2.5
clear
}
#when Debloat is selected in menu2 any one can be commented out if you need to
debloat() {
echo "Now deactivating all bloatware"
adb shell pm disable-user --user 0 com.sec.android.widgetapp.samsungapps
adb shell pm disable-user --user 0 com.google.android.youtube
adb shell pm disable-user --user 0 com.sec.location.nsflp2
adb shell pm disable-user --user 0 com.samsung.android.app.cocktailbarservice
adb shell pm disable-user --user 0 com.cnn.mobile.android.phone.edgepanel
adb shell pm disable-user --user 0 com.sec.android.mimage.gear360editor
adb shell pm disable-user --user 0 com.samsung.android.knox.containercore
adb shell pm disable-user --user 0 com.samsung.android.app.settings.bixby
adb shell pm disable-user --user 0 com.sec.android.app.billing
adb shell pm disable-user --user 0 com.samsung.android.game.gamehome
adb shell pm disable-user --user 0 com.samsung.android.widgetapp.yahooedge.finance
adb shell pm disable-user --user 0 com.sec.enterprise.knox.attestation
adb shell pm disable-user --user 0 com.samsung.systemui.bixby2
adb shell pm disable-user --user 0 com.microsoft.skydrive
adb shell pm disable-user --user 0 com.samsung.android.knox.containeragent
adb shell pm disable-user --user 0 com.samsung.SMT
adb shell pm disable-user --user 0 com.samsung.knox.keychain
adb shell pm disable-user --user 0 com.samsung.android.aircommandmanager
adb shell pm disable-user --user 0 com.samsung.android.bixby.service
adb shell pm disable-user --user 0 com.samsung.android.widgetapp.yahooedge.sport
adb shell pm disable-user --user 0 com.samsung.android.samsungpositioning
adb shell pm disable-user --user 0 com.samsung.android.bixby.agent
adb shell pm disable-user --user 0 com.hancom.office.editor.hidden
adb shell pm disable-user --user 0 com.samsung.android.hmt.vrsvc
adb shell pm disable-user --user 0 com.samsung.knox.securefolder
adb shell pm disable-user --user 0 com.samsung.android.game.gametools
adb shell pm disable-user --user 0 com.samsung.android.service.peoplestripe
adb shell pm disable-user --user 0 com.samsung.android.app.taskedge
adb shell pm disable-user --user 0 com.samsung.android.app.mirrorlink
adb shell pm disable-user --user 0 flipboard.boxer.app
adb shell pm disable-user --user 0 com.google.android.feedback
adb shell pm disable-user --user 0 com.sec.android.app.sbrowser
adb shell pm disable-user --user 0 com.samsung.android.bixbyvision.framework
adb shell pm disable-user --user 0 com.samsung.app.highlightplayer
adb shell pm disable-user --user 0 com.samsung.android.beaconmanager
adb shell pm disable-user --user 0 com.sec.android.soagent
adb shell pm disable-user --user 0 com.samsung.android.fmm
adb shell pm disable-user --user 0 com.samsung.android.bixby.wakeup
adb shell pm disable-user --user 0 com.samsung.android.samsungpass
adb shell pm disable-user --user 0 com.samsung.android.fast
adb shell pm disable-user --user 0 com.samsung.android.knox.analytics.uploader
adb shell pm disable-user --user 0 com.sec.android.emergencylauncher
adb shell pm disable-user --user 0 com.samsung.android.dlp.service
adb shell pm disable-user --user 0 com.samsung.android.visionintelligence
adb shell pm disable-user --user 0 com.samsung.android.app.watchmanagerstub
adb shell pm disable-user --user 0 com.samsung.android.mateagent
adb shell pm disable-user --user 0 com.enhance.gameservice
adb shell pm disable-user --user 0 com.google.vr.vrcore
adb shell pm disable-user --user 0 com.sec.enterprise.knox.cloudmdm.smdms
adb shell pm disable-user --user 0 com.wssyncmldm
adb shell pm disable-user --user 0 com.tmobile.services.nameid
adb shell pm disable-user --user 0 com.samsung.android.app.clipboardedge
adb shell pm disable-user --user 0 com.samsung.upsmtheme
echo "All bloatware is now inactive"
echo "Your phone will now reboot"
read -p "press [Enter] to continue..."
adb reboot
clear
}
# when rebloat is selected in menu2 anyone can be commented out if you need too
# if you add to Debloat list also add to rebloat list so you can always return what was disabled to enabled automatically
rebloat() {
echo "Now enabling all bloatware"
adb shell pm enable --user 0 com.sec.android.widgetapp.samsungapps
adb shell pm enable --user 0 com.google.android.youtube
adb shell pm enable --user 0 com.sec.location.nsflp2
adb shell pm enable --user 0 com.samsung.android.app.cocktailbarservice
adb shell pm enable --user 0 com.cnn.mobile.android.phone.edgepanel
adb shell pm enable --user 0 com.sec.android.mimage.gear360editor
adb shell pm enable --user 0 com.samsung.android.knox.containercore
adb shell pm enable --user 0 com.samsung.android.app.settings.bixby
adb shell pm enable --user 0 com.sec.android.app.billing
adb shell pm enable --user 0 com.samsung.android.game.gamehome
adb shell pm enable --user 0 com.samsung.android.widgetapp.yahooedge.finance
adb shell pm enable --user 0 com.sec.enterprise.knox.attestation
adb shell pm enable --user 0 com.samsung.systemui.bixby2
adb shell pm enable --user 0 com.microsoft.skydrive
adb shell pm enable --user 0 com.samsung.android.knox.containeragent
adb shell pm enable --user 0 com.samsung.SMT
adb shell pm enable --user 0 com.samsung.knox.keychain
adb shell pm enable --user 0 com.samsung.android.aircommandmanager
adb shell pm enable --user 0 com.samsung.android.bixby.service
adb shell pm enable --user 0 com.samsung.android.widgetapp.yahooedge.sport
adb shell pm enable --user 0 com.samsung.android.samsungpositioning
adb shell pm enable --user 0 com.samsung.android.bixby.agent
adb shell pm enable --user 0 com.hancom.office.editor.hidden
adb shell pm enable --user 0 com.samsung.android.hmt.vrsvc
adb shell pm enable --user 0 com.samsung.knox.securefolder
adb shell pm enable --user 0 com.samsung.android.game.gametools
adb shell pm enable --user 0 com.samsung.android.service.peoplestripe
adb shell pm enable --user 0 com.samsung.android.app.taskedge
adb shell pm enable --user 0 com.samsung.android.app.mirrorlink
adb shell pm enable --user 0 flipboard.boxer.app
adb shell pm enable --user 0 com.google.android.feedback
adb shell pm enable --user 0 com.sec.android.app.sbrowser
adb shell pm enable --user 0 com.samsung.android.bixbyvision.framework
adb shell pm enable --user 0 com.samsung.app.highlightplayer
adb shell pm enable --user 0 com.samsung.android.beaconmanager
adb shell pm enable --user 0 com.sec.android.soagent
adb shell pm enable --user 0 com.samsung.android.fmm
adb shell pm enable --user 0 com.samsung.android.bixby.wakeup
adb shell pm enable --user 0 com.samsung.android.samsungpass
adb shell pm enable --user 0 com.samsung.android.fast
adb shell pm enable --user 0 com.samsung.android.knox.analytics.uploader
adb shell pm enable --user 0 com.sec.android.emergencylauncher
adb shell pm enable --user 0 com.samsung.android.dlp.service
adb shell pm enable --user 0 com.samsung.android.visionintelligence
adb shell pm enable --user 0 com.samsung.android.app.watchmanagerstub
adb shell pm enable --user 0 com.samsung.android.mateagent
adb shell pm enable --user 0 com.enhance.gameservice
adb shell pm enable --user 0 com.google.vr.vrcore
adb shell pm enable --user 0 com.sec.enterprise.knox.cloudmdm.smdms
adb shell pm enable --user 0 com.wssyncmldm
adb shell pm enable --user 0 com.tmobile.services.nameid
adb shell pm enable --user 0 com.samsung.android.app.clipboardedge
adb shell pm enable --user 0 com.samsung.upsmtheme
echo "All bloatware is now active"
echo "Your phone will now reboot"
read -p "press [Enter] to continue..."
adb reboot
clear
}
#this will use adb to manually enable packages just add name when asked
menable() {
echo ""
read -p "enter package name you would like to enable:" p
adb shell pm enable --user 0 "$p"
menu2
}
#this will use adb to manually disable packages just add name when asked
mdisable() {
echo ""
read -p "enter package name you would like to disable:" p
adb shell pm disable-user --user 0 "$p"
menu2
}
#this is the manual ADB menu
menu4() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo " Manual ADB Comands "
echo "------------------------------------"
echo "Press 1 to manualy disable a package"
echo "Press 2 to manualy enable a package "
echo "Press 3 to go to Main Menu "
echo "Press 4 to quit "
read value
if [ "$value" == "1" ]; then
clear
mdisable
fi
if [ "$value" == "2" ]; then
clear
menable
fi
if [ "$value" == "3" ]; then
clear
menu2
fi
if [ "$value" == "4" ]; then
clear
echo "(◕‿-) Goodbye (◕‿-) "
exit
fi
clear
}
# menu for package manager
menu3() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo " Package Manager Menu "
echo "------------------------------------"
echo "Press 1 to list disabled packages "
echo "Press 2 to list enabled packages "
echo "Press 3 to list system packages "
echo "Press 4 to list third party packages"
echo "Press 5 to go the Main menu "
echo "Press 6 to quit "
read value
if [ "$value" == "1" ]; then
adb shell pm list packages -d
menu2
fi
if [ "$value" == "2" ]; then
adb shell pm list packages -e
menu2
fi
if [ "$value" == "3" ]; then
adb shell pm list packages -s
menu2
fi
if [ "$value" == "4" ]; then
adb shell pm list packages -3
menu2
fi
if [ "$value" == "5" ]; then
menu2
fi
if [ "$value" == "5" ]; then
echo "(◕‿-) Goodbye (◕‿-) "
exit
fi
}
#prompt you to make sure your device is connected
menu1() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo " Is your device listed "
echo "----------------------------- "
echo "Press 1 for yes. "
echo "Press 2 for no. "
read value
if [ "$value" == "1" ]; then
clear
connected
fi
if [ "$value" == "2" ]; then
clear
ts
fi
clear
}
#after device connection is varified this will be the menu you get
menu2() {
echo " (◣_◢)--Lodk--(◣_◢) "
echo " ADB MENU "
echo "----------------------------- "
echo "Press 1 to run debloat. "
echo "Press 2 to run rebloat. "
echo "Press 3 to run Package Manager"
echo "Press 4 to run manual ADB "
echo "Press 5 to quit "
read value
if [ "$value" == "1" ]; then
clear
debloat
fi
if [ "$value" == "2" ]; then
clear
rebloat
fi
if [ "$value" == "3" ]; then
clear
menu3
fi
if [ "$value" == "4" ]; then
clear
menu4
fi
if [ "$value" == "5" ]; then
clear
echo "(◕‿-) Goodbye (◕‿-) "
exit
fi
}
#this runs all the functions listed above
begin
start
adb devices
menu1
menu2

[ROOT Needed] Walmart Bloat Remover & No Walmart NavBar Button

This is a very basic script I made as I noticed that even after successfully rooting, I could not uninstall System Apps with apps like Lucky Patcher or System App Remover.
Code:
@ECHO OFF
ECHO \................./
ECHO \..Bloat Remover../
ECHO \................./
ECHO SAMS CLUB
adb shell pm uninstall -k --user 0 com.rfi.sams.android
ECHO Walmart
adb shell pm uninstall -k --user 0 com.walmart.android
ECHO FM Radio
adb shell pm uninstall -k --user 0 com.android.fmradio
ECHO Grocery
adb shell pm uninstall -k --user 0 com.walmart.grocery
ECHO VUDU
adb shell pm uninstall -k --user 0 air.com.vudu.air.DownloaderTablet
ECHO Walmart EBooks
adb shell pm uninstall -k --user 0 com.kobobooks.android.walmart
ECHO GPlay Music
adb shell pm uninstall -k --user 0 com.google.android.music
ECHO Auto Dialer Example App (pointless)
adb shell pm uninstall -k --user 0 com.example
ECHO Call Log Backup/Restore
adb shell pm uninstall -k --user 0 com.android.calllogbackup
ECHO Call Management
adb shell pm uninstall -k --user 0 com.android.server.telecom
ECHO Carrier Config
adb shell pm uninstall -k --user 0 com.android.carrierconfig
ECHO SMS Push
adb shell pm uninstall -k --user 0 com.android.smspush
ECHO Call Recorder
adb shell pm uninstall -k --user 0 com.mediatek.callrecorder
ECHO Contacts
adb shell pm uninstall -k --user 0 com.android.contacts
adb shell pm uninstall -k --user 0 com.android.providers.contacts
adb shell pm uninstall -k --user 0 com.google.android.syncadapters.contacts
ECHO Duo
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
ECHO GPlay Movies
adb shell pm uninstall -k --user 0 com.google.android.videos
ECHO Text 2 Speech
adb shell pm uninstall -k --user 0 com.google.android.tts
ECHO Keep Notes
adb shell pm uninstall -k --user 0 com.google.android.keep
ECHO Maps
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
ECHO Mobile Data
adb shell pm uninstall -k --user 0 com.android.phone
adb shell pm uninstall -k --user 0 com.android.providers.telephony
ECHO MMS Service
adb shell pm uninstall -k --user 0 com.android.mms.service
ECHO SIM Data
adb shell pm uninstall -k --user 0 com.android.simappdialog
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.mediateksimprocessor
adb shell pm uninstall -k --user 0 com.mtk.telephony
ECHO Sound Recorder
adb shell pm uninstall -k --user 0 com.android.soundrecorder
ECHO Walmart Nav Bar Button App
adb shell pm uninstall -k --user 0 com.mid.kubedemo
ECHO Fix NavBar back to Stock Android
adb shell settings put secure sysui_nav_bar "space,back;home;recent,space"
ECHO Done!
How to Use
This tutorial is assuming you already have ADB on your system with USB Debugging enabled
1.) Root your device using one of the provided methods in this section
2.) Once Rooting is complete, plug your device into your PC
3.) Open Notepad, copy the code above and paste it.
4.) Save it as BloatRemover.bat (or anything you want)
5.) Double click it when saved and it will automatically remove all the walmart stuff from the tablet! Should work on both the 7 and 10 inch tablets released on Black Friday.
Script 2 Edit Update @CyberstormFox for the info on the walmart logo nav bar button app...
@ragtop429 for the NavBar Reset ADB Code to remove the walmart logo button (although your code was slightly wrong )
Added to the script of everything pertaining to phone operation that was disabled anyway and Text Messaging.
Additional bloat
I also recommend adding the app com.mid.kubedemo.
It's the app that's launched when you hit the Walmart logo embedded in the left side of the navbar.
If anyone can figure out how to remove the icon itself, that would be nice.
It's still there, but now does nothing.
CyberstormFox said:
I also recommend adding the app com.mid.kubedemo.
It's the app that's launched when you hit the Walmart logo embedded in the left side of the navbar.
If anyone can figure out how to remove the icon itself, that would be nice.
It's still there, but now does nothing.
Click to expand...
Click to collapse
yo, thanks for letting me know which one it is. I've actually gotta update this script anyway as I've added everything that pertains to using your phone and text messaging to the debloater as you can't put a sim card in these and its all "disabled" taking up space anyway. I'll edit it right now
KaptinBoxxi said:
This is a very basic script I made as I noticed that even after successfully rooting, I could not uninstall System Apps with apps like Lucky Patcher or System App Remover.
Code:
@ECHO OFF
ECHO \................./
ECHO \..Bloat Remover../
ECHO \................./
ECHO SAMS CLUB
adb shell pm uninstall -k --user 0 com.rfi.sams.android
ECHO Walmart
adb shell pm uninstall -k --user 0 com.walmart.android
ECHO FM Radio
adb shell pm uninstall -k --user 0 com.android.fmradio
ECHO Grocery
adb shell pm uninstall -k --user 0 com.walmart.grocery
ECHO VUDU
adb shell pm uninstall -k --user 0 air.com.vudu.air.DownloaderTablet
ECHO Walmart EBooks
adb shell pm uninstall -k --user 0 com.kobobooks.android.walmart
ECHO GPlay Music
adb shell pm uninstall -k --user 0 com.google.android.music
ECHO Auto Dialer Example App (pointless)
adb shell pm uninstall -k --user 0 com.example
ECHO Call Log Backup/Restore
adb shell pm uninstall -k --user 0 com.android.calllogbackup
ECHO Call Management
adb shell pm uninstall -k --user 0 com.android.server.telecom
ECHO Carrier Config
adb shell pm uninstall -k --user 0 com.android.carrierconfig
ECHO SMS Push
adb shell pm uninstall -k --user 0 com.android.smspush
ECHO Call Recorder
adb shell pm uninstall -k --user 0 com.mediatek.callrecorder
ECHO Contacts
adb shell pm uninstall -k --user 0 com.android.contacts
adb shell pm uninstall -k --user 0 com.android.providers.contacts
adb shell pm uninstall -k --user 0 com.google.android.syncadapters.contacts
ECHO Duo
adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
ECHO GPlay Movies
adb shell pm uninstall -k --user 0 com.google.android.videos
ECHO Text 2 Speech
adb shell pm uninstall -k --user 0 com.google.android.tts
ECHO Keep Notes
adb shell pm uninstall -k --user 0 com.google.android.keep
ECHO Maps
adb shell pm uninstall -k --user 0 com.google.android.apps.maps
ECHO Mobile Data
adb shell pm uninstall -k --user 0 com.android.phone
adb shell pm uninstall -k --user 0 com.android.providers.telephony
ECHO MMS Service
adb shell pm uninstall -k --user 0 com.android.mms.service
ECHO SIM Data
adb shell pm uninstall -k --user 0 com.android.simappdialog
adb shell pm uninstall -k --user 0 com.android.stk
adb shell pm uninstall -k --user 0 com.mediateksimprocessor
adb shell pm uninstall -k --user 0 com.mtk.telephony
ECHO Sound Recorder
adb shell pm uninstall -k --user 0 com.android.soundrecorder
ECHO Walmart Nav Bar Button App
adb shell pm uninstall -k --user 0 com.mid.kubedemo
ECHO Fix NavBar back to Stock Android
adb shell settings put secure sysui_nav_bar "space,back;home;recent,space"
ECHO Done!
How to Use
This tutorial is assuming you already have ADB on your system with USB Debugging enabled
1.) Root your device using one of the provided methods in this section
2.) Once Rooting is complete, plug your device into your PC
3.) Open Notepad, copy the code above and paste it.
4.) Save it as BloatRemover.bat (or anything you want)
5.) Double click it when saved and it will automatically remove all the walmart stuff from the tablet! Should work on both the 7 and 10 inch tablets released on Black Friday.
Script 2 Edit Update @CyberstormFox for the info on the walmart logo nav bar button app...
@ragtop429 for the NavBar Reset ADB Code to remove the walmart logo button (although your code was slightly wrong )
Added to the script of everything pertaining to phone operation that was disabled anyway and Text Messaging.
Click to expand...
Click to collapse
Just wanted to add this.
You can do a temp root using mtk-su
Guide HERE
If you get the following error when you run the batch file
Code:
Fix NavBar back to Stock Android
/system/bin/sh: home: not found
/system/bin/sh: recent,space: not found
Try manually going to ADB Shell and typing the code there manually
In this case:
Code:
adb shell
settings put secure sysui_nav_bar "space,back;home;recent,space"
sm_x said:
Just wanted to add this.
You can do a temp root using mtk-su
Guide HERE
If you get the following error when you run the batch file
Code:
Fix NavBar back to Stock Android
/system/bin/sh: home: not found
/system/bin/sh: recent,space: not found
Try manually going to ADB Shell and typing the code there manually
In this case:
Code:
adb shell
settings put secure sysui_nav_bar "space,back;home;recent,space"
Click to expand...
Click to collapse
I had actually fixed all this and totally forgot about this post to edit it
Root is not needed to change the navbar.
just in case anyone is in my same boat and doesn't have adb installed as a system app (or whatever you call it such that you can access adb from any directory on your computer) and you have to actually be in the platform_tools directory to use adb commands, make sure you copy this bat file to said directory or it won't do anything. once you move it there, it'll work fine.
also... for some reason the nav bar edit didn't work from the bat file. i had to do that one manually.
anyway, thanks for this!
KaptinBoxxi said:
Just wanted to add this.
You can do a temp root using mtk-su
Guide HERE
If you get the following error when you run the batch file
Try manually going to ADB Shell and typing the code there manually
In this case:
I had actually fixed all this and totally forgot about this post to edit it
Click to expand...
Click to collapse
If that doesn't work try:
adb shell settings put secure sysui_nav_bar 'space[1.5WC],back;home;recent,space[1.5WC]'
Root access not needed to remove walmart button.
Quotes
Looks like putting single quotes inside the double quotes works (and should work in the bat file):
Code:
C:\otherApps\platform-tools>adb shell settings put secure sysui_nav_bar "space,back;home;recent,space"
/system/bin/sh: home: not found
/system/bin/sh: recent,space: not found
C:\otherApps\platform-tools>adb shell settings put secure sysui_nav_bar "'space,back;home;recent,space'"
C:\otherApps\platform-tools>adb shell settings get secure sysui_nav_bar
space,back;home;recent,space
The problem is that semicolon is the command delimiter for a 'sh' shell, so it splits the string into three separate commands, but "home" and "recent,space" are not valid. By including the single quotes inside the double, the string gets passed to the shell as a single argument.
Thanks for the script - it otherwise worked well!
N6ML said:
Looks like putting single quotes inside the double quotes works (and should work in the bat file):
Code:
C:\otherApps\platform-tools>adb shell settings put secure sysui_nav_bar "space,back;home;recent,space"
/system/bin/sh: home: not found
/system/bin/sh: recent,space: not found
C:\otherApps\platform-tools>adb shell settings put secure sysui_nav_bar "'space,back;home;recent,space'"
C:\otherApps\platform-tools>adb shell settings get secure sysui_nav_bar
space,back;home;recent,space
The problem is that semicolon is the command delimiter for a 'sh' shell, so it splits the string into three separate commands, but "home" and "recent,space" are not valid. By including the single quotes inside the double, the string gets passed to the shell as a single argument.
Thanks for the script - it otherwise worked well!
Click to expand...
Click to collapse
For everyone with the new 2020 tablets. This script will not work.
I've tried it. You can use adb tools to remove apps though so just do them individually since the tablet no longer have the same exact apps. It really doesn't contain that much bloat. The navigation bar is not easily modified through adb anymore due to android 10. Walmart allows for a two button navigation and a gesture. However, if you change your launcher you cannot use gestures.
The two apps that control the navigation bar are:
com.android.internal.systemui.navbar.twobutton - This one has only two buttons (No walmart button)
com.androidinternal.systemus.navbar.threebutton - This one has three buttons plus the walmart button so a total of 4
I'm going to see if I can install another nav bar to get the stock android bar, but I'm not sure which one to get yet.
szymonurai said:
For everyone with the new 2020 tablets. This script will not work.
I've tried it. You can use adb tools to remove apps though so just do them individually since the tablet no longer have the same exact apps. It really doesn't contain that much bloat. The navigation bar is not easily modified through adb anymore due to android 10. Walmart allows for a two button navigation and a gesture. However, if you change your launcher you cannot use gestures.
The two apps that control the navigation bar are:
com.android.internal.systemui.navbar.twobutton - This one has only two buttons (No walmart button)
com.androidinternal.systemus.navbar.threebutton - This one has three buttons plus the walmart button so a total of 4
I'm going to see if I can install another nav bar to get the stock android bar, but I'm not sure which one to get yet.
Click to expand...
Click to collapse
Any update on this? Did you find a nav bar that worked, with no Walmart button?
Not sure if anyone did this yet but since it looks like Android removed the ability to mess with the nav bar in Android 10, I used the code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
To enable gestures, which removes the Walmart icon and then I used
adb shell settings put global policy_control immersive.navigation=*
to hide the gesture bar. Gestures still work just fine as of now.
afxtwn said:
Not sure if anyone did this yet but since it looks like Android removed the ability to mess with the nav bar in Android 10, I used the code:
adb shell cmd overlay enable com.android.internal.systemui.navbar.gestural
To enable gestures, which removes the Walmart icon and then I used
adb shell settings put global policy_control immersive.navigation=*
to hide the gesture bar. Gestures still work just fine as of now.
Click to expand...
Click to collapse
This didn't work me fully. everything works from home screen but in apps can't pull up from bottom for app switcher.

Debloat oppo reno 10x zoom COS-7.1

Phone Setup
1.Launch the Settings application on your phone.
2.Tap the About Phone option generally near the bottom of the list.
3.Then tap the Build Number option 7 times to enable Developer Mode. You will see a toast message when it is done.
4.Now go back to the main Settings screen and you should see a new Developer Options menu you can access.
5.Go in there and enable the USB Debugging mode option.
Microsoft Windows ADB Setup
1.Download the ADB ZIP file for Windows
2.Extract the contents of this ZIP file into an easily accessible folder (such as C:\adb)
3.Open Windows explorer and browse to where you extracted the contents of this ZIP file
4.Then open up a Command Prompt from the same directory as this ADB binary. This can be done by holding Shift and Right-clicking within the folder then click the “open command prompt here” option. (Some Windows 10 users may see “PowerShell” instConnect your smartphone or tablet to your computer with a USB cable. Change the USB mode to “file transfer (MTP)” mode. Some OEMs may or may not require this, but it’s best to just leave it in this mode for general compatibility.
5.In the Command Prompt window, enter the following command to launch the ADB daemon: ./adb devices
6.On your phone’s screen, you should see a prompt to allow or deny USB Debugging access. Naturally, you will want to grant USB Debugging access when prompted (and tap the always allow check box if you never want to see that prompt again).
7.Finally, re-enter the command from step #6. If everything was successful, you should now see your device’s serial number in the command prompt.
Disable command
adb shell pm disable-user --user 0 (package name)
list (warning:read app names individually and then disable,there may be apps you might need)
.\adb shell pm disable-user --user 0 com.heytap.market
.\adb shell pm disable-user --user 0 com.google.ar.core
.\adb shell pm disable-user --user 0 com.oppo.market
.\adb shell pm disable-user --user 0 com.oppo.market
.\adb shell pm disable-user --user 0 com.oppo.market
.\adb shell pm disable-user --user 0 com.google.ar.core
.\adb shell pm disable-user --user 0 com.facebook.system
.\adb shell pm disable-user --user 0 com.facebook.services
.\adb shell pm disable-user --user 0 com.nearme.browser
.\adb shell pm disable-user --user 0 com.coloros.weather.service
.\adb shell pm disable-user --user 0 com.coloros.weather2
.\adb shell pm disable-user --user 0 com.google.android.setupwizard
.\adb shell pm disable-user --user 0 com.coloros.phonenoareainquire
.\adb shell pm disable-user --user 0 com.facebook.services
.\adb shell pm disable-user --user 0 com.nearme.browser
others:
app:Google photos (disable if you had heavy battery drain like i had)
package:com.google.android.apps.photos
app:Music
package:com.oppo.music
app:YouTube Music
package:com.google.android.apps.youtube.music
app:Facebook App Manager
package:com.facebook.appmanager
app:Weather Services
package:com.coloros.weather.service
app:Assistive Ball
package:com.coloros.floatassistant
app:User Experience Program
package:com.nearme.statistics.rom
app:RfToolkit
package:com.oppo.rftoolkit
How to re-enable: goto playstore , search for the app you want to enable and click enable.
OR
go to settings>app management>search for the app and hit enable.
Is it safe to uninstall google app from phone ?

How to deinstall bloatware SM-A515F

Warning!!!! Warning!!!!
Do it with your own risk! For correctest, I 'm not responsered - please read it very carefully!
Source: https://www.heise.de/tipps-tricks/Android-Vorinstallierte-Apps-loeschen-ohne-Root-4324092.html
This article is in German - please use an online translator!
Here is the short form:
Open the adb shell in the computer:
Code:
adb shell
su
Listing the packages:
Code:
pm list packages |grep samsung
List the packages the 3rd providers:
Code:
pm list packages -3
Packages forever erasing:
Code:
pm uninstall -k --user 0 [name of the package from the list]
And install your own packages collection, on the fast and easy way
First copy the apps in to the tmp directory:
Code:
cp /use/your/own/path/the/collection/*.apk /data/local/tmp
Please use here your own path, where is the collection!
The installation:
Code:
for app in /use/the/full/path/for/the/*.apk [ type Enter]
do $(pm install --user 0 $app) [type Enter]
done; [type Enter]
Please use the full path for the installation!
To eliminate this error:
Code:
Failure [INSTALL_FAILED_INVALID_URI]
Responser
Code:
: Success: inaccessible or not found
This is normal. Important >> Success <<
Finally, the job has done, cleaning the tmp directory:
Code:
rm -rf /data/local/tmp/*.apk
This was it, and very simple.
To Debloat this phone we have to create whitelist of apps.
This debloat for advanced users.
Before you begin you should install custom launcher, SMS app, dialer, camera app and keyboard and any other which stopped working.
If something went wrong you can restart phone by holding vol down + pwr (more than 7 seconds), then when phone restarts release them and hold vol up to enter recovery (sometimes you had to reflash with odin in download mode not only wipe data and cache).
At the beginning we should remove all updated system apps:
Code:
pm uninstall-system-updates
Then we can remove all samsung and 3hrd party apps:
I will add more apps to remove to this list. I'm trying to prepare list of minimal apps from AOSP.
expermental list: https://pastebin.com/AkyA2WpT
Uninstalling app command:
Code:
pm uninstall -k --user 0 <name of package>
Restore app command:
Code:
cmd package install-existing <name of package>
If you forgot to install alternative apps you can restore the original one :
To restore Original Camera:
without this package camera app will still crashing
Code:
cmd package install-existing com.samsung.android.provider.filterprovider
Restore Dialer + incoming calls + sim card pin and settings:
Code:
cmd package install-existing com.samsung.android.dialer
cmd package install-existing com.samsung.android.incallui
cmd package install-existing com.samsung.android.app.telephonyui
Restore keyboard
Code:
cmd package install-existing com.samsung.android.honeyboard
Restore fingerprint sensor:
Code:
cmd package install-existing com.samsung.android.biometrics.app.setting
Same packages list as below, without app names, you can generate using adb:
Code:
adb shell pm list packages
Full List of Apps from Samsung Galaxy A51 generated by: App List Package Manager
https://pastebin.com/KwkZhkZH

Categories

Resources