yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
I cannot change the password/pin for encryption..

In settings -security under encryption... It shows encrypted and i cannot change the settings...

That is what i faced before i did a thorough clean flash i described in my previous post...

I dont blame the rom for forced encryption...

I googled some things which led me to believe that android nougat has forced encryption..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whitelub:
Im most of the time using nijel8's builds, since a long time ago, and I ALWAYS set my pin/fingerprints at initial setup wizard. Never had any problem regarding encryption here.

And I don't remember seeing anyone having this issue around. I think this problem is in your device specifically.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
After replacing this Automagic with Tasker the issue has become hardly noticeable.

It looks like flashing anew cleanly is everything but not a solution to this problem.

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
Maybe that's the case since i flashed the build from miui 8.5.1.0
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whitelub:
Maybe you should try to use "Format Data" option in TWRP, before wiping any "Advanced Wipe" option. That way you get rid of all encryption made by MIUI rom. Then you can freely use any custom without any problem.

Be careful with your data btw, obviously..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
Hmmm... Will try this in my next flash for sure.. !!
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
It seems the issue is becoming explained. Probably background running applications are stopped when I long-press "back" physical key (which is set in Debug Options to kill foreground application if long-pressed).

It seems logical but there is some inconsistencies on the system's side:

- long-pressing "back" key should stop just one, foreground, application (and not several background ones),

- why does stopping background application automatically trigger disabling its accessibility rights?

It seems this system behaviour should be corrected, thanks :)

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Really? And you didn't know MIUI is forcing data encryption and encrypts data at first boot with hardware generated password which you cannot change. The only way getting rid of it is FORMAT data. Wipe doesn't do it. Surprise, surprise...

In case you didn't know MIUI also forces dm-verify aka secure boot which checks system partition integraty and hqngs at Mi logo if change is detected. Sound familiar? Rooting attempts....
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Haven't noticed background apps killed and it shouldn't. But sometimes it does if apps are chained together by starting one app from another due to same context I guess. Like opening CM app from Settings etc it might kill Settings too if you kill that CM app.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] ioy:
It seems "back" physical button long-press is too long, and after foreground app is stopped button's action still continues and kills background processes too

And why are accessibility rights switched off when their process is stopped? Any rationale behind this or just negligence? ;)

HELIUM, LOCKED bootloader, [ROM][UNOFFICIAL][7.1.2][HYDROGEN/HELIUM]LineageOS 14.1 by*nijel8
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Haven't seen anything like that. And I use accessibility apps all the time.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mandarthedon19@gmail.com:
Since I moved from MIUI to custom ROMs, encryption works normally for me. Everytime I boot I get one window to enter password and then normal booting.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
which window and and what step,i dont get any prompt nor i recieved any message to encrypt,i just have a phone lock after 15seconds,can you explain if its neccassary to encrypt amd if so how to do it?

thanks
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hans william:
On first boot Lineage OS we get option to activated encryption, or if you activated fingerprint scanner you'll get that option too.

Encryption exist for security reason when you lost your phone or some one want to use it or read your data they couldn't do it

If your phone get error or something goes wrong, it difficult to recover your data.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
thanks hans, i did get a finger print setting prompt but i skipped it,did not get any emcryption propmt,i have set screwen pin thats all
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
Why the lock screen visualizer doesnt get diabled when i turn on my battery saver ??

The visualizer in the music player is stopped but the one in the lockscreen keeps on running in a wierd way...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
Disk encryption is costly regarding performance and battery life (even with built-in encryption accelerator [ASIC]) it will prevent who ever gets an hold of your device to snoop around the data on encrypted partitions but it doesn't prevent him to use device (after re-partitioning it). In short usage is costly and the effect aren't really of a much use to you. It's up to you to use it or not.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hans william:
You are right Sir, it working two way encrypt or decrypt every time data in or out it must be decode by harware or software decipher so will eat battery and slow down performance.

I never encrypt my phone again

Years ago a got problem with encryption, my phone get error and locked up, the only way was to hard reset my phone and reflashed in EDL mode and my data gone forever.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
miui 9 is here. 7.8.24 [MENTION=4399618]nijel8[/MENTION] give it go? for testing of course :P
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
hi,anything specialin mihi9 i tied 7.8.17 disnt find anyrhing very exciting apart from maybe ringtones and themes,the only thing i like in china rom is dast downloading speed

