• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[5.1.1][BETA][UNOFFICIAL] Cyanogenmod 12.1 [latte] | Mi Pad 2

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
Broken:
  • Camera
  • You tell me

Working:
  • Wi-Fi
  • Hardware Playback (YouTube, Twitch, etc)
  • Audio
  • Deep sleep
  • Sensors
  • Buttons (keylayout)

Installation Instructions:
- Download the ROM
- Put the downloaded zip file on your SDCard
- Reboot in Recovery
- Wipe System, Cache, Dalvik Cache, Internal and Data Partition
- Flash rom
- Reboot system

Compatibility:
Compatible with Xiaomi Mi Pad 2 (Intel Atom) tablet. 16 or 64GB. Using proprietary blobs based on Xiaomi MIUI 8.x stable rom.

Downloads:
ROM:
https://drive.google.com/file/d/0B-Fin8UxrD6PVnR2S0lUYUZVRjA/view


XDA:DevDB Information
CM12.1 for latte, ROM for the Xiaomi Mi Pad

Contributors
tank0412
Source Code: https://github.com/latte-dev

ROM OS Version: 5.1.x Lollipop
Based On: CM

Version Information
Status: Beta
Current Beta Version: 1.4
Beta Release Date: 2017-04-26

Created 2017-04-11
Last Updated 2017-04-26
 

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
New CM12.1 build is released.
Changelog:
latte: Use MIUI Stable 8.2.2.0 build fingerprint
[REVERTNE] latte: enable virtual buttons
latte: swap to source built kernel with Lollipop selinux (selinux is enabled now)
latte: re-import blobs from Miui stable v8.2.2.0

Download:
https://drive.google.com/open?id=0B-Fin8UxrD6Pbnc2X0V2VzlxM2M

What works: Wi-Fi, BT, touchscreen
What does not work: audio, sensors, autobrightness
 
Last edited:

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
CM12.1? In 2017?
What reason to develop old CM build for MiPad2?
During ROM developing for any device, we must fix all bugs first on a rom which have same android version as stock rom.
I mean stock rom has Android 5.1 so we must fix everything on CM12.1 first.
But is very hard. I still do not understand why CM12.1 has so many bugs.
 
  • Like
Reactions: Skar3

Skar3

Senior Member
Jul 9, 2012
530
127
43
@tank0412 Join MiPad 1 development :p
there are much more People using MiPad1 than MiPad 2 They will respect your hardwork a lot :)
At least it has LOS14.1 :p
What's the point of this comment? Thats a thread for the mi pad 2, i respect tank0412 and I hope I will be able to offer a viable alternative to miui for this magnificent device
 
  • Like
Reactions: Jogor

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
Thank you for your work, we need an alternative to MIUI, deep sleep work?
There is a very strange situation with deep sleep.
It looks like it works on prebuilt kernel from MIUI but on this kernel everything like Wifi, bt and etc are dead.
But on kernel which i built from source wifi and BT is OK but deep sleep is dead.
It is a very strange. And i really puzzled due to it
 
  • Like
Reactions: Skar3

Palm Trees

Senior Member
Dec 9, 2016
717
307
63
There is a very strange situation with deep sleep.
It looks like it works on prebuilt kernel from MIUI but on this kernel everything like Wifi, bt and etc are dead.
But on kernel which i built from source wifi and BT is OK but deep sleep is dead.
It is a very strange. And i really puzzled due to it
Try asking KonstaT about it.
 

udaan

Senior Member
Sep 11, 2013
749
162
0
Source code is already out , in which world you are living LOL
haha are you sure about that? Why dont you give that source code to @Harrynowl :)

---------- Post added at 01:41 PM ---------- Previous post was at 01:39 PM ----------

Theoretically we can port newer Android version (like Marshmallow) but before this we must fix everything on 5.1.1
It has already been ported ;)
https://forum.xda-developers.com/mi-pad/development/unofficial-lineageos-13-0-xiaomi-mi-pad-t3565760
 

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
haha are you sure about that? Why dont you give that source code to @Harrynowl :)

---------- Post added at 01:41 PM ---------- Previous post was at 01:39 PM ----------



It has already been ported ;)
https://forum.xda-developers.com/mi-pad/development/unofficial-lineageos-13-0-xiaomi-mi-pad-t3565760
LOL.
I developed RR 5.7.4 Marshmallow for mipad 2 during 4 month.
https://forum.xda-developers.com/mi-pad/development/rom-resurrection-remix-mm-5-7-4-t3526898

But now we must fix lollipop first and only after this we can get a stable marshmallow.
 
  • Like
Reactions: mpokeras

Mortihead

Member
Dec 23, 2013
45
22
0
During ROM developing for any device, we must fix all bugs first on a rom which have same android version as stock rom.
I mean stock rom has Android 5.1 so we must fix everything on CM12.1 first.
But is very hard. I still do not understand why CM12.1 has so many bugs.
I see, thank You!
5.1 is not bad. Now I'm on leaked AOSP build for mipad2, I'm happy for everything, but random reboots and drain battery occurs.
If stable CM 12.1 will appear - it will be fine, I'm flash it.
 
Last edited:

udaan

Senior Member
Sep 11, 2013
749
162
0
LOL.
I developed RR 5.7.4 Marshmallow for mipad 2 during 4 month.
https://forum.xda-developers.com/mi-pad/development/rom-resurrection-remix-mm-5-7-4-t3526898

But now we must fix lollipop first and only after this we can get a stable marshmallow.
I don't know. You cannot fix it because xiaomi has not released proper/full source code for the device. Without it, you are basically a handicap.

But new MIUI ROM (from xiaomi.eu) for mipad2 is working good, they have significantly improved the battery life in latest builds.

But thanks for contiributing and your interest in our device. Hopefully you will be able to achieve the fully working ROM. :D

Cheers!
 

tank0412

Elite Member
May 24, 2014
2,831
5,468
0
Saint Petersburg
Well, guys, i am testing a new CM12.1 build.
One hour is passed and battery level is still same.
So i am not sure but it looks like that at least deep sleep is OK.

BTW, it looks i found a reason why sensors is dead.
Dmesg has this:

<11>[ 182.639903] init: cannot execve('/system/bin/msync'): No such file or directory
<11>[ 182.640453] init: Warning! Service otpserver needs a SELinux domain defined; please fix!
<11>[ 182.640785] init: cannot execve('/system/bin/coreu'): No such file or directory
<11>[ 182.641437] init: cannot execve('/system/bin/otpserver'): No such file or directory
<11>[ 182.643954] init: cannot execve('/system/bin/keymaster_meid'): No such file or directory
<11>[ 182.644351] init: cannot execve('/system/bin/sensorhubd'): No such file or directory
<11>[ 182.645104] init: cannot execve('/system/bin/hdcpd'): No such file or directory

THe problem is rom has all this files in /bin folder but init can not find it.
 

pbg_87

Senior Member
Nov 5, 2008
103
31
0
33
Papenburg - Germany
Maybe init is ignoring the binarys because of missing selinux? Are you booting with selinux enforced?

BTW: execve seems to be a permission problem.
<11>[ 182.641437] init: cannot execve('/system/bin/otpserver'): No such file or directory
 
Last edited: