yashsingh1/xdaforums huggingface dataset:
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
SELinux & brightness

Im finally running LineageOS 15.1, the most recent OTA-update 20180625, on my Redmi 4a, and the first impression is very good :) Thanks a lot [MENTION=5296790]33bca[/MENTION] :good:

But I have a question regarding SELinux:

On the 1st page "Sepolicy is still permissive" is listed as a bug (and you mentioned it in the quote below). Actually for me it's even completely DISABLED? Is it because I installed the "LineageOS su addon" to get root? Or is it disabled by default, even without ever having rooted the device? I now disabled root by flashing the addonsu-remove-15.1-arm64.zip in TWRP, but still SELinux is completely disabled and I get a warning about it every time I reboot the device. UPDATE: On the "About phone" page it's written "SELinux status: Permissive", but in "Security & privacy / Trust" it says "SELinux: Disabled" ?

To be honest I just learned a bit about SELinux today and didn't know anything about it before, but for most users it would make sense to have it in "ENFORCING" mode, wouldn't it?

And just one wish: Could you allow a bit lower minimum brightness? It's higher than on MIUI, and it was a good thing to have a pretty dark screen when reading the display in complete darkness.

Bug or hardware-limitation: In the developer settings it's possible to change the Bluetooth-Audio-Codec into "Qualcom aptX HD-Audio". But this isn't saved, as soon as you leave the developer-settings and come back to check, the Bluetooth-Audio-Codec is switched back to the default one. Is this a bug or is it a hardware-limitation? Is the Redmi 4a able to use aptX?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
20180715 OTA-Update

20180715 OTA-Update is available, now we have a 2nd security-warning from Lineage's TRUST interface:

[IMG="TRUST warnings"]https://i.imgur.com/OrTWuYN.png[/IMG]

Here it's written: "The Android tree includes test-keys under build/target/product/security. Building an Android OS image using make will sign all .apk files using the test-keys. Since the test-keys are publicly known, anybody can sign their own .apk files with the same keys, which may allow them to replace or hijack system apps built into your OS image. For this reason it is critical to sign any publicly released or deployed Android OS image with a special set of release-keys that only you have access to."

So from my understanding, special "release-keys" should be used, but the 20180715 OTA-Update is released with public "test-keys", and this poses a risk.

Hope to see an answer from you [MENTION=5296790]33bca[/MENTION] here, your last post in this thread was on 25th May 2018, so pretty long time ago.

Bug: In the developer options I've set "Select USB Configuration" to "MTP (Media Transfer Protocol)", but nevertheless when I plug in the device via USB, it's in charging-only mode, I still have to manually change it into file transfer mode.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] $eVe7n:
Link new rom ?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
[MENTION=7963596]$eVe7n[/MENTION] The last 2 updates just were released with the "over the air" update-function within the ROM, they're not uploaded on the download-page (no idea why). Go to "Settings / System / About phone / LineageOS updates", click on the reload icon on top and you should see the new build available for download / installation.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
Ignore this security warning also. As rom is unofficial, build is signed with public keys.

These too updates were pushed by me to update security patch and updates from LOS. Also for testing if rom is still buildible. Minor bugs were fixed by [MENTION=5296790]33bca[/MENTION] .
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Thanks for clarifying a bit where the updates come from, but please also publish the ROM / the sources for downloading from a website in the future - these are the basics of open source software and trust, if they're not published anymore, the updates become similar to closed software.

Also the warnings are there for a reason. They shouldn't be simply ignored.

Please implement SELinux in ENFORCING mode.

And if I understand this right, even "unofficial ROMs" should never use public "test-keys" for signing. These test-keys are for private test-builds only. As quoted before "anybody can sign their own .apk files with the same keys, which may allow them to replace or hijack system apps built into your OS image. For this reason it is critical to sign any publicly released or deployed Android OS image with a special set of release-keys that only you have access to.".

As soon as a ROM is released for the "general public" (a larger amount of people like here in the forum, not only you), you should use private keys ("release-keys").

Quote: To generate your own unique set of release-keys, run these commands from the root of your Android tree:

$subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/emailAddress=android@android.com'
$mkdir ~/.android-certs
$for x in releasekey platform shared media; do \
./development/tools/make_key ~/.android-certs/$x "$subject"; \
done

Quote: "$subject should be changed to reflect your organization's information (just your XDA-nicknames will be fine I guess). You can use any directory, but be careful to pick a location that is backed up and secure. Some vendors choose to encrypt their private key with a strong passphrase and store the encrypted key in source control; others store their release keys somewhere else entirely, such as on an air-gapped computer."
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
I know about how to sign builds, I have done it for my own build, but at current situation it's useless as rom in beta stage. So your quote is useless, sorry.

As to update, our OTA server is public and you can easily visit it. ota.redmidevs.top

---------- Post added at 11:43 PM ---------- Previous post was at 11:39 PM ----------

Buy the way, if passphrase is used, it crashed during build sign
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Even though I'm not a developer I still would disagree that it's "useless", it would increase security if a private key is used for signing, it doesn't matter if it's a beta or final build, the possibility to replace or hijack system apps is there regardless if it's beta or final...
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Low priority bug: When the phone was connected in file transfer mode (MTP) to the PC, it keeps showing the charging-battery symbol

after unplugging the cable. Looks like this wrong symbol isn't shown when the phone was just charged the normal way, only after a MTP-connection.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
Without selinux it's useless anyway. So wait for new updates :)

About MTP (ghost charging) it's an issue on all Oreo ROMs for Rolex at the moment. So simply plug phone to a normal charger for a couple of seconds.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Thanks, that's all I wanted, the awareness of these Trust issues and the prospect that someone tries to take care of them in future updates. I don't expect it to be done immediately, just wanted to make sure that it's taken serious.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] seluce_:
Im the only one how can't update via OTA?

Last check: 1. January 1970

can't connect to the server / looking for new updates has failed

I used the latest zip from the first post as download and tried to update it..

I also noticed this bug
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Strange, for me OTA works... I also installed lineage-15.1-20180524-UNOFFICIAL-rolex.zip that is linked from the first post and got 2 OTA-updates afterwards.

Did you also try to manually reload the LineageOS updates page? Still get a connection-error there?

You can also try manually downloading the latest update from https://ota.redmidevs.top/builds/full/

But if you can't reach this page with a regular browser, then definitely something is wrong with your connection / maybe the server is blocked by your provider or whatsoever...
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] seluce_:
downloaded the latest with the url. found the post with the url somewhere here in the thread. that worked perfectly.

can't check for updates manually too.. no idea why. maybe it will be fixed if i will go for another, newer version

but if i read it right, i should wait with the updates because the latest warnings will be fixed in the next version?

and also: any changelogs if new updates has been released?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] Rhike:
Please help

I installed LineageOS following the guide, but maybe the fastboots section in Important Notes is something that I didn't understand.

I'm fairly certain I got LineageOS by a stock ROM you get from Mi Flash.

My problem is as following: I can't boot into fastboot.I can't boot into recovery.

What happens is the stock LineageOS launching screen appears and the device just boots.Developer tools>Recovery, Bootloader just boots the phone.

ADB does connect, reads device, can transfer files.

ADB Recovery, Bootloader just boots the phone.

Various copies of TWRP have been flashed through TWRP app, ADB and Flashify. Nothing worked. Still boots as usual, without recovery. Recovery Reboot (app) doesn't work too. Once again, I have the device completely rooted with LineageOS. Now I wish I didn't...

I can clean install everything if need be; but I'm stuck. If you're suggesting to clean install and wipe, explain how. Please help.

And yes, I can use my phone normally, I just can't use the recovery/bootloader functions no matter how hard I try.

Now here's the thing. If you help me get GApps on an installed ROM, that would work just as well as a recovery - I didn't think I'd need Google Play Services but I do.

Yalp Store worked for Hearthstone, but LingoDeer, an important app for me, refuses to work without google play services, and any type of services that i could find on the internet including one you get from Google Installer fails to work. Some even crashed apps.

Please, I got your ROM to make my phone better, not have it be stuck without GApps and fastboot. I know it was my mistake for not having GApps flashed then, but why the hell can't I clean install now to fix that? Sounds like a soft brick to me.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Did you try the key-combinations as well?

With the phone turned OFF:

- press and hold power button and volume DOWN at the same time to enter FASTBOOT

or

- press and hold power button and volume UP at the same time to enter RECOVERY (TWRP)
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] 33bca:
Update:

Updated some minor stuff

Upstream CAF tag for kernel and prima driver

Upstreamed LineageOS sources

Grab the update here!
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] SHARING IS GOOD:
Will it available over OTA?

-

Thanks, now I can see it on OTA update.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
Already on OTA server
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] jebrusufu:
Hi, quick question, is device encryption available for this ROM? I've searched the entire thread manually (search function doesn't work) and didn't find any mention of it; the treble build says its broken, but here the OP doesn't report it.

I've been trying to encrypt my 4A with the latest build (20180801) without any success, are gapps (play services..) required for encryption?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] :
No gapps is not req for encryption for ur phone

Before installing the ROM u need to 1st decrypt it if it is encrypted just go to twrp and wipe and click on format

Then install this ROM and in settings-> security-> u will find encryption.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] Vony C:
I can't build a kernel for rolex from the source thread, find an error in "driver / char / blabla" and "sound / soc / blabla", please fix the source
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] 33bca:
I'm usually not that type of dev, but this time I have to say it's your issue :p

Please make sure to define an out directory while building the kernel.

I can help you if you show me all the commands you use to build the kernel.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] Vony C:
​

don't worry, to build a kernel I'm used to doing it on several devices by creating an overclocked kernel

ex for : galaxy j5,grand prime,e5,e7 and xiaomi redmi note 4

like this code that I use

"#!/bin/bash

rm -rf $(pwd)/output/arch/arm/boot/dts/*

rm -f $(pwd)/output/arch/arm/boot/dt.img

export ARCH=arm64 && export SUBARCH=arm64

export CROSS_COMPILE=/home/vony/a/bin/aarch64-gnu-linux-android-

export KBUILD_BUILD_USER="builder"

mkdir output

make -C $(pwd) O=output rolex_defconfig

make -j4 -C $(pwd) O=output

$(pwd)/xxx/dtbToolCM -2 -o $(pwd)/output/arch/arm/boot/dt.img -s 2048 -p $(pwd)/output/scripts/dtc/ $(pwd)/output/arch/arm/boot/dts/ -v

cp output/arch/arm/boot/zImage $(pwd)/arch/arm/boot/zImage"

I can use this code when I build the kernel on the Galaxy MSM8916 and Xiaomi Redmi Note 4 devices, Redmi 3 etc

this is an example of my work "https://xdaforums.com/member.php?u=8687839"

one suggestion from me for you

please repair the kernel source until it can be built into a kernel, here I want to develop the Xiaomi Redmi 5a / 4a / Note 5 device and try to build overclocked kernel, I think we can work together andmake ourdevice a little advanced
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] :
Yes You can.

Miui room doesn't matter
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] subiranjan:
When would the lineage os 16 rolled out for us
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] JPT223:
Hi

I've got two problems with charging/battery.

1) When you disable the screen lock (pin) the screen seems to stay always on, charging is very slow. Battery usage shows more than 10 hours display for today.

Charging seemed to work only from twrp.

So seems the charging still works, but the phone consumes too much power because it does not enter standby.

I enabled pin lock again, problem seems to be solved.

2) when battery is almost empty, the message that tells so keeps popping up every few seconds. Even when charging.

Not sure if this was caused by a bad cable.

Even if, message interval should be > 5 min.

Well, probably a los issue... Would you please report to los?

August 1th build

Thanks.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] subiranjan:
In my Redmu 4A, I had installed Lineage OS 15.1. The following problems I faced:-

1) After May security patch, there is no updates. Must release the August 2018 security.

2) Kindly release the latest security patch.

3) On trying to update, it is showing check internet connection.

Kindly update these above bugs. Rest is ok.

Also, highly appreciable if you release the latest os update to 16.0.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] jakf:
"UNOFFICIAL"....... Teams prefer to update greedy firmware with useless gadgets.

Nobody to make official standard LineageOS !!!
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] r6680jc:
Hi...

no more update?

---------- Post added at 12:18 AM ---------- Previous post was at 12:16 AM ----------

What did you mean?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] JPT223:
Hi

Did lineageos remove ringtone profiles in 15? Cannot find them.

Is there any app which delivers profiles to our device?

Thanx
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] ManczeK:
Wow

Wow:)
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] dejoxy:
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.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] Ujjawal kr:
try to install miui from fastboot .
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] dejoxy:
Will try that, thank you.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] dejoxy:
Thanks again, it worked. Took me several hours, but got there in the end. Lost some data, but had backed up pictures recently, so not as bad as could have been. Will try to install Lineage OS once I've gotten over the shock of this.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
Security updates

[MENTION=5296790]33bca[/MENTION] [MENTION=9040466]AlexDeltax[/MENTION] 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://xdaforums.com/showpost.php?p=77078217&postcount=208

https://xdaforums.com/showpost.php?p=77087581&postcount=209

https://xdaforums.com/showpost.php?p=77090429&postcount=213
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
[MENTION=5159681]tobi24[/MENTION], I don't know about updates. Fabian seems to drop developing Los 15.1.

I use ROM built by myself.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
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://xdaforums.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://xdaforums.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...
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] AlexDeltax:
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)
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] Baron Bronson:
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. ^^
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] r6680jc:
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 ----------

Looks like 33bca won't update LOS 15.1 anymore, his latest build for rolex is LOS 16.0 :

https://androidfilehost.com/?fid=11410932744536990490
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] coolcoder001:
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"
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] coolcoder001:
HI , Thanks a lot for this super awesome ROM. However , the Compass is not working in this. Can you please look into this issue ?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] coolcoder001:
Hi , The accelerometer and orientation sensor not working after flashing this ROM. My phone is Redmi4A. Can you please help ?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] bedwere:
Has anybody tried the ROM? I can't find any dedicated thread with instructions.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
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 [MENTION=5296790]33bca[/MENTION]. 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 ----------

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.
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] r6680jc:
Have you tried AlexDeltax's 15.1 build?
[Xiaomi Redmi 4a ROMs, Kernels, Recoveries, & Other] tobi24:
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.