yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hhadi:
Hi

After using this rom on my unlocked Helium for a while, I should say it is amazing. Battery life is phenomenal and everything works flawlessly. The challenges I have though is as the following:

Sometimes app notifications do not show up when sleeping. probably has to do with deep doze.

There is no one hand mode in the rom which is necessary for this huge phone.

UnifiedNLP does not work properly. Location services based on GSM network etc. do not speed up locking. I never install google spying craps on my phone.

Battery percentage is not accurate. Some times it does not drop for one or two hours then drops by 10 percent or so.

Can anyone comment on these issues? This rom will stay my choice on Mi Max.

BTW, anyone knows how to decrease shutter speed for more than 1/4 second in any rom?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
That's weird cause I don't have any battery monitoring app actually. I don't see any use of it... Could you track which app? It might be some app that watch battery level to shutdown that app when some battery level is reached or so...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
02-22 06:04:44.847 5714 5714 W GeckoBatteryManager: Already started!

Part of Mozzila Firefox... Probably nothing to worry about...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
It's standard Firefox without addons. Wondering if rest of users who has that battery drop have installed Firefox? Anyone with battery drop bug could answer? Oh nothing to worry about... Good than...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
- Settings: Fix unable to set User profile picture

hi dear nijie8, sorry for the off topic... how to fix this bug? I meet it on NitrogenOS too...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
You can't. The dev needs to fix it. It was this denial IIRC:

https://github.com/nijel8/android_d...5e8c0a2348aaffa85d855/sepolicy/priv_app.te#L4
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
Is the network traffic speed display feature on the status bar taken out of the 2/21 build? Can't find it under settings and status bar. Thanks
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It's there...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
So strange. I don't see it. The past version had it and the one before that. I think I'm going blind or crazy. Attaching screenshots
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Siputih:
Go to setting, status bar, and network traffic
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] laolang_cool:
thank you! I will report the bug to rom maintainer
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mirbeksm:
Hello everyone.

I think I have a noob problem.

I got bootloader officially unlocked. Installed official TWRP.

Then proceeded to flash this ROM as instructed in first post. Played around for a day, setting up and configuring.

Then I wanted to try SlimRom. Before flashing I performed backup using TWRP. Flashed SlimRom according to instructions on website. It seemed too experimental for me(No file manager app, no SMS app, etc). Restored backup using TWRP.

I had a small problem after restoring, lock screen pattern was not recognized. I believe it was because I changed grid size to 4x4 or 5x5(SlimRom allows to change lock pattern size). So I deleted some files from system partition following this guide.

The system is very smooth. Everything is working fine. Only once, there was no sound at all during call. Phone just went silent. I had to restart phone.

Problem is, I cannot seem to get Titanium Backup to work. Tried to uninstall/reinstall Google Play Books several times.

It can perform backup successfully. It does restore successfully, but the UI gets stuck at "Restoring". If I force close TB, launch again, and run any command, it says it is already busy.

If I reboot phone, the backup has been successfully restored.

I did try with stock SuperUser, it gave me errors. I dirty flashed supersu 2.79, same problem.

I am not sure, I think I also encountered this situation once. I uninstalled it, TB seemed to have uninstalled it OK, but after reboot the app was still there.

I'm on 20170212 version. I want to upgrade over weekend and I just wanted to verify my steps.(Because there are tons of different guides around, and I don't know which to follow exactly)

Currently TWRP displays in logs (among others):

I will follow nijel8's post to decrypt it.

Follow the first post to flash latest version. I will be formatting partitions. I will be using opengapps full package.

To replace SuperUser with SuperSU

- Flash addonsu-remove-arm64-signed.zip from official LineageOS extras page.

- Flash SuperSU 2.79 Recovery Flashable.zip.

Should I be remounting system in rw mode before restoring apps using TB?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
Thank you for your response but as you can see from my screenshot on my original post, when i go into settings and status bar and the network traffic setting is missing. Everything else seems to be working just fine.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] gitdroid:
What version installed in your mi max?

I am using latest one, version 20170221 and i can found it in my settings, screenshot below
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
All your problems doesn't exist on my device and I don't use SuperSu. Something is wrong with your setup.

Don't install SuperSu, try it first with built-in su... it's working.

Dirty flash again, check md5, clean cache/dalvik. If doesn't help start over with clean flash.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] diwakar2030:
Is anyone having issues with mobile network connectivity. I get very low network on Lineage but MIUI gives full bars for same network. I have flashed latest MIUI firmware 17Feb. I tried different firmwares but all have same issue. Anyway to fix this?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] souravipc53:
Is there anyway to change the minimum active big cores without using kernel adiutor? (currently 2 cores are active, I want to lower core count to 0)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
Problem!!

