[DEBLOAT] [OOS] [OP7 / 7Pro] Tomatot Debloater 1.2 (+++Battery, RAM, Privacy) - OnePlus 7 Pro ROMs, Kernels, Recoveries, & Other D

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

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.

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

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

[DEV][TOOL] Shadow53's Flashable Zip Builder

Making flashable zip files for Android devices can be… frustrating.
For those who have never tried, here are some of the more irritations:
You use a very limited scripting language called edify to write your install scripts. So limited, that some people replace the binary (update-binary) used to parse the script (updater-script) with a normal shell script that performs the installation instead. What’s the point of having update-binary and updater-script, then?
Any app installed to /system/ with bundled libraries in the apk need to have those libraries extracted in order to not crash.
Various system files need to be created to grant certain permissions to apps by default, and you need to know the syntax of each one (usually some dialect of XML).
If the correct permissions are not set on an installed file, it can cause the system to bootloop.
The Solution:
I’ve created a program in Go that reads entries from a configuration file and builds a flashable zip for you, while taking care of the implementation for you. The name is simple: Zip Builder.
Features:
Configuration files can be written in JSON, YAML, or TOML.
Supports Android versions since 5.0 Lollipop
Automatic generation of updater-script and an addon.d persistence script.
Automatically extracts libraries from apps being installed under /system/.
Can specify different file or app sources for different versions of Android and/or CPU architectures. updater-script will only install the files for that particular system.
Validate downloaded files with md5, sha1, and/or sha256.
F-Droid interoperability: Specify the repo URL and app’s package name, and zip-builder automatically gets the rest of the app’s information from F-Droid’s repository, including a download link for the latest version of the app.
Remove any files you specify, e.g. apps that you are replacing with your own version or apps/files you just don’t want on your system.
Standalone binaries available for Mac OS X, Linux, and Windows. Android binaries (to use in a terminal app) coming soon.
Linux binaries may be usable with Termux on Android, though this is not tested or supported.
Links
Latest release announcement
Download zip-builder
Example configuration files
Complete documentation
Zips built with this tool
EmojiOne Emojis - Replace the NotoSans emojis with the ones from EmojiOne
F-Droid installer - Includes the F-Droid privileged extension, allowing F-Droid to perform automatic installs and updates.
Hacker bundle - Includes the F-Droid builds of Termux with API, Float, and Widget addons, and Hacker's Keyboard.
Google swipe libs - Includes the swipe libraries for the AOSP keyboard. One zip for all Android versions since 5.0 on all architectures.
microG - Installs the FOSS replacement for Google Play Services, microG. Optionally install the Play Store for downloading apps, using the patched version from NanoDroid.
Google Play Store - choose between the vanilla Google Play Store or the patched one from NanoDroid.
Google Sync Adapters - install the Google sync adapters for use with microG. Install contacts sync, calendar sync, or both.
UnifiedNlp - If you want network-based location without Google Play Services or microG, install this zip. Comes with the Mozilla location backend and Nominatim geocoder backend.
No GAPPS app packs - FOSS replacements for Google Apps packages, provides basic system apps for ROMs running without Google Play Services.. There are multiple tiers of zips you can download, matching the OpenGapps flavors. Click on the link to view the contents of each zip.
microg.zip doesn't flash anything in my redmi 2 oreo aosp. log attached
kurtn said:
microg.zip doesn't flash anything in my redmi 2 oreo aosp. log attached
Click to expand...
Click to collapse
I'm currently working on polishing up a new release of a different project of mine, then I'll have time to look it over.
Per your PM, though, you said busybox wasn't in the location that the zip assumed it was. Can you search through your system and tell me which directories contain either busybox or toybox? (I believe busybox was found in two different folders when I flashed Lineage before)
Shadow53 said:
I'm currently working on polishing up a new release of a different project of mine, then I'll have time to look it over.
Per your PM, though, you said busybox wasn't in the location that the zip assumed it was. Can you search through your system and tell me which directories contain either busybox or toybox? (I believe busybox was found in two different folders when I flashed Lineage before)
Click to expand...
Click to collapse
Just have to search with the right tool. In twrp I see busybox in the expected location.
kurtn said:
Just have to search with the right tool. In twrp I see busybox in the expected location.
Click to expand...
Click to collapse
I had a little bit of time to flash a beta Oreo ROM for my phone and had no issues with things getting copied to my system correctly. If busybox is in the location that the script expects it to be, it's not obvious what the problem is.
The log you gave me seems to show that it mounted your system and data partitions correctly, detected that a folder did not exist, and then exited normally.
Have you tried an updated zip recently? A little while back I had the script output the found values for Android version and CPU architecture. It's possible it got fixed along with whatever I was working on at the time.
Re-downloaded microg.zip from @Shadow53's page. Now it works as expected.
Pushed a commit that should hopefully fix the issue @marcdw reported in the MicroG thread at https://forum.xda-developers.com/an...y-services-t3217616/post74531435#post74531435
@marcdw, I rebuilt the zips with a build containing the fix. Can you confirm that the libraries are now loading correctly? Things are working on my end, except for the patched Play Store requiring a reboot before working.
@rottenwheel do you really mean xposed? I have the impression magisk gets more attention.
@Shadow53,
I had actually edited the updater and add-on.d scripts to use the short names on most of your zips and all was good.
After work I'll start anew using your rebuilds. ?
ZTE Axon 7 A2017U, Dark ROM, microG (NoGAPPS), Tapatalk 4.9.5
rottenwheel said:
As read on the microG thread:
Although XDA community and most Android modders tend to side with Xposed-based solutions, I need to emphasize this is not the absolute case. I rather to stay away from it as much as I can, because it's given unstability to my devices as soon as I start tinkering with some modules; as soon as I get it removed from my setup, bugs are gone. I don't want to engage in unrelated discussions here, I just wanted to let you know your zip solutions have been working like a charm and many of us will miss if you lose enthusiasm about it. Keep it up and rocking. Thanks to you, getting microG onto our handsets is easier.
Click to expand...
Click to collapse
NanoMod is optionally a Magisk module and has nothing to do with Xposed, though I appreciate the sentiment.
*If* I were to lose interest in this project or in providing scripts, the code for the zip-builder is open source and contains the build recipes I use for all of the zips I provide, so it shouldn't be too hard for someone to pick up if they wanted to.
That said, I have no intention of stopping providing zips any time soon, though development on the zip-builder itself is slow because university is keeping me busy. I use my zips too, so I gotta be at least a little invested
Shadow53 said:
@marcdw, I rebuilt the zips with a build containing the fix. Can you confirm that the libraries are now loading correctly? Things are working on my end, except for the patched Play Store requiring a reboot before working.
Click to expand...
Click to collapse
Howdy sir. My apologies for not getting back. Work got in the way.
The zips work perfectly. I setup two ROMs on my Axon 7 with microg-playstore, no-gapps, and hacker. Not a single hiccup with the included apps or Play Store. All is good.
Must say again, I like the apps included in no-gapps.zip. Most of those I use and have to get manually from F-Droid.
Perfect with Dark ROM which has no apps or launcher and thus no worries of duplicate functionality (like two cameras, two calendars, etc.).
I see Firefox has replaced Lightning. Haven't used Firefox since v28 so I get to see what the new one is all about.
??
LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
Awesome. Been looking into how to get F Droid and Micro G plus most other things to work for my sm-g900p!
Really not liking the way Google has been going.
So looking into HOW to get that this to work for me.
From what I had seen so far....
PLEASE keep working on this!!
Thank you Shadow 53!
marcdw said:
Howdy sir. My apologies for not getting back. Work got in the way.
The zips work perfectly. I setup two ROMs on my Axon 7 with microg-playstore, no-gapps, and hacker. Not a single hiccup with the included apps or Play Store. All is good.
Must say again, I like the apps included in no-gapps.zip. Most of those I use and have to get manually from F-Droid.
Perfect with Dark ROM which has no apps or launcher and thus no worries of duplicate functionality (like two cameras, two calendars, etc.).
I see Firefox has replaced Lightning. Haven't used Firefox since v28 so I get to see what the new one is all about.
??
LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
Click to expand...
Click to collapse
I'm glad to hear that it's working for you. I'll be posting a new release on GitLab around the end of the week (yay finals...)
Regarding the no-gapps zip, most included apps also remove the AOSP equivalent if present, with a couple exceptions such as Silence for SMS not removing the default SMS app and Firefox not removing the built-in browser, both to avoid potential issues.
godofsalt said:
Awesome. Been looking into how to get F Droid and Micro G plus most other things to work for my sm-g900p!
Really not liking the way Google has been going.
So looking into HOW to get that this to work for me.
From what I had seen so far....
PLEASE keep working on this!!
Thank you Shadow 53!
Click to expand...
Click to collapse
Development of the zip builder is stalled right now, largely due to time. It works great for what I need at the moment, but I will work on bug fixes for things that come up. The zips are rebuilt every week by a cron job on the server, though packages containing the official Play Store may not get updated if opengapps updates their version (which changes the URL). I try to catch that, but I don't always have time to check.
I'm considering putting together a comprehensive gapps removal zip that should remove as much trace of Google as possible from the device, including any application data. That will take some investigation, though, and so it shouldn't be expected soon. If/when it comes, it'll largely be for removing installations by opengapps and Beans gapps, as I can't account for all differences between OEMs.
Hey no worries about updates being "stalled"!
I know what your going though believe me. Can be such a frickin headache!!! Not to mention anxiety that some poeple get this time of the year!
AM certainly glad to hear that you are still somewhat working on it though. Plus frim what I can see, this has not been out long, so I don't thing others may even know about it!
I believe they will!!!
Running paid apps having a license verification at runtime
I installed a recent LineageOS for microG (build date 11/29) on my Samsung Tablet SM-T800 (chagallwifi) and added root by flashing the zip provided by LineageOS.
I first tried Yalp Store (version 0.29, downloaded from fdroid), but then figured out that I cannot use any paid apps that make use of a license validation at runtime. However, there are some paid apps that I require.
I did some reading and it seems like the installation of the original Google PlayStore is a solution.
So here are my questions:
1) Can I get paid apps running when I install the original PlayStore as a system app following the procedure described on the blog shadow53 (sorry, cannot post the link cause I am a new user, but it is easy to find when searching for 'shadow53 android downloads')?
2) Is there anything I have to do in addition to flashing the PlayStore zip?
3) Does flashing the original PlayStore give rise to any conflict with the FakeStore that comes installed as part of microG? If so, how do I remove the FakeStore?
ebiel said:
I installed a recent LineageOS for microG (build date 11/29) on my Samsung Tablet SM-T800 (chagallwifi) and added root by flashing the zip provided by LineageOS.
I first tried Yalp Store (version 0.29, downloaded from fdroid), but then figured out that I cannot use any paid apps that make use of a license validation at runtime. However, there are some paid apps that I require.
I did some reading and it seems like the installation of the original Google PlayStore is a solution.
So here are my questions:
1) Can I get paid apps running when I install the original PlayStore as a system app following the procedure described on the blog shadow53 (sorry, cannot post the link cause I am a new user, but it is easy to find when searching for 'shadow53 android downloads')?
2) Is there anything I have to do in addition to flashing the PlayStore zip?
3) Does flashing the original PlayStore give rise to any conflict with the FakeStore that comes installed as part of microG? If so, how do I remove the FakeStore?
Click to expand...
Click to collapse
1. Yes, you will be able to check licenses at runtime with the Play Store installed.
3. Yes, they use the same package name, so having both apps installed causes a conflict. Depending on where the FakeStore is installed, the Play Store zip may recognize where it is and automatically remove it for you. You will see some output while flashing, something like "Deleting existing file /system/priv-app/Phoneksy" if it was discovered (file path may be different).
If it does not automatically remove FakeStore, find the directory it is installed in and delete it, then on next boot modify the playstore addon-d script to delete that directory. You should see where and what to change when you open the file. If you do not make this change,
2. You may have to manually remove FakeStore with the above process. You should also look at https://shadow53.com/android/no-gapps/faq/playstore-not-loading/ regarding other gotchas with getting the Play Store running and https://shadow53.com/android/no-gapps/faq/playstore-incorrect-signature/ if you use the patched version of the Play Store.
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
Whether addon.d stuff works depends on the ROM. Some ROMs have a backup feature during flashing but a lot do not. Does LOS support addon.d backups?
ZTE Axon 7 A2017U, Dirty Unicorns UNOFFICIAL v11.7.2 ROM, Tapatalk 4.9.5
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
LineageOS has addon.d sopport. Maybe you should post a recovery. Log
memarama said:
The addon.d survival script dosn't work on my rom (play store patched). I use lineageos with microg on nexus 7 (flo).
Click to expand...
Click to collapse
After installing the microG Lineage fork on my own device to test, I realized that the Play Store zip marks FakeStore as something to remove on initial installation, but not across system updates. The addon.d script doesn't re-remove FakeStore.
Try downloading the latest version of the zip and installing it. FakeStore should stay uninstalled now.
In other news, I've decided to make my no-gapps zip into multiple, similar to the various OpenGapps zips. This means a larger selection of open source apps that can be installed, including some more replacements for AOSP apps. I'm working through a couple bugs right now potentially related to these zips, then I'll add an update with more details.

