werasik2aa / Huawei-Unlock-Tool

Unlock bootloader / FRP Huawei
https://werasik2aa.github.io/Huawei-Unlock-Tool/
GNU General Public License v3.0
254 stars 33 forks source link

[Solved] [Issue] TWRP recovery not responding to touch | Rom Wont boot | ATU-L31 #17

Closed A2B1C4 closed 8 months ago

A2B1C4 commented 8 months ago

When I click read info, I am getting this error: [WARN] Not Found PCUI [WARN] Not Found DBADAPTER

werasik2aa commented 8 months ago

Hm its means, the vendor size bigger then should be, but its strange... We need to resize that vendor partition So now we fixed twrp touch working. But Why this happens. We need to resize vendor.img to match your device partition size...

*-> When you select vendor.img to flash you select what need to flash - vendor partition yes?

A2B1C4 commented 8 months ago

Yes, it is the vendor partition

werasik2aa commented 8 months ago

gpt partition of vendor lower size then vendor.img size it's very strange

werasik2aa commented 8 months ago

so we need use parted for resize partition on device. Or img tools for resize .img

A2B1C4 commented 8 months ago

There is also one more thing, I can't mount the vendor partition

werasik2aa commented 8 months ago

Try: fastboot erase vendor fastboot format vendor and try to mount vendor in twrp

if not helps: i can give one gpt . which i modified This gpt inside.zip

write it exactly as this command.

fastboot flash partition gpt_both0.bin

A2B1C4 commented 8 months ago

Can I flash the zip using twrp?

werasik2aa commented 8 months ago

nah, it's impossible. In twrp doesn't exist way to flash .bin file of partition. Only from fastboot working good. Inside .zip included .bin file. (gpt_both0.bin) there's no scripts to flash it.

A2B1C4 commented 8 months ago

OK, I will flash it in fastboot

werasik2aa commented 8 months ago

now reboot to fastboot again if it's boots to fastboot so repeat this.

fastboot format userdata fastboot format vendor

Then try to flash new vendor.img. It's should fit now.

And in twrp wipe data. If vendor.img fits to partition, write gsi's rom

A2B1C4 commented 8 months ago

OK, I will update you as soon as I bring a laptop

A2B1C4 commented 8 months ago

In the meantime, as soon as I rebooted from the fastboot mode back to the twrp recovery, it became unresponsive again.

werasik2aa commented 8 months ago

hm try to fastboot erase userdata fastboot erase cache fastboot flash vendor vendor.img fastboot -w fastboot reboot

werasik2aa commented 8 months ago

Try to flash vendor.img and gsi with fastboot as i say above . I think should work with our new gpt ...

A2B1C4 commented 8 months ago

OK

A2B1C4 commented 8 months ago

Good news, I was able to flash vendor using fastboot, can I also flash gsi using fastboot too? or I have to use twrp?

werasik2aa commented 8 months ago

you can flash gsi too. in twrp: adb shell twrp wipe data

A2B1C4 commented 8 months ago

OK, I flashed gsi using fastboot, fastboot -w then reboot

werasik2aa commented 8 months ago

yes. And let it bootup

A2B1C4 commented 8 months ago

OK, I forgot to wipe data, the system did bootloop, but it rebooted back to erecovery and managed to wipe data there, and the gsi did boot up.

werasik2aa commented 8 months ago

so it's working yes? And i can close issue if gsi full boot up

A2B1C4 commented 8 months ago

Yes, it is working, gsi full boot.

A2B1C4 commented 8 months ago

You can close

werasik2aa commented 8 months ago

one thing which is it was model i don't know exactly.

A2B1C4 commented 8 months ago

Model is ATU-L31, international version

werasik2aa commented 8 months ago

Solve files. [SOLVED] Vendor for gsi9 : https://drive.google.com/drive/mobile/folders/1aFTTMSArwBuF5tsJBkWJ7f_d7IQc7zyy Patched GPT if vendor size wont be flashed : This gpt inside.zip TWRP : https://4pda.to/forum/index.php?showtopic=909094&st=1000#entry88299205