[Completed] [SOLVED] How to restore UI in stock Lollipop 5.1 with GApps removed? - XDA Assist

Hi, I'm new to Android and learning how it works by customizing stock-based 5.1 ROM for Moto G 4G 1st gen (XT1039 aka Peregrine). My current aim is to strip it down to bare usable and stable minimum. So far I removed a lot of bloat and got to the point where there are only 4 Google apps left:
- GmsCore,
- GoogleServicesFramework
- SetupWizard
- SetupWizardExt
When I remove them, and add a build.prop line "ro.setupwizard.mode=DISABLED" that disables initial setup everything still seems to work fine - the only problem is UI dysfunction. The Home button is not working (there's no action assigned to it) and quick settings disappear from notifications area. During my research I found an information that these functions are disabled by default to prevent user "escaping" Setup Wizard with Home button or accessing settings before the initial setup is done. Even when disabled in build.prop Setup Wizard still gives some kind of "signal" to Gms Core during initial boot that UI can be unlocked which means the 4 listed Google apps must be included into ROM to make everything work. My question is if there's any way around it. Can you remove all GApps from the rom, install it, boot and somehow restore Home button, quick settings and other things that could be missing?
Thank you.

minimale_ldz said:
Hi, I'm new to Android and learning how it works by customizing stock-based 5.1 ROM for Moto G 4G 1st gen (XT1039 aka Peregrine). My current aim is to strip it down to bare usable and stable minimum. So far I removed a lot of bloat and got to the point where there are only 4 Google apps left:
- GmsCore,
- GoogleServicesFramework
- SetupWizard
- SetupWizardExt
When I remove them, and add a build.prop line "ro.setupwizard.mode=DISABLED" that disables initial setup everything still seems to work fine - the only problem is UI dysfunction. The Home button is not working (there's no action assigned to it) and quick settings disappear from notifications area. During my research I found an information that these functions are disabled by default to prevent user "escaping" Setup Wizard with Home button or accessing settings before the initial setup is done. Even when disabled in build.prop Setup Wizard still gives some kind of "signal" to Gms Core during initial boot that UI can be unlocked which means the 4 listed Google apps must be included into ROM to make everything work. My question is if there's any way around it. Can you remove all GApps from the rom, install it, boot and somehow restore Home button, quick settings and other things that could be missing?
Thank you.
Click to expand...
Click to collapse
Hi,
Try asking over here http://forum.xda-developers.com/android/help

Vivek_Neel said:
Hi,
Try asking over here http://forum.xda-developers.com/android/help
Click to expand...
Click to collapse
Thanks, I found a solution today, just couldn't update this thread as my PC broke.
In order to restore UI functions you need yo execute the following via ADB:
Code:
adb shell
su
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
insert into global (name, value) VALUES('device_provisioned', 1);
insert into secure (name, value) VALUES('user_setup_complete', 1);
.quit
reboot
Sqlite3 is a binary you may need to download and copy to /system/bin as it's not normally available in stock roms

Related

PC application ADB Mask Controller 2.02a

This is a tool I created to help me with my X10 and ARC. I thought it might be useful to some of you so I made some fixes and here it is! Keep in mind that this is a beta version so use at your own risk. Some of the features are:
• push, pull, install apps and transfer between System <=> User apps and between SD <=> Device
• remove & uninstall apps, clean data from deleted apps and delete orphan files
• change min & max CPU frequency (from available steps)
• view and edit: gps.conf, Hosts, build.prop, hw_config, media_profiles.xml, vdd_levels and install-recovery
• view and kill running processes
• zipalign
• keyboard functionality
• search files / folders
• basic file explorer
• push and pull Bootanimation, framework-res and Framework jar files
• clean cache & temp folders and application data cache
• enable Market to show paid apps
• create phone log (logcat, dmesg)
• view device info
• and others.
I tested it on X10, X10 mini, X8, PLAY, Mini Pro, Mini, Neo and ARC.
The tool works both with USB (recommended) and wireless phone connection.
For any questions, problems or suggestions please leave a message
It's better to backup your data before Zipaligning, because some launchers don't work correctly when they are zipaligned, causing a reboot loop.
Please use the link below instead of uploading the tool on other hosts, so that I can see the downloads. Thanks
ADB Mask Controller V2.02a
ADB Mask Controller V2.01a
ADB Mask Controller V1.04b
2.02a
New features:
- Basic file explorer
- Battery log
- Minfree editor
- Governor changer
- Mount SD and umount SD function (USB mass storage)
- View and Edit vdd_levels and install-recovery
- Zipalign SDcard apps (mnt/asec)
- Support for Xperia Neo and Xperia Play on sleep button setup
Optimizations / Fixes:
- Install apps function (show not installed apps)
- Uninstall function
- CPU state function
- Push any file to function
- Push busybox, push sqlite, push zipalign
- Clean cache and tmp function
- Logcat function (main, radio, events, system)
- Zipalign
- Battery info
- Keyboard functions
- Bug fixes & optimizations
2.01a
New features:
- keyboard functionality
- push text to textbox function
- Read battery info
- Read deep sleep time
- Read connection speed
- Market client id
- Search function
- dmesg log function
- mount r/w and mount r/o (for system) function
- View and Edit media_profiles.xml for android 2.2 - 2.3
- Transfer apps (SD<=>Device)
- pull framework and convert to *.zip (Amend script)
- dropbox log enable - disable function (/data/system/dropbox) for Android 2.2 - 2.3
Optimizations / Fixes:
- Optimizations in Check connection
- Optimizations in Pull and Push function
- Improved logcat function
- Improved fix permission function
- Overall speed improvements
- Bug fixes & optimizations
1.04b
- Added support for X8 on sleep button setup
- Added Zipalign for system apps
- Bug fixes & optimizations
To launch the tool
- unzip the package
- run "ADB Mask Controller.exe"
- connect your phone (enable USB debugging)
- If this is the first time you use this tool click on "Check root access and busybox". If you are sure that your phone is rooted and the tool says otherwise, make sure that your phone allows the program to have SuperUser access.
- Busybox is required in order to use this tool. If you get the result "NO" next to the Busybox Version then you must push/install it on your phone.
Buttons explained:
- Green: No Root access necessary
- Black: Root access needed
- Red: Use with caution
Hints for Wireless connection:
- To connect your phone by wireless you must install and turn on adbWireless, adb over Wifi or another similar app
- Wireless connection is slower than USB connection. It is not recommended to do advanced tasks using wireless since the connection can be interrupted more easily than USB connections.
- The display must be turned on while connected with wifi (or a wakelock must be enabled through an app e.g. Waketimer) in order to prevent the cpu from going to sleep mode while it's working with wireless adb.
Hints:
- To uninstall the apps that cannot be uninstalled with Broken Link Cleaner you must push them on the phone, reboot and uninstall them using the Delete Feature (make sure Uninstall is selected).
- It's good to click on "Fix permissions" since it fixes many system & data permissions.
Notes on the new features:
- Keyboard functionality: Some features may not work on all devices
- Push Text to textbox: This feature is still in its early steps. Speed optimization removes unnecessary spaces, empty lines etc.
- Market client id: For devices with the old version of Market, it replaces the "Sony Ericsson" channel from the main page with "My apps" channel
- Battery Status: Some info may not be available for your device
- Framework.res recovery zip (Amend script): Framework.res is converted to a zip, signed and it is ready to install in Recovery (no need to flash the phone when you use a faulty framework) Just move it to sdcard and install it in Recovery
Not bad, thanks.
Great!
I have an issue though. It says my device is not rooted although it is. When i press "shell root" a pop-up dialog says "try again". No luck with that.
My device is an X10 mini
DaRk_dOg said:
Great!
I have an issue though. It says my device is not rooted although it is. When i press "shell root" a pop-up dialog says "try again". No luck with that.
My device is an X10 mini
Click to expand...
Click to collapse
Hi and thanks.
If you have SuperUser installed on your phone, when you click on "Check Root access and busybox" a popup will appear on your phone, asking for Superuser rights. Click on "Allow" to give access to the program
Mask-1 said:
Hi and thanks.
If you have SuperUser installed on your phone, when you click on "Check Root access and busybox" a popup will appear on your phone, asking for Superuser rights. Click on "Allow" to give access to the program
Click to expand...
Click to collapse
already done it.
It keeps saying "no root busybox ok"
DaRk_dOg said:
already done it.
It keeps saying "no root busybox ok"
Click to expand...
Click to collapse
i have just done a minor fix and checked it, it should fix that problem. Could you check out version 1.01b and let me know if it's working for you?
Thanks
Seems very comprehensive. Thanks
Thanks. I like it alot and its much easier then the normal way.
Mask-1 said:
i have just done a minor fix and checked it, it should fix that problem. Could you check out version 1.01b and let me know if it's working for you?
Thanks
Click to expand...
Click to collapse
Yeap fixed!
I have another problem but that seems to occur due to my setup:
When i press the "User Apps" tab, while the progress bar is moving, the result i get in the app browser window, is /data/app.
I have the App2SD script running (/data/app linked at /system/sd/app) so could this be why the user app list is not populating?
Thanks in advance though, everything else seem to work great!
I just added Version 1.01c
DaRk_dOg said:
Yeap fixed!
When i press the "User Apps" tab, while the progress bar is moving, the result i get in the app browser window, is /data/app.
I have the App2SD script running (/data/app linked at /system/sd/app) so could this be why the user app list is not populating?
Thanks in advance though, everything else seem to work great!
Click to expand...
Click to collapse
can you see if the app list is shown now?
Thanks
Mask-1 said:
I just added Version 1.01c
can you see if the app list is shown now?
Thanks
Click to expand...
Click to collapse
It is working GREAT!
Also zipalign works perfect.
*EDIT*
I dont know if this is a bug or i'm doing something wrong:
On the third tab (push and pull), i cant push files to my phone. I try to drag and drop apps inside the window dialog, but it does not let me drop it anywhere inside.
DaRk_dOg said:
It is working GREAT!
Also zipalign works perfect.
*EDIT*
I dont know if this is a bug or i'm doing something wrong:
On the third tab (push and pull), i cant push files to my phone. I try to drag and drop apps inside the window dialog, but it does not let me drop it anywhere inside.
Click to expand...
Click to collapse
thanks for the quick response
Make sure you drag and drop the apps inside the white area just above the Send button.
Mask-1 said:
thanks for the quick response
Make sure you drag and drop the apps inside the white area just above the Send button.
Click to expand...
Click to collapse
Yeap that's what i do. Still no luck.
DaRk_dOg said:
Yeap that's what i do. Still no luck.
Click to expand...
Click to collapse
Drag and drop not working on mine also!
Drag and drop worked for me, but zipalign system/sd/app didn't work. My phone (x10 mini pro) stuck at SE orb logo, but there was adb communication (i don't know if I name it right, but the program identified the phone and was able to accomplish some functions). I don't know exactly how, I removed the card in some point, a lot of reboots, but after one reboot it suddenly booted successfully, I think I pressed shell root). I had noticed that the program had stuck in "wait..." when I pressed "zipalign system/sd/app", and that launcherpro didn't work, so I pushed and installed launcherpro and magically it (LP) started working. All system apps work well, NO widget/app installed in system/sd/app works, they all crash. If I press zipalign system/sd/app again, everything is zipaligned according to the program, except launcherpro, which stops working after that and needs re-installing.
I hope I have helped you and not smothered you with this decription.
UPDATE: I started playing with root explorer, and noticed that when I added the "execute" permission to "user" some (astro, TiB) worked again, but others didn't (handcent, documents to go). Is is a matter of permissions?
I also had the same problem with KreAch3R and a mini pro.
The difference is that I pressed all three options under zipallign and all completed.
Only after i pressed "zipalign system/sd/app" launcher pro stopped working though everything else worked fine.
Then I closed the application at the pc removed the phone from the usb (safely) and rebooted the phone and i am stuck in the sony ericsson orb.
I did the reboot from my phone not the application.
thnx in advance
KreAch3R said:
Drag and drop worked for me, but zipalign system/sd/app didn't work. My phone (x10 mini pro) stuck at SE orb logo, but there was adb communication (i don't know if I name it right, but the program identified the phone and was able to accomplish some functions). I don't know exactly how, I removed the card in some point, a lot of reboots, but after one reboot it suddenly booted successfully, I think I pressed shell root). I had noticed that the program had stuck in "wait..." when I pressed "zipalign system/sd/app", and that launcherpro didn't work, so I pushed and installed launcherpro and magically it (LP) started working. All system apps work well, NO widget/app installed in system/sd/app works, they all crash. If I press zipalign system/sd/app again, everything is zipaligned according to the program, except launcherpro, which stops working after that and needs re-installing.
I hope I have helped you and not smothered you with this decription.
UPDATE: I started playing with root explorer, and noticed that when I added the "execute" permission to "user" some (astro, TiB) worked again, but others didn't (handcent, documents to go). Is is a matter of permissions?
Click to expand...
Click to collapse
In order to zipalign, first you have to push zipalign binary and zipalign scripts. There is an option for that on the homescreen of the app.
this application has everything to be essential however...
i must be retarded or something
i`ve usb debbuging on and first thing i do is "check connection" yet...check pic
i´m on AOSP 2.1 007 btw
This Programm is really awsome. Please dont stop to refine it.
Thx for your hard work and support.

[ROM] Semi-stock/Super-clean/Tweaked/Rooted

I've been learning how to build a custom rom for the S5...
Finally got my first stable version that I'd love to share!
Special Features:
Stock Base
Rooted - SuperSU
BusyBox integrated.
zip-aligned
Build.prop tweaks for speed, battery, usb debug
Removed all Verizon/Samsung apps that I could possibly strip out - without having any problems in settings, etc.
(Except S Voice - I just skipped including that because it's useless to me.)
WiFi Hotspot - WITH NOTIFICATION TOGGLE
**** Almost all apps have been moved to /data/app - which means you can uninstall them, not just turn them off.
Replacements:
Replaced stock launcher with Holo Launcher HD
Chrome replaced with Firefox
Messages replaced with Handcent
Includes:
AdFree (Root)
Titanium Backup
I DO NOT WARRANTY THIS ROM IN ANY WAY.
INSTALL AT YOUR OWN RISK. DONT HATE ME IF IT DESTROYS YOUR DEVICE.
I've been running it on my device for the day and it's doing great!
Install instructions:
Use safestrap
Any ROM slot should be fine. I know it's not possible currently in safestrap to make a smaller system partition, but really only 2GB is needed for system.
I'd highly recommend a clean slot -- for some reason while testing safestrap wouldn't fully wipe the data partition.
PLEASE NOTE:
After initial boot, you will be sent through the Setup Wizard, as usual.
Immediately following completion of first boot, your phone will "go crazy" for a few seconds. The select wallpaper window will open (dont do anything), then the screen will go blank for a second.
* Setup Wizard may force close. DONT PANIC!! Everything i still working right. Just click OK.
I have set up a One-Time Init script to install the WiFi Hotspot toggle into notification panel, change the default lockscreen/homescreen backgrounds, enable USB Debugging, and to set up the initial Holo Launcher icon layout.
DOWNLOAD LINK:
MediaFire Old Version
Still being uploaded:
Odex Version Does not include Setup Wizard. If you can't live without it, get the old version.
MD5 = aefa00cdad2e3c50ab63332ba7ff106e
DeOdex Version
MD5 = 029093db318bf1d331a38d97573faa41
Screenshots below!
If you like my ROM please DONATE a couple dollars!
jake5253 said:
I've been learning how to build a custom rom for the S5...
Finally got my first stable version that I'd love to share!
Special Features:
Stock Base
Rooted - SuperSU
BusyBox integrated.
zip-aligned
Build.prop tweaks for speed, battery, usb debug
Removed all Verizon/Samsung apps that I could possibly strip out - without having any problems in settings, etc.
(Except S Voice - I just skipped including that because it's useless to me.)
WiFi Hotspot - WITH NOTIFICATION TOGGLE
**** Almost all apps have been moved to /data/app - which means you can uninstall them, not just turn them off.
Replacements:
Replaced stock launcher with Holo Launcher HD
Chrome replaced with Firefox
Messages replaced with Handcent
Includes:
AdFree (Root)
Titanium Backup
I DO NOT WARRANTY THIS ROM IN ANY WAY.
INSTALL AT YOUR OWN RISK. DONT HATE ME IF IT DESTROYS YOUR DEVICE.
I've been running it on my device for the day and it's doing great!
Install instructions:
Use safestrap
Any ROM slot should be fine. I know it's not possible currently in safestrap to make a smaller system partition, but really only 2GB is needed for system.
I'd highly recommend a clean slot -- for some reason while testing safestrap wouldn't fully wipe the data partition.
PLEASE NOTE:
After initial boot, you will be sent through the Setup Wizard, as usual.
Immediately following completion of first boot, your phone will "go crazy" for a few seconds. The select wallpaper window will open (dont do anything), then the screen will go blank for a second.
* Setup Wizard may force close. DONT PANIC!! Everything i still working right. Just click OK.
I have set up a One-Time Init script to install the WiFi Hotspot toggle into notification panel, change the default lockscreen/homescreen backgrounds, enable USB Debugging, and to set up the initial Holo Launcher icon layout.
DOWNLOAD LINK:
MediaFire
Screenshots below!
If you like my ROM please DONATE a couple dollars!
Click to expand...
Click to collapse
Nice to see another ROM pop up!
Sent from my SM-G900V using XDA Premium HD app
Nice! Can't wait to give it a go!
Sent from my SM-G900V using XDA Premium 4 mobile app
is there a way to use stock launcher???? i perfer stock tw launcher
jdog94 said:
is there a way to use stock launcher???? i perfer stock tw launcher
Click to expand...
Click to collapse
I know there is a link somewhere here on xda where you can download a zip with all the original apks. Check in the Verizon S5 general section.
Found it! Look in OP Here
Note on my ROM, I seem to have forgotten to remove the security policy updates app. feel free to remove it yourself.
/system/priv-app/SPDClient.odex and SPDClient.apk

[MOD][AROMA][2015.09.16]ImproveG3 v1.2

Hi all,
I took a bit of time (and restoring nandroids) to create an AROMA installer script.
It works on 5.0 stock (based) ROMs as well, please test and report back.
What it does:
Debloat your system
- Remove LG apps
- Remove Google Apps (which can be downloaded from Play Store)
- Remove boot/shutdown animations/sounds
- Remove all other UI/Camera/Alarm/Notification/Ringtone sounds - see 2nd post if you need to restore these easily
Install KitKat external SD fix or restore to stock
CPU Thermal Throttling (CTT) Mod by @Robshr
Sharpening Mod by @Skin1980 - see 2nd post if it bootloops
Click to expand...
Click to collapse
The script currently is in English and German, more localizations welcome.
Disclaimer:
THIS SCRIPT SHOULD BE SAFE TO USE ON STOCK 4.4, 5.0 AND STOCK BASED CUSTOM ROMS AS WELL, INDEPENDENT OF YOUR DEVICE MODEL.
STILL, USE THIS AT YOUR OWN RISK.
ONLY REMOVE APPS YOU DO NOT USE.
I AM NOT RESPONSIBLE FOR ANY DAMAGE TO YOUR DEVICE LIKE BOOTLOOPS/BRICKS/HAVING TO FLASH STOCK.
MAKE SURE YOU HAVE A CURRENT AND WORKING NANDROID BACKUP.
Click to expand...
Click to collapse
Changelog:
1.2 (2015.09.16):
- updated Sharpening Mod to v3.5
- updated CTT Settings to latest from 2015.09.06
- if you remove GApps after updating or moving them to userspace, only the system part and all app settings will get deleted
1.0 (2014.12.14):
- Moved boot/shutdown animations and sounds, plus all system sounds to extra section for removal - holy crap, nearly 600kb code for this.
- Merged LG PC Sync + Service into one entry and added the USB Autorun ISO for removal.
0.9 (2014.12.12): please test, need feedback
- Added support for 5.0 stock (based) ROMs
0.8.1 (not officially released):
- Added list of "Extremely Dangerous Sh!t!" apps for testing purposes. Works on 4.4 only and most probably will cause (non-physical) damage to your device
0.8 (2014.12.06):
- Included Sharpening Mod by @Skin1980
- More warnings, less terms
- Beautified icon selection (?)
- Updated update-binary-installer with version from Skin1980's mod
0.71 (2014.12.06):
- fixed reset settings problem
- all google apps can now be safely removed (except search, might lead to setup loop - be careful) (thx @tobitege for Google Search info)
0.7 (2014.12.01):
- added approximate file sizes to Debloat module
0.6 (2014.12.01):
- added CPU Thermal Throttling (CTT) Mod by @Robshr
- removed sleep(300) during debloat from original demo script
0.5 (2014.12.01):
- KitKat SD fix added
- Reduced size
0.4 (2014.12.01):
- Code cleanup
0.3 (2014.12.01):
- Actually deletes stuff now
- Testing debloating, re-categorizing apps, enhancing notes
0.2 (2014.11.30):
- Added localizations
0.1 (2014.11.29):
- Initial skeleton release
- Figure out aroma and edify
Click to expand...
Click to collapse
Todo / coming soon:
- Provider-specific apps
- Battery efficient Governor + ReadAhead mod
- volume mod
- Other mods?
- Split aroma code into several files, can't get it to work
Click to expand...
Click to collapse
Known (possible) side-effects:
- After removing everything the debloater offers at once, the phone sometimes would not find the mobile network. Turning off and on again Wifi and Data helped
- Sometimes all settings (new profile) or just language get lost. Restore nandroid and try again.
- It is heavily recommended to setup an alternative keyboard and home screen before removing LG Home and LG Keyboard.
- Removing LGInstallService causes "App Updates" to download LG apps, but not install them.
- Removing Update Center causes Settings->About Phone->Update Center to FC, and you have no (direct) way to open App Updates (LG app updater) or Software Update (OTA updates). Removing Update Center, App Updates and Software Update causes Update Center to not even appear and not cause any issues.
- Removing Google Search is said to lead to a bootloop if you factory reset your device (see this thread) - I don't intend on resetting my device, so no idea.
Click to expand...
Click to collapse
Requirements:
- TWRP recovery
- Stock (based) 4.4/5.0 ROM
Click to expand...
Click to collapse
Usage:
- Create a nandroid backup
- Download the attached .zip and copy it to the root of your external SD card (/storage/external_SD)
- Reboot into recovery
- Install downloaded zip
- Select options
- If debloating, make sure you select the correct OS version. I will not assist if you debloat a 4.4 ROM in 5.0 mode or vice versa.
- If you debloated, wiping dalvik/cache might be a good idea
- Reboot
Click to expand...
Click to collapse
Help requests:
- If you find any bugs or issues, please post here with a detailed description.
- more info on quite a few apps
- As I moved all my Google apps to userspace, please test and report back if removing GApps works (they can be reinstalled to userspace from market)
- Localizations besides DE and EN
- If you know more mods that I should ask the author for permission to include, please link them in here. No build.prop mods.
Click to expand...
Click to collapse
GitHub repository:
https://github.com/subworx/ImproveG3
Click to expand...
Click to collapse
Credits:
@Skin1980 for his Screen Oversharpening Fix kernels and Sharpening Mod
@Robshr for CPU Thermal Throttling (CTT) Mod
@DelBoy for the noob friendly G3 Q&A thread
@amarullz for AROMA Installer
@jasonkx for pointing out changes in L
anyone else I might have forgotten
Click to expand...
Click to collapse
If you miss an app, let me know and I will try to add it as soon as possible.
If you encounter side-effects I did not notice, post here.
If this helped you, please press Thanks
Regards,
Sub
In Case the Sharpening Mod does not work for you ("dirty" boot partition, code security verification error or something like that)
Restore the nandroid Boot backup you did create... didn't you?
If you are using a ROM currently:
- Extract "boot.img" from your ROM zip (should work).
If you are using a custom kernel:
- Extract "boot.img" from the kernel zip (should work).
If you are using stock:
- Download your correct version stock firmware image (KDZ). Extract it using "WindowsLGFirmwareExtract", then extract "boot_xxxxxx.bin" from the resulting .DZ file. Rename it to boot.img. (Guaranteed to work)
For Mac/Linux, there are Python scripts linked around the G3 forums, searching "extract KDZ" or visiting the G3 Index Thread in G3 -> General should help.
Sorry I cannot provide more information for these systems. All commands below should be the same except "adb push /path/to/boot.img /sdcard/boot.img".
Here's a stock 10L kernel for D855 . Extract the zip and rename the .bin file to boot.img.
Connect your phone to pc, open a command prompt, and type everything that is not in ():
Code:
adb push c:\path\to\boot.img /sdcard/boot.img
(copy boot image to internal memory)
adb shell
su
(start a ADB shell and get root permissions)
dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/boot
(overwrite current boot partition with all zeros - WILL throw an error, don't worry.)
dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
(overwrite now empty boot partition with kernel image)
exit
exit
adb reboot
(reboot the device)
This completely wipes your boot partition with 0000's, then fills it up with the kernel image you used before.
Now the Sharpening Mod will work.
If you copy the boot.img to the SD manually, you can execute all commands starting from 'su' up to the second exit in a terminal app on the phone itself as well.
Make sure you don't make any typos, and reboot afterwards!
Click to expand...
Click to collapse
If you deleted too many animations/sounds or want them back:
Here's a flashable audio-restore.zip.
Flash it using Flashify or TWRP.
It will restore all animations and sounds to stock state.
Click to expand...
Click to collapse
Safe to remove:
Accessibility
Answer me
EasyHome
E-Mail
Face Unlock
File Manager
Home selector
LG Backup
LG Health
LG Keyboard Black Theme
LGSearchWidgetProvider
McAfee Security
Music widget
Music app
Smart Notice
Smart Tips
and all animations/sounds
Click to expand...
Click to collapse
Safe to remove but have a replacement installed (and better set that to default before debloating).
Also, if doing a Factory Reset, this can lead to Setup Wizard loops. I can not confirm if integrating
alternatives into the system before wiping solves this.:
Home
Home Theme Optimus
Internet
LG Keyboard
LG Keyboard XT9
Click to expand...
Click to collapse
Google Apps:
Chrome
Drive
Gmail
Google Play Books
Google Play Games
Google Play Movies
Google Play Music
Google Play Newsstand
Google Text-to-speech Engine
Google+
Hangouts
Maps
Street View
TalkBack
YouTube
Click to expand...
Click to collapse
Potentially dangerous, can lead to FCs in specific combinations.
See list of Possible side-effects in first post before removing these:
App Updates
Google Search (can lead to Setup Wizard loops after Factory Reset)
LGInstallService
Software Update
Update Center
Click to expand...
Click to collapse
Definitely dangerous, will cause FCs for sure or other issues - not included:
com.lge.sui.widget - causes Settings FC after boot, then Settings to FC on open
LG System Service - makes the LED blink wildly
Click to expand...
Click to collapse
and here go at least 2 characters so my message is not too short.....
Always liked this debloating things.
Will test it later.
Can you feel the difference in speed?
from the moment i flash this mod i have no settings and from soft buutons the only one that is working is the back one...
any ideas??
redcom7 said:
from the moment i flash this mod i have no settings and from soft buutons the only one that is working is the back one...
any ideas??
Click to expand...
Click to collapse
Not yet. What exactly did you select?
I installed/ran/removed everything on my device except the unsafe apps without issues.
Cam you provide some sort of log?
E.g. the one created by the recovery after running
subworx said:
Not yet. What exactly did you select?
I installed/ran/removed everything on my device except the unsafe apps without issues.
Cam you provide some sort of log?
E.g. the one created by the recovery after running
Click to expand...
Click to collapse
i reflash cloudy 1.2 rom and i notice that there is no problem with unistalled apps but the problem is with thermal control mod ...
wrong ... also without flash thermal mod there are problem after this mod/...
redcom7 said:
i reflash cloudy 1.2 rom and i notice that there is no problem with unistalled apps but the problem is with thermal control mod ...
wrong ... also without flash thermal mod there are problem after this mod/...
Click to expand...
Click to collapse
Unfortunately there currently is no way for me to find out what went wrong on your device.
Hoping for a few more people to test the mod and report back if they encounter the same.
After the installer did its job (Mounting partitions, removing stuff, unmounting partitions), you are offered a "save log" button on the bottom left.
Is there a chance you'd be willing to try once more and then attach the log?
This might help with analysis.
Regards,
sub
subworx said:
Unfortunately there currently is no way for me to find out what went wrong on your device.
Hoping for a few more people to test the mod and report back if they encounter the same.
After the installer did its job (Mounting partitions, removing stuff, unmounting partitions), you are offered a "save log" button on the bottom left.
Is there a chance you'd be willing to try once more and then attach the log?
This might help with analysis.
Regards,
sub
Click to expand...
Click to collapse
i will do it when i will find some spare time ....
anyway thank you .....
I tried the mod out and I encountered no problems at all on cloudy. I only removed apps but all is good. So thanks a lot, saved me some time
p70shooter said:
I tried the mod out and I encountered no problems at all on cloudy. I only removed apps but all is good. So thanks a lot, saved me some time
Click to expand...
Click to collapse
Thank you very much for your feedback.
Great work. Is lghome and keyboard also safe to uninstall in case of a factory reset. On the G2 with my debloater removing those together or individually caused a "setup loop".
Going to flag this on the Vs985.
fr4nk1yn said:
Great work. Is lghome and keyboard also safe to uninstall in case of a factory reset. On the G2 with my debloater removing those together or individually caused a "setup loop".
Going to flag this on the Vs985.
Click to expand...
Click to collapse
Hi,
no they are NOT factory reset safe.
I will add a note to the "Safe with Alternative" section of the "readme" before the actual module selection, thank you.
Either you can integrate an alternative launcher and keyboard into the ROM (should work, never tried this before), or create a flashable zip just with these two. If you need to factory reset again, just flash the zip (copying home and keyboard to the correct /system/(priv-app)/ folder) and after the initial setup remove them again.
Edit: Oh nearly forgot, another thread (linked to in the OP) states that moving Google Search to userspace (or deleting it) and then factory resetting the device would lead to some loop (dunno if Boot, Setup or whatever) as well. That is why it's in the "Potentially dangerous" section until I had time (and interest to restore an old backup...) to actually test.
Regards,
sub
I used this on My SPRINT version Unlocked and it was unable to search the Network for some reason Had to restore a NAND Backup.
aukhan said:
I used this on My SPRINT version Unlocked and it was unable to search the Network for some reason Had to restore a NAND Backup.
Click to expand...
Click to collapse
Thanks for the info.
I saw this as well, worked again once I turned Wi-Fi and mobile Data off and on again.
Does the network zip provide any real noticable changes?
Mikessv said:
Does the network zip provide any real noticable changes?
Click to expand...
Click to collapse
What do you mean by network zip?
@subworx: in case you still need Google Search package: it's called "velvet.apk". Use Titanium Backup to display the package and apk names.
tobitege said:
@subworx: in case you still need Google Search package: it's called "velvet.apk". Use Titanium Backup to display the package and apk names.
Click to expand...
Click to collapse
Thank you very much
As I said, I moved the app to userspace, so my Titanium says "APK path: /data/appcom.google.android.googlequicksearchbox-1.apk" - no Velvet to be seen.
I saw Velvet.apk in the unpacked system image, but could not find out what it is/does.
Will add it to the script right away
Not sure if one should remove it though, might be needed by the LG initial setup wizard, could be that the wizard loops without Google.

[MODS][UNLOCKED BL][AROMA][GITHUB] CosmicTweaks v2017.05.05

WHAT IS THIS?
CosmicTweaks is my personal collection of changes and tweaks for MIUI. As of 2017.05.05 it is designed for Xiaomi.eu ROM's but it should work with official and probably any other MIUI mod (make a TWRP backup and report any problems you find!). It is not a full ROM, but modifies existing ROM to act like a customized MIUI ROM.
Highlights:
A tested and proven minimal set of tweaks, modular selection with no fluff or nonsense
Designed for Xiaomi.eu ROM's, but is based on AnyKernel2 scripts so should technicall work on *any* MIUI 8 ROM for Redmi Note 4 as it dynamically patches the system and kernel
Does NOT need a 'deodexed' firmware, and provides a tool in the main menu to move 'dalvik-cache' (ART cache) back to system partition which will reclaim space on /data
Option to add minimal Google apps for Chinese ROM's (thanks to Xiaomi.eu for reference on this)
Fully documented list of changes and hosted on GitHub. I encourage other aspiring modders to check out my work as I've done a lot of tricks here e.g. with Aroma and AnyKernel scripts
About updates, license and future:
I am a busy guy with fickle interests, I tend to contribute to XDA/Android stuff in sporadic and intense burts. I made this patch pack with the goal of minimal maintenence and future-proofing. I will try my best to kee it up to date, but no guarantees (we all do this for fun in our spare time afterall.) If I make no reply to this thread for THREE MONTHS, I give permission for moderators to lock it and another XDA member can fork and take over the work (as long as they make it clear that it's only *based* on my work and not endorsed by me).
MY TIPS FOR MIUI:
Can't press "Allow" in Permissions prompt: This is a long-standing MIUI bug. See my explanation of the bug along with workarounds here.
Titanium Backup: Having trouble restoring apps? Be sure to also enable "Install via USB" in Developer Options. If you get a "This device is temporarily restricted" error, just disable your internet access and toggle it again.
Global icon packs via Unicon: If you want to apply Nova/Apex/etc Launcher icon packs on a global scale with Unicon Xposed module, you will need to clear the icon cache after applying icon theme. This can be done by applying default/any theme in MIUI Themes app, OR you can manually delete the folder at /data/system/theme_magic/ (a root explorer required obviously) and THEN REBOOT IMMEDIATELY.
xMIUI Xposed Module: Highly recommended. It's not as extensive as GravityBox, but it's still got a lot.
Broken/crap Weather info: If using Chinese MIUI and you want working Weather, or just want better weather in general, get "Weather M8" from Play Store. The MIUI weather is actually a cut-down version of M8. If using xMIUI, you can also change the weather info in the notification shade to use M8 instead of stock MIUI.
Encryption: Don't be afraid to enable encryption. The Helio X20 is a beast with it thanks to hardware-level AES (benchmarks better than top snapdragons!).
Whetstone removal: It was terribly broken in older MIUI, but in later 7.x.x versions it seems far better. If you remove it, there is no point to "lock" app in memory (with recents) anymore unless you want to keep whole app loaded as long as possible. You will still need to enable Autostart however (in Settings > Permissions) and this will keep app background services (e.g. Push Notifications) running in background, even when you clear memory in recents screen. In short - without Whetstone there's no need to "lock" an app in memory anymore, just enable Autostart.
Push Notifications sometimes not working? Even though you enabled Autostart for source app already? Disable Battery Saver - either globally (recommended) or for that app only via "Settings > Battery and Performance > Manage apps battery usage".
Automatic Brightness is horrible on this device. Try Velis Auto Brightness on Play Store - it looks horrid but works beautifully, once you tune it for your own use.
For better power-savings get 'ForceDoze' from the Play Store. This tweak pack does enable doze capability, but this app will enforce it and providessome fine tuning.
I'll add some more tips here if I remember or find anything I think is worth knowing.
IMPORTANT INFO FIRST for Systemless Root (all SuperSU) users:
If you use Systemless Root via SuperSU, or plan to, make sure you flash it BEFORE this tweak/patch pack. Installing CosmicTweaks after a fresh ROM flash but before SuperSU will result in a broken or missing busybox install!
I have had severe stability issues with Systemless root (SuperSU) and latest China Stable MIUI. Or it could of been a bug/incompatibility with Magisk v9 and Systemless Xposed for MIUI, not sure. If you get a bunch of FC's suddenly for no reason, or any other problems, please try going back to traditional superuser before complaining to me (use phh's superuser) as many apps and the MIUI system seem to have trouble understanding the complexity or being compatible with systemless mods. Right now I am using phh's and SolarWarez xposed and have had no problem.
If you are on Systemless root and you factory reset, be sure to re-flash your SuperSU followed by this ZIP (you should already know that systemless is located on userdata partition) because the systemless busybox is needed by the MIUI system.
If you want to use Unicon Xposed module, use phh's Superuser instead - incompatible with SuperSU.
THINGS I CANNOT CHANGE WITH THIS PATCH PACK:
China ROM App Store (Mi Market) cannot be removed from China ROM without modifying app/framework code, which requires full deodex (beyond the scope of this tweak pack). It also cannot be disabled/frozen, it will either re-enable itself or bootloop as if it's been removed.
China ROM Video and Game Center are kept, despite being Chinese, to prevent the system reporting "System Modification detected" security alert. You can manually disable/freeze these apps yourself with e.g. Titanium Backup.
ADDITIONAL PERFORMANCE RECOMMENDATIONS THAT I CANNOT INCLUDE:
Developer Options - Disable animations (the the three different scales) will frees almost 100MB RAM.
Developer Options - Memory optimization. Turn it to Middle or High tp enable zRAM (trade a little CPU to provide RAM compression. I strongly recommend it, the X20 can handle it). Note that this may also kill background apps prematurely if you still have Whetstone installed (and don't lock the app in memory with Recents).
LIST OF CURRENT FEATURES:
Code:
- boot.img changes:
- Disabled dm-verity (aka verified boot) in fstab, permits /system modification and probably improves read performance.
- Disabled forced userdata encryption in fstab, now optional. If you want to disable encryption, you need to do "Format Data" (not just swipe to wipe in TWRP, it's the second button) which will also erase internal storage.
- init.d support
- /cust partition changes:
- Completely wiped, it was all either unwanted Chinese stuff or was moved to system partition
- BusyBox installer/upgrader
- v1.25.1 build by YashdSaraf - http://forum.xda-developers.com/android/software-hacking/tool-busybox-flashable-archs-t3348543
- Any existing version of Busybox will be cleanly removed beforehand
- Systemless support
- init.d tweaks
- asusm930's Tweaks - "UPDATE 3.0 (C)"
- Set noop scheduler for internal storage only (better for faster storage)
- OOM/LMK tweaks (overcommit_ratio to 80%, less aggressive LMK = much better RAM utilization)
- Clear icon cache on boot (may be useful for Unicon or other themers)
- additional tools:
- Integrate ART Cache. Useful for deodexed ROM's and those using Xposed to reclaim some space on /data
- Enable insecure ADB On Boot, and an optional rootmode-hacked adbd I compiled myself. Useful for hackers and developers.
- /system changes:
- Disable OTA app ZIP validation (etc/device_features/nickel.xml)
- Remove everything in /system/data-app/ (Chinese stuff)
- Delete install-recovery.sh and recovery-from-boot.p
- Remove Chinese carrier app selection (install_app_filter.xml)
- Remove from system (optional):
- Disable MTK PerfService (May help battery life but also cause lag and gaming FPS issues)
- AMAPNetworkLocation (only exists on China ROM, must be removed for Google Location to work)
- AnalyticsCore; Xiaomi stats collection. Has a LOT of suspicious dataminer-like permissions. Already removed on EU
- AutoTest; MTK engineering and diagnostics app. Should be safe to remove
- SogouInput; Chinese IME (Keyboard). Check to let Google Keyboard be the default on China ROM.
- Whetstone; MIUI's memory manager. Buggy on some older versions. See CosmicTweaks thread for details.
- YellowPage; Only useful for China. EU ROM seems to have a custom/translated version so will only be default checked for removal on official ROM.
- Various Chinese-only services
- build.prop (non-optional):
- ro.product.locale=en-US
- ro.setupwizard.mode=OPTIONAL
- build.prop (optional)
- Camera quality tweaks; various improvements to camera image/video quality and capability
- Fast Dormancy; Improves battery life if carrier supports it. RELEVENCE UNCONFIRMED FOR MTK DEVICES (but won't hurt if not)
- Force 4G Disabled; fix deep sleep issue for users with 3G-only SIM cards
- Set Google location service as default; useful for China ROM
- Disable MIUI Optimization; it causes compatibility issues with many apps. You can manually re-enable in Developer options if you want it back
- Scrolling Tweaks; Smaller scrolling cache (saves memory) and fling velocity tweak
- /system additions (all are optional):
- Google apps:
- BookmarkProvider
- GoogleCalendarSyncAdapter
- GoogleContactsSyncAdapter
- GoogleTTS
- GoogleBackupTransport
- GoogleFeedback
- GoogleLoginService
- GoogleKeyboard
- GoogleOneTimeInitializer
- GooglePartnerSetup
- GoogleServicesFramework
- MusicFX (already exists in /apps, but Xiaomi.eu also has two MusicFX.apk... not sure if this is right)
- Phonesky (Google Play Store)
- PrebuiltGmsCore (Google Play Services)
- AOSP Provision (replace MIUI setup wizard, DOES NOT BYPASS ACTIVATION)
- vendor/overlay RRO:
- framework-res (includes all of these):
- Add Google's Location Provider
- Change NTP server to Europe
- Enable Doze, but using ForceDoze app still recommended
- Enable Network Location Overlay
- Disable unsafe media volume warning
- Quick Search Box
- Global-ize and English-ify (useful for China ROM)
CHANGELOG:
Code:
2017.05.05
- Tested with Xiami.eu 7.4.27 but should still work with all others
- New - 'Integrate ART Cache' tool
- New - 'Disable PerfService' and 'asusm930's Tweaks' options
- Change - Google Apps now optional, default-checked for official ROM's only
- Change - Quick Search Box RRO default-checked for official ROM's only
- Change - Update Whetstone description, now unchecked by default as it's not a broken mess like it used to be
- Remove - Google Feedback option (not actually useful, I was confused by ignorance on how system vs data app bug reports work)
2017.02.07
- New - Aroma Installer
- Made lots of existing features optional
- Add Insecure ADB On Boot option
- Probably more awesome stuff that I can't remember because I didn't take full notes
- New - QuickSearchBox translation/globalize overlay
- New - Init.d script - Clear icon cache every boot (useful for Unicon users... Unicon still only works sometimes sadly)
- Remove - MiRemote APK replacement (not very interesting, just keep the original firmware one)
- Remove - WallpaperCarousel APK replacement (as above)
- Remove - /cust wipe feature (no longer useful)
- Fix - Init.d scripts shouldn't block flow control
2016.11.26
- Initial release
- Based on China Stable 8.1.3.0
DOWNLOAD:
Please read all above info AT LEAST once!
Please see Post #2 for known problems/compatibilities and bug reporting guidelines!
Factory Reset should NOT be required, UNLESS you select the Google Apps option. Feel free to report any bugs resulting from dirty flashing as long as Google Apps were left alone.
Download flashable ZIP's from the GitHub releases page
Old Version (Not recommended):
v2016.11.26 @ Google Drive
CREDITS AND THANKS:
asusm930 for some useful tweaks
YashdSaraf for his BusyBox installer script
phhusson for his sepolicy-injector builds & scripts used in his Superuser (I used them as reference for injecting init.d support)
osm0sis for AnyKernel2, it's totally awesome
Xiaomi.eu ROM's and community for some tweak references and some translated/globalized resources
icons8.com for Aroma icons
Known Problems
If you want to report a bug, you MUST do the following first:
Ensure that the bug is not already reported (it will be listed in this post if so)
Make sure that the problem does NOT exist on the base ROM before installing this tweak/patch pack
PLEASE share a TWRP recovery log (Advanced > Copy Log) from when you installed the pack along with the Aroma install log. Many errors can be hidden and not reported to the display text.
Xiaomi.eu weekly
v2017.05.05 working OK on 7.4.27 (and probably later versions) - this is my personal setup
Others?
Assumed OK, please report any problems if not!
Hi !
I'm on the weekly version of xiaomi.eu 6.10.20.
Nobody tried yet ?
benda95280 said:
Hi !
I'm on the weekly version of xiaomi.eu 6.10.20.
Nobody tried yet ?
Click to expand...
Click to collapse
Make a TWRP backup and try
But that is quite an old version. I may only support latest Xiaomi.eu version (6.11.24)
Good...it is work in global stable 8.0.4.0 ?
Sent from my Redmi Note 4 using Tapatalk
I'm on the CN 8.1.3 and applied it without wiping data.
So far just one unusual reboot and a little lower Antutu value (74k vs. 79k before) but these values can change with air pressure and temperature
Thanks for that! I will try!
You tried to remove Mi Market and you get a boot loop right? How can you change the default application for market: links to Google Play Store? Thanks!
ale144101 said:
Good...it is work in global stable 8.0.4.0 ?
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
Thanks for the report!
_Derk_ said:
I'm on the CN 8.1.3 and applied it without wiping data.
So far just one unusual reboot and a little lower Antutu value (74k vs. 79k before) but these values can change with air pressure and temperature
Click to expand...
Click to collapse
That's very concerning, I've never had a random reboot! Let us know if it happens again....
Antutu score, hmm yeah... try clearing memory in Recents while Antutu is active (a good idea to clear memory manually for any heavy gaming) and see if you get a better score. Since I've removed Whetstone and tuned LMK, the ROM will perform much better with multitasking but could have a slight hit to foreground performance if you don't clear memory. Not sure, could just be fickle Antutu as you say
prismk said:
Thanks for that! I will try!
You tried to remove Mi Market and you get a boot loop right? How can you change the default application for market: links to Google Play Store? Thanks!
Click to expand...
Click to collapse
Yeah, I've even decompiled and inspected the framework (smali code) - in services.jar, Xiaomi has code that specifically and intentionally stops the system from booting if the MiuiSuperMarket APK is missing or modified. We will have to wait for global stable if we want to be free of it completely.
I have not had any issue with it opening the wrong market. Tapatalk asked me to Rate the app, and it asked me which Market to open. And another app had a Pro upgrade prompt, it opened Google market automatically. Maybe it only happens with some apps?
CosmicDan said:
Yeah, I've even decompiled and inspected the framework (smali code) - in services.jar, Xiaomi has code that specifically and intentionally stops the system from booting if the MiuiSuperMarket APK is missing or modified. We will have to wait for global stable if we want to be free of it completely.
I have not had any issue with it opening the wrong market. Tapatalk asked me to Rate the app, and it asked me which Market to open. And another app had a Pro upgrade prompt, it opened Google market automatically. Maybe it only happens with some apps?
Click to expand...
Click to collapse
Yeap, we will need to wait for a Xiaomi.eu Global
I tried to change default market to Google Market, but its no possible. So a clean permissions and defaults for Mi Market and when I open a market:/ link I was able to choose the default app for market:/ link
I tried your patch with China Global and I get error with Google Play Store:
Code:
java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission.
I tried to fix running this in a terminal:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
But it doesn't work. Return something like "could not access the package manager. is the system running". Im investigating this and I will try to fix today
OK so just FYI, I've discovered two bugs which I'm working on fixing:
1) If using phh's superuser, busybox is broken (bug in Busybox installer, already fixed at my end)
2) init.d support not working because I need to patch SELinux
So the init.d tweaks (not much, but still nice) are currently ineffective.
CosmicDan said:
OK so just FYI, I've discovered two bugs which I'm working on fixing:
1) If using phh's superuser, busybox is broken (bug in Busybox installer, already fixed at my end)
2) init.d support not working because I need to patch SELinux
So the init.d tweaks (not much, but still nice) are currently ineffective.
Click to expand...
Click to collapse
Yeap, I discovered the init.d problem too. I was trying to do
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
in init.d and I discover that isn't working
Maybe you can put this code in a github repository? So we can make PRs to upgrade the patches
Do you know why Im getting the ACCESS_FINE_LOCATION permission error?
good tweaks, battery usage is more better than stock miui
update this pack to xiaomi.eu stable rom, and first of thing is a battery usage is more better than with any other rom.
i not use the fingerprint sensor, and any other rom has stay in sense condition(when touch 2 times the display is turn on), but here is not working, i think it use less energy!
keep it up
good works
prismk said:
Yeap, we will need to wait for a Xiaomi.eu Global
I tried to change default market to Google Market, but its no possible. So a clean permissions and defaults for Mi Market and when I open a market:/ link I was able to choose the default app for market:/ link
I tried your patch with China Global and I get error with Google Play Store:
Code:
java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission.
I tried to fix running this in a terminal:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
But it doesn't work. Return something like "could not access the package manager. is the system running". Im investigating this and I will try to fix today
Click to expand...
Click to collapse
CosmicDan said:
WHAT IS THIS?
CosmicTweaks is my personal collection of changes and tweaks for MIUI. I made it for my own use on latest China stable (8.1.3.0) because I was tired of Xiaomi.eu's current weekly builds having too many problems, and global stable is currently old. Thought I'd package it up and share for others to enjoy. It is not a full ROM, but modifies existing ROM to act like a customized MIUI ROM.
Highlights:
In my experience, China 8.1.3.0 + this patch = smoothest, most stable, most capable MIUI experience yet for the Redmi Note 4
Designed for China Stable, but is based on AnyKernel2 scripts and should work on *any* MIUI 8 ROM for Redmi Note 4 as it patches the system and kernel and only replaces or adds files that are generic and universal
A tested and proven minimal set of tweaks, no fluff or nonsense
Not a full ROM but a patch, does NOT deodex the stock firmware
Adds Google apps and Services for Chinese ROM's (thanks to Xiaomi.eu for reference here), should be safe for any ROM
Completely documented list of changes so you can see exactly what you are getting (see list below)
Can manually customize it if you have a bit of know-how. A decent template for making a ROM mod pack. I encourage other aspiring modders to check out the bottom of anykernel.sh and the updater-binary script (it's not a binary) for how to make higher-quality, more generic mod/tweak packs.
About updates, license and future:
I am a busy guy, in fact I am preparing to join the army in next few months so please don't expect me to keep this updated and help everyone out. I will be around for a while, I may continue to make changes and additions to this in my spare time but I don't know how long I will even care about my Note 4 device, let alone modding in. If I do not reply to this thread for THREE MONTHS, I give permission for moderators to lock it and any other person on XDA can take over this work.
MY TIPS FOR MIUI:
Titanium Backup: Having trouble restoring apps? I found out that you need to (a) use phh's superuser (SuperSU broken, (b) Disable SELinux temporarily while restoring apps, and (c) Change restore method to INDIRECT. If you must use SuperSU, you will need to use the update.zip method of restoring apps - I couldn't find any other way.
Global icon packs via Unicon: If you want to apply Nova/Apex/etc Launcher icon packs on a global scale with Unicon Xposed module, you will need to clear the icon cache after applying icon theme. This can be done by either applying default/any theme in MIUI Themes app, OR manually delete the folder at /data/system/theme_magic/ and REBOOT IMMEDIATELY.
xMIUI Xposed Module: Highly recommended. It's not as extensive as GravityBox, but it's still got a lot. Another option is exMIUI, but it has nothing useful for me.
Broken Weather info: If using Chinese MIUI and you want working Weather, get "Weather M8" from Play Store. Literally the same as stock MIUI weather, but actually works (and has more features). Using xMIUI module, the notification pulldown weather display can be changed to show Weather M8 info.
Encryption: Don't be afraid to enable encryption. The Helio X20 is a beast at AES performance (uses hardware acceleration, benchmarks better than top snapdragons at AES) and I can vouch for it personally.
Whetstone removal: With this horrible feature gone, there is no point to "lock" app in memory (with recents) anymore unless you want to keep whole app loaded as long as possible. Instead, enabling Autostart (in Settings > Permissions) for it will make sure the app keeps any services (e.g. Push Notifications) running in background, even when you clear memory in recents screen! In other words, for background operations like Push Notifications, there is no need to lock whole app in memory anymore - just enable Autostart for it instead.
Push Notifications sometimes not working? Even though you enabled Autostart the source app already? Disable Battery Saver - either globally (recommended) or for that app only via "Settings > Battery and Performance > Manage apps battery usage".
Automatic Brightness is horrible on this device. Get Velis Auto Brightness on Play Store - it works beautifully, now that Whetstone is removed (didn't before) - just remember to enable Autostart for it.
I'll add some more tips here if I remember or find anything I think is worth knowing.
IMPORTANT INFO FIRST for Systemless Root (SuperSU) users:
If you use Systemless Root via SuperSU, or plan to, make sure you flash it BEFORE this tweak/patch pack. Installing CosmicTweaks after a fresh ROM flash but before SuperSU will result in a broken or missing busybox install!
I have had severe stability issues with Systemless root (SuperSU) and latest China Stable MIUI. Or it could of been a bug/incompatibility with Magisk v9 and Systemless Xposed for MIUI, not sure. If you get a bunch of FC's suddenly for no reason, or any other problems, please try going back to traditional superuser before complaining to me (use phh's superuser) as many apps and the MIUI system seem to have trouble understanding the complexity or being compatible with systemless mods. Right now I am using phh's and SolarWarez xposed and have had no problem.
If you are on Systemless root and you factory reset, be sure to re-flash your SuperSU followed by this ZIP (you should already know that systemless is located on userdata partition) because the systemless busybox is needed by the MIUI system.
THINGS I SADLY CANNOT CHANGE WITH THIS PATCH PACK:
App Store (Mi Market) cannot be removed from China ROM without modifying app/framework code, which requires full deodex (beyond the scope of this tweak pack). It also cannot be disabled/frozen, it will either re-enable itself or bootloop as if it's been removed.
Video and Game Center are kept, despite being Chinese, to prevent the system reporting "System Modification detected" security alert. You can manually disable/freeze these apps yourself with e.g. Titanium Backup.
ADDITIONAL PERFORMANCE RECOMMENDATIONS THAT I CANNOT INCLUDE:
Developer Options - Disable animations (the the three different scales). Frees almost 100MB RAM.
Developer Options - Memory optimization. Turn it to Middle or High tp enable zRAM (trade a little CPU to provide RAM compression. I strongly recommend it, the X20 can handle it). Whetstone service has been removed, so this setting will only change zRAM function - it will NOT affect background app count.
LIST OF CURRENT FEATURES:
Code:
- boot.img changes:
- Disabled dm-verity (aka verified boot) in fstab, permits /system modification and probably improves read performance.
- Disabled forced userdata encryption in fstab, now optional. If you want to disable encryption, you need to do "Format Data" (not just swipe to wipe in TWRP, it's the second button) which will also erase internal storage.
- init.d support
- /cust partition changes:
- Completely wiped, it was all either unwanted Chinese stuff or was moved to system partition
- BusyBox installer/upgrader
- v1.25.1 build by YashdSaraf - http://forum.xda-developers.com/android/software-hacking/tool-busybox-flashable-archs-t3348543
- Any existing version of Busybox will be cleanly removed beforehand
- Systemless support
- init.d tweaks
- Set noop scheduler for internal storage only (better for faster storage)
- OOM/LMK tweaks (overcommit_ratio to 80%, less aggressive LMK = much better RAM utilization)
- vendor/overlay RRO:
- Add Google's Location Provider
- Change NTP server to Europe
- Enable Doze
- Enable Network Location Overlay
- Disable unsafe media volume warning
- /system changes:
- Disable OTA app ZIP validation (etc/device_features/nickel.xml)
- Remove everything in /system/data-app/ (Chinese stuff)
- Delete install-recovery.sh and recovery-from-boot.p
- Remove Chinese carrier app selection (install_app_filter.xml)
- Removed apps:
- AnalyticsCore (Phone-home backdoor app)
- AutoTest (Engineering diagnostics)
- SogouInput (Chinese IME), replaced by Google Keyboard
- Whetstone. This is the built in "app killer". Even with memory optimization off and an app locked, Whetstone will STILL sometimes kill apps when there is plenty of free RAM.
- Various Chinese-only services
- build.prop:
- ro.product.locale=en-US
- ro.setupwizard.mode=OPTIONAL
- persist.sys.miui_optimization=false
- MIUI Optimization causes compatibility issues with many apps. You can manually re-enable in Developer options if you want it back.
- Disable scrolling cache and tweak fling speed
- Enable Fast Dormancy
- Camera quality and Media encoding/decoding tweaks
- Enable Google location services on boot
- /system additions:
- apps added:
- BookmarkProvider
- GoogleCalendarSyncAdapter
- GoogleContactsSyncAdapter
- GoogleTTS
- MiRemote (XMRemoteController) from Global 8.0.x firmware
- WallpaperCarousel (moved MiGalleryLockscreen from cust partition)
- priv-apps added:
- GoogleBackupTransport
- GoogleFeedback
- GoogleLoginService
- GoogleKeyboard
- GoogleOneTimeInitializer
- GooglePartnerSetup
- GoogleServicesFramework
- MusicFX (already exists in /apps, but Xiaomi.eu also has two MusicFX.apk... not sure if this is right)
- Phonesky (Google Play Store)
- PrebuiltGmsCore (Google Play Services)
- Some Google related etc's and framework's
- Add some missing fonts (not sure if they're important but meh)
CHANGELOG:
Code:
2016.11.26
- Initial release
DOWNLOAD:
Please read all above info AT LEAST once!
Please see Post #2 for known issues, bug reporting guidelines, and compatibility with different MIUI ROM's!
v2016.11.26 (Latest) @ Google Drive
CREDITS AND THANKS:
Xiaomi.eu ROM's for reference material
YashdSaraf for his BusyBox installer script
adrianom for his modded boot image, it was inspiration/motivation for me to try out a non-weekly ROM
Click to expand...
Click to collapse
prismk said:
Yeap, we will need to wait for a Xiaomi.eu Global
I tried to change default market to Google Market, but its no possible. So a clean permissions and defaults for Mi Market and when I open a market:/ link I was able to choose the default app for market:/ link
I tried your patch with China Global and I get error with Google Play Store:
Code:
java.lang.SecurityException: "passive" location provider requires ACCESS_FINE_LOCATION permission.
I tried to fix running this in a terminal:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
But it doesn't work. Return something like "could not access the package manager. is the system running". Im investigating this and I will try to fix today
Click to expand...
Click to collapse
I had this problem once but then never did again, not sure what causes it.
pm grant for this particular permission does not work, even with root this permission has been "locked" since marshmallow (can't be granted or revoked by pm command at all).
Did you flash this mod pack on a fresh ROM (clean data) or did you flash it after already booting before? I think if you wipe data it may solve it, but I'm not sure.
Sent from my Redmi Note 4 using Tapatalk
CosmicDan said:
I had this problem once but then never did again, not sure what causes it.
pm grant for this particular permission does not work, even with root this permission has been "locked" since marshmallow (can't be granted or revoked by pm command at all).
Did you flash this mod pack on a fresh ROM (clean data) or did you flash it after already booting before? I think if you wipe data it may solve it, but I'm not sure.
Sent from my Redmi Note 4 using Tapatalk
Click to expand...
Click to collapse
I flashed a clean MIUI China Stable, booted and flashed your tweaks. I will try wipe data and flash before boot the ROM
What you think about using a Github Repository for these tweaks? Can you update with busybox installer fix? Thanks!
prismk said:
I flashed a clean MIUI China Stable, booted and flashed your tweaks. I will try wipe data and flash before boot the ROM
What you think about using a Github Repository for these tweaks? Can you update with busybox installer fix? Thanks!
Click to expand...
Click to collapse
It's definitely a bug in AOSP (see this fix that exists in most custom ROM's) that requires Gapps only be installed on fresh, brand new systems - so a factory reset will be needed. I can't include this this fix in the patch since framework mods need a deodex, and I don't want to make a whole custom ROM.
Github repo done, you can download the latest HEAD and flash-away (has the busybox and init.d fixes already, but I won't do a release yet - still want to do more translations). https://github.com/cosmicdan/CosmicTweaks_HMNote4
CosmicDan said:
It's definitely a bug in AOSP (see this fix that exists in most custom ROM's) that requires Gapps only be installed on fresh, brand new systems - so a factory reset will be needed. I can't include this this fix in the patch since framework mods need a deodex, and I don't want to make a whole custom ROM.
Click to expand...
Click to collapse
So, I flash MIUI ROM and flash tweaks after that and I get a bootloop So I flash MIUI, booted, wipe Dalvik, cache and data and flash tweaks and it's working perfect
prismk said:
So, I flash MIUI ROM and flash tweaks after that and I get a bootloop So I flash MIUI, booted, wipe Dalvik, cache and data and flash tweaks and it's working perfect
Click to expand...
Click to collapse
But you will probably get FC's when you try to use Google Location....
...can anybody else confirm bootloop on clean flash in latest GitHub patch?
I will do a backup and wipe and try myself. Are you running "miui_HMNote4_V8.1.3.0.MBFCNDI_5a92469285_6.0.zip"?
I will make a seperate ZIP patch to enable insecure ADB from boot (so we can debug clean flash bootloops, and also incase anybody wants root-mode ADB access e.g. push files directly to /system). I need to download the MM source and compile a hacked adbd binary for this, so it could take a day or two.
CosmicDan said:
But you will probably get FC's when you try to use Google Location....
...can anybody else confirm bootloop on clean flash in latest GitHub patch?
I will do a backup and wipe and try myself. Are you running "miui_HMNote4_V8.1.3.0.MBFCNDI_5a92469285_6.0.zip"?
I will make a seperate ZIP patch to enable insecure ADB from boot (so we can debug clean flash bootloops, and also incase anybody wants root-mode ADB access e.g. push files directly to /system).
Click to expand...
Click to collapse
I don't get FC when I used Google Location and yes, Im running the same version of MIUI.
prismk said:
I don't get FC when I used Google Location and yes, Im running the same version of MIUI.
Click to expand...
Click to collapse
Well that just makes the GMS FC spam even MORE confusing! Wish I knew what caused it, as I said it only happened to me once.... *sigh* I sure don't miss being a professional Android OS engineer lol, this "sometimes it happens" stuff comes all too often!
Anyway, the intention is to still flash the patch on a clean system (because it erases all the preinstall stuff, and sets some default settings in framework overlay) so I will look into that issue. Just need to finish downloading the AOSP MM sources before I can continue debugging that.
Thank you. Going to try it after i get some more courage, because now i'm on stock MIUI 8.0.4.0 & locked bootloader.
From what i read, to unlock bootloader i need to flash China Dev Rom with SP Flash, and only after that i will be free to try any Roms.

[DEBLOAT] [OOS] [OP7 / 7Pro] Tomatot Debloater 1.2 (+++Battery, RAM, Privacy)

Hello guys,
Introduction
I'm the proud owner of a OnePlus 6. For many reasons, I don't plan to switch to one of its successor in the near future.
My debloater is quite popular and appreciated by the OP6 community and so I've decided to adapt it to make it fully compatible with the 7.
There are two things you need to know:
-Since I don't have the device, I can't try new stuff myself. Therefore, expect limited support for me.
-Overall, apps on the OP7 are almost the same. There are only a few new apps (and a few apps don't exist anymore)
-Regarding custom ROMs, you can always check my scripts available on the OP6 thread: ( https://forum.xda-developers.com/on...l-tomatot-debloater-basic-script-to-t3869427/ )
Note: the rest of this post is just a copy/paste from the original thread.
What can you expect from flashing my script?
I think my script is interesting because its utility is completely complementary with a custom ROM or kernel: what it does has nothing to do with the kernel, so it doesn't interfere at all. And it's concrete stuff, not some supposed-to-be optimization where you're not even sure it's going to do something. I'm usually not a huge fan of these apps / modules.
-You'll get more privacy: I've removed Qualcomm telemetry, OnePlus telemetry as well as some Google Telemetry (but you can't expect too much as long as you use gapps)
-You'll get better battery life: less apps running in the background, less wakelocks, less services communicating with servers to send telemetry.
-You'll get better performance: for the same reasons. Don't expect a huge difference as our phone is very smooth already.
-The feeling of having a clean device. And this has no price.
As a proof, see this (both screenshots were taken after a fresh boot):
Extreme script: https://i.imgur.com/2O47su8.jpg 19 system apps running, for a total of of 31 services running. I'm not counting Google Play services as the number of services running keep changing.
No script: https://i.imgur.com/E5cEr7P.jpg 36 apps running, for a total of 60 services running! I find the difference quite huge.
What does it do?
The point is to be very very basic. Obviously I don't intend to to share something as powerful and exhaustive as xXx. My objective is to only focus on bloatwares, not features.
Also, I wanted to make a script simple enough so anybody can use it, understand it and modify it depending on your needs.
I think I can call myself a flasholoic, as I flash ROMs quite often, even when I'm happy with the current one. There are many time consuming and boring tasks when it comes to clean flash a new ROM. However, for most of them, there's a solution. For example, Titanium Backup, to mention just one.
With this script, you'll be able to skip the very boring process of removing/freezing all the system apps you don't use.
You can use this script with no worries whenever you flash your new ROM.
Why don't i Freeze apps instead of removing them?
Ideally, I would prefer to only freeze apps so the setup can stick after an update or a dirty flash, however, I don't know how to do it from recovery. Freezing works with the command from package manager "pm disable {package_name}", however, it's only available when the phone is running.
What version should I install?
-Invisible script: Install it, enjoy. I basically removed only apps related to telemetry or that don't have any function. You should still have all the apps you're using and all the features you like.
-Light Script: Invisible + apps that I consider rarely use (because they're useless or because alternatives are much popular). It should fit to 80% people without any change to make.
-Extreme script: Invisible + light + a few Google Apps (most of them can be reinstalled) and features that are not absolutely necessary but useful for some people, like face unlock for example. I wouldn't recommend it to anyone who hasn't check the .txt file first. The light script is almost as good anyway.
Where can I get more info?
Check the .txt file in the download section. It lists all the apps included in the different scripts AND all the apps not included (so you can see what apps you want to potentially add, it's much easier to work like that)
How are the apps sorted in the .txt file?
-First, by categories (each category starting with #) (invisible, light, extreme, etc.)
-Then, they're sorted by their type (reserve / app / priv-app / other)
-Then, simply by alphabetic order.
-At the end of the document file, there are some explanations about some apps that can sound... mysterious about whether it's safe or not to delete them.
How to Install?
Simply reboot to TWRP, flash the zip, reboot and enjoy.
If this doesn't work, you can try three different things:
-Try to mount system in recovery before flashing my .zip.
-Try to install Magisk and this module: https://github.com/Magisk-Modules-Repo/busybox-ndk
-Try to install the script on both slots
At least one of these options should fix things for you.
Known incompatibilities
-If the script doesn't do anything, check installing instructions.
-If an app keeps force closing when you try to open it (for example the Google app, gmail, amazon, etc.), it's because you don't have any webview selected. You can select one in the developer settings and if you don't have any you can install one from the play store (Android System Webview).
-If some apps are remaining, it's because it's system apps you updated and they became user apps. You can just uninstall them like any other user apps and it will completely disappear.
-If an app that is included in the script freezes, but it's also available in the playstore, uninstall it with Titanium Backup, reboot and reinstall the app from play store.
-If you're using substratum, you must edit my script and remove this line: "/system/system/app/OpSkin",
-If your bank app doesn't work, you can try to add back Stk (sim toolkit), as the app helps for authentication.
-In general, search this thread if you want more details / understand why.
F.A.Q.
-I don't want to use this debloater anymore or it broke something I miss, how can I go back to normal?
=> Dirty flash your current setup (ROM, twrp, reboot to twrp, magisk, kernel, anything else you want)
-Does this script work for X or Y ROM? Can you make a debloater for X or Y ROM?
=> If you understand how my tool work, then you will understand that my scripts can potentially work on any ROMs, but each ROM has its specific apps so some bloatware won't be removed, most likely. I won't support any new ROM except if I end up trying it myself. I prefer to avoid to create new scripts blindly especially if I've never experienced the ROM.
-I flashed your deblaoter and now some apps keep force closing
=> "If an app keeps force closing when you try to open it (for example the Google app, gmail, amazon, etc.), it's because you don't have any webview selected. You can select one in the developer settings and if you don't have any you can install one from the play store (Android System Webview)."
How to edit the script and make it work? (TUTORIAL)
Prerequisites
-Root (ideal but not mandatory)
-File manager (ideal but not mandatory, I recommend Amaze https://play.google.com/store/apps/details?id=com.amaze.filemanager&hl=en_AU )
-TWRP
Then you have two alternatives
a) Use your computer (Windows): you will need Zip Builder https://forum.xda-developers.com/an...g/tool-zip-builder-v4-2-1-build-sign-t3739556
b) Use your phone: then you will need MiXplorer ( https://forum.xda-developers.com/showthread.php?t=1523691 )
Steps to follow
1) Download my script.
2) Unzip it. Browse to META-INFcomgoogleandroid and open "updater-script" in a notepad. (I'd recommend you notepad++ ( https://notepad-plus-plus.org/download/ )
3) Add some apps you want to delete, or remove the apps you want to keep. To see what apps are on your device, use a file manager that can use root and check the apps you have in /system/app and system/priv-app. The priv-app are usually more sensitive so be cautious with them.
4) Don't forget that on every line, you need a comma at the end, except for the last app of the list.
5) You don't need to touch any other lines, except if you want to have fun and change what TWRP will display: it's the lines with
Code:
ui_print("")
6) Save your file.
7) a) Windows alternative. Follow instructions to install properly Zip Builder. Then shift + right click on the parent folder of the META-INF folder and click on "Build Zip...". If Zip Builder is set up properly, you will see the option I just mentioned. You can also open the program and browse to the parent folder where META-INF is.
Copy the .zip to your phone and you're good to go!
7) b) Android alternative: Install MiXplorer. Long press on the META-INF folder. Confirm the creation of the archive, pick the name you want and make sure that "store" is selected, below "zip". Then select the newly created zip, and click on the "Sign" option. Choose Testkey. It will create yourzip-signed.zip. That's the file you need to flash in TWRP.
8) Flash in TWRP
Let me know if you need any help or if something is not clear to you.
Downloads, risks, credits
Where to download?
Check the attachments!
What are the risks, or why is it actually pretty safe to use it?
1) If you use my scripts, as I've tried all builds, I can assure you in the worst scenario you will loose a few features you might have wanted to keep.
2) If you try to make your own script:
a) You misspell a system folder: (it's case sensitive, careful): well the script will just ignore it and try to remove a folder which doesn't exist, so no consequence at all, just a useless line in your script.
b) you mess up with how you're meant to write the script: for example, you forget a comma or you leave it on the line of the last app you want to delete. Well, no worries, TWRP will just not flash the script so nothing happens. Just check your code to find the mistake.
c) Your script is fine but delete a core app that the system needs. Again, no worries! You will bootloop. In this case, you need to dirty flash your current setup (for example, flash OOS, flash TWRP, reboot to recovery, flash Magisk, flash your favorite kernel, reboot). Then you can try to find the culprit in your code, remove it, and try again your script.
Just in case, you know the XDA saying: "flash at your own risk!"
Credits!
First of all, I'd like to credit @Primokorn for his tutorial which helped me a lot. Basically everything in my script I owe him. I've just made it even more simple and focused on only debloating. Also, and obviously, it's adapted for our OnePlus 6. Right now, it's optimized for OOS 9.0.3, but depending on how the project evolves and how popular it will get, I could make "special editions" for open betas as well as AOSP ROMs.
I would also like to thank @TKruzze for his amazing tool "Zip Builder", which makes me save a lot of time everytime I want to try / build a new script.
Thanks to @Zios01 for inspiring me about "optimizing" OOS.
Thanks to @xXx for always being available to help me.
XDA:DevDB Information
Tomatot Debloater, Tool/Utility for the OnePlus 7 Pro
Contributors
Tomatot-
Version Information
Status: Stable
Created 2019-05-28
Last Updated 2019-07-17
Changelog
Tomatot Debloater 1.2
- LiveWallpapersPicker moved to the extreme script
- OPLiveWallpaper moved to the extreme script
Tomatot Debloater 1.1
-All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
-Added OPWidget, it seems to be a new app added by OP
-Added Backup in the light script.
-Added OPBreathMode to the extreme script (Zen mode).
Tomatot Debloater 1.0
-Mostly the same as the Tomatot Debloater 3.2 for the OP6 ( https://forum.xda-developers.com/on...ol-tomatot-debloater-basic-script-to-t3869427 )
-Removed the OP6 apps that don't exist on the OP7
-Added a few new apps that seem uselesss. Since I can't test myself, I'm not sure of their usefulness and that's why I added them in the extreme script:
Netflix_Activation (invisible)
Netflix_Stub (invisible)
OPScreenRecord (extreme)
OPSoundTuner (extreme)
Qmmi (extreme)
daxService (extreme)
TSDM (extreme)
Sorry for this long post, but I'd like to try it so my thread gets referenced by Google in case people using other devices wonder if they can remove some apps or not.
### List of systems apps SORTED & EXPLAINED 4.1
### Invisible
"/system/system/app/AntHalService",
"/system/system/app/AutoRegistration",
"/system/system/app/BasicDreams",
"/system/system/app/BookmarkProvider",
"/system/system/app/BTtestmode",
"/system/system/app/BuiltInPrintService",
"/system/system/app/card",
"/system/system/app/CtsShimPrebuilt",
"/system/system/app/EasterEgg_O2",
"/system/system/app/EngineeringMode",
"/system/system/app/EngSpecialTest",
"/system/system/app/GooglePrintRecommendationService",
"/system/system/app/GoogleTTS",
"/system/system/app/LogKitSdService",
"/system/system/app/NFCTestMode",
"/system/system/app/OEMLogKit",
"/system/system/app/oem_tcma",
"/system/system/app/OPBugReportLite",
"/system/system/app/OPCommonLogTool",
"/system/system/app/OPLiveWallpaper",
"/system/system/app/OPPush",
"/system/system/app/PartnerBookmarksProvider",
"/system/system/app/PhotosOnline",
"/system/system/app/PlayAutoInstallConfig",
"/system/system/app/RFTuner",
"/system/system/app/SensorTestTool",
"/system/system/app/SoterService",
"/system/system/app/Stk",
"/system/system/app/SeempService",
"/system/system/app/talkback",
"/system/system/app/Traceur",
"/system/system/app/WallpaperBackup",
"/system/system/app/WapiCertManage",
"/system/system/app/WifiRfTestApk",
"/system/system/priv-app/CtsShimPrivPrebuilt",
"/system/system/priv-app/OPCellBroadcastReceiver",
"/system/system/priv-app/TagGoogle",
"/system/system/product/app/uimremoteclient",
"/system/system/product/priv-app/GoogleFeedback",
"/system/system/etc/usb_drivers.iso",
"/vendor/etc/apps",
### Light
"/system/system/app/ARCore_stub",
"/system/system/app/BackupRestoreRemoteService",
"/system/system/app/DiracManager",
"/system/system/app/GooglePay",
"/system/system/app/HTMLViewer",
"/system/system/app/NVBackupUI",
"/system/system/app/OPScreenRecord",
"/system/system/priv-app/BackupRestoreConfirmation",
"/system/system/priv-app/CallLogBackup",
"/system/system/priv-app/DiracAudioControlService",
"/system/system/priv-app/ManagedProvisioning",
"/system/system/priv-app/OnePlusWizard",
"/system/system/priv-app/OPDeviceManager",
"/system/system/priv-app/OPDeviceManagerProvider",
"/system/system/priv-app/SharedStorageBackup",
"/system/system/product/app/Account",
"/system/system/product/app/atfwd",
"/system/system/product/app/CalendarGoogle",
"/system/system/product/app/Chrome",
"/system/system/product/app/Drive",
"/system/system/product/app/Duo",
"/system/system/product/app/Gmail2",
"/system/system/product/app/GoogleTTS",
"/system/system/product/app/Music2",
"/system/system/product/app/PhotoTable",
"/system/system/product/app/QdcmFF",
"/system/system/product/app/talkback",
"/system/system/product/app/Videos",
"/system/system/product/app/YouTube",
"/system/system/product/priv-app/AndroidAutoStub",
"/system/system/product/priv-app/GoogleOneTimeInitializer",
"/system/system/product/priv-app/SetupWizard",
"/system/system/product/priv-app/Turbo",
"/data/india/india.img",
"/system/system/india",
### EXTREME
"/system/system/app/Backup",
"/system/system/app/BackupRestoreRemoteService",
"/system/system/app/BluetoothMidiService",
"/system/system/app/BookmarkProvider",
"/system/system/app/LiveWallpapersPicker",
"/system/system/app/OPBackup",
"/system/system/app/OPBreathMode",
"/system/system/app/OPSafe",
"/system/system/app/OPYellowpage",
"/system/system/app/WAPPushManager",
"/system/system/priv-app/EmergencyInfo",
"/system/system/priv-app/HotwordEnrollmentOKGoogleWCD9340",
"/system/system/priv-app/HotwordEnrollmentXGoogleWCD9340",
"/system/system/priv-app/IFAAService",
"/system/system/priv-app/MusicFX",
"/system/system/priv-app/OnePlusGallery",
"/system/system/priv-app/OPAod",
"/system/system/priv-app/OPFaceUnlock",
"/system/system/priv-app/ProxyHandler",
"/system/system/priv-app/VpnDialogs",
"/system/system/product/app/datastatusnotification",
"/system/system/product/app/GoogleContactsSyncAdapter",
"/system/system/product/app/GoogleLocationHistory",
"/system/system/product/app/Maps",
"/system/system/product/app/Photos",
"/system/system/product/app/remoteSimLockAuthentication",
"/system/system/product/app/remotesimlockservice",
"/system/system/product/app/WebViewGoogle",
"/system/system/product/priv-app/OPAppLocker",
"/system/system/product/priv-app/Turbo",
"/system/system/product/priv-app/Velvet",
"/system/system/product/priv-app/WallpaperCropper",
"/system/system/product/priv-app/Wellbeing",
#____
# Some explanation
# Chrome = removed from the extreme script as it leads to Android having trouble properly selecting a working webview.
# CarrierConfig = allow to pick "preferred network type" properly, so not recommended to remove it.
# CNEService = necessary in order to make VoWIFI work. Don't delete it if you're in the US and using it. I don't know
# datastatusnotification = allows to cap data when you've reached the limit of your plan
# DeskClock = clock app (not only widget, so don't delete except if you use another clock app)
# DiracManager = some audio manager that seems useless
# EmergencyInfo = could break double tap power button to launch camera, as well as being the app necessary to setup emergency info (obviously)
# GoogleTTS = Text to Speech, it's for disabled persons. I'm sorry if you need it but unfortunately it's useless for a majority of people.
# HotwordEnrollmentXGoogleWCD9340 = makes OK Google work.
# ManagedProvisioning = Work Profile Setup apk. It's useless for most people. Obviously don't delete it if your company gave you this phone, but then you shouldn't flash it in the first place!
# ModuleMetadataGooglePrebuilt = allow to show advanced permissions
# NVBackupUI = OnePlus Backup solution. goes with OPBackup
# OPAod = ambient display
# OPAppCategoryProvider = make battery stats work properly
# OPBackup = system updater
# OPCellBroadcastReceiver = so you get alerts when there's a big issue like a natural disaster...
# ...I've never seen it in action and I think most countries don't have it. It could be important to you so be careful.
# OPOnlineConfig = DONT REMOVE IT or you won't be able to boot.
# OPSafe = it allows to see data usage in settings
# OPSimContacts = breaks partially OP dialer if removed
# OpSkin = apparently necessary for substratum
# OsuLogin = hotspot
# QdcmFF = some Qualcomm software to make the screen better. I don't think it's used on the OP6 and it would probably make colors less accurate.
# Phonesky = Play Store
# PrintSpooler = if removed, break settings (bluetooth/connection preferences)
# PlayAutoInstallConfig = basically allows the OEM or the carrier to download application behind your back, great feature
# SdCardService = needed for file managers
# SeempService = solution from Qualomm meant to possibly fight against Malware... Don't trust it.
# SharedStorageBackup, not sure, probably related to Google Backup, caution with this one. Couldn't find any good explanation anywhere.
# Stk can be necessary for some banking apps (northern Europe apparently)
# Tags = NFC Tags (it's not used by 99,9% of the population)
# Turbo = device health services
# uimremoteclient qualcomm bull****
# usb_drivers.iso = when you plug your phone to your PC, it shows the phone as a CDROM so you can install drivers. Should be useless if you already have TWRP.
# TeleService = necessary to detect the sim with a few network providers
# Velvet = Google app
# WebViewStub = not necessary with chrome webview
# WfdService = Wifi Direct
# YouTube apparently doesn't stop YouTube Vanced to work
# GoogleOneTimeInitializer + OnePlusWizard + SetupWizard : to delete only after setting up the device
# /vendor/etc/apps : folder full junks.
@Tomatot-
Tnx a lot
Awesome! I was hoping you would release an op7 version
Is it possible flash this using EXKM? I have little need for twrp right now
Edit: No I cant. Is there any other way than twrp?
Edit2: nvm I just used twrp..
Guys... What version of debloater recommend?
Enviado desde mi GM1913 mediante Tapatalk
liver20 said:
Guys... What version of debloater recommend?
Enviado desde mi GM1913 mediante Tapatalk
Click to expand...
Click to collapse
Read first post it's explained in a few words.
If you want more details check the .txt file.
If you don't want to make efforts just flash the invisible script you shouldn't have bad surprises!
FYI after flashing I cannot select ambient display in settings...
skj8100 said:
FYI after flashing I cannot select ambient display in settings...
Click to expand...
Click to collapse
If you have flashed the extreme script, it should be expected. I follow many "features" of OOS. Simply because they're not necessary and are not used by the majority.
You should then use the light or invisible script. With the latter one, you should not lose any feature.
Tomatot- said:
If you have flashed the extreme script, it should be expected. I follow many "features" of OOS. Simply because they're not necessary and are not used by the majority.
You should then use the light or invisible script. With the latter one, you should not lose any feature.
Click to expand...
Click to collapse
So just reflash light or are there other procedures? Ty btw
skj8100 said:
So just reflash light or are there other procedures? Ty btw
Click to expand...
Click to collapse
You need to dirty flash your setup (OOS / TWRP / reboot twrp / magisk / (kernel) / light or invisible debloater
Tomatot- said:
You need to dirty flash your setup (OOS / TWRP / reboot twrp / magisk / (kernel) / light or invisible debloater
Click to expand...
Click to collapse
K can confirm all working again with light version after following your steps. Ty
Tomatot- said:
[Updates]
The thread is now ready and the download links as well.
Don't hesitate to report how things go, I'm particularly curious about the new apps I've removed that weren't on the OP6.
Also, so far, I don't know what these apps do:
# colorservice = ???
# OPBreathMode = ???
# RemoteSimLockAuthentication = ???
# uceShimService = ???
# workloadclassifier = ???
Sometimes the system displays them in a more "friendly" way. With Titanium Backup for example you can see how the system displays their name. Sometimes their icons can help too.
Click to expand...
Click to collapse
OPBreathMode = Zen Mode
I just flashed the extreme script and I am in love with changes, but little did I realize the amount of stuff I would be missing out on. My favorite apps such as Kindle, Tachiyomi, Article Reader, Blue mail, Binance, Block folio, Sketchfab, Oculus, Linked In, Behance,Art station, Sync Pro, Talon Pro,Chase, Robin hood, M1 Finance , Stock Market Simulator and Full dive VR. I dirty flashed OOS, but this time I will definitely debloat using the light + invisible script. The OTA option is broken, but i guess that's expected. Thanks for sharing a great tool
Sent from my GM1917 using Tapatalk
Hentai_expert said:
I just flashed the extreme script and I am in love with changes, but little did I realize the amount of stuff I would be missing out on. My favorite apps such as Kindle, Tachiyomi, Article Reader, Blue mail, Binance, Block folio, Sketchfab, Oculus, Linked In, Behance,Art station, Sync Pro, Talon Pro,Chase, Robin hood, M1 Finance , Stock Market Simulator and Full dive VR. I dirty flashed OOS, but this time I will definitely debloat using the light + invisible script. The OTA option is broken, but i guess that's expected. Thanks for sharing a great tool
Sent from my GM1917 using Tapatalk
Click to expand...
Click to collapse
You just need to install/update android system webview and pick it from developer settings and your apps will work properly, if that's what you meant.
Yes I expect people flashing my script to have a custom twrp, magisk etc. So they can't do OTA anyway, that's why I removed the updater.
Thanks for your feedback
Tomatot Debloater 1.1
-All apps in /reserve are now deleted in the invisible script. If new apps are added by OP, they'll be automatically deleted as I added the whole folder (you can check the script to understand). Thanks to @nirogu325 for the idea!
-Added OPWidget, it seems to be a new app added by OP
-Added Backup in the light script.
-Added OPBreathMode to the extreme script (Zen mode).
Thanks to @xXx for keeping me informed about latest OP bloat.
Tomatot- said:
You just need to install/update android system webview and pick it from developer settings and your apps will work properly, if that's what you meant.
Yes I expect people flashing my script to have a custom twrp, magisk etc. So they can't do OTA anyway, that's why I removed the updater.
Thanks for your feedback
Click to expand...
Click to collapse
Bro that's insane. I flashed the extreme script again and updated my web view to beta-- everything works. Thanks man. I can finally enjoy my most favorite app Tachiyomi.
Sent from my GM1917 using Tapatalk
Hentai_expert said:
Bro that's insane. I flashed the extreme script again and updated my web view to beta-- everything works. Thanks man. I can finally enjoy my most favorite app Tachiyomi.
Sent from my GM1917 using Tapatalk
Click to expand...
Click to collapse
What happened to you got reported a million of times on my original thread so I know how to deal with it
It's mentioned in OP but w/e, you're the first one on this thread so it's fine.
Appreciate you moving and updating your tool for 7 pro. Been using it since OP6 and now to OP7Pro
Hope you continue updating it as long as possible.
Thanks

Categories

Resources