[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)'

[GUIDE] MicroG on OnePlus 6 (open source and ligthway alternative to Google services)

Updated and tested for Android 10 (with Omnirom)
Why MicroG?
Here is a great explanation from the official wiki itself: https://github.com/microg/android_packages_apps_GmsCore/wiki
There are different and good reasons to move away from Google services and get microG services:
1) More privacy: all Marvin's work is open source and focused on privacy. The "Google Play Services" app is probably the worst app you can have on Android when it comes to telemetry, spying, etc. It's always running tons of services to know all your comings and goings. As a side note, it's also good to not rely on Google too much.
2) More RAM available: Google Play Services use a lot of RAM when GMScore uses almost nothing.
3) More battery life, especially while idling: you'll avoid all the wakelocks related to Play Services (whether they are intentional or not)
CREDITS / Thank you:
@MaR-V-iN, for his wonderful and amazing work to free us from Google. One of the most underrated dev in the Android world.
@Setialpha , for his nanodroid module and his availability to help.
@topjohnwu for Magisk
How will your Android experience change?
Actually, not so much. If you're only interested in MicroG for the reasons 2) and 3), you can still use all Google apps, including the Play store (you need a patched version). Be aware, some apps don't work or are not working properly. Implementation status of different Android/Google services can be found here: https://github.com/microg/android_packages_apps_GmsCore/wiki/Implementation-Status
If you wonder if an app works or if you've tried and it doesn't work, just check on the issues tracker on Github or on your favorite search engine.
Now, if you want to change your habits, F-Droid will become your new best friend. It's an app store, like the Play Store, but which only delivers controlled, quality and open source apps. Both stores share many apps in common but F-Droid also has apps that the Play Store doesn't, because they're against Google policy for example. It should become your main app store as it's always good to use open source apps, for many reasons. Let's not start a debate here.
However, at least, at the beginning, it's tough to not use ANY app from the play store. For that, you should use Aurora store (whick is a fork of Yalp Store FYI). You get access all apps from Play Store. You can either use an anonymous account or use your own Google account. In the second case, you'll be able to download your paid apps. However, these won't work if they include a license check (most of them nowadays). You can nicely ask the dev if there's a workaround. Some accept, like the team behind Titanium Backup for example. Or SmartPack Kernel Manager's developer.
If you're looking for open source alternatives to the apps you usually use, I could list a few of them but this list is just great: https://github.com/offa/android-foss .
If you don't know how to replace Google services, this list is great as well: https://shadow53.com/android/no-gapps/alternatives/
You can also check on reddit like on this subreddit: https://www.reddit.com/r/fossdroid/
What ROM to use?
Any custom AOSP ROM should work, as long as :
1° it supports signature spoofing
2° it's deodexed
3° it supports alternative location backends, it's
-I wouldn't recommend any ROM that comes with gapps included. It just makes things more complicated.
On Android 10, I would highly recommend OmniROM, which offers an archive with microg prebundled, and also because it perfectly supports microG (signature spoofing, alternative location backends, etc.)
USEFUL LINKS
-MicroG thread: https://forum.xda-developers.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616
-MicroG wiki: https://github.com/microg/android_packages_apps_GmsCore/wiki
-UnifiedNlp thread (location): https://forum.xda-developers.com/android/apps-games/app-g-unifiednlp-floss-wi-fi-cell-tower-t2991544
-Nanodroid (provides packages related to open source / microG stuff): https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928/ (you need to download the microG edition) + here to understand how to edit the .nanodroid-setup file: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description
-microG unofficial installer (doesn't work on our device yet): https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
-Useful website about installing, getting packages, etc. : https://shadow53.com/android/no-gapps/setup-guide/microg/
-Great list of FOSS (open source software) apps for Android: https://github.com/offa/android-foss
-Alternative to Google apps: https://shadow53.com/android/no-gapps/alternatives/
-Personnal experience feedback: https://forum.xda-developers.com/android/general/gapps-free-samsung-galaxy-s3-lte-gt-t3553620
If you read all these threads you'll start to have a good understanding of what is microG and how to live without Google.
Prerequisites:
-OnePlus 6
-Unlocked bootloader
-TWRP installed
-A ROM supporting microG
-All files downloaded, on your device
DOWNLOAD LINKS
-OOS: https://forum.xda-developers.com/oneplus-6/how-to/official-oxygenos-5-1-5-ota-oneplus-6-t3794232
-TWRP: https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3860815
-Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445
-Nanodroid: https://downloads.nanolx.org/NanoDroid/Stable/ (you need to download the microG file)
-Push Notification Tester: https://play.google.com/store/apps/details?id=com.firstrowria.pushnotificationtester
-Working Google Maps app: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/
-F-Droid: https://f-droid.org/FDroid.apk
INSTALLATION TUTORIAL
Italic = recommended, but not mandatory. Do it if something doesn't work properly
0) DON'T RESTORE your apps until everything is set up, otherwise you'll have issues with GCM (getting instant notifications from messaging apps for example)
1) Flash the custom ROM of your choice ( these instructions should work: https://privatebin.net/?42d550f9ae5df09f#imAFxWjM0gW+V9+ex+8nRyYSoSQzLPjhNXsbKIUjzqA= )
2) Flash magisk, reboot to system
3) Reboot to recovery
4) Flash Nanodroid (you need to download the microG edition, and make sure you have made the .nanodroid-setup file at the root of your internal storage, see instructions here https://github.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md) or you can also try MinMicroG (https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases).
If you choose nanodroid, update microG thhis way: https://www.reddit.com/r/MicroG/comments/fd7udr/fork_of_microg_gmscore_with_unifiednlp_working_in/
5) Reboot to system
6) Open MicroG, give it permissions if that's not already the case
7) Click on self-check. Give signature spoofing to all the empty boxed so they get ticked.
For Omni/Arrow/Aex, you can make sure it's allowed in settings/apps & notifications/apps permissions/spoof package signature. for playstore/fakestore make sure you click on the 3 dots and check system apps (if it exists).
8) Give permission to ignore batter optimizations.
9) Enable Google device registration and Google Cloud Messaging.
10) Enable Safetynet if you want
11) Click on UnifiedNlp and active the 3 backends: location backends: Mozilla+ Déjà Vu; adress lookup backends: Nominatim.
12) REBOOT
13) Open your phone app, and type this:
Now try this instead in order to manually enable device registration and connect to Google Cloud Messaging:
Code:
*#*#2432546#*#*
Code:
(old) *#*#42678278#*#*
. Nothing will appear on your screen but it can help. It's probably necessary but I prefer to make all the steps to make everything work. Sometimes logging in on your Google account through settings help. You can then log out if you don't want to use any Google account.
14) Install Push Notification Tester from Yalp Store.
15) Test the app, see if everything works. If it doesn't, ask for advice here as it should at this point. You can try to reboot one more time. Make sure that in the GCM settings you're connected since X time, otherwise something is wrong. Step 23 is the most important step to check if it doesn't work.
16) Go back to the self-check menu, now you can check the self check status and almost all boxes should be ticked. Some are not for me but GPS still works, even on Google Maps. Here is a screenshot of how it looks like for me: https://i.imgur.com/WsPX5RC.png
17) Now you can try to install the apps you want! Don't install apps that need push notifications before all these steps otherwise they might never be registered. Clean installing apps is recommended. You can try to restore them from a backup as well, but it often doesn't work. The middle ground solution is to install the app with the Yalp Store / F-droid and then restore its data with Titanium Backup for example.
18) Now you should see apps being registered in microG.
19) You can make sure your gps work with either OSM (https://f-droid.org/en/packages/net.osmand.plus/) or Google Maps (see apk mirror link earlier, the last version won't work). You should get your location without any isuses at this point.
20) Enjoy your almost Google free phone.
EXTRAS:
α) If you have issues with location, you can try this (on some custom ROMs, Google Maps finds my location but then it doesn't update and so if I move around it won't update my location. Also sometimes I need to reload the app to update my location which is quite inconvenient. It seems that doing the steps following help)
Install a terminal emulator (I recommend Termux)
Make sure your phone has root rights and type :
Code:
su
Authorize the app
Type next:
Code:
pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION
Then
Code:
pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
iii) Reboot
β) If you have issues in general, try to update Nanodroid (if you used Nanodroid, ofc) apps from F-Droid. Add this repo to F-Droid: https://www.nanolx.org/fdroid/repo/
And then make sure all your apps are updated (including microG GmsCore)
A) DroidGuard uses non-open source stuff. It's in order to pass safety net.
B) GCM is not open source either.
C) If you want google maps to work, you need to install an "old" version and not update it. You can find it here: https://www.apkmirror.com/apk/google-inc/maps/maps-9-82-1-release/. Sometimes, your location might never appear. In this case, restart a few times Maps until your position shows up.
D) You can also try to install MicroG and its dependencies as user apps. I've tried it and wasn't very happy with the results as they don't work as well being user apps. From what I've heard, everything works fince except location. So you can give it a try as well this way.
E) My personal .nanodroid-setup is this one (to understand what it does, check here: https://gitlab.com/Nanolx/NanoDroid/blob/master/doc/AlterInstallation.md#detailed-description ):
Code:
nanodroid_gmscore=0
nanodroid_play=21
nanodroid_overlay=0
nanodroid_mapsv1=1
nanodroid_gsync=0
nanodroid_swipe=1
nanodroid_forcesystem=0
nanodroid_fdroid=1
nanodroid_nlpbackend=1100
Reserved.
Very nice,
too bad that it doesn't support OOS but it's understandable.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Maybe it could work with nanodroid patcher for signature spoofing and then manually deodexing the ROM. It would also be necessary to remove all the Google apps. So yes I guess it's just easier to use a custom ROM as a saner base.
nimrodsv said:
Very nice,
too bad that it doesn't support OOS but it's understandable.
Click to expand...
Click to collapse
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
Maybe I'll give a try it seems possible.
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
nimrodsv said:
@Tomatot- I see that you've tried to working with MicroG on Omni but getting bootloops and that you will try working with it again soon.
Anything I should know before I try this on Omni? Thanks!
Click to expand...
Click to collapse
I had a weird experience on Omni. At first it was working all fine with nanodroid-microG, but then I tried to change the .nanodroid-setup and it broke all my system, I was never able to make it work again on Omni. I also tried once the Nisse .zip and it didn't work either. So I can't really tell what's the pattern to make things work or not work... I really liked Omni so I'm going to try again within the next few days, with a nice clean flash and Nisse zip. I will let you know. If you're impatient and want to try, try to follow the steps from this tutorial and let me know how it goes.
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
NisseGurra said:
Omni is a bit tricky with permissions, use the latest Nanodroid-microG from https://downloads.nanolx.org/NanoDroid/Stable/ to install on omni, it adds bit more (calendar and contacts sync etc) that i dont want tho
Click to expand...
Click to collapse
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Tomatot- said:
Did you manage to make your script work on Omni? I'm not interested in these extras either.
Click to expand...
Click to collapse
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
NisseGurra said:
Yes, but some extra work is needed: Open the zip with 7-zip and extract all item from priv-app and delete the priv-app folder from the zip.
Install rom, the modified zip and boot into system.
Install the extracted apps normally.
Use https://forum.xda-developers.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851 to convert the 4 installed apps (gms, gsf, phonesky and yalp) to system apps (to priv-app).
Thats bit much but its functional on omni.
Click to expand...
Click to collapse
Awesome, thanks, I'll try this asap.
I will update OP but I can tell Arrow OS seems to support perfectly MicroG. And your script works directly @NisseGurra . I've noticed the location apps are a bit oudated, could you update them please? Cheers.
Thread updated with my experiences with the different custom ROMs available on our device. i've also improved instructions a little and make some steps not mandatory but recommended.
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Oswald Boelcke said:
Thanks very much for this great tutorial although I've never had an OnePlus. Quite a long time ago, I tried to capture my personal way to become GApps-free from the very beginning by installing µG un to today where I always use NanoDroid. Maybe my thread contains some information useful to you?
Click to expand...
Click to collapse
Yes I read it and it was very useful. Your thread was already included in "useful links" btw.
Updated backends microg installer (attached)
NisseGurra said:
OOS has normally odexed system and do not support signature spoofing.
An option would be to deodex services.jar and the use the nanodroid patcher to enable signature spoofing.
I have done that for some 8.1 OOS roms but not on the latest releases.
Click to expand...
Click to collapse
whizeguy said:
Like above, it could work. By installing xXx module and choose total gapps removal then try what he said above for spoofing. Tempted to try, but can't atm.
Click to expand...
Click to collapse
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Tomatot- said:
Bumping you again to give you some news.
So I really don't feel like going back to use Google Play services but I miss OOS for battery life and performance reasons.
However, I feel like deodexing OOS is really not optimal, see these links:
https://i.imgur.com/FRJgqVm.png
https://github.com/anestisb/vdexExtractor/issues/33
https://i.imgur.com/9Y6JBGD.png
So yeah, it's a tough choice...
Click to expand...
Click to collapse
Aw man.. That's just too bad :/ thanks for the update mate.

Categories

Resources