Custom ROM with 3.18 kernel - Xiaomi Mi A1 Questions & Answers

First of all I would like to thank all the great devs that keep supporting this phone.
But I miss a really bugless ROM. ROMs with 3.18 kernel were almost perfect, but they aren't developed anymore. 4.9 kernel is great too, but it has some annoying (for me at least) limitations. Miui camera doesn't work properly and it's a pity because it's the only app (as far as I know) that can use both sensors at the same time. Nhappyman's camera module isn't working (no smooth videos and no long exposure).
Mtp and vibration aren't working in TWRP custom recovery.
Is there any developer that can build an updated ROM based on 3.18 kernel? I bought a Mi A1 for dual-camera setup and I would like to use his full potential with MIUI camera AND GCam. At the moment it's possible only on 3.18 kernel so I'm wondering if there is any "brave" Dev who wants to go that way. I think that many other users like me are waiting for that. Am I wrong?

You're right, I agree with you. Of course it is quite an achievement for the development of this device, and I actually enjoy the new kernel and it's securities advancements, but it is not stable compared to the officially supported 3.18. For example, I have a Quick charger but can't use it properly because it's not working on kernel 4.9, at least right know.
Not being ungrateful btw, I totally support the continuous development of 4.9, and I hope someday it will be just as stable as 3.18.

sipollo said:
First of all I would like to thank all the great devs that keep supporting this phone.
But I miss a really bugless ROM. ROMs with 3.18 kernel were almost perfect, but they aren't developed anymore. 4.9 kernel is great too, but it has some annoying (for me at least) limitations. Miui camera doesn't work properly and it's a pity because it's the only app (as far as I know) that can use both sensors at the same time. Nhappyman's camera module isn't working (no smooth videos and no long exposure).
Mtp and vibration aren't working in TWRP custom recovery.
Is there any developer that can build an updated ROM based on 3.18 kernel? I bought a Mi A1 for dual-camera setup and I would like to use his full potential with MIUI camera AND GCam. At the moment it's possible only on 3.18 kernel so I'm wondering if there is any "brave" Dev who wants to go that way. I think that many other users like me are waiting for that. Am I wrong?
Click to expand...
Click to collapse
You can use LR v10.0.3 it's still based on 3.18 based kernel. Or go for Revenge OS, it's also 3.18 based

