[ROM][UNOFFICIAL] LineageOS 15.1 for Xiaomi Redmi 4A & 5A [UNIFIED][OTA]

Ujjawal kr

Senior Member
Feb 17, 2018
53
8
18
I mistakenly flashed the wrong miui version on my redmi 4a, in preparation for installing the lineage os, and now I can't access twrp recovery anymore. My radio signal is broken, I get no sim card messages, and the network signal is unstable. My miui version did not change on my phone, it is still showing as 8.1.2.0 (MCCCNDI), but there is now an unlocked padlock symbol at the bottom of the start screen that wasn't there before. If I could get into recovery, I'd restore using my backup file, but I can't access recovery using all methods I know, manually, via titaniuum backup, via adb, nothing. Please help. Thank you.
try to install miui from fastboot .
 
  • Like
Reactions: dejoxy

tobi24

Senior Member
Mar 6, 2013
139
26
0
Security updates

@33bca @AlexDeltax From May to August we had monthly updates via OTA (none for September/October). On the "About phone" page the last security update is dated July 5th . Can you release a new OTA update with the recent Android patches please?

And in the meanwhile, could somebody care about SELinux / private keys for signing / increasing security and have a look at the minor issues/questions (Brightness, Bluetooth-Audio-Codec, Select USB Configuration) I wrote here?:
https://forum.xda-developers.com/showpost.php?p=77078217&postcount=208
https://forum.xda-developers.com/showpost.php?p=77087581&postcount=209
https://forum.xda-developers.com/showpost.php?p=77090429&postcount=213
 

tobi24

Senior Member
Mar 6, 2013
139
26
0
@tobi24, I don't know about updates. Fabian seems to drop developing Los 15.1.
I use ROM built by myself.
That would be REALLY SAD :crying: I just bought a Redmi 4A in June 2018 because of this project, and the outlook that it will be maintained very well in the future. Everything looked great (OTA updates / Project Treble) when I wrote this https://forum.xda-developers.com/showpost.php?p=76501753&postcount=125 and got 33bca's answer "(..) my goal is to make it 100% stable and provide the quality official LineageOS does." https://forum.xda-developers.com/showpost.php?p=76504714&postcount=126

If Fabian really stopped developing this ROM, why isn't there an official statement in this thread at least? Are you able to contact him? (I tried once via PM in the past, but didn't get a reply). He should communicate his decision at least and maybe try to contact other developers, if anybody wants to take over this ROM and this thread.

What about you AlexDeltax? You seem to have worked together with 33bca in the past already, since you were able to push security patches and updates from LOS to the OTA-server? Are you willing to take over this project, if Fabian really dropped it? Or do you know of any other developers who might do so / or know channels where to ask this? It would really be a pity if this ROM suddenly dies...
 

AlexDeltax

Member
Mar 25, 2018
10
9
0
Kiev
I don't know what to reply. According to github sources, he is working with Los 16 on Android Pie. Most devs are working with android Pie and dropped work with oreo.
As to me, I can maintain kernel and Los sources. The difference between my rom and 33bca is in kernel version 3.18.71 vs 3.18.123. Latest CAF tags are included. Android security patch.
As to fixing selinux. I don't have much experience with writing rules for selinux. All my tries failed during build or I got bootloop. About Bluetooth, seems like need hardware support or something else. Don't have wireless headphones to check. Anyway more than 48 kHz and 16 bit you won't get, it's a budget phone. We don't have separate DAC. So hi-res we get in software way and it works only via 3.5 jack.
Most bugs maybe, not sure, could be fixed, when redmi 5A will get android oreo. In this case there may be a great chance make rom maximum stable without bug.
You can try my build, based on Fabians sources. Personally I use it since April. Update rom once or twice a month, if there any fixes or security patches and kernel fixes.
(los.genix.space)
 
  • Like
Reactions: ALTracer and tobi24

Baron Bronson

Member
Dec 8, 2017
6
9
0
tobi24 wrote:
"That would be REALLY SAD. I just bought a Redmi 4A in June 2018 because of this project, and the outlook that it will be maintained very well in the future.
If Fabian really stopped developing this ROM, why isn't there an official statement in this thread at least?"

---

That sense of entitlement = lmao.
I just saw the first snowflake of November. ^^
 

r6680jc

Senior Member
Sep 6, 2009
403
74
58
Yogyakarta & Purbalingga
I don't know what to reply. According to github sources, he is working with Los 16 on Android Pie. Most devs are working with android Pie and dropped work with oreo.
As to me, I can maintain kernel and Los sources. The difference between my rom and 33bca is in kernel version 3.18.71 vs 3.18.123. Latest CAF tags are included. Android security patch.
As to fixing selinux. I don't have much experience with writing rules for selinux. All my tries failed during build or I got bootloop. About Bluetooth, seems like need hardware support or something else. Don't have wireless headphones to check. Anyway more than 48 kHz and 16 bit you won't get, it's a budget phone. We don't have separate DAC. So hi-res we get in software way and it works only via 3.5 jack.
Most bugs maybe, not sure, could be fixed, when redmi 5A will get android oreo. In this case there may be a great chance make rom maximum stable without bug.
You can try my build, based on Fabians sources. Personally I use it since April. Update rom once or twice a month, if there any fixes or security patches and kernel fixes.
(los.genix.space)
Hi, about your build of LOS 15.1, can you tell us the bugs? and does it have any additional features compared to 33bca's build?

---------- Post added at 09:10 ---------- Previous post was at 08:59 ----------

That would be REALLY SAD :crying: I just bought a Redmi 4A in June 2018 because of this project, and the outlook that it will be maintained very well in the future. Everything looked great (OTA updates / Project Treble) when I wrote this https://forum.xda-developers.com/showpost.php?p=76501753&postcount=125 and got 33bca's answer "(..) my goal is to make it 100% stable and provide the quality official LineageOS does." https://forum.xda-developers.com/showpost.php?p=76504714&postcount=126

If Fabian really stopped developing this ROM, why isn't there an official statement in this thread at least? Are you able to contact him? (I tried once via PM in the past, but didn't get a reply). He should communicate his decision at least and maybe try to contact other developers, if anybody wants to take over this ROM and this thread.

What about you AlexDeltax? You seem to have worked together with 33bca in the past already, since you were able to push security patches and updates from LOS to the OTA-server? Are you willing to take over this project, if Fabian really dropped it? Or do you know of any other developers who might do so / or know channels where to ask this? It would really be a pity if this ROM suddenly dies...
Looks like 33bca won't update LOS 15.1 anymore, his latest build for rolex is LOS 16.0 :

https://androidfilehost.com/?fid=11410932744536990490
 

coolcoder001

Member
Mar 27, 2013
24
3
0
HI , the ROM is very smooth. But , I am not able to install WhatsApp. While verifying phone number , I am getting error message that "WhatsApp is temporarily unavailble . Please try again in 5 minutes"
 

coolcoder001

Member
Mar 27, 2013
24
3
0

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

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.

Base source code is available in the LineageOS Github repo. And if you would like to contribute to the project, please visit our Gerrit Code Review.

GPL compliance:
Broken:
  • WIFI MAC address gets randomly generated (only once, you will keep the same as long as you are on LOS)
  • Sepolicy is still permissive
  • Nothing else? Otherwise please report it!

Working:
  • Camera (and flashlight)
  • WiFi
  • Bluetooth
  • Telephony (Calls and Data)
  • Audio (Record and Playback)
  • Video Playback
  • Sensors
  • GPS
  • VoLTE



Compatibility:
Compatible with all Xiaomi Redmi 4A and Redmi 5A variants (16GB / 32GB), other Redmi devices are not supported.
Builds are based off the Xiaomi's Android 7.1 firmware with proprietary blobs from MIUI 8.3.29 dev package.​

Downloads:

Notice:
  • No custom kernels are supported in this thread. Only stock kernel and official builds will be supported. No bug reports if that's not the case.

Installation:
  • Reboot to recovery (Custom TWRP recovery for Redmi 4A - Direct link)
  • Format /system, /data and /cache
  • Install LineageOS zip package
  • Install [optional] the LineageOS su addon to get root (there are obviously other root methods, but this is the recommended one as it survives to OTA updates)
  • Install [optional] a Google Apps package of your choice (Open GApps is advisable, but stock and super variants are not recommended!!!)
Important notes:
  • Current minimal * required * firmware version is MIUI 8.3.29 Global dev, otherwise installation could have issues. Download the latest dev fastboot package directly from Xiaomi and flash it prior to installing LineageOS or, alternatively, download and install one of the latest custom packages containing firmware only (at your own risk).
  • GApps can only be flashed on clean installs.
  • Formatting data (all user data is wiped, including internal storage) is a must if MIUI was previously installed and device was encrypted.

Credits & collaborations:
This work is due to efforts from RedmiDevs founding members that did the full device bring-up. Huge thanks to @xboxfanj for all the help during that bring-up.
Finally, all RedmiDevs & LineageOS team would like to thank everyone involved in helping with testing, coding, debugging & documenting! Enjoy!​


Device wiki:

Changelog:

XDA:DevDB Information
LineageOS 15.1, ROM for the Xiaomi Redmi 4A & 5A

Contributors:
33bca
ROM OS Version: 8.1 Oreo
ROM Kernel: Linux 3.18.71
ROM Firmware Required: MIUI 8.4.12 dev

Version Information
Status: Beta

Created 2018-04-16
Last Updated 2018-05-24
Hi , The accelerometer and orientation sensor not working after flashing this ROM. My phone is Redmi4A. Can you please help ?
 

tobi24

