[ROM] [UNOFFICIAL] LineageOS 12.1 |ASUS Memo Pad HD 7 (me173x) [MT8125]

Search This thread

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Disclaimer:
LineageOS (Lineage Android Distribution) members or anyone else on this website is 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 the products you find here before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Your warranty will be void if you tamper with any part of your device / software.





How to Install:
1- BACKUP, BACKUP, BACKUP, All will be WIPED!
2 - Unlock bootloader instructions here
3 - Flash New Recovery (with newer kernel for Lollipop)
4 - Move Rom & Gapps into external (or internal) storage
5 - Full Wipes ( recommended, wipe All -Preflash)
6- Flash Rom & Gapps (gapps are OPTIONAL)
After ROM is finished flashing, there will be a prompt for
To fix "SU"
--> press "NO", otherwise it'll mess some permissions and wifi (among other things) won't work properly



for GAPPS:

Choose Gapps Package "ARM" > "5.1" > "Pico" or "Nano" visit OpenGAPPS




Working:

  • Boots :cool:
  • Wifi
  • Bluetooth
  • GPS
  • Audio ( all: Speaker and headphones)
  • Charging and Offline Charging
  • Mediaserver
  • SW enc/dec
  • Both storages working
  • HW Composer
  • etc ....




NOT Working:
  • No camera support (broken in my kernel, and likely broken in Lineage as well)
  • Auto rotation (accelerometer broken in my kernel)
  • You tell me


Thanks

  • OMNI Rom and their work on MT6589 (special thanks to: xplodwild & Dr-Shadow)
  • chrmhoffmann
  • kashifmin & blackrebel75
  • DerTeufel1980 & fire855 ( my Team mates from M.A.D) some of our "madOS" optimizations where used here / other stuff :cool:



  • BSydz for Carliv-CWM Recovery ( im too lazy to build one)
    recovery has been repacked with my kernel for lollipop flash)




XDA:DevDB Information
[ROM] [UNOFFICIAL] LineageOS 12.1 |ASUS Memo Pad HD 7 (me173x) [MT8125], ROM for the Android General

Contributors
superdragonpt
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.4.x
ROM Firmware Required: Unlock Bootloader
Based On: CyanogenMod/LineageOS

Version Information
Status: Beta

Created 2019-10-28
Last Updated 2020-04-27
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
FAQ & Changelogs / Downloads

Small FAQ:


Q: How can i Unlock the Bootloader?
A:
Instructions for Unlocking the Bootloader can be found here

Q: After locking the screen, the screen is all black, and I'm forced to reboot, how can I fix this?
A: If you have this issue, then your device uses an different hardware LCM
( the lgld070wx3_dsi_vdo ), please use the second kernel.zip for this variant, it'll be added an second kernel . zip for people with this variant, on the download section with the ROM releases
how to flash this ?
After flashing the ROM, flash the second kernel afterwards
This kernel containing the LCM for this HW variant will be always WIP, as both my units have the first LCM HW variant ( nt35521_dsi_vdo).
So my testing will be always based on other people logs

Q: Where are the Developer Options?
A: Go to Settings>About Phone, and tap 7 times on the Build Number

Q: How can i root this rom?
A: Rom is already pre-rooted with Lineage's su
--> Enable Developer Options by tapping 7 times on Build Number
then in Developer Options > Check the "root access" option

Q: Can i root with another method ?
A: Sure, you can also use latest SuperSU (v 2.82)
Magisk root, haves some issues with Legacy MediaTek Devices, use/ test at your own risk

Q: I can't flash this Rom on recovery, why?
A: You need to update your recovery in order to flash this Lollipop Builds

Q: How can i flash the new recovery?
A: If you already have an custom recovery installed:

Download the new recovery zip
flash the new recovery
reboot to recovery again

If you don't have any custom recovery installed:
- You can extract the "recovery.img" from the .zip
- Open an terminal
- Boot to fastboot mode, and type:

Code:
fastboot flash recovery recovery.img
then reboot:
Code:
fastboot reboot
Q: I Love your work, how can i thank you?
A: You can press the "Thanks" button, and if you wish, you can pay me a beer



Changelogs:

Build: 20191028

  • First Release
  • build.id=LMY49J
  • version.release=5.1.1
  • Security_patch=2016-11-01



Build: 20191103

  • GPU PowerVR SGX 544: Update driver & DDK update from 2204701 > 2564405
  • LCM: nt35521_dsi_vdo: Improved Gamma / color
  • cpufreq & HotPlug Mechanism Backport from MTK KitKat
  • Reverted ASMP
  • Charger: BQ24156: Corrections: in some scenarios (thermal) current was too low to init charging
  • LCM: nt35521_dsi_vdo: More reverse engineering done ( greatly improved resume, suspend, etc)
  • Other Kernel optimizations, check github for full list
  • Fixed and enabled HWC (hardware composer)
  • ART: improvements for low ram devices
  • Many low ram optimizations
  • Frameworks: tune for Faster app switching
  • Frameworks: tune System Animations for low ram
  • Frameworks: tune Scrolling, velocitytracker, other system animations


Build: 20200413


Kernel:
  • New Kernel, based on latest 6589 platform baseline
  • Upstream to Linux 3.4.11

Many (many...) issues fixed, being the main ones:
  • Linaro 4.9.1
  • Update ExFat to 1.2.9
  • Many GPIOS issues fixed (mediatek power)
  • Update BFQ to v7r8
  • mediatek board: MSDC fixs
  • Removed MediaTek LMK (low memory killer) implementation, switch to android's and upstream lowmemorykiller
  • selinux and binder updates
  • Removed some MediaTek SCSI mess implementation (very bad)
  • Increase Swappiness
  • Video: Fix LCD Blinking & ESD discharge
  • mediatek: Update connectivity, Sync with MediaTek LP 3.10 kernel
  • Backported from mediatek kernel 3.10.x (lp1 & MM) several Kernel security vulnerabilies & updates
  • Battery: New battery percentage tables
  • charger: Fix several issues
  • Power OFF charging: fix issues
  • combo chip improvements
  • LCM improvements
  • etc

Device:
  • Fix some ramdisk permissions
  • Switch to tablet optimized recents interface
  • Fix screen flipping before screen goes off
  • Disable config_wifi_background_scan_support
  • Switch to shim lib
  • SW OMX improvements
  • ART optimizations
  • Remove useless packages ( reclaim more RAM)
  • etc

Frameworks, others:
  • CM -> Lineage, last steps rebranding
  • Fix some eGL crashs
  • remove cmstats to stop tracking...
  • Improve GPS assist
  • SW OMX improvements
  • Fix two NullPointerExceptions
  • Backport security vulnerability on SQL
  • Fix fix memory leaks
  • Track down and fixed an issue where audio would stop playing ( Facebook videos)
  • Fix WVM, widevine DRM
  • Add Chromium Browser to replace the old and insecure AOSP Browser
  • Disable HWC (we don't really need it for now)
  • Fix a missing symbol from ICU
  • Backport security vulnerabilies on fw_opt_net wifi & external wpa supplicant
  • Fix an issue with Bluetooth share
other stuff...



Build: 20200516

Kernel:
  • Upstream to Linux 3.4.34
  • LCM: nt35521_dsi_vdo: Be compatible with the newer Hynix nand
  • mmc: Hynix HAG2E: Work around sdio resume
  • Power: Turn off VMC 3V For power saving
  • WiFi: Adjust regs for better WiFi Power flow (Decreases WiFi Power consuption)
  • mediatek: remove MTK SCHED
  • WiFi: Final corrections (Fully working now)
  • Sound corrections
  • video: Improve on-resume responsiveness
  • LCM: lgld070wx3_dsi_vdo Is fully working now
  • Other small issues & clean up fixs

Frameworks:
  • native: libUi : Add compatibility with MediaTek MT6589
  • native: surfaceflinger: Add compatibility with MediaTek MT6589
  • EGL: Add further compatibility with MediaTek MT6589
  • av: libstagefright: WIP MT6589 Fixs
  • Better integration of MTK MT6589 hwcomposer (forward port code from MediaTek MT6589 KK BSP)
  • Better integration of MTK MT6589 gralloc (forward port code from MediaTek MT6589 KK BSP)




Downloads:

Recovery:
https://www.androidfilehost.com/?fid=4349826312261609065



Download Builds:

20191028


20191103


20200413

https://www.androidfilehost.com/?fid=4349826312261770467

Kernel for users with second LCM HW variant
(check F.A.Q. above for more info )
https://androidfilehost.com/?fid=4349826312261777404


20200516

https://www.androidfilehost.com/?fid=4349826312261811603

Kernel build 20200516 (for second LCM HW variant)
(check F.A.Q. above for more info )
https://www.androidfilehost.com/?fid=4349826312261811606





..
 
Last edited:

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Info and GPL Compliance

Some small intro:

Asus never complied with GPL (despite the efforts of many people, myself included)
Asus always denied to provide the *real kernel source code, instead they provided an generic kernel that is useless, as it doesn't contained ANY driver used by this device


My Kernel, was made from *scratch, and this took some years to achieve the current state, yet, it's not completed nor perfect:


Broken:

- No cameras support ( the image sensors are highly customized by Asus), this is broken at kernel level, let alone on ROM...
- Sensors ( accelerometer & magnetometer are still kinda broken, they are registered, but don't work most of the times)

half Broken:

- WiFi : WiFi driver has also been highly customized, right now WiFi is working just fine, but with just one small bug
--> if you disconnect WiFi, and then afterwards try to connect it'll hang ( you need to reboot)
FIXED since Build 20200516

- Reported battery percentage, isn't very precise , and may have sudden drops


Working:

  • LCM nt35521_dsi_vdo
  • LCM lgld070wx3_dsi_vdo
    (second HW revision), support available in an seperate kernel .zip
    ( check F.A.Q above)

  • Touch (GT927)
  • Charging (BQ24156)
  • Storages
  • All the rest

GPL:

Kernel:
https://github.com/dragonpt/android_kernel_asus_me173x


New Kernel starting from 20200413 builds
https://github.com/dragonpt/android_kernel_asus_me173x_new


Device:
https://github.com/dragonpt/android_device_asus_me173x
 
Last edited:

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Thanks for your efforts to make this working. Great job!
Still have one lying around here so definetly gonna try this.

If remaining problems with CM12.x are solved will there be like CM14 in the future too?

Thanks.

Funny you asked this
There's some early work already towards los 14
( Nougat)

Let's see
 

taller_stk

New member
Oct 20, 2019
3
1
Thanks for work!
Yesterday I install this version on my tablet. Good side: tablet booted :) But after screen lock, I only can see screen backlight and sounds when I tap to a black screen, reboot helped solve this problem, but after screen lock, this problem repeated. And I can't turn on wifi
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Thanks for work!
Yesterday I install this version on my tablet. Good side: tablet booted :) But after screen lock, I only can see screen backlight and sounds when I tap to a black screen, reboot helped solve this problem, but after screen lock, this problem repeated. And I can't turn on wifi

Interesting...
As I mentioned previously, this tablet came with two versions of LCM, I own two and both have the same :
"nt35521_dsi_vdo"
I can only assume your have the other LCM variant from LG "lgld070wx3_dsi_vdo"

As you can see here in kernel project configuration:

https://github.com/dragonpt/android...sus/mediatek/config/asus/ProjectConfig.mk#L49

Thanks for your provided feedback, you gave me an clue in how to possibly fix this second LCM variant, I'll look into it.

Meanwhile if you please: before your tablet went into locking, where the colors alright, any noticeable artifacts in the screen?

Thanks
 
Last edited:

taller_stk

New member
Oct 20, 2019
3
1
Yep, I see some artifacts on the screen: screen blink and white line on the bottom of the screen

JFYI, I have RUS tablet version
 
Last edited:
  • Like
Reactions: superdragonpt

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
Hi, is there a method from stock to determine that LCM version?


yes


If you have stock rom (or any of my AOSP roms)


you need root, install deviceinfohw app



