phhusson / treble_experimentations

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

HTC U11 life Bootloop #1481

Open Zocker1012 opened 4 years ago

Zocker1012 commented 4 years ago

I tried to boot up the newest GSI on my u11 life (Android One ).

Unfortunately, it is stuck in the bootscreen. Only shows Android Text. ADB devices works,but shows unauthorized. Waited more than 1 hour, nothing.

I also tried following steps :

fastboot -w Flash Stock BOOT.img Flash GSI ROM Flash vbmeta ( fastboot --disable-verity --disable-verification flash vbmeta vbmeta.img)

Does anyone have any ideas what I can try?

Pey-crypto commented 3 years ago

Please post ADB log... and adb debugging is enabled by default on GSI ROMS, -Please check any additional devices had been connected to the computer

Zocker1012 commented 3 years ago

Please post ADB log... and adb debugging is enabled by default on GSI ROMS, -Please check any additional devices had been connected to the computer

Hey, thanks for trying to help me.

Unfortunately I can't make an adb log. adb only shows unauthorized.

Newest GSI v222 flashed. Charging works. Only shows Android logo on screen. No other reactions.

323233232232232

Pey-crypto commented 3 years ago

Try pushing the device into fastboot mode Power off your device completely. Press and hold the Volume Down + Power button until you see Download mode screen

Then flash a twrp image appropriate for your device https://forum.xda-developers.com/u11/development/recovery-twrp-touch-recovery-t3617028 from there you can run adb unfettered

Or maybe try checking the values for adb_debugging in build.prop file(you will find within the system and vendor folder) try setting that true Use adb pull cmd to pull the file to the computer for editing and adb push for pushing the file to partition

Zocker1012 commented 3 years ago

No TWRP available for the U11 life (Android One)

I tried another PC. No change. Windows shows ADB Interface connected in Device Manager.

But I noticed that the COM & LPT ports show the following:

Qualcomm HS-USB Diagnostics 9091 --> some serial port connection i think

Windows automatically installs this driver on all of my devices.

Still adb unathorized.

Any way to check if the flashed gsi image file has adb debugging enabled?

Is it possible to unzip the system.img to check this?

Any other ideas?

Thanks for helping ;)

Pey-crypto commented 3 years ago

you can unzip the system.img to find the build.prop, but maintain a copy because repacking is bit of a problem The system.img is in sparse format so you need some tools https://github.com/KinglyWayne/simg2img_win

Also, I remember those ports from an Exploit Actually https://alephsecurity.com/2018/01/22/qualcomm-edl-1/

I think you need to find an EDL Programmer for your device but there is an entire forum devoted to your device https://forum.xda-developers.com/u11-life/how-to/collection-htc-u11-life-android-one-t3768265

I have a sneaking doubt whether you have used the correct GSI image as this device has a/b partition

Zocker1012 commented 3 years ago

GSI image used is v222 - system-quack-arm64-ab-vanilla.img.xz Checked build.prop . Everything is right there.

Why EDL Programmer? Everything works with my device, with the exception of the GSI installation. Stock OS works. Or would an edl programmer help with my problem?

I think everything would be easier if TWRP were possible but unfortunately there was no progress there.

Pey-crypto commented 3 years ago

I mentioned EDL Programmer because you mentioned the ports, these ports are used by the EDL programmer.

Which slot did u use to flash the GSI ROM into Also try 8.1 GSI, looks like there are some bugs in HTC's implementation of treble https://forum.xda-developers.com/u11-life/how-to/treble-gsi-running-android-one-8-1-t3823015/post77676237

Zocker1012 commented 3 years ago

Used slot b , the active one.

SHA-NDY commented 3 years ago

Used slot b , the active one.

Did you make any progress on that? I just reactivated my U11 Life and now want to get rid of stock

Zocker1012 commented 3 years ago

Used slot b , the active one.

Did you make any progress on that? I just reactivated my U11 Life and now want to get rid of stock

Unfortunately, I have not yet made any progress at GSI. The GSI just doesn't want to boot on my U11 life (Android One). I don't know what else to try Maybe I will start a new attempt in a few days I would also appreciate a cleaner system, possibility for magisk etc...

SHA-NDY commented 3 years ago

Unfortunately, I have not yet made any progress at GSI. The GSI just doesn't want to boot on my U11 life (Android One). I don't know what else to try Maybe I will start a new attempt in a few days I would also appreciate a cleaner system, possibility for magisk etc...

I tried booting the GSI with dm-verity removed from boot.img but no success. Still looping in bootanimation. I also tried to remove some stock apps from system in the past but always ended up with an unbootable system. Perhaps removing dm-verity works on that part. I'll also try and report back. Magisk with the stock ROM is no problem.

SHA-NDY commented 3 years ago

Unfortunately, I have not yet made any progress at GSI. The GSI just doesn't want to boot on my U11 life (Android One). I don't know what else to try Maybe I will start a new attempt in a few days I would also appreciate a cleaner system, possibility for magisk etc...

I installed Magisk and ended up debloating the system a bit. I used a Magisk module called "Debloater (Terminal Emulator)" and it works very well. You can choose from installed apps and remove them (in fact they are still there after reboot but you can then uninstall them instead of just deactivate them). So you could clean your system a bit.