---------- Post added at 12:33 PM ---------- Previous post was at 12:31 PM ----------

there is a bug for helium models of low sound output thru speaker as well as headset which is not addressed,is it gone in this update
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] hans william:
Could you gave me the link Sir, I want to try flash it on my helium.

Edit

PS I am sorry Sir, I think that new MIUI 9 based firmware so I ask download link
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Seems to be a ringtone bug, I set all ringtones and notification sounds to None because I have a smartwatch for all that. Upon rebooting, all sounds are set back to the default tones.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
That's how MediaScanner works making sure you have ringtone set so you don't miss calls, sms etc. Just zero down notification/ringtone volume...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pehoko:
I will give a try to offiicial miui 9 of course as secondary rom with dualbootpatcher, tried some "customs" miui 9 but I am not impressed at all. Only advantages of miui are some extras and good camera. I was shocked when just take my new phone and learned, that my data is encrypted without any permission given from myself ... and I can't touch it without miui, this was insane.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] rsrohit315:
The encryption problem is not because of miui 9 or lineages... It is a bug in twrp.. Spread throughout many devices... It mainly happens.. When u flash Fastboot rom and then u try to switch on outer custom roms... But once u cheap wipe everything after Fastboot rom... The encryption will be removed.. And ur phone will never be forced encrypted again.. Unless u flash Fastboot rom again

---------- Post added at 08:19 AM ---------- Previous post was at 08:15 AM ----------

Forced encryption has nothing to do with miui 9 or lineages OS....

It basically happens when u flash Fastboot rom and flash custom roms later... It happens because of a bug in twrp which is spread through all the devices... But after u format data when u r done with Fastboot rom... Then it will never encrypt ur phone again... Unless u flash Fastboot rom again..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Don't know where you get all this from but if MIUI's qcom.fstab has "forceencrypt=..." flag for userdata partition then sure MIUI has everything to do with force encrypting it on first boot.

TWRP is the one that has nothing to do with encrypting, it just does decrypting.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
there is a encryption message when i flashed the fastboot rom thru mi flash tool, miui does encrypt data,and that probably why if i install twrp it wont mount internal storage unless format data is done
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] pehoko:
this is from official miui rom:

dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,barrier=1,noauto_da_alloc,discard wait,check,forceencrypt=footer,reservedsize=128M

and this from "casual custom rom":

/dev/block/bootdevice/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,noauto_da_alloc wait,check,encryptable=footer,formattable,length=-16384
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] andjohn:
Any update to this awesome ROM?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
This weekend maybe...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Anyone got the latest Google Camera with HDR+ to work? I've tried a bunch of versions on this ROM and they all force close when I try to use the back camera for photos. Front camera photo/video and back camera video work fine though. It's supposed to work with Xiami Snapdragon 65x devices.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] MM.626:
https://xdaforums.com/mi-max/how-to/google-camera-hdr-mi-max-t3665357, I have tried it and hdr+ works but you have to completely remove every Google camera package from /system and /data in order to install the apk.

But without 120fps slow motion
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Thanks! I tried the APK in the Redmi Note 3 forum and the rear camera now works, whereas the one in the main Xda news article didn't. It crashes once in a while but HDR+ works.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] jpph:
hi, last thing that is buggy for me is live display, it goes time to time to cold color during night, I have to force night mode. location is enabled, I do not understand why it goes cold color during night... if anyone have an idea...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Confirmed, buggy...?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
Be sure to add 3 finger screenshot and hw backlight on press feature too in this update !!

Thanks in advance ...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Be sure not to...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
(haha !! :laugh:)

Please man !!

Add these features to the ROM

Should be a piece of cake for u .. Isnt it ??
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] HannibalLecter:
follow the thread and the man.

He does not add stuff judging by whether it is a piece of cake or not.

He adds what he deems absolutely necessary because stability is his number 1 priority just as safety is for CrazyRussianhacker :P

for all the bells and whistles use XenonHD by Davehimself or RR by Romfactory. Their ROMs are based on this ROM.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
3 finger screenshot - useless

hw backlight on press - pointless
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] k4rn8g3:
Ok.. Will keep that in mind ...

Anyways guys ... Eager for the new update !!

Wonder what's new in the next update ...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Nothing major, just catching up with official 14.1 code... It's 15 time...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
It's been like that (buggy) from a day one it whose written (some 3 years ago). Just disable "night mode" & restart.

Funny thing is live display doesn't show its bugs once you configure it & leave it alone (don't touch it any more) then it just works.

Best regards.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] lamjeff:
Hi ,

Did anyone encounter the phone auto switch off when battery down to 10% ? I am using the latest rom....Tks

Jeff
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Confirmed, happened to me couple of times at exactly 15%(low battery threshold) and less. Keeps powering off till charger is plugged in. Hope have time for debugging and fixing it.

Till then keep your battery over 15% charge.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whitelub:
Been using your rom for a while and most of the time my battery goes below 15% and I have never faced any power off/rebooting.. Thats really strange.

What I have been facing is the already mentioned LiveDisplay turning off randomly at night..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Figured it out... What we see is the battery Over Current Protection in action which zeroes the capacity when battery not able to supply current and voltage needed for the load.

I did some tests, fully charged battery and let the phone idle with bt, wifi, gps and screen on till full discharge. That way battery was able to discharge to 0% with no problems. Even was able to take screenshot at 1% charge. But if I try to run any power hungry task at about 12% and below OCP triggers and phone powers off not able to restart it without plugging charger. That deep dive to 0 on the screenshot at about 10% is exactly that... launching Chrome.

So this could mean two things: battery is wearing or OCP is too aggressive. Probably both. I'll see if I can tweak OCP thresholds in kernel without compromising battery life. But that is not my priority right now.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
[MENTION=1542421]nijel[/MENTION] will the changing of OCP affect battery life,since i guess its a safety measure to cut off battery in case of low power
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] zharkoy.oleg@gmail.com:
Antutu 3Dbench glitches

MiMax Prime 3/64 with latest LineageOS 14.1 r.08-16-2017 clean install

I run Antutu 3D and i see glitches:

on some objects there are no textures, instead of textures white or black color

sometimes the light is illuminated, the whole scene is white
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] souravipc53:
[MENTION=4399618]nijel8[/MENTION] why not just keep the OCP as it is. I am telling you this because I think it has been put into place to protect the battery from deep discharge.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Arti42000:
[MENTION=4399618]nijel8[/MENTION], you have said that you are going to implement EAS and OMS technologies in ROM

Any movement in these directions?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Don't know, depends on how Xiaomi have set it up. If it's overprotected then relaxing it a bit wont hurt.

I am not even sure I will have time to research and do it eventually so don't worry. And like always if I do it it will be with enable/disable setting by user choice.

Too late for this with A-8 on the table. Besides EAS is lost cause b/c there is no specific msm8956/8976 energy profile available for it to work as intended. Nobody will make one so forget about it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Woohoo thanks nijel, gonna try this :)

Anyone here running the official RR based on this ROM? Is there a big performance difference? I was thinking of switching because I miss Omniswitch and short recents on RR compared to the usual app cards on stock Android.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] afridi.shahriar:
[MENTION=4399618]nijel8[/MENTION] , You build kernel source for oreo, right?

But, no oreo builded rom for mimax for anyone.

Will u maintain this device with Oreo-8.0 ,or not?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
[MENTION=1542421]nijel[/MENTION],i was just check the lineage update option in settings,so will the updates be direct ,just want to know the concept behind it
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It simply notifies for available update and brings you to the AFH download page. Nothing more... Saves you checking this thread for updates.

AFH requires paid dev account for direct download links so not happening...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
ok thanks

---------- Post added at 06:56 AM ---------- Previous post was at 06:27 AM ----------

customization options are more in RR,i dont use many apps but whatever i use i dont think there is a visible difference,xenon hd is fast if that is you are looking for

---------- Post added at 06:59 AM ---------- Previous post was at 06:56 AM ----------

customization options are more in RR,i dont use many apps but whatever i use i dont think there is a visible difference,xenon hd is fast if that is you are looking for

and so is cypher
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] deepankarverma:
How to disable camera sound, and sorry if its a repeated question! Even after disabling in snap camera, camera sound is still coming.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] whitelub:
Tested here and working fine. No sound. Hydrogen 2/16..
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It's country dependent. Legal matter. Delete /system/media/audio/ui/camera_click.ogg.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
Mi 5 has Lineageos 15 with old device tree ! So i think we will have Lineage OS 15 soon ;)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
It doesn't boot with my current tree. I have to start from scratch and work my way up...

Short on time unfortunately. :(
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] Zola III:
You need to patch kernel up to the 3.18 tree which won't be easy in order for it can go with that tree...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] dungphp:
My test build booted with nijel8 kernel patch by yshalsager (hw binder)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Kernel patched for O, tree patched for O, 2 days of fixing build errors(LineageOS 15 code is still rough and far from buildable)... And after all that no boot with lots of kernel/logcat errors, reboots to fastboot due to lmkd exiting 4 times in 30 seconds. I didn't have more time to try fix anything.

Will see next time when I get a chance working on it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Yeah, I am pretty sure kernel is good to go but my device tree needs serious work. That patch is what TheStrix is taking from 3.18 kernel, gemini msm8996 guys.

My plan is start clean with basic lineage 14.1 device tree, add the minimum needed for O to boot and start fixing and upgrading stuff. Basically starting again from scratch.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] paarkhi:
and that's going to take lot of time but I am really thankful to your dedication for the device because everyone uses your tree for building the roms, so once the base is ready most of the developers will be able to use and build Oreo roms for mi max

:good::good::good:
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
[MENTION=1542421]nijel[/MENTION] ,i dont if anyone else is facing this but there is a lot of cracking of sound when making a call connected to bluetooth headset,i am not connected on wifi,and i dont face this issue when using other roms like aex,xenon hd,request if you can help,thanks
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
My calls are all bt and clear as can be. All stock audio, no any v4a etc mods. Haven't heard anybody else complaining too. So have no idea...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] andjohn:
Mine are completely fine. I can be connected to wifi or not, music or calls. No bluetooth problems at all for me.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sameermehta1977:
strange if this would be a v4a issue then would have not faced it on other roms having it,i am actually not using v4a settings for bluetooth headset,since this cannot be replcated i will do further check,

and i know your love for v4a :) :) ;)

---------- Post added at 09:05 PM ---------- Previous post was at 09:04 PM ----------

thanks buddy for your feedback,i will check it further
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] www_123:
Boss nilel8.in your new rec ,i can not flash this .
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Did you read changelog, my update message...? Or that yellow message on your screenshot....? How about scrolling it all the way down... does it say "script succeeded"? Is the modem changed in About Pnone? I bet it is.

Looks like I have to hack this thing all the way for those who don't pay attention...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] www_123:
i see . thank you.

---------- Post added at 02:22 AM ---------- Previous post was at 02:16 AM ----------

sorry .i am not pay attention read log.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
I'll get hard atack if after 3 updates in one day it's still broken... :)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] sarthakwarlock:
Ha ha :laugh: I get hard attacks often.. and see I'm still alive.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
Heart attack? There's only one kind of hard attack I know of! ;)
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Damn Swiftkey auto complete, but hard atack works too:D
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] facepainter:
Don't know if anyone else has mentioned it but NTFS works fine for me over otg, also exfat works for my 64gb microsd card if I use windows 10 to format it.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] noah110112:
Hey Nijel8,

Is it possible to activate recording Videos in 1080p with 60fps? That would be awesome! :)

Best Greetings

Noah

PS: are you German?
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] nijel8:
Snap camera doesn't have/show any frame rate related settings so even after adding 1080p@60 profile it doesn't show it. But if I change the default 1080@30 profile frame rate to 60 logcat show it records @60 fps. Does it actually do that...? Can't check right now but recorded video plays fine. So if you want to check for yourself open /system/etc/media_profiles.xml and change back camera EncoderProfile quality="1080p" frameRate to 60.

PS: not a German but from that part of the world originally...
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] lev04:
nice work ,but i will have to give up on this rom,my batteryis draining fast compared to stock miui 8.5. i get 3hrs sot while at 50%, with miui i reached even 9 hrs,but 7-8 was regular.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] oatcooky:
I did a clean flash and left the CPU settings on stock. I'm getting 9-10% battery per hour of active usage, so I'm getting 10 hours SOT at least. This is with LTE always on, WiFi on when in range and Bluetooth on to connect to a smartwatch.

Using zola's CPU settings I managed to get 7-8% for active use but it felt laggy. I'm fine losing one hour SOT because i charge at 40% anyway.
[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] lev04:
i also did a clean install, i came from miui 8.5, changed nothing in settings, and during the night i went from 62% to 52%, wifi off, all off.and is the second charge.I noticed it did not went well during the first stint, if i may say so, and it confirmed.

For now trying the xiaomi.eu miui 9.