[MODS][UNLOCKED BL][AROMA][GITHUB] CosmicTweaks v2017.05.05 - Xiaomi Redmi Note 4 [Mediatek] ROMs, Kernels, Reco

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.

Related

[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.

PIXELize your S8/S8+ and debloat

This is for those who does not really want all the fancy features that are present in Stock Touchwiz ROM and prefer to only have what is on Stock Android or Pixel-like experience.
All credits goes to the creator of each mod involved.
Requirements:
- Custom recovery like TWRP
- Rooted Phone (SuperSU / Magisk)
- File Manager with Root Access. I use Root Explorer
- OpenGApps (arm64,7.0) (package: stock/super/aroma) - This will enable some Nexus/Pixel exclusive features and install Google Apps that are preloaded on Nexus/Pixel Devices including apps that usually can't be installed as normal apk such as below:
- Google Phone
- Google Contacts
- Google Camera (Slow Motion isn't working)
- Google Now Card (swipe to right)
- Google Search Pill
- "OK Google" voice detection
Instructions:
* First thing to do is to flash OpenGApps via TWRP
Link: http://opengapps.org
* Install a navbar overlay from below thread to get Stock Android (AOSP) NavBar or Pixel NavBar. Install it as normal apk.
Link: https://forum.xda-developers.com/galaxy-s8+/themes/substratum-inversion-ui-overlay-overlays-t3604341
* Replace the stock Pixel Launcher (located at '/root/system/priv-app/NexusLauncherPrebuilt/NexusLauncherPrebuilt.apk') with this modded Launcher (link below). This launcher is basically the same as the stock Pixel Launcher with enabled features like round icons for app that supports it. More information on the original thread.
Link: https://forum.xda-developers.com/android/apps-games/launcher3-pixel-launcher-features-t3620972
* Below are some apps i'm using that are supported:
- Google Photos
- Google Play Music
- Google Drive
- Google Calendar
- Google Calculator
- Google Keep
- Google News&Weather
- Google Playstore
- Google Drive
- Google Calendar
- Youtube
- Gmail
- XDA Labs
- XDA Feed
- Twitter
And now that you got all that is required to have a Pixel-like UI / Experience, it's time to make your ROM lightweight.
* Create a folder in your Internal Storage or SD Card named "system" and inside it, create folders "app" and "priv-app". This is to make sure that you can always revert back the changes that you'll make.
* Open your File Manager with root access and navigate to "root/system/app" or "root/system/priv-app"
This is where you can find all the installed apps in your system. In my case, what i do is "cut and paste" the whole folder to Internal Storage and then reboot to remove the bloat that i don't need.
I am currently on Renovate Ice ROM - r98 build (AQF7 FIRMWARE) and below is the list of what i have removed.
[system/app]
AAAService
AdvSoundDetector2015
AllShareFile
AllShareMediaShare
ANTPlusTesy
ApexServicr
apps_brasil_signed_aligned
BasicDreams
BeamService
BookmarkProvider
CarmodeStub
ChocoEUKor
ChromeCustomizations
ClockPackage_N
CloudPrint2
CocktailQuickTool
CoolEUKor
DictDiotek_update
EasymodeContactsWidget81
FBAppManager_NS
FlipboardBriefing
InteractivePanoramaViewer_WQHD
MirrorLink
MotionPanoramaViewer
My_Singtel_4.4_com.singtel.mysingtel
MyGalaxy
NaverV_N
Panorama360Viewer
papergarden
RoseEUKor
SamsungCalendar_Stable_4012
SamsungConcierge_stub
Samsungconnect
SamsungIMEv5
SamsungPayStub
SecCalculator_N_R
SelfMotionPanoramaViewer
shahid
ShareLink_2017
SLocation
SlowMotion_Dream_N
SmartcardService
SmartClipEdgeService
SmartMirroring
SmartReminder
SmartSwitchAgent
SPdfNote
SPrintSpooler7
STalkback
StoryEditor_Dream_N
ubank_samsung
UserManual
Videos
VideoTrimmer_Dream
VirtualTour_N_OS
VisionIntelligence
Weather2017
WeatherWidget2017
WebManual
yandex.search
[system/priv-app]
AODService_v25
AppLock
AppsEdgePanel_v3
BeaconManager
CocktailBarService_v3
ColorBlind_N
Crane
DayLite
EasySetup
FBInstaller_NS
GalaxyAppsWidget_Phone_Dream
Gear360Editor_WQHD_Dream
HealthService
Ignite-Singtel_1.7.306_releaseProduction
KnoxDesktopLauncher
LedCoverAppDream
LedCoverService
Messaging_SEP81
NFusedLocation_v3.0_DREAM
OMCAgent
PeopleStripe
PersonalPageService
PreloadInstaller
RiCE
RNB
RNBShell
SamsungAccount_Dream
SamsungCloudDreamNewIcon
SamsungContacts81
SamsunGInCallUI
SamsungMagnifier3
SamsungThemes
SamsungVideoPlayer2016
SecGallery2015
SEMFactoryApp
SmartcardManager
SmartManager_v5
SmartManager_v5_DeviceSecurity
SMusicPicker
SNS_v2_N
SoundAlive_51
SPPPushClient_Prod
SVoicePLM
TaskEdgePanel
ThemeCenter
TouchWizHome_2017
UnifiedProfile
Upday
VisionCloudAgent
VoiceServiceFramework
VoiceWakeup
VRSetupWizardStub
I am not getting any Force Closes / Crashes / Errors. Just make sure to reboot your device after cutting and pasting system apps to your Internal Storage.
When you realized that you needed something back, just copy and paste the whole folder to where you got them and set the correct permission.
For the folder, set the permission to "rwxr-xr-x".
For the apk inside, set the permission to "rw-r-r".
then reboot your device.
If you want to have an updated google apps as soon as it becomes available, you may download latest apks at apkmirror website then replace existing apk in the system, set the correct permission, and reboot. I've done it to almost all google apps without any issue.
I will try to update this thread to include all apps that can be removed based on stock firmware that's freshly installed.
*Screenshots provided on post#3*
reserved
Screenshots
Sweet! Could you please provide the applock apk. Thanks
Sent from my SM-G950F using Tapatalk
Sweet, I've actually a similar setup, except I'm just freezing apps and didn't bother flashing Gapps.
Also I'd recommend modifying key layout and use ASSIST for the key function. Having Google assistant on bixby button is dope !
@MarkerBeanXDA
If you delete Device Manager you can't access your battery stats.
iamnotkurtcobain said:
@MarkerBeanXDA
If you delete Device Manager you can't access your battery stats.
Click to expand...
Click to collapse
Yes. I am aware of that but i don't really need it as i am having a great battery life and performace. Also, it can easily be installed back in less than a minute if i want to.
MarkerBeanXDA said:
Yes. I am aware of that but i don't really need it as i am having a great battery life and performace. Also, it can easily be installed back in less than a minute if i want to.
Click to expand...
Click to collapse
I am Stock but rooted ROM, tried to flash Super GAPPS but its failed throwing ERROR 70 telling that GAPPS are already installed but in fact I haven't. Is this could be limitation due to STOCK ROM?
asif4self said:
I am Stock but rooted ROM, tried to flash Super GAPPS but its failed throwing ERROR 70 telling that GAPPS are already installed but in fact I haven't. Is this could be limitation due to STOCK ROM?
Click to expand...
Click to collapse
I am always getting that message even with custom roms but it always proceed anyway. I also have tried flashing gapps on stock rooted rom successfully before on my S8. Maybe your gapps is corrupt or not fully downloaded.
MarkerBeanXDA said:
I am always getting that message even with custom roms but it always proceed anyway. I also have tried flashing gapps on stock rooted rom successfully before on my S8. Maybe your gapps is corrupt or not fully downloaded.
Click to expand...
Click to collapse
Ok, thanx for the reply, i'll try downloading again and flash, regards
---------- Post added at 05:33 PM ---------- Previous post was at 05:18 PM ----------
asif4self said:
Ok, thanx for the reply, i'll try downloading again and flash, regards
Click to expand...
Click to collapse
I have tried again flashing newly downloaded gapps file but again same error. The message thrown is "insufficient storage space available in system partition. You may want to use a smaller Open GApps package or consider removing some apps using gapps-config."
iamnotkurtcobain said:
@MarkerBeanXDA
If you delete Device Manager you can't access your battery stats.
Click to expand...
Click to collapse
You can. Download shortcutter, grant it necessary permissions. Add a battery tile from shortcutter to the quick settings and anytime you click on it, it takes you to the battery stats. I have also disabled device manager.
Sent from my SM-G950F using Tapatalk
asif4self said:
I have tried again flashing newly downloaded gapps file but again same error. The message thrown is "insufficient storage space available in system partition. You may want to use a smaller Open GApps package or consider removing some apps using gapps-config."
Click to expand...
Click to collapse
I got the "stock" gapps package and can confirm that it works on stock rooted rom.

Cubot Cheetah 2 Nougat aroma

Aroma installer for Cubot Cheetah 2
In-offical Anroid 8.1 Oreo https://forum.xda-developers.com/showpost.php?p=78534219&postcount=12
Click to expand...
Click to collapse
v19 aroma (Android 7) aroma:
http://www.mediafire.com/?1d2thhx6iw46315/ Cubot+Cheetah+2+Nougat+v19+toBsucht+Aroma+2.2.zip
v19 stock https://www.cubot.net/support/firmware/cheetah2/cubot-cheetah2-v19-20180904.html
Patched boot.img (magisk) https://forum.xda-developers.com/attachment.php?attachmentid=4300517
v8 or v14 aroma (Android 6 or 7):
v14 mfi.re/?7xyfwsdnit7ldm6/
https://forum.xda-developers.com/ge...bot-cheetah2-information-reviews-5-5-t3509666
v08 Marshmallow
*if you only install additional apps you can use v19 aroma to get latest version of them
All aroma versions can be started with TWRP or similar. Only install proper system files if needed. Wipe not needed.
It´s made to install usefull apps like xposed or for recover system. It is not to get root or TWRP.
Just flash via twrp and choose needed app. If your system is working skip system files!!!
To install xposed first flash
android 7 sdk 24 // http://dl-xda.xposed.info/framework/sdk24/arm64/xposed-v89-sdk24-arm64.zip or magisk sdk !!
android 6 sdk 23
Some useful apps inside aroma rom:
some xposed modul of my aroma file:
MTP as Default USB Connection
Led-control but better -->
Led blinker works well for me. To use power led as notification light (red/green) but only if blinker app is not activ
More xposed modul i use: AppsOps Re, CameraNotify, BootManager, CleanLockscreen, Marshmallow SD fix and the prevent running modul is powersafer
LightningWall I use as main wall. Af+ to switch between custom online permisson
Af+wall you can find premium versions of both walls #maybe not working 100% if both are in use
Roaming on national network? It can be fixed with https://forum.xda-developers.com/xposed/modules/app-roaming-control-v1-0-t3267154 v19 fixed roaming issue no need modul at the moment.
None xposed related apps: >>>>
2 bootanimation (black or white google) .. links to another working boot file 1080p - landscape from https://forum.xda-developers.com/android/themes/bootanimation-android-marshmallow-t3180984
Es Explorer support root access or Fx explorer & root add-on
VLCforAndroid_v2.xx
MediaConverter_v0.9.3
Puffin free browser, Dolphin browser, Powertoggles, ButtonMapper
Keep in mind some tools are powerful AppsOps, BootManager, amplify and pervent running.
No wipe after install rom apps. Test it you can run aroma rom without install anything.
Features:
- Custom bootanimation,
- Hardware- and soft-button modding to old behave ("any" liked)
- Getting ride of national roaming (***bug since v2 / fix by v19),
- Widgets on lockscreen,
- Volumebar for notifcation,
- Splitscreen
- Screenrecorder
- Offline backup & recover
- Increase security in multiple ways (firewall, best possible permission control)
- Root explorer,
- Less battery use,
- Direct MTP to PC,
- Custom notifcation led color for each app (green or red),
- Better file support, etc.
Additional features:
- Emergency call / sms with broken screen
- "Free" inter/national calls / sms
- silent system (camera / shutaudio / etc)
Benefit of stock android 6 or 7
Anroid 6 (all stock below v14):
+ turbo download mode = wifi&cellular network
+ seems like less power drain
+ preview video in galerie
+ lockable twrp
Anroid 7 (stock v14 - v19):
+ seems like less system crash which cause reboot
+ voice over LTE
+ get ride of flase national roaming
Have fun!
Requests are welcome as well as proposals.
http://www.mediafire.com/folder/5k0832h9u1cce/Cubot_Cheetah_2
A video of my aroma installer rom on API23 (Android 6.0)
https://youtu.be/zqyDmiqTdhc
Additional i like to suggest more apps to install yourself to your phones.
1. I use Whatscall, Dington, TalkU to make "free" phone call. You pay by watch ads. Whatscall is good to get fast free credits. TalkU and Dington are pretty similar. Autor is "our" phone manufactur Cheetah.
Benefit you can make real phone-call via wifi, safe expensive calls, etc.
If you have no playstore running you get less ads = less credits!
I use them since one year no problems. Me tested other "free" call/sms apps but did not find better once. Please no referal request!
2. shake2safety
Now i use it to enable emergency call by quickly press 4 times Power button. It can be enabled by shake also. That is a feature of new IOS as well as Samsung Galaxy. The benefit is you can automatic call even is screen is broken, eye or finger issue, else.
You can test your setup by automatic call friends number to prevent by mistake calling emergency
Only sms is working if not installed via playstore :/
** For location please keep your GPS on. When there is no Wi-Fi, GPS or mobile data then no location goes with the message/picture. Also it gives your last location if GPS is off.
Click to expand...
Click to collapse
So go and install that app!!! Alternative maybe SOS Stay Safe
Still no reply :/
However maybe not worse to have a 3 post contiguous (last -if no reply), to add details or infos.
You can replace shutaudio.mp3 at root floder system/media/
with attched silent once it increase free space in rom a littel. Play time is shorten so shutdown seems to be littel faster too.
Archiv contain a silent camera.ogg to replace them just rename the once you like to replace.
camera sound at system/media/audio/ui/
Here is a big silent system sound pack:
http://www.mediafire.com/?8pu3qv2ul7opn8z/
Not replace bootaudio.mp3 in v19. The mp3 worked on v14 but not with v19!!!
All my tests on replacement of bootaudio.mp3 in v19 end by bootloop. ( Guess same md5 hash is needed to replace! )
So if you can´t boot anymore run aroma installer and select install system media fix that.
1. edit:
Someone replaced gallery with old v02 version to get video preview back?
Not sure since when it is gone i believe since v14. or less?!
2. edit:
After a while i realize turbo download mode is not available in v19.
Turbo mode enables data transfer via wifi & cellular network at same time.
Can you please tell me how long first boot is meant to take please
deanoz99 said:
Can you please tell me how long first boot is meant to take please
Click to expand...
Click to collapse
If you just re-install less data e.g. boot / shot audio it´s fast as normal. If you are going to install all additional apps it maybe take some minutes. In case you do no install from slow external memory.
On Anroid 6 you can not reboot directly, hold power about 10-15 sec. till system (screen) full turn off and device reboots. Better choose power off device in twrp after finish aroma installation. :fingers-crossed:
toBsucht Psp said:
If you just re-install less data e.g. boot / shot audio it´s fast as normal. If you are going to install all additional apps it maybe take some minutes. In case you do no install from slow external memory.
On Anroid 6 you can not reboot directly, hold power about 10-15 sec. till system (screen) full turn off and device reboots. Better choose power off device in twrp after finish aroma installation. :fingers-crossed:
Click to expand...
Click to collapse
I tried to install and its starts to flash but then twrp auto reboots after about 5 minutes.
deanoz99 said:
I tried to install and its starts to flash but then twrp auto reboots after about 5 minutes.
Click to expand...
Click to collapse
This most likely happens if you:
- install exposed modul without flashing exposed sdk first.
- flashing sytemfiles ( increase by wronge firmware - aroma version)
- on android 6*: - if you reboot direct after installation ## or twrp screen off timer is set & reached * That is a bug of all our 6.0 twrp not a bug of rom
You can fix by:
- flash exposed sdk
- restore a twrp backup (guess you didn´t backup)
- flash proper systemfiles (check firmware i provide for most of them an aroma to restore system)
- flashing full stock rom via MTK tool = 100% fix
I found this topic today and will try it when I have time! For now, I've only changed the irritating boot sound!
toBsucht Psp said:
Not replace bootaudio.mp3 in v19. The mp3 worked on v14 but not with v19!!!
All my tests on replacement of bootaudio.mp3 in v19 end by bootloop.
Click to expand...
Click to collapse
I replaced the bootaudio.mp3 with yours shutaudio.mp3 and the system is booting normally (firmware v19)!
Ok idk why i always failed so maybe other user now also try. May i going to retry
Once again, only flash system app if you have no chance to recover.
Example:
I messed with contact app which may cann´t be recovered with aroma so contact crash by doing wrong. However it still works so i do not flash to repair that little bug.
Keep in mind xposed is tricky and maybe kind of risky to set, so make fresh trwp dump befor going to use "first time".
Hope u have fun with some additional apps.

[All ROMs] [Debloat] [Optimization] Android Acceleration Strip - Performance

What does this do?
This flashable ZIP file attempts to speed up Android OS by implementing tweaks and removing programs that the average Android user may not utilize. It also adds build.prop tweaks, init.d tweaks and a hosts file all aimed at one goal, to reach Android's maximum performance.
Before doing anything, be sure to backup with recovery since things might go wrong.
How to install/update:
First things first, YOU HAVE TO DOWNLOAD A 3RD PARTY LAUNCHER AS THIS MOD REMOVES THE DEFAULT LAUNCHER. I recommend Nova Launcher
1. Download ZIP and transfer it onto your phone's downloads folder (much easier if you download it through phone)
2. Boot into recovery mode and make a BACKUP first before flashing!
3. Flash the downloaded ZIP file.
4. After the process, wipe dalvik-cache and cache partitions (you do not need to format data)
5. Done! Now boot into the system and wait for the boot process to take you to lock screen (should take longer than usual, maybe about 1-10min. Don't be scared if your phone is taking longer than usual)
6. Open Settings > Apps > ::: (3 dots on the top right corner) > Reset app preferences (If you do not have this step, you can skip)
7. Done! After flashing, I recommend calibrating battery (you do not need to do this every update!)
NOTE: For a while, it may seem that Android's performance is worse and the battery is slower. Give it some time to adapt to the new changes
For updates, just download the updated ZIP and follow the installation steps again! Easy peasy.
Common Issues:
Boot Loops
Black Screen on Startup
Phone won't boot
Settings do not respond when opened
Certain apps lost functionality
Spam messages saying: "Unfortunately android.app has stopped working"
Notifications not working
Any issue that comes up, restore it from backup. Usually, uninstalled system apps are what cause these issues. To prevent them, you will need to remove some lines in the updater-script in my ZIP and reflash it. Be sure to report any bugs you find so they can be fixed right away!
Compatibility:
This ZIP file should be compatible with all ROMs (stock-based, AOSP-based and even stock), mods, devices and Android versions, but it was specifically tested and built around an S7 Edge (G935W8) running stock-based ROM (Superman ROM v3.0.1).
Tested on:
- LineageOS 16.0 ROM Android P
- Superman ROM v3.0.1
- The Galaxy Project
Changelog:
1.5.2
- Added more programs to debloat list
- More ads blocked in the hosts file
- Added more build.prop tweaks
1.5.1
- Tested and working
- Programs in updater-script are now sorted in alphabetical order for easier finding
1.5beta3 *UNTESTED*
- Added a LOT more BuildProp tweaks (115+ lines!)
- Added mxt224_ts_input.idc (makes touch screen better and responsive)
- System apps are now included in Doze
- Added sysctl.conf (extra protection)
- Added a LOT more init.d tweaks
- Added local.prop (values for performance)
- For older versions, visit - https://forum.xda-developers.com/s7-edge/themes/roms-android-acceleration-strip-t3841643
1.5beta2 *UNTESTED*
- Fixed the HOSTS file
. - Remove invalid rows
. - Added 13,000 new lines (now containing over 61,000 lines!)
. - Removed useless lines
. - Sorted alphabetically
. - Removed empty lines
1.5beta *UNTESTED*
- Added a LOT more Init.d tweaks (increases performance by managing cpu and ram better and many more)
- Added a LOT more BuildProp tweaks (increase performance)
- Added a hosts file (contains over 48,000 lines!) that blocks malware and ads, thus increasing speed
1.4.1
- Tested and fixed some issues. Includes all changes below.
- Ignore the error, "failed to mount /cache". It will function regardless
1.4beta3 *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Included v1.3.3 changes
1.4beta2 *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Added buildprop tweaks
- Does not include v1.3.3 changes
1.4beta *UNTESTED*
- This version has not yet been tested so it might not work and will probably give an error 7 in TWRP (if it does not give an error, please let me know)
- Added init.d tweaks
- Does not include v1.3.3 changes
1.3.3
- Added ADAPT SOUND and PRINTERS to debloat list
1.3.2
- Added a build prop tweak to utilize hyperthreading
1.3.1
- Added more apps to debloat list. Expect more apps to be added in the future
1.3
- Added more to debloat list
- Added buildprop tweaks
- This should fix error 7 in TWRP
- COMING SOON: Init.d tweaks
1.2.1
- I'll add build.prop and init.d tweaks when I can
- More apps to added to debloat. BACKUP
- After flashing be sure to wipe cache and dalvik
1.2 - DO NOT DOWNLOAD. ERROR IN UPDATER-SCRIPT. FIXING IN v1.3
- Added init.d tweaks
- Added BuildProp tweaks
- Added more to debloat list
1.1
-Added more to debloat list, be sure to backup just in case anything goes wrong!
1.0
- Init
Permissions:
- Feel free to take anything from the zip file, however, you must credit me as creator.
- If you are reuploading this on another website, add a link to this xda thread.
123keelos said:
1. Download ZIP (much easier if you download it through phone)
Click to expand...
Click to collapse
It is better if a mirror link also available...
Thanks
HemanthJabalpuri said:
It is better if a mirror link also available...
Thanks
Click to expand...
Click to collapse
I'll try to get a mirror up. Also, how does a mirror link being available make it better?
123keelos said:
I'll try to get a mirror up. Also, how does a mirror link being available make it better?
Click to expand...
Click to collapse
Since I cant able to download the attachment.. it shows error..
Thanks
HemanthJabalpuri said:
Since I cant able to download the attachment.. it shows error..
Thanks
Click to expand...
Click to collapse
I see. Check the description, I uploaded a mirror link
Hi it's really efficient for battery and performance or not? I've a custom kernel and custom stock rom. I use ex Kernel manager for tweaking my kernel with naptime and servicely too, thx in advance. In deepsleep my phone loose only 4% in 8 hours.
narco14 said:
Hi it's really efficient for battery and performance or not? I've a custom kernel and custom stock rom. I use ex Kernel manager for tweaking my kernel with naptime and servicely too, thx in advance. In deepsleep my phone loose only 4% in 8 hours.
Click to expand...
Click to collapse
- Battery Life: Will be a bit better since it removes aps that would run in the background. It also adds performance settings that would drain the battery a little bit, but overall, it would be better
- Performance: It will improve since not as many apps are running in the background as opposed to stock
I, too, use a custom ROM and kernel.
Can I flash by Magisk Manager? or TWRP only?
My device arch is x86. can I use?
Hi! I have a problem, I can't access system or any data from TWRP, so I can't flash your zip even through sideload.
Can you make a Magisk version? It would be great!
dhampire said:
Can I flash by Magisk Manager? or TWRP only?
My device arch is x86. can I use?
Click to expand...
Click to collapse
I dont know about flashing with Magisk so I think it's best that TWRP is used.
No devices (are known) are incompatible with this zip file so you can flash it on any Android
evilarthas said:
Hi! I have a problem, I can't access system or any data from TWRP, so I can't flash your zip even through sideload.
Can you make a Magisk version? It would be great!
Click to expand...
Click to collapse
I dont have any experience with making a Magisk version.
Go to TWRP, click on Mount and check System then press BACK (dont click mount system). This probably would fix your issue.
Hi, first of all thank you for your effort.
I can't get your mod working on my phone. I removed some essential lines from update script, then I even formatted data in order to have access to my system and data and then flashed. It says that it can't get access to /cache. However, as I can observe, the patch is applied. I boot up my phone and have another welcome application, I proceed and then it is stuck on "Android is starting". Very disappointed, wanted this mod to work and to get the bloat out of my phone.
My phone is sm-935s. TWRP is installed, as well as Magisk.
Stock oreo 8.0.0
evilarthas said:
Hi, first of all thank you for your effort.
I can't get your mod working on my phone. I removed some essential lines from update script, then I even formatted data in order to have access to my system and data and then flashed. It says that it can't get access to /cache. However, as I can observe, the patch is applied. I boot up my phone and have another welcome application, I proceed and then it is stuck on "Android is starting". Very disappointed, wanted this mod to work and to get the bloat out of my phone.
My phone is sm-935s. TWRP is installed, as well as Magisk.
Stock oreo 8.0.0
Click to expand...
Click to collapse
For me, it says that cache cant be accessed after I flash it. It still works for me even though. This error can be ignored
As for the Android starting stuck, it means that the updater-script is removing some applications that are necessary for a functioning phone. You will have to do some experimenting and remove lines until you find the issue.
Hi, 1.5.1 working without issues and without deleted some lines in updater script ?
It works on S7 Edge ?
dawidk750i said:
It works on S7 Edge ?
Click to expand...
Click to collapse
man, did you read OP???
Compatibility:
This ZIP file should be compatible with all ROMs (even stock), mods, devices and Android versions, but it was specifically tested and built around an S7 Edge running stock-based ROM (Superman ROM v3.0.1).
Click to expand...
Click to collapse
I tried v1.5.1 on my Moto X4 (Android 9) and have error 7 in TWRP..
My phone just become worse
In the first message, there are so many errors written that unfortunately the human is hesitant to install.
For this reason, many people may think again when they want to install it.
Error in flashing on GT-N7000
Failed to mount '/cache (No such file or directory)'

[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