[lineageos][vince][pie] lineage os 16.0 2019/01/24 - Xiaomi Redmi Note 5 / 5 Plus ROMs, Kernels, Recove

NOTE # I'm not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed (like it did for me...).
# Please do some research if you have any concerns about features included in the products you find here before flashing it!
# YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.
# Your warranty will be void if you tamper with any part of your device / software.
UNOFFICIAL BUILD!
LineageOS is a free, community built, aftermarket firmware distribution of Android 9 (pie), 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
ALL THE SOURCE CODE IS OPEN SOURCE AND I WILL LINK AT THE BOTTOM OF THE POST:laugh:
CHANGELOG
SEE BELOW POSTS FOR CHANGELOG
BUGS
You Tell
STEPS TO FLASH
1 INSTALL ROM
2 FLASH GAPPS (NANO OR PICO)
3 FLASH MAGISK ( OPTIONAL )
4 REBOOT
5 YOU CAN FLASH ANY KERNEL
NOTE : DIRTY FLASH OVER 03/11 BUILD WON'T BOOT
Telegram http://t.me/LOSUNOFFICIAL
DOWNLOADS
http://bit.ly/2DuyFk2
ROM --> https://drive.google.com/file/d/14VXL_6OAL8DURLO3gByysJb9uf6XAjsp/view?usp=drivesdk
GAPPS --> http://opengapps.org
SPEACIAL THANKS TO : @sreek995 @notallowedontelegram @saladasss @Adwait_001 and @mdeejay for device trees
 @shantanu555
SOURCE
DEVICE TREES --> http://github.com/Vince-Beast/device_xiaomi_vince
KERNEL --> http://github.com/Vince-Beast/kernel_xiaomi_msm8953
VENDOR --> http://github.com/Vince-Beast/vendor_xiaomi.git
CREATED : 2019/01/24
LAST UPDATED : 2019/04/24

Deleted

CHANGELOG 2019/04/24
+ April Security Patch
+ Kernel Upstream to 4.9.169 (built with DAB)
+ Wifi Fixed
+ All other minor bugs fixed and build is stable to use as daily driver
CHANGELOG 2019/03/27
> ADDED 4.9 KERNEL
> LIVE DISPLAY FIXED
> COLOUR INVERSION FIXED
> MINOR CHANGES TO IMPROVE PERFORMANCE
> CHANGED BASE DIRTY FLASH WON'T BOOT
CHANGELOG 2019/03/11
>Fixed previous bugs
Lineage Changelog
>It’s now possible to set custom automatic update check intervals in the updater (never / once a day, once a week / once a month)
>Calculator now supports dark mode through Styles API
Added “Mark as read” action in messages notifications
>Exchange support
>Webview has been updated to Chromium 71.0.3578.99
CHANGELOG 2019/02/19
>FEBRUARY SECURITY PATCH
>MINOR BUG FIXES
CHANGELOG 2019/01/31
>SELinux IS NOW SET TO PERMISSIVE
>LOTS OF MINOR BUGS FIXED
>FINGER PRINT IS NOT DETECTED AS TOUCH
>NETWORK STRENGTH IS STRONG NOW
>FIXED READING MODE , LIVE-DISPLAY , GRAYSCALE MODE
>UPDATED SDM BLOBS FROM LA.UM
> PLEASE FLLOW INSTALLATION STEPS IN FIRST POST DON'T FORGET TO FLASH THIS KERNEL http://bit.ly/2sXl8fn AFTER SETTING UP THE ROM OR DON'T REPORT BUGS
CHANGELOG 2019/01/29
>MINOR UI RELATED FIXES
CHANGELOG 2019/01/24
>INITIAL BUILD

Reserved

Great Rom Dev
Smooth , Volte working, all major things are working, battery backup is good, keep making more such roms

Kool, devs are working on Vince, thanks for love, going to try

Nice rome Hitesh .
---------- Post added at 06:48 AM ---------- Previous post was at 06:46 AM ----------
Your ROM developing skill good.
Please make a viper os rom.???????

Azizbagwan said:
Nice rome Hitesh .
---------- Post added at 06:48 AM ---------- Previous post was at 06:46 AM ----------
Your ROM developing skill good.
Please make a viper os rom.???????
Click to expand...
Click to collapse
Thanks I'll try

Keep it up well done

is network monitor work in this los?

ekowanz said:
is network monitor work in this los?
Click to expand...
Click to collapse
No, i will try to fix in next build. This is first build

Great work. At least stable like Rama's builds. I did both a clean and a dirty flash over Rama's build. Works great in both cases.
Will report in a couple of days battery life.
Wifi+BT works, exfat works out of the box.

gardiol said:
Great work. At least stable like Rama's builds. I did both a clean and a dirty flash over Rama's build. Works great in both cases.
Will report in a couple of days battery life.
Wifi+BT works, exfat works out of the box.
Click to expand...
Click to collapse
Thanks for your nice words.

Great rom.

When I switch on the advanced 4g mode in the mobile Network settings, the mobile network ends completely with an error message. Could someone please look there?

hiteshhv said:
Use latest LOS from here this thread won't be updated now and this bug is not there in this build get from below link. RAMA won't update now I'll update
https://forum.xda-developers.com/re...lineageos-lineage-os-16-0-2019-01-24-t3893427
Click to expand...
Click to collapse
Tried this as well, bug appears here too

hyperair said:
Tried this as well, bug appears here too
Click to expand...
Click to collapse
Can you explain the issue a bit better?

Dirty flash over previous ROM from mdeejay also working fine.
Thanks.

hiteshhv said:
Can you explain the issue a bit better?
Click to expand...
Click to collapse
After booting up, the mobile data icon goes in a cycle across these states:
1. No SIM card
2. H
3. H+
4. LTE
5. No SIM card
It does nothing under airplane mode, but if I leave airplane mode off, it cycles for a while, it shows a dialogue that says "shutting down", and then reboots into recovery.
I tried observing the "Settings > Network > SIM cards" section, and it looks like "SIM slot 1" goes empty for a few seconds each time "No SIM card" happens.
`adb logcat` shows some com.android.phone tracebacks, and DeadObjectExceptions in com.android.systemui.statusbar.phone.StatusBar Signal Policy$MobileIcon, as well as some resource not found error with the SIM HD icon (I think the "SIM 1 is HD capable" message that comes from org.codeaurora.ims)

hyperair said:
After booting up, the mobile data icon goes in a cycle across these states:
1. No SIM card
2. H
3. H+
4. LTE
5. No SIM card
It does nothing under airplane mode, but if I leave airplane mode off, it cycles for a while, it shows a dialogue that says "shutting down", and then reboots into recovery.
I tried observing the "Settings > Network > SIM cards" section, and it looks like "SIM slot 1" goes empty for a few seconds each time "No SIM card" happens.
`adb logcat` shows some com.android.phone tracebacks, and DeadObjectExceptions in com.android.systemui.statusbar.phone.StatusBar Signal Policy$MobileIcon, as well as some resource not found error with the SIM HD icon (I think the "SIM 1 is HD capable" message that comes from org.codeaurora.ims)
Click to expand...
Click to collapse
This is not a issue for me i did clean flash and not a issue for other users too! Can you tell me how you flashed this ROM? And which gapps and firmware version to help you more. SERIOUSLY NOT A ROM ISSUE.

Related

[ROM][4.4.4] Vanir - resurrection [security update]

Trying to keep Vanir up-to-date for our otherwise dead phone . Fix minor bugs, add minor features, a bit of compiler optimization.
I'm not updating the whole rom here! Development of branch cm-11.0 for both Vanir and CyanogenMod has stopped, so there won't be any surprises here!
Bugs:
- adb over usb doesn't work in android (but works over wifi and in recovery it works normally, so no problem)
- clear notifications icon missing when switching from quicksettings
- call recording doesn't work
- synapse doesn't work
ART:
Apart from 2 inconveniences, ART works and is fast
- optizing one app on reboot - it's a bit annoying, but otherwise harmless (happens only sometimes)
- immediately after switching to ART phone won't sleep (power button doesn't work. Just leave it for a while (15-30 minutes) and let it settle - once the screen turns of by itself, everything wil be normal
Deep sleep issue (if exists):
Check using Better Battery Stats or any tool of your choice. If it is caused by Google Play Services, simply deny them wakelock priviledge: Go to Settings/Security/Privacy Guard/Google Play Services and set Keep awake -> denied. It won't hurt sync, no worries.
Feature requests:
- Smart Pulldown from Omnirom Done
- NonIntrusive incoming call screen (@force)
XDA:DevDB Information
Vanir 4.4.4, ROM for the Samsung Galaxy S Advance I9070
Contributors
mkaluza
Source Code: https://github.com/mkaluza/
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.0.x
Based On: Vanir
Version Information
Status: Stable
Current Stable Version: 2015-08-11
Stable Release Date: 2015-08-11
Created 2015-05-28
Last Updated 2015-08-11
first of all, thanks again for keeping this ROM updated and alive you should add some tags in the topic title such as [ROM] [KK] [4.4.4] and the release date, so that it's more visible and captivating
Found. Dowloading. Torrent is the best way to share information. All developers must use it.
Thanks and reporting...
@mkaluza @edukardo @TheSteve87 May i have some screenshots please....
experimenta 2015-05-30
Hi!
New experimental build. It is _fast_ Added more optimization flags from ArchiDroid. It still has the location FC issue though, so if it's a problem for you, stay with stable.
Enjoy
$4ND!P said:
@mkaluza @edukardo @TheSteve87 May i have some screenshots please....
Click to expand...
Click to collapse
here's a bunch of screenshots, the last ones have the vanir black theme
@mkaluza i'm having a weird bug with the last stable build, i want to install two apps as system apps (cm file manager since this rom dowsn't have one and novathor settings because of power and volume options) but everytime i try to install them, after rebooting the phone works for 30seconds, then freezes and reboots and it becomes unusable. any idea about why?
I have a problem with hotspot shield vpn
It won't start
And says
Af openvpn inti. Faild
I tried other vpn apps but they don't work
Any suggestion
mhmod222 said:
I have a problem with hotspot shield vpn
It won't start
And says
Af openvpn inti. Faild
I tried other vpn apps but they don't work
Any suggestion
Click to expand...
Click to collapse
Yes, load tun module. Either via KoControl app or from terminal: su and then "modprobe tun"
TheSteve87 said:
@mkaluza i'm having a weird bug with the last stable build, i want to install two apps as system apps (cm file manager since this rom dowsn't have one and novathor settings because of power and volume options) but everytime i try to install them, after rebooting the phone works for 30seconds, then freezes and reboots and it becomes unusable. any idea about why?
Click to expand...
Click to collapse
NT settings are old and mess with the kernel. Besides it's a ROM app, so you can't just take any version - it had to be built with the ROM. I don't support it.
Attached cm file manager to post 1 - try it (just drop it to /system/app as it doesn't seem to install the normal way)
@TheSteve87 what exactly do you need from nt app? Maybe I'll be able to add it into synapse.
mkaluza said:
@TheSteve87 what exactly do you need from nt app? Maybe I'll be able to add it into synapse.
Click to expand...
Click to collapse
i mainly use two settings, the battery voltage (?) control to have a faster charge and the audio gain options to higher the earbuds/speakers' volume
btw novathor settings are not that old, i actually extracted the apk from epirex's latest cm11 build and pushed it to /system on your vanir with no issues at all at least on the build before the beta version
Sent from my GT-I9070 using XDA Free mobile app
How to install that? I done Odin ,temp CWM, flash rom and my phone stuck on boot.
xxziolo13xx said:
How to install that? I done Odin ,temp CWM, flash rom and my phone stuck on boot.
Click to expand...
Click to collapse
If you come from another ROM with mk kernel, don"t forget to delete ramdisk
edukardo said:
If you come from another ROM with mk kernel, don"t forget to delete ramdisk
Click to expand...
Click to collapse
I was on stock LQL with CoCore, then i did odin, format everything in temporary CWM and flash rom. My phone stuck on boot whole night. Any ideas?
xxziolo13xx said:
I was on stock LQL with CoCore, then i did odin, format everything in temporary CWM and flash rom. My phone stuck on boot whole night. Any ideas?
Click to expand...
Click to collapse
Install aromafm and search /efs for a boot.cpio.gz file. Delete or rename it and try again.
edukardo said:
Install aromafm and search /efs for a boot.cpio.gz file. Delete or rename it and try again.
Click to expand...
Click to collapse
LOL. I forgot about it when i was on Loilipop, now it is working.
It was muy mistake too. This vanir is superb
edukardo said:
It was muy mistake too.
Click to expand...
Click to collapse
Yeah... I can see this ramdisk stuff causes a bit of trouble. I already have an idea for 'smart' installer, that will autodetect system version and install correct ramdisk for the user.
This vanir is superb
Click to expand...
Click to collapse
And it'll only get better I almost nailed the correct compiler flags, so the next stable version will have the speed of beta (or more ), but of course without the NetworkLocationService bug.
Battery backup
Hi, my friend.
I've seen a known bug in CM11 derivated roms like this one. This is related to systemupdate service, the rom tryies to connect to cm software update but couldn't and causes a lot of aware.
I made this script and ran it at every boot
Code:
#!/system/bin/sh
pm disable com.google.android.gms/.update.SystemUpdateService
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$ActiveReceiver
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$Receiver
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$ActiveReceiver
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$Receiver
It make the system wake ups almost dissapear. You could try to put it in your code if you think is correct.
Regards.
edukardo said:
Hi, my friend.
I've seen a known bug in CM11 derivated roms like this one. This is related to systemupdate service, the rom tryies to connect to cm software update but couldn't and causes a lot of aware.
I made this script and ran it at every boot
Code:
#!/system/bin/sh
pm disable com.google.android.gms/.update.SystemUpdateService
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$ActiveReceiver
pm disable com.google.android.gms/com.google.android.gms.update.SystemUpdateService$Receiver
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateActivity
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$ActiveReceiver
pm disable com.google.android.gsf/com.google.android.gsf.update.SystemUpdateService$Receiver
It make the system wake ups almost dissapear. You could try to put it in your code if you think is correct.
Regards.
Click to expand...
Click to collapse
I'm not 100% sure, but it could be related to this one:
http://review.cyanogenmod.org/#/c/94128/

[Nougat 7.1.2 Alpha] [LVM] AOKP Unofficial - 22nd May, 2017 - LVM

[Nougat 7.1.2 Alpha] [LVM] AOKP Unofficial - 22nd May, 2017 - LVM
Okay People, Here is #Android #7.1.2 #Nougat on #Oppo #Find5
Built from the latest AOKP Nougat sources.
Works:
- Network
- Camera
- BT Also works. Takes sometime during voice call connection but that optimization is gonna come in the next build.
- Everything else - Same status as my PACRom 6.
This ROM is STABLE. Bluetooth A2DP/HFP/HFS works as tested. No random reboots & resets.
DO NOT ASK FOR ETAs. I do this in my spare time. You are welcome to help.
Put your comments and test results in the thread below.
And SPREAD THE WORD!
Updates coming smooth :angel:. Next build will target optimizations & speed (though it is very speedy compared to other ROMS).
Follow me on Twitter @wolverine2k and Click thanks if you like my work
XDA:DevDB Information
AOKP #Oppo #Find5 7.1.2 #Nougat, ROM for the Oppo Find 5
Contributors
wolverine2k, wolverine2k
Source Code: https://github.com/wolverine2k/
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: Oppo Find5 BraveHeart
Based On: AOKP
Version Information
Status: Stable
Current Stable Version: 1
Stable Release Date: 2017-01-20
Current Beta Version: 1
Beta Release Date: 2017-01-19
Created 2017-01-20
Last Updated 2017-05-22
Reserved
Downloads
STABLE: 22nd May, 2017:
- Download: AOKP 7.1.2 - 22nd May, 2017
- MD5: 5c3961480f201e74b5ef171172f91bcc
Incremental Fixes in this build from the previous builds:
- Updated to 7.1.2.
- All bugs from previous builds are still valid (+ new bugs might have been introduced).
**********************************************************************************
STABLE: 26th January, 2017:
- Download: AOKP 7.1.1 - 26th January, 2017
- MD5: 35b4e6b287bcb4e785b908711bba1798
Incremental Fixes in this build from the previous builds:
- DisplaySettings & LiveDisplay working.
- BT Address does not randomize anymore.
- BT DUN profile enabled, so dial-up networking should work with BT.
- BT SAP profile enabled, so your car should be able to use the handset's SIM for a true hands-free operation.
NOT WORKING:
- Sound Recorder does not crash but no sound is heard after recording i.e. input device is still blocked
- Navigation buttons are not lit up
**********************************************************************************
STABLE: 25th January, 2017:
- Download: AOKP 7.1.1 - 25th January, 2017
- MD5: 21ed412db6448aec1815cb639f4e877f
Fixed in this build:
- SD Card corrupt message.
- Camping on 2G.
- Video Recording with Camera.
NOT WORKING:
- Sound Recorder does not crash but no sound is heard after recording i.e. input device is still blocked
- Display settings are still crashing
- BT still keeps losing paired device list
- Navigation buttons are not lit up
**********************************************************************************
Second Version: STABLE:
- 20th January, 2017: AOKP 7.1.1 - Same status as my PACRom 6
MD5:e896acaa73c4cfbec1bf37798ca4e72c
- Some bugs but is usable
**********************************************************************************
First Version: Alpha:
- 19th January, 2017: AOKP 7.1.1 Alpha No Sound
MD5: b470f68df8e4a228ec1124ce0262ce5d
Reserved
Installation Instructions:
1. Make sure your phone is charged above 50% or connect it to a power source.
2. Backup EVERYTHING to your PC, all phone storage will be formatted.
3. Download and install the modified LVM capable recovery by Wuxianlin with fastboot or any tool that you like (fastboot command: "fastboot flash recovery find5-twrp-recovery-2.8.6.0-en-lvm.img")
4. Full wipe. Wipe Dalvik cache, system, data, cache, android secure.
6. From the TWRP main screen, go to: Advanced => LVM Partition => Click Merge Partition => Swipe to switch partition. (WARNING! This will completely wipe your phone's data partitions, there is no way back)
7. Install the ROM
8. Reboot
Very IMPORTANT: Go and drink Coffee or Tea or Beer. Takes almost 10 minutes for the first boot to happen.
Enjoy 7.1.1 on Oppo Find 5 with LVM.
Report your experiences/problems/tips etc. here
Everything works in the 2nd build. The status has been upgraded to Stable. I have been using the ROM now for 12 hours and no random crashes or reboots noticed.
Please put in your comments about things you like and dislike in this ROM. Your test reviews would be amazing help. And spread the word!
Reviews and votes on the thread also helps.
Cheers(Y)
Thanks Wolverine2k, this is great news! Gonna try to find time this weekend to flash it.
Forgot to ask, I assume GApps are still required (e.g. the nano 7.1 variant)?
Yes gapps are required. Use open gapps and tem us the result
Dunno if its only for me, but I'm having problems with snapchat. I cannot connect to my account it says "there was a problem connecting to the server. Please Try again. " This didn't happen with other roms, but when I tried earlier pacrom version, I had the same issue.
Microphone in apps not works (recorder, google now, etc). Bluetooth MAC changes after reboot.
Takes almost 10 minutes for the first boot to happen
Click to expand...
Click to collapse
It's been over 30 minutes and still booting - is this normal?!
---------- Post added at 11:56 PM ---------- Previous post was at 10:58 PM ----------
Mateus109 said:
It's been over 30 minutes and still booting - is this normal?!
Click to expand...
Click to collapse
OK so I finally got an encryption error message and was forced to reboot. After that the phone booted fine.
wolverine2k said:
Yes gapps are required. Use open gapps and tem us the result
Click to expand...
Click to collapse
Is it possible to fix MAC bluetooth? Maybe I need to make the some changes in NVRAM?
Very fast and responsive (phone's never every booted this quick!). Definitely suitable for daily use. Bluetooth seems to work for music but not tried it to make a phone call yet. Generally the ROM is awesome!
However there are a few niggles, but I realise this ROM is still work in progress...
- Navigation buttons are not lit up
- Mic not working in apps other than dialler
- Video recorder does not record (maybe due to mic error)
- Accessing display settings crashes Settings app
- "SD card corrupt" error message (but this was easily fixed with the cm-13.0-find5-lvm-patch.zip patch)
- No live display/night mode blue tint function?
Thanks for your hard work!
Issues with camera. Won't record videos using camera app. Phone reboots when recording with instagram.
Also wi-fi hotspot doesn't seem to work either.
@wolverine2k Thank you so much for putting out a new update! Gonna try the new build soon.
Currently i need mic daily, btw. your previous rom is still running perfectly!
Thanks for the status and your comments. In wil start tackling then one by one. Be patient, I will try to fix al the problems but might take time.
Live Display has suddenly started working! Odd, but pleased to have this feature back.
Mateus109 said:
Live Display has suddenly started working! Odd, but pleased to have this feature back.
Click to expand...
Click to collapse
Now that is strange! Did you do anything special?
I will release a new build possibly today fixing:
1. "SD card corrupt" error message (but this was easily fixed with the cm-13.0-find5-lvm-patch.zip patch)
2. 2G camping (I forgot to get this one from PacROM to AOKP)
3. Disable ppd service restarts (as it keeps crashing hence slowing down the phone)
25th January build. Look at 2nd post for downloading links.
Fixes:
- SD Card corrupt message.
- Camping on 2G.
- Video Recording with Camera.
NOT WORKING:
- Sound Recorder does not crash but no sound is heard after recording i.e. input device is still blocked
- Display settings are still crashing
- BT still keeps losing paired device list
- Navigation buttons are not lit up
Thanks wolverine2k. I assume we're OK to dirty flash this update?
(Regarding LiveDisplay, I noticed it stopped working the other evening but after a reboot it started working again fine, so something must cause the service to crash.)
Mateus109 said:
Thanks wolverine2k. I assume we're OK to dirty flash this update?
(Regarding LiveDisplay, I noticed it stopped working the other evening but after a reboot it started working again fine, so something must cause the service to crash.)
Click to expand...
Click to collapse
I suggest a clean install. I have found the reason for LiveDisplay & DisplaySettings to not work. Have fixed it in my next build. Now am trying to see if I can fix my bt address which between is generated on every reboot and stored in /etc/bluetooth/bt_config.conf. One dirty quick fix would be to have a separate script that launches on boot, checks if the config exists and then overwrite the file if a different one exists. That is not a good approach though so will only take that path if the others fail.

[ROM][AOSP/AOSP-CAF][Oreo/Nougat/Pie] Android 9/8.x/7.1 for Xiaomi Mi 2/2S

Although the Xiaomi Mi 2 is almost five years old, and it seems there would never be a working nougat/oreo ROM after ivan stopped the development of his AOSP project, but it's not the truth. As the issue of light and proximity sensor have been fixed, I think most of the system components are stable enough for dialy usage after my couple days tests, so I decide to release the AOSP 8.0.0 to you today.
Install:
Please make sure your phone haven't modified the stock partition. It means my rom only work with the latest miui-dev partition table, so you have to Download lastest Mi 2 Developer tar file and flash using fastboot before install my oreo/nougat ROM . This process will earse all data on you phone, so backup all data before you getting start.
1. flash stock miui developer by fastboot update (http://en.miui.com/a-234.html)
2. flash twrp recovery use fastboot and reboot
3. hold power and volume up key to boot into recovery mode
4. install oreo or nougat ota package
5. wipe data and cache (you have to do this even if you are using ivan's aosp marshmallow/lollipop)
Working:
(Note: I use Mi 2SC with CDMA network support, but I don't have an available CDMA SIM card right now for test, so users with CDMA network might have trouble with RIL)
- Audio (bluetooth headset not test)
- Bluetooth
- Camera
- RIL
- WIFI
- FM
- Sensors
- GPS
Credit/Thanks
Special thanks to ivan for the initial device source tree and his preview works on Mi2 device.
Many Thanks to @AdrianDC @Ziyan for their great work to bring Android Oreo to MSM8960 platform.
Also thanks to @m11kkaa (M1cha) @zaclimon for their projects.
- Xiaomi Opensource Project
- Google Android Opensource Project
- Team LineageOS/CyanogenMod
- Team Omnirom and Team TWRP recovery
- Team Unlegacy Android
Source:
device tree: https://github.com/windbellx/android_device_xiaomi_aries
https://github.com/windbellx/android_device_xiaomi_msm8960-common
kernel source: https://github.com/windbellx/android_kernel_xiaomi_msm8960
vendor: https://github.com/windbellx/proprietary_vendor_xiaomi
Screenshot:
Download
https://mega.nz/#F!naRFGQDR!d9Uv-Maw56vyYsphAj00Kw
Known issues
1. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).
2. Selinux status is on permissive status.
Root
1. download all files under superuser
2. reboot to fastboot, flash boot.img
Code:
fastboot flash boot boot.img
3. boot into recovery, mount /system, push su binary and superuser.rc to your phone
Code:
adb push su /system/xbin/su
adb push superuser.rc /system/etc/init/
4. reboot
Gapps
select one way of below
1. flash MindTheGapps-9.0.0-arm-20181119.zip
2. download OpenGapps Pico (Not support other version due to limited space of /system
upload gapps-config.txt and opengapps zip file to the same folder and flash opengapps
Changelog
2019-01-01
* fixed wrong 1080p parameter in AOSP camera, both rear and front camera support 1080P record now.
* fixed wifi hotspot and usb tethering cannot open.
* fixed echo reappear after first call.
* rebase kernel, improve wakeup speed and stability.
* add percent text for offline charging.
* reimport MHL releted code, try to bring up MHL. (not tested)
* QS UI improved for small-size screen.
* keep the crypto name same with AOSP, try to make disk encryption work. (not tested, format /data and storage before encryption if too many files, or get out of memory error and system reboot).
* stop maintaining this device if no critical bug in this update.
2018-11-19
-> Upgrade to Android Pie(CAF 9.0.0), tag: LA.UM.7.2.r1-05300-sdm660.0
-> Features added:1. Privacy Guard(with optional su support, thanks LineageOS)
2. App Firewall(data, wlan and vpn, thanks LineageOS)
3. Showing Network Speed(thanks Jon Haus, ezio84 and other commiters)
4. Launcher with icon pack support(thanks tfitts1212, maxwen, eldainosor and other commiters)​ -> Fix hidden wireless connection
-> Add DRM support (For Netflix, L3 level, not support HD and higher)
-> Try to fix echo in calls again(not tested, report if not working)
===========================================================
Android Nougat/Oreo start
Download Link:
Only twrp >= 3.2.1 works with ROM >= 20180101
https://mega.nz/#F!VKRggSoL!WAFIK45_IFKhnvlK1eyY4w
Known issues:
1. Hidden network cannot connect.
2. APN needs setting manually to use CDMA data network. (?, not sure, need more tests).
3. Not support 1080P camera record due to outdated kernel driver.
4. Selinux status is on permissive status.
Changelog:
2018-11-01
* md5sum: b957fa0274819a09fd81d2af2958cc69
* echo in calls should fix now, only tested VOIP, need more tests(headset, bluetooth etc).
* with echo fixed, an issue related ES310 chip sleeping that make battery draining fast is also fixed.
- Standby battery time estimate: > 5 days.
- Normal Screen on usage: 5~6 hours.
2018-10-21
*md5sum: 8cbfdceb23c3aa6f382f1a9a79c29004
* fix noise in headset mic
2018-10-19
* md5sum: 9304de676e0dd6428db566b072488e3f
* fix echo audio during calls
* performance tweaks, fix too hot when too many heavy background tasks, now enable all 4 cpu cores by default
* HALs and blobs changes prepare for P
2018-09-01
* md5sum: b7e60c0033b526278468a38cb00f373e
* minor updates and stability improved.
* last update as I'm going to remove all 8.1 source, source will update to github as soon as possible.
* I will try to bring up pie once I get free, but no guarantee and no ETAs.
2018-06-16
* md5sum: da677903b4c5092d57e91f0dc2210a90 aosp-caf-8.1.0-20180616-aries-arch.zip
* bring back Privacy Guard and synchronize to latest LineageOS version.
* fixed sometime the device is too hot while too many background apps and optimize screen-on battery usage.
full battery usage estimated:
>5 hours online surfing with wifi opened(moderate usage, no gaming).
2 days standby (45-50 hours).
3-4 hours(?) using cellular data.
2018-05-06
* md5sum:
- b7121d3f95e91350722da01c8dfdea22 aosp-caf-8.1.0-20180506-aries-arch.zip
- 6988262c9f99c00371a1bc238ffbdf26 aosp-caf-8.1.0-20180506-aries-arch-gapps.zip
* fix gps and compass broken in last build.
* revert media profile changes so screen record now works normally.
* bring back Xiaomi usb otg driver. (Not tested, tell me if it not work)
* enable doze correctly.
* reduce battery usage when WIFI turned off.
* thermal and some kernel tweaks.
2018-04-20
* md5sum: e8fc7f3793d820f279580726f2c34e93 aosp-caf-8.1.0-20180420-aries-arch.zip
* this version is NOT compatible with previous ROM, SO CLEAN DATA/CACHE OPERATION IS REQUIRED.
* switch to CAF source(tag: LA.UM.6.6.r1-07200-89xx.0) instead of Google generic repository. This build contains Qualcomm specific enhancements plus some comunity optimizations, so it gives some improved performanence to this old device (especially pictures slipping and system animation). Thanks to AOSPA and AOSP-CAF.
* fix WiFi hotspot, tethering should work fine now.
* fix audio call volume cannot adjust.
* add firewall(app wifi/data restriction) support to oreo(App info -> Data Usage -> Disable all cellular data access/Disable all Wi-FI data access). Port from Lineage/CM, thanks again for their great works.
* add multiple pointers patch.
* add fake signature patch, for some MicroG users.
* update media profiles, remove 1080p option from camera records.
* now the build type is "user", which will disable adb debugging by default, "adb root" also disabled.
* repatch telephony framework for CDMA users(NOT TESTED).
* it's the final update if no serious issues(this update is to resolve the call volume issue).
2018-03-17:
* This version is expected to be the final version and wouldn't update anymore if no critical issues. I hope you can enjoy this one without obstacles. Source will be updated to github in a few days.
* update to 8.1.0_r17
* update audio configuration files so audio should work flawlessly now.
* update power hal and tweak cpu scheduler, try to make a better battery life.
* remove Privacy Guard (seem have unnormal power usage when data connection opened), revert Apps data path tweak, remove addtion Internet/Sensor permissions(it makes Google Setup Wizard FC).
* fix device hangs while trying power on machine in offline charging mode.
2018-01-27:
(NOTE: new kernel might have problems with some device, please attach your logcat, dmesg and top command result(adb shell -> top -> take a screenshot), plus you device model)
(NOTE 2: If you have installed gapps and don't want to clean data, flash gapps after flash the new ROM, before your first boot, or some app will get a FC, unless reinstall the app)
* Revert to old audio hal so that calling audio works with old configs
* Fix some storage access permission issues. Move all Apps data to /sdcard/AppData, so external storage path that apps got will be /sdcard/AppData/<package name>/
2018-01-19:
* fix system crash when openning gps with IPv6 network
* fix the audioserver crash when using a headphone
* fix app crash when not granted WRITE_STORAGE permission
2018-01-17:
* update to 8.1.0_r7
* switch to new kernel base. After almost one month dialy use test, I decide to abandon the old kernel tree and enable new kernel source tree, so Xiaomi aries now share the same kenel base code with sony huashan(https://github.com/AdrianDC/android_kernel_sony_msm8960t). Adrian DC have been working on AOSP/LineageOS of Sony msm8960 platform for a long time, he also is a recognized and trusted developer of LineageOS. With new kernel, I believe it will be more quickly to bring a features-ready and more stable aries ROM to you. Thanks @AdrianDC for his great work.
* switch to new audio/display/media HAL, report if you have any trouble to aduio, video play and records.
* new kernel support new auto sleep and wakeup (instead of earlysuspend), and many other changes to improve deep-sleep in oreo, so it will be a better battery life when phone is idle.
* adopt some code from Lineage to support CDMA data connection. if you want to report RIL releated issues, please attach both full logcat(adb logcat) and radio logcat(adb logcat -b radio)
* fix power menu not shows correctly
* fix some app cannot open again after force stop
* make lockscreen swipe more easier to unlock
* magisk now can boot properly
2018-01-01:
* fix UI performance. (NEED MORE TESTS)
* port Privacy Guard to aosp-8.1, thanks to team Lineage/CM/SlimROMs (Settings > App & notifications > Privacy Guard)
* superuser now is optional
* isolate app data/files on /sdcard (app now saved data to /sdcard/<package name>/ install of /sdcard/, It make external storage root more neat and more secure in some cases)
* fix alarm not work
* disable permission review, or permissions will reset after every updates
* disable liveshot in case of crashing when touched in video record mode
* secondary try to fix CDMA data connection. (Need feedbacks, plus model)
* fix setting lockscreen pin/pattern nonresponse
* update battery data, try to fix battery value reset. (NEED TEST and FEEDBACK)
* update twrp to 3.2.1
2017-12-09: (Download from here #65)
* Update to 8.1.0_r1
* Enhance security and privacy settings (many thanks to thestinger and CopperheadOS)
** I have added Internet permission and enable permission review for app with targetSdkVersion < 23, If you are not a clean installation, some app might get a FC. Reinstall app and give the permissions(PHONE OR INTERNET) can solve problem.
* Fix Mi2s 32gb with 13MP camera. (NEED TEST)
* Revert kernel gpu driver. Try to solve UI unsmoothly sometime. (NEED FEEDBACK)
* Add CDMA dummy APN patches. Try to solve data connection with CDMA network. (NEED TEST)
* Use old power and charger driver. It works better.
2017-11-19
* initial 7.1.2 and 8.0
Download: OUTDATED! FIND UPDATES FROM CHANGELOG
twrp recovery 3.1.1: https://mega.nz/#!RewDnB5Z!1JaIxJ2-wQpd9BmY1MoqIrt0z9rI2pLg6lKL5Z2lsKg
aosp 8.0.0: https://mega.nz/#!FHpTRCQL!j_Z-XirV12iPhxmnIAWA33W5HB1ca0Mep8lsKSiB10g
aosp 7.1.2: https://mega.nz/#!hTIgGT5a!gfap1JU95VeyfYauYcvlaR-VnHwRLRzklLENMwS2jgs
Great!:highfive:
Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!
lol,cdma 1x can be load ,but network doesn't
---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------
---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------
GuaiYiHU said:
Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!
Click to expand...
Click to collapse
huo zhuo huda
ziiimy said:
lol,cdma 1x can be load ,but network doesn't
---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------
---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------
huo zhuo huda
Click to expand...
Click to collapse
You are the first one to make the ril work after M. I think this is exciting.
great!
Can't not connected to hidden WiFi
GuaiYiHU said:
Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!
Click to expand...
Click to collapse
Yes
ziiimy said:
lol,cdma 1x can be load ,but network doesn't
---------- Post added at 02:38 PM ---------- Previous post was at 02:35 PM ----------
---------- Post added at 02:41 PM ---------- Previous post was at 02:38 PM ----------
huo zhuo huda
Click to expand...
Click to collapse
Sorry, it wouldn't be fixed as I don't have a CDMA SIM card right now.
UI is very unsmooth. After installing gapps got 'setup wizard has stoped' error. Can it be fixed?
GuaiYiHU said:
Good work. I'm working on mi2 as well, can I use your rom as a base for fixing the ril? thanks!
Click to expand...
Click to collapse
great my big brother
我是中国用户,小米2太厉害了,居然能用上功能正常的安卓8.0,感谢xda论坛
I am a Chinese user, millet 2 is too powerful, actually able to use the normal function of Android 8.0, thank xda forum
duplicated
-Tex- said:
UI is very unsmooth. After installing gapps got 'setup wizard has stoped' error. Can it be fixed?
Click to expand...
Click to collapse
if you open logcat and got error like this:
Code:
I zygote : Rejecting re-init on previously-failed class java.lang.Class<com.google.android.gms.org.conscrypt.NativeCrypto>: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/com.android.media.remotedisplay.jar", zip file "/system/framework/com.android.location.provider.jar", zip file "/system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk"],nativeLibraryDirectories=[/system/priv-app/PrebuiltGmsCore/lib/arm, /system/lib, /system/vendor/lib, /system/lib, /system/vendor/lib]]] couldn't find "libgmscore.so"
this is a temporary solution.
1. extract Phonesky.apk and PrebuiltGmsCore.apk from Core/vending-arm.tar.lz Core/gmscore-arm.tar.lz (320/priv-app/PrebuiltGmsCore) in opengapps zip file.
2. extract Phonesky.apk to Phonesky and extract PrebuiltGmsCore.apk to PrebuiltGmsCore use any zip software, or you can run:
Code:
unzip PrebuiltGmsCore.apk -d PrebuiltGmsCore
unzip Phonesky.apk -d Phonesky
the Phonesky and PrebuiltGmsCore folders should like this:
Code:
➜ ls Phonesky
AndroidManifest.xml
android-support-multidex.version.txt
assets
build-data.properties
classes2.dex
classes.dex
com
lib
libs
META-INF
org
res
resources.arsc
Code:
➜ ls PrebuiltGmsCore
AndroidManifest.xml
assets
build-data.properties
classes2.dex
classes3.dex
classes4.dex
classes.dex
com
googledata
HACKED-META-INF
lib
META-INF
org
res
resources.arsc
3. then, push the lib to your phone by adb:
Code:
adb root && adb remount rw
adb shell mkdir -p /system/priv-app/PrebuiltGmsCore/lib/arm/
adb push PrebuiltGmsCore/lib/armeabi-v7a/* /system/priv-app/PrebuiltGmsCore/lib/arm/
adb shell mkdir -p /system/priv-app/Phonesky/lib/arm/
adb push Phonesky/lib/armeabi-v7a/* /system/priv-app/Phonesky/lib/arm/
it should works now, tested with gapps nano.
It seem like an uncorrectly odex/install problem, I need more time to investigate it.
windbells said:
it should works now, tested with gapps nano.
It seem like an uncorrectly odex/install problem, I need more time to investigate it.
Click to expand...
Click to collapse
Should i do this after installing gapps or do it instead of installing gapps? What about ui smoothness?
-Tex- said:
Should i do this after installing gapps or do it instead of installing gapps? What about ui smoothness?
Click to expand...
Click to collapse
After installing and reboot to system.
If you are still facing ui Smith less after solve the gapps opening, try clean data and cache, if still exists, please attach logcat log and describe you r usecase in a more detailed way, and also, what's your phone model name? 2? 2S? 2S with 13m camera?
I just tried on my Mi2S 16G with 8MP camera,
Almost everything works well, but UI is very unsmooth.
I have 32GB with 13MP camera, but this is my daily use phone, so I don't want try on it.
Update:
I tried to grab logcat and dmesg to try to find the reason about UI unsmooth.
But the information is too much that I have no idea to find...
So I upload them to my mega.co.nz
logcat:
https://mega.nz/#!KYMVHByT!Mytx_PG8BqhOrMauhr-NtcsqO7Qw7RIw7i2ydJsNj-4
dmesg:
https://mega.nz/#!6UF30KRS!4qzlNs0UFMBHacNX_WsJIrlVmINNsqzVHCYAdkvkaAI
windbells said:
After installing and reboot to system.
If you are still facing ui Smith less after solve the gapps opening, try clean data and cache, if still exists, please attach logcat log and describe you r usecase in a more detailed way, and also, what's your phone model name? 2? 2S? 2S with 13m camera?
Click to expand...
Click to collapse
I will try tomorrow. My phone model mi2sc 16 Gb with 8m camera.
joe820730 said:
I just tried on my Mi2S 16G with 8MP camera,
Almost everything works well, but UI is very unsmooth.
I have 32GB with 13MP camera, but this is my daily use phone, so I don't want try on it.
Click to expand...
Click to collapse
It seems that my kernel not working on 13MP camera, according to the feedback.
I think Mi2S with 8MP camera should work fine as I using 2SC 16GB with 8MP camera. I think it's really smooth after had a data cleaned boot. Even after I installed the opengapps, it's smooth as usual. Can you describe you usecase or record a short video that shows UI stucked.

[ROM][Pie][OFFICIAL] COSP [9.0.0][Santoni]

​
Code:
**** Disclaimer: I'm not responsible if you destroy your device. Use at your own risk!!! ****
Welcome to COSP, your new future Android Operating System.
Our goal is to have an Pixel-like android ROM that isn't spying on you and uses as few system space as possible. Also, we provide the option to go completely without GApps using MicroG support.
Why us?
We are focusing on stability and performance, having an debloated ROM is essential for that. Also, we want Users to decide what kind of Store they want to use, either F-Droid or the Play Store.
Also, we take User requests serious. To suggest something, contact us on telegram.
Features:
1) All systemUI tuning elements
2) An handy Network indicator
3) Charging Information
4) Lawnchair and Quickstep as default
5) Quick Settings mods
6) Signature spoofing
7) OP gestures
8) Navbar tuner
9) Rootless Substratum (with fixes to theme system correctly)
10) Screenshot/screenrecord tile
11) Advanced power menu
12) Double tap to sleep on statusbar
13) Option to disable quick settings/power menu on secure lockscreen
OTA Updating for official devices enables Users to get the newest version with ease.
DOWNLOADS:
https://mirror.codebucket.de/cosp/santoni/COSP-190507-OFFICIAL-santoni.zip
Sources:
ROM Source: https://github.com/cosp-project/
Kernel Source code: https://github.com/HarukeyUA/android_kernel_xiaomi_santoni
Device Tree: Coming Soon
ChangeLog:-07-05-2019
COSP Changelog
From April to May patch
New:
+ May security patch merged
+ replaced Lawnchair with Launcher3 from @aosiP
+ App Ops/Privacy Guard
+ Agressive Battery from @aosiP
+ Accent picker from @PixelExperience
+ seperate ringtone for second sim
+ translations: russian, italian, simplified chinese
+ font picker
+ more steps for font size
+ search bar hiding in launcher
+ switch for fingerprint authentication vibration
+ switch for inverting navbar layout
+ button on FC dialog for sending crash info to dogbin
Fixed:
* QS padding on statusbar
* crash on security settings
* LTE+ icon
* app swithching on OP gestures
* sepolicy
Removed:
- "press power on lock screen for torch" (it wasn't working anyway)
Download:
https://mirror.codebucket.de/cosp/santoni/COSP-190507-OFFICIAL-santoni.zip
Hi, I'm testing this rom for a week, and ... the rom is basically have too lag even to move apps from day to day like twitter, facebook, google chrome and firefox also go very slow too,
regards
folderx said:
Hi, I'm testing this rom for a week, and ... the rom is basically have too lag even to move apps from day to day like twitter, facebook, google chrome and firefox also go very slow too,
regards
Click to expand...
Click to collapse
No bug i found. change kernel and check
i am also using this rom for a week or so. clean flashed. even formatted the storage before installation. so far this is one of the best roms i have ever used on santoni. and i can say that i have used almost every one of them. great battery life, great performance.
Sorry for the inconvenience, it was not the fault of the rom, it was because I had activated the option of digital well-being, I deactivated it and now it works great
Cosp Official June Update
Changelog:
+ June security patch merged
+ More modes for location tile
+ Captive portal switch (Settings -> Network & Internet)
+ "More info" on permission dialog, thx to @GrapheneOS
+ Incall vibration options (COSP Settings -> Miscellaneous)
Changed:
* DNS.watch by default everywhere
* moved PrivacyGuard (COSP Settings -> Miscellaneous)
* moved Reading Mode (COSP Settings -> Miscellaneous)
* volte icon
* some permissions changes by @GrapheneOS
Fixes:
* fixed AgressiveBattery auto enable
* fixes in PrivacyGuard
* minor SurfaceFlinger fixes (hopefully fix color correction)
* minor Settings fixes
* minor LatinIME fixes
Download:
https://mirror.codebucket.de/cosp/santoni/COSP-190604-OFFICIAL-santoni.zip
I did the latest OTA-Update and now my device stuck in a bootloop at the Mi-branding. No success getting into recovery (was Orangefox), so I flashed a new one with fastboot. I restored my last backup, which was working before, but it gave me the same result - bootloop! Anyone experiences the same or any idea where to search or how to fix this? I used Magisk by the way...
gorillus said:
I did the latest OTA-Update and now my device stuck in a bootloop at the Mi-branding. No success getting into recovery (was Orangefox), so I flashed a new one with fastboot. I restored my last backup, which was working before, but it gave me the same result - bootloop! Anyone experiences the same or any idea where to search or how to fix this? I used Magisk by the way...
Click to expand...
Click to collapse
Hi. Had this problem with clean flash too. Its not your fault Sir. I dont know if Bikram already had time to change link here. But its fixed for sure.
I downloaded and flashed this update last night :
https://sourceforge.net/projects/bi...Pie/COSP-190604-OFFICIAL-santoni.zip/download
Rom boots and work as it should!
Wifi is not working in latest update, please help
Bhanu_p_mishra said:
Wifi is not working in latest update, please help
Click to expand...
Click to collapse
How did you flash Sir? I did clean flash and Wifi works.
Samuitan said:
How did you flash Sir? I did clean flash and Wifi works.
Click to expand...
Click to collapse
I also clean flashed it, though used migrator to restore apps, perhaps this is the reason for that
---------- Post added at 02:56 PM ---------- Previous post was at 02:52 PM ----------
Bhanu_p_mishra said:
I also clean flashed it, though used migrator to restore apps, perhaps this is the reason for that
Click to expand...
Click to collapse
By the way which kernel do you used with this build
Bhanu_p_mishra said:
I also clean flashed it, though used migrator to restore apps, perhaps this is the reason for that
Click to expand...
Click to collapse
You mean Migrate? I use it also to restore Userapps. I think thats not the reason .
What do you wipe for clean flash?
I wipe everything except Internal and SD Card.
Then Flash Rom and Gapps. Reboot and do Google Stuff.
After that go back to Recovery and flash Magisk and Migrate Backup zip.
Have no Problems . Try it!
Samuitan said:
You mean Migrate? I use it also to restore Userapps. I think thats not the reason .
What do you wipe for clean flash?
I wipe everything except Internal and SD Card.
Then Flash Rom and Gapps. Reboot and do Google Stuff.
After that go back to Recovery and flash Magisk and Migrate Backup zip.
Have no Problems . Try it!
Click to expand...
Click to collapse
I actually unable to understand the steps to use migrator, could you please suggest me the actual steps that you used to use migrate for rom migration purpose.
Bhanu_p_mishra said:
I actually unable to understand the steps to use migrator, could you please suggest me the actual steps that you used to use migrate for rom migration purpose.
Click to expand...
Click to collapse
Im confused. You said you use Migrate? Then you made a backup or not? What steps exactly make you headache?
I posted once my restore steps in Migrate Thread. Scroll down.
Read a little bit there too for understanding how it works.
And what about Wifi? Works now?
Samuitan said:
Im confused. You said you use Migrate? Then you made a backup or not? What steps exactly make you headache?
I posted once my restore steps in Migrate Thread. Scroll down.
Read a little bit there too for understanding how it works.
And what about Wifi? Works now?
Click to expand...
Click to collapse
I am actually using migrator which is a magisk module(not currently supported) which is different from the migrate app that you quoted, not knowing earlier about this, thanks for your post, going to try clean flash with migrate app and then see how WiFi works
Bhanu_p_mishra said:
I am actually using migrator which is a magisk module(not currently supported) which is different from the migrate app that you quoted, not knowing earlier about this, thanks for your post, going to try clean flash with migrate app and then see how WiFi works
Click to expand...
Click to collapse
You're Welcome.
Ok.. just a misunderstanding lol. Dont know about Magisk Module. I dont use any.
Yes try Migrate. Its really good. I often flash different Roms.
Please give feedback if everything works then
I would like to try this ROM too.
Does the menu translated into Romanian?
McJohn.br said:
I would like to try this ROM too.
Does the menu translated into Romanian?
Click to expand...
Click to collapse
Seems so..
Edit: Sorry wrong Rom..Thats Derpfest lol.
Samuitan said:
Seems so..
Edit: Sorry wrong Rom..Thats Derpfest lol.
Click to expand...
Click to collapse
Attached image cannot be seen!
What was that about ?

[ROM][12.1][UNOFFICIAL] LineageOS 19.1 for Lenovo P2

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Code:
#include <std_disclaimer.h>
*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
LineageOS is a free, community built, aftermarket firmware distribution of Android 12L (Sv2), 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Githup repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
Installation:
If you are on stock OS, you need a custom recovery first. You can get the recommended LineageOS recovery in the official installation instructions link below.
You can use TWRP for installation, however it is no longer officially supported since we do not have full control of its update cycle and potential issues.
If you are coming from stock or other ROMs, you need to make a factory reset.
As always, make sure to backup before installing this ROM.
Installation Instructions:
Backup your data and see the next post below
Recommended TWRP Image:
twrp-3.7.0_9-0-kuntao.img
ROM Download Links:
Google Drive | SourceForge
Recommended Google Apps Package:
NikGapps-core-12.1
NikGapps-SetupWizard
NikGapps-AndroidAuto
Or
MindTheGapps-12.1 (Google Drive mirror)
Root Access:
Magisk v25.2 (more stable experience)
Magisk v26.1 (more updated build)
Recommended Useful Add-on:
p2oggle-1.2
Source Code:
https://github.com/LineageOS
ROM Firmware Required:
Any version of stock 6.0. Recommended P2a42_S251_171107_ROW
Acknowledgements:
Thanks to @mikeioannina for his hard work regarding kuntao and to all other Lineage OS developers
Special thanks to @Astridxx for the device tree sources and for helping me out and to @en666 for early testing the initial build
Important Notes:
As you can see from my profile, I'm not an experienced developer. I've made some builds as a considerable amount of users showed interest in having their devices updated with latest LineageOS code. Therefore, my main objective here is to bring the latest Android security patches to kuntao making monthly builds.
To be clear, I'm more in a situation of "user became builder" than of "ROM developer". Please, understand this.
Long live to our beloved kuntao!
XDAevDB Information
[ROM][12.1][UNOFFICIAL] LineageOS 19.1 for Lenovo P2
Contributors
@Astridxx ,@XiaoAk ,@Sohit5s, @mikeioannina
ROM OS Version: 12.x
ROM Kernel: Linux 3.18.x
Based On: LineageOS
Version Information
Status: Stable
Created 2023-02-22
Last Updated 2023-06-11
Installation Instructions​
Remember, making a backup of your data before proceeding is recommended
If you are coming from Stock ROM, please refer first to the instructions below:
Install LineageOS on kuntao
If you are coming from astridxx previous build (aka lineage-19.1-20220822-UNOFFICIAL-kuntao) or my initial build (aka lineage-19.1-20230222-UNOFFICIAL-kuntao) or any version of LOS18.1 or below, you must perform a clean flash. Clean flash instructions:
0- Make a backup (optional, but recommended)
1- Reboot to recovery
2- Format data (will delete all your data!)
3- Reboot to recovery again
4- Wipe > Advanced Wipe:
- Dalvik
- System
- Vendor
- Data
- Cache
- Internal Storage (optional, but recommended)
5- Flash ROM ZIP, Gapps, Gapps add-ons, Magisk add-on, etc
6- Reboot to system
7- Wait until it boots for the first time (may take some minutes)
Update Instructions​
NOTE: Dirty flash from any of the aforementioned builds is not supported, device trees were changed. You have been warned!
For updating from one of my builds to another (aka dirty flashing), please do the following:
1- Download ROM ZIP and copy it to the phone
2- Reboot to recovery
3- Flash ROM ZIP
4- Clean cache
5- Reboot to system
Known Issues​- Storage encryption is partially broken (if your /data partition is unencrypted, trying to encrypt it using ROM menu will result in a dead OS; if already encrypted, storage encryption may or may not work. IFAIK, it's a kernel side issue)
- Device may not go to deep sleep
- Storage forceencrypt flag is disabled (to encrypt /data partition follow the instructions below)
- TWRP backups are broken (read notes below)
- You tell
Google Play Store Update Bug​
If Google Play Store app keeps failing to find updates for apps with message "Something went wrong. Try again.", just clear its data and then it should work again
SafetyNet Check Fails​
If your device is rooted, please, follow the instructions contained here
Magisk is Gone After First Boot​
Please, just reflash Magisk again (i.e. Reboot to recovery > Flash ZIP > Reboot back to system)
How to encrypt data partition​
0- Backup your files (this process will erase everything)
1- Boot to TWRP recovery
1.1- Wipe > Format data > Reboot to system
2- Settings menu > Security > Encryption & credentials > Encrypt phone
3- Reboot to system again
Error restoring TWRP system backups​
It looks like TWRP backups are broken for now, so please, if this is a must have for you, you can try to install OrangeFox recovey and follow these instructions (thanks @Zdeslav for that)
ROM Change logs​
Code:
02/22/2023
- Initial release
02/27/2023
- Sync latest LOS sources
- Device Tree change: Use old A12L dt instead of los
- Add Lenovo Parts menu (fp gestures, USB fast charge, in-call audio gain, screen kcal)
- Updates phone vibration strength
- Add fix to device deep sleep issue
- Many more changes
03/29/2023
- Fetch latest Device Tree sources
-- vendorsetup.sh: Add Trebuchet patch
-- AOSP WFD doesn't support protected Wi-Fi Display buffers
-- Overlays:
--- Enable voWIFI support
--- Disable IMS features for Turkiye networks
-- Don't warn user about FC in Vanced microG
-- DT rootdir:
--- Add cpuset for the camera daemon
--- Remove permission restrictions to the socket file
--- Restore iio sensor device6 on boot
-- Bump graphene camera version to 60
-- Don't force enable ims features
-- sepolicy: Address sensor hal denials
- Update LOS components
-- Manifest: Sync x86_64 webview prebuilts again
-- Update zlib source
- Sync latest LOS source
- Merge March security patch
04/09/2023
- Fetch latest Device Tree sources
-- Add navbar enable/disable support
-- fs: Revert sdfat update for OTG
-- block: Add zen io scheduler
-- dts: Decrease BCL low battery threshold to 5%
-- DeskClock:
--- Wallpaper based text coloring for digital
--- Adapt digital clocks to S style
--- Remove night mode
-- Trebuchet:
--- Kill haptics in recents
--- Make overview scrim transparent again
-- Nfc: Fix Mifare Classic reading
- Update LOS components:
-- lineage: Track the FMRadio App and dependencies
- Sync latest LOS source
04/19/2023
- Fetch latest Device Tree sources:
-- sepolicy: Silence tracingproxy_service neverallow denial
-- sepolicy: Allow system_app to access storaged via IPC
- Sync latest LOS source
- Merge April security patch
05/09/2023
- Fetch latest Device Tree sources:
-- Bump graphene camera version to 62
-- devicesettings: Protect broadcast to fingerprint gestures
-- rootdir: Remove permission restrictions to the socket file
- Sync latest LOS source
- Merge May security patch
06/11/2023
- Fetch latest Device Tree sources:
-- parts: Update few parts icon
-- vendorsetup.sh: Use depth=1
-- Remove pixel_2016_exclusive
-- Bump graphene camera version to 63
- Sync latest LOS sources:
-- Additional zstd cmdline tools
-- zstd compression support for rsync
-- 2023-06 ASB patching: packages/apps/Traceur
- Merge June security patch
ROM Screenshots​
Attached below. Others are available here.
February 27th 2023 Release​
Changelog:
- Sync latest LOS sources
- Device Tree change: Use old A12L dt instead of los
- Add Lenovo Parts menu (fp gestures, USB fast charge, in-call audio gain, screen kcal)
- Updates phone vibration strength
- Add fix to device deep sleep issue
- Many more changes
Download URLs: GDrive | SF
Dirty flash still not supported (tree changed), please make a clean flash
Thank you so much for keepng Lineage alive, its very much appreciated.
@leo_97 thank you for this new build! Installed it straight away and now the phone is running since then and also, I've flashed with battery at 67% and atm, after a quite hard usage to test out the new features, I'm on 13%. Basically, so far so good!
p2a42, twrp 3.7, rooted, unencrypted
Thank you @leo_97 !
I was frustrated that Lineageos 18.1 was no longer maintained when I saw this update!
It's amazing
To all users and developers who tested and created this ROM, is it time to switch on this version ?
Or is it better to wait ?
For example, automatic update is possible after install ?
bidulez said:
automatic update is possible after install ?
Click to expand...
Click to collapse
No
bidulez said:
Thank you @leo_97 !
I was frustrated that Lineageos 18.1 was no longer maintained when I saw this update!
It's amazing
To all users and developers who tested and created this ROM, is it time to switch on this version ?
Or is it better to wait ?
For example, automatic update is possible after install ?
Click to expand...
Click to collapse
You are welcome
If it's time to switch, I believe it's a matter of personal decision. Maybe you could wait the next build and then decide...
If with "automatic updates" you mean OTA updates, then the answer (as already pointed out by @utwer ) is no. But once the trees are stable enough, I hope every user will be able to just update to the newer versions flashing ROM ZIP through TWRP (just like it's done on LOS18.1)
BTW, IDK if you already saw it, but we are maintaining a monthly build of LOS18.1 which you can download from here. The source tree used there is far more tested (as it's older) than this one. Anyway, except by the encryption thing, you shouldn't have any problems using this LOS19.1 ROM as our amazing developers made an excellent job here.
Reg, Ive installed it and I may say it is quite good. Not tried to root it yet. Dont have direct problems with ROM and functionality, for me everything works. Camera, Location, GSM, Data, WiFi. With developer options I've turned off Animation scale on three options to OFF, and is good. Stable reliable.
MindTheGapps-12.1 works every app from Google, Phone, Contact, Gmail, maps...etc...
What I need root mostly is for Call recording (Skvalex) and Viper4Android.
Some words about twrp-3.7.0_9-0-kuntao.img,
With this I have only problems, so far I lost a few backups and I need to install it all over again a few times allready. Disappointed very. I can't rally on this when I make a nandroid ba.ckups.
Also lost backups for LOS18.1 and I am been very pis....ed off. Error 255 on System recovery, other Data, Boot, EFS, Vendor, etc.. recovery is good.
So I've installed OrageFox for Kuntao. Tried several backups to restore already and I may say I am very satisfied. Puh
What is on my mind, when I installed a Magisk 25.2, no matter of LOS 18.1 or 19.1 with very few modules, after 7-8 reboots I've got boot loops which is beyond repairable.. Try to remove modules in TWRP in file manager, uninstall whole magisk, no way, but what it is seems that DATA got corrupted some how, everytime.
There were also installed TWRP mentioned above.
Now I am with OrangeFox and I will try tomorrow to Root it and see is there any connection between Magisk and recovery software (OrangeFox or TWRP).
Reg
Tried quickly this ROM yesterday. In general all working, but didn't test much.
Few feedbacks:
-Scaler for brightness level is weird, very different from the original Lenovo roms. Anyway, not really important, but something that I noticed.
-Missing haptic feedback when using the fingerprint reader as a gesture button. Again, not critical, but I am really accustomed to it and thus I noticed immediately.
-Missing haptic feedback intensity regulation, or could not find it. It's there for general call/notification vibration, but if I remember correctly lineage could also change haptic.
Impressed that you could integrate also some lenovo features, even if of course not all of them
If you want me to test something more specific, please let me know. Ah, my model is the 4 GB/ 64 GB combination.
Cheers!
leo_97 said:
You are welcome
If it's time to switch, I believe it's a matter of personal decision. Maybe you could wait the next build and then decide...
If with "automatic updates" you mean OTA updates, then the answer (as already pointed out by @utwer ) is no. But once the trees are stable enough, I hope every user will be able to just update to the newer versions flashing ROM ZIP through TWRP (just like it's done on LOS18.1)
BTW, IDK if you already saw it, but we are maintaining a monthly build of LOS18.1 which you can download from here. The source tree used there is far more tested (as it's older) than this one. Anyway, except by the encryption thing, you shouldn't have any problems using this LOS19.1 ROM as our amazing developers made an excellent job here.
Click to expand...
Click to collapse
So for 18.1 we can just flash the newer versions via TWRP and do not have to reinstall the entire ROM?
Zdeslav said:
Reg, Ive installed it and I may say it is quite good. Not tried to root it yet. Dont have direct problems with ROM and functionality, for me everything works. Camera, Location, GSM, Data, WiFi. With developer options I've turned off Animation scale on three options to OFF, and is good. Stable reliable.
MindTheGapps-12.1 works every app from Google, Phone, Contact, Gmail, maps...etc...
What I need root mostly is for Call recording (Skvalex) and Viper4Android.
Some words about twrp-3.7.0_9-0-kuntao.img,
With this I have only problems, so far I lost a few backups and I need to install it all over again a few times allready. Disappointed very. I can't rally on this when I make a nandroid ba.ckups.
Also lost backups for LOS18.1 and I am been very pis....ed off. Error 255 on System recovery, other Data, Boot, EFS, Vendor, etc.. recovery is good.
So I've installed OrageFox for Kuntao. Tried several backups to restore already and I may say I am very satisfied. Puh
What is on my mind, when I installed a Magisk 25.2, no matter of LOS 18.1 or 19.1 with very few modules, after 7-8 reboots I've got boot loops which is beyond repairable.. Try to remove modules in TWRP in file manager, uninstall whole magisk, no way, but what it is seems that DATA got corrupted some how, everytime.
There were also installed TWRP mentioned above.
Now I am with OrangeFox and I will try tomorrow to Root it and see is there any connection between Magisk and recovery software (OrangeFox or TWRP).
Reg
Click to expand...
Click to collapse
So,
Resolved issue of bootloops:
after you install SU like Magisk, and wan to freeze apps by Titanium Backup or Neo-Backup, Apps which causes bootloops are ROM's Phone and Massages (In my case, for 16.1, 18.1, 19.1), I freeze Audio.apk who need to be shutdown for Viper4Android app who takes audio management and freezing is OK.
But Phone and Massages which are frozen cause bootloops, so you need to return from freeze state somehow in TWRP or OrangeFox with file management or revert backup. Revert backup is easier .
Camera; found issue when suddenly is out of work and cannot be connected to app. Also have problems with video cast Skype, Viber, Whatsapp, Telegram video is frozen. Hardly switch in Camera app from Camera mode to Video mode and vice-versa.
Clock & Info; missing dock icons and info, can't "capture" moment for reason when they disappear but after a while all is returned again.
P2oggle, left switch button work okey in form of 0.4 version.
Reg,
thanks on the development for this 19.1 ROM.
Zdeslav said:
Camera; found issue when suddenly is out of work and cannot be connected to app. Also have problems with video cast Skype, Viber, Whatsapp, Telegram video is frozen. Hardly switch in Camera app from Camera mode to Video mode and vice-versa.
Clock & Info; missing dock icons and info, can't "capture" moment for reason when they disappear but after a while all is returned again.
P2oggle, left switch button work okey in form of 0.4 version.
Reg,
thanks on the development for this 19.1 ROM.
Click to expand...
Click to collapse
Hello,
I've been using this ROM as my daily driver and couldn't confirm this camera bug, could you please give a few extra details? I tested on Telegram app. Which version are you using? The Play Store's one or the one from Telegram's official website? Did you give the app "While using app" permission or "Ask every time" permission for camera? Are you sure the QS Tile "Camera access" is activated (available) when the mentioned bug occurs?
Regarding the Clock widget, yes, there's a small glitch and I'm not sure on how to fix it, if it doesn't load at all, a system reboot should fix it.
P2oggle v1.2 is 100% working as far as I can tell, so you guys can try it too if you want.
MKbis said:
-Scaler for brightness level is weird, very different from the original Lenovo roms. Anyway, not really important, but something that I noticed.
-Missing haptic feedback when using the fingerprint reader as a gesture button. Again, not critical, but I am really accustomed to it and thus I noticed immediately.
-Missing haptic feedback intensity regulation, or could not find it. It's there for general call/notification vibration, but if I remember correctly lineage could also change haptic.
Click to expand...
Click to collapse
I'm not sure if it's possible to "fix" the brightness slider.
If with "haptic feedback" you mean the phone vibration, you can just adjust it to your liking in Settings > Lenovo parts > Vibration strength, it should affect fp reader too, dunno if it affects call vibration but IFAIK it should.
Regards
Leo_97
I've been using this ROM as my daily driver and couldn't confirm this camera bug, could you please give a few extra details? I tested on Telegram app. Which version are you using? The Play Store's one or the one from Telegram's official website? Did you give the app "While using app" permission or "Ask every time" permission for camera? Are you sure the QS Tile "Camera access" is activated (available) when the mentioned bug occurs?
Click to expand...
Click to collapse
Yes on latest Telegram app from web site, tried with Google Meet, Whatsapp, Viber.., always breaking connection with API/drivers. Yes I gave all permissions to Camera. If I am not giving permissions for camera, I have always noticed to confirm what I am giving, so I am excluded from this solution. And clean storage and cashe from app regular but not prevail.
But, in a while after installed a new ROM without giving SU/Root I noticed this behavior, right after I wrote earlier post up. My bad .
Choppy startup of camera, can't easily transfer from video 2 camera and vice-versa, so I tell to my self to test intensively.
Regarding the Clock widget, yes, there's a small glitch and I'm not sure on how to fix it, if it doesn't load at all, a system reboot should fix it.
Click to expand...
Click to collapse
Yes after a while it is returned back without reboot. weird.
P2oggle v1.2 is 100% working as far as I can tell, so you guys can try it too if you want.
Click to expand...
Click to collapse
Didn't know about P2oggle v1.2 app, thx
March 29th 2023 Release​
Changelog:
- Fetch latest Device Tree sources
- Update LOS components webview & zlib
- Sync latest LOS source
- Merge March security patch
- Many more changes
Full change log available on the bottom of this post
Download URLs: GDrive | SF
Note: Please, before flashing, carefully read the instructions from the 3rd post above to avoid breaking your system.
Enjoy!
Big Thank you for this release. Will try it. - test
Great job, dude.
Previous versions had some buggy charging driver that left a wakelock running after each charging, and u had to restart phone each time or leave it to slowly drain battery by not going to sleep.
Somehow this problems seems to be gone in your build and that is awesome.
I've been using the build for about 2 weeks now and so far everything seems to be working fine.
April 09th 2023 Release​
Change log:
- Fetch latest Device Tree sources (lots of changes)
- Update LOS components:
-- lineage: Track the FMRadio App and dependencies
- Sync latest LOS source
- Many more changes
Full change log available on the bottom of this post
Download URLs: GDrive | SF
Note: Dirty flash is unsupported for this build, please make a clean flash
Enjoy!

Categories

Resources