yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] windbells:
You can roll back to ivan's GPU driver to have a test.

if you have git installed, clone https://github.com/mitwo-dev/proprietary_vendor_xiaomi by running

git clone https://github.com/mitwo-dev/proprietary_vendor_xiaomi -b mnc-dev --depth 1

and open qcom-common/proprietary-a320-v104/vendor, running cmd/shell command under this folder:

adb root && adb remount rw
adb push * /system/vendor/

then reboot and test again
[Xiaomi Mi 2] joe820730:
Tried, and no effect:

https://imgur.com/a/JNkh9
[Xiaomi Mi 2] windbells:
Can you run command adb shell ls -l /system/vendor/lib/egl and paste the result to here
[Xiaomi Mi 2] joe820730:
joe@Joe-E420:/tmp
$ adb shell ls -l /system/vendor/lib/egl
total 4344
-rw-rw-r-- 1 root root 42576 2017-11-22 15:21 eglsubAndroid.so
-rw-rw-r-- 1 root root 178588 2017-11-22 15:21 libEGL_adreno.so
-rw-rw-r-- 1 root root 210676 2017-11-22 15:21 libGLESv1_CM_adreno.so
-rw-rw-r-- 1 root root 1293288 2017-11-22 15:21 libGLESv2_adreno.so
-rw-rw-r-- 1 root root 83260 2017-11-22 15:21 libplayback_adreno.so
-rw-rw-r-- 1 root root 403468 2017-11-22 15:21 libq3dtools_adreno.so
[Xiaomi Mi 2] windbells:
It seems like not a gpu driver problem.

here is an old boot.img build (8.0, not 7.1). you can have a try by run (test mode, will not overwrite current boot partition)

sudo fastboot boot boot.img

https://mega.nz/#!5K4ElbbJ!1hpZv2ut1k3iR0wcCca0MTDX7X4hPQdUm0goa91fXFo

I also have saved an old build system.img, but it's too big to upload for now.

I will upload later.

here is the 8.0 system image, download and extract system.img:

https://mega.nz/#!0LZURRyC!YMyGz2FL1A6eV6HfkuNmjlxTjhGJw0qxrovLXtl4PQU

you can run (overwrite current system and boot partition)

sudo fastboot flash system system.img
sudo fastboot flash boot boot.img
sudo fastboot reboot

If this build doesn't work either, I will compile an ivan's kernel for you. Good luck!
[Xiaomi Mi 2] joe820730:
https://imgur.com/a/j3TVq

Hmmm...problem still exist
[Xiaomi Mi 2] windbells:
I will try to compile Ivan's kernel for you this weekend, and if there's more time for me to otapackage a new system, I will try to dealing with some known bugs.
[Xiaomi Mi 2] miuifans:
thank you very much！
[Xiaomi Mi 2] Anyoe:
any chance of Mi2A version?
[Xiaomi Mi 2] windbells:
Sorry, No plan for a Mi2A ROM.
[Xiaomi Mi 2] GuaiYiHU:
It is nothing to do with the gpu blobs. I flashed my kernel, it works very smoothly.(But sound and camera died XD )

By the way, could you tell me how you managed to bring up the ril. Thanks a lot.
[Xiaomi Mi 2] mrah95:
Network lost

I always lost my network connection when I am travelling. If I travel more than 5-10 miles I always have to reboot the phone to get it back. If I try to search networks to choose it manually, the settings app crashes. Maybe there is a possibility of rebooting only the network connection, the problem would be solved.
[Xiaomi Mi 2] miuifans:
my mi2 has been damaged, i am liberated from this evil curse. :p
[Xiaomi Mi 2] CBpbxEcmecmBeH:
What's the damage? :)
[Xiaomi Mi 2] miuifans:
The screen is broken.:angel:
[Xiaomi Mi 2] LX+R:
Just get a new one
[Xiaomi Mi 2] windbells:
Download Link:

Only twrp >= 3.2.1 works with ROM >= 20180101

https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:

Flash the lastest Magisk.

Known issues:

1. Hidden network cannot connect.

2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

3. Not support 1080P camera record due to outdated kernel driver.

4. Selinux status is permissive.

Changelog:

2018-09-01

* md5sum: b7e60c0033b526278468a38cb00f373e

* minor updates and stability improved.

* last update as I'm going to remove all 8.1 source, source will update to github as soon as possible.

* I will try to bring up pie once I get free, but no guarantee and no ETAs.
[Xiaomi Mi 2] LaiCORE:
thank you for a new build, [MENTION=8544718]windbells[/MENTION]

all there is also a problem with conversation, there is Echo, the interlocutor hears me with the echo effect, it greatly interferes with the dialogue

this is the only bug that makes it difficult to use the firmware

please see what you can do to fix this problem, I'm ready to check, send logs and everything you need
[Xiaomi Mi 2] windbells:
Download the attach file and extract:

replace by adb (boot into recovery and mount /system) or use a root file manager:

adb push audio.primary.msm8960.so /system/vendor/lib/hw/
adb push mixer_paths.xml /system/etc/mixer_paths.xml

reboot and it should be fixed.

Could someone also test earphone, bluetooth and VOIP sound/record? Give me some feedback, thanks.
[Xiaomi Mi 2] LaiCORE:
in headphones without a microphone echo effect is gone, but without headphones interlocutor complains that he hears his echo
[Xiaomi Mi 2] windbells:
Download the attachment and test two mixer_path.xml files(rename to mixer_path.xml before uploading to /system/etc/).
[Xiaomi Mi 2] LaiCORE:
[MENTION=8544718]windbells[/MENTION]

