yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 2] PosolKosh:
I've tried to decrease clock speed, either set powersave in CPU governor (using Tasker). But nothing happens, seems that Tasker do nothing with it :(

Also, another portion of bugs:

1. Camera don't work in new parition layout (with old it works fine). I think because no space left in /system (only 9mb free). The same was in M1cha's CM12 unofficial build (but with old parition).

2. After 3d day of usage in new layot, total freezing becomes more often (than no buttons working, including touch screen and power button). Incomng call works, but display do not switching on. after reboot (long press power button for >10sec) it works.

3. then swithching bluetooth on/off many times (in Tasker profile for example), it becomes freezing in off position and could'nt be turned on - only reboot.

From other side, no audiobug, no bluetooth freezing, no wifi disconnects - all works fine.

I've disabled in Google Servicesframework checkingservice, configservice, configfetchservice, and phone goes to deepsleep, but problem with huge battery drain exists.
[Xiaomi Mi 2] rober788:
any ideea how long is taking until finish?
[Xiaomi Mi 2] DaRoni:
fall will be ready =)
[Xiaomi Mi 2] bugers:
M1cha, great job with CM12.1 build!

I only experience battery drain problem which is a little anoying. I made some tests (nothing special in logcat - only QC-QMI) and it looks that it comes from CM (the same installation on Ivan build and it lasts longer. From 22hours max to 2days).

So I would like to try compile new CM version based on your sources. Could you please give some advices what to change in wiki.cyanogenmod.org/w/Build_for_aries? Who knows maybe it's fun and I can help with builds.
[Xiaomi Mi 2] kh.artur:
charging issues

have anybody an issue with charging a battery? I can't charge the battery to 100% even when the phone is turned off. I flashed CM 12 20150322 by m11kkaa and Slim_mini_gapps.BETA.5.0.build.0.x-20150620 and Super SU.

How can I solve it? When I was on MIUI v6 everything was fine.

Thanks.
[Xiaomi Mi 2] acastrocab:
No i dont have any problems with that...try downloading from the play store(i dont know if you can do it with the recovery) and calibrate the battery
[Xiaomi Mi 2] francescus28:
Are there any news about the rom?
[Xiaomi Mi 2] acastrocab:
There is a excel file in drive in the pages before that writes his progress with the rom
[Xiaomi Mi 2] oile:
Tried this build. No bootloops, but never goes into deepsleep.

Wonderful work in any case mikka
[Xiaomi Mi 2] rober788:
https://transfer.sh/ZIPZu/boot.img is not working ... any mirrors?
[Xiaomi Mi 2] SWADED:
Hi M1cha, in the chinese miui forum I see all kinds of roms based of your cm12.1 like ivan version or m1cha's version fixed (whatever that means) etc.

Should I just try these or are you (and Ivan?) working on a new cm12.1 version?
[Xiaomi Mi 2] m11kkaa:
the "cm-12.1 ivan version" is neither from me nor Ivan but I guess they use ivan's 5.1.1 sources instead of my improved ones.
[Xiaomi Mi 2] SWADED:
Ok thanks, so cm-12.1-20150614-UNOFFICIAL is the best/latest version? Or is it too unstable for daily use?
[Xiaomi Mi 2] rober788:
Read previous posts to know the bugs.
[Xiaomi Mi 2] 7sDream:
[MENTION=3530648]m11kkaa[/MENTION]

I try flash "20150614" today from "20150302" version in my Xiaomi 2S, I wipe my data before start, but I meet the bootloop problem too.

And the file that you publish to fix this problem, aka the boot.img file, it's download address was a 404 page when I try to open it.

Now I back to 20150302.

So, Where I can find it? Or Anyone already downloaded this file?

Thanks.
[Xiaomi Mi 2] spaxon:
Here it is boot.img:

https://yadi.sk/d/Fr-WteAZhixpa
[Xiaomi Mi 2] 7sDream:
Thank you!

I will try it.
[Xiaomi Mi 2] rober788:
I get bootloop with this .img (flashed with TWRP)
[Xiaomi Mi 2] wotofoko:
Can someone reupload the fixed img that solves the bootloop problem again as the link given in previous posts are broken?
[Xiaomi Mi 2] infinitely:
https://www.mediafire.com/?xjabz107xg6lnzq
[Xiaomi Mi 2] SWADED:
Didn't you say you where working with Ivan?

All these different version are confusing. I only trust your versions tbh.

Android 4.4.4 still works great so I will just wait for your CM12.1.

Thanks for your hard work :D
[Xiaomi Mi 2] wotofoko:
Does the latest version work with merged partitions?
[Xiaomi Mi 2] bugers:
Yes, I think it even work for both versions.
[Xiaomi Mi 2] wotofoko:
well I have merged partitions and I've flashed cm 12.1 just fine but when I install gapps I cant connect with my google account I get the "There was a problem communicating with google servers." message. Also when I open the camera app it says that it cannot connect to the camera. Is there any particular gapps I have to download and install it in a specific way? I have a mi2s
[Xiaomi Mi 2] wotofoko:
Ok so I installed gapps just fine. But then when i left the phone overnight to download some apps and restore my backup it shut down and when i try to start it up again it just goes to the pin code screen and then shuts down. I did wipe cache but still the same thing happens. It just boots to pin code and then crashes.
[Xiaomi Mi 2] bialabs:
I hope that Micha has not stopped development. Thank you for your work
[Xiaomi Mi 2] bugers:
Good to have hope but by month nothing changed. I ask M1cha to help me to build ROM from his sources and still no answer.

Anyway he made great job trying to make this great phone open but it looks like he left this project.
[Xiaomi Mi 2] m11kkaa:
First off, I did not give up on this project.

The reason why I'm that busy is that I spent that much time on mi2 in past that I couldn't find the time to learn for university. So I'm in my final attempt for my math excam now.

About the sources: this is my local manifest: http://pastebin.com/QhxYxThD

I didn't gave it to u yet because I have some local changes so it's not that useful for u yet.

The most important thing is to backport the earlysuspend kernel driver to reduce the crazy battery drains. Also I have huge problems with the support for the original(split) partition layout. Im not sure if I can drop support without making users angry or not.
[Xiaomi Mi 2] No-New-Phone:
I'd recommend you drop support for original partition layout, if this makes it easier for you. No one needs for get angry, people have still the choice of installing another rom.

In fact, different layouts and dual boot and merged partitions may broaden the choice for the expert, but is threatening the average user (like, for example, me) [emoji12]

If someone is angry, so what? This is open source, he can do his version himself.

An step by step tutorial, combined with an "undo and return to original layout", and the project moves forward.
[Xiaomi Mi 2] wimstefan:
As long as you explain us (users of the old original partition layout) how we can achieve the new layout without too much pain I don't see a problem at all .. ?
[Xiaomi Mi 2] PosolKosh:
Howto move to new parition:

1. Make full backup of recovery and than STORAGE CARD (cuz it will be wiped).

2. Download last fastboot MIUI from here - Xiaomi Mi 2/2S Latest Developer Version Fastboot File Download

3. Follow this guide: http://xiaomi.eu/community/threads/guide-flashing-rom-using-miflash-mi2-3.19287/

Choose "flash_all_wipe.bat" as fastboot script

It will install last MIUI and format your phone into new layout. it will take up to 15 minutes, so be patient.

Caution: OLD recovery for MI2s don't work with new parition!! You need to find new recovery (AFAIK CWM works with new layout, TWRP doesn't).

in russian forum a link on it., flash.bat as fastboot script

And than install any ROM for new layout, and move your SD card backup back to it.

Any old ROM without new layout support will not see SD card. ANd also you have dual system layout with 500 mb in system, which is too small.. How to enchance it I dunno :( Hope m1cha write a new script to remove dual boot support and increase system size removing system2..
[Xiaomi Mi 2] m11kkaa:
I think there's another way. I could always use datamedia (userdata on internal storage) and mount the storage partition like a real sdcard(if available).

This way users of the old partition layout would have less space for their stuff but at least they'd be able to access and backup their files(before changing the partition layout).
[Xiaomi Mi 2] wotofoko:
I flashed cm 12.1 again and the camera doesn't work. It says it can't connect to the camera. Not the built in app or any other app from the market. Is there a solution to this?
[Xiaomi Mi 2] PosolKosh:
Guys, in our russian 4pda forum, we use m1cha script to increase system1 size by decreasing system2 size

Just type this via adb:

. parted -s /dev/block/mmcblk0 rm 23
parted -s /dev/block/mmcblk0 rm 24

parted -s /dev/block/mmcblk0 mkpartfs primary ext2 336MB 1392MB
parted -s /dev/block/mmcblk0 mkpartfs primary ext2 1392MB 1409MB

parted -s /dev/block/mmcblk0 name 23 system
parted -s /dev/block/mmcblk0 name 24 system1

tune2fs -j /dev/block/mmcblk0p23
e2fsck -fDy /dev/block/mmcblk0p23
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p23
e2fsck -fDy /dev/block/mmcblk0p23

tune2fs -j /dev/block/mmcblk0p24
e2fsck -fDy /dev/block/mmcblk0p24
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p24
e2fsck -fDy /dev/block/mmcblk0p24
[Xiaomi Mi 2] enyx.es:
[MENTION=6428279]PosolKosh[/MENTION] liink for recovery doesnt work... can you please upload it elsewhere? thanks...

The script is for 16 or 32 GB version?
[Xiaomi Mi 2] LaiCORE:
Hello! Is it possible to recompile the recovery based on Philz touch recovery? For new and old partition
[Xiaomi Mi 2] m11kkaa:
I guess so but both CWM and Philz are discontinued.

There's just TWRP right now.
[Xiaomi Mi 2] AndyYan:
Back here to see awesome progress since I left :good:

Just continuing the questions above:

1) You have local changes that haven't been uploaded yet - does this mean others can't build from your sources yet? (I ask because since May I do CM builds on my own laptop just for fun)

2) As of now it's not required to use the new partition layout, but since CWM is dead, I'd still like to know if TWRP works with it, or will there be a version that works.

Also [MENTION=6428279]PosolKosh[/MENTION] , your 4pda link for the recovery is a 404, but THIS seems to be a slightly older version that works (can't test myself). Still hope that link gets revived though.
[Xiaomi Mi 2] CBpbxEcmecmBeH:
an answer to your second question..

http://xiaomi.eu/community/index.php?posts/250218
[Xiaomi Mi 2] PosolKosh:
Also [MENTION=6428279]PosolKosh[/MENTION] , your 4pda link for the recovery is a 404, but THIS seems to be a slightly older version that works (can't test myself). Still hope that link gets revived though.[/QUOTE]

Yes, it works. Sorry, this link for registered users. Just as example, that CWM for new parition exists, I think there are many links to other sites.

There're some steps need to do after installing new MIUI via fastboot (to apply new layout), and then to install new recovery - cuz MIUI always rewrite default recovery.

So after installing custom recovery for new layout (via fastboot or default recovery) and after first boot into it (without boot into system!!!), you must immediately install new ROM, or MIUI on system boot write its own recovery back and you need to flash custom again :)

Of course if installing recovery don't have script to disable writing default recovery in miui.

Right now Im on mokee51.1 unnoficial , waiting M1cha to finish his exams :) and till he back to work on the best ROM ever made for our phone :)
[Xiaomi Mi 2] AndyYan:
Nice one, thanks!

I kinda expected MIUI to write its default recovery...

Just asking, is it possible to return to the default partition layout after the conversion?

I'm still weighing the decision of whether to return here by buying a MI2SC, and I gotta say with what I saw I'm increasingly eager to get one.

To m1cha: sure do hope there's a way (or at least a promise) that I can build on my own later... I loved my MI2S very much back when I had it, but had to ditch it only because CM wasn't updated month-long. Not that I want to complain about not-so-timely updates, but since I have the know-how to build from official, taking matters into my own hands means one less people complaining, doesn't it?
[Xiaomi Mi 2] enyx.es:
Yes you can go back to old partitions. Just flash fastboot pre-merged miui rom, add the gpt partition in the .bat or flash it manually and you are back to old partition layout

Enviado desde mi MI 2 mediante Tapatalk
[Xiaomi Mi 2] m11kkaa:
Also I updated my core image generator to support both layouts already: https://github.com/M1cha/aries-image-builder

I just didn't publish it yet because I want to fix TWRP first so it's truly complete.
[Xiaomi Mi 2] enyx.es:
I saw your commits about 2-3 days ago. Keep it up! I need a good working parted in recovery to minimize system 2 [emoji23] [emoji23]

Enviado desde mi MI 2 mediante Tapatalk
[Xiaomi Mi 2] m11kkaa:
me too :P But since TWRP's code is awful and I'm working together with amarullz on AROMARecovery anyway where it will be very easy to implement such features it will need some time.

BTW about EFIDroid(former GRUB4Android): I saw that there's a libc wrapper that makes it possible to compile most console applications as UEFI apps.

Depending on the completeness of this I could port cool stuff like libparted and e2fsprogs(mkfs, resizefs,...) directly to the bootloader :D

It's still too early to say if the following is possible but wouldn't it be cool to use libaroma in EFIDroid instead of a simple custom UI? :D I need good threading support for that and hopefully it's fast enough when running on limited cpu power.
[Xiaomi Mi 2] enyx.es:
If i were you I would make in 2 steps:

1- make it work, fully

2- make it beautiful

I saw you are on lots of projects on github making you web and so, just from time to time remember us a little

;)

Enviado desde mi MI 2 mediante Tapatalk
[Xiaomi Mi 2] AndyYan:
Gosh, just how many legendary devs you are working with and how many super projects you have in hand! :eek: That totally justifies why you seem so busy to us...

If this is the case, I think it's reasonable to shift focus to projects other than this. Just make your codes buildable and keep an eye on this thread for (occasional) possible bug reports, if you know what I mean?

Sent from Google Nexus 4 @ CM12.1

[WARNING: XDA Premium 4.0.13+ lacks Signature function - do not update]
[Xiaomi Mi 2] DaRoni:
waiting for new builds :p
[Xiaomi Mi 2] enyx.es:
[MENTION=3530648]m11kkaa[/MENTION]

249b3d4 : Can i / should i use it????

You're the man :victory::victory::victory::good:

http://cdn.niketalk.com/1/17/350x700px-LL-1756fde0_382.gif
[Xiaomi Mi 2] m11kkaa:
aries-image-builder = miflash, it's not related to Android.
[Xiaomi Mi 2] enyx.es:
sorry mate, previous commits makes me hype to much too early

Though it was a generated file I could flash

EDIT: never post at 2 AM again.... M1cha i meant 466f23b....

Enviado desde mi MI 2 mediante Tapatalk
[Xiaomi Mi 2] wotofoko:
Anyone can help me with the "can't connect to the camera" error?
[Xiaomi Mi 2] DaRoni:
it seems a bug,

http://xdaforums.com/showpost.php?p=61849048&postcount=445

http://xdaforums.com/showpost.php?p=61926769&postcount=454
[Xiaomi Mi 2] m11kkaa:
fixed :)
[Xiaomi Mi 2] wotofoko:
Yea you quoted both my previous posts. Is there a solution to that? No camera app seems to work.
[Xiaomi Mi 2] m11kkaa:
As I said - it's fixed :) You have to wait for the next build.
[Xiaomi Mi 2] No-New-Phone:
[MENTION=3530648]m11kkaa[/MENTION], two questions.

1st: Bluetooth connectivity is quite important for me, as car audio connects that way. Does this receive some of your or some contributors love? (BTW, do I remember it right, that audio hal made it difficult to get Cm11 official?)

2nd: shouldn't this become android 5.1?
[Xiaomi Mi 2] m11kkaa:
1) well neither do I have a car or bluetooth devices nor I ever got reports with useful information like logs about this problem.

2) yes, but since the cm12.1 release was a test release I didn't update the thread yet.
[Xiaomi Mi 2] wotofoko:
Oh ok sorry i didnt notice. Thanks.

One more thing. The phone seems to randomly shut down. I am not sure how random this is but it shut down 3 times so far (period of 2 weeks) and

I think that it was shortly after I have installed multiple apps or a big one.

I dont know if there is a connection between these but as I stated in a previous post of mine, the first time I flashed CM

and download all the apps I previously had, which were a lot and the whole process lasted a full day, the phone wouldnt boot.

During that day the phone shut down a couple of times and after a point when I left it overnight

to download the remaining apps it shut down again and everytime I tried to start the phone it would

shut down again in a matter of seconds (usually around SIM code screen or couple of seconds later).
[Xiaomi Mi 2] rober788:
[MENTION=3530648]m11kkaa[/MENTION] any news about a new build?
[Xiaomi Mi 2] No-New-Phone:
I will install next build when I am back from summer holiday and I hope to be able to provide logs from bluetooth connection. Give me about two weeks.
[Xiaomi Mi 2] Matze001:
I am a bit confused about the different ROMs out there titled "by m11cha": AOSP, CM12, CM12.1, merged, non-merged... Is there a comprehensive overview anwhere?
[Xiaomi Mi 2] m11kkaa:
Update time :) (check the OP). differences to the previous alpha:

- fix earlysuspend to reduce power usage

- fix camera for some devices

- fix bootloops

- enable datamedia for all devices(separated internal storage is treated as a sdcard now)

- update kernel to 3.4.108 (and merge Google's kernel/common for security fixes)

SELinux still is in permissive mode and hw tunables are missing.
[Xiaomi Mi 2] erlgrey:
[MENTION=3530648]m11kkaa[/MENTION] cool, thanks!

do you think its okay if i flash it over cm12 (5.0.2, 20150322) or is this a bad idea?

I'm still on the old but resized (larger sys) partition layout, so i think this part should be fine.

ty and br,

Martin
[Xiaomi Mi 2] mischler:
Is Bluetooth working correctly?

In older Versions when i disabled BL i have to do a restart too enabled it again.
[Xiaomi Mi 2] erlgrey:
okay, flashed it in the meanwhile but gapps FC now.

I tried gapps-5.1-arm-2015-07-17-13-29.zip and gapps-5.1-2015-07-03-13-41.zip

https://github.com/cgapps/vendor_google/tree/builds/arm

Did i miss something how i can get gapps work again? Had no issues in previous cm12.

Thanks
[Xiaomi Mi 2] m11kkaa:
which partition table do you use?
[Xiaomi Mi 2] erlgrey:
Last time i touched it was with the resize script from you which you introduced with cm11 i think, how i can answer you more detailed?

Edit: according to repartition.SH system and system1 should be 840mb.

Not sure how i can check it, until now it was big enough for cm11 and cm12 + gapps
[Xiaomi Mi 2] erlgrey:
Playstore works, when i reinstall affected apps it seems to be fine.

Maybe it has something to do with the changed sdcard partition layout, all old data can be now found under /storage/vsdcard instead of sdcard.

/sdcard points now to internal memory which is only 2,89gb and has not enough space for eg. Maps, and so on

/storage/vsdcard was not writeable here, so I indeed had some kind of space issue. ;)

Download and dcim and so on points to small internal memory, I guess this is not so good.
[Xiaomi Mi 2] m11kkaa:
why it's readonly for you? That's not how it should be.
[Xiaomi Mi 2] erlgrey:
Updated previous post.

/storage/vsdcard was read only, can write now ( sdfix or es file explorer fixed it)

But default folder for download, dcim, .... Is still stored in small 2,89gb "internal memory" which can cause space issues.
[Xiaomi Mi 2] m11kkaa:
well that's why the recommended way is to use datamedia because there really are no downsides(except for rom compatibility). I created this workaround so u can at least backup your data.

If you want to stay with this layout I have a small trick for you(I didn't test it):

You can symlink the big directories like Android or DCIM to the vsdcard like:

ln -s /storage/vsdcard/DCIM /mnt/shell/emulated/0/DCIM
[Xiaomi Mi 2] erlgrey:
Ah okay, it was not clear for me that then old layout will only be supported in some kind of failsafe mode, or how ever this can be called.

I will switch to the new partition layout later, when I know how. :)

Thanks for your help! :)
[Xiaomi Mi 2] m11kkaa:
http://xdaforums.com/mi-2/orig-development/flashtools-miflash4linux-recovery-qdl-t3036730

(aries_core_unified_single.zip) :)
[Xiaomi Mi 2] erlgrey:
Awesome, i missed the flashtool thread completely until now. :)
[Xiaomi Mi 2] m11kkaa:
thx, it's already fixed for the next version :)
[Xiaomi Mi 2] UserC:
Yeah I've just noticed now that people reported that on the earlier build that didn't work for me :p

Also, people had issues with deepsleep in said build.

For the time being, deepsleep works well with this build.

For some reason, the battery usage app doesn't show me individual apps battery usage, it simply says "Battery usage data isn't available". Don't know if this is a bug or simply takes longer to populate on lollipop, wasn't able to find information online.
[Xiaomi Mi 2] gonito:
Hi, m11kkaa. I have the old layout on the 16 gb model, and I think it's time for a change. Can I use aries_core_unified_single.zip or do I need to modify something first? Seems like everyone has the 32 gb model. Thank you!
[Xiaomi Mi 2] m11kkaa:
these images are generic. The bootloader patches the last partition(userdata or storage) to fill the remaining space. MiFlash does the same when flashing in QDLOAD mode.
[Xiaomi Mi 2] linuxxxx:
That sounds like a selinux issue (I haven't flashed the new build yet, so I dunno if it's enforcing)

Those are my gapps, and they should be ok (at least on my cancro they are). Which process is crashing?

PS: I'm still alive, but I'm doing cancro cm bringup so I'm not really active for Aries [emoji14]

Inviato dal mio A0001 utilizzando Tapatalk
[Xiaomi Mi 2] UserC:
Individual app battery usage got populated after a while, but it doesn't show many apps, not as nearly as populated as on JB.

Although the phone goes to sleep, there's a significant battery drainage, about 23% in 5 hours. The battery statistics shows "call standby" as the most significant battery drainer. Other than that,Wakelock detector doesn't give me any valuable information.
[Xiaomi Mi 2] zipalign:
I am missing something.. can I flash the new build on old partition layout [without losing access to anything] or merged partitions are mandatory?

thanks!
[Xiaomi Mi 2] jianggau:
So, how is the battery life??
[Xiaomi Mi 2] eintr:
Flush report:

I'm in CDMA 2000 Evdo network. Flashed 0730 just now. :cool:

Problems so far:

* Phone mode is sticked to "WCDMA Preferred", I have to change it to "CDMA auto" via 4636 magic number by hand EVERY boot.(And it is weird that I have to set it TWICE... :confused: )

* By previous step, phone call is working, but the 3G is not connected yet. I can see PPP data count increasing, so I guess the APN setting is not right. Where can I set my APN in CM12.1?

* SMS is not working.
[Xiaomi Mi 2] CBpbxEcmecmBeH:
^^regarding the first point, i think you can manually select preferred network in build.prop
[Xiaomi Mi 2] spaxon:
I saw on chinese miui.com patch for not merged partitions (old partition): here is a link for it.

I did not try it.
[Xiaomi Mi 2] Shuvo_bd:
I just flashed the latest built. Never used CM 12.1 before so i had to marged partition by flashing Micha's flashtool package. I used aries_core_unified_single package. Flashed successfully and so far i dont have any issue except, i cant see where all my storage gone?? In the file manager i can see only 4 GB storage. How to access rest of the storage? I m totally lost i guess :(
[Xiaomi Mi 2] UserC:
You need to format the data partition to FAT and then to EXT4. Hope this helps!