yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I'm trying conservative governors for both clusters to see if battery life goes up and stuttering goes down. I usually get 11 hours SOT with WiFi and LTE usage, I'd love to get something crazy like 20 hours like the Lenovo P2.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Ranomez:
So no one else encountered the Bluetooth volume levels bug I reported?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
Who said that i used TWRP for Hydrogen ?

My device is Hellium, i have BL unlocked, the device has installed TWRP already, and is carrying MIUI Greek Custom rooted Dev ROM based on Nugat. How did you get the idea that I am trying to use Hydrogen TWRP ? :eek:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
You said...Error 7 means hydrogen rom or hydrogen recovery. Choose one...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] awolbriggy:
Nice work on this rom.

Has anyone had any luck hiding root from fussy apps?

I have been using magisk, and it works for pokemon go (moderately important) - but it always fails safety net check (with the cts profile mismatch), and cannot run a sports viewing app - that is upset by root (still says... blah blah root, sorry and won't run)... Just curious if anyone has a successful method for hiding root access or removing it completely enough for stupid apps... (money ones i guess)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
Both Options are wrong. I have Hellium (4/128) and my device has already installed now MIUI Dev for Hellium. Unless it is possible to install on Helium a ROM for Hydrogen. Then, I can say, YES, I DID IT !!! :p

See screenshot of Rom used

​
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Which recovery you're using? Official? Nijel8's? I remember once I was getting somehow error 7 while installing through xiaomi.eu helium nougat twrp recovery.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
This is the

TWRP

I am using .... :confused:

See Screenshot

​
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
Try nijel8's Recovery from here.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
Can I use this TWRP with MIUI 8 ROM? Is there any incompatibility ? Because if I do not like Lineage, I would like to go back to MIUI easily .... THNX
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
As far as I know it's compatible with global miui 8.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
;)

I'll give it a try ...... You'll have update soon :)

Edit

: Confirmed, FULL Compatible with MIUI :good:

Now I am in installing process .... No faults so far, even in flashing procedure with nijel8's TWRP ..... :cowboy:

Installation finished. Probably it was the previous TWRP installed, it was incompatible with Lineage, although it was Helium Nugat TWRP. Now I'll give ROM a try. Will come back with my remarks a week, or so, later ;)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yeah... What do I know...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] careless_angel:
Hi nijel8, Could you add the patch from this link to your core? Often there is a situation where you need to download an image of a system on a PC, a flash drive is not always at hand, but the smartphone is always there. This task is handled by the DriveDroid program, but for the complete "no crutches" functionality, this kernel patch is desirable for it. I can become a beta tester) in advance thanks) https://xdaforums.com/showthread.php?t=2196707
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
[MENTION=4399618]nijel8[/MENTION]

Can your ROM support F2FS flawlessly? I'm gonna reformat my phone for you newest build.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
It can with one important exception, system partition must remain ext4. You can convert /data (along with internal storage, remember that it WILL be wiped in the process) and /cache - anyway those are the only ones that can give you any speed-up.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It does. I was running f2fs on both /data and /cache for about a month with no problems... even encrypted... in both Android and TWRP. Switched back to ext4 for /data but still use f2fs for /cache.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
Thanks for the reply, can the external sd card change into F2FS?

---------- Post added at 08:27 PM ---------- Previous post was at 08:25 PM ----------

@nijel8

Thanks, does it possible to make the system also support f2fs? Feel like to change every partition into f2fs.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
There is no speed increase in having /system in f2fs as the only advantage f2fs has in writes and /system is read only (except mostly writing in recovery).

As far as I know there is no "normal" way to format sdcard to f2fs (unless there were some changes in recovery), you would have to do that manually in terminal. Mounting would also have to be done manually, dynamic mounting daemon that supports OTG does not support f2fs I think.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
I second this, I also use drive Droid and can not mount iso out of the box. I have to create img file, then use unetboolin to flash the img from a pc with a blank img file..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
[MENTION=1549882]careless_angel[/MENTION] [MENTION=4400802]jpph[/MENTION]

Check PM
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
It is working! Thank you so much!

Btw, maybe you can upstream that patch to lineage?

Drive Droid used to work out of the box with cyanogenmod
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] careless_angel:
Answer in pm, all works fine in hydrogen, and I support the user above, it is necessary in upstream
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] obermotz:
Can you please send me this patch too? I also use Drivedroid now and then and was not aware that it is not working this ROM (I am on Hydrogen if it matters).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ktsak:
As far as I can understand, this Rom is pre-rooted. I tried to have access to root, but I've got a message back saying that this Rom isn't rooted. Do I have to adjust something in order to activate the root permissions ??????

Or I am completely wrong and I have to flash SU or something ? :confused:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] TEKME:
Just activate root in developer settings.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
What's the changelog for the 0319 release?

I was getting random reboots on your LOS and TheStrix's version, probably network related when I'm switching between WiFi and LTE in an area with weak mobile signal. I wiped data and reinstalled your 0311 version and I haven't had a reboot since, although the 1970 date reset bug is still there.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
You did read changelog?

- Bluetooth: handle bluetooth/BLE modes separately thus persisting user set state across restarts

- Phone: Fix missed call notification light turning off after few seconds in some cases

- Kernel: tune core_ctl

- Kernel: add Adreno idler for msm-adreno-tz GPU governor

- Kernel: add virtual mouse driver back (didn't fix the problem for some users having cursor showing up occasionaly)

- Base updated to official A-7.0 MIUI Global Dev 7.3.16 (update firmware if needed)

- Sync with latest Lineage sources
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
1970 bug is not ROM bug, You have some firmware partition corrupted... Flash firmware, if doesn't help flash MIUI with MiFlash all but data and then flash Lineage.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I've done a MiFlash flash and total wipe before flashing your Lineage but it still happened. I'm on the latest 7.3.2 firmware now with 0319 Lineage, no sign of the 1970 bug so far.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] azizak:
New kernel change is good [MENTION=4399618]nijel8[/MENTION]. can i change boot animations? do u know this?

Mi Max cihazımdan Tapatalk kullanılarak gönderildi
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
If you did not do that, disable in "Date & Time" automatic date and time / automatic time zone and set everything "by hand". Check if the problem happen persist. If you have 2 sim cards, remove one and check, switch them if it does not help. Does this happen on completely clean build, without any installed app from either playstore or offline install? Does it happen on MIUI?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
Just change the bootanimation.zip inside root/system/media folder.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
I am trying again to remove "virtual mouse bug"

1) Clean flash latest dev china miui 7.3.16 (EDL method)

2) Flashing your twrp 3.1.0-1

3) Format data, everything except external SD card

4) Flashing your lineage os 03-19-2017

5) No custom kernel, no special apps.

Will test "mouse cursor bug" with clean flashing, i hope it will leave me alone and never come back :)

Btw, your new build and kernel awesome.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
I've flashed the new release of the ROM, before wiped everything but /data partition (i.e. system, cache, Dalvik), at once flashed SuperSU and gaps, and system boots and works like a charm!

All programs, their settings, widgets etc stay intact.

As I can see within KennelAuditor, Adreno idler is already enabled by default but other tunable CPU controls yet need setting. (Have feeling it drains more battery than previously, with ramdisk flashable settings.) How, everything the same like in the previous release? (As understood except Harfix kernel which lacks Adreno idler, right?)

HELIUM 364GB ;) locked BL, Nijel's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
I've got similar issue on my Xperia Aqua on TWRP, when need using TWRP every time must manually set date and time unless flashed programs and and systems got date 1970 for very every file on disk.

However the issue occurs just in TWRP, Android itself works fine and shows right time.

(In somehow maybe it'll help.)

HELIUM 364GB ;) locked BL, Nijel's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
On boot I get:

If you look at the final decision of QC-time-services then it sets the correct time:

"03-21 10:06:48.082 416 7452 D QC-time-services: Daemon:new time 1490087208000 "

just like in your case:

"03-21 14:30:39.952 443 7540 D QC-time-services: Daemon:new time 1490077839951 "

Here is my hardware clock result:

Did you do your tests on clean system? I mean clean install with only Gapps and no user apps, not even restored from google servers?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Similar logs to mine, then. I did this on a running system with all my apps restored using Titanium Backup. It looks like the RTC device isn't wrriten to before rebooting or shutdown so it defaults back to epoch time 0 on startup, which corresponds to the 1970 date. I tried writing to /sys/class/rtc/rtc0/date, it fails with a permission denied error.

I'll make a full backup and then reflash MIUI with MiFlash, run it for a while and then restore my Lineage backup. Maybe some firmware partitions need to be initialized properly, something that Lineage fails to do.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Hell no, again virtual cursor coming back :(

While typing throught aosp keyboard it's appears and disappears in a sec.

0) Device - Xiaomi mi max 32gb

1) Clean all flash latest dev china miui 7.3.16 (EDL method)

2) Flashing your twrp 3.1.0-1

3) Format data, everything except external SD card

4) Flashing your lineage os 03-19-2017, no backup data restore.

5) No custom kernel, no special apps (only whatsapp, gmail, kernel adiutor)

I am rdy to try some fix to kill that bastard..

