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

Status
Not open for further replies.

deadman96385

Retired Forum Moderator / Recognized Developer
Aug 19, 2011
2,230
7,763
203
Saint Paul, Minnesota
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
 
Last edited:

eruji

Senior Member
Aug 2, 2010
76
15
0
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.
 
  • Like
Reactions: Jstame

TNScrambler

Senior Member
Oct 3, 2010
86
10
0
Knoxville
www.efienginesupply.com
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
 

EarlyMon

Senior Member
Jun 23, 2010
1,685
1,281
143
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
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.
 
Last edited:

eruji

Senior Member
Aug 2, 2010
76
15
0
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!
 

EarlyMon

Senior Member
Jun 23, 2010
1,685
1,281
143
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!
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.
 

eruji

Senior Member
Aug 2, 2010
76
15
0
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.
 
  • Like
Reactions: EarlyMon

TNScrambler

Senior Member
Oct 3, 2010
86
10
0
Knoxville
www.efienginesupply.com
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.

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

Senior Member
Oct 3, 2010
86
10
0
Knoxville
www.efienginesupply.com
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?
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 :eek:

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! :cool:

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
 

EarlyMon

Senior Member
Jun 23, 2010
1,685
1,281
143
Does it work with KIW-L21?
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.
 
Status
Not open for further replies.