vegabobo / dsu-sideloader Goto Github PK
View Code? Open in Web Editor NEWA simple app made to help users easily install GSIs via DSU's Android feature.
License: Apache License 2.0
A simple app made to help users easily install GSIs via DSU's Android feature.
License: Apache License 2.0
Sometimes I have ROMs in .zip which includes partitions in .dat.br:
rom.zip:
Device:Google Pixel 4a (5G)
Android Version:13(Tiramisu)
DSU Sideloader Version:1.03
Normally, when you touch Got It, the file selection screen is displayed, but it is not displayed in my environment.
I've always fail to install gsi using dsu, at first it was fine i can install 5+ gsi without issue. But now it's keep fail and even I've install the same gsi that works before now it doesn't work anymore
Also I used only apk first but now using the magisk module also doesn't do anything
Edit : I'm sorry i think it's because my storage. I just removed something from 16gbs to 23gbs and now it's started to work again. But i have question how much storage i need because i only have 64gb model
Downloaded latest AOSP from PHH: AOSP 12.0 v402
Packed it as a GZIP on PC, got the size for it on PC as well ( du -b system.img )
Selected the GZIP on the app, infromed the system bytes size, selected userdata do be 16GB ( I've set as default using the app settings )
Flashed, all went good, but when I rebooted to the DSU, the whole system has only 8GB avaliable
Btw, I'm brazilian.
I have a 256gb phone and am at 60% usage so this app won't load
What's the logic behind the 40% test?
Thanks
I have a theory that it is failing for people because one of two things. Including myself because it worked before but not now.
In the first case, we need information about HOW to clear the inactive slot. Second can be resolved by switching active manually upon reboot
As described in the android docs:
dsu.zip {
- system.img
- product.img
}
Adb logcat shows the following error. I've tried installing half a dozen GSIs with different sizes on a OnePlus Nord N20 5G. Bootloader is unlocked and the key was changed. I am using the latest DSU Sideloader version, October Security Update, Android 11. Please let me know what you think. Thank you!
[liblp]Invalid partition metadata header table size.
11-12 19:52:11.495 10973 10976 E gsid : Could not read metadata file /metadata/gsi/dsu/dsu/lp_metadata
11-12 19:52:11.495 1901 7313 I DynamicSystemService: Failed to install userdata
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: java.io.IOException: Failed to start installation with requested size: 42949672960
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: java.io.IOException: Failed to start installation with requested size: 42949672960
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.installUserdata(InstallationAsyncTask.java:334)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:186)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:46)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at android.os.AsyncTask$3.call(AsyncTask.java:394)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
11-12 19:52:11.498 10567 10965 E InstallationAsyncTask: at java.lang.Thread.run(Thread.java:923)
11-12 19:52:11.501 10973 10976 E gsid : [liblp]Invalid partition metadata header table size.
11-12 19:52:11.501 10973 10976 E gsid : Could not read metadata file /metadata/gsi/dsu/dsu/lp_metadata
11-12 19:52:11.508 10567 10567 D InstallationAsyncTask: onPostExecute(), URL: file:///storage/emulated/0/dsu/workspace_dsuhelper/lineage-20.0-20221111-UNOFFICIAL-arm64_bvS.img.gz, result: 3
11-12 19:52:11.509 10567 10567 D DynSystemInstallationService: status=NOT_STARTED, cause=ERROR_IO, detail=java.io.IOException: Failed to start installation with requested size: 42949672960
I installed it to Lenovo Xiaoxin PadPro 2021. Its an Android 11 system with DSU support.
The default Android 12 GSI runs fine with buildin option.
I installed this app (non root) and installed GSI rom, but upon restart, it just restarted to original rom. The option is still there at notification bar to ask me to "discard" or "restart". Tried restart many times, all reboot back to mainos.
Hey all as stated in title on the hisense q5 I'm receiving some sort of a file error when trying to use this app.
3-08 16:23:35.520 11667 11669 E gsid : failed to create or open /data/gsi/dsu/userdata_gsi.img 03-08 16:23:35.520 11667 11669 E gsid : Could not create userdata image: /data/gsi/dsu/userdata_gsi.img 03-08 16:23:35.397 12192 12192 I chatty : uid=1000(system) com.hmct.eye.remind identical 12 lines 03-08 16:23:35.461 12192 12192 D EyeReminding: light can not show! 03-08 16:23:35.522 12498 12523 W System.err: java.io.IOException: Failed to start installation with requested size: 6964084736 03-08 16:23:35.523 12498 12523 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:130) 03-08 16:23:35.523 12498 12523 W System.err: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:36) 03-08 16:23:35.523 12498 12523 W System.err: at android.os.AsyncTask$3.call(AsyncTask.java:378) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 03-08 16:23:35.523 12498 12523 W System.err: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:289) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 03-08 16:23:35.523 12498 12523 W System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 03-08 16:23:35.523 12498 12523 W System.err: at java.lang.Thread.run(Thread.java:919) 03-08 16:23:35.523 12498 12498 D InstallationAsyncTask: onPostExecute(), URL: file:///storage/emulated/0/Download/workspace_dsuhelper/system-squeak-arm64-ab-gapps.img.gz, result: 2
Hello,
I tried using a GSI version of Resurrection Remix OS (compressed gapps) with this app, didn't get an error from within the app, but rather it rebooted into stock recovery with an error at the bottom saying something about locales and Odin (which was what i used to flash Magisk onto this device). Can provide a picture if needbe.
Device is a Samsung Galaxy Tab A7 (SM-T500) running stock Android 11 with magisk
Is it just the GSI rom or could it be something else?
Thanks in advance
Note that i want to run this app on a device that is not rooted yet. but since i and other guys are close to a system shell (that we obtained on samsung) and we can port it to other brands, also we have been able to boot gsis in samsung phones. So next are other brands. I tried on ZTE Blade A5 2019 but it gives error parsing the package. Can you please fix that? thanks
Error is following:adb: failed to install /home/lol/Scaricati/DSU Sideloader 2.01.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1589275868.tmp/base.apk (at Binary XML file line #7): Requires newer sdk version #29 (current version is #28)]
Also you say that the DSU was introduced on A10 but i tried treble check and the device is compatible
Thanks for making this app available! May I ask what license you're putting it under? Without any license, it's "all rights reserved" and thus not "truly free" 😉
Logs-
logs.txt
Hope the app grows.
Under certain circumstances, loading a DSU through this app on a Google Pixel 6a device may trigger a bug that persists through factory reset.
The device will display “Your Device is corrupted and cannot be trusted”. before every boot. The message persisted after performing a restore from factory image (preserving user data).
The likely cause was LSposed, Magisk, and Zygote. However, in my testing, Magisk and Zygote resulted in a reboot back to the original OS without the error.
I was still able to successfully boot a Google Android 13 GSI and my normal OS even after the error occurred.
It may be the VNDK-Lite Phh GSI floss 64 ab build from June 2022 that triggered the flag.
The solution (found on XDA was to flashing an older boot.img to reset the corruption flag.
The screen went away after flashing the stock boot from Android 13 because it was the only other system image available with a different security month. (July 2022 vs August 2022).
However using this app to install a DSU seems to have triggered the corruption flag and likely bug.
You need to have custom recovery for it to work. I have a pixel 4xl and I tried many gsi but none of them work all at the moment of restarting they take me to the recovery stock
Hello! When I try to Install some Android 13 GSI from Nippon GSI. The App it's Crashing. I'm using MIUI 12.5.12 and my Device is Redmi 9T - Chime
Hello, how could I flash Magisk on it?
After booting to recovery I flash same with main rom version (24.1) but after installation Magisk manager shows its not installed (on DSU rom)
Or how could I edit system files from DSU rom?
I am having issue installing pixel experience GSI image.
log.txt
Given adb command in the app -
adb shell ' sh "/storage/emulated/0/GSI/workspace_dsuhelper/install" '
this gives error
/system/bin/sh: sh /storage/emulated/0/GSI/workspace_dsuhelper/install : inaccessible or not found
Removing ' worked. Command -
adb shell sh "/storage/emulated/0/GSI/workspace_dsuhelper/install"
Device Information:
Samsung A52s 5G
OneUI 5.0 (Android 13)
API 33
Phone: Xiaomi 11T
MIUI 13.0.8
Android 12SP1A210812016
non rooted
When I try to start installation from adb shell with this command: adb shell ' sh "/storage/emulated/0/gsi/workspace_dsuhelper/install" '
I got this error: /system/bin/sh: sh /storage/emulated/0/gsi/workspace_dsuhelper/install : inaccessible or not found
Can you help me?
The app stops working when I click on install button, no matter wich GSI Rom or compression I choose. No logs or error messages.
For this case, I'm trying to install Google GSI for Android 12.
My environment:
I created a Roms
folder in my internal memory and put permissions there. After that, I picked the rom on downloads folder and let everything else by default on app, and when I click on install, the app crashes.
I don't know how to provide more informations or logs, but let me know if there is something I can do.
Using OnePlus 8 pro. Before using DSU sideloader, I used the inbuilt system DSU loader to install and successfully boot googles latest gsi but as soon as I try to use the sideloader app, that fails and then even the system inbuilt loader fails too. I don't understand as it used to work just fine. V1 didn't but v2 did but not anymore. Logs attached
logs.txt
I downloaded the GSI file and normally followed the instructions. App said to run the adb command to start installation I ran the command, A popup appeared in my phone for asking the password, I entered the password, some commands ran and nothing happened!
Device Poco C3 (MIUI 12.0.16.0) Based on Android 10
Thanks in Advance
So as other people here, I'm stuck not being able to boot the DSU after a succesful installation.
As mentionned in #15, I tried flashing Google's empty vbmeta.img with the --disable-verity --disable-verification
flags, but I just get a bootloop.
Also tried flashing my own vbmeta.img with the same flags or reinstalling Magisk with the echo KEEPVERITY=false>>/data/.magisk
method, to no avail.
Am I stuck just having to format and flash the empty vbmeta, or is there another way for me to disable AVB without performing a factory reset ? :)
Trying this on a Poco F3 (alioth) running PixelPlusUI v4.8, and using the Magisk module with custom gsid.
Add small asterisk with
Select a GSI to install
**accepted formats are: gz, xz, img and zip (only DSU packages)
Or
Check if it is a DSU Package or just a zip file with hairy
Any possibility to keep userdata for a true dual boot feeling? I'm guessing this is controlled by the underlying DSU services and can't be changed from the app...
Sideloader is not working after upgrade to MIUI 13.0.2.0.
Below are logcat log
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: java.io.IOException: Failed to start installation with requested size: 68719476736
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: java.io.IOException: Failed to start installation with requested size: 68719476736
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.installWritablePartition(InstallationAsyncTask.java:359)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.installUserdata(InstallationAsyncTask.java:375)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:186)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at com.android.dynsystem.InstallationAsyncTask.doInBackground(InstallationAsyncTask.java:47)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at android.os.AsyncTask$3.call(AsyncTask.java:394)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
07-13 16:13:30.748 3225 3334 E InstallationAsyncTask: at java.lang.Thread.run(Thread.java:920)
When running the latest version of the app, it all seems successful until it gets to the point of running a command through ADB. It always gives an error of
Error type 3 Error: Activity class {com.android.dynsystem/com.android.dynsystem.VerificationActivity} does not exist.
Despite then showing that the installation has started, no notification appears.
Device is an Xperia 5 III US model running the latest android 12 update with a locked bootloader.
It cannot be installed on MIUI13
I tried adb and the problem remained the sam
This is the log
Log.txt
Help to fix it
would it be possible to use the sd card storage instead of the internal memory?
msg: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE }
stacktrace: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.OPEN_DOCUMENT_TREE }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2169)
Canstall,but can't enter
I have unlocked bootloader and disabled vbmeta.
My device's android version is 12.1. Now I need to try a gsi which android version is lower than 12.1. But I can't boot to it after finishing installing the gsi,it will go into the bootloader.
Is there any way to solve the problem?
Please make a magisk module, increase the userdata size!!, My phone can only set 18G maxium, I am running Android 11
Logs here
logs.txt
Hello I am new with this, I just used your sideloader to test some gsi, but when the download of DSU start the progress move in the middle and turns into "Installation failed" is there ways to fix this?
Hello, I can install system.img but I don't know how to install vendor for this system.img
Do u know how to do it or can I implement it in the future?
Thanks for your help!
And which vendor is using right now?
Hi, I can't seem to install any GSIs with this app; I have the latest version of Magisk, my bootloader is unlocked, and I have tried the stock ROM as well as various different custom ROMs but they all fail to install. I even flashed vbmeta per this comment #18 (comment) and did a factory reset but the issue persists. Attached is the most recent logfile.
Any assistance would be appreciated!
logs.txt
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.