both files failed:(

people keep complaining about the echo effect
[Xiaomi Mi 2] windbells:
This file should work now.
[Xiaomi Mi 2] LaiCORE:
Either I'm doing something wrong or it's not working again

all also have echo

What if i copy mixer_paths.xml from MIUI?

Or maybe it's the driver?
[Xiaomi Mi 2] LaiCORE:
also, for some reason can not take a photo with zoom in third-party applications something like opencamera

and the stock camera app after manually focusing and shooting, the photos are out of focus

Also, the log in which the network was lost without automatic recovery, I mentioned earlier

A solution was found by switching Mobile Radio Power to *#*#4636#*#*

View attachment 2018-09-14-23-39-59.zip
[Xiaomi Mi 2] LaiCORE:
anyone who reads the theme, please support the github theme of the request to update the official source code for our devices [MENTION=8544718]windbells[/MENTION] , [MENTION=5583480]dnv_aps[/MENTION] , [MENTION=7442044]GuaiYiHU[/MENTION] , I ask you to write your comment there as a developer

perhaps this will give some push

thanks
[Xiaomi Mi 2] EXSERENS:
I want to know how to change CPU core policy? since version 2018-06-16, most of time there's only 2 cores online and that's makes phone lag.
[Xiaomi Mi 2] LaiCORE:
this issue is related to mpdecision, in my log there is an example of an error with this

to turn off you need to install su/magisk and install the application to control the CPU(ex. kernel aduitor)
[Xiaomi Mi 2] k1r8l:
Unable to flash ROM successfully

My current ROM is Ivan's LP 5.5.1. I've never changed phone's stock partition, that's why I skipped step "flash stock miui developer". After wiping data, cache and dalvic, I tried to flash ROM version 20180901 with TWRP 3.2.3. I got an error at flashing .zip file (don't remember error code) while patching system image or something like that (If I remember correct). The fact is that installation process didn't complete successfully. The same happened when I tried to flash my old ROM (Ivan's 5.5.1) with TWRP. So I had to flash first CWM and then re-install old ROM with CWM. Can anybody tell me what I might do wrong? What will happen if I try to flash Oreo with CWM? Would it help to try to flash Oreo with other TWRP version?

Thanks for help!
[Xiaomi Mi 2] LaiCORE:
I think that the partition of the disk on your phone does not meet the requirements of the Oreo rom and old cwm not support new firmware's and partition

If you want install last Oreo rom

you need to reinstall the phone via fastboot to the latest official ROM, then make the unlock to install last twrp from this thread, then everything as usual
[Xiaomi Mi 2] k1r8l:
Thanks for reply,

which is the latest official ROM for xiaomi mi2? I've downloaded miui_MiTwo_3.6.28_fastboot_4.1_4gigdarm5v.exe file. Is this the correct one to flash?
[Xiaomi Mi 2] LaiCORE:
link
[Xiaomi Mi 2] k1r8l:
I flashed the linked file but got error: remote data too large. Any idea how to proceed?

Edit: I managed to fastboot flash MIUI 7 Global Stable ROM V7.1.2.0.LXAMICK and merged system partitions. Now I can proceed to the installation of Oreo without problems (hopefully...)
[Xiaomi Mi 2] windbells:
Download Link:

Only twrp >= 3.2.1 works with ROM >= 20180101

https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:

Flash the lastest Magisk.

Known issues:

1. Hidden network cannot connect.

2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

3. Not support 1080P camera record due to outdated kernel driver.

4. Selinux status is on permissive.

Changelog:

2018-10-19

* md5sum: 9304de676e0dd6428db566b072488e3f

* fix echo audio during calls

* performance tweaks, fix too hot when too many heavy background tasks, now enable all 4 cpu cores by default

* HALs and blobs changes prepare for P
[Xiaomi Mi 2] oile:
Wow. Thank you so much!! I'll test later.

Inviato dal mio MI 2S utilizzando Tapatalk
[Xiaomi Mi 2] oile:
Testing it right now.

UPDATES:

ECHO IN CALL IS ENORMOUS. Seems I can't make calls and this will be forcing me to return to miui.

ECHO is not present when using headphones! At least something.

Also I don't understand the button configuration, it seems completely odd, like double tap for task manager?!

Positive side: Way faster than miui 9.

THANK YOU VERY MUCH ANYWAY WINDBELLS
[Xiaomi Mi 2] windbells:
Download Link:

Only twrp >= 3.2.1 works with ROM >= 20180101

https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:

Flash the lastest Magisk.

Known issues:

1. Hidden network cannot connect.

2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

3. Not support 1080P camera record due to outdated kernel driver.

4. Selinux status is on permissive status.

Changelog:

2018-10-21

*md5sum: 8cbfdceb23c3aa6f382f1a9a79c29004

* fix noise in headset mic
[Xiaomi Mi 2] oile:
ECHO in call without headset still present, not mitigated. Clearly an audio channel is getting pushed back to the caller.

Contact me if you want testing and feedback.

THANKS anyway :)
[Xiaomi Mi 2] windbells:
The situation of calling echo might be a little complex, as Mi 2 have two mics, and most important, it used an ES310 chip for customizing the audio. Ivan published the source of ES310 for audio HAL( https://github.com/mitwo-dev/androi...mmit/584a047ae31e8322c4aaf46921d0eefad3bbf6ef ), but it's for legacy hal (Android M and above had removed support to the old legacy audio hal). M1cha ported the route part to a module called libaudioamp( https://github.com/M1cha/android_de...staging/cm-12.0/libaudioamp/audio_amplifier.c ), and I used it for N and O. It seems that we can only use one mic while calling, but I don't have enough time to figure out how to do(it seems we need to suspend the ES310 routing in HAL, and only change the mixer_path might be not enough. persist.audio.vns.mode = 1 also didn't work. I tested with VOIP, the other side didn't receive the echo but my side did).

If someone who is expert at Android audio, any suggest and solution is so appreciate.
[Xiaomi Mi 2] oile:
I might still have Mikka's hangouts contact. I can give it to you or try to reach him first.

Thank you for your efforts
[Xiaomi Mi 2] oile:
M1cha said that there is a binary runnable in terminal wich shows the sound path in real time and therefore can help debugging this problem.

The binary is https://transfer.sh/xvVRs/amixer

And he said that this version of amixer will look for its config file in /system

Its config file should be this

https://transfer.sh/eGuub/alsa.conf

to be copied and mounted

I don't know if I got it right, if you tell me how to run it I'll do it, I ve tried with terminal emulator with sh amixer but gave me errors.

[MENTION=8544718]windbells[/MENTION] [MENTION=313770]m1cha[/MENTION]
[Xiaomi Mi 2] windbells:
OK, it's an useful tool. Thank you so much.

amixer need root to run. But I need a normal(without echo) ROM to compare to get the different, for example stock MIUI or ivan's ROM. I wouldn't flash a new ROM now because I have to backup oreo data, maybe another day.

If you want to do yourself. you can push files to your phone.

adb root && adb remount rw
adb shell mkdir -p /data/local/tmp/
adb push amixer /data/local/tmp/
adb shell chmod +x /data/local/tmp/amixer
adb shell mkdir -p /system/share/alsa/
adb push alsa.conf /system/share/alsa/

Get the result of three cases(record, calling, VOIP) of MIUI:

adb root
adb shell /data/local/tmp/amixer > amixer_output_record_miui.txt
adb shell /data/local/tmp/amixer > amixer_output_call_miui.txt
adb shell /data/local/tmp/amixer > amixer_output_voip_miui.txt

Also to Oreo:

adb root
adb shell /data/local/tmp/amixer > amixer_output_record_oreo.txt
adb shell /data/local/tmp/amixer > amixer_output_call_oreo.txt
adb shell /data/local/tmp/amixer > amixer_output_voip_oreo.txt

compare the result of call and voip.
[Xiaomi Mi 2] oile:
I think I can do it tomorrow with latest miui backup.

How can I actually "run" the test after I've copied the files?

Just making a normal call, a normal voip and a normal recording would get the desired log output?

Or I do have to run in terminal emulator (or pc adb) before doing them?

Sorry, but I am not much skilled.

Ps. There seems to be a 100% time usage of LIS3DH sensor sometimes preventing the device to enter deep sleep or doze mode
[Xiaomi Mi 2] windbells:
Yes, you need to connect to pc, push the files, make a call, get output, end call, make a voip, get output ,end voip, so does record.

It seems a accelerometer sensor, how did your know it preventing the device to enter deep sleep?
[Xiaomi Mi 2] windbells:
I think there are something wrong after making a call, some sensors or some kernel modules not work properly(cannot close) after calls so that make battery drains quickly.

This is a Mi 2 standby battery usage with all apps killed, wifi/data close. But battery drained quickly on the sixth day after a call. Reboot and battery back to normal again.
[Xiaomi Mi 2] oile:
Because I use BBS and I get a 100% sns async ev wakelock in kernel wakelock, its duration is exactly the duration of Android System using that specific sensor in sensor tab. With these sensor requests, sometimes the phone manages to get into deepsleep sometimes not at all.

Ps. I ll do the amixer test. Is it better with AND without headset on?
[Xiaomi Mi 2] windbells:
I will investigate it.

You can if you want, in case there are some problems with headset.

BTW, is an option that open or use two Mic in Miui Settings? It's important to have compare with and without two Mic.
[Xiaomi Mi 2] oile:
MIUI AMIXER OUTPUTS

https://drive.google.com/drive/folders/1MRY1y2NziK5RiNXffN-91k0RTzXZpndK?usp=sharing

Let me know if it's ok [MENTION=8544718]windbells[/MENTION]

Ps. I remember there was the option in older miui and also in Ivan s marshmallow, but I cannot find it in current miui (the one I've taken the output from).

Is it necessary to debug? If it is so, do I have to use ivans rom?
[Xiaomi Mi 2] windbells:
Yes, I have seen the difference. I will try to modify the mixer_path file. Thank you so much.
[Xiaomi Mi 2] windbells:
sorry, I forgot to told you that your should try to switch to speaker and save output amixer_output_voip_miui_speaker.txt.

It seems that voip and call are the same, so you don't need to make a call.
[Xiaomi Mi 2] oile:
Mmm, that's strange because in voip I don't seem to get the echo!

DONE. See attachment (done it calling it not voip) and got echo with speaker too

Let me know if you also need the Ivans rom log (it surely has the double and single mic option) and the oreo one (but I guess you are on your Rom so you don't need mine)

Inviato dal mio SM-G950F utilizzando Tapatalk
[Xiaomi Mi 2] windbells:
Bad news: It seems only changing the mixer_paths is not enough. I didn't manage to bring up the voice using MIUI channel.

Good news: I managed to port the old legacy audio HAL to Oreo, and I will publish a new update using old audio HAL this weekend (Sadly FMRadio doesn't work). This is a temporary solution for someone using calls, and I will try to figure out how ES310 chip works by comparing legacy HAL output and Oreo HAL output, but it takes time.
[Xiaomi Mi 2] oile:
I guess you don't need Ivans rom logs since it uses old HAL correct?

Thank you for the news and efforts :)

Inviato dal mio SM-G950F utilizzando Tapatalk
[Xiaomi Mi 2] windbells:
Download Link:

Only twrp >= 3.2.1 works with ROM >= 20180101

https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:

Flash the lastest Magisk.

Known issues:

1. Hidden network cannot connect.

2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

3. Not support 1080P camera record due to outdated kernel driver.

4. Selinux status is on permissive status.

Changelog:

2018-10-28

* md5sum: 066bae49c2c3c4b92e3e1952504ac8d8

* fix calls echo temporarily by ported legacy audio HAL to Oreo (FMRadio doesn't work, only for someone who cares calls)
[Xiaomi Mi 2] windbells:
Download Link:

Only twrp >= 3.2.1 works with ROM >= 20180101

https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w

How to ROOT:

Flash the lastest Magisk.

Known issues:

1. Hidden network cannot connect.

2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

3. Not support 1080P camera record due to outdated kernel driver.

4. Selinux status is on permissive status.

Changelog:

2018-11-01

* md5sum: b957fa0274819a09fd81d2af2958cc69

* echo in calls should fix now, only tested VOIP, need more tests(headset, bluetooth etc).

* with echo fixed, an issue related ES310 chip sleeping that make battery draining fast is also fixed.

- Standby battery time estimate: > 5 days.

- Normal Screen on usage: 5~6 hours.
[Xiaomi Mi 2] hexian000:
:good: big thanks for all your works! you gave my mi2 a second life!
[Xiaomi Mi 2] yourmileagemayvary:
First of all, thank you for doing all the porting, we're all in debt.

Now, as an amateur, there are a few things I need to ask you about.

1) What are the security implications of leaving SELinux in permissive?

2) Is it possible to unroot the phone and lock the bootloader again?

3) In this version of Andoid, is it possible to lock the phone with a home button instead of the power button? Basically, remap the buttons.

Thank you.
[Xiaomi Mi 2] hexian000:
MI2 is marketed without a bootloader lock. The OEM didn't lock it...
[Xiaomi Mi 2] windbells:
1. https://www.google.com/search?q=android+selinux+permissive+vs+enforcing.

2. no, Mi 2 doesn't have a bootloader locker, both MIUI and other ROMs.

3. I don't know, maybe you can try to modify keylayout files(/system/vendor/usr/keylayout), or try xposed and other applications.
[Xiaomi Mi 2] yourmileagemayvary:
I did search online but I wanted to ask you about how big of a security issue it is to you personally. It's not the only layer of protection as far as I understand and rather hard to enable without a lot of fine tuning but still sounds important. With regards the second question, I'm mostly interested in being able to reverse root privileges back to normal after I flash this ROM. Does it even work this way with Magisk?
[Xiaomi Mi 2] Fadda88:
Hi, thanks a lot for your rom, i tried the last version and i had a hotspot error activating, then i flashed the 5/6 gapps and it solved it, but i still have echo during calls,

First call after flashing last rom without headset or blutooth is perfect, the second one echo is back.

Am I doing something wrong? I tried to flash the last rom on my mi2s 32gb version without gapps but call on second call has echo, and hotspot dosent work, flashing oreo opengapps i still have hotspot problem, I flashed the 6/5 gapps given ob link it solved the hotspot problem but the echo still existes during call. Am I doing something wrong?
[Xiaomi Mi 2] kletonn:
Hi, great work! I use this rom, but I don't make calls, so I can not say anything about the echo, but otherwise the excellent performance. Now I see that in the latest builds 4 cores are active by default, so maybe you could unlock the voltage settings in the kernel or make a standalone kernel with these settings?
[Xiaomi Mi 2] leon740118:
nice rom but camera cannot record the same with other cameras
[Xiaomi Mi 2] windbells:
Download

https://mega.nz/#F!naRFGQDR!d9Uv-Maw56vyYsphAj00Kw

Known issues

1. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).

2. Not support 1080P camera record due to outdated kernel driver.

3. Selinux status is on permissive status.

Root

1. download all files under superuser

2. reboot to fastboot, flash boot.img

fastboot flash boot boot.img

3. boot into recovery, mount /system, push su binary and superuser.rc to your phone

adb push su /system/xbin/su
adb push superuser.rc /system/etc/init/

4. reboot

Gapps

select one way of below

1. flash MindTheGapps-9.0.0-arm-20181119.zip

2. download OpenGapps Pico (Not support other version due to limited space of /system

upload gapps-config.txt and opengapps zip file to the same folder and flash opengapps

Changelog

2018-11-19

-> Upgrade to Android Pie(CAF 9.0.0), tag: LA.UM.7.2.r1-05300-sdm660.0

-> Features added:

1. Privacy Guard(with optional su support, thanks LineageOS)

2. App Firewall(data, wlan and vpn, thanks LineageOS)

3. Showing Network Speed(thanks Jon Haus, ezio84 and other commiters)

4. Launcher with icon pack support(thanks tfitts1212, maxwen, eldainosor and other commiters)​

-> Fix hidden wireless connection

-> Add DRM support (For Netflix, L3 level, not support HD and higher)

-> Try to fix echo in calls again(not tested, report if not working)
[Xiaomi Mi 2] miuifans:
Great!

love you! the new button logic is so good!
[Xiaomi Mi 2] trewq1:
Great!
[Xiaomi Mi 2] Fadda88:
Nice, thanks a lot, I flashed last ROM:

I have an error activating hotspot, and an echo starting from the second call, but enabling and disabling speaker the echo stops, can magisk be used with this ROM?
[Xiaomi Mi 2] a739394:
I have same problem of calling echo, the 2 nd time of call have echo, and need on/off speaker to solve temp.
[Xiaomi Mi 2] miuifans:
i use magisk, no problem.
[Xiaomi Mi 2] Fadda88:
Thanks miuifans, now i have magisk too,

Is there a solution for my hotspot problem?

I had it before in the last oreo rom, fixed flashing given gapps
[Xiaomi Mi 2] Svadkos:
[MENTION=8544718]windbells[/MENTION]

That's awesome, thank you!

Could you add signature spoofing? Here's a patch https:// github.com/microg/android_packages_apps_GmsCore/pull/601/files

Also, please, see if you can make encryption to work https:// source.android.com/security/encryption our device should support full-disk variant at least, but now, when i select to encrypt device, it's just rebooting ui.
[Xiaomi Mi 2] windbells:
1. I had merged the patch, MicroG should work fine.

2. Mi 2 doesn't support encryption as lacking some secure hardware components.
[Xiaomi Mi 2] windbells:
Hotspot works fine with my device. Check you logs.
[Xiaomi Mi 2] Svadkos:
1. Yeah, you're right, i forgot to enable it in settings.

2. Some time ago i was using this rom https:// xiaomi.eu/community/threads/rom-cm12-1-last-hope-rom-best-rom-ever.29188/ and encryption worked, at least i was unable to mount filesystem from recovery without a password. Or was it incomplete in some way?
[Xiaomi Mi 2] Fadda88:
I think somthing is missing, I'm not sure,

https://imgur.com/a/EPnayl5

http://imgur.com/jKj6Eza

A screenshot of a debug activating hotspot

Any help?
[Xiaomi Mi 2] windbells:
From https://source.android.com/security/encryption

Android 5.0 and above supports full-disk encryption. BUT

Caution: Support for full-disk encryption is going away. If you're creating a new device, you should use file-based encryption.

Mi2 doesn't support Hardware FDE feature, which CAF enable by default. Our kernel has to do a lot of works to support encryption API even our hardware can do Hardware FDE in some ways, it will take lots of time to do the backport works. Maybe Google AOSP can do encryption action without Hardware FDE feature, I didn't have a try.

It might be enabled old full-disk encryption by modifying the system framework, but is it worth? our device is too old for some daily jobs, so let it be, maybe a toy or something. Buy a new phone would be a better choose if it doesn't meet your need.