[UNOFFICIAL] LineageOS 13.0 for Xiaomi Mi Pad 2

Harrynowl

Senior Member
Sep 17, 2016
330
573
0

LineageOS is a free, community built, aftermarket firmware distribution of Android, which is designed to increase performance and reliability over stock Android for your device.

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.
LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

GPL compliance:
Device tree, kernel and vendor tree: Github

Broken:
  • Camera
  • Some users have a random reboots

Working:
  • 3D Acceleration
  • Wi-Fi
  • Hardware Playback (YouTube, Twitch, etc)
  • Audio
  • Sensors (Lights, rotation, etc)
  • Bluetooth
  • Deep sleep

Bugs:
When you think you've found a bug, please make sure it's repeatable + not a one off. If it is you must provide a dmesg (dmesg > /sdcard/dmesg.txt) and a logcat (logcat -d > /sdcard/logcat.txt) from the on-device terminal emulator.


Screenshots:

Compatibility:
Compatible with Xiaomi Mi Pad 2 (Intel Atom) tablet. 16 or 64GB. Using proprietary blobs based on Intel minnowboard releases and Xiaomi MIUI 8.x developer packages.

Downloads:
1/03/2017
Changelog:

- Initial Release
- Source based kernel

2/03/2017
Changelog:

- Fix sensors
- Fix bluetooth

4/03/2017
Changelog:

- Fix app crashes (apps compiled for ARMv7 launched via houdini)
- Fix colour washout

9/03/2017 (it is the last build by harrynowl)
Changelog:

- Update Houdini libs & binary to improve ARM emulation performance
- Fix LED notification
- Improve the PowerHAL
- Fix offline charging (no longer hangs @ MI logo)
- Merge kernel upstream to 3.14.79

6/05/2017
Changelog:

  • Switch to Lollipop proprietary blobs from Miui LP with Marshmallow bring up (For more info visit this GIthub repo )
  • Merge missing upstream Lollipop commits (For more info visit this Github repo)
  • latte: Use MIUI Stable 8.2.2.0 build fingerprint
  • latte: ramdisk: disable pstore-clean at all
  • Sync latest sources

01/10/2017
Changelog:

  • Sync LineageOS 13 sources
  • Merge ~ 300 upstream commits from android/kernel_common (branch deprecated/android-3.14) to our kernel sources

08/10/2017
Changelog:

  • Sync LOS 13 sources so: October stagefright patch is there
  • Fix a deep sleep issue
  • Fix a some colour inaccuracy issue
  • But some users now can have a random reboots

29/01/2018
Changelog:

  • Bump security patch level to 2018-01-05
  • manifest: android-6.0.1_r81
  • latte: apply changes for camera which were suggested by itsju fro 4PDA
    P.S. Camera now do not crash anymore. Just show a green screen instead of photo.


Gapps:
I suggest the gapps packages available at opengapps.org. You'll need to use the x86 version as the ROM is built with a 32 bit userspace.

Credits & collaborations:
  • KonstaT - Initial Cherry-Trail ground work (device bring up, vendor blob lists)
  • tank0412 - Initial Mi Pad 2 ("latte") bring up & vendor tree
  • Myself - Many fixes, improvements & fixing the kernel
  • android-ia / 01org - Various open source Intel resources
  • LineageOS / AOSP - Base source code

XDA:DevDB Information
LineageOS 13.0, ROM for the Xiaomi Mi Pad

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

ROM OS Version: 6.0.x Marshmallow
Based On: LineageOS

Version Information
Status: Beta
Current Beta Version: 1.0
Beta Release Date: 2017-03-01

Created 2017-03-02
Last Updated 2018-01-29
 
Last edited:
M

Maxdalax

Guest
Wow, great! Thanks! I'll wait for working bluetooth before moving from RR. But I love the initiative, and I much prefer LineageOS to RR! Will you be moving to the development of 14.1 once the broken features of this ROM eventually are fixed?
 

ferreinf

Senior Member
Jun 26, 2010
2,312
536
193
You've done it ☺
Subscribed, thank you for your time.
Maybe adding kcal support will help with colours.

Sent from my OnePlus 2
 

Jogor

Senior Member
Jan 4, 2011
92
37
38
Our device files can be used to build pretty much any M based ROM like Omni, AOSP and AOKP also :)
I actually started to read up on how to build roms myself last week, just to learn abit more..

I installed Linux, set up a github account and forked device tree and all that, but no time to finish it yet..:)
 

Harrynowl

Senior Member
Sep 17, 2016
330
573
0
I actually started to read up on how to build roms myself last week, just to learn abit more..

I installed Linux, set up a github account and forked device tree and all that, but no time to finish it yet..:)
To help out, you'll need to add this to your .repo/local_manifests/roomservice.xml in whatever ROM you choose to build.

You often need to adjust the .mk files in the tree as AOSP will not build without changing "lineage_x" to "aosp_x" for example. Similar for Omni etc..

Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<!-- MI PAD 2 -->
<project name="latte-dev/android_device_xiaomi_latte" path="device/xiaomi/latte" remote="github" revision="cm-13.0" />
<project name="latte-dev/android_vendor_xiaomi_latte" path="vendor/xiaomi/latte" remote="github" revision="cm-13.0" />
<project name="latte-dev/android_kernel_xiaomi_latte" path="kernel/xiaomi/latte" remote="github" revision="cm-13.0" />
</manifest>
 

Harrynowl

Senior Member
Sep 17, 2016
330
573
0
Wow, great! Thanks! I'll wait for working bluetooth before moving from RR. But I love the initiative, and I much prefer LineageOS to RR! Will you be moving to the development of 14.1 once the broken features of this ROM eventually are fixed?
Devlopment on LineageOS 14.1 is started, but the aging Lolipop blobs are missing some symbols so it's very much a WIP. More focused on making 6.0 work properly :)

You can see any discussion/progress on our Github link.

You've done it
Subscribed, thank you for your time.
Maybe adding kcal support will help with colours.

Sent from my OnePlus 2
As far as I'm aware KCAL is only for qcom mdss driver
 
Last edited:

Vihru

Senior Member
May 25, 2012
2,385
591
183
Finland
Thanks a lot! you are hero! Mi Pad 2 is so good device and need this kind of rom! hopefully camera get fixed someday.. that it can be used..
 
Last edited:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone