How to install Gsi on S20 fe 5G (HavocOS,PixelExperience+,Aosp,Lineage and more!!!) - Samsung Galaxy S20 FE Guides, News, & Discussion

First You Need an unlocked bootloader there are many guides to unlock the bootloader on Samsung devices I recommend this one Unlock Guide
Once you have an unlocked bootloader we can proceed
1: Flash Twrp if you don't have it already: Snapdragon Twrp Or Exynos Twrp Download The Twrp For your device Model And Also Download Vbmeta Disabled, Reboot Into Download Mode By Pressing Volume Up And Volume Down When Booting The device
Download Odin and Samsung Drivers On your Computer Odin And Samsung Drivers
After You have Odin And Samsung Drivers, Open Odin and On the AP Section Select The Twrp You downloaded And On the Userdata Section Select The Vbmeta Disabled You Downloaded , GO TO OPTIONS AND DISABLE AUTO REBOOT!!!, Press The Start Button and once it Finishes, You Should Press The Power Button And Volume Down And When It Starts To Reboot Press The Volume UP And Power Button If you Did it right you Should Boot Into Twrp
2:
On Twrp Go to Wipe > Format Data > Type Yes (This will WIPE ALL DATA ON THE DEVICE!!!)
Then Go to Reboot > Recovery
After It reboots Go to Reboot > Fastboot
Download Adb On your Computer Adb Download And extract it into a folder, Then Press Shift On your Keyboard And Right Click At the same time Select The "Open Command Prompt Here" Option, You should see A command Prompt
Now You need To Download The Gsi You want to flash, (You can Find Many Gsi In the s20 fe Gsi's Group Here) Or you can Also Check Treble Gsi's Group
(Roms Based on Older PHH Patches than v303 Will not work)
Once You have the Gsi you want to flash Copy it into the adb folder And Also RENAME THE FILE to sys.img
Now On the Command Prompt You can Run > fastboot flash system sys.img
(If You Cant Get Your Drivers Working i recommend Trying ubuntu Because it has Drivers Pre Installed)
If you Dont get any errors then you are Good Reboot your device and you should see the gsi is installed
Fixing Rounded Corners:
Reboot Into Twrp And Open Adb On your computer
Download The Overlay and place it in the adb folder
Run ( adb shell mount /dev/block/dm-1 /vendor )
Then Run ( adb shell rm /vendor/overlay/framework-res__auto_generated_rro_vendor.apk )
Then ( adb push treble-overlay-samsung-rq8.apk /vendor/overlay )
Bootloop Problems:
You may have a bootloop If you are using A newer Vendor
This Was Tested On the one Ui 3.0 Vendor I Recommend Downgrading to 3.0 Vendor If you can
!!! I am not sure if its working on one UI 3.1 Vendor !!!
(Vendor is the one UI version you have)
Magisk:
To flash magisk you need some special Instructions, !!!Without them flashing magisk will result in a bootloop!!!
They are a bit complicated and you can find them Here (I don't recommend Using Magisk With Gsi's)
Issues?
Current issues are: 60fps Video Recording, Fingerprint Sensor And MTP
Fingerprint Might be fixed On android 12!!!
IF YOU ENCOUNTER PROBLEMS JOIN THE S20 FE HELP GROUP Here
(THIS WAS ALL TESTED ON SNAPDRAGON I AM NOT SURE IF IT WORKS ON EXYNOS)

I haven't clicked to look but is the magisk for GSIs that thing where you have to reboot from recovery to activate root ?
I suppose if it is the phone still wouldn't pass SafetyNet would it ?

3mel said:
I haven't clicked to look but is the magisk for GSIs that thing where you have to reboot from recovery to activate root ?
I suppose if it is the phone still wouldn't pass SafetyNet would it ?
Click to expand...
Click to collapse
no, you can fix magisk but its a bit hard, And yes you can pass safetynet with magisk, Some roms like pe+ Can pass safetynet without it tho

If only the fingerprint sensor worked on GSI ROMS. I would have definitely went for it.
S20 FE 5G rooted on android 11 (one ui 3.0)

Kolyei said:
If only the fingerprint sensor worked on GSI ROMS. I would have definitely went for it.
S20 FE 5G rooted on android 11 (one ui 3.0)
Click to expand...
Click to collapse
that's down to Samsung doing the bare minimum to qualify for treble compatibility, same as the vendor layers of most OEMs. only Sony went the extra mile to actually make sure their hardware would work apparently.

3mel said:
that's down to Samsung doing the bare minimum to qualify for treble compatibility, same as the vendor layers of most OEMs. only Sony went the extra mile to actually make sure their hardware would work apparently.
Click to expand...
Click to collapse
Not really, it has been confirmed that android 12 will add official support for underscreen scanners, so GSI devs aren't wasting any time on fixing FOD.

Doomer231 said:
Not really, it has been confirmed that android 12 will add official support for underscreen scanners, so GSI devs aren't wasting any time on fixing FOD.
Click to expand...
Click to collapse
any hardware OEMs add has supposed to have been functional for the last 3 years. they control their vendor layers which should work seamlessly with the OS layer. I'm paraphrasing the xda page that introduces treble and Phhuson.
OEMs have little interest in making treble work as it does nothing for them (they think). if google support was the reason 60fps would work for video recording but it doesn't.

Doomer231 said:
Not really, it has been confirmed that android 12 will add official support for underscreen scanners, so GSI devs aren't wasting any time on fixing FOD.
Click to expand...
Click to collapse
it was android 11 that broke it lol, on a10 it was fine

QUESTION for the GSI users out there...
do you have any of the screen juddering while trying to scroll or touch screen dead spots that occasionally happen ? any ghost touch issues, I suppose with the caveat of if you had them before ?

3mel said:
QUESTION for the GSI users out there...
do you have any of the screen juddering while trying to scroll or touch screen dead spots that occasionally happen ? any ghost touch issues, I suppose with the caveat of if you had them before ?
Click to expand...
Click to collapse
i never had any issues in one ui and i also dont on gsi

Does doing this guide trip Knox on the phone?

pOLLYpOCKET said:
Does doing this guide trip Knox on the phone?
Click to expand...
Click to collapse
yes, if you unlock your bootloader it trips knox

how can i found vbmate file for fold 2 ?

rowihel2012 said:
how can i found vbmate file for fold 2 ?
Click to expand...
Click to collapse
Do not install a gsi on the fold, it will be horrible as stock android has bad support for folding devices

overlay commands not functional (gives file not found error framework-res__auto_generated_rro_vendor.apk)

luisf0202 said:
overlay commands not functional (gives file not found error framework-res__auto_generated_rro_vendor.apk)
Click to expand...
Click to collapse
sounds like a question for the mighty phhuson and friends

luisf0202 said:
overlay commands not functional (gives file not found error framework-res__auto_generated_rro_vendor.apk)
Click to expand...
Click to collapse
try this instead adb shell rm /vendor/overlay/framework-res__auto_generated_rro_vendor.apk

For me fixing round corners disabled nav buttons and when choosing gestures as nav keys only swipe up for home gesture works back button is broken

are you using a 3rd party launcher ? navigation gestures are or were supposedly broken on 3rd party launchers regardless of which rom you're running.

no, im using quick step. But even with gestures disabled i dont have any buttons

Related

Android Pie / AOSP 9.0 / Phh-Treble

Separate thread to alleviate confusion between the two on-going Pie builds.
phhusson said:
WARNING: You'll most probably loose ALL your data, and might break your phone. Please use with extreme caution!
The goal of this ROM is to provide maximum hardware compatibility inside a Generic System Image.
No feature will be added. This will ease forward porting to new Android versions, which is the very goal of Project Treble
My hope is that other ROM developers will use this ROM as a basis to construct more advanced ROM.
What doesn't work:
- Hotspot
What works:
- Pretty much everything else
- Android 8.0 and Android 8.1 vendor
ChangeLog:
v102 (2018-08-22):
- Fix boot on some MTK devices
- Fix boot on some Huawei devices
- Fix boot on some community-ported devices
- Fix screen rotation on some devices
- Fix WiFi and fingerprint sensor on various devices
- Fix S9 dead-touchscreen-on-resume issue
Click to expand...
Click to collapse
New builds will be posted here.​
Install instructions for Vince
1. Install a vendor image
You can use the Cardinal AOSP vendor image here (includes boot.img and vendor only).
Other vendor images can be used, just flash this first to get a vendor partition and a patched bootloader. The stock MIUI bootloader will not boot this.
2. Install system.img to /system. Use 7Z or RAR to unpack system-arm64-aonly-vanilla-nosu.img.xz.
3. Reboot recovery
4. Install GApps (Aroma suggested) and optionally a kernel (see footer).
5. Install Magisk
6. Boot and follow setup
Enabling Google Camera functionality
Camera2API (flash via TWRP):
https://forum.xda-developers.com/redmi-note-5/themes/mod-enable-camera2-api-t3756070
Gcam (install as normal):
https://www.celsoazevedo.com/files/android/google-camera/dev-saneklic/
60fps fix (flash via Magisk):
https://forum.xda-developers.com/showpost.php?p=76084586&postcount=2
Settings crash fix (from PPR1 Thread):
https://drive.google.com/file/d/1YNxEuldCgIQzxOqp8_4Mwd--rf2uSy_1/view​
Optional Prep (if you're coming from other ROMs);
Backup your internal storage, this will wipe it.
1. Download Fastboot Images from here - http://en.miui.com/a-234.html, Global Developer direct link is here.
Extract to C:/vince and DELETE all files with suffix 'lock' and 'lock_crc'
2. HOLD VOL- and POWER for fastboot, open MiFlash and click flash
nb. For connectivity issues install PC Suite
2a. hold VOL- nearing completion (once userdata.img flashing starts on status).
2b. Open ADB and flash a non-treble recovery. Assuming you place this in C:/vinceimg and rename the file to recovery.img, the command would be:
Fastboot flash recovery C:/vinceimg/recovery.img
2c: HOLD VOL+ and POWER for recovery
3. In the recovery, click the install tab, select a treble recovery zip. The recovery will reboot..
4. Optionally flash splash.zip to remove 'Unlocked' text on boot
5. Click the Wipe tab, choose Format data and type "yes", reboot the recovery and then go to Advanced Wipe and choose DALVIK/SYSTEM/INTERNAL/DATA/CACHE and reboot recovery again. These steps may be superfluous.
A treble kernel is recommended (if you install this later you will need to reflash magisk);
[KERNEL][OFFICIAL][GCC][8.x] Dark Ages Segundo
[Kernel][8.1.0][UberGCC] LH Kernel Official Builds for Vince
There are some further kernels not listed on XDA in the PPR1 thread here.
The system UI pull down is bright White, any fix for this. Other than that a great ROM.
kicker63 said:
The system UI pull down is bright White, any fix for this. Other than that a great ROM.
Click to expand...
Click to collapse
You can try the Substratum beta with a dark theme but you need to build (no enable), restart, then enable. Though it didn't work for me.
Google has intentionally blocked theming and removed the dark elements of the UI in Pie, so they're busy trying to do an evil and just want to blind people.
any suggested vendor beside cardinal?
any bug?
M. . said:
any bug?
Click to expand...
Click to collapse
afaik, volte, goodix fp (fpc scanner work), tethering hotspot. anything else work
M. . said:
any bug?
Click to expand...
Click to collapse
Working;
LTE (Data, calls, SMS), WiFi and BT: incl. VPN, GPS
Front/Back Cameras (w/all features after fixes)
Fingerprint, Quick Charge
Speakers/Microphone
Sensors (tested Accelerometer, Light, Gravity, Magnetic, Gyroscope, Proximity, Orientation, Linear Acceleration, Step Counter, Rotation)
Device features not working:
Tethering
Bugs:
The usual vendor error on boot
Some Bluetooth service FCs; otherwise works fine
YouTube may stutter at 1440p60 or above
Background WiFi join isn't as quick as Oreo ROMs
Its worthwhile installing a kernel so CPUs hotplug properly
EriecTan said:
any suggested vendor beside cardinal?
Click to expand...
Click to collapse
You can try the DotOS vendor but it ain't working when hot-swapped out, possibly because it needs installing from scratch.
EriecTan said:
afaik, volte, goodix fp (fpc scanner work), tethering hotspot. anything else work
Click to expand...
Click to collapse
can i use the fp patch from ppr1?
M. . said:
can i use the fp patch from ppr1?
Click to expand...
Click to collapse
No need of doing so because FP will work without that fix
ibbi.ir7 said:
No need of doing so because FP will work without that fix
Click to expand...
Click to collapse
but i have goodix fp
M. . said:
but i have goodix fp
Click to expand...
Click to collapse
Yes, you should be able to use that fine, its just adding libs to the vendor partition so I don't see it causing issues with your install. Let me know if it works for you
Edit: apparently goodix works anyway.
On a side note you might be able to copy further libs/files over from other Oreo vendor partition images. But backup your existing vendor partition in TWRP first in case files you drop in will v. likely mess things up.
Just use Android Image Kitchen (Play Store) to unpack a vendor.img file.
Can't guarantee the libs will be compatible but if you find specific drivers working, or relevant prop lines that are missing in the OP vendor then you might be able to get a head start on bug-free Pie.
Tried encrypting the phone and it's it's not working, the phone just restarts. Is this a rom bug or a kernel specific one?
droident said:
Yes, you should be able to use that fine, its just adding libs to the vendor partition so I don't see it causing issues with your install. Let me know if it works for you
On a side note you might be able to copy further libs/files over from other Oreo vendor partition images. But backup your existing vendor partition in TWRP first in case files you drop in cause the boot process to halt.
Just use Android Image Kitchen (Play Store) to unpack a vendor.img file. To view an existing vendor partition mount in TWRP and view hidden files under file manager.
Can't guarantee the libs will be compatible but if you find specific drivers working, or relevant prop lines that are missing in the OP vendor then you might be able to get a head start on bug-free Pie. I'm aware there's some missing BT libs in the OP vendor - might be causing the services FC.
Click to expand...
Click to collapse
Hi there,I am come back,and I found it doesn't need fp patcher although it is goodix
---------- Post added at 12:56 PM ---------- Previous post was at 12:24 PM ----------
The screen is too bright and can't makes it more duck
kirby22 said:
Tried encrypting the phone and it's it's not working, the phone just restarts. Is this a rom bug or a kernel specific one?
Click to expand...
Click to collapse
Does it restart in TWRP? I.E. freeze and reboot? or bootloop?
You could try flashing a different recovery and kernel to eliminate those.
M. . said:
Hi there,I am come back,and I found it doesn't need fp patcher although it is goodix
---------- Post added at 12:56 PM ---------- Previous post was at 12:24 PM ----------
The screen is too bright and can't makes it more duck
Click to expand...
Click to collapse
Shame I wish my screen was more duck.
I'll look into it, I know phh said framework-res.apk might need to be tailored for each device so I'll post it in the main phh thread.
droident said:
Does it restart in TWRP? I.E. freeze and reboot? or bootloop?
Click to expand...
Click to collapse
No freeze. Phone just restarts to encrypt but nothing happens. It just boots right back up.
kirby22 said:
No freeze. Phone just restarts to encrypt but nothing happens. It just boots right back up.
Click to expand...
Click to collapse
I've looked into it and it seems hardware encryption isn't supported yet
Might be worth putting in a request here:
https://github.com/phhusson/treble_experimentations/issues?page=1&q=is:issue+is:open
kirby22 said:
No freeze. Phone just restarts to encrypt but nothing happens. It just boots right back up.
Click to expand...
Click to collapse
I'm sorry for my poor English. I'm not from a English Native language country.
I have same promble with you.
And I DON'T FLASH Magisk.
Solve it.
Enjoy~
M. . said:
but i have goodix fp
Click to expand...
Click to collapse
I also have goodfix but it works without FP fix
Guys, I've seen some zip files thrown around on both mido and whyred groups built to enable DT2W on vendors where its turned off, and I'm wondering if it would be possible for us to make such zip for vince, for vendor images with DT2W disabled.
ibbi.ir7 said:
I also have goodfix but it works without FP fix
Click to expand...
Click to collapse
yes,it also works for me without FP fix

[ROM][UNOFFICIAL] crDroidAndroid-10.0

Source code: (Unmodified)
Device tree: https://github.com/DevelopedInside/android_device_wileyfox_marmite
Kernel: https://github.com/DevelopedInside/android_kernel_wileyfox_msm8937
Vendor: https://github.com/DevelopedInside/proprietary_vendor_wileyfox
New Rom
http://www.mediafire.com/file/dv69tdgx9r99e3f/crDroidAndroid-9.0-20200219-marmite-v5.11.zip
crDroidAndroid-9.0-20200312-marmite-v5.12
New Rom
March security update
lineageOS String updated to 5.12
http://www.mediafire.com/file/gejbk30o1lev8vs/crDroidAndroid-9.0-20200312-marmite-v5.12.zip/file
Robin..what it's working? And what not?
Tnx :All it's OK!
I find a bug//
in Whatsapp its having a problem with recording an audio message// ??*
ciobaneasca said:
I find a bug//
in Whatsapp its having a problem with recording an audio message// ??*
Click to expand...
Click to collapse
Suppect its a Whatsapp problem (Facebook you know) Try a lineage 16.0 rom and see if it works there?
robin0800 said:
Suppect its a Whatsapp problem (Facebook you know) Try a lineage 16.0 rom and see if it works there?
Click to expand...
Click to collapse
I think so too...
I found a 2 bug..with Google pixel launcher..it's crushing system ui on first load after restart device..when I press button to see which apss are opened..
ciobaneasca said:
I think so too...
I found a 2 bug..with Google pixel launcher..it's crushing system ui on first load after restart device..and press button to see which apss are opened..
Click to expand...
Click to collapse
I will build a linage 16.0 rom and upload it probably tomorrow.
robin0800 said:
I will build a linage 16.0 rom and upload it probably tomorrow.
Click to expand...
Click to collapse
An clean build of Los?
This is version of Pixel Launcher..
/lineage-16.0-20200322-UNOFFICIAL-marmit
Not the right pla\ce but here it is.
http://www.mediafire.com/file/ails9jgqwbr0kcq/lineage-16.0-20200322-UNOFFICIAL-marmite.zip/file
robin0800 said:
Not the right pla\ce but here it is.
http://www.mediafire.com/file/ails9jgqwbr0kcq/lineage-16.0-20200322-UNOFFICIAL-marmite.zip/file
Click to expand...
Click to collapse
You test it? Or just compiled?
ciobaneasca said:
You test it? Or just compiled?
Click to expand...
Click to collapse
I tested it.... Whatsapp still does not record.
But yes I just compiled I am not a developer
robin0800 said:
I tested it.... Whatsapp still does not record.
But yes I just compiled I am not a developer
Click to expand...
Click to collapse
OK..tnx for information..
Then...I'm not installing it.. Because I have cR Droid..with the same bugs..
Sow..Robin..what we have? 2 Roms with the same bugs?
1). Bug with the Sound ( WhatsApp no rec. Sound messages, and Distorted sound in phone when you make a call in speaker mode)
2). Bug with Pixel Launcher ..crushing system Ui ( When press button to see history off opened apps)
3). Battery drain.
4). Hot device when watching video on youtube or facebook.
Who can fix that..??
crDroidAndroid-9.0-20200426-marmite-v5.12
New Rom With April Security Patch
https://www.mediafire.com/file/f0xevve8oew6f99/crDroidAndroid-9.0-20200426-marmite-v5.12.zip/file
robin0800 said:
New Rom With April Security Patch
https://www.mediafire.com/file/f0xevve8oew6f99/crDroidAndroid-9.0-20200426-marmite-v5.12.zip/file
Click to expand...
Click to collapse
@robin0800 will you be making an update to the lineage 16 ROM or was that a one off? thanks.
crDroidAndroid-9.0-20200511-marmite-v5.12
New Rom with May security patch
http://www.mediafire.com/file/xmuq9irqi3tat38/crDroidAndroid-9.0-20200511-marmite-v5.12.zip/file
Rom review
robin0800 said:
New Rom with May security patch
Selinux doesn't work but o well never really care about whether it is enforced or disabled much anyway I did once manage to get selinux working through prop edits... or once using an app but fingerprint stopped working
Most other things seems to be working fine which is great
Official crdroid for Marmite has same issue but it is older version
Sometimes the torch stop working reboot fixes it and restarting system ui crashes the entire os repeatedly so this requires a reboot using the actual buttons
This is probably the best Android 9 rom for the swift 2 so much cool functionality and it would be sik to use a stable crdroid 6 Marmite rom
Click to expand...
Click to collapse
this phone its so old, and i play again nice, thank for dev
how install the magisk ? thank
Allow OEM unlocking from developer options first
Cedoresti said:
this phone its so old, and i play again nice, thank for dev
how install the magisk ? thank
Click to expand...
Click to collapse
READ EVERYTHING FIRST NOT IN CHRONOLOGICAL ORDER Assuming you're on marmite you will have to go to XDA and go on Wileyfox Swift 2 ROMs, Kernels, Recoveries, & Other Development then click on lineage 15.1 rom download TWRP 3.2.3 from the link near to it this TWRP is the best one coz it can read the internal storage official TWRP is 3.3.1 but doesn't support internal storage so its not good once you have done that go to magisk.me and then download the magisk 20.4 flashabke zip file. Then next part is annoyimg. You will need a pc there is an app on the phone but i have never tested it and you probably not gonna have 2 phones in he first place maybe a tablet but anyway you will have download minimal adb and fastboot from any site that you think is appropriate your phones drivers should automatically install unless you have a bad os or something if they don't you will need to look into how to find your phones driver with research but you may not find them even after doing that anyway so assuming you have minimal adb and fastboot running and your phone s drivers are installed to confirm whether it has worked type in adb devices and press enter your device should come up as connected also I forgot to mention you need to on to about phone on settings system on build number a few times to unlock developer options the go to settings system developer options Enable Android debugging back to before once you have typed in adb devices a popup may come in your phone press yes allow in future option if you trust the device you're using once you press yes your device is usable you need to enable USB mass storage and copy twrp to your computer now for Windows 10 as I've only done this on windows 10 press on start and locate minimal adb and fastboot right click on it and press open file location if it comes up with the shortcut which I'm guessing it has right click on minimal adb shortcut and then open file location you will need to copy the TWRP file to there and rename the TWRP IMG to twrp.img go back to minimal adb and fastboot and also put your phone in fastboot mode now I think as soon as you turn your phone off it should go to fastboot mode if not then search how to do it coz I can't be asked writing every detail. Your phone will be factory data reset in the process this is for data security we'll come back to that later you may lose your warranty but that's not a problem if you know how to take care of your phone now on minimal and and fastboot type in fastboot oem unlock you should backup your data first go on settings system backup assuming you have Google services and play installed which I'm pretty sure you do all your data will be backed up and restored once you restore from cloud on the setup process after resetting coz of unlocked bootloader. Once you have accepted the bootloader unlock and it has been successfully unlocked turn if the device plug it in computer and type in on minimal
ADB and fastboot type in fastboot flash recovery
twrp.img now if you copied the files
In the correct directory as described before the recovery should have installed in a few seconds one problem is at the start the recovery might be getting replaced by stock recovery but after entering it a few times using power button and volume down button simultaneously should take you to the recovery you are going to see a message on your phone saying bootloader unlocked blah blah blah wait a few seconds or press power button and you will be in the recovery now your device may be encrypted type in your phone password/pin and you will be able to read internal storage press on select storage internal storage and press on download folder and then press on the magisk file you downloaded the swipe to install and you are installing root using magisk you should keep your device encrypted for security purposes now that you have twrp it can be used to bypass your screen unlock unless you have encrypted your device my marmite device encrypted the device automatically on the stock operating system another thing is that if you want to use your banking app go onto settings hide magisk manager option press ok and then the name of the magisk manager app should now be manager also go back to the settings and snake magisk hide option then restart the app and then go to the menu icon and magisk hide and then press in the app you want access to it should now be ticked and root should be hidden from the app my guide isn't perfectly layed but should have the important information you need know was writing it from the top of my head without punctuation:good:
i have ready 3.2.3-0. ONLY 3.2.2 ITS OK ?

[ROM][OFFICIAL][Pie][Dipper][PORT]Ubuntu Touch port for Xiaomi Mi 8

View attachment 5376913
What is it? What is Ubuntu Touch?
Ubuntu Touch, as comes from naming, is Ubuntu managed to run on phone.
Well, Canonical abandoned it, so community organization, UBports, now develops, maintains, and ports UT to new devices.
And this is what the thread is about. The amount of devices able to run UT was 63(as written on website at the time of writing this post). But now it is 64 devices.
The 64th port to Xiaomi Mi 8.​So, lets talk now what works, and what is not(you will also be able to see that on website, as soon as merge request will be accepted).
​What works:
Actors​
Manual brightness(auto seems not supported by UT, idk)​
Notification LED​
Vibration​
Torchlight​
Camera​
Flashlight​
Photo​
Video​
Switch between front and rear cameras​
Cellular​
Carrier info​
Calls​
SMS​
Audio routings (switching between main speaker, and phone speakers)​
Volume control​
Misc
Battery percentage
Online charging(while phone is on, or in sleep/standby state)
UBports recovery
Network
WiFi(2.4GHz, 5GHz)
Bluetooth
Hotspot(partially, seems that 5G is not supported)
Flight Mode
Sensors
Fingerpring
GPS
Rotation
Touchscreen(ofc, otherwise I would write this post)
Sound
Microphone
Earphones
Loudspeaker
Volume Control
USB
ADB
MTP
Several things, are not tested, such as Wireless Display, NFC, SIM PIN Unlock, MMS, Dual SIM.
Non working features are Offline Charging, Auto-brightness, Proximity Sensor(you need to click the Power Button, that won't stop the call).
Big thanks to TheKit who helped me with the port.
TheKit's Gitlab and UBports forum profile.
Right now, config for UBports Installer is waiting approval of pull request, and merge request for devices.ubuntu-touch.io is still not approved, you will have to do everything manually. UBports Installer config PR finally merged, but only Global versions are supported, since firmware files that are flashed by Installer are for Global. If you do install, be sure to flash vendor and firmware packages for your variant after.
WARNING! YOU MUST HAVE UNLOCKED BOOTLOADER! EVERY THING YOU DO, YOU DO ON YOUR RISK, IF YOU BRICKED DEVICE, THATS YOUR FAULT, NOT MY! I DO NOT TAKE ANY RESPONSIBILITY FOR YOUR BRICKED DEVICE!
Preparations before installation.
Flash TWRP recovery
You need to download and flash stock firmware and vendor from Android 9, MIUI V11.0.6.0.PEAMIXM(be aware that this Vendor+Fw is for Global, if your Device is Chinese or Russian variant, or any other, flash vendor package according your phone variant). It is compressed into ZIP file, so you will have to flash it though TWRP. Do not use adb sideload, push file to any directory you want, and install it from phone.
Download boot.img, system.img, recovery.img from here.
In TWRP go to "Wipe" ==> "Format Data" ==> Type "yes" ==> Enter. Then go to Reboot ==> Recovery. After restarted. Again go to Wipe ==> Advanced Wipe, and select all partition except USB-OTG
Now we have two ways of installation, from TWRP, and from Fastboot.
TWRP
On PC:
Code:
$ adb push system.img /tmp
$ adb push boot.img /tmp/
Now go to "Install"
Get to /tmp/ directory
"Install Image"
Flash boot.img to Boot partition, system.img to System.
Then reboot to system.
If system works, reboot to TWRP again and push recovery.img to /tmp/, then flash it to Recovery partition.
Fastboot method:
Code:
#Simple as that
$ fastboot flash boot boot.img
$ fastboot flash system system.img
$ fastboot flash recovery recovery.img
#Flash recovery only after you are sure system works.
Or you can just install a installable zip archive I've recently made. All my builds will be hosted on GitHub Releases on my repo. New builds will come by every new official OTA release. UBports recovery is not included, installation goes proceeds from TWRP, install just as simple as custom ROM installation. Btw, do you want me to add notch patches to system image, so it doesn't look awkward?
Note: this zip is not signed, so disable signature verification before installing, or installation will fail.
Optionally you can adjust your panel so it doesn't look weird. Rn idk how to move panel below the notch(display cutout, I hate Apple for that). It moves buttons in Panel below, and adjusts height of the panel. This repo will do everything for you. Just download it to device. And run apply-notch-hax.sh. It will automatically find device name, apply patches, and restart Unity.
Note: run the script as standard user, not root.
Note2: if you get bootloop, wipe system, format data, restart bootloader, flash everything again, but before rebooting to system try flashing SELinux permissiver. And don't flash Magisk, it's useless, and may destroy your system.
Device source: Gitlab
Kernel source: Gitlab
Gitlab CI build artifacts: Gitlab
Join Telegram support group if you need any help.
See all supported devices at official website.
P.S. Since you have to use fastboot, and UBports Installer uses fastboot, there may be some difficulties for Ryzen CPU users. I attached zip file with executable (.bat file). It will allow you use fastboot with USB 3.x + Ryzen. Unpack it. And run .bat file as admin. Reboot. Voila, fastboot works as should.
Linux users should either use another laptop with Intel CPU, or flash from Windows, or use USB 2.0 hub.
P.S.S. Ok, I managed to get GitHub CI to work, so now if any of you want to test fixes and new features, head to this GitHub repo, and download artifacts from "Make OTA images"(in Actions tab), and flash them using fastboot.
Amazing work! I've always wanted to port UBTouch to Mi 8 but I couldn't get WiFi and mobile data to work on my attempts. As my primary phone, I needed it to be online as much as possible. Really happy to be able to use it on our devices
I've noticed an issue (I haven't managed to recreate this however):
- The OS can't switch between audio outputs, for example I need to restart my phone to hear sounds from loudspeaker after making a phone call. Please let me know if there's a workaround for this issue.
I'll be looking out for more issues to report. Once again, thanks for this port it's amazing
someone plz port Ubuntu to poco f1 too
gamerlucky said:
someone plz port Ubuntu to poco f1 too
Click to expand...
Click to collapse
It is already ported, a long before Mi 8
@itagizade have you tried waydroid on this?
nSKN3i said:
@itagizade have you tried waydroid on this?
Click to expand...
Click to collapse
No still not.
this amazing work. i have ran some x11 app on my phone,jt works. now i can say hava a pc in my pocket . one problem i found is system partion size too small (only 3g), this not enough if i want install more linux package lije chrome firefox
I updated download link, so if you have already flashed everything, I suggest you to flash a new recovery, as previous one, identified device as Mi MIX 3.
it is still complex for my level of knowledge to install this rom on my Mi 8 and it is with great joy that we have a port like this from Ubuntu Touch and that in the future it will be easier to install and maybe other ports as well as SailfishOS in the menu. Mi 8 great job Dev.
itagizade said:
It is already ported, a long before Mi 8
Click to expand...
Click to collapse
link please
gamerlucky said:
link please
Click to expand...
Click to collapse
See on devices.ubuntu-touch.io.
tried it out and worked great, glad to see something different, keep up the excellent work bro!
hey i was wondering about file system can we use f2fs ?
I tried installing apk files but getting error
Also notch fix gives me this error in terminal
EDIT: nevermind the apk i forgot to run anbox-tool install
EDIT2: nevermind notch fix i just pushed the file to downloads and run sh command
Amazing work! It is the fastest rom I have ever installed! The SIM PIN unlock works well and the offline charging partially (approximately, five minutes after connecting the charger). I hope NFC works, too. In the future, it would be nice if apply-notch-hax.sh was fixed (error, line 57). Anyway, thank you for porting and providing this rom!
For Waydroid support, there are some instructions here. To start the container service, use the following command:
Code:
sudo waydroid container start
Advanced Gears said:
Amazing work! It is the fastest rom I have ever installed! The SIM PIN unlock works well and the offline charging partially (approximately, five minutes after connecting the charger). I hope NFC works, too. In the future, it would be nice if apply-notch-hax.sh was fixed (error, line 57). Anyway, thank you for porting and providing this rom!
For Waydroid support, there are some instructions here. To start the container service, use the following command:
Code:
sudo waydroid container start
Click to expand...
Click to collapse
Glad you enjoy it. Right now I'm a little busy, but asap I will continue the work on this. Gotta make it daily-driver ready.
About error with `apply-notch-hax.sh`, other people have successfully used that script. Could you please specify the error?
The touch has been dead since I flash This rom
MilkywayOpenSource said:
The touch has been dead since I flash This rom
Click to expand...
Click to collapse
You mean Touchscreen is not working? Did you change you stock panel?
No,
MilkywayOpenSource said:
No,
Click to expand...
Click to collapse
Is your device Chinese version, or any other that Global?
It is global and after I install Ubuntu touch the screen never response to touch even in twrp

How To Guide [Guide] Xiaomi Mi Pad 5 MIUI12/13 ROOT Step-by-step - Pass SafetyNet, Widevine L1

Everything you do, you do at your own risk. I'm not responsible for all damages, this can also lead to loss of warranty.
Hi,
Probably many of you know how to do a Magisk install without TWRP, but this guide is for people who don't know and don't want to mess things up.
I will try to show you step by step how to do it.
Many thanks to:
kdrag0n
topjohnwu
Leave them a nice feedback
!!! Before we start make sure your device is unlocked, if you don't know how to do it below is link to official Xiaomi guide !!!
https://c.mi.com/thread-2262302-1-0.html
Requirement
Xiaomi Mi Flash ver. =>3-14-0 - Needed to install all adb drivers Download
ADB & Fastboot tools - Could be the one built into Mi Flash tool I'll use this to make it simple
Magisk =>24.2 - This software is base of our rooting process Download
SafetyNet Fix => 2.2.1 (Zygisk) - Needed to backdoor SafetyNet fail check, at the moment it is only working method for Mi Pad 5 Download Make sure you download the Zygisk version!
Boot.img - You can download from official MIUI website full flashable rom and separate boot.img file from there, or use my if your Miui version is China 13.0.5, EEA 13.0.3, Global 13.0.1
China 13.0.5​EEA 13.0.3​Global 13.0.1​​​Installation
To make it easier, Green color mean what you need to do on Tablet, Orange on PC
Unzip Mi Flash tool
Open folder and run XiaoMiFlash.exe, if window "Driver" won't pop-up click on the Driver tab and then "Install" button and close all windows.
Connect your tablet to computer, when your tablet ask how you want use USB, choose File Transfer/Android Auto
Copy to internal storage Magisk-v****.apk, safetynet-fix-v****.zip and boot.img
Open File Manager on your tablet find a folder where you copied all files, and install Magisk
Open Magisk app, and click on Install in section Magisk, then select "Select and Path a File", after that find your boot.img file and click on it
Click "LET'S GO" button on the right side and wait until process will be finished
On your computer in the tablet's storage window, go to the file specified in the application probably /Download/magisk_patched-*****
Copy this file to a subfolder of Mi Flash on your computer, exactly to MiFlash2020-3-14-0\Source\ThirdParty\Google\Android and change the name of this file to boot.img
Open PowerShell/Windows Terminal in this folder (Hold Shift + Right click -> Open PowerShell window here)
Make sure your tablet have enabled USB debugging in Developer options Setting -> Additional settings -> Developer options -> USB debugging
Turn off your tablet, then hold down Power and VOL- until the screen lights up, then release power button, if Fastboot appears, everything went fine
Go back to your Terminal window and type to check if your computer see your tablet
Code:
./fastboot.exe devices
If you see answer "******** fastboot" it mean there is communication between PC and Tablet
Next type this command to flash patched boot image
Code:
./fastboot.exe flash boot boot.img
Next type this command to reboot your device
Code:
./fastboot.exe reboot
Restart can take a longer time than normal
Open Magisk app and check status of Magisk, if you see for exaple "Installed 24.2 (24200)" everything went fine
Open Settings in right corner of app and in section App click on Hide the Magisk app then type name for hidden app, it will ask to install new app so do it
Open again Magisk app and open Settings in section Magisk enable Zygisk (Beta) and Enforce DenyList
Click on Configure DenyList than click on three dots in right corner and uncheck Show system apps
Search for all the apps in the list below and check them. It is important to click on their name to see all modules, once you have done this click on the box to activate all of them
Code:
Google
Google Assistant (I have two)
Google Pay
Google Play services
Google Play Store
After that reboot your tablet, and open again Magisk app
On the bottom click on Modules
Click on Install from storage button and find file safetynet-fix-v*******.zip, than click on it
After that reboot your device one more time
After reboot open Android Settings go to Apps and Unhide system services than find and clear all data of Google Play services and Google Play Store
Reboot tablet last time
If you have reached this point it means that everything has gone correctly, probably for about 3 hours you will still not be able to install Netflix and some banking applications but after this time everything will be back to normal, this is because Google's servers have detected that Magisk has been installed but that the application has been changed and Zygisk has been enabled so at the next check it notices that everything is Ok and gives access back.
Quick explaination what happend here:
Magisk has been installed and device is Rooted
The application has been changed and hidden
Zygisk has been activated and hidden from Google services
SafetyNet-fix was installed, which restores the functionality of SafetyNet and Widevine L1, which is blocked after the installation of Magisk and unlocked Bootloader
Hello,
(I use google translate).
Thanks for your method. Before using it, I would like to ask you a few questions.
I have already rooted a few devices (mipad 1, mi phone, htc...) with my macbook and twrp.
The adb files are already installed on my mac.
1) once the pad 5 is rooted, should I, like on my phone, patch the new boot.img file with each update?
2) Could I install the twrp application afterwards to be able to do a complete backup of the system and possibly install a version of lineageos later?
3) Is there a version of miflash unlock tool for mac os x?
4) Should I register or register on the xioami site before unlocking the boot?
Thank you in advance for your method and your answers.
Nux01
Nux01 said:
Hello,
(I use google translate).
Thanks for your method. Before using it, I would like to ask you a few questions.
I have already rooted a few devices (mipad 1, mi phone, htc...) with my macbook and twrp.
The adb files are already installed on my mac.
1) once the pad 5 is rooted, should I, like on my phone, patch the new boot.img file with each update?
2) Could I install the twrp application afterwards to be able to do a complete backup of the system and possibly install a version of lineageos later?
3) Is there a version of miflash unlock tool for mac os x?
4) Should I register or register on the xioami site before unlocking the boot?
Thank you in advance for your method and your answers.
Nux01
Click to expand...
Click to collapse
Hi Nux01,
1. Unfortunately yes, TWRP isn't supported for Pad 5 yet.
2. It won't work, TWRP app is only making a request to TWRP custom recovery, until it doesn't exist you can't even install custom ROM
3. It is, but i didn't test it yet on Pad 5, and I don't know if it will work with new decides because last release is from 20.07.2020.
https://github.com/francescotescari/XiaoMiToolV2/releases
4. Yes, you need Xiaomi account, also your device has to be logged in, and registered to unlock, Xiaomi made complete guide how to do this, link is on the top of this post.
Hello,
Thank you for your quick reply.
The latest version of Mitool does not work. On the other hand, with regard to version 20.7.21, it's OK.
What does it mean: "I do not know if it will work with new decides".
And to unlock the bootloader, I have to use the Xiaomitool V2 application?
Thanks again.
NUX01
Nux01 said:
Hello,
Thank you for your quick reply.
The latest version of Mitool does not work. On the other hand, with regard to version 20.7.21, it's OK.
What does it mean: "I do not know if it will work with new decides".
And to unlock the bootloader, I have to use the Xiaomitool V2 application?
Thanks again.
NUX01
Click to expand...
Click to collapse
I mean it's quite old release so it may not work with current unlock bootloader process on new devices like a Xiaomi 12, Xiaomi Pad 5 etc. I can't promise it won't brick your device, only confirmed method is by official Xiaomi tool.
Thank you
I'll wait a little bit before rooting my tablet.
Have a nice day.
Followed the instruction, worked like a charm. Although I had unknown "chinese sings" errors with the driver install it worked. By the way there is a newer version of the flashing tool.
Thanks for the effort of writing this down!
Hello,
I just managed to unlock the bootloader of my tablet "Pad 5".
I tried under Mac and Linux with Xiaomitool V2 without success (error 20036 and 20045).
I also tried with VirtualBox who did not recognize the tablet.
I succeeded with VMware and Windows 7 by testing different drivers and it worked.
I just root the tablet with Magisk.
On the other hand, is there the equivalent of TWRP to make a complete system backup. Apart from Titanium and MyBackup.
Thanks for your help.
thanks dude.
didn't try this yet, just wondering.
can't i just flash recovery and then flash magisk.apk?
thanks
Can i update ota to 13.0.2 after rooted? Just update and root again?
Cpanel10x said:
Can i update ota to 13.0.2 after rooted? Just update and root again?
Click to expand...
Click to collapse
You can update, but after that you need root again but with boot.img from 13.0.2
How to get the boot.img 13.0.2? I checked the 3GB Firmware and only found vendor_boot.img. Is it the same thing?
Never mind. I got the boot.img from here: https://miuirom.org/tablets/xiaomi-pad-5
Thomas Brown 99 said:
Never mind. I got the boot.img from here: https://miuirom.org/tablets/xiaomi-pad-5
Click to expand...
Click to collapse
boot.img for miui global 13.0.3(RKXINXM) isn't available there. Plz help...
Thanks for this awesome guide. Do you have some suggest about the magisk modules to install?
thanks, it just worked perfectly and your step by step guide is very handy and helpful. thanks so so much.
vjsaini00 said:
boot.img for miui global 13.0.3(RKXINXM) isn't available there. Plz help...
Click to expand...
Click to collapse
Today evening, I'll add more boot.img
kisielec said:
Today evening, I'll add more boot.img
Click to expand...
Click to collapse
eagerly waiting, Thanks
Hey there.
I have done everything above and i MIGHT have some problem. The problem with my problem is that its not really reproducable easily even for me.... Weird, I know!
Lets go into details:
Issue description: When I reboot my tablet it goes into "MIUI Recovery" window, on which I am offered to reboot the device or clean.... And when I reboot it goes back to the recovery screen again. Like a loop-hole.
....
But then if I leave it untouched for several minutes it reboots itself and launches the system properly finally...
When did it start: It first started after I performed this step:
24. Click on Install from storage button and find file safetynet-fix-v*******.zip, than click on it
25. After that reboot your device one more time
Click to expand...
Click to collapse
When I finally landed in the system I of course continued and performed further steps. After another reboot in step 27 the same thing happened but much, much longer.
I thought it somehow self fixed and works - once I am in the system. Right? So I did a reboot to test it. And no... recovery screen again for another 20 or so minutes until finally MIUI loaded fully.
Now I am afraid to turn off / reboot my tablet... I am afraid it might never finish booting next time.
Any ideas whats wrong and how to fix this weird and irregular behaviour?
My details:
Device: Xiaomi Pad 5 6/256gb
Original system was Chinese. I have reinstalled to Global one a version ago.
MIUI version currently running: 13.0.3(RKXMIXM)
Android version: 11 RKQ1.200826.002
Magisk version: 25.1 (25100) (32)
Magisk Modules: Universal SafetyNet Fix v2.2.1 (yes I made sure to download around Zygisk section)
Anything else I shall provide?
cysmaster said:
Hey there.
I have done everything above and i MIGHT have some problem. The problem with my problem is that its not really reproducable easily even for me.... Weird, I know!
Lets go into details:
Issue description: When I reboot my tablet it goes into "MIUI Recovery" window, on which I am offered to reboot the device or clean.... And when I reboot it goes back to the recovery screen again. Like a loop-hole.
....
But then if I leave it untouched for several minutes it reboots itself and launches the system properly finally...
When did it start: It first started after I performed this step:
When I finally landed in the system I of course continued and performed further steps. After another reboot in step 27 the same thing happened but much, much longer.
I thought it somehow self fixed and works - once I am in the system. Right? So I did a reboot to test it. And no... recovery screen again for another 20 or so minutes until finally MIUI loaded fully.
Now I am afraid to turn off / reboot my tablet... I am afraid it might never finish booting next time.
Any ideas whats wrong and how to fix this weird and irregular behaviour?
My details:
Device: Xiaomi Pad 5 6/256gb
Original system was Chinese. I have reinstalled to Global one a version ago.
MIUI version currently running: 13.0.3(RKXMIXM)
Android version: 11 RKQ1.200826.002
Magisk version: 25.1 (25100) (32)
Magisk Modules: Universal SafetyNet Fix v2.2.1 (yes I made sure to download around Zygisk section)
Anything else I shall provide?
Click to expand...
Click to collapse
I also have this module installed without problems, as there is no recovey for Pad5, it is a good idea to install in magisk the module Magisk Bootloop Protector, which serves exactly to prevent what you are afraid that happen with your tablet

Question GSI Rom for OnePlus 11?

Given that the bootloader is unlockable, has anyone tried a GSI Rom on the OnePlus 11? I know generic images are missing device specific drivers but could provide a better experience for those not running this as a daily driver. Also, there are quite a few GSI's to chose from, are there any recommendations?
Guyinlaca said:
Given that the bootloader is unlockable, has anyone tried a GSI Rom on the OnePlus 11? I know generic images are missing device specific drivers but could provide a better experience for those not running this as a daily driver. Also, there are quite a few GSI's to chose from, are there any recommendations?
Click to expand...
Click to collapse
Not too sure anyone would be willing to try until OP decides to release an MSM tool
kevp75 said:
Not too sure anyone would be willing to try until OP decides to release an MSM tool
Click to expand...
Click to collapse
For flash a gsi (when you make any worng no problem you can it repare with fastboot/fastbootd)
I am currently on GSI.
Things which are not working.
Finger print.
Only Main camera working i think ( single Lense no ultrawide) ( I dont use camera exepect for barcode scanner anyway)
Rest is good.
Installation steps I took.
Unlock bootloader.
Install Dsu sideloader https://github.com/VegaBobo/DSU-Sideloader ( version 1.3 ) non root.
Setup dsu with 60 GB storage and use the image from
Andy Yan's personal builds // GSI - Browse /lineage-20-light at SourceForge.net
sourceforge.net
reboot
It boot into GSI without any issues. enable 5G, set refresh rate to 120.
reboot but it reboot into default Oxygen OS as expected.
click on restart in DSU from the notification.
Booted into GSI again.
5G working ( Volte)
Refresh Rate working.
Restore google apps and settings.
Connect phone to ADB
use this command on adb: adb shell gsi_tool enable ( this is to reboot in GSI by default on every reboot)
This is all like a dual boot ( safe method to try GSI without any fastboot and MSM tool worries.
Note : Whenever i want to reboot into Oxygen OS connect phone to adb and only give command - adb shell gsi_tool disable. It will reboot into default OS.

Categories

Resources