Could it be coz of first installation official TWRP 3.0.2-0 with bootloop (it didn't load after reboot) month ago? After that i flash your version twrp 3.0.2-0 with 0 problems.

Or EDL method "clean all" by mi flash cleaning all sectors, include recovery sectors?

Btw, mb it's firmware problem/bug?

But I tried to change different ones, 7.2.9-7.2.16-7.3.16, same problem.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
I have had this stupid black cursor appear on every LAOS and AOSP rom I have tried but since it happens so rarely I just don't mention it. It's not worth time to fix.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Dont think so, for me and most users it's very annoying.

I am ready to test some fixes, give a logs, to find the reason.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
It might be aosp keyboard bug? I remember it happened to me like once or twice(on every nougat rom)*right after clean flash while using aosp one but than I install SwiftKey and it does not appear for me.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
trying google keyboard - same thing.

Will try Swift key for a while and send feedback.

_

Update - swift key already once get's me a cursor bug.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
RTC clock is working, don't worry. Qualcomm just made it's driver or whatever read only and that's why we have TimeService to keep track of system/RTC time offset at shutdown and restore it at boot. My guess is since TimeServise and daemon are using /persist partition that's where things gets wrong and people reporting problem fixed after full MIUI flash (incl /persist) fixes the problem. I may try the sony timekeep service which uses system prop and /data (no /persist) and get rid of Qualcomm TimeService:

https://github.com/LineageOS/android_hardware_sony_timekeep

For the cursor problem I am starting to suspect the touch panel driver in kernel. Remember the dt2w issue we had b/c of the two different panels used in Mi Max? That might explain why some users have cursor issue and some doesn't, one panel driver is buggy. Take a look at this I just stumbled yesterday: https://review.lineageos.org/#/c/166416/

This might be the issue here. [MENTION=5392739]Tysovwik[/MENTION] and [MENTION=2473722]mat9v[/MENTION] I'll PM you with test builds to try out...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] KiranP23:
since ROM is stable for helium , can we expect official release ?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Ask TheStrix...

---------------------------------------------------------------------------------------------------------------

[MENTION=5392739]Tysovwik[/MENTION] and [MENTION=2473722]mat9v[/MENTION]

Let's try something else first before I start changing Lineage code...

On phone in terminal run this command:

su -c "cat /sys/class/input/input4/name"

You will get your touch panel device name... for me it's ft5x46. Now create new txt file in system/usr/idc and name it <your device name>.idc. For me it will be ft5x46.idc... Put these lines in it and save:

touch.deviceType = touchScreen
touch.orientationAware = 1

Reboot and see if cursor shows up again. If it does then open both qwerty.idc and qwerty2.idc and delete last 2 lines starting with cursor., save... Still see cursor? That should definitely get rid of the keyboard cursor...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
Hello, how compares new kernel of this ROM to Harfix in terms of power saving?

Harfix, I mean applying lineage-HELIUM_[core_ctl-Tweak].zip too.

As KernelAuditor shows the new kernel has the minimal GPU frequency 266MHz (compared to Harfix'es 133MHz), what does it mean?

As Ampere shows, it looks like Harfix has still better savings, however the new kernel probabely needs some tuning and I have too little knowledge how to set parametters and Custom Controls in KernelAuditor.

HELIUM 364GB ;) locked BL, Nijel's LineageOS
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
One minor bug, if the Font size set to small & Display size set to smallest in Display setting, the Network traffic in Status bar can't show the full font of Outgoing and incoming properly.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
I also have "ft5x46"

I did the file creation / edit and will see if it shows up. But the most I see it is once or twice a day, not constantly, so it may take some time to make sure.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I set dpi to 370, that's small enough without triggering tablet mode in some apps. No problems with the network traffic text.

Another weird bug: both IMEIs are the same, I just noticed this after flashing firmware 7.3.16. I had different IMEIs for slot and slot 2 a few weeks ago when I was on a 7.1 firmware.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Monsuta:
I've found out restarting solve this network traffic text size problem.

Both my IMEI is still different like before, clean flashing the 19 March with 7.3.16 firmware.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
Also have ft5x46. I try it all, no success, mouse cursor show up time to time (ones every typing at least).
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Nothing wrong with IMEIs, Lineage have problems reading empty slot IMEI returning IMEI for the slot in use. I have tested all available methods in Telephony framework to obtain the correct IMEI, some works once the first time and then fail. Don't think I am going to try harder on this "issue".
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Didn't have the cursor appear in the last few hours, spent mostly reading and browsing web.

About that gerrit link you posted, is Natrium a model name like Hydrogen, and if so how does it relate here? Does it use the same display touch driver?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
The change is in android native framework and it's there just for natrium guys to cherry-pick it I guess... I doubt it will be merged. Natrium is irrelevant to our issue but usually hover means cursor showing up, right? And since we don't care for hover on Mi Max (or we!?) maybe disable it will kill the cursor... That was my point...

But let see how idc files thingy works.

BTW I haven't seen cursor ever except in early TWRP...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
It probably happen only in specific apps, maybe ones that actually have the ability to use hover?

The only place I remember seeing cursor is on Cool Reader, maybe native browser also. It would probably help for all of use that have seen that problem to recall the apps and post results.

One more thing, in your instruction above to create the .idc file you have:

spaces between "=" and option name and value - does it matter if there are actually spaces?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] myxcon:
Is anybody using a BT media player with handsfree function paired to MiMax (running this rom of course). My media receiver in the car, has BT function to play music and also handsfree with the phone. Everytime I hang a phonecall via the car system, the phone hangs to a complete stop and eventually reboots.

Any...insights? Tips?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whatsek:
About the mouse cursor bug, I use xiaomi eu weeklies, they are based on china beta and I have this issue too since three weeks or so.

Verstuurd vanaf mijn MI MAX met Tapatalk
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
[MENTION=4399618]nijel8[/MENTION] does this version bootloop when dirty flashing like the previous one? I flashed the rom, firmware, supersu and systemless adaway as I do always (cleaning the caches after every step. Rebooted, it has been almost 15 minutes and I'm still looking to the LineageOS boot animation... Should I give up?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Skalexs:
Well, i have the 1970 bug too, when i boot the phone, then It auto-syncs. :rolleyes:

Anyway I dont care, just for your info
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It doesn't matter but I have reports it's not helping... Next step that hover thing...

Dirty flash is ok, don't supersu and adway... let it boot first. I am sure your problem is supersu.

Testing sony timekeep now. If works will get rid of qualcomm service and keep timekeep(funny :))
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] obermotz:
Anyone else experiencing distorted audio when recording movies (does not matter what app is used, and I am on Hydrogen using the 0319 version)?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
The 1970 bug seems to have gone away after I did this:

1. MiFlash full flash with MIUI global beta 6.10.2, an ancient release because my bootloader is still locked

2. Ran MIUI for an hour, made some calls

3. MiFlash flash TWRP

4. Flash latest nijel8 Lineage with TWRP

5. Flash firmware 7.3.16

Running hwclock shows the correct UTC time and I can now reboot or power off/on without losing time, even with network time disabled.

And about the same IMEI issue, I had correct IMEIs on first boot of Lineage but now it shows the same IMEI for both slots. At least I know it's a Lineage bug and not my EFS partitions getting hosed.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
About cursor bug - it,s happen not only by typing, a lot of other activation triggers - Press "recent", "power" hardware buttons, even scrolling up and down could show it.

It shows me for 10-100 times a day. Very annoing.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Feenfleisch:
After I install The Last update i have only the little cores online and the 2 big are only ever offline. I use a Boot.img here from the thread, but in 19.03.2017 update it work not anymore. Apps like Kernel Adiutor dont work , Please need Help. Thx!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paradise-san:
Tried that, it was a no-go. Only works wiping data partition and doing a clean flash. I'm starting to suspect Substratum is to blame, do you have any indication that points to it?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pawwaap:
Hi mates, what with the power tuning of the CPU, etc, is default settings satisfactory according to you?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] andjohn:
I had the same issue when I uninstalled Substratum and rebooted. I had to restore a backup to boot.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] the_rebel:
I recently switched from CM to this ROM and, except for one problem, love it so far.

Every so often, when I'll try to make a call, I'll get the 'Mobile network not available' error. The mobile data connection, 4G LTE, works without a problem - but I can't make a call. Can't receive a call either - for the other person it's like the phone is ringing, but no call here. I only find out this is happening when I try to make a call.

I can (temporarily) fix it by going into SIM settings and choosing network again. This was never a problem with my earlier Marshmallow based CM rom.

Please help. I tried searching for 'mobile network not available' in this thread and on google, but haven't found anything that helped.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Jerry08:
What network mode you use? LTE only? Your carrier doesn't support VoLTE I guess and you have no 2G/3G network available that's why it can happen.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
Did you flash latest firmware for your Mi Max version as posted in 1st post?

There were some problems like that with older firmwares under LAOS.

[MENTION=4399618]nijel8[/MENTION]

Eh, I spoke too soon. Today I had to make more than a hundred calls and I have seen the damned black cursor of death at least 10 times while entering numbers in dialer.

This is with file edit for touch panel.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Tysovwik:
True, this bug not a rom depended, i making clean flash purenexus today and have seen this damn cursor too (not so often as at lineage os, but time to time it is appear )