-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Investigate GSI #146
Comments
treble_aosp may help. |
Related to Benjamin-Loison/waydroid/issues/16 and #25. |
adb shell ls /system/etc/*.txt Output:
|
adb shell ls /system/etc/ld*
|
Source: https://developer.android.com/topic/generic-system-image/releases So it does not seem to be appropriate for daily use. |
https://developer.android.com/topic/generic-system-image/#download-gsi seems to propose 2 releases, one without GMS and one with.
So maybe it does not contain the hardware features like SMS and calls. |
adb shell getprop ro.product.cpu.abi
|
Source: https://developer.android.com/topic/generic-system-image/releases#known-issue-15 |
Should read Terms and Conditions when downloading. |
curl -I 'https://dl.google.com/developers/android/vic/images/gsi/aosp_arm64-exp-AP3A.241005.015-12366759-3c0ee79d.zip' Output:
So 867 MB without GMS and 1.5 GB with: curl -I 'https://dl.google.com/developers/android/vic/images/gsi/gsi_gms_arm64-exp-AP3A.241005.015-12366759-0fdc93fe.zip' Output:
|
|
|
The person:
has a supported Pixel 8, source: https://developer.android.com/topic/generic-system-image/releases#15-qpr1-stable |
|
https://flash.android.com/preview/vic-qpr1-gsi-gms It works fine on Chromium. |
https://source.android.com/docs/core/tests/vts/gsi#flashing-gsis
is unclear. |
|
|
With GSI:
As it is pretty easy to try should try on given device to ensure that it does not work as wanted. To complete tests for Pixel 8 (other things work fine):
On stock Pixel 8 Android 15 (AP4A.241205.013, Dec 2024, source: https://developers.google.com/android/ota#shiba) Bluetooth works fine. Possibly it is mandatory to use NFC for the pairing of the headset. Even with NFC the phone vibrates but no new entry or prompt is shown for Bluetooth headset. |
Should try other SMS and dialer apps to make sure but I am not keen with not default ones. |
With simg2img system.img system_raw.img Output:
|
sudo apt install android-sdk-libsparse-utils -y Output:
|
simg2img system.img system_raw.img Output:
mv system.img system_raw.img |
time gzip -c system_raw.img > system_raw.gz Output:
|
See on my Linux Mint 22 Cinnamon Framework 13 |
https://wiki.lineageos.org/devices/jasmine_sprout/ Let us try build LineageOS GSI. Is there a way to list build targets? mkdir -p ~/android/lineage
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
ccache -M 50G
repo init -u https://github.com/LineageOS/android.git -b lineage-22.1 --git-lfs --no-clone-bundle Output:
date && time repo sync; matrix-commander -m 'Sync finished!' Output:
|
DuckDuckGo and Google search LineageOS GSI. |
https://wiki.lineageos.org/devices/ does not mention GSI even if disabled Hide discontinued devices. |
https://wiki.lineageos.org/emulator shows how to build for GSI but not how to install it. |
source build/envsetup.sh
breakfast jnvbwnrw userdebug Output:
breakfast lineage_gsi_arm64 userdebug Output:
So breakfast gsi_arm64 userdebug Output:
Source: https://wiki.lineageos.org/emulator#start-the-build date; time mka; matrix-commander -m 'Compilation finished!' |
During the compilation the 28 logical cores laptop is not as fast as usual to work in parallel on regular tasks. |
Related to Benjamin-Loison/android/issues/59. |
date; time mka; matrix-commander -m 'Compilation finished!' Output:
|
|
https://www.ovhcloud.com/fr/bare-metal/prices/?display=list&cpu_cores=64%7C256
|
No other OVH location proposes a better equipped than 64 logical cores VPS. |
Trying to decrease exponentially |
DuckDuckGo search LineageOS install GSI. https://xdaforums.com/t/lineageos-20-android-13-gsi-install-instructions.4571805/ |
date; time mka -j 8 find out/target/product/ -name '*.zip' Output:
|
ls -lhS out/target/product/generic_arm64/ Output:
|
https://source.android.com/docs/core/tests/vts/gsi#flashing-gsis seems to specify how to leverage |
https://developer.android.com/topic/generic-system-image/#flash-gsi
adb shell getprop ro.boot.veritymode
|
https://developer.android.com/topic/dsu#launch
So it seems that an official GSI should be unsparsed: file system.img
ls -lh system.img
The LineageOS GSI I built: file system.img
So seems unsparsed. |
simg2img system.img system_raw.img Output:
|
ls -lh system.img
|
gzip -c system_raw.img > system_raw.gz ls -lh system_raw.gz
|
adb push system_raw.gz /storage/emulated/0/Download/
|
adb shell am start-activity \
-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
-a android.os.image.action.START_INSTALL \
-d file:///storage/emulated/0/Download/system_raw.gz \
--el KEY_SYSTEM_SIZE $(du -b system_raw.img|cut -f1) \
--el KEY_USERDATA_SIZE 8589934592 results in Dynamic System Updates Install failed notification. |
Let us try this build as DSU on my Fairphone 4 LineageOS 22.1 to check if it looks right. |
|
|
(see the website)
Source: https://developer.android.com/topic/generic-system-image/#device-compliance
On my Fairphone 4 LineageOS:
Source: https://developer.android.com/topic/generic-system-image/
The text was updated successfully, but these errors were encountered: