[Lenovo Legion Y700] vicenteMartinezY700:
DSU METHOD

Most of the custom ROMS outhere does not have Root permissions so, it becomes hard to install modules to fix GSI device specific problems.

Important notes:

1.- I'm in Android 14 for this process. (crDroid 10.0)

2.- If you're not in the same android version and would like to refer this guide

Prerequistes

1.- Bootloader unlocked

2.- Model: 2022 (test on your own risk)

3.- ADB and fast-tools installed

4.- If your device does not detect the fastboot driver, follow this guide -> Install bootloader interface drivers

Long method:

Steps (Script steps)

Install the latest version of Magisk

Install the latest version of DSU loader

Search any room with Root privileges included I used this -> "system-squeak-arm64-ab-vanilla.img.xz"

Where to search the same -> here

Move the downloaded xz file to your device

Go to DSU Sideloader app

Select the xz file in the first browse section

Enable user data size as 2-3 gb (up to you)

Click "Install"

Should look like this:

View attachment 6056543

Once you click on install a process for decompiling will be done and you will be prompted to click on "proceed"

When DSU-Sideloder processing is completed, the ADB command will be displayed as shown below, so enter it on your computer.

Command sample:

adb shell sh "/storage/emulated/0/Android/data/vegabobo.dsusideloader/files/install"

CMD complete sample:

C:\Projects\Android\platform-tools\platform-tools>adb shell sh "/storage/emulated/0/Android/data/vegabobo.dsusideloader/files/install"
Starting: Intent { act=android.os.image.action.START_INSTALL dat=file:///... cmp=com.android.dynsystem/.VerificationActivity (has extras) }
DSU installation activity has been started!

Once finished you will get a notification to Restart your device

Sample:

View attachment 6056545

Once your device is restarted ADB is going to be automatically enabled

If not enabled go to developer options and enable usb debugging

Extract boot.img

Run below scripts

adb shell
su
cd /dev/block/bootdevice/by-name/
mkdir /sdcard/backup_img
for file in *; do if [[ "${file}" = boot* ]]; then dd if=/dev/block/bootdevice/by-name/"${file}" of=/sdcard/backup_img/"${file}".img ; else continue ; fi done

Sample output:

C:\Projects\Android\platform-tools\platform-tools>adb shell
phhgsi_arm64_ab:/ $ su
:/data/data # cd /dev/block/bootdevice/by-name/
:/dev/block/bootdevice/by-name # mkdir /sdcard/backup_img
:/dev/block/bootdevice/by-name # for file in *; do
"${file}" of=/sdcard/backup_img/"${file}".img ; else continue ; fi <
> done
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 2.560979 s, 37 M/s
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.241145 s, 398 M/s
:/dev/block/bootdevice/by-name #

Now turn on the USB data transfer to fetch the boot img and backup them in your PC

View attachment 6056555

Restart the device (From notifications panel) and send the backup files to our main Android System

View attachment 6056554

Open Magisk App

Click on "Install"

Select "Select and Path a File"

Select "boot_b.img"

Click on "LET'S GO ->"

You should get something like this:

View attachment 6056556

Now on your PC, enable the data transfer and save the generated file, it will be in downloads

View attachment 6056557

Enable your ADB console and type "adb devices"

C:\Projects\Android\platform-tools\platform-tools>adb devices
List of devices attached
HA1R6WTF device

If your device is connected succesfully

Let's go to bootloader

adb reboot bootloader

Confirm we have a fastboot device attached in the PC

fastboot devices

C:\Projects\Android\platform-tools\platform-tools>fastboot devices
HA1R6WTF fastboot

Flash the image

fastboot flash boot "your patched image location"

Ex.

C:\Projects\Android\platform-tools\platform-tools>fastboot flash boot "C:\Projects\Android\Y700 bootImg\patched boots\magiskPatchedBootB.img"
Sending 'boot_b' (98304 KB) OKAY [ 3.052s]
Writing 'boot_b' OKAY [ 0.120s]
Finished. Total time: 3.192s

On your device click on Vol-/Vol+ until you get "Restart recovery", select using "lock" button

Once in recovery select Restart system now using "lock" button

Once reset, go to Magisk app and reboot the device from there to finish the installation.

Easy method:

Steps (Script steps) -> download everything from here

Install the latest version of Magisk

Download the patched img file i did from my device.

Enable your ADB console and type "adb devices"

C:\Projects\Android\platform-tools\platform-tools>adb devices
List of devices attached
HA1R6WTF device

If your device is connected succesfully

Let's go to bootloader

adb reboot bootloader

Confirm we have a fastboot device attached in the PC

fastboot devices

C:\Projects\Android\platform-tools\platform-tools>fastboot devices
HA1R6WTF fastboot

Flash the image

fastboot flash boot "your patched image location"

Ex.

C:\Projects\Android\platform-tools\platform-tools>fastboot flash boot "C:\Projects\Android\Y700 bootImg\patched boots\magiskPatchedBootB.img"
Sending 'boot_b' (98304 KB) OKAY [ 3.052s]
Writing 'boot_b' OKAY [ 0.120s]
Finished. Total time: 3.192s

On your device click on Vol-/Vol+ until you get "Restart recovery", select using "lock" button

Once in recovery select Restart system now using "lock" button

Once reset, go to Magisk app and reboot the device from there to finish the installation.

At the end of any method you will have magisk installed on your device.

View attachment 6056561

Thanks to whoever made this post where i took all info.