[Q] Upgrading ROM's from one version to the next - Script to remove unwanted apps? - AT&T, Rogers, Bell, Telus Samsung Galaxy S III

I'm an AOKP fan. As anyone knows, this is one of the ROM's that are frequently updated. Problem is, every time I upgrade I have to re-flash Gapps and also remove all the unwanted apps all over again.
I end up removing about 15-20 apps every time I flash an upgrade.
Is there a script or something I can create to take a ROM zip and automatically add only the Google apps I want and remove all the apps that exist, which I don't want? Something other than doing it manually every time?
I've never made a complicated script before. Not quite sure if it's what I need or how to make one.

If your interested in setting up a gscript script I could probably do a quick tutorial for you. I used to use it on CM7 on my dext to get rid of unwanted system apps. Let me know and I'll shoot you a link to the tut I did on Simply Android.

Related

[Q] Integrating system updates into ROM

My Desire's running the current Stock ROM, and is rooted via Unrevoked with S-Off via AlphaRev.
I'm constantly skirting close to the 15Mb remaining data limit. The thing is, I'm running fewer apps than ever before these days, what with apps getting bigger and system updates using up precious memory space.
So I thought I'd use Titanium Backup to integrate the system updates into the ROM and free up data space. So I nandroided, s-off'd and ran the batch to integrate the updates into the ROM.
The apps in question (off the top of my head) were Flash, Maps, Gmail, Youtube, Market, and a couple of others.
It didn't work.
At first it looked as if it had, but I was getting force closes when I ran them.
I tried doing a force close repair via ROM Manager, but that didn't help.
The only thing that did work was apparently Flash. But then I was browsing around because I didn't getting the memory back I was expecting and I can still see the flash files in data.
So the updates have been recovered back into data and I'm back where I started.
So how do I do this?
Should TB work? What's the best way to actually integrate these files into the ROM? Which files need moving? Is flash just libflashplayer.so, because there are 3 other flash .so files? Do I need to modify anything to point to the new locations?
I really hope that the new gingerbread ROM doesn't immediately need system updates, but I expect to be disappointed.
Ta
Matt
To be honest I don't really know the answer I've never tried.... Could it be the permissions? Root Explorer - data/apps... find app you want and edit permissions ?
Why not just get apps2sd or data2sd?
I'm not against apps2sd or data2sd, it's just that I dodn't like the idea of having two versions of the same app on the phone - it's just a waste.
I'm thinking I'll apply the upgrade when it comes (if it's any good) - hopefully most of the system app updates will be built in already. Then I'll look for a version that strips back system to the bare minimum and repartitions to minimise system/maximise data, and also has apps2sd or data2sd (not sure which at the mo).
I do find it strange, though, that so few experiences of TB's integrate into ROM feature are discussed on the net.
ta
Matt

[Q] New ICS

Anyway to make it faster? Kernels don't seem to work for me :/ Any help would be great.
Root it and uninstall all the SE stuff you don't use.
A good way to know what to uninstall is to take a look at the "running apps", cached or uncached. (This is because you don't want it caching apps you never use!)
Congrats on flashing the rom. Try http://forum.xda-developers.com/showthread.php?t=1549042, I posted them a while ago.
sinkster©

A couple of issues with a barebones ROM

I loaded the ROM in this thread and am having a couple of issues...
http://forum.xda-developers.com/showthread.php?t=2481234
I am not new to ROMs but this is the first time I have spent any real time with anything other than a stock flash or a CM stable or nightly. I will list my issues below but am not sure if I should just pursue a different ROM for my needs or if I should spend more time troubleshooting it.
1) I get a google apps error when I first boot my phone. "Unfortunately the process com.google.process.gapps has stopped"
2) google hangout sends but does not receive
3) instagram will not load my feed. I can install and login but get no content.
All I have really done is remove and reinstall apps. I did have to load the modem from the link the dev supplied to get data to work but it has been OK since. I was thinking about reinstalling the google apps package but didnt want to spend a bunch of time on it. I haven't seen huge performance differences really. I was jsut trying to save the time of going in and manually stripping out some of the sprint crap I don't use. I really only had two objectives with htis flash. First to avoid the Knox update and second, to make my life easier than going back through with a system cleanup app. I also secretly like the Sprint touchwiz interface but that is just a comfort thing really.
So what do you guys think? keep plugging at this or go to a less stripped ROM?
Hey, I'm sorry you are having issues. I don't think you should flash a gapps package. Did you completely wipe the phone before installing Barebones? I have another version you can try if you'd like. Try flashing version 1.0 and see if it works better.
Pretty sure I did. Its part of my usual routine to wipe it all before flashing anything. I did remember that I added an ad blocker app. When I removed that instagram and hangouts started working again. Now I just get the error at startup. Going to use the phone as is for a day before I decide to do anything else. Thanks for the help.
Let me know how it's working, I removed quite a bit so maybe I need to redo it. I don't think anyone had issues with v1.0 though. Thanks for the feedback

[Q] Sprint Note 2 rootted stock now an update nag

Device Info: Sprint Galaxy Note 2 Running rooted stock Android 4.4.2. (chainfire auto root using odin)
Wifi only unit. I have no sprint contract purchased it used (I'm new to customizing android- I have flashed an old palm pda, but only via guidance)
Situation: Rooted the unit and have customized it as mine
1. No custom backup and would like to do that
2. Do not like all the bloatware apps
3. Now a system update has been downloaded asking to install (I've not okayed it)
So please help me with each of these
1. Please point me in the direction of best way to take a backup of existing rom ( I do have philz downloaded, but I'm not sure about how to ?
2. Would that deal with the persistent update request? Would it be good to update?
3. and then the bloatware removal, should I use an app that removes system apps? ( I have titanium, but I'm not good at knowing which apps to touch and not to touch) Thanks in advance and no I'm not in a hurry as yet.
Hi,
I will have your thread moved to your device section so the experts who own your device can help you.
Good luck!
Point to links please
If someone doesn't want to tackle this whole question I'd just appreciate links on how to step by step. I'd appreciate any help at all, I'm just a bit fearful of bricking the device, but if the instructions are clear I can definitely do this.
The first is issue is backup that is my priority at the moment. The second is whether to install the update or not and how to get rid of the nag. thanks
Not sure about backing up the ROM itself... but what I do is just back up the apps with Titanium and then re-load the apps (or just data) when I have to re-install my ROM like I did a couple of weeks ago. Prior to the Note II, I had an HTC Hero (stop laughing) and would do nandroids for that device. Don't know that you need that for Samsung devices, but somebody may be better to explain than I am.
ETA: here's an article on creating a nandroid, FWIW
http://www.makeuseof.com/tag/what-is-a-nandroid-backup-and-how-exactly-does-it-work/
If you are rooted, I don't know that the persistent update will actually apply/install. I'm on Classic Stock 4.4.2 and I also had the same nag. Here's a link on how to disable the update nag. This is what I did, as my phone would not apply the update so I just disabled the persistent reminder using the steps below.
http://forum.xda-developers.com/showthread.php?t=2442207
With respect to removing system apps, not sure I can offer much direction other than to suggest removing obvious apps (maybe like the Sprint Zone app) and then just doing a search on each app that looks like you can/want to delete or uninstall. Probably a bit time consuming, however, I am not aware of a "bloatware list" or anything which outlines safe-to-remove apps.
Much appreciated Lenny
When I did the root, I didn't really want a custom rom, just stock with root. Now that I've used titanium backup and have removed the install update nag- I'm set for a while!
lost in cyberspace said:
Much appreciated Lenny
When I did the root, I didn't really want a custom rom, just stock with root. Now that I've used titanium backup and have removed the install update nag- I'm set for a while!
Click to expand...
Click to collapse
You might also look at adding a free version of BusyBox (I use stericson's, and jrummy also has one out there).
Also might want to look at an install of AdAway, which you'll need to install manually (not available from the Play Store). You don't have to install the whole F-Droid package, you can download only the AdAway apk if you want.
https://f-droid.org/repository/browse/?fdid=org.adaway
One last piece of info, you may want to turn off automatic updating for apps, as the SuperSU app can have problems after an update and you might have to re-root your phone. Here's what I ran into.
http://forum.xda-developers.com/showpost.php?p=58955076&postcount=10
lennykravitz2004 said:
You might also look at adding a free version of BusyBox (I use stericson's, and jrummy also has one out there).
Also might want to look at an install of AdAway, which you'll need to install manually (not available from the Play Store). You don't have to install the whole F-Droid package, you can download only the AdAway apk if you want.
https://f-droid.org/repository/browse/?fdid=org.adaway
One last piece of info, you may want to turn off automatic updating for apps, as the SuperSU app can have problems after an update and you might have to re-root your phone. Here's what I ran into.
http://forum.xda-developers.com/showpost.php?p=58955076&postcount=10
Click to expand...
Click to collapse
Thank you! I've side loaded adb adblock is adaway better? I use App Ops to turn off specific things within each app such as location finding, I like MW apps manager to add more apps to the multiwindow feature., and I've turned off most apps auto update, but some apps I've left auto update. I've just turned off auto update on super user -- even though, I've not yet experienced any major issues as yet.
lost in cyberspace said:
Thank you! I've side loaded adb adblock is adaway better? I use App Ops to turn off specific things within each app such as location finding, I like MW apps manager to add more apps to the multiwindow feature., and I've turned off most apps auto update, but some apps I've left auto update. I've just turned off auto update on super user -- even though, I've not yet experienced any major issues as yet.
Click to expand...
Click to collapse
Don't know if adb adblock is better - I've never used it. Didn't see you mention a couple of these things when you said you were "all set for awhile", so I was just trying to offer a few other things to consider and look into. Sounds like you're already on the ball though!
Personally, I'm happy with stock. Big reason for me to root was getting rid of ads. I've tried some of the other ROMs but I've always come back to the stock look and feel. I've had the device since about 1 week after it came out in Fall 2012. Of course, I am also on my third one since I totaled two other ones. I absolutely love it, and am in no hurry to upgrade (if possible). Hope you enjoy it as I have... lots of good stuff from devs here!

[SCRIPT][TWRP] Stock ROM Debloat for KIW-L24, L22, L21 (kiwi)

Disclaimer: I am not responsible for anything that happens as a result of flashing these files. You decided to flash this script.
This script removes a good chunk of the apps installed by Huawei and left over files like a bunch of NFC files.
The full list is as follows:
Air Sharing
Audio Auto Test
Magnifier
Huawei Swype
Huawei Backup
Huawei File manager
Huawei Sound Recorder
Huawei Theme manager
MMI Testing
System Debug
Huawei Floating Tasks
Huawei Floating Mms
Huawei Log collection service
Huawei MMI Test 5
Huawei Weather Clock
Huawei System Manager
Huawei Power Monitor
Period Check
Exchange 2
Email
Print Spooler
AOSP Live Wallpapers
MusicFX
TTS Files
Themes
Delete-able apps
All of the leftover nfc files
All google apps that can be downloaded from the playstore
Google Talkback
If you want to keep something you will need to edit the updater-script everything is labeled well.
Download:
https://goo.gl/q3t4tB​
Reserved
Mine
Dope!!
Nice.
Excellent!!
Worked great! thanks deadman
Maybe it should be mentioned that you need TWRP to flash the zip file. Thanks for the efforts, though. I'm sort of dead in the water until I am able to get my unlock code.
kimtyson said:
Maybe it should be mentioned that you need TWRP to flash the zip file. Thanks for the efforts, though. I'm sort of dead in the water until I am able to get my unlock code.
Click to expand...
Click to collapse
The title of the thread says [Script][TWRP] please read the entire thread before posting.
deadman96385 said:
The title of the thread says [Script][TWRP] please read the entire thread before posting.
Click to expand...
Click to collapse
LOL. Good point. Sorry about that. It just wasn't very obvious. I guess I got excited and jumped in.
So, does this script removes the app that tries to police the background apps from running? I think it was protected apps under settings? If so.. awesome. we wont have to manually add them after install.
Is it possible that if I was on one of the restricted battery profiles when I ran the debloat script that it could have stuck?
When I first got the phone I put it normal mode and found it pretty good. Even running the Google launcher. However, I have now unlocked the bootloader, installed twrp, rooted, installed MOAB ad blocker and debloated the phone feels slow and janky?!? I figured dumping all the bloat would help to speed it up some. Any suggestions or thoughts?
Thanks,
Justin
TNScrambler said:
Is it possible that if I was on one of the restricted battery profiles when I ran the debloat script that it could have stuck?
When I first got the phone I put it normal mode and found it pretty good. Even running the Google launcher. However, I have now unlocked the bootloader, installed twrp, rooted, installed MOAB ad blocker and debloated the phone feels slow and janky?!? I figured dumping all the bloat would help to speed it up some. Any suggestions or thoughts?
Thanks,
Justin
Click to expand...
Click to collapse
Try removing the unnecessary zram operations using the no-swap method at -
http://forum.xda-developers.com/hon...ipt-disable-enable-swap-honor-5x-kiw-t3308321
When you debloated you removed a number of unnecessary processes and now it's trying to use the ram you freed up by keeping more of your apps in memory - with a constant compression/decompression process that adds lag on the 5X (and every other phone I've checked out that uses it).
Huawei - like every other phone maker with a new launch - will also be releasing performance improvements soon. I've tested both of these mods with the update coming next and you'll still want to use them.
The normal power mode ought to be sticking. If the no-swap mod doesn't help then it's probably a good idea to regress back with a nandroid backup, ensure normal mode and then de-bloat and remove swap.
Edit - and be sure to protect all apps in settings so that you get standard Android task management and not EMUI task management.
Is there anyway to selectively re-install some of the apps that it removed? Im curious because I think it some functionality like HwThemeManager_Local removes the ability to change the lock wallpaper. and if any other issues come up that i want to undo. (Can i somehow restore the individual items from a nandroid backup?)
And thanks for providing a nice commented script!
eruji said:
Is there anyway to selectively re-install some of the apps that it removed? Im curious because I think it some functionality like HwThemeManager_Local removes the ability to change the lock wallpaper. and if any other issues come up that i want to undo. (Can i somehow restore the individual items from a nandroid backup?)
And thanks for providing a nice commented script!
Click to expand...
Click to collapse
I don't think that you can do it directly.
Right now, it's restore your nandroid backup, modify the script here and debloat again.
I've started into an Aroma installer for this so you can just select the bloat you don't want. That's on the back burner with no ETA yet.
Meanwhile - if you want to wait until later today or tonight, I'll pull the file you want and you can reinstall it by hand.
If you don't want to wait, copy your nandroid system.ext4 to your pc (if not compressed) and rename it to system.ext4.tar - I believe that 7zip will work to extract it to your pc and you can find the file and put it back from there. (And I'm going by memory here so you'll want to be prepared for hiccups.)
There may be a utility for this - I think there is, but can't remember it.
OK - just checked another option for you -
My system nandroid spans volumes.
Copy system.ext4.win000 to system.ext4. win000.tar on to a large sd card.
Check out "ZArchiver"
https://play.google.com/store/apps/details?id=ru.zdevs.zarchiver
See if you can extract with that, and if you can, repeat for all volumes.
No promises but you'll probably find the attempts very informative.
Thanks for the info. messed around for awhile trying to get something. I found out Titanium Backup has an "extract from Nandroid backup" feature. you select the backup and it lists the apps that you can restore. The only one i found that looked like the theme manger was: com.huawei.android.thememanager i click on that and restore and it takes a long time (which makes me think TiBu is not working right) about 1-2 minutes (but it does eventually say success), reboot and still cant change the lock screen wallpaper. I also copied the system.ex4 files to windows and renamed them tar. extract them with 7zip and it kinda locks up after a bit. it extracts some extension less files. So maybe im missing some additional files, or Tibu is not really doing anything. i tried mounting system as RW just in case. No biggie, i dont think i want to spend much more time on this. Thanks for the info though. Ill take a look again later.
EarlyMon said:
Try removing the unnecessary zram operations using the no-swap method at -
http://forum.xda-developers.com/hon...ipt-disable-enable-swap-honor-5x-kiw-t3308321
When you debloated you removed a number of unnecessary processes and now it's trying to use the ram you freed up by keeping more of your apps in memory - with a constant compression/decompression process that adds lag on the 5X (and every other phone I've checked out that uses it).
Huawei - like every other phone maker with a new launch - will also be releasing performance improvements soon. I've tested both of these mods with the update coming next and you'll still want to use them.
The normal power mode ought to be sticking. If the no-swap mod doesn't help then it's probably a good idea to regress back with a nandroid backup, ensure normal mode and then de-bloat and remove swap.
Edit - and be sure to protect all apps in settings so that you get standard Android task management and not EMUI task management.
Click to expand...
Click to collapse
Ok, so I was going to try and just go back to the fully bloated stock, rooted rom.... however I messed up and somehow didn't do a backup first.... so I have nothing to restore. I tried to download and restore the "full Stock" backup from the other thread, however I'm getting errors for no partitions. I then downloaded the factory firmware from Heuawi, but when it tried to install it seemed to be working, but then booted into TWRP and won't go further. Anyone have suggestions on how I can return this thing to stock?
TNScrambler said:
Ok, so I was going to try and just go back to the fully bloated stock, rooted rom.... however I messed up and somehow didn't do a backup first.... so I have nothing to restore. I tried to download and restore the "full Stock" backup from the other thread, however I'm getting errors for no partitions. I then downloaded the factory firmware from Heuawi, but when it tried to install it seemed to be working, but then booted into TWRP and won't go further. Anyone have suggestions on how I can return this thing to stock?
Click to expand...
Click to collapse
Ok, I was able to get it all sorted out, I just had to calm down, think, and teach myself some new comand line skills hahaha
I downloaded the stock Firmware, however I wasn't able to install it since I had TWRP and it was blocking it.... so I found this tool, Huawei Update Extractor that can be found here: http://forum.xda-developers.com/showthread.php?t=2433454 Then used this Extractor to expand the firmware and extract the stock Recovery.img out of it. Then flashed that to the phone via fastboot. Now, I was able to run the stock firmware update via the factory EMUI update app. Once that was done I was able too boot the phone back up and I was suprised to find that it didn't wipe the phone, I guess it ran it as a true "upgrade" instead of a nuke and pave.... BONUS!
Anyhow, then I was able to flash the new TWRP recovery back in place and now I'm currently creating a backup.... which if I had taken the time to do in the first place none of this would have happend. Oh, well... who needs more than 3 hours of sleep..... its not like I work full time and have 5 kids under 5 :silly:
Hope this helps someone who gets flash happy and forgets to make a back up like I did!
Justin
Does it work with KIW-L21?
LordKelsier said:
Does it work with KIW-L21?
Click to expand...
Click to collapse
It might. Pre-installed apps may vary by region, the Aroma installer (under construction) is intended to be intelligent about that.
Either way, make a nandroid backup before trying to debloat and you won't be stuck if anything goes wrong.
Worked for the most part.
There were some apps left (mostlygames that came preinstalled as well as Shazam and Instagramm)

Categories

Resources