[Guide] MI4S users help me to help you!

Since cozzmi added SDCard support anyways, do you want new builds with UBER?

  • Yes, gives so much more performance and battery

    Votes: 1 33.3%
  • No, I'll just stick with official unified builds

    Votes: 1 33.3%
  • UBER?!? Can i eat it??

    Votes: 1 33.3%

  • Total voters
    3

wertus33333

Senior Member
Sep 14, 2016
185
119
43
As there is no real support for Mi4s on xda, I wanted to create a thread for this device.

Recoveries:

Greatslon 3.1.0.0 for mi4s:
https://www.androidfilehost.com/?fid=457095661767140602
Thread: http://en.miui.com/thread-522096-1-1.html

ZCX-TWRP 3.0.2.X (allows to install libra roms):
Lollipop: https://www.androidfilehost.com/?w=files&flid=92936
Nougat: https://www.androidfilehost.com/?w=files&flid=157723
Thread: http://en.miui.com/thread-522556-1-1.html

Kumaya-TS
https://www.androidfilehost.com/?fid=385035244224383078

Kernels

CM14.1 (with RR-Ramdisk)
r5-Basic (old): Link
All credits for the Kernel go to Cozzmi who works very hard on it. I just added SD-Card support (with cozzmis help) and compiled with UBERTC.

To install any libra-only rom (if you have installed ZCX-TWRP, start at step 4):
1. open Libra-only_ROM.zip\META-INF\com\google\android\updater-script with a text editor (use 7zip/winrar/etc to open the zip in windows)
2. search and replace "libra" with "aqua"
3. Safe (in the zip) and copy the ROM.zip to your phone
4. Backup your current rom
5. Install the new Rom with TWRP
If you want SD-card support:
1. Download my kernel from above (r5-basic) and put it on internal storage
2. Boot TWRP and go to install, install image
3. Install the bootimg you put on your phone, wipe cache/dalvik/data
4. Boot Rom and enjoy

Kernel source code: https://github.com/Demon000/kernel_xiaomi_libra
 
Last edited:

wertus33333

Senior Member
Sep 14, 2016
185
119
43
I would like to use CM based firmware on my mi4s but lack of fingerprint make it not very comfortable!
Can you please try the above steps (installing the newest rr/Aicp)? I'll first try to compile a kernel with a good battery life, i'll look into adding fingerprint support after this (though fp is very hard to implement--> maybe it will never be possible :( ).
Sd-card support should work, if you want to use cm with sd card support but without fp you can pm me.
 
Last edited:

dominatos1

Member
Sep 8, 2015
19
6
0
Can you please try the above steps (installing the newest rr/Aicp)? I'll first try to compile a kernel with a good battery life, i'll look into adding fingerprint support after this (though fp is very hard to implement--> maybe it will never be possible :( ).
Sd-card support should work, if you want to use cm with sd card support but without fp you can pm me.
Will install later. Currently i am in need of my smart much :)
 
  • Like
Reactions: wertus33333

wertus33333

Senior Member
Sep 14, 2016
185
119
43
I compiled a working one with cozzmy's source (all credits to him).
who wants it can pm me. i'll put it in this thread after some tests--> see first post at the end.
 
Last edited:

dominatos1

Member
Sep 8, 2015
19
6
0
Hi, Can someone make latest rr build compatible for Aqua? I want to try android 7.1.2

Thanks

Sent from my Mi-4s using Tapatalk
https://forum.xda-developers.com/mi-4c/development/official-resurrection-remix-libra-aqua-t3507773 it is working on mine. Just install Libra TWRP.
I am on Resurrection Remix and can say it is much better then miui.. My mi4s working 6 hrs active screen, 1-2 hrs talking, always connected to internet through wifi/mobile internet, viber,whatsapp,vk.com, gmail and other push batterry drainers. The only thing- no fingerprint support.

---------- Post added at 09:28 AM ---------- Previous post was at 09:26 AM ----------

How about fingerprint for RR?
 

wertus33333

Senior Member
Sep 14, 2016
185
119
43
Hi, Can someone make latest rr build compatible for Aqua? I want to try android 7.1.2

Thanks

Sent from my Mi-4s using Tapatalk
Hi
Please use the Guide in first post to get it running. you can then try the new r5-basic bootimg (should work with aqua).

edit: ops, one was faster :D if u want to stay on mi4s recovery (i recommend greatslon) u only need to edit the updater-script:
1. open Libra-only_ROM.zip\META-INF\com\google\android\updater-script with a text editor
2. search and replace "libra" with "aqua"
3. Safe

Greetings
Wertus
 
Last edited:
  • Like
Reactions: chelsea_fc

wertus33333

Senior Member
Sep 14, 2016
185
119
43
my mi4s doesnt detect SIM after trying to unlock phone bands :crying::crying::crying::crying:
First of all make sure its no physical problem (change sim to other slot, try it multiple times, try other phone)

If this doesnt work, safe all your data, download official miui (or mi-globe), wipe everything except internal storage in TWRP and install the MIUI (i recommend latest mi-globe, as u can flash it easily in recovery and its downloaded faster).
This will hopefully work, if not tell me.
 

wertus33333

Senior Member
Sep 14, 2016
185
119
43
https://forum.xda-developers.com/mi-4c/development/official-resurrection-remix-libra-aqua-t3507773 it is working on mine. Just install Libra TWRP.
I am on Resurrection Remix and can say it is much better then miui.. My mi4s working 6 hrs active screen, 1-2 hrs talking, always connected to internet through wifi/mobile internet, viber,whatsapp,vk.com, gmail and other push batterry drainers. The only thing- no fingerprint support.

---------- Post added at 09:28 AM ---------- Previous post was at 09:26 AM ----------

How about fingerprint for RR?
I'm searching people with experience in this (just started with such things). This looks promising but i'm still trying to get in contact with the dev.
Edit: As far as i understand, the not working FP is a trustzone problem, therefore its necessary to code a compatible libsensor (if any1 knows how to do this/has any tut's/links which could help me get this pls share :)). Also it must be implemented in device tree (kernel) cozzmi is working on this (will take some time, dont expect anything soon) and when everything is done its testing, testing, testing (no guarantee that it will ever work).
 
Last edited:

wertus33333

Senior Member
Sep 14, 2016
185
119
43
I don't know what it is but my battery life is so much better than it ever was. Thanks for all your hard work.
This is due to @Cozzmy13 's kernel optimizations (and maybe the uberTC, did u use uber bootimg?), all credits and honor to him.
Hardware buttons working now? if not, can u try on a clean install? (Recovery, install ROM-->Bootimg-->Magisk installer)
 
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