Related
I moved from an HD2 to the Evo this week (no more TMobile, woot!). I am very familiar with custom WMO ROMS, Hard SPL, blah blah...
I have nearly zero Android development, custom ROM knowledge, etc, however.
I'd like to flash a custom ROM based on the factory, without all the Sprint programs preloaded.
Clearly I need to root; I am on steady ground with that knowledge. After that? Not so clear. There doesn't seem to be a thread with the steps I need to proceed.
Any info would be invaluable, thanks!
(PS - side question: why does Android launch all sort of processes in the background seemingly at random?)
ifiweresolucky said:
I moved from an HD2 to the Evo this week (no more TMobile, woot!). I am very familiar with custom WMO ROMS, Hard SPL, blah blah...
I have nearly zero Android development, custom ROM knowledge, etc, however.
I'd like to flash a custom ROM based on the factory, without all the Sprint programs preloaded.
Clearly I need to root; I am on steady ground with that knowledge. After that? Not so clear. There doesn't seem to be a thread with the steps I need to proceed.
Any info would be invaluable, thanks!
(PS - side question: why does Android launch all sort of processes in the background seemingly at random?)
Click to expand...
Click to collapse
This should be in Q & A.. But unless someone creates a rom with the apps removed. Its easier to just do it yourself.
If you did toasts method of rooting. Boot into recovery and type this
adb remount
adb shell
cd /system/app
ls
This displays all apps on the phone. Do this to delete them.
rm NameOfApp.apk
rm NameOfApp.odex
It is caps sensitive and make sure you type the apk exactly as its written.
Jus10o said:
This should be in Q & A.. But unless someone creates a rom with the apps removed. Its easier to just do it yourself.
If you did toasts method of rooting. Boot into recovery and type this
adb remount
adb shell
cd /system/app
ls
This displays all apps on the phone. Do this to delete them.
rm NameOfApp.apk
rm NameOfApp.odex
It is caps sensitive and make sure you type the apk exactly as its written.
Click to expand...
Click to collapse
any reason adb remount isn't working for me? I do adb devices and my devices is there but when i type adb remount i get "remount faild: Invalid argument"
I started Toasts root directions, placing PC36IMG.zip on the base directory of the SD card. Shut down, loaded with the Vol Down and Power buttons. The bootloader checked the file on the SD card but then stopped on the white screen.
It seems it was supposed to proceed automatically? But I am dropped off with options on the white screen: FASTBOOT, RECOVERY, CLEAR STORAGE, SIMLOCK, and HBOOT USB.
Directions show Vol Up and Down for previous and next and Power for select.
Alright, I resolved this issue. I recopied the file to the SD card and made sure to eject drive before shutting the device down. Seemed to make all the difference! Proceeding with the remainder of Toast's directions now...
p-slim said:
any reason adb remount isn't working for me? I do adb devices and my devices is there but when i type adb remount i get "remount faild: Invalid argument"
Click to expand...
Click to collapse
I'm running in to the same issue...
rgordon3091 said:
I'm running in to the same issue...
Click to expand...
Click to collapse
i fixed it. you have to do this.
adb shell
mount /dev/block/mtdblock4 /system
cd /system/app
ls
Getting error trying to remove nascar..
Code:
rm Sprint_NASCAR.apk
rm failed for Sprint_NASCAR.apk, Directory not empty
Any ideas?
That's Linux trying to protect you. Essentially the rm command by default just removes one file at a time.
Try...
rm -r NameOfFolder
...to delete recursively.
Sent from my EVO 4G using Tapatalk
Go see the thread in the apps sub-forum about this. I have a post (#28, I believe) with the exact code to remove the bloatware. You can just copy any paste.
-------------
Sent from my HTC EVO 4G using Tapatalk Pro.
nick325i said:
Getting error trying to remove nascar..
Code:
rm Sprint_NASCAR.apk
rm failed for Sprint_NASCAR.apk, Directory not empty
Any ideas?
Click to expand...
Click to collapse
you shouldn't have a problem deleting the apk, because an apk is not a directory.
i deleted it without the same message.
p-slim said:
i fixed it. you have to do this.
adb shell
mount /dev/block/mtdblock4 /system
cd /system/app
ls
Click to expand...
Click to collapse
'
hmmm i put im adb shell then i got a "#" so i put in "mount /dev/block/mtdblock4 /system"
and i got mount:mounting /dev/block/mtdblock4 /system failed: No such file or directory
so what did i do wrong?
Found the issue. Thanks all
Jus10o said:
This should be in Q & A.. But unless someone creates a rom with the apps removed. Its easier to just do it yourself.
If you did toasts method of rooting. Boot into recovery and type this
adb remount
adb shell
cd /system/app
ls
This displays all apps on the phone. Do this to delete them.
rm NameOfApp.apk
rm NameOfApp.odex
It is caps sensitive and make sure you type the apk exactly as its written.
Click to expand...
Click to collapse
By the way, when I "cd /system/app" and then "ls" I see only NamesOfApps.apk. There are displayed no *.odex files. Is that normal?
thread dead?
IDK if this threads still monitored by anyone, but here's my question: I don't use adb, but I just rused root explorer to locate sprint crap, and added a .bak to the end of all of them to essentially 'disable' them. Is this a safe method? Will Android system waste energy looking for them anymore (they no longer show in app tray, but are they still using resources) ? Thanks much.
scottspa74 said:
IDK if this threads still monitored by anyone, but here's my question: I don't use adb, but I just rused root explorer to locate sprint crap, and added a .bak to the end of all of them to essentially 'disable' them. Is this a safe method? Will Android system waste energy looking for them anymore (they no longer show in app tray, but are they still using resources) ? Thanks much.
Click to expand...
Click to collapse
I was just about to say something similar. I had uninstalled Nascar using Titanium Backup, and the found out that I cant do the 2.2 OTA unless its there. TB didn't have the ability to restore it for some reason, so I got an APK from XDA, and put it in the system/app folder via Root Explorer. Then, I had to reset the permissions to match the other APK's, and it showed up and launched perfectly. Even did an update. Much easier than all that adb stuff, I think.
I used system app uninstaller for a buck on the market.. Easy and all there with the icons for easy to find and delete sprint and gapps.
Sent from my PC36100 using XDA App
scottspa74 said:
IDK if this threads still monitored by anyone, but here's my question: I don't use adb, but I just rused root explorer to locate sprint crap, and added a .bak to the end of all of them to essentially 'disable' them. Is this a safe method? Will Android system waste energy looking for them anymore (they no longer show in app tray, but are they still using resources) ? Thanks much.
Click to expand...
Click to collapse
Thats a good way.. If something goes wrong just have to rename.
Sent from my PC36100 using XDA App
Flash this zip and it should remove most of the Sprint apps. It will back them up to /sdx on your SD card so if anything is removed that you want, it will still be there. It's signed to work with RA.
http://grathwohl.me/uploads/android/evo/Sprint-Apps-Remover-signed.zip
I've seen a few people reference my post, but my post was really just trying to ask if anyone knew if, now that I've renamed them, and they don't run, they shouldn't be using up resources? Right, is that correct, or am I wrong in thinkin this?
And thanks cosine83, that's a really helpful post for a lot of people.
Ok, to save some people some time here for rooting and opening it up to non-market apps on your bravo, and probably any motorola AT&T device.
1. Z4Root is the easiest way to root since you just get it from the market. One buttons press then done.
2. to modify the settings.db in /data/data/com.android.providers.settings/databases/ use the SuperOneClick which you can get here
http://forum.xda-developers.com/showthread.php?t=803682
3. I used root explorer, which you can get from the market and just edited the /system/etc/motorola/com.android.providers.settings/secure.mkitso
and /system/etc/motorola/com.motorola.android.providers.settings/settings.mkitso files in place. Copying them, editing them, and chmodding them didn't seem to work for me for whatever reason. The way I did it, you don't have to do anything other than edit the file in text editor and factory reset your phone.
Rooted mine the other day using the Droid 2 root method at modmymobile.
I can't post links yet, so here's the instructions:
dragonius said:
Setup:
- Make sure you have ADB installed properly and the latest Motorola drivers.
- Download attached archive
- Extract to a directory, I used C:\Droid2Root
- Make sure you have USB degugging enabled
- Change connection to PC Mode
Process:
- Open Command Prompt (Start - Run - cmd - Enter)
- adb devices (to verify the connection)
- cd C:/Droid2Root
- adb push Superuser.apk /sdcard/Superuser.apk
- adb push su /sdcard/su
- adb push busybox /sdcard/busybox
- adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin
- adb shell
- cd data/local/tmp
- chmod 0755 rageagainstthecage-arm5.bin
- ./rageagainstthecage-arm5.bin
- Let the process run until the prompt returns you to C:/Droid2Root (be patient, it takes a while, but does happen. If not, reboot phone and try again.)
- adb devices (to verify the connection)
- adb shell (you should now have a # prompt)
- mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
- cp /sdcard/Superuser.apk /system/app/Superuser.apk
- cp /sdcard/su /system/bin/su
- cp /sdcard/busybox /system/bin/busybox
- chmod 4755 /system/bin/su
- chmod 4755 /system/bin/busybox
- mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
- exit
Once you have achieved root, to update the Superuser.apk to the latest version, run these commands:
- adb shell
- su
- mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
- rm /system/app/Superuser.apk
- pm uninstall com.noshufou.android.su
Then search on the market for Superuser and download the one by ChainsDD. Confirmed working on latest Droid2 2.2 OTA & the new leaked 2.3.15 OTA.
Click to expand...
Click to collapse
On the Bravo its not "PC Mode", I think its "Portal and Tools" Other then that, everything worked flawlessly.
Thanks, a bunch. I actually used the Z4Root app from the market and it worked flawlessly. Now I'm just trying to figure out how to allow non market apps and maybe get an overclock going on this. any suggestions?
Grape Drank said:
Thanks, a bunch. I actually used the Z4Root app from the market and it worked flawlessly. Now I'm just trying to figure out how to allow non market apps and maybe get an overclock going on this. any suggestions?
Click to expand...
Click to collapse
I just bought this phone for my younger brother and I'm impressed. I have a Droid Incredible and its just as smooth. I also verified that the Z4root app from the marketplace roots the phone.
Did anyone get it unlocked yet
Yeah, it's a great phone. I'm trying to get the settings.db thing to work so we can install non-market apps, but it doesn't seem to be working. I got the db modded and put back in place, but I still don't see the option in the application manager screen.
IMO this is the #2 android phone on AT&T next to the captivate. that SAMOLED is great and the GPU on the captivate is top notch.
Anyway, if anyone can assist on the non-market app thing that would be great.
So far, I have rooted with Z4Root, removed the AT&T crapware, installed the MarketAccess to get around the stupid AT&T market filters. Last thing is to get the non-market apps going. After that it's a matter of waiting for this device to gain popularity and some custom ROMs.
I managed to get my Bravo to install non-market apps using:
1. SuperOneClickv1.5.5-ShortFuse
2. Click Here
I am not sure if just step 2 alone would be OK though.
Remember, you have to factory reset after you have finished with step 2.
Good Luck!
I edited my original post with the steps and tools I used to get the phone rooted and non-market unlocked.
Wait so can some explain how to unlock it?
Sent from my SGH-T959 using XDA App
cooldead said:
Wait so can some explain how to unlock it?
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
If you mean "unlock" as in able to use the phone on a different carrier no one has posted how to do it yet. The OP meant allowing non-market apps.
Got cha, thanks.
Sent from my SGH-T959 using XDA App
cooldead said:
Got cha, thanks.
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
No problem
I'm lost here,
Downloaded z4root onto my phone because it's not available on Market,
but it won't let me run the z4root.apk because it's not a market app.
total newb here, so any help would be appreciated.
thanks
Nevermind, got z4 to install using Android Central's Sideload Wonder Machine, then rooted my phone no problem, installed TiTanium backup, and rid of the bloatware.
Phone processes quicker, from settings, fetching list of running apps, data manager, manager etc, list loads much quicker now.
How did you go about getting rid of the garbage-ware? curious.
Hi I'm posting here in hopes to get a response because I cannot seem to get a response on the S1C forum. I rooted with z4root but cannot get non market apps enabled using S1C. I have .net framework 4.0 using vista and the motorola drivers from their site. I get as far as "getting mount path" and then it fails. Am I missing something or should this be working for me. And if so, what could be the problem? Many thanks.
SideloadWonderMachine worked for me, give it a shot. 2 clicks to add an app. Pretty foolproof (I am a fool).
Rooted my Bravo using adb install z4root (linux PC) then ran z4root from phone, worked great.
just rooted Bravo using Droid2Root files and manual ADB commands, from the thread that Gumpo10k shared in this thread, up above. Worked great, now I need a good 2.2 ROM to get tethering working.
Today i read from droidforum.net and i see this one, and try to bring it here
source from droidforum and credit by SGMD1
All tutorials below are working as of February 2011. You will only need one file to root, which is included at the bottom of this post.
ROOT/UNROOT TUTORIAL (Courtesy of RyanZA on xdadevelopers)
1. Download and extract the z4root.zip file and copy the .apk directly to /sdcard.
2. Go to Settings -> Applications and make sure "Unknown sources - Allow installation of non-Market applications" is checked. Then click "Development" on the same page and make sure "USB debugging" is checked.
3. Open the "Files" app, navigate to the z4root location and install.
4. Launch z4root and select the Permanent Root option. Give it a minute to do its thing and reboot. If it spends more than two minutes on the message "'Running exploit in order to obtain root access" then you'll want to restart the app; this happens sometimes. Just exit the app by pressing the Home key, kill the app via a task killer (or Settings -> Applications -> Manage Applications -> z4root -> Force stop) and run z4root again. Voila, you're rooted! (You can also use z4root to unroot.)
5. Wireless Tether is a good first app to download if you're rooted. Download the most recent version of Wireless Tether (v2.0.6 as of 1/09/11) to test if you're rooted properly here
MANUAL UNROOT TUTORIAL (Use only if you previously rooted using the terminal emulator method, NOT z4root)
1. Download and install "Android Terminal Emulator" by Jack Palevich from the Market.
2. At the "$" symbol, type the following lines of code (press Enter after each line):
su (you should now see the "#" symbol)
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
rm /system/app/Superuser.apk
rm /system/bin/su
rm /system/bin/busybox
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
3. Exit the terminal emulator and reboot your phone. You will no longer have root.
CUSTOM RECOVERY TUTORIAL (Courtesy of Koushik Dutta aka Koush)
1. Download the Droid2Bootstrap.zip file at the bottom of this post, extract the .apk file and place it on /sdcard.
2. Go to the "Files" app, locate the Droid2Bootstrap.apk on /sdcard, install it, and open it. (Select "allow" when asked whether to grant the app superuser permissions)
3. Click "Bootstrap Recovery" and wait for the "success" notification. Then click "Reboot Recovery" and you're done! This will boot you into recovery where you can make nandroid backups, install from .zips, etc (do a search on the forums for more about custom recovery if you aren't familiar with it)
4. DO NOT delete the Droid 2 Bootstrap app once you have completed step 2, as this is the only surefire way to access the custom recovery. Holding "X" + "Power" will take you into the normal recovery.
SIM UNLOCK TUTORIAL
1. Make sure your phone line has been active and had no late payment history for at least six months. If it hasn't, VZW will not unlock your SIM.
2. Call VZW Global Support at 1-800-711-8300 and ask the representative for your phone's SIM unlock code.
3. To test it, you will need a non-VZW SIM. Once you insert it and power your D2 Global back on, it will ask for the unlock code.
NOTE: It appears that Verizon has put a carrier lock on the device for US GSM carriers. Therefore until someone figures out a workaround, you will not be able to use this device on AT&T or T-Mobile in its current state, even if SIM unlocked. The good news is that devs on various boards seem to be close to a workaround so as soon as one becomes available I will add it here.
Not the same phone.
That was very confusing for a second... lol
Sent from my ADR6350 using XDA App
Diferent exploit on droid2 than for incredible 2. Wish it could be that easy though.
Sent from my SCH-I500 using XDA Premium App
Thread closed since you are in the wrong forum.
[HOW-TO] [GSM & CDMA] How to root without unlocking bootloader (for ITL41D to JRO03O)
As of Oct 10, 2012: Google has patched this vulnerability starting with JRO03U. That is to say, this works on versions of ICS and JB from ITL41D to JRO03O inclusive. It will not work for JRO03U or newer. (My previous guide found here only worked on Android versions 4.0.1 and 4.0.2, i.e., ITL41D/F and ICL53F.
Once you have root, you can use segv11's BootUnlocker app to unlock your bootloader without wiping anything. Easy as pie!
Disclaimer: I take no credit for this exploit or the implementation of it. All credit goes to Bin4ry and his team. I just isolated the parts required for the GNex, modified it slightly and eliminated the script.
So, it looks like Bin4ry (with the help of a couple of others) has managed to find a way to exploit a timing difference in the "adb restore" command. See source here. (Although this may be old news to some, I hadn't seen it before a few days ago.) This is more for informational purposes, as having a Nexus device, we are able to backup our data, unlock the bootloader and restore the backup, so this is guide is not really that useful for most, but you still have those users who are scared to unlock their bootloader. It is useful however, for those with a broken power button, as it allows them to unlock their bootloader without the power button.
How this works
The way this works is as follows: the "adb restore" command needs to be able to write to /data to restore a backup. Because of this, we can find a way to write something to /data while this is being done. Now, Android parses a file called /data/local.prop on boot. If the following line exists in local.prop, it will boot your device in emulator mode with root shell access: ro.kernel.qemu=1. So, if we can place a file called local.prop with the aforementioned line in /data, once your device boots, it will boot in emulator mode and the shell user has root access, so we now can mount the system partition as r/w.
So what does this all mean:
You can now root any version of ICS and JB released to-date without having to unlock your bootloader (and without losing your data).
Moreover, you should now be able to root your device even if your hardware buttons are not working.
Additionally, this allows those who have not received an OTA update and want to apply it without having an unlocked bootloader or root to do so by copying the OTA update to /cache from /sdcard.
Notes:
1) Please read the entire post before attempting this.
2) This does not wipe any of your data, but I take no responsibility if something happens and you lose your data. Maybe consider doing a backup as per this thread before attempting this.
3) This assumes that you have USB Debugging enable on your device (Settings > Developer Options > Enable USB Debugging) and the drivers for your device installed on your computer. For the drivers, I would recommend you remove all old drivers and install these. If you don't know how to install them, or are having issues, look here.
4) This obviously needs to be done over ADB, as you cannot run adb in a terminal emulator on-device. If you do not have ADB, I've attached it in the zip (Windows and Linux versions). Unzip all files.
Step-by-step:
1) Download the attached files to your computer and unzip them;
2) Open a command prompt in that same directory;
3) Copy the root files to your device:
adb push su /data/local/tmp/su
adb push Superuser.apk /data/local/tmp/Superuser.apk
4) Restore the fake "backup": adb restore fakebackup.ab Note: do not click restore on your device. Just enter the command into the command prompt on your PC and press the enter key.
5) Run the "exploit": adb shell "while ! ln -s /data/local.prop /data/data/com.android.settings/a/file99; do :; done" Note: when you enter this command, you should see your adb window flooded with errors -- this is what is supposed to happen.
6) Now that the "exploit" is running, click restore on your device.
7) Once it finishes, reboot your device: adb reboot Note: Do not try and use your device when it reboots. Running this exploit will reboot your device into emulator mode, so it will be laggy and the screen will flicker -- this is normal.
8) Once it is rebooted, open a shell: adb shell
Note: Once you do step 8, your should have a root shell, i.e., your prompt should be #, not $. If not, it did not work. Start again from step 4. (It may take a few tries for it to work. Thanks segv11.)
Now we can copy su and Superuser.apk to the correct spots to give us root.
9) Mount the system partition as r/w: mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
10) Copy su to /system: cat /data/local/tmp/su > /system/bin/su
11) Change permissions on su: chmod 06755 /system/bin/su
12) Symlink su to /xbin/su: ln -s /system/bin/su /system/xbin/su
13) Copy Superuser.apk to /system: cat /data/local/tmp/Superuser.apk > /system/app/Superuser.apk
14) Change permissions on Superuser.apk: chmod 0644 /system/app/Superuser.apk
15) Delete the file that the exploit created: rm /data/local.prop
16) Exit the ADB shell: exit (May have to type exit twice to get back to your command prompt.)
17) Type the following (not sure if this is needed for the GNex, but it shouldn't matter): adb shell "sync; sync; sync;"
18) Reboot: adb reboot
19) Done. You now should have root without having to unlock your bootloader. If you want to unlock now, you can without wiping anything. See segv11's app linked at the beginning of this post.
Note: If you still do not have root access after doing these steps, redo them and add this step between 10 and 11:
10b) Change the owner of su: chown 0.0 /system/bin/su (Thanks maxrfon.)
I've done all. It installs supersuser app but the phone is not really rooted and apps that requires it doesn't work
Lorenzo_9 said:
I've done all. It installs supersuser app but the phone is not really rooted and apps that requires it doesn't work
Click to expand...
Click to collapse
Did you try opening the Superuser app?
What happens when you open an app that requires root? Do you get the request for su access?
You can open the app but whith apps that requires root there are no requestes and they don't... Even using root checker you see that you're not rooted
Lorenzo_9 said:
You can open the app but whith apps that requires root there are no requestes and they don't... Even using root checker you see that you're not rooted
Click to expand...
Click to collapse
Re-run the entire procedure again (including pushing the su and Superuser.apk files). When I had done it, I used the latest version of su and Superuser.apk, but when I uploaded the files in the attachment in post #1, I used the files that Bin4ry had in his package, which I assume are older. Regardless, re-download the attachment in the first post and try it again.
efrant said:
Re-run the entire procedure again (including pushing the su and Superuser.apk files). When I had done it, I used the latest version of su and Superuser.apk, but when I uploaded the files in the attachment in post #1, I used the files that Bin4ry had in his package, which I assume are older. Regardless, re-download the attachment in the first post and try it again.
Click to expand...
Click to collapse
Ok I'll do it and then I'll report you what happens. So now have you updated su and superuser.apk?
Lorenzo_9 said:
Ok I'll do it and then I'll report you what happens. So now have you updated su and superuser.apk?
Click to expand...
Click to collapse
Yes, I put the latest versions in the zip in the first post.
I can confirm that this works, and also that step 10b was not needed for me. This is the first time I have not used a toolkit so if I can do it, anyone can.
Running a Verizon Galaxy Nexus, this allowed me to update to the leaked Jelly Bean OTA with a locked bootloader. I first flashed stock 4.0.4 and locked the bootloader. I then used the exploit to gain root access, allowing me to apply IMM76Q and JRO03O OTA updates via stock recovery. (Rebooting between updates.) Thank you for creating a guide that this newb could easily understand and follow.
serty4011 said:
I can confirm that this works, and also that step 10b was not needed for me. This is the first time I have not used a toolkit so if I can do it, anyone can.
Running a Verizon Galaxy Nexus, this allowed me to update to the leaked Jelly Bean OTA with a locked bootloader. I first flashed stock 4.0.4 and locked the bootloader. I then used the exploit to gain root access, allowing me to apply IMM76Q and JRO03O OTA updates via stock recovery. (Rebooting between updates.) Thank you for creating a guide that this newb could easily understand and follow.
Click to expand...
Click to collapse
Thanks for confirming that step was not needed.
Thanks!
Bookmarked for future reference :good:
does it work on nexus 7 ?
dacc said:
does it work on nexus 7 ?
Click to expand...
Click to collapse
Yes, it should.
thans for quick response
Works fine for my GNex, big thanks! How about putting it into a script for non-advanced users here?
wictor1992 said:
Works fine for my GNex, big thanks! How about putting it into a script for non-advanced users here?
Click to expand...
Click to collapse
Glad you got it working!
As for putting it into a script, I could but I'd rather not. As with most of the guides that I have written up, I purposely do not put things into a script so that people would actually go through all the steps and, by doing so, maybe get an understanding of what they are actually doing, and hopefully learn something in the process. If I would have packaged it up into a script, a lot of the less experienced users would not even try to go through the steps -- they would just use the script, and no one learns anything yet again. See here for some discussion on one-click scripts. Granted, blindly following a step-by-step is not much better, but I have tried to put comments and explanations throughout to facilitate learning. It's about the journey...
P.S.: I would appreciate it if no one else posts a script in this thread.
efrant said:
P.S.: I would appreciate it if no one else posts a script in this thread.
Click to expand...
Click to collapse
can i make a script that just puts in big text "STOP USING TOOLKITS AND 1 CLICKS"
Zepius said:
can i make a script that just puts in big text "STOP USING TOOLKITS AND 1 CLICKS"
Click to expand...
Click to collapse
LOL! Yes, sure, that's one script I don't mind being posted. LOL!
Heh, fair enough. I think I'm learning a bit about adb
One question: I can't replace system APKs by installing them, it tells me that there is a signature conflict. How can I fix that? I thought it shouldn't happen after rooting. (I'm trying to install the "international" velvet.apk).
wictor1992 said:
Heh, fair enough. I think I'm learning a bit about adb
One question: I can't replace system APKs by installing them, it tells me that there is a signature conflict. How can I fix that? I thought it shouldn't happen after rooting. (I'm trying to install the "international" velvet.apk).
Click to expand...
Click to collapse
Let's try to keep this thread on-topic please.
But to answer your question, don't install the apk. Using a file explorer that has root access, copy it to /system/app (after making sure that system is r/w) and make sure the permissions are set to match the other apks in that directory.
when running adb after running the command where i tell it to restore fake restore and then while the "exploit" is running ikeep getting , in cmd, link failed, no such file or directory, and it just keep doing that. is this normal or did i do something wrong.
efrant said:
Let's try to keep this thread on-topic please.
But to answer your question, don't install the apk. Using a file explorer that has root access, copy it to /system/app (after making sure that system is r/w) and make sure the permissions are set to match the other apks in that directory.
Click to expand...
Click to collapse
Hello,
I've created a simple .bat file which can be run from a Windows computer while your phone is booted into TWRP to remove various apps that I consider bloat. I have not encountered any issues in my usage the past week, but your usage pattern may vary. This is tested on a G8142 running Oreo 47.1.A.5.51, but there is no reason it should not work on other versions. This is limited to Windows, but the commands are all ADB-specific and have nothing to do with Windows, so it should also work on Mac & Linux by changing the file extension. I take no responsibility if this messes up your phone! But, all changes this script makes can be reversed by flashing system & oem with Newflasher.
Note: This script will remove Sony Home! Please make sure you have an alternate launcher installed or remove that app from the script!!! Additionally, the app removes Google Messages, Sony Clock, Sony Calendar, Chrome, Sony Email, Gmail, Google, various international keyboard layouts, and Text-to-speech functionality. All of these, or alternatives, can be re-installed through the Play Store though.
To Modify:
The .bat file can be modified by opening with any text editor. All apps are labeled with their name, as below:
::Google Messages
adb shell rm -rf /system/app/Messages
adb shell rm -rf /data/user/0/com.google.android.apps.messaging
To prevent this app from being uninstalled, just delete those lines.
To add an app that is not on the list, use an app such as App Inspector to find the directory the app is installed to and the directory its data is located in, then add those to the list as below:
adb shell rm -rf <app Source Dir, excluding last /******.apk>
adb shell rm -rf <app Data Dir>
In some instances, such as if the app has been updated from the Play Store, you may need to remove it from /data/app/ and from /system/app/ (or /system/priv-app) as below:
::Sony What's New
adb shell rm -rf /system/priv-app/sonyentrance2-release
adb shell rm -rf /data/app/com.sonymobile.entrance*
adb shell rm -rf /data/user/0/com.sonymobile.entrance
The * above is used as a wildcard, meaning that any folder that matches everything before the * will be deleted. This is needed because random strings of letters and numbers are added to the end of the app name when installed to /data/app/. Please be careful with your * use, since using something like "adb shell rm -rf /data/app/com.sonymobile.*" would clear out several apps' data!
Instructions:
Power down the device
Reboot into TWRP by holding Power and Volume Down (phone must not be plugged into computer yet)
Attach phone to computer
Unzip JunkCleaner.zip (this is not a flashable zip!) and extract JunkCleaner.bat
Move JunkCleaner.bat to a folder that contains adb.exe
Double click on JunkCleaner.bat and let run to completion
You're all set!
Known Issues:
Swiftkey may force close on you, to fix this, clear the cache from Settings -> Apps & notifications -> App Info -> Swiftkey Keyboard -> Storage -> Clear Cache
You will see a notification that com.sonymobile.rcahandler has force closed when you first boot the phone. This can be fixed by turning on Ultra Stamina mode, turning it off, then rebooting a second time after Ultra Stamina Mode has already rebooted your phone.
To Return to Stock/Reinstall any apps:
To get back to stock, just use Newflasher to reinstall system & oem partitions. This will restore all apps that this script removes.
Please let me know if there are any apps that you have safely removed that are not in my list, as I'm sure the amount of apps can be whittled down even further.
just what i needed. thank you!
and what about those system apps like basic sleep mode and crash monitor? doe they have any effect on phone after uninstalling? going to flash Oreo now and will use your debloater
Should not be any harm, no. The Basic Sleep Mode Apps are for Android's Screensaver (under Settings -> Display -> Screen Saver), which is a bit useless without an AMOLED display since it will just kill your battery. The Crash Monitor is used by Sony for getting diagnostic info in case of a crash, but we're out of warranty by unlocking the phone, so no real effect there either.
UPDATE:
just flashed this on nougat. successfully removed all apps specified. i edited the script and excluded xperia home, album and music. works as expected. maybe you can try to find more useless apps that doesnt do anything but hog up the Ram and battery.
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me
For anyone that doesn't want to use this but still want to easily debloat many apps at once.
Titanium Backup has an (un)installer feature which lets you pick all the apps you want and then hit (un)install.
FartyParty said:
For anyone that doesn't want to use this but still want to easily debloat many apps at once.
Titanium Backup has an (un)installer feature which lets you pick all the apps you want and then hit (un)install.
Click to expand...
Click to collapse
that doesnt uninstall all apps. advanced logging cant be removed for me. also prime video was never removed with TB
Saadkhalid786 said:
that doesnt
Click to expand...
Click to collapse
It does uninstall whatever you want so please stop spreading lies
FartyParty said:
It does uninstall whatever you want so please stop spreading lies
Click to expand...
Click to collapse
it never did uninstall prime video and audio settings for me.
can u pls try and remove audio settings and prime video on OREO 5.51 with TB (any version)?
all im asking is him to add these apps to the script.
i'll wait
FartyParty said:
It does uninstall whatever you want so please stop spreading lies
Click to expand...
Click to collapse
It may be that because Amazon Prime Video is located in the /oem partition rather than /system/app or /system/priv-app, Titanium Backup does not have code to grant write access to that directory, though I have not tested myself. Even then, the benefit of this script is that it saves you from having to manually delete ~50+ apps each time a monthly patch comes out.
Saadkhalid786 said:
UPDATE:
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me
Click to expand...
Click to collapse
Glad it's working well for you! I'll take a look at removing some of those and try and update the package later tonight. Fairly certain that telephonyservice and shell are both required by Android, but will see if any of the rest can be taken out.
Pointless816 said:
Glad it's working well for you! I'll take a look at removing some of those and try and update the package later tonight. Fairly certain that telephonyservice and shell are both required by Android, but will see if any of the rest can be taken out.
Click to expand...
Click to collapse
Much Obliged.
Pointless816 said:
manually delete ~50+ apps each time a monthly patch comes out..
Click to expand...
Click to collapse
You don't to manually delete apps, you can just quickselect and hit uninstall, you can also do schemes etc.
Anyway, thanks for the script regardless! Options are always nice.
Pointless816 said:
Hello,
I've created a simple .bat file which can be run from a Windows computer while your phone is booted into TWRP to remove various apps that I consider bloat. I have not encountered any issues in my usage the past week, but your usage pattern may vary. This is tested on a G8142 running Oreo 47.1.A.5.51, but there is no reason it should not work on other versions. This is limited to Windows, but the commands are all ADB-specific and have nothing to do with Windows, so it should also work on Mac & Linux by changing the file extension. I take no responsibility if this messes up your phone! But, all changes this script makes can be reversed by flashing system & oem with Newflasher.
Note: This script will remove Sony Home! Please make sure you have an alternate launcher installed or remove that app from the script!!! Additionally, the app removes Google Messages, Sony Clock, Sony Calendar, Chrome, Sony Email, Gmail, Google, various international keyboard layouts, and Text-to-speech functionality. All of these, or alternatives, can be re-installed through the Play Store though.
To Modify:
The .bat file can be modified by opening with any text editor. All apps are labeled with their name, as below:
::Google Messages
adb shell rm -rf /system/app/Messages
adb shell rm -rf /data/user/0/com.google.android.apps.messaging
To prevent this app from being uninstalled, just delete those lines.
To add an app that is not on the list, use an app such as App Inspector to find the directory the app is installed to and the directory its data is located in, then add those to the list as below:
adb shell rm -rf <app Source Dir, excluding last /******.apk>
adb shell rm -rf <app Data Dir>
In some instances, such as if the app has been updated from the Play Store, you may need to remove it from /data/app/ and from /system/app/ (or /system/priv-app) as below:
::Sony What's New
adb shell rm -rf /system/priv-app/sonyentrance2-release
adb shell rm -rf /data/app/com.sonymobile.entrance*
adb shell rm -rf /data/user/0/com.sonymobile.entrance
The * above is used as a wildcard, meaning that any folder that matches everything before the * will be deleted. This is needed because random strings of letters and numbers are added to the end of the app name when installed to /data/app/. Please be careful with your * use, since using something like "adb shell rm -rf /data/app/com.sonymobile.*" would clear out several apps' data!
Instructions:
Power down the device
Reboot into TWRP by holding Power and Volume Down (phone must not be plugged into computer yet)
Attach phone to computer
Unzip JunkCleaner.zip (this is not a flashable zip!) and extract JunkCleaner.bat
Move JunkCleaner.bat to a folder that contains adb.exe
Double click on JunkCleaner.bat and let run to completion
You're all set!
Known Issues:
Swiftkey may force close on you, to fix this, clear the cache from Settings -> Apps & notifications -> App Info -> Swiftkey Keyboard -> Storage -> Clear Cache
You will see a notification that com.sonymobile.rcahandler has force closed when you first boot the phone. This can be fixed by turning on Ultra Stamina mode, turning it off, then rebooting a second time after Ultra Stamina Mode has already rebooted your phone.
To Return to Stock/Reinstall any apps:
To get back to stock, just use Newflasher to reinstall system & oem partitions. This will restore all apps that this script removes.
Please let me know if there are any apps that you have safely removed that are not in my list, as I'm sure the amount of apps can be whittled down even further.
Click to expand...
Click to collapse
I was wondering how to use this exactly?? cause i ran it within the adb folder and it processed the list but nothing happened on the phone...i wanna debloat my phone with this but i cant get it to work for me lol any help would be much appreciated i am running the same oreo firmware..
gerald.mrrsn said:
I was wondering how to use this exactly?? cause i ran it within the adb folder and it processed the list but nothing happened on the phone...i wanna debloat my phone with this but i cant get it to work for me lol any help would be much appreciated i am running the same oreo firmware..
Click to expand...
Click to collapse
I use system app remover from the store. Works pretty well and it's quick for multiple uninstalls
Can you make a TWRP flash version of your script, I think its a lot easier if its done that way.
[MM / N] [UB] [COMBINED] System/OEM Debloat Script - v1.7
Also take a look at this: https://forum.xda-developers.com/xp...lopment/mm-n-oem-debloat-script-v1-0-t3527866
@gerald.mrrsn
Sorry to hear it was giving you troubles! I have a flashable version that you can try that's attached to this post.
@Patrck744
New flashable is attached!
I've attached a new flashable version of the script to this post--just stick it on your phone and flash in TWRP. I've added a few more apps to it compared to my original script and have also improved deletion of apps which may have been updated. I'm still planning to add more apps to the list and will update the main post with instructions on modifying the flashable zip and update the original .bat file once I've done some testing on removing additional apps.
Thanks, you're doing good work!
I tried uninstalling majority of the junk using TitaniumBackUp but I just got a bootloop. I'll test it and let you know if there are any issues with flashable version.
Hi Guys,
Do you think this would also work on the normal Xperia XZ F8331?
Erayh said:
Hi Guys,
Do you think this would also work on the normal Xperia XZ F8331?
Click to expand...
Click to collapse
Look in the x performance forum, there is a zip by serajr.
Saadkhalid786 said:
UPDATE:
just flashed this on nougat. successfully removed all apps specified. i edited the script and excluded xperia home, album and music. works as expected. maybe you can try to find more useless apps that doesnt do anything but hog up the Ram and battery.
UPDATE 2:
used this on Oreo and everything is also good there. however, there are some apps that cannot be uninstalled either from root uninstallers or by deleting their folder. maybe you can add these apps to the junkcleaner :
Audio settings (clear audio+ DSEE etc)
com.qualcomm.qti.telephonyservice (tell me if it is important to keep)
download manager (guess its important to keep)
home network (tell if important to keep)
shell (tell if imp)
software update app (probably not used since unlocked bootloader, other apps can be updated from playstore)
wap push (tell if needed to keep)
will be even more thankful
much respect from me
Click to expand...
Click to collapse
would you kindly post modified script for download.
good work!!thanx bro!!
+1 from me!