[RECOVERY][TWRP 3.0.x][4c - libra][4s - aqua] Recovery built from source

awaaas

Senior Member
Jun 25, 2010
760
452
93
Pasuruan
@awaaas TWRP built just finished, without any errors! That's seems you partial sync Android source for TWRP build only. My own built ready for download and test. Good luck!
But I did a full CM 13 + TWRP + your repos sync that's why I said "I didn't understand why I can't compile this" ._.

Anyway, the SDCard can be read in this release. Good job there :highfive: , here's the output of dmesg:
Code:
<6>[    3.720244] mmc1: no vqmmc regulator found
<6>[    3.720266] mmc1: no vmmc regulator found
<6>[    3.720550] mmc1: SDHCI controller on f98a4900.sdhci [f98a4900.sdhci] using 32-bit ADMA
<6>[    4.092094] mmc1: new ultra high speed SDR50 SDXC card at address 0001
<6>[    4.092408] mmcblk1: mmc1:0001 ASTC 59.5 GiB
Here's some screenshots too....
 

Attachments

Last edited:

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
It works! Full read/write access and nicely tested by flashing yesterdays build as my test candidate from the SD. Works perfectly. Awesome job guys! We're a fingerprint sensor away from a totally complete recovery and ROM! Amazing!!!
But I did a full CM 13 + TWRP + your repos sync that's why I said "I didn't understand why I can't compile this" ._.

Anyway, the SDCard can be read in this release. Good job there :highfive: , here's the output of dmesg:
Code:
<6>[    3.720244] mmc1: no vqmmc regulator found
<6>[    3.720266] mmc1: no vmmc regulator found
<6>[    3.720550] mmc1: SDHCI controller on f98a4900.sdhci [f98a4900.sdhci] using 32-bit ADMA
<6>[    4.092094] mmc1: new ultra high speed SDR50 SDXC card at address 0001
<6>[    4.092408] mmcblk1: mmc1:0001 ASTC 59.5 GiB
Here's some screenshots too....
Great :good:
@awaaas Please check if https://github.com/CyanogenMod/android_vendor_cm available locally. No report from emfox if he experienced any build errors.
 
  • Like
Reactions: awaaas

awaaas

Senior Member
Jun 25, 2010
760
452
93
Pasuruan
Great :good:

@awaaas Please check if https://github.com/CyanogenMod/android_vendor_cm available locally. No report from emfox if he experienced any build errors.
Yes, it is available locally (it is part of the default manifest from cm). Anyway, I've succeeded in building TWRP now, by deleting sysinit.te for now. Already contacted emfox, and still waiting for the answer.
By now, I've downloaded 2 separate ubuntu releases (14.04 and 16.04), and three times repo re-download (just in case the file I downloaded is corrupted).
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
Yes, it is available locally (it is part of the default manifest from cm). Anyway, I've succeeded in building TWRP now, by deleting sysinit.te for now. Already contacted emfox, and still waiting for the answer.
By now, I've downloaded 2 separate ubuntu releases (14.04 and 16.04), and three times repo re-download (just in case the file I downloaded is corrupted).
https://github.com/kumajaya/android_device_xiaomi_libra/blob/cm-13.0/sepolicy/sysinit.te inherited https://github.com/CyanogenMod/android_vendor_cm/blob/cm-13.0/sepolicy/sysinit.te Nothing wrong from my side.
 

awaaas

Senior Member
Jun 25, 2010
760
452
93
Pasuruan
@ketut.kumajaya I've found the reason why I can't compile this earlier. It was because I used lunch command, not breakfast (this page made me thinking that I should use lunch, since this device wasn't in the official list).

Thanks to forkbomb @ cm's irc for helping me figuring this out.
 

dedycx

Senior Member
Mar 8, 2014
180
29
48
Karawang
I think the build 0606 is no better than build 0519, I experienced a frozen screen on my Mi4c.
I use MIUI 7.3.2.0 stable, while using build 0519 screen freeze only a few seconds. and build the most experienced screen freeze for a few minutes
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
Worth noting that they do work fine on aqua. Might be worth having these separate rather than unified if it creates issues for libra

Sent from my Mi-4s using XDA-Developers mobile app
No. Aqua use different touchscreen driver from atmel. This is purely synaptic issue, let's see what I can do for it, what I have done that trigger this issue back.
 
  • Like
Reactions: BlackXhorneT

BlackXhorneT

Senior Member
May 5, 2016
314
126
0
Norwich
No. Aqua use different touchscreen driver from atmel. This is purely synaptic issue, let's see what I can do for it, what I have done that trigger this issue back.
In the interest of perfecting this, my Mi4S is still displaying as a "G4" when in TWRP connected to a PC/Mac. Looking on the MIUI forums, other users of this TWRP build are experiencing the same thing. It works a treat so it's not a concern to me, but just so you're aware incase its easily resolved.
 

ketut.kumajaya

Recognized Developer
Apr 28, 2011
4,935
14,131
0
Bekasi
In the interest of perfecting this, my Mi4S is still displaying as a "G4" when in TWRP connected to a PC/Mac. Looking on the MIUI forums, other users of this TWRP build are experiencing the same thing. It works a treat so it's not a concern to me, but just so you're aware incase its easily resolved.
Time to switch to Ubuntu :laugh:

New build 20160612 available, touch delay on boot have fixed.
 
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