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

Dsu installation fails needs to have more than 512 extents #181

Open Benjamin2389 opened 7 months ago

Benjamin2389 commented 7 months ago

I can't install Gsi through Dsu sideloader. I have root access and magisk module installed. Still doesn't work. See the pictures I added. What can I do to resolve that? IMG_20240407_224755_932 IMG_20240407_224723_225

aadi450 commented 3 months ago

The error message "File is too fragmented, needs more than 512 extents" indicates that the GSI file is too fragmented for the Dynamic System Updates (DSU) installation process to handle. Here are some steps you can try to resolve this issue:

  1. Defragment the File:

    • Copy the GSI image to another location on your device or to a different device (like a PC) and then copy it back. This can sometimes reduce fragmentation.
  2. Use a Different Storage Medium:

    • Move the GSI file to a different storage location, such as an SD card, and try the installation from there.
  3. Check Available Storage:

    • Ensure you have sufficient free storage space on your device. Sometimes, limited space can contribute to fragmentation issues.
  4. Re-download the GSI File:

    • Download the GSI file again from a reliable source. The file might have been corrupted during the initial download.
  5. Use a Different Installation Method:

    • Instead of using DSU Sideloader, try using the command line method to install the GSI. You can use the adb tool and fastboot mode.

    Example:

    adb reboot fastboot
    fastboot flash system <path-to-gsi-file>
    fastboot reboot
  6. Update DSU Sideloader:

    • Ensure you are using the latest version of DSU Sideloader, as updates may include fixes for such issues.

If the issue persists after trying these steps, please let me know for further assistance.