i know network signal is low its issue in every nougat ROM! No fix is there! i think there will be problem in LineageOS source code!

Please [MENTION=4399618]nijel8[/MENTION] see into this and battery drop one!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Changing minimum big cores require changing this value:

This value is defined in ramdisk during system boot so to change it you can do one of these:

- create a script named for example "91corecontrol" (that name is kind of important, especially first 2 digits) to be executed on boot and place it in /etc/init.d containing

I'm setting 444 so that no one else can change that value - it should help it survive turning screen off and on (not rebooting)

- create that same script and use some other means to execute it (for example Script Manager - smanager)

- edit file "init.qcom.power.rc" in ramdisk (looking for value " write /sys/devices/system/cpu/cpu4/core_ctl/min_cpus 1" and change that to "0" - to do that you have to decompress boot.img change the file content and compress it back (all that can be done using CarlivImageKitchen) and finally flash it back to phone in twrp or in fastboot mode.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] carnby24:
Set permission to permisive at se
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
[MENTION=4399618]nijel8[/MENTION]

Firstly thank you for your effort making this ROM.

May I ask how to make Google Pixel Launcher work perfectly?

The wallpapers changing in launcher always keeps stopping, and slide the left launch Google doesn't work.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Skalexs:
Install wallpapers of google from playstore. Install also google app from playstore.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hhadi:
Anyone with same problems??

Add not working headphone buttons to the list.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pokipokipxorn:
Juz want to say thank you for making the effort to improve ROM features.

Nougat problems is due to lineage itself or lack of xiaomi sources? Does miui experience the same issues?

BTW, Mi Max 2 is slated to be launched May/June. There's also another monster battery backup phone, Lenovo P2 Snapdragon 625 5100mAh with full sources, root & TWRP but no ROM yet
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
Thanks, the wallpapers is now fucntioning.

But the swipe left still didn't open Google (already downloaded & setting up Google), setting show google app on/off in Pixel Launcher doesn't help. Any solution?

Update: OK, install Pixel Launcher as system app fixed the swipe left function.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
OK, guys test these Battery Drop Fixes... Just flash the one for you device, no any wipe needed. After day or two tell me if you still see sudden Battery level drop in status bar.

lineage-HYDROGEN_[Battery-Drop-Fix].zip

lineage-HELIUM_[Battery-Drop-Fix].zip
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
Hello Gitdroid, thanks for answering. I am on the 20170221 version also. When I go to the settings in status bar, the network settings are just not there. I posted a screen shot earlier but here it is again. I have tried clearing cache and Dalvik cache and that did not help. I upgraded from the 0218 and before that 0212 version but I had Network traffic in both cases. Just after the latest update to 20170221 is when I lost it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
Will do, thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Something is really wrong with your setup, this screenshot looks as it came from old Lineage before dev team rearranged the Settings layout.

"Network traffic monitor" should be where "Duoble-tap to sleep" is(last, 9th setting)... and that "Duoble-tap to sleep" should be under Settings > Gestures!!!

BTW fix for "No Notification LED on missed calls" bug in next build... waiting for feedback on "Battery level sudden drop" fix before releasing...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
If my "Battery level sudden drop" fix proves to work(waiting for feedback...) then min_cpus must be 1... We'll see...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
Can i?

Can i flash this in other nougat based ROMs? As All ROMs have this issue!!!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Same question here, but when you take a peek in the zip file, there's a boot.img file means kernel file so it may not be compatible with other roms. [MENTION=4399618]nijel8[/MENTION] can answer better
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Probably not as it's whole boot.img in this patch. I'm testing it(first night was good, no battery drop) and hoping for nijel to tell me what he did there as Ill be going back AICP at Sunday.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I'll keep it a secret till proven to work. You can install it on any custom rom derived from Lineage sources but please report here if working or not. I want to make sure it really works...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
Can I use it on Ressurection Remix from sawdoctor? Don't know whether it is derived from LineageOS sources

Sources mentioned in the Ressurection Remix thread

Device Source Code: https://github.com/TheStrix/android_device_xiaomi_hydrogen

Kernel source code : https://github.com/CyanogenMod/android_kernel_xiaomi_msm8956/tree/cm-14.1
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] keithleyson:
Please add OMS in next version. ???
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
I find an option in your ROM "enhanced 4g LTE mod" - is it volte? Or how it's work? Should I enable or disable it in Russia?)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
It's VoLTE. It might not work on some networks though, I'm supposed to get VoLTE on mine but it doesn't work, I have to disable it to get calls to fall back on UMTS or GSM.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
PLEASE!!!!!!

[MENTION=7366109]marchetto96[/MENTION] Is NitrogenOS derived from LineageOS Sources? Bcoz i want to try the battery fix by [MENTION=4399618]nijel8[/MENTION]! Please Tell ME ASAP!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] man2106:
i already tried it wont boot
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] marchetto96:
NitrogenOS is AOSP
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Is it any way to boost speaker phone volume? Without using custom kernel.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] adiif1:
+1

Wysłane z mojego Mi Max przy użyciu Tapatalka
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
speaker phone volume is already boosted enough without distortion...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
Thanks Nigel, I re downloaded and re installed per your suggestion earlier and the Network monitor is back. So strange that a corrupted download would install and work fine with some things out of place or missing. Well, looking forward to the next build. Thx again.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] bindee:
Tried to install lineage-14.1-20170221-UNOFFICIAL-helium.zip using TWRP 3.0.2 and "Zip file is corrupt" error occurred. Downloaded zip file twice and MD5 matches.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] aaryan45:
Tell ME?

[MENTION=7366109]marchetto96[/MENTION] What Should I Do? bcoz NitrogenOS also has battery drop bug?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] troyinjapan:
Try updating to nijel8's latest build of TWRP.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] bindee:
Thanks for reply. Tried with TWRP 3.0.3-2 from https://xdaforums.com/mi-max/development/recovery-twrp-3-0-2-2-hydrogen-helium-t3512981 and still same error.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] eseregin:
Hope you do have helium, not hydrogen?.... Sure?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
What should I do to change it manually?

I have mobile VOIP app, that have functionality to boost speaker phone volume, it can be much louder.

I want to make same thing for GSM calls.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] bindee:
Yes i have Helium
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hhadi:
Hi

Thanks for the fix. But I should say this did not fix my battery drop. I am using Helium. It might have made my battery life slightly worse even. I am not sure though.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I don't have the battery drop problem, I've got a stuck battery percentage. I charged it for two hours and after using it for an hour, I'm still seeing 34%.

I also get a bug where the date and time are reset back to 1970 after a restart if auto date/time is enabled. I have to set the date and time manually.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] bindee:
It's related with external SD card. When install zip from the internal storage it works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] souravipc53:
I am not quite sure but I think it has to do with kernel unable to detect battery consumption correctly may be. My helium stays at same battery % for hours before suddenly dropping 2~3% at once . Then it stays there for another 5 ~6 hours or more then again drops 2~3 % at once.

Unfortunately I have yet to face the sudden battery drop to 0% as with heavy usage It hardly consumes 60% of the battery and i opt for full charge at night
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] KiranP23:
Currently does all 8 cores works for Helium ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] seti007:
I don't have the battery issue but have the date reset bug. Goes back to 1970 totally freaking out WhatsApp.lol. Have you found a fix? Thx
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] neoavi7:
Try changing band mode to different settings and you may find one which works reasonably well.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
I find that you can see the home screen wallpaper when clicking the empty dish from quick setting from lock screen, can this be fix without tun off the easter egg from quick setting?

Also the wifi, cellular data, bluetooth, airplane mode and others can toggle on/off from lock screen using the slide down quick setting, is this intentional?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] luminouche:
Pinch - zoom is not smooth in Dolphin browser.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] eseregin:
It's smooth on Chrome...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Yes, they all work on default Helium rom.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Kris Chen:
I had no idea whether it was a bug or not. What happen to me during installing ROM 0222: After finish flashing this ROM, I rebooted to system and started to setup system.

Everything was going fine but there was FC pop up after wifi setup. I turned off phone and tried to setup system but no lucky. So I inserted a SIM Card inside the phone and miracle happened - I passed all setup.

Is it a must that SIM card should exist in the phone to pass setup wizard ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Must be a bug I wasn't aware of... Haven't done Setup since the first install last year... Setup Wizard apparently still buggy...

https://review.lineageos.org/#/c/156907/ and alike...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
No bugs for me so far on the 0227 release, but the Files app is missing.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] eseregin:
Mine too became allergic since your builds 8-) Thanks!

---------- Post added at 09:38 AM ---------- Previous post was at 09:36 AM ----------

Yeah...

Ed Carrigan wrote

Jan 18 4:30 AM

Patch Set 3:

There has always been an issue with GMS if there is no network. It gets stuck. We added a bypass to GMS, but things get worse with every update. We need to just use the documented wizard manager. I'll get to it eventually. :)

---------- Post added at 09:40 AM ---------- Previous post was at 09:38 AM ----------

Looks like missing.

Though i use Root Explorer anyway...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Lineage team removed it completely and there will not be any replacement. They will be improving built-in AOSP DocumentUI to serve the purpose... No root access of course.

I strongly recommend MiXplorer... The best file manager ever!!!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
THX for the link to MiXplorer, it will replace root explorer and andftp for me in one app :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] barome:
I prefer X-Plore ! The best since a while
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Installed latest rom and suddenly LTE is gone and signal strenght for both sim cards is low to medium when 5 minutes earlier it was full strength. Also transfer speeds over HSPAP are down to about 30KB/s

It happens with and without helium firmware upgrade 7.2.16

Will try earlier firmwares.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] luminouche:
No more file explorer at 1st boot ?

So, how can we install another file explorer ?

Internet connexion & Google Play ?

Usually, i took file explorer to install root explorer, then delete it from /System.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
MiXplorer is good, thanks to nijel8 for the recommendation. I'm also a big fan of Ghost Commander, strictly for fans of dual pane file managers like the ancient Norton Commander.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] keithleyson:
Personally still prefer ES File Explorer Pro because it has network features like ftp sftp and lan
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Personally still prefer Total Commander.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Just reporting, I was testing battery patch for 3 days and I had no battery drop. I'm back on AICP so won't be able to test longer.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Settings > Storage will get you started...

EDIT: Just noticed they put new "Files" shortcut in launcher drawer pointing to DocumentUI as replacement for the removed file manager
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Could u tell me what you did with battery drop fix? Cause your boot.img won't work with AICP.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Mixplorer also has them, FTP, FTP over TLS, SFTP and Samba :) Additionally it has a HTTP and FTP server.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Definitely not the fix...

https://github.com/nijel8/android_d...mmit/b39f19759c967717d4d1af11211ff4d9480f9678
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Well I will edit it and will see if battery drop will happen and report if. Thanks.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
So for helium it would be:

write /sys/devices/system/cpu/cpu4/core_ctl/not_preferred "1 0 0 0"

to account for 4 big cores, yes?

Can you explain how does that affect battery counter and what exactly "not_preferred" setting does?

"Don't hotplug cluster's first core" - does it mean that if we never disable cores 0 and 4 (first core of bot clusters) then the battery counter problem disappears?

Why does that affect it?

Will that setting affect hotplug and prevent us from turning off whole big cluster?

[MENTION=4399618]nijel8[/MENTION] It seems that my problem with LTE after flashing latest rom was caused by some freak LTE network blackout, because it works now without any changes :) Sorry for bothering you with incorrect report.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Correct

not_preferred means core_ctl will ignore cores set to 1, they will always stay online. It needs this change in kernel... not present in any sources but mine https://github.com/nijel8/android_k...mmit/3dced3f55bfbea298dacc081c81b0328a63b2801

To tell you the true I am not exactly sure it fixes battery drop but it fixes battery stats which probably affects the other, seems like it... See this https://xdaforums.com/showpost.php?p=71226075&postcount=230 Tell me do you get that cpu4/cpufreq read error with helium 4-core cluster? Also see the link in marchetto96 quote which maybe is the real fix for battery drop, testing it now.

Not sure... probably will... But why do you want to turn off big cluster completely!? I have ran it cores on and off and haven't seen any benefit in battery usage. One idle vc offline core wont make any difference... but will keep userspase services and apps accessing cpufreq stats and governor happy...

NP... Good to know...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
So one always active big core on hydrogen doesn't effect battery life, correct?) No need to turn it off?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
It seems so. I have tested various active core configurations and have not notice any definite trend with more vs less cores active. Probably one permanently active core takes so small amount of power it is not worth it to disable it at all.

I was all for disabling all not needed cores but it seems I was wrong, the only thing to do is to tune how fast cpu frequency is increased / decreased :)

... and maybe play with voltages once some kernel that allows that actually surfaces :)

---------- Post added at 08:51 PM ---------- Previous post was at 08:50 PM ----------

"KernelCpuSpeedReader" - yes, with min_core 0 on big cluster I also get that error. If you want more "testing" send me a link on PM and will lend a testing phone :)