2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (2024)

Reserved Part 2

(microG for A14)


Every GSI will need less battery than MIUI. Because MIUI is permanent 'calling home' and sending personal data to Xiaomi. If you want to have a good battery usage, use a AOSP Vanilla GSI. Plus "HyperOS A13 for Nabu" is in static condition no update anymore then new GSIs Using is a good way to update this OS with your own.
( No No...... Port ROM)

For me very long times ago had learn and install so many good GSIs its safety , powerfull not less than dedicated custom ROM.

Make RW GSI (get rid of RO Variant )& Add new free spaces for inject your new code and features such as add "microG" files etc.

©Tools:
-Termux
+WSL2(modify gsi)
+microG
New alpha builds: for A14 from ale5000.

-microG unofficial installer v1.3.1.69 alpha: https://share.freepro.com/28e3e41a-18a2-497d-9744-b4ed87479a5a
Google Sync add-on v1.3.1.69 alpha: https://share.freepro.com/9a886de9-78bc-4fae-b2e9-3bab55cc8963

-----------End Announcement----​

road map.

1.Change Original Read only Rising OS Vanilla Variant to RW.
2.Add free spaces around 300Mb into GSI.
3.Dirty Flash RW GSI.
4.Install microG from ale5000.

Prerequisite: Installing via adb can really replace apps on a running system but obviously require root.

To install the zip via adb:
Code:
adb push microg-unofficial-installer.zip /storage/self/primary/Download/microg.zip
adb shell
cd /storage/self/primary/Download/
unzip microg.zip zip-install.sh
sh zip-install.sh microg.zip

Note 1: Replace microg-unofficial-installer.zip with the name of the zip on your pc that you want to install.
Note 2: Replace /storage/self/primary/Download/ with the path of a folder that really exist on your phone.

5.Download & install "Head Unit Reloaded" from play store. (For Use in my car)

-------End Road map----

Step by Step
1.Download and install Termux from Fdroid.
2.Open Termux
pkg update && upgrade
//if can not download any packages then will change repo with
termux-change-repo

termux-setup-storage

pkg install android-tools e2fsprogs
pkg install tsu
pkg install mount-utils

#use file manager copy "system.img" to downloads folder.
(rename your GSI.img to system.img)

ls
#output
storage

cd storage/downloads

~/storage/downloads ls


#output
system.img

pkg update

resize2fs system.img 6G
sudo e2fsck -E unshare_blocks system.img

//#Resize to minimum image size after the modification.
sudo resize2fs -M system.img

//#Get current size in MB
du -m system.img

// ( output:2668)

#Resize +300MB (Add more Free spaces)
sudo resize2fs system.img 2968M

#Output
resize2fs 1.47.1 (20-May-2024) Resizing the filesystem on system.img to 759808 (4k) blocks. The filesystem on system.img is now 759808 (4k) blocks long.

//Copy new system.img (2.89GB)to your Computer.

Step enter into FastbootD mode.
//Delete Face unlock or security

adb devices
adb reboot bootloader
//Red Fastboot
fastboot reboot fastboot
//Blue Fastboot
fastboot flash system system.img

#output
C:\nabu_global_images_OS1.0.1.0.TKXMIXM_13.0>fastboot flash system system.img
Resizing 'system_a' OKAY [ 0.008s]
Sending sparse 'system_a' 1/11 (262116 KB) OKAY [ 6.059s]
Writing 'system_a' OKAY [ 1.361s]
Sending sparse 'system_a' 2/11 (262116 KB) OKAY [ 6.052s]
Writing 'system_a' OKAY [ 1.302s]
Sending sparse 'system_a' 3/11 (262112 KB) OKAY [ 5.999s]
Writing 'system_a' OKAY [ 1.218s]
Sending sparse 'system_a' 4/11 (262128 KB) OKAY [ 6.007s]
Writing 'system_a' OKAY [ 1.289s]
Sending sparse 'system_a' 5/11 (262124 KB) OKAY [ 6.038s]
Writing 'system_a' OKAY [ 1.271s]
Sending sparse 'system_a' 6/11 (262120 KB) OKAY [ 6.043s]
Writing 'system_a' OKAY [ 1.249s]
Sending sparse 'system_a' 7/11 (262084 KB) OKAY [ 6.015s]
Writing 'system_a' OKAY [ 1.259s]
Sending sparse 'system_a' 8/11 (262124 KB) OKAY [ 6.027s]
Writing 'system_a' OKAY [ 1.305s]
Sending sparse 'system_a' 9/11 (262128 KB) OKAY [ 5.996s]
Writing 'system_a' OKAY [ 1.257s]
Sending sparse 'system_a' 10/11 (262140 KB) OKAY [ 6.097s]
Writing 'system_a' OKAY [ 1.274s]
Sending sparse 'system_a' 11/11 (104458 KB) OKAY [ 2.415s]
Writing 'system_a' OKAY [ 1.532s]
Finished. Total time: 81.799s

//reboot into system (no wipe)
fastboot reboot

Next step download microG
// Copy installation-file.zip to /sdcard/Download

cd /sdcard/Download

adb shell

su

unzip ./microg-unofficial-installer-v1.3.1.69-alpha-by-ale5000-signed.zip zip-install.sh

sh ./zip-install.sh ./microg-unofficial-installer-v1.3.1.69-alpha-by-ale5000-signed.zip

#output

Executing script...
PRELOADER
Loading 10563-customize.sh...
LOADER
Extracting 64-bit ARM BusyBox...
Parsing common settings...
Extracting scripts...

Starting main script...
Parsing local settings...

System mountpoint list:
/system
/dev/tmp/custom-setup-a5k/system_mountpoint

--------------------------------------------------------------------
INFO: Press the + sign button on your keyboard to enable live setup.
--------------------------------------------------------------------
Waiting input for 6 seconds...

Key: No key pressed

INFO: The '/' mount point is read-only, it will be remounted

INFO: The '/vendor' mount point is read-only, it will be remounted

'/dev/block/dm-3' is read-only
WARNING: Remounting of '/vendor' failed

---------------------------
microG unofficial installer
v1.3.1.69-alpha
(by ale5000)
---------------------------
Brand: google
Manufacturer: google
Model: RisingOS vanilla
Device: arm64_bvN
Product: rising_arm64_bvN
Emulator: false

First installation: true
Boot mode: true
Sideload: false
Zip install: true (1.1)
Recovery API ver: 3

Android API: 34
64-bit CPU arch: arm64-v8a
32-bit CPU arch: armeabi-v7a
ABI list: arm64-v8a,armeabi-v7a,armeabi

Verity mode: enforcing
Dynamic partitions: true
Current slot: _a
Recov. fake system: false

System mount point: /
System path: /system
Priv-app path: /system/priv-app

Android root ENV: /system
Fake signature: false
---------------------------

Starting installation...

Extracting...
Verifying...
/dev/tmp/custom-setup-a5k/files/framework/com.google.android.maps.jar
OK
Configuring...

Skipping: UnifiedNlp (legacy)

Enabling: microG Services
Verifying...
/dev/tmp/custom-setup-a5k/origin/priv-app/GmsCore.apk
OK
Extracting libs from priv-app/GmsCore/GmsCore.apk...
Selecting libraries => arm64-v8a
Selecting libraries => armeabi-v7a

Enabling: microG Services Framework Proxy
Verifying...
/dev/tmp/custom-setup-a5k/origin/priv-app/GsfProxy.apk
OK

Enabling: Google Play Store
Verifying...
/dev/tmp/custom-setup-a5k/origin/priv-app/PlayStore.apk
OK
Extracting libs from priv-app/Phonesky/Phonesky.apk...
WARNING: Missing libraries => arm64-v8a
Selecting libraries => armeabi-v7a

Enabling: F-Droid Privileged Extension
Verifying...
/dev/tmp/custom-setup-a5k/origin/priv-app/FDroidPrivilegedExtension.apk
OK

Disabling: Aurora Services

Enabling: NewPipe
Verifying...
/dev/tmp/custom-setup-a5k/origin/app/NewPipe.apk
OK

Skipping: Gmail

Disabling: Android Auto stub
Deleting '/system/app/PartnerBookmarksProvider'...

Waiting.......

Deleting '/dev/tmp/custom-setup-a5k/files/etc/permissions' folder (if empty)...
Deleting '/dev/tmp/custom-setup-a5k/files/framework' folder (if empty)...

Preparing installation...
Processing ACCESS_BACKGROUND_LOCATION...
etc/default-permissions/google-permissions.xml
Done

Moving apps into subfolders...
Installing...
Copying the 'etc/zips' folder to the device...
Copying the 'etc/default-permissions' folder to the device...
Copying the 'etc/permissions' folder to the device...
Copying the 'framework' folder to the device...
Copying the 'etc/org.fdroid.fdroid' folder to the device...
Copying the 'priv-app' folder to the device...
Copying the 'app' folder to the device...
Copying the 'etc/sysconfig' folder to the device...
Deleting '/dev/tmp/custom-setup-a5k/origin'...
Deleting '/data/system/uiderrors.txt'...
Resetting Android runtime permissions...
Deleting '/data/misc_de/0/apexdata/com.android.permission/runtime-permissions.xml'...
Installing utilities...
Copying the 'bin' folder to the device...
Installing survival script...
Installation finished.

The ZIP installation is completed, now restart your device!!!

Note: open cmd as admin only
C:\Windows\System32>adb shell
arm64_bvN:/ $ su
arm64_bvN:/ # cd /sdcard/Download
arm64_bvN:/sdcard/Download # sh ./zip-install.sh ./google-sync-addon-v1.3.1.69-alpha-by-ale5000-signed.zip

new microG setting ,newpipe & Play store button.

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (1)

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (2)

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (3)

After add your google account, try to install free app such as 'Brave browser" first. ( your new play-store will adjust itself.)

Restart

Enable GMS spoof

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (4)

New features

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (5)

Clean Play store cache

----------------End---------------

GitHub - vvb2060/KeyAttestation

Contribute to vvb2060/KeyAttestation...

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (6)github.com


Special
---Step Debloat Read-Only GSI with WSL2 (win11)

Start Ubuntu Server
1. copy "RW system.img" fom Termux's Processing (.unshare_blocks) into "WSL2 Ubuntu /home/user"

2. create mount point "/home/user/system"

3. mount target "system.img"
sudo mount -t ext4 -o loop system.img system

4. Edit unwanted or add your new files.
----------RisingOS.v3.2-------
sudo rm -R system/system/priv-app/MusicFX
sudo rm -R system/system/system_ext/app/MatLog
sudo rm -R system/system/product/priv-app/Eleven
sudo rm -R system/system/system_ext/apex/com.android.vndk.v28.apex
sudo rm -R system/system/system_ext/apex/com.android.vndk.v29.apex
sudo rm -R system/system/system_ext/apex/com.android.vndk.v31.apex
sudo rm -R system/system/system_ext/apex/com.android.vndk.v32.apex
sudo rm -R system/system/system_ext/apex/com.android.vndk.v33.apex
sudo rm -R system/system/system_ext/apex/com.android.vndk.v34.apex

5. sudo umount /home/tom/system

6. sudo e2fsck -fy system.img

7. sudo resize2fs -M system.img

8. du -m system.img
output: 2562

9. # resize +300MB (add free spaces)

10. sudo resize2fs system.img 2862M

======End Debloat & add Free spaces -RO GSIs===

Conti.....Dual boot with Linux or Ubuntu 24.04 here.

2024.[Full guide] [A14 QPR2] [Apatch] [KSU] [microG] Install GSIs On Nabu / By Exam with "LeOS -U base on Ponse's AOSP" & "RisingOS GSI" (2024)

References

Top Articles
Latest Posts
Article information

Author: Cheryll Lueilwitz

Last Updated:

Views: 6389

Rating: 4.3 / 5 (74 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Cheryll Lueilwitz

Birthday: 1997-12-23

Address: 4653 O'Kon Hill, Lake Juanstad, AR 65469

Phone: +494124489301

Job: Marketing Representative

Hobby: Reading, Ice skating, Foraging, BASE jumping, Hiking, Skateboarding, Kayaking

Introduction: My name is Cheryll Lueilwitz, I am a sparkling, clean, super, lucky, joyous, outstanding, lucky person who loves writing and wants to share my knowledge and understanding with you.