I'm not going to say anything about TWRP installer that was never supported officially by TeamWin or quick chargers that aren't even supported by our device, but I have a few things that I want to say specifically about MIUI Camera (and the reason why I'm always acting cocky when someone talks about it).
Supporting it was and always will be too much of a hassle for developers. It's not because "damn devs don't care about meme camera", but rather because whatever Xiaomi does for their camera features is very far from perfect, tends to break very often and also introduces random issues with third-party camera apps.
Recent switch to the open source camera HAL helped us to get a much more stable and reliable base (as well as fixing some very annoying issues we had before) but it also was the final nail in the coffin of MIUI Camera as it relies on undocumented proprietary features that we can't implement in any possible way.
I know that it can be hard for someone to cope with the lack of some well advertised marketing feature essential camera functionality, but we also have to go to concessions to make our support continuous and more future-proof.

flex1911 said:
I'm not going to say anything about TWRP installer that was never supported officially by TeamWin or quick chargers that aren't even supported by our device, but I have a few things that I want to say specifically about MIUI Camera (and the reason why I'm always acting cocky when someone talks about it).
Supporting it was and always will be too much of a hassle for developers. It's not because "damn devs don't care about meme camera", but rather because whatever Xiaomi does for their camera features is very far from perfect, tends to break very often and also introduces random issues with third-party camera apps.
Recent switch to the open source camera HAL helped us to get a much more stable and reliable base (as well as fixing some very annoying issues we had before) but it also was the final nail in the coffin of MIUI Camera as it relies on undocumented proprietary features that we can't implement in any possible way.
I know that it can be hard for someone to cope with the lack of some well advertised marketing feature essential camera functionality, but we also have to go to concessions to make our support continuous and more future-proof.
Click to expand...
Click to collapse
Totally understandable, it's not rocket science to know that exclusive "features", which is closed source, is really hard (mostly impossible) to port to custom development. Many devices suffers from this, like the implementation on Moto display on Motorola phones, for example. I'm not a developer myself, but I know a thing or two with my experience as android enthusiast, and for development to work it means you're gonna let some "goodies" go in favor of it.
Thanks for your work btw!

Shubham2509 said:
You can use LR v10.0.3 it's still based on 3.18 based kernel. Or go for Revenge OS, it's also 3.18 based
Click to expand...
Click to collapse
Revenge use 4.x now, so the only updated rom with 3.18.x is Lineage 15.1

Never_Sm1le said:
Revenge use 4.x now, so the only updated rom with 3.18.x is Lineage 15.1
Click to expand...
Click to collapse
In the next update ROS will be updated with 3.18

Shubham2509 said:
In the next update ROS will be updated with 3.18
Click to expand...
Click to collapse
Really? Nice, have been looking for an updated pie rom running 3.18

Now that Flex gave us the possibility to use miui camera on 4.9 kernel there's no need of 3.18 anymore (IMHO). To use MTP on TWRP we can boot it from PC and it will work.

Touch screen misbehaves with 4.x kernel
My mi a1 touch screen misbehaves with 4.9 kernel.
So i have to stick with the stock rom even i want to use a custom rom.
Am i the only person facing to this kind of problem?

Same problem here guys, anyone know how to fix this? :crying:

sujiththilakasiri said:
My mi a1 touch screen misbehaves with 4.9 kernel.
So i have to stick with the stock rom even i want to use a custom rom.
Am i the only person facing to this kind of problem?
Click to expand...
Click to collapse
Me too, in fact my screen doesn't work at all with 4.9 kernel. It was a cheap replacement from aliexpress. I was hoping to find some updated ROMs with 3.18 but I will have to just stick to stock. It's a shame.

Related

Stock vs open source drivers

I don't think I fully understand how ROM's device drivers work. Stock is supposed to be more stable because most manufacturers use closed source drivers, which have to be reverse engineered for any non stock ROM (is that correct?).
But on my Nexus 4, I've had the same problems with stability as any other device, despite the open source drivers. Apps still frequently cause my phone to reboot, which from what I understand can only be caused by driver bugs, otherwise the app would simply crash.
Am I just expecting stability AND features and wondering why I can't have my cake and eat it too? I'm running the stable version of SlimKat atm and usually go for stable versions of ROMs that go for speed and stability, no experimental bleeding edge features or anything.
Could anyone explain what I seem to be missing. I'm an amateur programmer so technical details appreciated.
v1nsai said:
I don't think I fully understand how ROM's device drivers work. Stock is supposed to be more stable because most manufacturers use closed source drivers, which have to be reverse engineered for any non stock ROM (is that correct?).
But on my Nexus 4, I've had the same problems with stability as any other device, despite the open source drivers. Apps still frequently cause my phone to reboot, which from what I understand can only be caused by driver bugs, otherwise the app would simply crash.
Am I just expecting stability AND features and wondering why I can't have my cake and eat it too? I'm running the stable version of SlimKat atm and usually go for stable versions of ROMs that go for speed and stability, no experimental bleeding edge features or anything.
Could anyone explain what I seem to be missing. I'm an amateur programmer so technical details appreciated.
Click to expand...
Click to collapse
I wish someone could answer this because I'm considering one of the new Nexus devices because I thought I could have this best of both worlds that he speaks of. Is this not the case, do open source driver devices like Nexus phones suffer with the same issues as other unlocked phones that have closed source drivers?

stock vs LOS. any advantages?

can someone who's using LOS comment on any advantages over stock? Now that we can install magisk and xposed on stock roms, is there any advantage at all to switch to LOS? How are the comparisons on battery life and speed?
Just got the phone couple days ago. I m not new to rooting and custom rooms. But I think it is better to stick with stock for now. At least for next 3-4 months imo. The phone already has Oreo and is very stable. Battery life is pretty good as well. Barely any lag, if any. I mean things just work and this is basically stock Android. IDK. Just my 2 cents. Unless something revolutionary happens in custom rom community I will be rocking stock for a while.
Generally people flash Lineage to get a more stock Android experience on their phones. The Essential already runs stock Android. The only advantage Lineage could possibly have while stock Android is still being updated on this phone would be whatever features Lineage offers that aren't included in stock Android. You can make the Essential faster by rooting the phone and flashing a custom kernel. You don't need a custom ROM to do that.
But there are significant disadvantages to installing Lineage on this phone. For one thing Lineage doesn't offer an official build for this phone. Unless something has changed over the last couple of days Lineage for this phone is only available as an unofficial build. That doesn't just mean no official support. Lineage doesn't sanction unofficial builds and there is no way of knowing if the build is poorly coded or not. Anyone can compile an unofficial build. You can watch a YouTube video and learn how to do it yourself. If someone making an unofficial build actually knows what they are doing there is a process with Lineage to make the build official as long as both the DEV and the build meet specific standards. Flashing an unofficial build of any ROM on any phone is a risk.
Then there is the fact that custom flashing on the Essential phone can reportedly lead to hard bricking the phone pretty easily. The a & b partitions make custom flashing a lot more difficult than on single partition phones and people with a lot of previous flashing experience have managed to hard brick their Essential phone within hours of taking it out of the box.
I don't personally think custom flashing on the Essential has enough upside to be worth the risk right now but it's your phone. Unless you don't mind turning your phone into a paperweight you should at least read the entire XDA rooting guide from beginning to end (including all of the comments from people who followed the guide) and also go through the Essential Telegram group which seems to be aimed at people who are flashing on the phone. That way you will have a good idea of what you are getting into and reduce the chances of bricking your phone.
Good luck whatever you decide.
Didn't flash lineage because heard about 360° isn't working so far...
For me an showstopper
AOSiP and Lineage run fine for me. Many bugs that need to be worked out, but they still run okay. Currently running stock however as I am trying to pinpoint what is killing my battery life. One day I am running great, the next I am leaking % left and right.
I can't stand stock rom at alllll. RR is the best the phone has ran for me. I can't stand the way touch works on stock, the scrolling feels like wading through molasses.
Plus true immersive mode. Honestly I see zero benefit to stock, but that's just my opinion.
RR is pretty far from the purpose and philosophy of LOS. LOS attempts to create a stock experience with some additional features. RR is for people who want to mod their phones with as many custom options as possible. I tried RR on my OP5 and wasn't a fan but I can definitely understand why someone who doesn't like stock Android would enjoy it. But the Essential phone is a terrible choice if you want to run custom ROMs. There's almost no development for this phone and I don't know if any custom ROM other than AOSIP even has an official build. If you want to run custom ROMs you would have been much better off with an OP5T. Not only are there a ton of official custom ROMs including RR but the phone is super easy to flash on and pretty much impossible to hard brick.
LOS runs smoother than the stock ROM and I it has more advantages.
LOS:
Immersive Mode : It's very easy to hide navbar and statusbar. That and an modded Youtube app and you are ready to really use the full screen. Not just till the notch.
It's very helpful in games too where you need apps or adb with the stock ROM.
Feel: It's just smoother and more responsive thant the stock ROM
Essential Apps works just normal
It has a few bugs like app dosen't start correct but stock rom can have that too and maybe it's just my installation.
Updater : You get many Updates and you can just download and install it in the background. Then you restart and you just installed an update without any waiting time.
Stock ROM:
It's official. You get updates that are suited to this phone and the softwar knows that there is a notch.
I'm on stock because all hardware works. I want full camera including 360 to work.
D4rk_nVidia said:
LOS runs smoother than the stock ROM and I it has more advantages.
LOS:
Immersive Mode : It's very easy to hide navbar and statusbar. That and an modded Youtube app and you are ready to really use the full screen. Not just till the notch.
It's very helpful in games too where you need apps or adb with the stock ROM.
Feel: It's just smoother and more responsive thant the stock ROM
Essential Apps works just normal
It has a few bugs like app dosen't start correct but stock rom can have that too and maybe it's just my installation.
Updater : You get many Updates and you can just download and install it in the background. Then you restart and you just installed an update without any waiting time.
Stock ROM:
It's official. You get updates that are suited to this phone and the softwar knows that there is a notch.
Click to expand...
Click to collapse
If there was an official build of LOS there would be a lot fewer issues. The unofficial build is probably just the ROM code auto compiled for this device with no further tweaks or fixes. You can do the same thing with any open source ROM. Have you tried AOSIP? I would think that would run better since it's actually official. That was also a solid ROM when I ran it on other phones. Not a lot of features but very stable fast and smooth.
Is updating a custom ROM difficult on this phone? Do you need to reflash the stock system image and TWRP on a computer or can it be updated like a simple OTA?
---------- Post added at 09:28 PM ---------- Previous post was at 09:16 PM ----------
tech_head said:
I'm on stock because all hardware works. I want full camera including 360 to work.
Click to expand...
Click to collapse
360 isn't likely to work on any custom ROM because the code for it is probably proprietary. Phone manufacturers rarely release code for something like that. The camera code is probably the only thing on the Essential that isn't stock Android. This phone could easily run faster but Essential seems to have opted for better battery life in their stock setup. Google does exactly the opposite. They maximize performance so much that their phones run too hot and tend to burn out after a couple years. That's happened so far with the 5X, 6P & XL. Three flagship phones in a row dying from heat damage after a couple years is a pretty consistent track record.
When I was running LOS earlier this month the 360 camera worked...
Sent from my PH-1 using Tapatalk
jhs39 said:
If there was an official build of LOS there would be a lot fewer issues. The unofficial build is probably just the ROM code auto compiled for this device with no further tweaks or fixes. You can do the same thing with any open source ROM. Have you tried AOSIP? I would think that would run better since it's actually official. That was also a solid ROM when I ran it on other phones. Not a lot of features but very stable fast and smooth.
Is updating a custom ROM difficult on this phone? Do you need to reflash the stock system image and TWRP on a computer or can it be updated like a simple OTA?
---------- Post added at 09:28 PM ---------- Previous post was at 09:16 PM ----------
360 isn't likely to work on any custom ROM because the code for it is probably proprietary. Phone manufacturers rarely release code for something like that. The camera code is probably the only thing on the Essential that isn't stock Android. This phone could easily run faster but Essential seems to have opted for better battery life in their stock setup. Google does exactly the opposite. They maximize performance so much that their phones run too hot and tend to burn out after a couple years. That's happened so far with the 5X, 6P & XL. Three flagship phones in a row dying from heat damage after a couple years is a pretty consistent track record.
Click to expand...
Click to collapse
You have NO idea what the hell you're talking about...
Shut up... Flash the ROM... Then give your critique... You obviously haven't done that...
The 360 cam has worked for months...
The only reason this device isn't official... Has to do with Jenkins and gapps...
Sent from my PH-1 using Tapatalk
rignfool said:
You have NO idea what the hell you're talking about...
Shut up... Flash the ROM... Then give your critique... You obviously haven't done that...
The 360 cam has worked for months...
The only reason this device isn't official... Has to do with Jenkins and gapps...
Click to expand...
Click to collapse
LOS has no quality control over an unofficial build. If it runs fine great. If 360 cam works even better. If I wanted to run a custom ROM I would have just stuck with the OP5. LOS was official on that device. I bought the Essential specifically because it runs stock Android. Buying a phone that runs stock Android and has virtually no development community so you can run a custom ROM on it doesn't make much sense to me but it's your phone.
LineageOS is great but it could be much better if we had a better Support with the essential phone.
It has many advantages.
I just installed the stock ROM and can say
- battery life is better with stock
- UI runs smooth enough but apps like Facebook runs better with Lineage
- Instagram runs better because I had the bug in Lineage that videos getting skipped while playing
- whatsapp voice messages sounds awful sometimes because the sound crackles (no problem with lineage)
- no expanded desktop mode with stock rom
Both have advantages and disadvantages.

Best custom rom in your opinion

just wanna know what custom rom you guys use as daily driver and i wanna know why, also pros and cons
Try them out. To each their own and some may find this topic rude.
Check this out : https://forum.xda-developers.com/oneplus-6/how-to/custom-rom-t3867290/page57
It's OP6 but not much difference as you know.
The spreadsheet on the last page is pretty nice.
dsaldariega said:
just wanna know what custom rom you guys use as daily driver and i wanna know why, also pros and cons
Click to expand...
Click to collapse
Treskmod
CAF PE. There's a lot of great stuff outside of XDA.
thedrizzle said:
CAF PE. There's a lot of great stuff outside of XDA.
Click to expand...
Click to collapse
CAF PE has fingerprint support for 6T?
For the first time (since OnePlus 5) I've been happy with stock OOS. Even the Oreo base didn't seem as polished but now I can happily say I haven't felt the need to go to a custom ROM.
The only inconvenience is not having full/proper OMS support, so I have to reboot to see built overlays in Substratum. Other than that I have no complaints.
Honestly all these roms, even w/FP support, are not better than stock OOS.
*None are as smooth
*Obviously none are as stable
*Either a rom is jam packed with features you may find useful, but buggy as hell. Or they are stable and powerful, but the only features are to change the time in the status bar.
*No rom has been able to imitate or even out perform OOS gestures, which surprisingly is pretty important for me.
But if I had to pick one it would be Omni Rom. Most balance of all things.
The new official omnirom is great although I couldn't get microg to work. It is the only ROM that screen casting worked for me.
The stock ROM with XXX script is pretty good.
The ROM I used the longest is carbon ROM.
Best is going to be different for each user as not all users require the same options. Right now I am on omni official although microg doesn't work. Using gapps for the first time in three or five years. Kinda odd using Google apps again.

Disadvantages of Custom Rom?

Hi,
Just bought a K20. I can't stand MIUI. But going through this forum I realised that are are a few things which will break. (like no 48MP mode in Custom Rom)
So I wanted to know all the cons of Custom Rom vs MIUI.
-------
List:
No 48MP mode.
No MiUI camera
No Widewine L1 status.
Fingerprint is slow (not sure)
Less SOT (MIUI has various optimisations)
Any others?
dan.man said:
Hi,
Just bought a K20. I can't stand MIUI. But going through this forum I realised that are are a few things which will break. (like no 48MP mode in Custom Rom)
So I wanted to know all the cons of Custom Rom vs MIUI.
-------
List:
No 48MP mode.
No MiUI camera
No Widewine L1 status.
Fingerprint is slow (not sure)
Less SOT (MIUI has various optimisations)
Any others?
Click to expand...
Click to collapse
If you can't stand MIUI then the cons are none.
I think by now GCam has 48mp fixed, FP is almost as good and so is SOT.
Ofcourse, But still I'd like to know what features I would lose.
Where did you get the 48MP Gcam?
Also. does MIUI camera works on Aosp/caf based roms?
dan.man said:
Ofcourse, But still I'd like to know what features I would lose.
Where did you get the 48MP Gcam?
Also. does MIUI camera works on Aosp/caf based roms?
Click to expand...
Click to collapse
I got it from the Telegram group.
About MIUI Camera, i don't think it work, but there is a topic about the MIUI camera ported so you may check out.
Pupet_Master said:
If you can't stand MIUI then the cons are none.
I think by now GCam has 48mp fixed, FP is almost as good and so is SOT.
Click to expand...
Click to collapse
You seem to be a experience user, probably you can clarify that for the OP and me. Some time ago I decided it's better to stay in the stock (stock based ROMs) side, talking about OS. In other way I love the stock experience (coming from OOS) but what about bsp thing. How does the Rom developers fix the layer of software containing hardware-specific drivers, to have fully working Rom. So we can have everything working as it should. THANKS in advance.
Pupet_Master said:
I got it from the Telegram group.
About MIUI Camera, i don't think it work, but there is a topic about the MIUI camera ported so you may check out.
Click to expand...
Click to collapse
Can you give me the link to the group then?
Thanks
Sir_gpm said:
You seem to be a experience user, probably you can clarify that for the OP and me. Some time ago I decided it's better to stay in the stock (stock based ROMs) side, talking about OS. In other way I love the stock experience (coming from OOS) but what about bsp thing. How does the Rom developers fix the layer of software containing hardware-specific drivers, to have fully working Rom. So we can have everything working as it should. THANKS in advance.
Click to expand...
Click to collapse
I'm not that experienced.
As xiaomi now release the Kernel source (even if some times a little out dated), custom ROMs actually build on top of it to keep maximum compatibility.
In the end, both are great (i'm on a moded MIUI my self) so it's all about the OS that feelt best for the user.
Granted, dev is still in it infancy on the Mi9t so many ROMS (even stock MIUI) are still with problems.

Is there any fully stable Android 10 ROM?

I need a regular daily driver ROM that has long lasting battery, smooth in UI, stock like? Camera should be fully working.
Don't play video games on this. So gaming performance dosen't matter.
Any suggestions?
Thanks in advance.
Evolution X 4.0 - i recomended.
If you're talking about GCam, you'll have to play among different builds, but this isn't the perfect time to do that, since their developers seem to be in vacations. I suppose they'll go back in February or later.
You can check ROMs like EvolutionX 4.0 (I'm using this one, also includes RadioFM), as well as HavocOS 3.0, they're the most recent ones at this time and include most of the current fixes around.
You can also check Pixel Experience or LineageOS 17.1, and there you have DerpFest, MSX, RevengeOS 3.1 and others. All of their developers are pretty active and in overall, at least since November, things are getting polished and getting perfect, faster than before...
I don't know... Perhaps at the beginning it was quite complicated since Mi A1 hasn't an official Android 10 firmware or kernel, and developers had to find a way to build from near nothing.
Hello!
At this moment,no custom ROM is bug-free or to have the best battery life.Lineage OS 17 should be a very good Android 10 custom ROM,but it isn't officially released.Until then,you can wait or experiment with other ROMs.

Resources