Senior Member
Mar 6, 2013
139
26
0
LOS 15.1:
As to me, I can maintain kernel and Los sources. The difference between my rom and 33bca is in kernel version 3.18.71 vs 3.18.123. Latest CAF tags are included. Android security patch.
As to fixing selinux. I don't have much experience with writing rules for selinux. All my tries failed during build or I got bootloop. About Bluetooth, seems like need hardware support or something else. Don't have wireless headphones to check. Anyway more than 48 kHz and 16 bit you won't get, it's a budget phone. We don't have separate DAC. So hi-res we get in software way and it works only via 3.5 jack. You can try my build, based on Fabians sources. Personally I use it since April. Update rom once or twice a month, if there any fixes or security patches and kernel fixes.
(los.genix.space)
Thanks a lot :) I don't know what exactly CAF tags are, but you basically took the 15.1 ROM we all (in this thread) know and use so far and keep integrating security patches, right? That's the most important. We just can't get them via OTA anymore, but can download them manually from your server... Regarding Bluetooth audio, 44,1 kHz and 16 bit is enough for me, I just asked about AptX because that's a codec with way less latency than the regular Bluetooth codec (and it can be selected in the developer settings, but the selection isn't saved). Standard Bluetooth audio sometimes isn't 100% lip sync and you can see/hear a delay when somebody is talking or with sounds in games. But you don't have to care about this, not the most important.


LOS 16:
According to github sources, he is working with Los 16 on Android Pie.
Looks like 33bca won't update LOS 15.1 anymore, his latest build for rolex is LOS 16.0 :

https://androidfilehost.com/?fid=11410932744536990490
Has anybody tried the ROM? I can't find any dedicated thread with instructions.
This also would have been my question, is there a new dedicated thread for Redmi 4A/5A [UNIFIED] LOS 16.0? If there isn't, it probably still is in a very early alpha-stage? Really would love to see a statement from @33bca. No problem if support for LOS 15.1 is dropped, but soon a stable successor LOS 16 version of the Redmi 4A & 5A UNIFIED ROM (and a corresponding thread) is available. I just wish there would be better communication when the development of a project is stopped (and if there will be a successor).

---------- Post added at 00:32 ---------- Previous post was at 00:12 ----------

Hi , The accelerometer and orientation sensor not working after flashing this ROM. My phone is Redmi4A. Can you please help ?
Both work fine on my Redmi 4A with LOS 15.1, August OTA Update, I don't think that there's a problem with the ROM and sensors.
 

r6680jc

Senior Member
Sep 6, 2009
403
74
58
Yogyakarta & Purbalingga
LOS 15.1:
Thanks a lot :) I don't know what exactly CAF tags are, but you basically took the 15.1 ROM we all (in this thread) know and use so far and keep integrating security patches, right? That's the most important. We just can't get them via OTA anymore, but can download them manually from your server... Regarding Bluetooth audio, 44,1 kHz and 16 bit is enough for me, I just asked about AptX because that's a codec with way less latency than the regular Bluetooth codec (and it can be selected in the developer settings, but the selection isn't saved). Standard Bluetooth audio sometimes isn't 100% lip sync and you can see/hear a delay when somebody is talking or with sounds in games. But you don't have to care about this, not the most important.


LOS 16:


This also would have been my question, is there a new dedicated thread for Redmi 4A/5A [UNIFIED] LOS 16.0? If there isn't, it probably still is in a very early alpha-stage? Really would love to see a statement from @33bca. No problem if support for LOS 15.1 is dropped, but soon a stable successor LOS 16 version of the Redmi 4A & 5A UNIFIED ROM (and a corresponding thread) is available. I just wish there would be better communication when the development of a project is stopped (and if there will be a successor).
Have you tried AlexDeltax's 15.1 build?
 

tobi24

Senior Member
Mar 6, 2013
139
26
0
Have you tried AlexDeltax's 15.1 build?
Not yet, but I very likely will if there is no further information / a thread about LOS 16, explaining the status, bugs etc.
From my understanding there shouldn't be any noticeable difference between 33bca's and AlexDeltax's 15.1 build, just that Alex integrated latest security patches.
 

r6680jc

Senior Member
Sep 6, 2009
403
74
58
Yogyakarta & Purbalingga
Not yet, but I very likely will if there is no further information / a thread about LOS 16, explaining the status, bugs etc.
From my understanding there shouldn't be any noticeable difference between 33bca's and AlexDeltax's 15.1 build, just that Alex integrated latest security patches.
I've flash it on Riva, it works, (I removed the firmware files included in the zip, since they're for Rolex, I think the firmware files maybe compatible with Riva, but I don't want speculating, as I only want to test the ROM and kernel), and I also edited the updater-script to make it flashable on Riva.

And yes, there's no difference in stability and speed compared to 33bca build, eventhough the kernel versions are different.
 
Last edited: