yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] amazarashi:
The new version is very power consuming and very hot

The new version is very power consuming and very hot. I'm Mi 2

The January 1 edition will last four or five hours, but the new one will only take one hour.

I've rolled back to the old version now, but thank you.
[Xiaomi Mi 2] clps995202:
Perhapes you can try clean flash it. Since the rom is still testing, every update changes a lot of things in it. Though it may takes some time to reinstall all the apps, think that it's still the best way to slove some "unusual" stituation with our phone.:D

---------- Post added at 01:15 AM ---------- Previous post was at 01:04 AM ----------

I think it is available, cuz it use the same APQ8064 processor. The differences are the core counts and the memory. Maybe it will run slower than other Mi 2?
[Xiaomi Mi 2] Jezura:
Yes, my home network is IPv6 and it is possible my mobile carrier is also using IPv6.

The fix seems to be working, no more reboots when I tried google maps for few minutes. Thank you. :good:

Also, is anyone having issues with in-call audio? I can't hear anything and nobody can hear me during calls. I think it may be caused by my BT headset. When I connected it on this version, it completely broke media audio until I connected it without the phone calls profile. The wierd thing is, when I try to make call through WhatsApp, it works perfectly. Do you think this is connected to the old audio policy config?
[Xiaomi Mi 2] zhaowweny:
Maybe... So the rom should be simplified or developed base on the Android Go (Android Oreo Go edition) which was designed for older or budget-friendly devices.
[Xiaomi Mi 2] Fariezz:
yeah, i also got same issue. seems like it not go into deep sleep. i full charge it at midnight and leave it untouched. in the morning, the battery has down to half.
[Xiaomi Mi 2] 丶Nanmu:
Windbell, thank you for your work, this time the update has repaired a lot of bug, but there is a serious problem. All types of headphones do not work properly.
[Xiaomi Mi 2] windbells:
Download Link:

[RECALLED]

Changelog:

2018-01-19:

(NOTE: new kernel might have problems with some device, please attach your logcat, dmesg and top command result(adb shell -> top -> take a screenshot), plus you device model)

(NOTE 2: If you have installed gapps and don't want to clean data, flash gapps after flash the new ROM, before your first boot, or some app will get a FC, unless reinstall the app)

* fix system crash when openning gps with IPv6 network

* fix the audioserver crash when using a headphone

* fix app crash when not granted WRITE_STORAGE permission
[Xiaomi Mi 2] windbells:
Please give more information as possible, dmesg, processes cpu usage, or some battery app monitor results etc.
[Xiaomi Mi 2] windbells:
No, Mi 2A is using msm8960 while Mi 2 is apq8064, their board kernel code is not share the same parts, and most important, I don't have so much time and don't have a 2A machine.
[Xiaomi Mi 2] Jezura:
[MENTION=8544718]windbells[/MENTION] Does this update require to root manually again?
[Xiaomi Mi 2] Jezura:
I'm still having issues with calls. I can not hear the other side and the other side can not hear me. But when I call with WhatsApp everything works perfectly. Is anyone having the same issue? Any suggestions what should I look at/try? I checked permissions, I tried to look in logcat and dmesg, but haven't found anything (although I might have missed something).
[Xiaomi Mi 2] 开羊啊:
Thanks！
[Xiaomi Mi 2] lw886:
thanks！

thanks！
[Xiaomi Mi 2] 丶Nanmu:
+1
[Xiaomi Mi 2] GeekZJK:
So do I. Everything works well on my 32gb device except the phone call.:(
[Xiaomi Mi 2] lw886:
Is your telephone function normal? Why can't I hear each other's voice? The other side could not hear me.

---------- Post added at 11:46 AM ---------- Previous post was at 11:40 AM ----------

So do I. In addition to the phone, everything on my mi2 16GB device is normal.

The CDMA network is still unrecognized.

---------- Post added at 11:53 AM ---------- Previous post was at 11:46 AM ----------

So do I. In addition to the phone, everything on my mi2 16GB device is normal.

The CDMA network is still unrecognized.:(

---------- Post added at 12:07 PM ---------- Previous post was at 11:53 AM ----------

My dear windbells, so do I. In addition to the function of the mobile phone, all the functions on my mi2 16GB device are normal, except the CDMA network is still unrecognized，and earphone is also unusable.

Can the time and date of the screensaver be used in the standby lock screen as well? (now only the screensaver is displayed when it is charged.)
[Xiaomi Mi 2] windbells:
Sorry, guys. Something wrong with calling audio, I have removed the rom from share link, I should have more test before such a big update. New update will be released once I found the problem.
[Xiaomi Mi 2] lw886:
Thank you very much, dear bell. I hope that the new ROM will be updated as soon as possible. The function of the phone can't be used too much. Besides CDMA network and earphone, it is still unusable. Other functions of my MI2 16GB device are normal for a while.

Can the time and date of the screen saver also be used to lock the screen? (now only the screen saver will be displayed when it is charged). This display is pretty cool!
[Xiaomi Mi 2] windbells:
I'm afraid not, AOSP only support docked or changing screen saver.
[Xiaomi Mi 2] lw886:
OK, let's perfect the phone and headphones first.;）
[Xiaomi Mi 2] trewq1:
Good job for the new ROM without the problem I mentioned.

I only use WiFi, hope for hidden WiFi support.
[Xiaomi Mi 2] lw886:
Yes, there is a hidden WIFI that can't be used.
[Xiaomi Mi 2] 开羊啊:
CDMA seem do not work
[Xiaomi Mi 2] LiarOnce:
Thanks to your ROM.

I also found a issue, Wi-Fi hotspot can not work.

My computer and iPhone can not receive this Wi-Fi hotspot signal.
[Xiaomi Mi 2] 开羊啊:
+1
[Xiaomi Mi 2] 开羊啊:
Web links can not be opened in the built-in browser:eek:
[Xiaomi Mi 2] trewq1:
Apkpure still ask for granted WRITE_STORAGE permission after permission actually.
[Xiaomi Mi 2] EXSERENS:
hmmm where is the new rom file? It's doesn't exist in the link.
[Xiaomi Mi 2] clps995202:
The dev accidentally make the phone call function stop working after the update , that's why he delete the new rom:).
[Xiaomi Mi 2] Nsr77:
Please.. Share for me qcn file mi2 16gb, because my baseband uknown and sim & imei invalid.
[Xiaomi Mi 2] 丶Nanmu:
I hope you can change the application data directory to the default. Now the data directory will make many applications fail. Especially file management software, almost lost the ability to clean up garbage, because directory access error. Thank you for your work!
[Xiaomi Mi 2] windbells:
Download Link:

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

How to ROOT:

1. download su and superuser.rc in superuser folder

2. run command:

adb root && adb remount rw
adb push superuser.rc /system/etc/init/
adb push su /system/xbin/su
adb shell chmod 755 /system/xbin/su

3. reboot

4. It is no need to install Superuser.apk or Supersu.apk. App root control was built in Privacy Guard.

5. Developer options > root access > Disabled can disable root temporarily

Changelog:

2018-01-27:

(NOTE: new kernel might have problems with some device, please attach your logcat, dmesg and top command result(adb shell -> top -> take a screenshot), plus you device model)

(NOTE 2: If you have installed gapps and don't want to clean data, flash gapps after flash the new ROM, before your first boot, or some app will get a FC, unless reinstall the app)

* Revert to old audio hal so that calling audio works with old configs

* Fix some storage access permission issues. Move all Apps data to /sdcard/AppData, so external storage path that apps got will be /sdcard/AppData/<package name>/
[Xiaomi Mi 2] windbells:
What is qcn file? Have you try flash the phone by fastboot mode?

http://en.miui.com/a-234.html
[Xiaomi Mi 2] windbells:
I'd like to make it switchable. I don't want to see some folders/files with strange name in my storage directory (for example backup, data, logs, .android etc)
[Xiaomi Mi 2] LaiCORE:
[MENTION=8544718]windbells[/MENTION]

Will there still be attempts to update audio hal?
[Xiaomi Mi 2] windbells:
It need some time to reconfig audio configs, and it's unnecessary to use google msm8974 audio hal, so I would not like to do it for now.
[Xiaomi Mi 2] 丶Nanmu:
That's really good. Thank you very much.

---------- Post added at 02:16 PM ---------- Previous post was at 02:10 PM ----------

You don't seem to have to make a converter! I've brushed the latest new ROM, because it's moved to the appdata directory, and these cleanup applications can work well!
[Xiaomi Mi 2] ramir0:
since i dont have too much time for try it at home and is my daily phone i have to ask:

camera still records only in 720p ?

h+ is available, or only shows 3g and h like previous release?

gps still makes phone reboot?

what about battery? read that a previous release had huge drains
[Xiaomi Mi 2] LunaticIce:
battery problem still exist
[Xiaomi Mi 2] Jezura:
[MENTION=6875592]ramir0[/MENTION] GPS issue is already fixed
[Xiaomi Mi 2] LaiCORE:
[MENTION=8544718]windbells[/MENTION]

the battery runs out very quickly, even in standby mode

How can you fix energy consumption? what logs need to be sent?

logs : dmesg, adb bugreport, logcat (full and only radio flag)

View attachment adb.zip
[Xiaomi Mi 2] 丶Nanmu:
The original audio Hal seems to have some problems. When I play games, there will be a lot of noise in the receiver. I hope you can repair the new audio Hal (because the new one doesn't have this problem), thank you!
[Xiaomi Mi 2] astonyang:
adb Can't find any device

Hi, when I try adb my mi2SC, adb work bad...

==========================

C:\Users\astonyang>adb devices

List of devices attached

============================

How can I solve this problem?

=======

It looks like that Windows 7 can't find a device driver for the mi2sc automaticlly...
[Xiaomi Mi 2] GeekZJK:
Hi windbells, now your Oreo works perfectly on my device. But I want to ask you a question that how can I use the MENU button to switch APPs (like the original aosp)? It's more convenient than double tap the HOME button I think. And I believe that most of the users will like that. : )

I have tried to edit /system/usr/keylayout/qwerty.kl but I can change nothing. So how should I do? BTW, I know that xposed can help me but I just don't want to use xposed. Thanks. : )
[Xiaomi Mi 2] windbells:
I have never changed the MENU button mapping. It's default action of AOSP(or say Ivan's AOSP behavior).

If you want to remap to recent apps UI, open /system/usr/keylayout/atmel_mxt_ts.kl, change MENU to APP_SWITCH and reboot.
[Xiaomi Mi 2] jumali95:
I've tried it and it didn't change the function of the menu button. Even after cleaning cache/ART.

Do i only have to change it in atmel_mxt_ts.kl or in all files in the /keylayout folder?
[Xiaomi Mi 2] windbells:
What's your device model? I only changed atmel_mxt_ts.kl
[Xiaomi Mi 2] jumali95:
I have the Mi2S 32GB
[Xiaomi Mi 2] GeekZJJ:
:good:Hi windbells, I am very interested in how to make app can only access on its own directory,such as "/sdcard/AppData/<package name>". Could you please post some commits of its implementation? Thanks a lot.:laugh:

---------- Post added at 11:17 PM ---------- Previous post was at 11:14 PM ----------

Hi windbells, I am very interested in how to make app can only access on its own directory,such as "/sdcard/AppData/<package name>". Could you please post some commits of its implementation? Thanks a lot.
[Xiaomi Mi 2] jacid:
The standby power consumes fast, and the standby consumes 27% of the electricity for 10 hours. Could you optimize it,thanks!

QQ series voice call microphone failure，I think you can fix it
[Xiaomi Mi 2] windbells:
what's this command output?

adb shell ls /sys/bus/i2c/drivers
[Xiaomi Mi 2] windbells:
It's simple and easy to do if you are familiar with the android java framework. You can try youself by looking into android file operation apis.
[Xiaomi Mi 2] jumali95:
It says the following:

Sii9244_Driver imx132 lm3530-led smb349

atmel_mxt_ts imx135 lm3554 sx150x

bq27520-battery imx175 mpu3050 synaptics_rmi4_i2c

cs8427-spdif ir-kbd-i2c msm_actuator tabla-i2c-core

dummy isa1200 ov2720 vp_audience_es310

imx074_eeprom isl9519q rmi_i2c

imx091_eeprom lis3dh_acc s5k3h7
[Xiaomi Mi 2] windbells:
I'm afraid I don't have so much time to reduce the power consumes right now.

Old audio configs need to update to work with new audio hal so voip and other functions can work. I will be so happy and appreciate If some one have time to do this job.
[Xiaomi Mi 2] jacid:
I feel glad I can use a prefer Oreo ROM on Mi2S ,thanks!
[Xiaomi Mi 2] windbells:
extract the attachment file, upload to you phone and reboot

adb root && adb remount rw
adb push * /system/usr/keylayout/
[Xiaomi Mi 2] jumali95:
Wow, it worked! Thank you so much for your efforts! :)
[Xiaomi Mi 2] LaiCORE:
[MENTION=3530648]m11kkaa[/MENTION] [MENTION=5583480]dnv_aps[/MENTION]

Guys, if not difficult please help the development
[Xiaomi Mi 2] EXSERENS:
a small notice that when you flash latest fstable, you must boot system once. This will extend fstable to target capacity. or you will get only 2GB of /data capacity.
[Xiaomi Mi 2] 丶Nanmu:
nexus4 this phone and Mi 2/2s have the same cup, it recently also has Android 8.1 ROM, I think the new audio can refer to his settings.
[Xiaomi Mi 2] acastrocab:
After 48h with tuis rom i only have a bit of lag while scrolling in the pixel launcher, but thats the only thing i found.

I have a bluetooth in-ear and they work flawlessly, overall the rom is way better than ivan's 6.0 rom
[Xiaomi Mi 2] trewq1:
Google play store crash with search app.
[Xiaomi Mi 2] acastrocab:
Try reinstalling gapps i dont have any problems with it and even google assistantt works fine
[Xiaomi Mi 2] trewq1:
Problem resolved by update the new edition 8.8.12, thanks.
[Xiaomi Mi 2] 克洛斯特曼:
有没有最新版
[Xiaomi Mi 2] jumali95:
I must say, the ROM is so far stable and good, except for the battery consumption. That one makes the ROM impossible to use as a daily driver as the battery gets drained within a few hours with maybe 0.5-2h of Screen on Time.

I'll have some time in 2 weeks.... is it possible to contribute something with minor programming knowledge?
[Xiaomi Mi 2] joe820730:
The latest version is 20180127, you can see the second post in first page.

By the way, here is english forum, at least use google translate to translate your post.
[Xiaomi Mi 2] 丶Nanmu:
Wind bell, this version of ROM has some problems that have been affected by the daily use. First, because the AppData data storage path leads to many software cannot be used normally, then the charge is very slow, and the power consumption is very fast (open data connection standby time usually around 4 hours), and finally there is a small BUG, the voice is not good, there will be noise in the game when the receiver.
[Xiaomi Mi 2] GeekZJJ:
Ok,thanks a lot:good: I will spend some time to find it out.

Sorry for the two posts. It always said post failed, which actually successfully send out...
[Xiaomi Mi 2] Mengde:
thanks
[Xiaomi Mi 2] NightHeron:
Thanks pal. I am really thankful for this awesome ROM.

Your TWRP doesn't have support for F2FS, because when I choose to format to F2FS, data and cache goes to 0MB space.

I wanna try to flash TWRP 2.7 in order to check the F2FS support.

This ROM it's just awesome and stable, battery consumption is a little bit high, but I do NOT care :)

Substratum support ftw!!

Thanks dude, really thanks for this awesome project.
[Xiaomi Mi 2] trewq1:
Google play services keeps stopping.

I tried all kinds of methods to to solve the problem but failed.

Version 2018-01-27.
[Xiaomi Mi 2] NightHeron:
nothing similar to me. I did a full wipe and formatted the data partition with internal storage too.
[Xiaomi Mi 2] trewq1:
I wipe all except internal data.

I tried several kinds of gapps for Android 8.1 and Google core apps installer.

It seems Google account manager problem.
[Xiaomi Mi 2] ramir0:
Did you give permissions? I didnt have that issue in previous release
[Xiaomi Mi 2] trewq1:
Yes,adb su followed the author's method.

Flash the rom,start the phone, adb su, without install any app, then recovery flash several different gapps.

Otherwise, install

com.goplaycn.googleinstall_4.4_44.apk, and other Google app core installer.

It displays Google account manager is wrong.

I download several editions of Google account manager from apkmirror.they are all failed to be installed.

Google play service of the code 030 and 936 from apkmirror, installed manually, still crashed.
[Xiaomi Mi 2] ramir0:
Don't know what la happening. Wait for the next release and try again. (I'll install the next cuz i don't have ttime now and tell you how i did it )
[Xiaomi Mi 2] torukk:
signature spoofing for microg?

Windbells,

does your ROM include patch of signature spoofing required for MicroG project?

I'm planning to try the ROM in 3 weeks or so once I'm on holiday, but I'm not GAPPS user, I use MicroG instead. I've read here about higher power usage, and I had only bad experience with Gapps which was draining a battery in a past, so I would like to test the ROM without it to see if this is not the cause. I can also try to look and debug for what is consuming the power.
[Xiaomi Mi 2] jumali95:
I use MicroG with the ROM. I don't know if it has signature spoofing as i flashed XPosed with the FakeGapps module. But with that, it works. :)

The biggest problem so far is that you still can't get through half a day of battery life.
[Xiaomi Mi 2] NightHeron:
i have a Redmi Note4, with huge development as we talking and still the Battery drain issue due to lack of deep sleep was still exist some weeks before. We have to give time and respect to The dev :)

mokee is up with an unofficial 8.1 just today. let's hope that someone had fixed sources for this issue.

Long living Mi2s <3
[Xiaomi Mi 2] 丶Nanmu:
Can you tell me the audio Hal specific file path and file that I need to configure? I want to try to fix the sound of the call
[Xiaomi Mi 2] ramir0:
great, two devs are working to get the best 8.1 for our old but unstoppable Mi2s, hope them both can help or/and learn from each other to get 2 very good roms with some their own signature
[Xiaomi Mi 2] windbells:
/System/etc/mixer_paths.xml, I updated it when upgrade to Oreo, referring Nexus 4's configuration, but some paths is still missing with new google 8974 hal, you can compare the file with huashan(https://github.com/AdrianDC/android_device_sony_huashan/blob/lineage-15.1/audio/mixer_paths.xml). You can check the mako's configuration in case I missed something.
[Xiaomi Mi 2] 丶Nanmu:
ok,I will try it.
[Xiaomi Mi 2] 丶Nanmu:
Sorry, I've been trying for a day, but the handset still doesn't work, and I think it's not just a mixer_ path. XML problem ( files 27 and 19 have only a few differences at the beginning ).
[Xiaomi Mi 2] ramir0:
I don't know anything about programming, but maybe in this rom the problem is solved ( despite it may have other Bugs) https://download.mokeedev.com/?device=aries
[Xiaomi Mi 2] LaiCORE:
Guys

Please support this tweet about updating the source code for Xiaomi Mi2

A separate request for users from China - write about this tweet in local forums.

Maybe we will be heard
[Xiaomi Mi 2] LaiCORE:
[MENTION=8544718]windbells[/MENTION]

can you add support for camere2 api level 3? or our device does not support?
[Xiaomi Mi 2] T3sla:
I think our processor doesn't support this.
[Xiaomi Mi 2] 落笔成酌:
Thanks a lot! I've met a problem.The faceunlock cannot work property on my mi 2s,is there any chance to fix that?Thank you!:victory:

---------- Post added at 12:43 PM ---------- Previous post was at 12:40 PM ----------

活捉dalao:cool:
[Xiaomi Mi 2] 落笔成酌:
I think i know why it happens now. I've tried several releases of gapps, and i found that the older releases worked better on my 2s. The official releases can't work well too.
[Xiaomi Mi 2] miuifans:
插入SIM卡后，开启GPS导致重启的问题，也许可以试试这个补丁，通过TWRP刷入。

maybe this patch can fix the problem that GPS causes reboot. use the TWRP to install it.

链接Link：https://pan.baidu.com/s/1QOHFVUQGZVQ2yIQe0lCJ5Q 密码Password：y20w
[Xiaomi Mi 2] LaiCORE:
Hi, [MENTION=8544718]windbells[/MENTION]

Is there anything new ??
[Xiaomi Mi 2] cassiodm:
Padfone 2-a68 with rom Miui is possible?

Hi,

its possible to install miui rom on asus devices?

I'm looking for new roms to my padfone 2 a68, and the Xiaomi Mi 2 are very similar.

And now the Mi2 has received new rom Miui 9.

Is it possible to flash and make it works?

Sorry, but thousands of users of padfone was abandoned by asus.. now this is our only way and the device is a great machine!
[Xiaomi Mi 2] jumali95:
I'm curious as well if there are further planned updates.

I mean i love the rom, but without a real power management, it sadly can't stay on my device for long. I hope that at least that one update will still come. :fingers-crossed:
[Xiaomi Mi 2] 丶Nanmu:
Windbells hello, thank you very much for your work! With the use of a few months, I have already put this as my daily ROM, there are two special serious insufficient. First, because more and more software Appdata path not work properly, I hope I can back to the original path or let he can switch. Second, in the case of open data connection standby is very inefficient, and mobile phone is very hot, and close the data connection is not the situation. Hope you can spare a little time to complete it, thanks!
[Xiaomi Mi 2] henrayluo:
How to compile?

Thank u for your great work. I wanna debug some code and wanna know how to compile the rom.

wish u could replay ^_^.
[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 lastest Magisk.

Old rom with privacy guard:

1. download su and superuser.rc in superuser-old folder

2. run command:

adb root && adb remount rw
adb push superuser.rc /system/etc/init/
adb push su /system/xbin/su
adb shell chmod 755 /system/xbin/su

3. reboot

4. It is no need to install Superuser.apk or Supersu.apk. App root control was built in Privacy Guard.

5. Developer options > root access > Disabled can disable root temporarily

Known issues:

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

2. CDMA network not working on some device.

3. Hidden network cannot connect.

4. Flashlight in stock camera cannot open manually (always on mode not work)

5. WiFi hostpot(tethering) not work.

6. Selinux is in permission status, adb enable by default

Changelog:

2018-03-17:

* This version is expected to be the final version and wouldn't update anymore if no high issues. I hope you can enjoy this one without obstacles. Source will be updated to github in a few days.

* update to 8.1.0_r17

* update audio configuration files so audio should work flawlessly now.

* update power hal and tweak cpu scheduler, try to make a better battery life.

* remove Privacy Guard (seem have unnormal power usage when data connection opened), revert Apps data path tweak, remove addtion Internet/Sensor permissions(it makes Google Setup Wizard FC).

* fix device hangs while trying power on machine in offline charging mode.
[Xiaomi Mi 2] 丶Nanmu:
Thank you a lot! Can you update your github?I want to continue this work after I finish my College Entrance Examination.
[Xiaomi Mi 2] LunaticIce:
good work::good:
[Xiaomi Mi 2] Jezura:
Did anyone install Viper 4 Android on the latest version? If so how? I'm having issues doing it this time.
[Xiaomi Mi 2] LiarOnce:
Thank you for your work, but the battery looks worse. It's just 5 hours on standby.

And the "Force Stop" seems to be invalid
[Xiaomi Mi 2] EXSERENS:
Thanks for your work, new system is more better than before.
[Xiaomi Mi 2] windbells:
1. Apps battery usage: 53%, your apps seem to keep the system away from deep sleeping. Find it and kill it before screen off.

2. It works on my device
[Xiaomi Mi 2] LiarOnce:
I did this, but it seems to be useless

Background applications only Nova Launcher and Magisk Manager.
[Xiaomi Mi 2] windbells:
How about uninstalling all apps to test the battery life? Or clean data to get a comparison.
[Xiaomi Mi 2] LiarOnce:
I use the IceBox and Greenify, although it's still bad, it's much better than before.