How To Guide - A comprehensive guide to daily drive AOSP GSI | Page 3 | XDA Foru...
source link: https://forum.xda-developers.com/t/a-comprehensive-guide-to-daily-drive-aosp-gsi.4473965/page-3#post-87242811
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
How To Guide A comprehensive guide to daily drive AOSP GSI
Thread starter
Start date
AlsoKouki
Member
Works. Monet is of android's core material you design & has nothing to do with google.
ohh okay i thought it part of Google,will learn about microg first and then i will flash the microg version, thx for the knowledge
Mozilla location module in microg settings doesn't switch on
Go to it's app info & change location permission to "All the time".
Although you can run gmaps without Mozilla module too.
Reactions: Samir2298
is there explaination of what is redfin module ? iirc i didnot install it at all during my time when using GSI before this ? just flash kdragon safetynet fix and it work out of the box
It is to spoof device as Google Pixel 5. If safetynet is already inplace without it, then it's fine to not spoof your device btw.
KingTigerM30S
Member
It is to spoof device as Google Pixel 5. If safetynet is already inplace without it, then it's fine to not spoof your device btw.
Hi, thanks for the guide. I was able to flash the gsi successfully, although is there a way to fix the padding for status bar?
although is there a way to fix the padding for status bar?
What padding you're referring to? Screenshot it.
KingTigerM30S
Member
What padding you're referring to? Screenshot it.
Attachments
It's gonna be on all AOSPs & ROMs there's no way to remove that.
KingTigerM30S
Member
@KingTigerM30S That's not padding. That space is actually used by privacy indicator dot. When you're not accessing camera or location, the dot is just hidden.
It's gonna be on all AOSPs & ROMs there's no way to remove that.
Oh, thanks for the info. I guess there's nothing we can do about it.
Great guide. I have a problem though and I was wondering if you know how to fix it. If I look at the lower bezel of the screen, there is a small gap between the rendered display and the lower bezel which also leads to my notification bar getting all crammed and the clock getting slightly truncated. I tried playing around with the rounded corners setting but that doesn't seem to do anything. Any help would be appreciated.
my notification bar getting all crammed and the clock getting slightly truncated
If you mean the overlay, I've already took care of everything btw. Didn't had any truncated issues here.
If you show where it's getting issues with the help of annotated screenshots, I might look into it.
If you mean the overlay, I've already took care of everything btw. Didn't had any truncated issues here.
If you show where it's getting issues with the help of annotated screenshots, I might look into it.
I'll just try to reset it and check again since the overlay is already in the system now.
Another question I have is, does front cam video work on your Gcam? What version would you recommend?
Another question I have is, does front cam video work on your Gcam?
No issues here with frontcam.
What version would you recommend?
BSG, link in the EXTRAS section from main post. As for which version, get the stable one (red annotated, 8.1 GV2b).
I've been using the same version with your config but the front cam video crashes every time.BSG, link in the EXTRAS section from main post. As for which version, get the stable one (red annotated, 8.1 GV2b).
I'm facing a Settings crash every time I try to set a fingerprint. It crashes right after I enter my PIN.
Other guy in this thread had the same issue. Turned out that he removed some built-in apps. No issues with fingerprint here.
I've been using the same version with your config but the front cam video crashes every time.
Strange. Provide your crashlog (Download/MGC_CRASHLOG).
Also try OpenCamera once & lemme know. It'll have the most generic configuration that works on any device.
Other guy in this thread had the same issue. Turned out that he removed some built-in apps. No issues with fingerprint here.
Biometric setup crash on v412 · Issue #2269 · phhusson/treble_experimentations
- Skip setting up passwords during Setup Wizard
- Disable Android Setup in Apps
- No more crash when setting up Fingerprint
Reactions: MPK99
Skip setting up passwords during Setup Wizard
Great. Mentioned this as BUG in main post.
Top Liked Posts
-
Why should I use a GSI ? Mojito already have custom ROMs ¯\_(ツ)_/¯
Yes. But this thread exists due to the following reasons:- You're tired of same 3rd party custom roms based on @ZIDAN44's trees
- You don't want to hop between roms regularly
- You have issues daily driving custom roms
- You just need a stable build to daily drive with monthly regular OTA updates
- You don't want to depend on & trust buildbot roms lurking in telegram (especially when there are fastboot erase abl scams)
I've been daily driving his project on this device for almost an year. Apart from customizations offered by standard AOSP forks, phhusson's GSI provides pure android experience. Everyone claim GSIs are buggy & not daily drivable, which is a complete false claim.
This is a step by step guide to daily drive AOSP GSI without any bugs & other issues.
It's a one time procedure since you'll be greeted withmonthly OTA updates
(thanks to @phhusson).
Prerequisites :
USB Drivers (guide to install)
Platform Tools (guide to setup)
Stock ROM (fastboot)
MicroG (for vanilla)
vbmeta.img (from google)
TWRP (thanks to @Nebrassy)
Magisk (thanks to @topjohnwu)
Redfin Props (thanks to @t3sl4)
SafetyNet Fix (thanks to @kdrag0n)
Neternels (thanks to @cyberknight777)
Overlay (patches for mojito specific hardware)
AOSP GSI
Recommended variants :system-squeak-arm64-ab-vndklite-vanilla-secure.img.xz
for vanilla/microgsystem-squeak-arm64-ab-vndklite-gapps-secure.img.xz
for google play services
It's better to avoid pre-release tags.INSTALLATION
NOTE:
I'm assuming you've already unlocked bootloader, backed up your data & know all the technical consequences of flashing & modding.- Download / extract all prerequisites in one place.
- From stock firmware, edit
flash_all_except_data_storage.bat
/sh
& modify last line tofastboot reboot fastboot
- Force reboot handset to fastboot mode (
vol_down+power
), connect to PC & execute above edited script to flash the stock. Then from terminal/cmd, execute: fastboot erase userdata
fastboot flash vbmeta vbmeta.img
fastboot flash system <gsi-file.img>
(ignore INVALID SPARSE warning)fastboot reboot
& make sure it boots up. Power off & return to fastboot again.fastboot boot <twrp-file.img>
, head to Advanced & run flash current TWRP to make recovery persistent across reboots.- Flash Magisk (for safetynet fixes) & Neternels (for performance), either by copying them into an SD card, or through
adb sideload <zip-file>
, caz internal storage decryption from recovery has been stopped working since Android 12.
BUG:
Don't touch the screen while booting, else it'll make the display unresponsive, leading you to force reboot. A minor bug, but can be ignored.BUG_2:
On gapps variant, don't set password on setup wizard, else it'll crash fingerprint settings later.POST INSTALL CONFIGURATION
- Setup Magisk from app-drawer. Follow in-app prompts & reboots.
- From magisk settings, hide the Magisk app, enable Zygisk & Enforce Denylist.
- Load Redfin Props & SafetyNet Fix magisk modules to pass CTS (Compatibility Test Suite).
NOTE:
To update kernel, you gotta disable Redfin-Props module first, reboot & flash kernel, then re-enable it later. - microG module if you chose vanilla variant (& yes, microG has working safetynet now. You can run any banking app except gpay)
- Enable the following Settings > Phh Treble Settings:
- Qualcomm features / Use alternate audio policy.
- Misc features / Disable audio effects & Force-disable A2DP offload.
- IMS features / Request IMS network & Force the presense of 4G calling. Also Install IMS Apk for Qualcomm vendor from notification panel.
/product/overlay/treble-overlay-xiaomi-redminote10.apk
with permissions644
/rw-r-r
. (NOTE:
If there's no space available warning, remove these two/system_ext/apex/{com.android.vndk.v28,com.android.vndk.v29}
, reboot & try again).
Currently, the overlay is under PR, so you had to manually copy by yourself for now. This is no longer needed after PR has been merged into the subsequent GSI updates. Overlay is crucial as it fixes the following :- Brightness stack
- CPU core frequencies
- Missing battery usage stats
- Missing night light toggle
- Ambient light & Doze
EXTRAS
My Recommendations for great experience:- Lawnchair / Quickswitch for launcher customization with gesture navigation support.
- Lineage Dialer for built-in call recording (replace it with /product/priv-app/Dialer/Dialer.apk)
- SmartPack Kernel Manager to underclock, flash kernels & monitor battery.
- Improve performance with SmartPack / Tools / Custom Controls / Create "Generic" / >
/sys/module/kprofiles/parameters/kp_mode
> 1 (Efficient), 2 (Balanced) or 3 (Performance). - Aurora Store / Droid for microg users. Also, enable Google device registration, Cloud Messaging & Google Safetynet.
- Apple Wi-Fi & GSM-LS for working google maps on microg. Turn them on from microg / Location modules.
- Bromite (arm64_SystemWebView.apk) for uptodate android webview (Developer options / Webview Implementation).
- Migrate to backup & restore user apps & data, incase you lose your setup.
NOTE:
Updates can be received through Settings > System > Updater every month as an OTA update.
Thanks for reading all the way through here. Here's my usage stats on 20% brightness.Followed exactly as in OP.
I did remove some apps tho from product app/priavpp and system app/privapp, so maybe that caused an issue? Is there anything related to fingerprint in those folders?If you want to gain more space (≈ 200mb) in system you can delete 2 folders safely without problems :
/system/system_ext/apex/com.android.vndk.v28/
and
/system/system_ext/apex/com.android.vndk.v29/
Already did it in DSSI builds without issues.I have been using GSIs on my old Huawei P10 lite for almost 3 years, and it was a very good experience.
Now with mojito I find myself lazy always using Roms -_- '
Thanks for the guide!The only official dev for this device, who's actually from core development of a reputed project (PE), is Zid. There aren't any, as I do not find others to be helping from core (except couple of kernel devs).
ROMs have no complete guarantees for future updates. Although you can use other project GSIs such as crD by Nazim, LOS by Andy, phhusson's the one who's consistently providing regular monthly updates with built-in OTA.Can I install MIUI gsi roms like this?You can install any AOSP GSIs with this guide. Not sure of other skins, as they're proprietary.
And why would you need MIUI GSI? Mojito stock "is" MIUI.tried move the firmware to plarform-tools/ after i execute it this happenThis is redmi Note 10 forum mate. So I had stock ROM link of mojito/sunny. Your device (3rd screenshot) closely states it's Rainbow (Wiko).
Although this is a GSI guide, I suggest you to flash your own device's stock rom.
Still, it won't be enough caz I don't have overlay patch of your device.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK