Give a man a fish, feed him for a day. Teach a man to fish, feed him for life.
Click to expand...
Click to collapse
YOUR WARRANTY IS VOID IF YOU CONTINUE
A noob friendly guide on how to get the most out of your phone. The Xiaomi Redmi 8 has been touted as one of the most sold phone during the release alongside the Note 8. As of mid 2021, there have been a rise of actively developed kernels, recoveries, and finally custom ROMs. There were only a select few before, and may be dormant now. While the Xiaomi.eu custom may be enough for some, others may want a more different approach.
DRIVER
Windows
Generic "Universal ADB Fastboot" drivers are multipurpose drivers that support a wide range of device drivers using ADB and Fastboot. It may be a better idea to also install Xiaomi specific drivers if you also want to enable "USB Mode" as well.
Required drivers may be installed automatically via "Device Manager", selecting the device, then updating the driver. Windows 10 automatically installs required drivers for ADB, and USB Mode drivers on first connection.
Linux
Most mainstream distributions have them in their official repository. Searching for "android driver" usually includes ADB/Fastboot. USB Mode drivers can also be found by searching for "mtp" which usually has FUSE support builtin to the Linux kernel.
FIRMWARE
The official site for Xiaomi firmware usually only shows the latest drivers, and is hard to find more specific versions. The unofficial site does also include many archive versions. Although it is not required, it is more recommended to use what your phone shipped with. For example, my phone (global indo) came with PCNIDXM 11.0.2.0, and I will use the last A9 11.0.7.0 release. I prefer using the latest release, as A10 does not have the last release status yet, I chose to stay with A9. You may try upgrading your OS to A10 (A11 might also be released for our phone), but beware of "Android Anti Rollback" and always use an upgraded/higher firmware.
As it turns out, many members in the group have said that ARB is not active on our devices. It may be wise to stick with your region firmware and not another region to ensure compatibility.
BOOTLOADER
ALL DATA WILL BE ERASED. If you need to take backups, do it before starting. Copying backups to another device (phone or PC) is more reliable than an external SD card.
Requirements
3 days account age
7 days of usage
Enable "Developer Option"
Settings > About Phone > Build Number > Tap 7 times
Settings > Additional Settings > Developer Option
Enable both "USB Debugging" and "OEM Unlock"
Mi Account link
Xiaomi Unlock https://en.miui.com/unlock
Xiaomi Cloud https://i.mi.com
Find your device, it may help as the unlock tool has been buggy
Launch the unlock tool with admin rights
(optional) upgrade both the app and driver via the menu icon
Follow the instructions
You may require both SMS and data quota available in SIM 1 (the middle slot)
Turn off your phone, then turn it on with POWER + VOLUMN DOWN to boot into Fastboot mode
Start the unlock
A successful unlock shows an "(unlock icon) Unlocked" upon booting before the boot animation. It may show an unsuccessful unlock, but once your phone reboots, it may turn out to be unlocked. Your phone will reset to factory defaults.
FLASHING
It is not required to add ADB tools under your system's path. It does make future usage easier, and you also learn how to use computers, and is beneficial in the long run. Binaries and libraries are linked together. Simply copying the platform tools folder to another place, or vice versa, and launching the tools should be safe.
FIRMWARE FASTBOOT
Flashing an entire firmware is more safely done while in Fastboot mode. While there are also recovery archives, they do not include the entire partition library for a full clean install. There is also a risk of hitting an ARB http://xda-developers.com/xiaomi-anti-rollback-protection-brick-phone. There are GUI tools available, but they are very prone to bugs, and may not work well compared to simple CLI. Fastboot images also include "flash_all..." for both Windows (.bat) and Linux (.sh). To ensure better results, make sure the extracted path is short and has no unique characters (such as spaces) in the names. On Windows, it is preferable to use "Command Prompt" instead of "Powershell" as the latter is not as stable. Running the preferred terminal as admin/root is also a favorable.
Most users require an unofficial "vbmeta" patch to bypass "Android Verified Boot" for more advanced usage. The attached vbmeta bypasses builtin blocking.
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
RECOVERY TWRP
TWRP is a general purpose recovery without too many features. It is much better than every stock recovery, but may have less features than the newer recovery projects. As a starting point, many other recoveries require having at least a custom recovery installed. While it is possible to Fastboot install other recoveries by extracting the archive, flashing the image, then copying over the default configs. This should not be relied upon as there may be additional scripts that are required to safely install other custom recoveries.
adb reboot bootloader
fastboot flash recovery twrp.img
fastboot reboot
Click to expand...
Click to collapse
The official documentation for Fastboot states that not every phone supports 'fastboot reboot MODE', our phone does. We can safely append recovery to reboot into recovery mode from Fastboot, and expect it to work without rapidly trying to enter recovery mode via hardware buttons.
fastboot reboot recovery
ROOT MAGISK
It is recommended to backup the boot partition with TWRP. If you are using a custom ROM, a boot.img is inside the archive.
It is safe to flash magisk directly using TWRP. We should download the APK, rename it to ZIP, reboot to recovery and install, once it is done installing, rename it again to APK, boot to system and install it normally. Since our device qualifies as an exception, the boot partition is flashed instead of the recovery when reading the installation guide.
KERNEL
Other than the LOLZ kernel available here, there are a few additional kernels available in the Telegram chat group. I will try to provide more information later.
GAPPS
Like it or not, Google is here to stay. With so many GAPPs variants (respective packages, and addons), which should we choose? There might not be a correct answer as they are always evolving. The only thing most users MUST care about, is whether or not their recent changelog may include major stability issues such as 'fixed bootloop' and decide for themselves.
Most of the time, it should be more preferred to choose the core installer, then manually installing from there, YOUR required additional GAPPs (either via addons or the store). Fewer cars do mean fewer pileups, and not having too many apps installed will also cause less headaches.
ROM
The meat of the guide, and what most people seek when searching around the XDA. There are two main groups of ROMs, Generic System Image (GSI), and full custom ROMs specifically built for a device. Many devices may share common drivers with each other, such as the Redmi 8 series and the 8A. While not going too in-depth on a particular selection, one should take note and at least read through the installation instructions. Typically on modern A11 ROMs, most follow similar steps as followed;
reboot recovery
format data
reboot recovery
wipe cache, dalvik, data, system (sometimes vendor and internal)
reboot recovery
install archives
some may have a different step which are required for it to install. If one were to follow another guide for another phone, and ask for support on your phone's ROM thread, welp.
GSI builds have been around since A9 with treble support, and might have been a great idea. It allows users to try out a ROM not available within their reach, or try a completely new system such as UBports. It works much like a PC OS installer, but with PC experience, most users are required to finish their installation with needed tweaks. Additional drivers, security patches, custom user services and so on are the many examples that can easily be installed with minimal PC experience. Phones also require device specific tweaks to get the most out of GSIs and may vastly differ from each other. I am not against GSIs in general, but do hope for major breakthroughs in the development.
OFFICIAL adb/fastboot
SDK Platform Tools release notes | Android Studio | Android Developers
Android SDK Platform-Tools is a component for the Android SDK.
developer.android.com
OFFICIAL driver
https://mi.com/c/driver
OFFICIAL mi unlock
https://c.mi.com/thread-2262302-1-0.html
OFFICIAL twrp
Xiaomi Redmi 8
Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...
twrp.me
OFFICIAL magisk
GitHub - topjohnwu/Magisk: The Magic Mask for Android
The Magic Mask for Android. Contribute to topjohnwu/Magisk development by creating an account on GitHub.
github.com
MOD EDIT: Telegram link removed, please read the STICKY!
UNOFFICIAL firmware
Xiaomi Firmware Updater
The ultimate script that provides firmware packages for Xiaomi devices.
xiaomifirmwareupdater.com
UNOFFICIAL tool
GitHub - Szaki/XiaomiADBFastbootTools: A simple tool for managing Xiaomi devices on desktop using ADB and Fastboot
A simple tool for managing Xiaomi devices on desktop using ADB and Fastboot - GitHub - Szaki/XiaomiADBFastbootTools: A simple tool for managing Xiaomi devices on desktop using ADB and Fastboot
github.com
UNOFFICIAL vbmeta
attached below
fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img
reserved - misc tips and tricks
While this guide was written with the Redmi 8 in mind and body, in can be put into good use on other phones as well.
MAGISK
With the current development of Magisk, it may be wise to wait on a new development path. Currently, there are reports of Magisk still working for some, but not for the vast majority of others. There are many workarounds, but as stated, will have varying success.
RELOCK BOOTLOADER
A forewarning for those that decide to relock their bootloader, there are people with destroyed systems after relocking. It is fully recommended to first full fastboot flash a stock firmware before attempting to relock. Simply unlocking again can successfully reboot the device, hinting there is a bug within Xiaomi. Some others have been unlucky and can cause EDL mode where only official service centers can unlock.
Others have also tested out many methods to workaround issues like these, and are having doubts as to how modern businesses are run.
MIGRATE
Migrate is a specially built backup/restore tool that makes moving from one ROM to another easily as the name suggests. It allows us to perform batch backups of apps, data, and/or permissions into a flashable recovery archive. Then finally completing the installation once we have fully installed the ROM by selectively restoring all/none of what has been backed up. It is possible to restore without TWRP, but using TWRP is recommended as it is more direct and user friendly.
Most of the time, it should be technically safe to migrate from OS versions since it only backup/restore user apps, one should take note of different min/max version specified in apps. A quick workaround is to find a trustworthy mirror, and download an universal app. At first launch, it is also recommended to do a quick test run by backing up an app, then restoring it by recovery.
backup app|data|perm
full install a ROM, GAPPS, magisk
boot system to complete the magisk installation
reboot recovery and flash the archive
boot system and complete the installation
The last reboot is not required, and can be manually cleaned up.
reserved - redmi 8 custom list
This is not a complete list of all available ROMs. I have purposely left ROMs unannounced in the XDA, GSIs, and dorment releases out. If one were curious, you could search for many more available, about twice the amount listed here. There may be a good reason they are not announced to the public, and we must use them with caution.
FIRMWARE
[Firmware] Xiaomi Redmi 8 [olive] [Auto updated daily!]
All Xiaomi custom ROMs users complain from a single problem, which is the firmware updates. As there are many devices with no one to provide the newest firmware update every single release, and developers who provide updates to devices may forget...
forum.xda-developers.com
ROM
MIUI BASED
[ROM][Stable] MIUI 11 xiaomi.eu
11.0.8.0 https://sourceforge.net/projects/xiaomi-eu-multilang-miui-roms/files/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv11/xiaomi.eu_multi_HM8_V11.0.8.0.PCNCNXM_v11-9.zip/download https://androidfilehost.com/?fid=4349826312261737251 11.0.7.0...
forum.xda-developers.com
[ROM] [GUIDE] HOW TO INSTALL XIAOMI.EU MIUI 12.0.3 (WITH ALL FEATURES OF 12.5) ANDROID 10 ON REDMI 8
Hi, here's my guide on how install Xiaomi.eu MIUI 12.5 (A10) with all features of MIUI 12.5 on Redmi 8 What work - All functions of the phone What doesn't work - Nothing Note 1: If you fing bugs tell me in comments, maybe I could help you (I'm...
forum.xda-developers.com
MIUI ROM Builder - Create your own MIUI Custom-ROM! - mi-globe.com
Download your MIUI ROM just as you like it! Select from more than 20 modifications and build your very own Xiaomi MIUI custom firmware!
mi-globe.com
FULL CUSTOM
[ROM][LOS][11.0][OFFICIAL][olive] crDroid v7.12 for Redmi 8
*** Disclaimer I am not responsible for any damage you made to your device You have been warned crDroid is designed to increase performance and reliability over stock Android for your device also attempting to bringing many of the best features...
forum.xda-developers.com
[ROM][11.0][OFFICIAL][olives] Project Sakura v5.2 for Redmi 8/8A/8A Dual (unified)
Project Sakura is a custom ROM based on Lineage OS, It tries to remain true to it while also providing some more functionality and UI changes. Its sole purpose is to provide a platform which is powered by Lineage and is more customisable than...
forum.xda-developers.com
[ROM][11.0][olives][UNOFFICIAL] RevengeOS 4.1 for Redmi 8/8A/8A Dual [23/08/21]
RevengeOS is an operating system based on Android Open Source Project, built with a unique look and performance in mind. It's daily usage ready, lightweight and elegant. /* * Your warranty is now void. * * We're not responsible for bricked...
forum.xda-developers.com
[ROM][11.0][UNOFFICIAL][olives] Stag OS 11.0.R4.1 for Redmi 8/8A/8A Dual (unified)
Credits where they are Due: Google(No explanation needed n this regards) Lineage(For starting of the custom rom war) KCUF Rom(For acting as base) Omni Rom, Slim Rom, DirtyUnicorns, AospExtended and every other project whose contributions lead to...
forum.xda-developers.com
[ROM][AOSP][11.0][OFFICIAL][olive] dotOS v5.2.1 for Redmi 8
" #DroidOnTime " ROM Version: 5.2.1 Device: olive Maintainer: deadlylxrd Build Status: OFFICIAL * Your warranty is now void. * We are not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels...
forum.xda-developers.com
[ROM][11.0_r40][UNOFFICIAL][STABLE] ShapeShiftOS 2.7 // Solosis for unified Redmi 8/8A/8A Dual [olives]
/* * 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...
forum.xda-developers.com
[ROM][AOSP][11.0][OFFICIAL][olive] Havoc OS v4.8 for Redmi 8
Havoc-OS 4.x is based on AOSP, inspired by Google Pixel. Has a refined Material Design 2 UI crafted by @SKULSHADY. Many useful features that provide a smooth premium experience. Just flash and enjoy...
forum.xda-developers.com
[ROM][11.0][OFFICIAL][olives] Komodo OS 3.2.1 for Redmi 8/8A/8A Dual (unified)
Komodo OS ROM for Xiaomi Redmi 8/8A/8A Dual (olives) * Your warranty is now void. * We are not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels. * You do it at your own risk and take the...
forum.xda-developers.com
[ROM][11.0][OFFICIAL][olives] LegionOS 3.13 for Redmi 8/8A/8A Dual (unified)
* Your warranty is now void. * We are not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels. * You do it at your own risk and take the responsibility upon yourself and you are not to blame us or...
forum.xda-developers.com
[ROM][11.0][UNOFFICIAL][olives] XTENDED XR-v9.0 for Redmi 8/8A/8A Dual (unified)
Disclaimer * We're not responsible for bricked devices, dead SD card or anything happens with your device * Flash on your own risk/knowledge...
forum.xda-developers.com
[ROM][11.0][UNOFFICIAL][olives] BaikalOS 11.1 for Redmi 8/8A/8A Dual (unified)
BaikalOS BaikalOS Project Until Android 10 the ROM been based on GZOSP. From 10.0 we changed our base to AICP. If there are any bugs, either we will sort them out, if it concerns our code base. This ROM isn't AICP supported, so there is no need...
forum.xda-developers.com
[ROM][11] Lineage Fan Edition v11.69 [ISOBAR][OLIVES]
Lineage OS Fan Edition for Xiaomi Redmi 8/8A/8A Dual (olives) * Your warranty is now void. * We are not responsible for anything that may happen to your phone by installing any custom ROMs and/or kernels. * You do it at your own risk and take...
forum.xda-developers.com
[ROM][11.0][UNOFFICIAL][LineageOS 18.1] for Redmi 8(olive)
would like to share my device tree from scratch from 0 to hero for redmi 8 olive i left developing that phone for a while 2day sharing my device tree for lineage 18.1 along with the rom . rom based on latest miui vendor prebuilt Your warranty...
forum.xda-developers.com
[ROM][11.0][OFFICIAL][olives] AncientOS 5.7 for Redmi 8/8A/8A Dual (unified)
/* * 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...
forum.xda-developers.com
https://forum.xda-developers.com/t/...-olives-pixel-experience-for-redmi-8.4366771/
GAPPS
The Open GApps Project
OpenGApps.org offers information and pre-built packages of The Open GApps Project. The Open GApps Project is an open-source effort to script the automatic generation of up-to-date Google Apps packages. All Android versions and platforms supported.
opengapps.org
FlameGApps
BiTGApps
Custom Google Apps Project
bitgapps.github.io
NikGApps - Custom Google Apps Package!
NikGapps Website
nikgapps.com
RECOVERY
Download TWRP for olive
Download TWRP Open Recovery for olive
dl.twrp.me
Xiaomi Redmi 8 (olive) build releases | OrangeFox Recovery Downloads
Orangefox recovery for Xiaomi Redmi 8 (olive)
orangefox.download
RECD to use the latest beta 11.1 (1 aug 21)
[RECOVERY][UNOFFICIAL][olive] PitchBlack Recovery v3.1.0 for Redmi 8
/* * Disclaimer * * Your warranty is now void. * * We're 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...
forum.xda-developers.com
[RECOVERY] [OLIVE] Sky Hawk Recovery Project v2.2 [07-03-2020]
#include /* * Your warranty is... still valid? * * 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...
forum.xda-developers.com
KERNEL
[KERNEL][4.9.337] LOLZ V21 [olive/olivelite/olivewood/pine] [14/01/2023]
/* * Your warranty is now void lmao. * * 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...
forum.xda-developers.com
[KERNEL][SDM439][4.9.282] Moonlight Kernel v1.2
Moonlight Kernel for Xiaomi SDM439 a new era for your smartphone /* * 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...
forum.xda-developers.com
Redmi 8 development is seeing a huge spike recently with many available full customs, and some more unpublished here. There is also a group that is working on an alternative operating system, aiming to bring Linux (I usually exclude the 'GNU/' part) here. On top of that, there may be future attempts to not only bring UBports/Ubuntu Touch, but a few more arm64 ports
With the release of Android 13, many ROM devs are switching to an RDP (retrofit dynamic partition) scheme to allow A13 to install on our phones. These new ROMs require a modded recovery not currently released on official sites, nor in this subforum. To find these RDP type recoveries, see my signature that mentions a TG (Telegram) group.
The group is the main driving force, and sadly many of them are not an active part of this forum.
For those wondering, the MI439 release tag includes Olives (both lite and wood) and with the Redmi 7A. With RDP schemes currently the norm with ROM devs for our phones, it may be worth joining the TG to avoid installation missteps.
Impressive. Thank you
fonzacus said:
GSI builds
Click to expand...
Click to collapse
Can you explain what are they?
fonzacus said:
try a completely new system such as UBports
Click to expand...
Click to collapse
Is it really possible to have Ubuntu mobile on ginkgo ? That would be interesting.
Besides, I'm didn't find how to downgrade from A12 or 11 to A10 here.
GSI = generic system images. something like PC OSs. they can be installed on all hardware. but we 1st must know what our devices need (like a specific vendor partition)
this is mainly chatting about olives, dont know about ginkgo
for olives only, all you have to do is flash what android version you want to down|upgrade as you want
Jarod5001 said:
Impressive. Thank you
Can you explain what are they?
Is it really possible to have Ubuntu mobile on ginkgo ? That would be interesting.
Besides, I'm didn't find how to downgrade from A12 or 11 to A10 here.
Click to expand...
Click to collapse
fonzacus said:
this is mainly chatting about olives
Click to expand...
Click to collapse
My bad . I was doing a lot of searching and didn't realize that the thread was about redmi 8 and not redmi note 8. Sorry.
Thanks for explaining
fonzacus said:
With the release of Android 13, many ROM devs are switching to an RDP (retrofit dynamic partition) scheme to allow A13 to install on our phones. These new ROMs require a modded recovery not currently released on official sites, nor in this subforum. To find these RDP type recoveries, see my signature that mentions a TG (Telegram) group.
The group is the main driving force, and sadly many of them are not an active part of this forum.
For those wondering, the MI439 release tag includes Olives (both lite and wood) and with the Redmi 7A. With RDP schemes currently the norm with ROM devs for our phones, it may be worth joining the TG to avoid installation missteps.
Click to expand...
Click to collapse
hello friend, could you provide the group link?
Related
Code:
/*
* 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.
*/
Requirements:
# treblized vendor (P or O)
How to install:-
1. Enable Developer options in Settings app
2. Check Enable OEM Unlocking
3. Reboot to fastboot mode
4. Unlock your bootloader
5. Install TWRP-fastboot only through fastboot boot command (Extract the .img file from the zip)
6. Flash CosmicDan's TWRP Installer through your current TWRP. Credits to @CosmicDan for his TWRP and @mohancm for official TWRP sources.
7. Reboot to TWRP recovery
8. Go to WIPE then ADVANCED then click FORMAT data. This will remove Encryption on your device and allows you to set new passwords when installing the GSI. Note that this will format your internal storage.
9. Treblelize through TWRP Tissot Manager (Go to advanced, click Tissot Manager and choose the repartition userdata option. Select singleboot option then click repartition)
10. Flash Boot image
11. Flash Pie Vendor ( VENDOR_A1_PIE-NFE_20181011 ) by Adb sideload
12. Install System Image (Q_AB_v0.3.img.7z)
13. Flash permissiver_v2.zip or make your boot partition selinux permissive
14. Flash FixZygote.zip
15. Reboot To system
16. Special thanks to @erfanoabdi for porting the Q A/B GSI.
Bugs:-
1. Volte Fully Broken
2. Camera Not Working
3. Wifi Broken ( Connection seems but not connected)
XDA:DevDB Information
Android Q, ROM for the Xiaomi Mi A1
Contributors
Sonudbm, Erfanoabdi
Source Code: https://mega.nz/#F!CYQxgCDK!Dl4kKANVDRy5kOFkNsuMVw
ROM OS Version: 9.x Pie
ROM Firmware Required: treblized vendor (P or O)
Based On: GSI
Version Information
Status: Beta
Stable Release Date: 2019-03-17
Beta Release Date: 2019-03-15
Created 2019-03-19
Last Updated 2019-03-19
Duplicate thread closed.
Please use this one instead.
Funk Wizard
Forum Moderator
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
CHANGELOG for 3.3.1-0:
Fix selinux issues during formatting - dianlujitao
Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff
Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy
Add option to uninstall TWRP app from /system - Dees_Troy
Create digest for subpartitions - bigbiff
Install guide:
Install fastboot tools from google's sdk on your PC
Enter fastboot mode
Unlock your bootloader
Download recovery-20190820.img
Run "fastboot flash recovery recovery-20191120.img in command line
Reboot and enjoy it
Download:
recovery.img [20/11/19]
XDA:DevDB Information
Twrp, Tool/Utility for the Xiaomi Redmi 7
Contributors
RevanthTolety, Flex
Kernel Source Code: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/onc-p-oss
Version Information
Status: Stable
Stable Release Date: 2019-11-20
i wonder if this could work with the pixel experience rom
So many of you might wonder about the need of a new recovery since there are already many recoveies floating around, but there are few things that are different about this one
This recovery sets the proper codename for your device i.e.: Onc & Onclite for Redmi 7 Global & All Other Variants
This Recovery Is Built With Proper Source Code & Correct Partition Sizes With the Ability to Flash Custom Roms
Last But Not the least, Some ScreenShots
Do this support encryption??
Zac_1 said:
Can I use this recovery for the pixel experience ROM?
---------- Post added at 11:53 AM ---------- Previous post was at 11:52 AM ----------
Can you please try it and give us feedback?
Click to expand...
Click to collapse
you could like , try it yourself...I'm happy with miui 10 and waiting for miui globe 11
Do this support miuimix 2.0 + gsi?
RevanthTolety said:
Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.
Code:
/*
* Your warranty is now void.
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
CHANGELOG for 3.3.1-0:
Fix selinux issues during formatting - dianlujitao
Various fixes for toybox and toolbox builds - CaptainThrowback and bigbiff
Flash both A and B partitions when installing a recovery ramdisk - Dees_Troy
Add option to uninstall TWRP app from /system - Dees_Troy
Create digest for subpartitions - bigbiff
Install guide:
Install fastboot tools from google's sdk on your PC
Enter fastboot mode
Unlock your bootloader
Download recovery-20190820.img
Run "fastboot flash recovery recovery-20190820.img in command line
Reboot and enjoy it
Download:
recovery.img [28/08/19]
XDA:DevDB Information
Twrp, Tool/Utility for the Xiaomi Redmi 7
Contributors
RevanthTolety, thelazyindian
Kernel Source Code: https://github.com/MiCode/Xiaomi_Kernel_OpenSource/tree/onc-p-oss
Version Information
Status: Stable
Stable Release Date: 2019-08-28
Created 2019-08-28
Last Updated 2019-08-27
Click to expand...
Click to collapse
It can decrypt android 10?
I wonder what's the difference between this and the official version found in TWRP's site.
Can i flash onc and onclite roms with this?
Andrica said:
Can i flash onc and onclite roms with this?
Click to expand...
Click to collapse
Yeah U Can
Darth Bidder said:
I wonder what's the difference between this and the official version found in TWRP's site.
Click to expand...
Click to collapse
I Dont Know About That Though, But mine is Built with Proper Twrp Trees & Correct Partition Sizes & Adds Both Onc & Onclite Codename
Time for quick update
Changelog
Mounting And Unmounting Of Partitions Fixed
Now Roms can be backed up and restored
Fixed "zip_compatible_err" while flashing a few roms
Links are updated in op enjoy [/QUOTE]
While backing up, it's not able to mount partitions...keeps asking for decryption password...
Edit: You need to select Wipe > Format Data first
Can it decrypt Android Q ? Btw thanks
Time For a Quick Update
- Fixed Compatibility_Zip Error Permanently
- Full Support to Flash Source Built Vendor Based Roms
Download Link Updated in OP
RevanthTolety said:
Time For a Quick Update
- Fixed Compatibility_Zip Error Permanently
- Full Support to Flash Source Built Vendor Based Roms
Download Link Updated in OP
Click to expand...
Click to collapse
Thank you very much.
In OP (Install guide) there is an error because now "Download recovery-20190820.img" should be "Download recovery-20191120.img".
I install the twrp.img but am unable to boot in to twrp.
Any solutions?
Can't install arm64 Gapps. TWRP forces me to flash arm version but when I boot into LineageOS there are no Gapps at all.
This Is a pretty good build of TWRP but can't decrypt and doesn't install GApps (Shows arm instead of arm64)
Otherwise, works like a charm
does this handle decryption and can disable dm-verify?
Code:
#include <std_disclaimer.h>
/*
*
* We are 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 us for messing up your device, we will laugh at you.
*
*/
Hi guys!
I just want to share how to flash GSI on our realme XT RMX1921.
I've testing Phh's Quack (Android 10) and booted.
You maybe can test another GSI and then report it here.
I haven't testing another AOSP GSI or even OEM GSI like OOS / MIUI / H2OS.
I'll update if I was testing it and boot successfully.
If you have simpler way to install GSI then tell me tho.
Here is the steps :
1. Unlock your XT's bootloader and make sure you have installing adb fastboot on your Windows / Linux / Mac
2. Flash TWRP by thesprintster here : https://forum.xda-developers.com/re...ecovery-unofficial-twrp-realme-5-pro-t3985459
3. Download LineageOS by thesprintster here : https://forum.xda-developers.com/realme-xt/development/rom-lineageos-16-0-t3985463
4. Open LOS zip and take the boot.img
5. Download vbmeta by thesprintster here : https://drive.google.com/drive/folders/1JwIpix76opSAToa-4X4YdT_SH5JUOxJQ
6. Download Phh's Quack here : https://forum.xda-developers.com/pr...velopment/aosp-10-0-quack-phh-treble-t3992559 (select arm64-ab-gapps or arm64-ab-vanilla)
6a. You can download another GSIs like ExpressLuke GSIs here : https://forum.xda-developers.com/project-treble/trebleenabled-device-discussion/gsi-expressluke-built-gsis-t4003457 and make sure you download the ARM64 AB variant.
7. Boot to TWRP and backup your vendor image (or maybe all your vendor + system + boot + data if you want to back to ColorOS) incase to avoid any error
8. Wipe all except vendor
9. Back to bootloader / fastboot, put your vbmeta.img to your adb fastboot folder
10. Flash vbmeta.img by typing fastboot flash --disable-verity --disable-verification vbmeta vbmeta.img
11. Boot to TWRP and copy Phh's Quack System image and LOS boot.img to your rXT
12. Flash boot and system image
13. Flash Gapps (if you download the vanilla variant) or if you want Google-less you can skip this
14. Reboot to system
15. Wait for booting aprrox. 4 minutes
Bug list on Phh's Quack GSI (and another Phh's based GSIs) tested on rXT 8/128 :
- Fingerprint not working (realme disable fingerprint since bootloader unlocked)
- VoLTE not working (global GSI bugs)
- Status bar on side (like battery and clock) got cropped and mis-positioned How to fix clock and battery logo : Go to Settings - Phh Treble Settings - Misc features - Set rounded corners diameter : 15 (or above 15, just fill with values you want)
- Bluetooth Media not working
- you tell?
Tested GSIs :
- Quack Phh-Treble arm64-ab-gapps v202 by phhusson
- Evolution-X 3.3 20191111 ARM64-AB by turbolukex5
Enjoy! :fingers-crossed:
You can correct status bar cropping by enabling developer options and selecting cutout.
I'll just add this here in case anyone needs it.
Also , if anyone finds workarounds for VoLTE, please feel free to post it.
Code:
/*
* Your warranty is now void lol.
*
* 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 tutorial
* 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.
*/
You will need:
1. LineageOS 16 from this link:
[ROM][9.0.0][UNOFFICIAL] [redmi 8/olive LineageOS 16.0
my name is mohamed first of all sry am not good in making threads :D today am going to share my device tree from scratch including The Rom for lineage-16 am doing my best to get this phone stable as i could if you like my work send me thanks...
forum.xda-developers.com
2. LOLZ kernel from this link:
[KERNEL][4.9.229] LOLZ V10 [olive] [01/07/2020]
/* * Your warranty is now void lmao. * * 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...
forum.xda-developers.com
3. TWRP (Not gonna show you where to get this, if you are on this forum you probably should have it.
4. And any GSI rom that is arm64 and uses the AB partition scheme.
And a basic sense of how rom flashing works
If you flash any GSI normally you will experience bugs such as Bluetooth audio not working and sensors not working.
Thats why I realized i could write the system partition from a GSI onto the lineageOS system partition, which is fully functional.
Result is a working GSI with all features (Not including voLTE, its useless).
I used Havoc OS android 11 GSI for this tutorial:
1. Wipe every partition on your phone, so thats Vendor System Data Cache and Internal storage.
2. Use a SD card or MTP over these files:
LineageOS 16.0 zip
LOLZ kernel zip
Magisk
And the GSI, but I personally MTP this at the last step.
And GAPPS for the GSI, if it doesnt have them built in.
3. Flash the lineageOS zip.
4. After its done flash magisk.
5. And last flash LOLZ kernel.
6. Reboot your device and wait for lineage to boot, once its done set it up until you are in the Pixel Launcher.
7. Reboot back into TWRP or any custom recovery.
8. Now if you haven't already MTP over the GSI and Gapps (if needed).
9. Flash the System partition from the GSI, DO NOT FORMAT ANY PARTITIONS UNTIL YOU DO THIS.
10. Resize the system partition if needed.
11. Install GAPPS.
And last but not least, step 12!
Format data!
Reboot into system and the rom should start booting. After its booted you are gonna set it up normally like you would any other rom. But this time the GSI has features like bluetooth, Gyroscope working and Automatic Brightness (a big issue on any GSI on this phone).
I hope you enjoyed using my tutorial
Forgot to mention that magisk WONT WORK on roms that use android 11!!
Its a limitation of android 11 and i cannot fix this.
Seems promising. Would try on weekend and cast vote.
Thanks for you efforts for community.
Realized once again that you dont even need to boot, just flash the lineageOS rom, then the GSI on top.
thank you very much its working the problem i always encounter is my bluetooth but now its working fine sorry for my bad english BTW i use havoc <3
I was in stock firmware 12.0.1 and I did the following.
1) Formated system, data, vendor and internal storage in twrp.
2) Flashed lineage 16
3) Flashed Magisk 20.4
4) Flashed loz kernel.
5) Reboot
Phone did not boot and was back to twrp. Tried twice and got the same result.
Do I need to flash other files like vbmeta, certification patch or permissive etc to make it work?
thanks, in the evening I will check and tell exactly what works and what does not work, probably all GSIs are giving me some problems (problem with brightness or bluetooth headphones)
Thank you for this guide. I installed havoc os 4.1 using this exact method wiped everything formated data flashed lineage and lolz kernel formated data , I flashed havoc on top without booting into lineage formated data again and voala everything is working smoothly as of now. I am curious tho why do we need to flash lolz is it necessary?
Thank you for this guide. I installed havoc os 4.1 using this exact method wiped every partition (I didn't wiped the USB OTG partition )formated data flashed lineage and lolz kernel formated data , I flashed havoc on top without booting into lineage formated data again and voala everything is working smoothly as of now. I am curious tho why do we need to flash lolz is it necessary?
Dragonnuu said:
Thank you for this guide. I installed havoc os 4.1 using this exact method wiped every partition (I didn't wiped the USB OTG partition )formated data flashed lineage and lolz kernel formated data , I flashed havoc on top without booting into lineage formated data again and voala everything is working smoothly as of now. I am curious tho why do we need to flash lolz is it necessary?
Click to expand...
Click to collapse
We need LOLZ because the lineage kernel gets carried over and its broken (Try booting lineage clear, you wont get far)
mwaseem851 said:
I was in stock firmware 12.0.1 and I did the following.
1) Formated system, data, vendor and internal storage in twrp.
2) Flashed lineage 16
3) Flashed Magisk 20.4
4) Flashed loz kernel.
5) Reboot
Phone did not boot and was back to twrp. Tried twice and got the same result.
Do I need to flash other files like vbmeta, certification patch or permissive etc to make it work?
Click to expand...
Click to collapse
Sorry for the late response, did you format data after installing?
Or did you even flash the GSI?
If so you might actually need the new vbmeta, if you do respond to this and i'll send it to you.
I have done lots of experimentation since last post and finally settled with Havoc OS 3.12 (all android 11 roms are still buggy).
Thanks.
boofiboi said:
Sorry for the late response, did you format data after installing?
Or did you even flash the GSI?
If so you might actually need the new vbmeta, if you do respond to this and i'll send it to you.
Click to expand...
Click to collapse
boofiboi said:
Code:
/*
* Your warranty is now void lol.
*
* 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 tutorial
* 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.
*/
You will need:
1. LineageOS 16 from this link:
[ROM][9.0.0][UNOFFICIAL] [redmi 8/olive LineageOS 16.0
my name is mohamed first of all sry am not good in making threads :D today am going to share my device tree from scratch including The Rom for lineage-16 am doing my best to get this phone stable as i could if you like my work send me thanks...
forum.xda-developers.com
2. LOLZ kernel from this link:
[KERNEL][4.9.229] LOLZ V10 [olive] [01/07/2020]
/* * Your warranty is now void lmao. * * 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...
forum.xda-developers.com
3. TWRP (Not gonna show you where to get this, if you are on this forum you probably should have it.
4. And any GSI rom that is arm64 and uses the AB partition scheme.
And a basic sense of how rom flashing works
If you flash any GSI normally you will experience bugs such as Bluetooth audio not working and sensors not working.
Thats why I realized i could write the system partition from a GSI onto the lineageOS system partition, which is fully functional.
Result is a working GSI with all features (Not including voLTE, its useless).
I used Havoc OS android 11 GSI for this tutorial:
1. Wipe every partition on your phone, so thats Vendor System Data Cache and Internal storage.
2. Use a SD card or MTP over these files:
LineageOS 16.0 zip
LOLZ kernel zip
Magisk
And the GSI, but I personally MTP this at the last step.
And GAPPS for the GSI, if it doesnt have them built in.
3. Flash the lineageOS zip.
4. After its done flash magisk.
5. And last flash LOLZ kernel.
6. Reboot your device and wait for lineage to boot, once its done set it up until you are in the Pixel Launcher.
7. Reboot back into TWRP or any custom recovery.
8. Now if you haven't already MTP over the GSI and Gapps (if needed).
9. Flash the System partition from the GSI, DO NOT FORMAT ANY PARTITIONS UNTIL YOU DO THIS.
10. Resize the system partition if needed.
11. Install GAPPS.
And last but not least, step 12!
Format data!
Reboot into system and the rom should start booting. After its booted you are gonna set it up normally like you would any other rom. But this time the GSI has features like bluetooth, Gyroscope working and Automatic Brightness (a big issue on any GSI on this phone).
I hope you enjoyed using my tutorial
Click to expand...
Click to collapse
Can you flash the AOSP beta GSIs from released on the Android website? For example the Android 12 Beta GSI?
I tried installing Android 12 on Redmi 8 but it did something perplexing.
TWRP said no OS was installed. Rebooting had the phone boot back into TWRP. I tried installing through both fastboot and TWRP. Installations were successful tho.
{
"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.
*/
Introduction
LineageOS, an open-source Android distribution, is available for several devices,
with more being continuously added thanks to the biggest, yet ever growing, Android open-source community.
Join us and breathe new life in your device, be it old or new.
Click to expand...
Click to collapse
To find out more about LineageOS visit the official Website.
All the source code for LineageOS is available in the LineageOS Github organization. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
Installation
Warning: These instructions only work if you follow every section and step precisely.
Do not continue after something fails!
Basic requirements
Read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
Make sure your computer has adb and fastboot. Setup instructions can be found here.
Enable USB debugging on your device.
LineageOS is provided as-is with no warranty. While we attempt to verify everything works you are installing this at your own risk!
Warning: Before following these instructions please ensure that the device is currently using Android 13 firmware.
If the vendor provided multiple updates for that version, e.g. security updates, make sure you are on the latest!
If your current installation is newer or older than Android 13, please upgrade or downgrade to the required version before proceeding (guides can be found on the internet!).
Unlocking the bootloaderNote: The steps below only need to be run once per device. They require a machine running Windows 7 or newer.
Warning: Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed.
Tip: It is highly recommended to have the latest official MIUI stable package installed on the device, before proceeding with unlock.
Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
Add a phone number to your Mi account.
Insert a SIM into your phone.
Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
Download the Mi Unlock app (Windows is required to run the app).
Run the Mi Unlock app and follow the instructions provided by the app. It may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step!
After device and Mi account are successfully verified, the bootloader should be unlocked.
Since the device resets completely, you will need to re-enable USB debugging to continue.
Flashing additional partitionsWarning: This platform requires additional partitions to be flashed for recovery to work properly, the process to do so is described below.
Download the following files from the download section below.
boot.img
dtbo.img
vendor_boot.img
Power off the device, and boot it into bootloader mode:
With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
Flash the downloaded image files to your device by typing (replace <...> with the actual filenames!):
fastboot flash boot <boot>.img
fastboot flash dtbo <dtbo>.img
fastboot flash vendor_boot <vendor_boot>.img
Booting a custom recovery using fastboot
Download Lineage Recovery from the download section below. Simply download the latest recovery file, named recovery.img.
Important: Other recoveries may not work for installation or updates. We strongly recommend to use the one linked above!
Connect your device to your PC via USB if it isn’t already.
If your device isn’t already in fastboot mode, on the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
adb reboot bootloader
You can also boot into fastboot mode via a key combination:
With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you don’t get any output or an error:
on Windows: make sure the device appears in the device manager without a triangle. Try other drivers until the command above works!
on Linux or macOS: If you see no permissions fastboot try running fastboot as root. When the output is empty, check your USB cable (preferably use a USB Type-A 2.0 one or a USB hub) and port!
Tip: Some devices have buggy USB support while in bootloader mode, if you see fastboot hanging with no output when using commands such as fastboot getvar ..., fastboot boot ..., fastboot flash ... you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub.
Flash a recovery on your device by typing (replace <recovery_filename> with the actual filename!):
fastboot flash recovery <recovery_filename>.img
Note: Outdated fastboot releases dropped legacy A/B support, so it might attempt to flash to recovery__a /recovery__b rather than recovery_a / recovery_b if you try to flash recovery. In this case, you must update fastboot to a release newer than or equal to 31.0.2. Alternatively, you can manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash to recovery__a, you must flash to recovery_a.
Now reboot into recovery to verify the installation.
With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
Note: If your recovery does not show the LineageOS logo, you accidentally booted into the wrong recovery. Please start at the top of this section!
Installing LineageOS from recovery
Download the LineageOS installation package from the download section below that you would like to install or build the package yourself.
(Optionally): If you want to install an application package add-on such as Google Apps (use the arm64 architecture), please read and follow the instructions on Google Apps page
If you are not in recovery, reboot into recovery:
With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
Return to the main menu.
Sideload the LineageOS .zip package but do not reboot before you read/followed the rest of the instructions!
On the device, select “Apply Update”, then “Apply from ADB” to begin sideload.
On the host machine, sideload the package using: adb sideload filename.zip.
Tip: Normally, adb will report Total xfer: 1.00x, but in some cases, even if the process succeeds the output will stop at 47% and report adb: failed to read command: Success. In some cases it will report adb: failed to read command: No error or adb: failed to read command: Undefined error: 0 which is also fine.
All set!Once you have installed everything successfully, you can now reboot your device into the OS for the first time!
Click the back arrow in the top left of the screen, then “Reboot system now”.
Note: The first boot usually takes no longer than 15 minutes, depending on the device. If it takes longer, you may have missed a step, otherwise feel free to get assistance.
Download link:
Builds are released here: Releases on GitHub
Warning: These releases include builds for other devices i own, make sure to download files from a release for Xiaomi 12, for example: "LineageOS 20.0 for Xiaomi 2201122G (zeus)"
Note: There are two variants which are not necessarily released at the same time. Vanilla builds are pure LineageOS without additional apps and GMS builds include Google services. The GMS builds are too big for github releases, so they will be uploaded to this shared folder on Google Drive instead
Source Code
Please read this thread about the OSS kernel on Xiaomi 12 series.
All kernel related source code can be found here.
Device trees for LineageOS can be found here.
For all development related questions please refer to this thread.
Donate to support development:
Donate via PayPal to ArianK16a
Donate via PayPal to LineageOS
So,2 threads for same rom?
For the gapps, can we flash them directly now or use Magisk?
nice work !! thanks
Nicee gonna try this tonight! Thanks for the great work!
Thank you for your work!
NOSS8 said:
So,2 threads for same rom?
For the gapps, can we flash them directly now or use Magisk?
Click to expand...
Click to collapse
This thread is for discussion about the build from a user-perspective while the other thread aims to bring the build process closer to other developers and discussion about the source code.
GApps situation on the vanilla build is still the same but i have also built one with google apps integrated.
The relevant files can be downloaded here.
NeoArian said:
This thread is for discussion about the build from a user-perspective while the other thread aims to bring the build process closer to other developers and discussion about the source code.
GApps situation on the vanilla build is still the same but i have also built one with google apps integrated.
The relevant files can be downloaded here.
Click to expand...
Click to collapse
Gapps.
Yep, I had seen it but it dated back to February and now it's up to date.
You worked hard, thanks.
God bless you
Nice working bro.
Waiting for too long to use the stable aosp ROM
I have created a magisk module to get the MiuiCamera application working on LineageOS.
I missed two libs in vendor which are meant to be in the ROM, i have added them into the magisk module for now so that bokeh mode works.
If the module does not work for you please run the following commands, clear the app data and reboot
Code:
adb shell restorecon vendor/lib64/libmibokeh_mask.so
adb shell restorecon vendor/lib64/libmiphone_capture_bokeh.so
edit:// seems like you need to clear the apps data everytime you use the app. I forgot to include the fix in source of the ROM. The next lineage build will fix this issue!
Please use v1.08 on builds that are newer than 20230625.
Thank you for your efforts!
Thank you! You made this device 10x better!
First of all superb job on first AOSP rom for Zeus, or atleast what I know. Nearly perfect from the start. However I've noticed very minor bugs (wont affect use) like time untill fully charged on lockscreen is missing 2nd digit of the time and back gesture doesnt work properly when keyboard open (I'm using GSM release so I have GBoard). Other than that I've found 0 major issues so far and everything seems to work as it should. Keep up the good work, and THANKS for saving Xiaomi 12 Pro.
Rakpere said:
First of all superb job on first AOSP rom for Zeus, or atleast what I know. Nearly perfect from the start. However I've noticed very minor bugs (wont affect use) like time untill fully charged on lockscreen is missing 2nd digit of the time and back gesture doesnt work properly when keyboard open (I'm using GSM release so I have GBoard). Other than that I've found 0 major issues so far and everything seems to work as it should. Keep up the good work, and THANKS for saving Xiaomi 12 Pro.
Click to expand...
Click to collapse
Battery usage seems to be reported wrongly, not a big deal.
Few issues so far:
AptX Adaptive bluetooth codec doesn't seem to be present at all
Brave Browser (could also be any chromium based browser but unsure) freezes once in a while and completely dies with Sync Chain on (also read this might be a Magisk issue so this may be unrelated)
There are a few stutters and lag spikes here and there when the screen is transitioning to 120Hz
No way to change resolution to 1080p to save battery life
Either way, amazing work and thank you for everything!
Ghesun said:
Few issues so far:
AptX Adaptive bluetooth codec doesn't seem to be present at all
Brave Browser (could also be any chromium based browser but unsure) freezes once in a while and completely dies with Sync Chain on (also read this might be a Magisk issue so this may be unrelated)
There are a few stutters and lag spikes here and there when the screen is transitioning to 120Hz
No way to change resolution to 1080p to save battery life
Either way, amazing work and thank you for everything!
Click to expand...
Click to collapse
I have the same issue when using browser to view page with too much text or js. I have solve by deactivating the auto frame rate, it makes my screen 60 Hz always. I think the problem is cause of kernel.
Ghesun said:
Few issues so far:
AptX Adaptive bluetooth codec doesn't seem to be present at all
Brave Browser (could also be any chromium based browser but unsure) freezes once in a while and completely dies with Sync Chain on (also read this might be a Magisk issue so this may be unrelated)
There are a few stutters and lag spikes here and there when the screen is transitioning to 120Hz
No way to change resolution to 1080p to save battery life
Either way, amazing work and thank you for everything!
Click to expand...
Click to collapse
Forgot a few:
Sometimes a random flicker occurs at the left side of the status bar, very weird graphical issue (Was downloading songs from Tidal during this)
Animations and UI elements that are usually tied to where the physical buttons are (volume slider, AOD off animation) are not placed correctly
Sorry if these are issues already known or to be considered as cherry pick issues!
GMS version:
Connecting earphones to usb, the headphone icon is displayed but indicates that the device is charging.
Only the links sent by my banking application on Google messages are inactive (not this problem with the previous version 20230606).
The association of my GTR4 require 2 Bluetooth associations, concerning the second,for calls, the code is indeed sent to the watch and the phone but during the association, it returns a second code, which causes the association to fail (same on the previous version).
Browser freeze more frequent than the previous version.
Call recorder"Basic Call Recorder" (Magisk) works perfectly.
Basic Call Recorder is a no-nonsense call recording solution for rooted devices
Thanks to this Magisk module, you can now enable the call recording feature on any Android device running Android 10-13. Read on!
www.xda-developers.com
NeoArian said:
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.
*/
Introduction
To find out more about LineageOS visit the official Website.
All the source code for LineageOS is available in the LineageOS Github organization. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review.
Installation
Warning: These instructions only work if you follow every section and step precisely.
Do not continue after something fails!
Basic requirements
Read through the instructions at least once before actually following them, so as to avoid any problems due to any missed steps!
Make sure your computer has adb and fastboot. Setup instructions can be found here.
Enable USB debugging on your device.
LineageOS is provided as-is with no warranty. While we attempt to verify everything works you are installing this at your own risk!
Warning: Before following these instructions please ensure that the device is currently using Android 13 firmware.
If the vendor provided multiple updates for that version, e.g. security updates, make sure you are on the latest!
If your current installation is newer or older than Android 13, please upgrade or downgrade to the required version before proceeding (guides can be found on the internet!).
Unlocking the bootloaderNote: The steps below only need to be run once per device. They require a machine running Windows 7 or newer.
Warning: Unlocking the bootloader will erase all data on your device! Before proceeding, ensure the data you would like to retain is backed up to your PC and/or your Google account, or equivalent. Please note that OEM backup solutions like Samsung and Motorola backup may not be accessible from LineageOS once installed.
Tip: It is highly recommended to have the latest official MIUI stable package installed on the device, before proceeding with unlock.
Create a Mi account on Xiaomi’s website. Beware that one account is only allowed to unlock one unique device every 30 days.
Add a phone number to your Mi account.
Insert a SIM into your phone.
Enable developer options in Settings > About Phone by repeatedly tapping MIUI Version.
Link the device to your Mi account in Settings > Additional settings > Developer options > Mi Unlock status.
Download the Mi Unlock app (Windows is required to run the app).
Run the Mi Unlock app and follow the instructions provided by the app. It may tell you that you have to wait up to 30 days. If it does so, please wait the quoted amount of time before continuing to the next step!
After device and Mi account are successfully verified, the bootloader should be unlocked.
Since the device resets completely, you will need to re-enable USB debugging to continue.
Flashing additional partitionsWarning: This platform requires additional partitions to be flashed for recovery to work properly, the process to do so is described below.
Download the following files from the download section below.
boot.img
dtbo.img
vendor_boot.img
Power off the device, and boot it into bootloader mode:
With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
Flash the downloaded image files to your device by typing (replace <...> with the actual filenames!):
fastboot flash boot <boot>.img
fastboot flash dtbo <dtbo>.img
fastboot flash vendor_boot <vendor_boot>.img
Booting a custom recovery using fastboot
Download Lineage Recovery from the download section below. Simply download the latest recovery file, named recovery.img.
Important: Other recoveries may not work for installation or updates. We strongly recommend to use the one linked above!
Connect your device to your PC via USB if it isn’t already.
If your device isn’t already in fastboot mode, on the computer, open a command prompt (on Windows) or terminal (on Linux or macOS) window, and type:
adb reboot bootloader
You can also boot into fastboot mode via a key combination:
With the device powered off, hold Volume Down + Power. Keep holding both buttons until the word “FASTBOOT” appears on the screen, then release.
Once the device is in fastboot mode, verify your PC finds it by typing:
fastboot devices
If you don’t get any output or an error:
on Windows: make sure the device appears in the device manager without a triangle. Try other drivers until the command above works!
on Linux or macOS: If you see no permissions fastboot try running fastboot as root. When the output is empty, check your USB cable (preferably use a USB Type-A 2.0 one or a USB hub) and port!
Tip: Some devices have buggy USB support while in bootloader mode, if you see fastboot hanging with no output when using commands such as fastboot getvar ..., fastboot boot ..., fastboot flash ... you may want to try a different USB port (preferably a USB Type-A 2.0 one) or a USB hub.
Flash a recovery on your device by typing (replace <recovery_filename> with the actual filename!):
fastboot flash recovery <recovery_filename>.img
Note: Outdated fastboot releases dropped legacy A/B support, so it might attempt to flash to recovery__a /recovery__b rather than recovery_a / recovery_b if you try to flash recovery. In this case, you must update fastboot to a release newer than or equal to 31.0.2. Alternatively, you can manually specify which slot to flash to based on what slot fastboot failed to flash to. For example, if fastboot fails to flash to recovery__a, you must flash to recovery_a.
Now reboot into recovery to verify the installation.
With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
Note: If your recovery does not show the LineageOS logo, you accidentally booted into the wrong recovery. Please start at the top of this section!
Installing LineageOS from recovery
Download the LineageOS installation package from the download section below that you would like to install or build the package yourself.
(Optionally): If you want to install an application package add-on such as Google Apps (use the arm64 architecture), please read and follow the instructions on Google Apps page
If you are not in recovery, reboot into recovery:
With the device powered off, hold Volume Up + Power. Keep holding both buttons until the “MI” logo appears on the screen, then release.
Now tap Factory Reset, then Format data / factory reset and continue with the formatting process. This will remove encryption and delete all files stored in the internal storage.
Return to the main menu.
旁加载 LineageOS .zip 包,但在阅读/遵循其余说明之前不要重新启动 !
在设备上,选择“应用更新”,然后选择“从 ADB 应用”以开始旁加载。
在主机上,使用 adb sideload filename.zip 旁加载包。
提示: 通常情况下,adb 会报告 Total xfer: 1.00x,但在某些情况下,即使进程成功,输出也会停止在 47% 处并报告 adb: failed to read command: Success。在某些情况下,它会报告 adb: failed to read command: No error 或 adb: failed to read command: Undefined error: 0 这也可以。
可以了,好了!成功安装所有内容后,您现在可以首次重新启动设备进入操作系统!
单击屏幕左上角的后退箭头,然后单击“立即重新启动系统”。
注意: 首次启动通常不会超过 15 分钟,具体取决于设备。如果需要更长的时间,您可能错过了某个步骤,否则请随时寻求帮助。
下载链接:
版本在此处发布:GitHub 上的版本
警告:这些版本包括针对我拥有的其他设备的构建,请确保从小米 12 的版本下载文件,例如:“ LineageOS 20.0 forxiaomi 2201122G (zeus) ”
注意:有两个变体不一定同时发布。Vanilla 版本是纯粹的 LineageOS,无需额外的应用程序,而 GMS 版本则包含 Google 服务。GMS 版本对于 github 版本来说太大,因此它们将被上传到Google Drive 上的此共享文件夹
源代码
请阅读这篇有关小米 12 系列 OSS 内核的帖子。
所有内核相关的源代码都可以在这里找到。
LineageOS 的设备树可以在这里找到。
对于所有与开发相关的问题,请参阅此主题。
捐赠支持发展:
通过 PayPal 捐赠给 ArianK16a
通过 PayPal 向 LineageOS 捐款
Click to expand...
Click to collapse
good work!
Ghesun said:
Beberapa masalah sejauh ini:
AptX Adaptive bluetooth codec sepertinya tidak ada sama sekali
Peramban Berani (bisa juga peramban berbasis krom apa pun tetapi tidak yakin) membeku sesekali dan benar-benar mati dengan Rantai Sinkronisasi aktif (baca juga ini mungkin masalah Magisk jadi ini mungkin tidak terkait)
Ada beberapa gagap dan lonjakan lag di sana-sini saat layar beralih ke 120Hz
Tidak ada cara untuk mengubah resolusi ke 1080p untuk menghemat masa pakai baterai
Either way, kerja luar biasa dan terima kasih untuk semua
Click to expand...
Click to collapse
Root via magisk