[Q] Best way to debloat a stock ROM? - Nexus 6 Q&A, Help & Troubleshooting

It looks like the two debloated stock-based ROMs that are available on XDA are no longer active. Neither have been updated for the April release.
Does anybody know of another stock-based, debloated ROM or have tips on how to do it yourself?
Thanks!

Flash a small opengapps package.

snowrelyt said:
Flash a small opengapps package.
Click to expand...
Click to collapse
Stock ROMs have gapps built-in. No need to flash anything.

MrBrady said:
Stock ROMs have gapps built-in. No need to flash anything.
Click to expand...
Click to collapse
Flashing a small gapps package will debloat the ROM which is what you are asking for

snowrelyt said:
Flashing a small gapps package will debloat the ROM which is what you are asking for
Click to expand...
Click to collapse
Really? I didn't know that.

Root explorer, give appropriate permissions, browse to \system\apps and \system\priv\apps, delete un-needed files. Just becareful as it can make your rom unbootable if you delete the wrong files. Use something like this as a guide to know what files are safe and what files are not, for deletion: http://forums.androidcentral.com/lg-g3/433412-large-bloatware-list-safe-remove-lg-g3.html
There is also Windows based programs to debloat android phones: https://forum.xda-developers.com/android/software/debloater-remove-carrier-bloat-t2998294 . Also you can just use a debloated rom like those from Skydragon, Tupac4u, DanvH, etc. for stock roms. AOSP or Lineage roms are also debloated and you can pick the PICO opengapps to install with these custom roms. Velocity (AOSP) rom for example is 250 MB for and once flashed with PICO opengapps, is very slim, fast, and debloated.

MrBrady said:
...Does anybody know of another stock-based, debloated ROM or have tips on how to do it yourself...
Click to expand...
Click to collapse
https://forum.xda-developers.com/showthread.php?t=2294909/
Thread for tools and instructions to extract files from img-files on a PC.
I am using the lite stock ROM of Danvdh and replaced files in the system folder of the 'march-zip' with the newest system files extracted​ from the factory image. As follows:
0. Full backup in twrp-recovery,
1. Extracted 'system.img' from N6F26Y factory image.
2. Extracted all files from 'system.img'.
3. Delete not used system-files/apps from system/app and -priv-app (debloating).
4. Added backed up files of the Nova launcher and rro layers.
5. Emptied 'system' in the march-zip and stored the new system files in that folder.
6. Flashed the updated zip in Twrp-recovery.
7. Reboot to check if it works.
8. Flashed Franco's kernel r65.

Related

[CM9] Lightweight gapps for ICS (4.0.X)

About:
Hey guys, I was doing some experiments with gapps and I found a way to save a little space in our devices. Yeah, I ripped some stuff from the zip in order to make it lightweight (mostly unused libs from our device, like front camera unlocking and that kind of stuff).
Notes:
- It works on every CM9 rom. No exceptions.
- I personally updated Play Store (4.0.27) and Genie Widget (1.3.11) to their latest versions, since those gapps were released on 29/04/12'
- The normal gapps zip
- Press thanks if you feel it.
How to install:
Just select zip, flash and wipe cache partition.
So...
If you have a question or you're just an giant n00b that doesn't know how to flash a zip, post down here. lol.
Download
Have a nice pootis. :good:
So if you already have the full gapps installed... You have to do a full wipe and flash this?
Maybe it'd be easier if you just made a list of all the files that one can delete, or even better, a script that deletes them.
Nope, this zip is meant to be used after a fresh CM9 install
darknessx10 said:
Nope, this zip is meant to be used after a fresh CM9 install
Click to expand...
Click to collapse
Yeah, but can't you make a list of all the libraries and stuff you deleted? We could just delete them from the phone after installing regular gapps, right?
I'll try :good: I can't remember all the files I ripped, but I'll try...

gapps

Hello everybody so i need your help i want integrate gapps into my custom rom but i don't know how do this i try put phonesky.apk and some other gapps apk but when i flash rom i cannot see apps what i must do and how integrate gapps into rom i want make rom which have gapps inside rom and not need later flash any files just flash rom and gapps be there
please help me or just say what i must do i not need step by step tutorial just small help
If you want the gapps to be one of your system asps, you first need to install a file explorer. I recommend ES file explorer because I don't know how to this with other file explorers. You go to Menu, then open the tools, press Root explorer and choose Ro/Rw. Check all RWs. Navigate to /system/app and copy your gapps. Reboot and that's it.
an easier way is to install Titanium Backup then from options just select " convert to system app" job done.
BLiNKT said:
Hello everybody so i need your help i want integrate gapps into my custom rom but i don't know how do this i try put phonesky.apk and some other gapps apk but when i flash rom i cannot see apps what i must do and how integrate gapps into rom i want make rom which have gapps inside rom and not need later flash any files just flash rom and gapps be there
please help me or just say what i must do i not need step by step tutorial just small help
Click to expand...
Click to collapse
Use x-plore file manager. It is free in google play store. In settings(x-plore) you need to change root access to superuser+mount writable.now navigate to gaaps you want and move them to root/system/app. long pres on apk you just moved, in opened menu press permissions,and change to user-read/write
group-read
others-read.....it will be mode 644 under, press ok....reboot
Thank for all answers but i make own rom and i want integrate gapps into rom so i must make gapps inside rom when i flash rom than i not need additional flash gapps i want gapps to be in rom when i install fresh rom
i search on google how integrate gapps into custom rom and i find i must have chmod664 or something like that if i want have gapps integrated when flash rom
sorry for my bad english
BLiNKT said:
chmod664 or something like that if i want have gapps integrated when flash rom
Click to expand...
Click to collapse
Exactly, means you need to fix permissions like this
and please read the post above by medovici , he showed you how to do it
BLiNKT said:
Thank for all answers but i make own rom and i want integrate gapps into rom so i must make gapps inside rom when i flash rom than i not need additional flash gapps i want gapps to be in rom when i install fresh rom
i search on google how integrate gapps into custom rom and i find i must have chmod664 or something like that if i want have gapps integrated when flash rom
sorry for my bad english
Click to expand...
Click to collapse
well i am not pretending to be expert but i think you can't just put gaaps apks in zip,flash it, and expect to have integreted them in rom....i think its not that simple. For me its better to have separated gaaps,because every time you flash your base rom you can find up to date gaaps package.
So thank you very much for help maybe is real simple if i flash gapps after flash rom is better and easy

Debloat MIUI ROM

Hello
There are some system apps I won't ever use, so it would make sense to not even install them.
Is it possible to debloat a MIUI ROM (for example the official chinese dev ROM) by editing the content of the zip file prior flashing?
Is there a "safe list" with apps that can be removed without causing instabilities?
Guojun said:
Hello
There are some system apps I won't ever use, so it would make sense to not even install them.
Is it possible to debloat a MIUI ROM (for example the official chinese dev ROM) by editing the content of the zip file prior flashing?
Is there a "safe list" with apps that can be removed without causing instabilities?
Click to expand...
Click to collapse
Just install xiaomi.eu rom. Basically it's a debloated chinese rom with european languages added.
Can anyone tell me how can i run Google Apps in my mi5 chaina dev Android 7 based rom. I can't flash gapps. In twrp it's asking device decrypt password. Any other way to flash gapps or some other way?
aipbd said:
Can anyone tell me how can i run Google Apps in my mi5 chaina dev Android 7 based rom. I can't flash gapps. In twrp it's asking device decrypt password. Any other way to flash gapps or some other way?
Click to expand...
Click to collapse
use playstore installer, look on internet.... after that download app you need
Guojun said:
Hello
There are some system apps I won't ever use, so it would make sense to not even install them.
Is it possible to debloat a MIUI ROM (for example the official chinese dev ROM) by editing the content of the zip file prior flashing?
Is there a "safe list" with apps that can be removed without causing instabilities?
Click to expand...
Click to collapse
I'm attaching my personal miui debloater, it is recovery flashable. look the updater-script file for details of what i normally remove, it is pretty self-explanatory I'll maybe improve/increase list of removed apps later on, but it is already a good start..
if you need gapps, be sure to comment out rows 23-24 and most of the rows from 55 up before flashing.
for best effect, flash this upon clean flash, immediately after flashing miui rom zip
cheers
FcukBloat said:
if you need gapps, be sure to comment out rows 23-24 and most of the rows from 55 up before flashing.
cheers
Click to expand...
Click to collapse
I found your script very interesting, I wanted to do something like that... the commented lines are apps that become a problem if you uninstall them? For example /system/app/VoicePrintService, /system/data-app/Music lines are disabled.
In any case thanks for the file it is a good start.
at a certain point i got the phone not booting anymore because of too aggressive debloat, so yes i restored some apps i thought could be related to get rid of bootloop and didn't have time to determine exactly which one was the culprit..
but music no, you can remove it if you want, but i liked it so i preferred to keep it
FcukBloat said:
I'm attaching my personal miui debloater, it is recovery flashable. look the updater-script file for details of what i normally remove, it is pretty self-explanatory I'll maybe improve/increase list of removed apps later on, but it is already a good start..
if you need gapps, be sure to comment out rows 23-24 and most of the rows from 55 up before flashing.
for best effect, flash this upon clean flash, immediately after flashing miui rom zip
cheers
Click to expand...
Click to collapse
Thanks, any update version of yours. Personally, I do also remove several things and some even make some function not working (e.g. scrolling screen capture not working anymore). Not sure which one make it fail, though. Too many aggressive debloat.

Restore the EUI stock browser?

Hi All,
This is a bit of a daft query but bear with me. There's a lot of custom EUI roms here and they all seem to have the stock browser removed. This is understandable except that the QR scanner (triggered from network settings and the Control Centre) requires to stock browser to work. So it would be nice to have the stock browser back for completeness.
I've tried copying the /system/app/Browser folder from stock 23S (and 26S) but the app fails to load, complaining that it can't find Chromium library files. (I assume that the EUI browser is a modded version of Chromium).
I've also tried copying missing lib files from stock but I still can't get the EUI browser to launch.
Any ideas? :good:
Thanks,
M.
Somewhat off topic but does anyone know what the stock EUI browser is based off of? It doesn't seem like a chromium build
If you are on stock rom try include Eui browser apk file in the rom zip file (need unzip/re-zip it) of your stock rom and dirty flash the rom might work.
Moon75 said:
If you are on stock rom try include Eui browser apk file in the rom zip file (need unzip/re-zip it) of your stock rom and dirty flash the rom might work.
Click to expand...
Click to collapse
That's my point, not on stock and flashing Browser.apk doesn't work. The Browser app requires extra libs that are missing from non-stock EUI. But can't work out what's missing.
Mateus109 said:
That's my point, not on stock and flashing Browser.apk doesn't work. The Browser app requires extra libs that are missing from non-stock EUI. But can't work out what's missing.
Click to expand...
Click to collapse
Doesn't work on non stock rom I think nor on Nougat from my experienced.
Cpoy bower apk to system/app and reboot but not install it.
Zxl123cd said:
Cpoy bower apk to system/app and reboot but not install it.
Click to expand...
Click to collapse
As I said, that doesn't work. Logcat gives errors relating to missing Chromium files.
I actually don't care anymore, seems like too much effort.

[ROM][A2017G][B05 7.1.1.][stock] SLIM version

HI !
For those who want their Axon7 G stock (rooted & unlocked) to be fully (almost) stripped of bloatware or other unwanted apps, I uploaded my SLIM ROM (ad-free + SuperSU). Nothing fancy, just cleaned and ready to use.
It’s fully functional and tested for some time now. Smooth, no bugs.
From this basic, almost clean version you can simply add from scratch your favorite browser, keyboard or other stuff without being messed up with unnecessary (double) applications. Some basic apps like the file manager, calender and alarm are replaced (see info) because standard in-builts are not that great
AdAway + SuperSu added.
I hope you’ll E N J O Y !!!
Based on :
A2017G Nougat B05 “Spain” stock ROM : 5.02GB extracted
Stripped my A2017G_N_B05_stocksystem_by_raystef66 to SLIM version : 3.89GB extracted
INSTALL : ( TWRP )
1. Make a full backup of your current device in TWRP ! (use it to RESTORE if necessary) DON’T FORGET !
2. Wipe cache, dalvik, data and system
3. Install : A2017G-N-B05-bootstack : https://www.androidfilehost.com/?fid=889764386195912453
4. Install : A2017G-N-B05-slim : https://www.androidfilehost.com/?fid=889764386195923534
5. Reboot
6. Done ! No more no less :cyclops:
AFTER INSTALL :
1. Go into Adaway/give root permission/download files etc. and update DONE!
2. Go into ES File Explorer/settings/check ROOT/tab ROOT again and give R/W to ALL. DONE!
INFO :
Stripped off :
Accuweather
Browser (ume)
Chrome
Email
Google Video, Films…
Maps
Touchpal (+languages)
Zte clock replaced by Google Clock
Zte calendar replaced by Google Calendar
ZTe File mananger replaced by ES File Explorer (imo a very good ROOT file manager)
….......
Baked into :
SuperSU
AdAway
Es File Explorer (root access)
Google Calender
Google Clock
Minor Modifications :
Boot :
Init.d enabled
Dm-verity disabled
Zip aligned apk’s
Build.prop tweaks : (remove them in system/build.prop if not needed)
Improved performance
Lockscreen rotation
Faster boot
Phone rings immediately
Wifi scan interval 180sec
Better call voice quality
Better network signal
Added sounds LOS
The only apps left on homescreen : see attachments
Contributors :
myself
ROM OS Version : 7.1.1 Nougat
Source : ZTE stock-rom A2017GV1.2.0B05 / original ZTE upload/reuploaded : https://androidfilehost.com/?fid=889764386195912222
Kernel : stock
Version Information :
Status : Stable
Created : 2017-08-17
Excellent. Thank you for your contribution!
Can I update to this if I'm on 6.0.1 build GV1.0.0B10?
Can u use magisk? Dont like Supersu..
This is getting really close to my ideal rom, I like LOS but not prepared to lose daydream, camera and audio performance.
Is it possible to do a rom like the old google play edition phones, where you get all the stock features and keep zte camera app but get googles dialer, pixel launcher etc...?
bungie240 said:
Can I update to this if I'm on 6.0.1 build GV1.0.0B10?
Click to expand...
Click to collapse
If you're rooted unlocked you can. But to be sure update to B01 and B02 bootstack/stocksystem. If you prefer update to B05 bootstack/stocksystem and then flash this one. Follow guides : https://forum.xda-developers.com/axon-7/development/stock-rom-a2017g-twrp-flashable-images-t3599069
Use : https://forum.xda-developers.com/axon-7/how-to/download-center-factory-images-ota-t3606547
jw1985 said:
Can u use magisk? Dont like Supersu..
Click to expand...
Click to collapse
I already worked with Magisk and everyone has it's preference.
If you like to convert it,replace SuperSu with Magisk in ROM, rewrite the updater-script and repack again. Flash and done !
sirizak said:
This is getting really close to my ideal rom, I like LOS but not prepared to lose daydream, camera and audio performance.
Is it possible to do a rom like the old google play edition phones, where you get all the stock features and keep zte camera app but get googles dialer, pixel launcher etc...?
Click to expand...
Click to collapse
Everything is possible but everyone has it's own preferences. An ideal ROM doesn't exist. That's why i made this one to build it further with your needs.
jw1985 said:
Can u use magisk? Dont like Supersu..
Click to expand...
Click to collapse
https://forum.xda-developers.com/axon-7/how-to/replacing-supersu-magisksu-a2017g-t3614024
RR 5.8.3
Hello,
Can I install this ROM directly from Ressurrection Remix 5.8.3?
jw1985 said:
Can u use magisk? Dont like Supersu..
Click to expand...
Click to collapse
EASY METHOD ( instead of me uploading another version again ) :
For those who want to replace SuperSU with the latest Magiskv13.3 (stable) :
1. Download latest here (http://tiny.cc/latestmagisk) and put it on ext.SD
2. go into SuperSU app (#) and scroll down to 'Fully Unroot'
3. Tab it and tab YES when asking to replace boot.img
4. As soon as it starts to run and you get a first black screen : hold VOL+ and Power as to go into TWRP (so don't let it boot normaly, just go into TWRP !)
5. once in TWRP flash Magiskv13.3
6. Done !
I tested it by installing a module and no problem so far...
Can someone upload me the build.prop? I messed my up :/
Spillunke said:
Can someone upload me the build.prop? I messed my up :/
Click to expand...
Click to collapse
Here you go
https://www.androidfilehost.com/?fid=889764386195923891
Can i delete systemapps directly or is the disemmcwp command also needed with this rom?
I cant get access to system with "stock stock" Rom :/
Spillunke said:
Can i delete systemapps directly or is the disemmcwp command also needed with this rom?
I cant get access to system with "stock stock" Rom :/
Click to expand...
Click to collapse
Yes you can delete system/app/whatever with es file explorer. I did the test.
Just give ES root permission.
You don't need disemmcpwp command or whatever to delete something in root of phone.
Edit : in my experience SuperSU is more reliable than Magisk as it comes to altering system stuff. Supersu does it flawless as Magisk in some way has difficulties with root explorers. That's my opinion
Thank you for removing this ZTE Apps and replacing with original Google Apps !!!
How about the battery life? Can anyone post prints?
Thanks
raystef66 said:
Yes you can delete system/app/whatever with es file explorer. I did the test.
Just give ES root permission.
You don't need disemmcpwp command or whatever to delete something in root of phone.
Edit : in my experience SuperSU is more reliable than Magisk as it comes to altering system stuff. Supersu does it flawless as Magisk in some way has difficulties with root explorers. That's my opinion
Click to expand...
Click to collapse
With Magisk there is a problem when deleting folders.
But editing and deleting single files is working fine.
Just a hint from my experiences.
SilentEYE said:
With Magisk there is a problem when deleting folders.
But editing and deleting single files is working fine.
Just a hint from my experiences.
Click to expand...
Click to collapse
Same for me, rename files works, delete not. 'Read-only file system' notification.
I "must" use Magisk because of Xposed. Maybe it would work with SuperSU, but i deleted some apps in the zip before, so i cleaned it myself before flashing.
What about adding some nice mods?
- Extended Power Menu (this version: click)
- Center Clock in Statusbar
- "conservative" war mod
(Thats what i added to your ROM)
I would like to help you, but i dont know how.
SilentEYE said:
With Magisk there is a problem when deleting folders.
But editing and deleting single files is working fine.
Just a hint from my experiences.
Click to expand...
Click to collapse
Spillunke said:
Same for me, rename files works, delete not. 'Read-only file system' notification.
I "must" use Magisk because of Xposed. Maybe it would work with SuperSU, but i deleted some apps in the zip before, so i cleaned it myself before flashing.
What about adding some nice mods?
- Extended Power Menu (this version: click)
- Center Clock in Statusbar
- "conservative" war mod
(Thats what i added to your ROM)
I would like to help you, but i dont know how.
Click to expand...
Click to collapse
That's why i made this STOCK B05 clean ánd with the SuperSU. As you both acknowledge, with SuperSU there are no problems at all to modify, delete, ..or whatever in root's phone. Magisk doesn't it for a full 100% as SuperSU does. On the contrary when you want the benefits of Magisk which SuperSU does not quit offer, flash Magisk in a minute and you're done. So people can choose to their benefit
Adding mods like you propose are more then OK but this would mean it's not that STOCK anymore you know. I can add these mods but it will be another ROM. So in general, everyone has its own wishes but as said, i just uploaded this one as it is as far as i know the 'cleanest' one.
Hi, thanks for this Rom, but i'm not able to flash magisk. When uninstall supersu inside the supersu app, i cannot restore stock boot.img.
skaterazn said:
Hi, thanks for this Rom, but i'm not able to flash magisk. When uninstall supersu inside the supersu app, i cannot restore stock boot.img.
Click to expand...
Click to collapse
You're welcome
Normally when you follow my procedure here it should/would work. I've done it a couple of times to test. You'll have to vol+/power immediately after when it wants to reboot on a black screen, hold both buttons till ZTE logo pups-up and then release. Enther in TWRP and flash Magiskv13.3.
Should work

Categories

Resources