https://play.google.com/store/apps/details?id=ru.andr7e.deviceinfohw&hl=en_US



then on this app go to settings, allow root permissions


reload the app, and it'll show the LCM driver






edit check picture:


xwyCIhj.jpg

 
Last edited:
  • Like
Reactions: Rortiz2 and Trubbs

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
What are people using for root on this? I've tried flashing Magisk (v20) but it fails in an unsupported image format when extracting the boot image.

Lineage have their own su, you can activate it on developer settings
- you can also flash latest SuperSu 2.82 (tested working)
-Magisk haves some issues with some Mediatek devices (some other mtk devices my team supports haves this issue as well)
If I recall ... only until version 14 or 16 works
( I'll confirm this later)

Cheers
 

con01

Senior Member
Sep 5, 2007
51
4
I have graphic artifacts after waking up the device. in addition, tablet charging does not work. after uploading the re-stock ROM loading works

Wysłane z mojego motorola one vision przy użyciu Tapatalka
 

superdragonpt

Recognized Developer
Apr 27, 2013
4,952
19,354
Lisbon / Taiwan / USA
www.caixamagica.pt
I have graphic artifacts after waking up the device. in addition, tablet charging does not work. after uploading the re-stock ROM loading works

Wysłane z mojego motorola one vision przy użyciu Tapatalka

Really Weird charging is not working...
Working fine for me, (16 GB variant WW) also a user with the 16GB variant RU also confirmed this to be working

About after waking up the device I have this sometimes as well, its ESD discharge from the LCM, not something to worry about, the LCM is not perfect, needs some more tuning .

Could you tell me what LCM does your variant uses?
You just need to install an app and check .

Seems to me , there's some more model variants
( with slightly different hardware that I was aware )

Cheers
 

dt_matthews

Senior Member
Jan 9, 2006
401
38
Xiaomi Poco X3 Pro
Lineage have their own su, you can activate it on developer settings
- you can also flash latest SuperSu 2.82 (tested working)
-Magisk haves some issues with some Mediatek devices (some other mtk devices my team supports haves this issue as well)
If I recall ... only until version 14 or 16 works
( I'll confirm this later)

Cheers
Ah, great, ok, I'll activate the provided su in settings.
 

altis07

New member
Oct 31, 2019
2
0
WOW!

Thank you, mate, for a great job!
It was pity to realise the good device is gonna die on JB.
Looking forward for a reliable ROM.
 

Trubbs

Senior Member
Jul 25, 2014
60
42
Installed rom without issue, good instructions :good:

I also get problems waking device, in fact always have to reboot. Main reason to install was to allow netflix downloads however it appears that is a deeper issue than just android version, possibly architecture. But it does allow install of kodi so positive there. Main use is entertainment device in my car during lunch break.

Also have weird keyboard issues, double key entry type android get androoid and random other key presses miles away from where my fat fingers are pressing.

Great work so far otherwise, thanks

Let me know if I can assist dev with any test or info.

Cheers
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    Disclaimer:
    LineageOS (Lineage Android Distribution) members or anyone else on this website is 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 the products you find here before flashing it! YOU are choosing to make these modifications, and if you point the finger at us for messing up your device, we will laugh at you. Your warranty will be void if you tamper with any part of your device / software.





    How to Install:
    1- BACKUP, BACKUP, BACKUP, All will be WIPED!
    2 - Unlock bootloader instructions here
    3 - Flash New Recovery (with newer kernel for Lollipop)
    4 - Move Rom & Gapps into external (or internal) storage
    5 - Full Wipes ( recommended, wipe All -Preflash)
    6- Flash Rom & Gapps (gapps are OPTIONAL)
    After ROM is finished flashing, there will be a prompt for
    To fix "SU"
    --> press "NO", otherwise it'll mess some permissions and wifi (among other things) won't work properly



    for GAPPS:

    Choose Gapps Package "ARM" > "5.1" > "Pico" or "Nano" visit OpenGAPPS




    Working:

    • Boots :cool:
    • Wifi
    • Bluetooth
    • GPS
    • Audio ( all: Speaker and headphones)
    • Charging and Offline Charging
    • Mediaserver
    • SW enc/dec
    • Both storages working
    • HW Composer
    • etc ....




    NOT Working:
    • No camera support (broken in my kernel, and likely broken in Lineage as well)
    • Auto rotation (accelerometer broken in my kernel)
    • You tell me


    Thanks

    • OMNI Rom and their work on MT6589 (special thanks to: xplodwild & Dr-Shadow)
    • chrmhoffmann
    • kashifmin & blackrebel75
    • DerTeufel1980 & fire855 ( my Team mates from M.A.D) some of our "madOS" optimizations where used here / other stuff :cool:



    • BSydz for Carliv-CWM Recovery ( im too lazy to build one)
      recovery has been repacked with my kernel for lollipop flash)




    XDA:DevDB Information
    [ROM] [UNOFFICIAL] LineageOS 12.1 |ASUS Memo Pad HD 7 (me173x) [MT8125], ROM for the Android General

    Contributors
    superdragonpt
    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.4.x
    ROM Firmware Required: Unlock Bootloader
    Based On: CyanogenMod/LineageOS

    Version Information
    Status: Beta

    Created 2019-10-28
    Last Updated 2020-04-27
    9
    Thank you for your efforts in developing for the ME173X! I am looking forward to use your new Lineage OS 13 on my Tablet because I have problems to install new browser versions or messengers like the newest Threema on my old 4.2.2 stock firmware (parsing error, probably because Android 6 is required). Do you open up a new topic for the LOS13?

    Ye I'll open an topic dedicated to los13 when it's ready, so far it's almost stable, just need to address some random reboots and some missing symbols from some functions...

    Wifi , BT, gps are working alright, system seems stable (excepting the above issues)
    We finnaly have video playback working up to 720p
    ( YouTube is finnaly great to watch, in comparison to LOS 12.1 that it's capped to 360p) on the YouTube app
    Multi-window is working as well the new adapted storage ( new MM feature)
    Etc

    Also I adress some fair amount of ROM optimizations on top of lineage source , mainly torwards memory consumption, having 1gb of ram is the bottleneck, so all RAM one can save is extremely important

    Cheers
    9
    Build: 20200516

    Kernel:

    • Upstream to Linux 3.4.34
    • LCM: nt35521_dsi_vdo: Be compatible with the newer Hynix nand
    • mmc: Hynix HAG2E: Work around sdio resume
    • Power: Turn off VMC 3V For power saving
    • WiFi: Adjust regs for better WiFi Power flow (Decreases WiFi Power consuption)
    • mediatek: remove MTK SCHED
    • WiFi: Final corrections (Fully working now)
    • Sound corrections
    • video: Improve on-resume responsiveness
    • LCM: lgld070wx3_dsi_vdo Is fully working now
    • Other small issues & clean up fixs


    Frameworks:

    • native: libUi : Add compatibility with MediaTek MT6589
    • native: surfaceflinger: Add compatibility with MediaTek MT6589
    • EGL: Add further compatibility with MediaTek MT6589
    • av: libstagefright: WIP MT6589 Fixs
    • Better integration of MTK MT6589 hwcomposer (forward port code from MediaTek MT6589 KK BSP)
    • Better integration of MTK MT6589 gralloc (forward port code from MediaTek MT6589 KK BSP)







    Check first page, in the Downloads section




    Cheers
    7
    Hello there.
    So I installed the latest version of this rom but Wifi is not working. I've followed the guide and selected "no" at the end of the flashing procedure.

    Any help please?

    Thanks.

    EDIT: Solved. Had to factory reset from the Android menu. Now it's working!
    Yeah
    Seems to be an issue of this old recovery, it doesn't wipe properly usrdata...

    Los13 release will be release with an newer recovery that I just built ;)
    It's awesome... :p
    6
    Hi
    Due to the recent coronavirus, I have several colleagues that are retained in China and Taiwan, so we have double (or triple) the work now.
    I have zero free time now to do builds and research of bug fixs.

    There's been some progress that I made back in December.

    the extra hours are killing me