phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.37k stars 657 forks source link

How to flash phh gsi and root on Vankyo P31 (using unisoc sc9863a) #2614

Open MixSens opened 7 months ago

MixSens commented 7 months ago

Hey all,

I have a Vankyo P31 running on Android 10, it has a unisoc sc9863a ,I wanted to flash gsi on the tablets as they usually dont get any updates and the security patch is stuck sometime around 2020,

I was able to unlock the bootloader using hovatek's modified fastboot tutorial.

The real issue lies in the fact that I am not able to find firmware files for this device anywhere at all 😭 (as magisk needs boot.img for patch) and these devices don't have twrp builds

Also btw it has ramdisk support

Can anybody suggest on this topic.Thanks for your time πŸ˜€

ps: tried flashing magisk also via adb sideload, ends up at error 21 signature verification failed

winzkh commented 7 months ago

You can try using a DSU Sideloader to sideload the root with SuperSU and extract the device's boot.img from it.

MixSens commented 6 months ago

Sorry for the late response

I tried the dsu method, only for the tab to reboot and boot back to the stock rom😭

I also tried flashing it via fastboot, it ends up with errors like -data too large -unknown command

The commands I entered were correct as they worked while flashing on other phones

on a side note, these devices don't seem to have any hardware (button combo) way to directly boot to recovery or fastboot mode, only the adb reboot method works

Thanks for your timeπŸ˜€

chenhan2020 commented 1 month ago

Hello, I also have a device with Unisoc Sc9863a.

Any device with Unisoc will still have Secure Boot enabled even after unlocking the Bootloader.This means that even if it is unlocked, it can only be written to the system partition.Other partitions such as boot, recovery, vbmeta, etc. are still protected.So even if you have a boot image, it's useless.

However, there is a method to flash Magisk. You just need to sign the boot.img after patching it with Magisk before flashing it to the device. Moreover, the Unisoc-specific fastboot tool is required for flashing.

PS: You need to add "-S 200M" after "fastboot flash" to specify the maximum segment size, which can eliminate the "Data too large" error.

chenhan2020 commented 1 month ago

The command for flashing is like "fastboot flash -S 200M [partition_name] [partition.img]"