VegaBobo / DSU-Sideloader

A simple app made to help users easily install GSIs via DSU's Android feature.
Apache License 2.0
1.48k stars 113 forks source link

Installation failed: Failed to mkdir /metadata/gsi/dsu/dsu: No such file or directory #157

Closed MauroDruwel closed 9 months ago

MauroDruwel commented 11 months ago

Hello,

First of all, I love the idea of this project, and I want to try it out. So I unlocked my S10's bootloader, still on One UI Stock. But when I want to install any GSI I get this errors.

Device: SM-G973F
SDK: Android 12 (31)
UserSelection(userSelectedUserdata=2147483648, userSelectedImageSize=-1, selectedFileUri=content://com.android.externalstorage.documents/document/primary%3ADownload%2Fsystem_raw.gz, selectedFileName=system_raw.gz)
SingleSystemImage(uri=content://com.android.externalstorage.documents/document/primary%3ADownload%2Fsystem_raw.gz, fileSize=3115487232, type=SINGLE_SYSTEM_IMAGE)
InstallationPreferences(isUnmountSdCard=true, useBuiltinInstaller=false)
operationMode: SHIZUKU
Package: vegabobo.dsusideloader
Version: 2.03 - 8 (release})
checkDynamicPartitions: false
checkUnavaiableStorage: true
checkReadLogsPermission: true
allocPercentage: 0.4
hasAvailableStorage: true
maximumAllowedForAllocation: 51

--------- beginning of main
D/DynamicSystemInstallationService: onStartCommand(): action=android.os.image.action.START_INSTALL
--------- beginning of system
I/DynamicSystemService: startInstallation -> /data/gsi/dsu
E/gsid    : Failed to mkdir /metadata/gsi/dsu/dsu: No such file or directory
I/DynamicSystemService: Failed to open /data/gsi/dsu
E/gsid    : write failed: /metadata/gsi/dsu/dsu/metadata_encryption_dir: No such file or directory
I/DynamicSystemService: Failed to install userdata
D/DynamicSystemInstallationService: status: NOT_STARTED, cause: ERROR_IO, detail: java.io.IOException: Failed to start installation with requested size: 2147483648

Is there anybody out there that maybe had the same error, or knows how I can fix this?

VegaBobo commented 9 months ago

Your device is incompatible, DSU requires dynamic partitions, your S10 does not seem to support that feature, devices released with Android 10 are likely to have dynamic partitions, which is not the case of your S10 (it was released with Android 9).