[MAGISK] DISABLE pull-down of quick-toggle/status bar in lock screen on locked phone. - Xiaomi Mi Pad 4 Themes, Apps, and Mods

Maybe you all fed up with Google's decision to allow pull-down of statusbar in locked phone.
As I am, even made a bug report but Xiaomi is thicc: http://en.miui.com/thread-3078766-1-1.html
Well I found a fix for this at least in Xiaomi's MIUI:
Just replace this 2 folders in the /system/priv-app/
- MiuiSystemUI
- Settings
with the one from xiaomi.eu, of course this needs root & same xiaomi.eu version as your phone.
You'll got those features back in Settings like in MIUI 9. I tried it myself.
You can try my Magisk mod for this: https://github.com/Crescendo-BLYAT/securephone-xiaomi.eu
Script by: Didgeridoohan
As this will only work in specific device/MIUI version, my module only works for MIUI 10.1.1.0 (Oreo)!!
You can use this as template and get xiaomi.eu ROM for your respective device, extract the ROM & get those 2 folders inside /system/priv-app and replace the one in my module, touch nothing and flash in your magisk and see in the Settings > Notification & status bar -> Show on secure lock screen.
Disable that if you don't want anyone to mess with your locked phone via quick-toggle.

IT'S WORKING!! - unified installer between natrium & clover
Big thanks to Didgeridoohan :highfive:

Related

[ROM] [PORT] [STOCK] Nemoid ROM for Samsung Galaxy Young 2 (SM-G130HN)

Hello everyone,
I share with the forum, after many hours of trial and error, the port of Nemoid ROM (original for the Galaxy V), based on Stock ROM and fully functional for Galaxy Young 2.
Being based on Stock ROM, it has not any bugs and works swimmingly for everything I could try.
NOTE: The ROM is tested in GALAXY SM-G130HN not Dual SIM, I do not know if it works on other models, although I suppose. Tests on devices other than single SIM 130HN RUN FOR YOUR ACCOUNT.
Do not ask if it's for this or that model, I do not know it and I can not prove it, but I imagine so, because the ROM only modifies the “/system” directory, containing only applications, libraries and media, do not touch anything about Modem, RIL, etc.
NOTE: The ROM includes the rooted kernel for the 130HN. If your model is different, it is not advisable to flash it. Edit the ROM ZIP and remove the file "boot.img" of it.
THANKS:
- DEVELOPER ROM: cleverior, you can see the original ROM post on these links for ROM and her blog:
Original ROM
ROM Blog
- AROMA INSTALLER: amaralluz
ROM SCREENSHOTS:
You can see them all in the links for the original ROM and blog creator
CHARACTERISTICS OF THE ORIGINAL ROM:
You can see them all in the links for the original ROM and blog creator
FEATURES ADDED TO THE ORIGINAL ROM:
- Advanced Reset Menu
- Settings for blocking unwanted calls and messages
- Xposed and Xperia Navbar to customize the navigation bar
- Changed the theme of the checkboxes
- Added many more ringtones and notifications
- Included “Volume +” as sound manager, configurable through the audio menu, if you choose it instead of MusicFX (in original ROM)
- Added font selection in the menu for customizing the ROM
- Added Backgrounds application in the ROM customization menu, to choose from more than 10,000 wallpapers for the desktop
- Background gradient, plus the original Contextual background, for the header in the notification panel in the ROM customization menu
- Included Nova Launcher apart of the original one, to choose on both at the first start
- Samsung keyboard included, apart of the original one in ROM (Google keyboard)
- Changed the wallpaper, as the colors of the original one hidden taskbar icons
CHARACTERISTICS ELIMINATED FROM THE ORIGINAL ROM:
- Removed the Messenger application, gives continued FC
- Removed Google Camera and Gallery by Stock ones, they gave FC
BUGS:
- In the first start, when configuring the phone, you may receive some SysteUI failure, do not worry about, accept and the mistake will not repeat again
- Being based on Stock, I have not detected any more bugs. If you detect any one, post it in order to fix.
INSTALLATION:
ALWAYS MAKE BACKUP OF YOUR INSTALLED ROM , I DO NOT TAKE RESPONSIBILITY FOR DEFECTS THAT MAY BE OCUUR
- It is not a priority to be ROOT if you are flashing the kernel included (it is rooted), but it is necessary to have installed a custom recovery to install the ROM, preferably TWRP to avoid installation problems.
TWRP for Galaxy 130HN
- Preferably to have installed any version of Stock ROM, to avoid problems with the modem, CSC, RIL, etc.
- Copy ROM zip to external SD
- Restart in the custom recovery installed (again, preferably TWRP). To access the recovery, the typical combo key “Volume UP + Home + Start”
- Choose the zip in the installation menu to start the installation
- The ROM is installed with Aroma, follow the steps of Installer:
- Recommended to select to back up the EFS partition, just in case of any problem
- Select “Safe Format” to remove your original data from ROM
- You can choose between two types of off-screen animation, "Horizontal or Vertical CRT" (the CyanogenMod style). Both options also include the "Fade" animation
- Continue the process until you finish the installation.
- At the end of this, do not restart the system
- Back in recovery, clean the Cache and Dalvik
- Reboot and enjoy
NOTES AFTER INSTALLATION:
- SCREEN OFF ANIMATION
In Build.prop, CRT animation is enabled by default (either that you have chosen vertical or horizontal)
If you want to change it to fade or turn it off, you must edit the build.prop with the browser included in the ROM and change the following lines:
persist.sys.screen_off = fade (if you want to Fade)
persist.sys.screen_off = off (if you do not want any animation)
- NAVIGATION BAR
It is disabled by default, if you prefer to use MiPop instead of the traditional bar (you can not activate both at once). If you are not going to use MiPop and want to use the navigation bar, edit the build.prop and edit the line:
qemu.hw.mainkeys = 0 (to activate the navigation bar)
If you want to customize the navbar, in the settings menu you will have to activate the Xperia Navbar and Xposed module (you will be asked to restart).
In the customization menu of the ROM, there is the access to Xperia Navbar, to customize it as you like ( "Navigation Bar")
DOWNLOAD:
Nemoid for Galaxy Young 2 - MEGA decrypt key !zQ2sj87zrhYcxk41UN2tQD9MV9jUY2myAosOywCJW4Q
Nemoid for Galaxy Young 2 - Dropbox
The only thing to do now is to download it and enjoy. If we participate in the post we can make it better together. :good:
Reserved
My sim is not working on SM-g130HN model. Any idea why? I tried other custom roms and it is the same.
I do not know why, but it sounds laike a problem with your unit. Have you choosed the single SIM build.prop in the installation? I have installed a lot of custom roms in my phone without any problem with my phone.
Does the SIM work with stock roms?, Is your unit unlocked or locked to a propietary carrier?
haplox said:
I do not know why, but it sounds laike a problem with your unit. Have you choosed the single SIM build.prop in the installation? I have installed a lot of custom roms in my phone without any problem with my phone.
Does the SIM work with stock roms?, Is your unit unlocked or locked to a propietary carrier?
Click to expand...
Click to collapse
It worked on stock rom. How to choose single sim build.prop? Seemed to miss this during the instalation.
The installtion is trough Aroma Installe, so I do not know how you jumped that step. In the screen where you have to choose to exit the installation or going on with it, if you choose to go on, the next screen let you to choose between to install single SIM build.prop or dual SIM build.prop, that is the place where you can choose it.
After installing, do not reboot, just clear Dalvik and Cache. Give us your feed back
haplox said:
The installtion is trough Aroma Installe, so I do not know how you jumped that step. In the screen where you have to choose to exit the installation or going on with it, if you choose to go on, the next screen let you to choose between to install single SIM build.prop or dual SIM build.prop, that is the place where you can choose it.
After installing, do not reboot, just clear Dalvik and Cache. Give us your feed back
Click to expand...
Click to collapse
Unfortunately, it does not work. I have picked the single sim option, and i get the "no sim insert sim card" notification. Since I have tried several roms already, it's safe to assume it is the phone's issue. Thanks anyway.
Surely for your symptoms. I believe the phone is locked
ksajksale said:
My sim is not working on SM-g130HN model. Any idea why? I tried other custom roms and it is the same.
Click to expand...
Click to collapse
Flash back to stock

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

Good Lock 24.0.16, modified for Android N-ify (v2)

If you've used Android N-ify with Good Lock, you will have known that there's an annoying bug, that the Good Lock settings icon overlaps the alarm section when the Quick Settings is expanded.
This will fix that, and fix up a few things in Good Lock to match AOSP/Google Pixel visuals
Screenshots in attachments.
Should be supported on any Samsung device on a Touchwiz-based 6.0/6.0.1 Marshmallow ROM (7.0 Nougat or newer is unsupported, you can use this Substratum theme instead which makes your SystemUI more AOSP-like!)
Will update this modified Good Lock accordingly as Good Lock itself recieves updates as well.
Changelog
v2
IMPORTANT: you must go and follow this, even if you already installed the previous version, just this one time. Added proper install instructions in the OP, shouldn't have any issues with installing now (read below)
Removed charging/wireless charging water splash animations
Changed default lockscreen wallpaper to stock Google Pixel wallpaper
v1
Removed Good Lock settings icon in quick settings header, to not overlap alarm icon in Android N-ify's quick settings header (still clickable where it was to access Good Lock settings)
Changed auto brightness icon in quick settings header to AOSP style
Changed screenshot notification icon to AOSP style
Changed Good Lock app icon to AOSP Nougat's SystemUI icon
Install instructions
If you are using stock Good Lock, or if you are on the first release of the modified Good Lock, follow the instructions ahead. If you haven't installed any Good Lock, skip to Step 4. Otherwise, if you're on v2 or later of modified Good Lock, and are just updating, skip to Step 6
Disable Android N-ify and GravityBox in Xposed Installer, and reboot
Uninstall Good Lock normally from the app (optional: backup Good Lock data)
Go to /data/app/ in your favourite root file manager, and delete any "com.android.systemui-#" folders (# is substituted with a number)
Install stock Good Lock again
Flash the modified Good Lock zip in TWRP
Enable Android N-ify and GravityBox
Enjoy (optional: restore Good Lock data)
Download
Realy great, works a lot better. Thank you mate. :good:
Great work bro
It doesn't seem to get installed when I flash it, I tried with and without Good Lock installed but it had the same effect. S7 Flat on Superman Rom 1.19
DarkboyZX said:
It doesn't seem to get installed when I flash it, I tried with and without Good Lock installed but it had the same effect. S7 Flat on Superman Rom 1.19
Click to expand...
Click to collapse
Yes, the ZIP does not work if you try to flash it before installing GoodLock and N-ify. It is recommended that you wipe and reflash the system partition after uninstalling N-ify and GoodLock, and then install GoodLock and N-ify -> reboot once -> flash the ZIP through recovery.
New update!
v2
IMPORTANT: you must go and follow this, even if you already installed the previous version, just this one time. Added proper install instructions in the OP, shouldn't have any issues with installing now (read below)
Removed charging/wireless charging water splash animations
Changed default lockscreen wallpaper to stock Google Pixel wallpaper
DarkboyZX said:
It doesn't seem to get installed when I flash it, I tried with and without Good Lock installed but it had the same effect. S7 Flat on Superman Rom 1.19
Click to expand...
Click to collapse
Follow the new install instructions, it should work now.
Is it possible to for the QS panel to be bluish-greyish, like on AOSP?
Since right now, it is completely black.
moriel5 said:
Is it possible to for the QS panel to be bluish-greyish, like on AOSP?
Since right now, it is completely black.
Click to expand...
Click to collapse
Yes it is.
In Good Lock routines editor, on the section where you pick theme colours, you can try and pick the blue-greyish colour for the first hexagon to the left, then your QS panel background colour will be set accordingly.
OhayouBaka said:
Yes it is.
In Good Lock routines editor, on the section where you pick theme colours, you can try and pick the blue-greyish colour for the first hexagon to the left, then your QS panel background colour will be set accordingly.
Click to expand...
Click to collapse
Thanks, I haven't installed your modified Good Lock yet on my father's phone (I don't use TouchWiz, however I was unable for some reason to boot CM12.1 on his phone (when there will be enough time, I will try CM13, or whatever will exist then)) since I thought that the colors will be too jarring for him.
When I'll have time, I'll install your modified Good Lock on his phone.
Is there a way to get a gap between the notifications?
Done
Sent from my hero2lte using XDA Labs
..
Hello,
First of all, thanks for the mod! Developpers like you are great, and add something to the community! Thanks.
Getting to the question. I know it may sound stupid, but this is supposed to make Good Lock work with Android N-ify. But I don't know when I should instal android n-ify. Should I install Good Lock (fresh install), flash your GoodLock v2 zip, and then install Android N-ify module through Xposed? Or do I not need to install the Android N-ify module?
Thanks in advance for the clarification. Cheers!
CamilleBC said:
Hello,
First of all, thanks for the mod! Developpers like you are great, and add something to the community! Thanks.
Getting to the question. I know it may sound stupid, but this is supposed to make Good Lock work with Android N-ify. But I don't know when I should instal android n-ify. Should I install Good Lock (fresh install), flash your GoodLock v2 zip, and then install Android N-ify module through Xposed? Or do I not need to install the Android N-ify module?
Thanks in advance for the clarification. Cheers!
Click to expand...
Click to collapse
Yep, you install android n-ify and gravitybox after you flash the good lock zip.
OhayouBaka said:
Yep, you install android n-ify and gravitybox after you flash the good lock zip.
Click to expand...
Click to collapse
Well thanks for the answer.
I followed the procedure, installed Good Lock, then flashed your zip, then installed Android N-ify 0.2 and Gravity Box, but the navigation panel still looks like the original Good Lock panel (I don't see neither Android N-ify effect, nor your Good Lock).
Don't know what I did wrong, but too bad for me.
Thanks for the help anyway !
CamilleBC said:
Well thanks for the answer.
I followed the procedure, installed Good Lock, then flashed your zip, then installed Android N-ify 0.2 and Gravity Box, but the navigation panel still looks like the original Good Lock panel (I don't see neither Android N-ify effect, nor your Good Lock).
Don't know what I did wrong, but too bad for me.
Thanks for the help anyway !
Click to expand...
Click to collapse
N-ify 0.2 on the xposed repo is really old, you want the latest build from https://ci.paphonb.xyz/jenkins/job/AndroidN-ify/
Also if installing my good lock made no difference, manually copy out the base.apk from the zip into /data/app/com.android.systemui-1, give -rw-r-r permissions and reboot
OhayouBaka said:
N-ify 0.2 on the xposed repo is really old, you want the latest build from https://ci.paphonb.xyz/jenkins/job/AndroidN-ify/
Also if installing my good lock made no difference, manually copy out the base.apk from the zip into /data/app/com.android.systemui-1, give -rw-r-r permissions and reboot
Click to expand...
Click to collapse
I tried as well, but it seems I can't get Android N-ify to work on my S7 Edge. It probably isn't related to your mod.
Thanks for the help! :good:
CamilleBC said:
I tried as well, but it seems I can't get Android N-ify to work on my S7 Edge. It probably isn't related to your mod.
Thanks for the help! :good:
Click to expand...
Click to collapse
No problem
Scratch that. Think it's a bug with the version of N-ify I'm using nevermind!
CloudyxVision13 said:
Scratch that. Think it's a bug with the version of N-ify I'm using nevermind!
Click to expand...
Click to collapse
The same thing happens to me when I use the latest version of N-ify from jenkins. However it doesn't do the same with version 0.20 from xposed, but It doesn't look as good as the screenshots in the OP.

[ROM][UNOFFICIAL][LOS14.1][7.1.2_r29] DARK ROM [OMS][Pixel features]

Hi guys,
I'm building an extra lean LineageOS 14.1 ROM for mido with a few added features. A lot of packages have been stripped down, only the bare minimum is built to provide a fast and stable ROM. That gives you much more freedom as you can install exactly what you really want from the Playstore. You can install most of the missing packages manually, they are available in a flashable zip on the server (see second post).
The work on this ROM is done by @Dark_Eyes_ he is been working too hard too add some extra features on this ROM. Thanks for this best ROM.
My approach for DARK ROM 14.1 is slightly different than for DARK ROM 13, as I try to add as many Pixel features as possible while keeping a solid LineageOS base.
Key features
- Full OMS support (rootless)
- Signature spoofing support
- Pixel Launcher (with the provided GAPPS package)
- Pixel animated navbar (with on/off switch)
- Pixel sounds
- Pixel accent colors
- Pixel bootanimation with sound
- Rounded icons
- Google Assistant
- Night Light
- Night Light Brightness
- Choose between dialer and voice assistant in lockscreen
- Hide next alarm from expanded status bar and lockscreen
- Disable the boot animation sound
- Secure lockscreen (disables status bar pull down, quick settings tiles, power button and lockscreen shortcuts)
- Double tap the lock icon on the lockscreen to sleep
- Longpress power button while screen off to trigger flashlight
- Hide bluetooth icon when disconnected
- Volume steps
- Quick unlock pin/password
- Remove album art from lockscreen
- Date in status bar
- Battery bar
- Smart pulldown
- Volume button controls media volume anywhere
- Change navbar height
- Screenshot tile
- Caffeine tile
- Sync tile
- Reboot/recovery tile
- Music tile
- USB Tethering tile
- NFC tile
- Quick settings custom rows/columns
- Turn on/off mobile data with single click on collapsed quick settings
- Status bar ticker
- Separate ring and notification volume
- Specific color for 100% charged battery
- Prevent accidental wakeup
- Remove settings suggestions
- Show WiFi SSID in status bar
- Show carrier label in status bar
- Hide carrier label on the lockscreen (or rename to whatever you want)
- Hide the low battery warning notification
- Remove the orange status bar and navigation bar when in battery saver mode
- One hand mode
- Choose doze brightness
- Adjust animation scale precisely with a slider
- Dynamic nav bar color (changes color to the same of status bar)
- In-call vibration options (on connect, on call waiting and on disconnect)
SafetyNet
The ROM is already designed to pass SafetyNet out of the box. No need to lock the bootloader (which I advise you to do ONLY on a pure factory image install) because the kernel has the patch for it. If you want root, you'll need to install Magisk, which comes pre-rooted. Then, enable Magisk Hide in Magisk Manager, hard reboot and you should be good to go. Also, do not enable busybox in Magisk Manager, that will cause you to randomly lose root. You'll get all you need to know on the Magisk thread.
ViPER4Android/ViPER4Arise
The ROM is designed to work with both ViPER4Android and ViPER4Arise out of the box without the need for SuperSU or any Magisk module. The SEPolicy already contains the necessary permissions for them to work even in Enforcing. All you need to do is flash the package of your choice.
Installation
You will need latest radio and latest bootloader
Latest TWRP recovery is highly recommended
If you want HDR to work, you will need to keep Google Camera 3.2.045 (all newer versions won't work)
If coming from any other ROM
- Backup first... always backup first
- Wipe system, data, cache and dalvik cache
- Install DARK ROM
- Install provided GAPPS (mandatory)
- Install root package of your choice (I recommend Magisk)
Enjoy !
If coming from a previous build of mine
- Backup (you know it)
- Dirty flash DARK ROM
- Install root package of your choice
Enjoy! (if anything goes wrong, clean flash)
Download
To download the whole ROM
Mido
To download GAPPS and Extras
Extras
Translations
If you want to help translate the ROM in your language, here are my Crowdin projects. Let me know if you want me to add another language.
SystemUI
Settings
CMParts
Donations
Please consider a donation if you like my work ! I spend a lot of time and effort working on this, so if you can spare a few bucks, please buy me a beer (so I can relax when I'm stuck on a stubborn bug) or a coffee (so I can work on it later in the night). If you decide to do so.
Source code
GitHub
XDA:DevDB Information
Dark ROM, ROM for the Xiaomi Redmi Note 4
Contributors
Xaif, Dark_Eyes_
Source Code: https://github.com/darkeyes84
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.x
ROM Firmware Required: TWRP Recovery, Unlocked Bootloader
Based On: LineageOS
Version Information
Status: Nightly
Stable Release Date: 2017-10-31
Created 2017-10-02
Last Updated 2017-10-31
Extra Packages
On the server you will find a file named ExtraPackages_date.zip which contains a few apps that are not available out of the box in my builds (see list). You won't have to flash it every update, since there is a survival script. I suggest you open the zip and remove the files you don't need before flashing it the first time.
Here is what's included:
- Calendar (AOSP Calendar)
- Contacts (AOSP Contacts)
- DeskClock (AOSP Clock)
- Dialer (AOSP Dialer)
- Eleven (LOS Music player)
- ExactCalculator (LOS Calculator)
- Gallery2 (AOSP Photos)
- Jelly (LOS Browser)
- LatinIME (AOSP Keyboard)
- Messaging (AOSP SMS)
- Recorder (LOS Recorder)
- Snap (LOS Camera)
- Stk (AOSP SIM card toolkit)
- Trebuchet (LOS Launcher)
Note that if you install my GAPPS and the complete Extras package, you'll end up with two Phone app and two Contacts apps. Simply delete the GoogleContacts and GoogleDialer in the system/priv-app and reboot. If you choose to use the AOSP Dialer instead of Google Dialer, you'll need to go to Settings/Apps/Gear Icon (top right) and choose the AOSP Dialer as default phone app, otherwise you won't be able to make calls.
Screenshots please
Gr8 ROM,Shld try by everyone cos very stable and powerfully build,Magisk works perfectly(not pre-rooted) and substratum support with pixel like environment plain and neat,JIO works perfectly,Bugs pls comment below, Better battery life, REVOLT recommended for high performance with beautiful battery life use recommended #DARK GAPPS,WATCHOUT this could change ur phone..
---------- Post added at 05:25 PM ---------- Previous post was at 05:24 PM ----------
Bannu0550 said:
Screenshots please
Click to expand...
Click to collapse
Pls check post
Great work bro
Fingerprint settings will crash if u try add fp without previously setting up a screen lock separately....so first setup screen lock then add fp...both should be done separately
mondalakash said:
Fingerprint settings will crash if u try add fp without previously setting up a screen lock separately....so first setup screen lock then add fp...both should be done separately
Click to expand...
Click to collapse
I missed the chance of trying that after first setup. But during first setup, I setup the screen lock and fingerprint together and it worked fine.
Used this rom with my Nexus 5, was awesome! Cant wait to rock it again, thanks Dev!
Does stock launcher support icon pack?
exodius48 said:
Does stock launcher support icon pack?
Click to expand...
Click to collapse
No it doesn't.
Xaif said:
...
Click to expand...
Click to collapse
Did u take permission from Dark Eyes before using his work?
KingRaheel said:
Did u take permission from Dark Eyes before using his work?
Click to expand...
Click to collapse
Yes, I took his permission and he is happy because I am using his work.
Xaif said:
Yes, I took his permission and he is happy because I am using his work.
Click to expand...
Click to collapse
Hi, can we use open gapps as well apart from mandatory gapps mentioned in op?
cosmickamal said:
Hi, can we use open gapps as well apart from mandatory gapps mentioned in op?
Click to expand...
Click to collapse
Try to use the one which includes Keyboard. I tried nano but there was no keyboard on first setup.
cosmickamal said:
Hi, can we use open gapps as well apart from mandatory gapps mentioned in op?
Click to expand...
Click to collapse
There is no Launcher in this ROM because we have made it minimal. You need to install GApps provided in OP to make it working.
OK, below is my review with this ROM. The experience may vary from user to user. I am just an average user with a keen eye for battery and performance.
The ROM without the Extras zip includes very little applications that is good.
The included GApps, I think, is necessary, as using standard Nano GApps, I ended up without a keyboard on first setup.
The read/write performance of the ROM is really good. I was amazed by how quickly it restored my messages and calls as compared to other ROMs.
The app opening speed, however, seemed a little slow. It has some kind of lag. Like, it waits for half a second when you click an icon and then loads the application which seemed annoying sometimes.
The built in camera is just average like with other ROMs. Google Camera Port is working fine with it.
The battery timing is good. But, I think, could have been better for idle.
Overall, a good combination of features and simplicity. The animations are smooth enough for my brain therapy.
Xaif said:
There is no Launcher in this ROM because we have made it minimal. You need to install GApps provided in OP to make it working.
Click to expand...
Click to collapse
Thanks. Installed Dark Gapps without any hiccups. Nice Rom.
Xaif said:
There is no Launcher in this ROM because we have made it minimal. You need to install GApps provided in OP to make it working.
Click to expand...
Click to collapse
Dev will this rom become official?? And pixel boot amination is not present
mondalakash said:
Dev will this rom become official?? And pixel boot amination is not present
Click to expand...
Click to collapse
I am the maintainer of this ROM and asked the dev if I can build it. He has given me permission to build it but to make it official is not on me.
Let's wait for sometime and see if he allows me to make an official build. But there is no difference in official and unofficial so you can use it without any hiccups.
Please upload your default boot animation so that I can check it with the source.
Xaif said:
I am the maintainer of this ROM and asked the dev if I can build it. He has given me permission to build it but to make it official is not on me.
Let's wait for sometime and see if he allows me to make an official build. But there is no difference in official and unofficial so you can use it without any hiccups.
Please upload your default boot animation so that I can check it with the source.
Click to expand...
Click to collapse
It says nightly so frequently will the builds...and I think rom uses Delta updater app.
Good to hear.....cheers

The NAVBAR tint issue on OOS/OOSB permanent & stable solution [Not with Navbar Apps]

The NAVBAR tint issue on OOS/OOSB permanent & stable solution [Not with Navbar Apps]
HELLO WORLD!​I have got my OP5T a week ago, so I have been tinkering around with the device and trying to address the issues that we are as an OP5T ower is facing, So here is the most common one u can solve.Although device wise it is a beast no doubt at all, but everyone has a fault.
My Device:
OOS 5.0.4 Stock kernel
rooted
Disclaimer:
Your SafetyNet won't be passed due to the mod, but there is a one-click solution if u want to pass the SafetyNet just to a certain thing.Who don't care about it give it a try...If u want to pass the SafetyNet just for the time being disable the xposed zip (don't delete) in magisk and do a normal reboot. you are good to go...
Pre-Requisite:
- Rooted OP5T[ Of-Course MAN!! ]
- Magisk 16.0+ [Thread link:https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445 ]
- Magisk Xposed-Framework Module [Thread:https://forum.xda-developers.com/xposed/unofficial-systemless-xposed-t3388268]
- Xposed-magisk apk [download from the Xposed-Framework Module thread]
- PerfectColorBar xposed Module [http://repo.xposed.info/module/com.flarejune.perfectcolorbar]
Instructions:
- After Rooting your device download all the required files
- Install Xposed-magisk apk
- launch magisk and flash the xposed-magisk module in magisk & hit reboot.
- Install perfertcolorbar Xposed module & activate it & do a normal reboot don't do a soft reboot.
- open the PerfectColorBar app & enable the exact setting as shown in the image.
- now open to TWRP clear cache and reboot.
- Just to be safe add xposed & perfectcolorbar app not to be optimised by OS in the battery optimization section.
One thing i have noticed after a reboot tinting the nav ber doesn't so just open the app head over to the ColoringInputMethod Window section check and uncheck the 1st option.done!!!:good:
Settings:​
See the attachment.
Can you post some screenshots with in the few apps like...
Whatsapp, Telegram, Instagram etc... so we can see it is working flawlessly.
As i hate that white navbar background in all the apps.
Normas Interruptor said:
Can you post some screenshots with in the few apps like...
Whatsapp, Telegram, Instagram etc... so we can see it is working flawlessly.
As i hate that white navbar background in all the apps.
Click to expand...
Click to collapse
Sure...
The stock software should handle the navigation bar this way... having that white bar in exampe Spotify is real ugly. However I'm using gesture navigation nowdays so the navbar is irrelevant for me
I'm getting issue with this... I'm using Gbwhatsapp and i have enabled online popup there and it's appear always on top of the screen. When i use this module as per the instruction in the OP that online popup of the whatsapp is showing at the bottom along with i'm using highbrightness mode app also and that app is also not working if i use that module.
can't about other apps but it will crashing with some apps.
Result: Uninstall this module to make all apps stable.
by the way thank you for posting something new.
Normas Interruptor said:
I'm getting issue with this... I'm using Gbwhatsapp and i have enabled online popup there and it's appear always on top of the screen. When i use this module as per the instruction in the OP that online popup of the whatsapp is showing at the bottom along with i'm using highbrightness mode app also and that app is also not working if i use that module.
can't about other apps but it will crashing with some apps.
Result: Uninstall this module to make all apps stable.
by the way thank you for posting something new.
Click to expand...
Click to collapse
O... Due to cache some time it force close the few apps.. But like 1 or 2 within 5-6 days... But other than that no issue here.. Btw is it possible to post a screenshot of ur issue

Categories

Resources