phhusson / treble_experimentations

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

bootloop on bv9900 #1533

Closed openStove closed 3 years ago

openStove commented 4 years ago

I've successfully flashed the recovery with twrp, then I tried to flash system, with the last lienage from here (A-only), and I got a boot loop... I've flashed the system back to the vendors one, and I'm able to boot at least again on the stock droid...

I've also tried to flash system over fastboot, its the same..

Treble compatibility check was made, I have A-only, and installed the A-image

Ahmedazim7804 commented 4 years ago

try to make clean install if orange fox recovery project is available try that recovery i was getting same problem so i tried clean install and its boot-up in mi max 2 (oxygen) arm64-a only

openStove commented 4 years ago

That doesn't help much... blackview has no orange fox image available... I've already tried clean install over MTK tools...

Elenedeath commented 4 years ago

Strange, i have a european BV9900 EEA received with rom 'BV9900_EEA_S900AA_V1.0_20200522V12_20200523-0035' and i have an A/B phone.

I have compiled my own version of TWRP because the only version I found does not work on my phone.

I flashed this image 'lineage-17.1-20201012-UNOFFICIAL-treble_arm64_bvS.img.xz' on the phone without wipe the data on the first try, but on startup it was full of application crashes.

Due to this i wipe data, the phone works but a really annoying graphics issue does not go away. it's the only bug i found for the moment in 2 hour test and i need to investigate before issue something here.

For me, your treble check are incorrect. You need to recheck with the correct app and if you are sure you have a A only system maybe try another TWRP or build one like me.

ps: try this app work great for me > https://play.google.com/store/apps/details?id=tk.hack5.treblecheck

edit: i found a workaround to the graphical bug, go in Phh Treble Settings > Misc Features > uncheck Disable HW overlays and the bug disapear.

openStove commented 4 years ago

Strange, i have a european BV9900 EEA received with rom 'BV9900_EEA_S900AA_V1.0_20200522V12_20200523-0035' and i have an A/B phone.

I have compiled my own version of TWRP because the only version I found does not work on my phone.

I flashed this image 'lineage-17.1-20201012-UNOFFICIAL-treble_arm64_bvS.img.xz' on the phone without wipe the data on the first try, but on startup it was full of application crashes.

Due to this i wipe data, the phone works but a really annoying graphics issue does not go away. it's the only bug i found for the moment in 2 hour test and i need to investigate before issue something here.

For me, your treble check are incorrect. You need to recheck with the correct app and if you are sure you have a A only system maybe try another TWRP or build one like me.

ps: try this app work great for me > https://play.google.com/store/apps/details?id=tk.hack5.treblecheck

edit: i found a workaround to the graphical bug, go in Phh Treble Settings > Misc Features > uncheck Disable HW overlays and the bug disapear.

Would you give me your twrp ? It would probably save me time... Thanks for the advices, I'll try this later today !

openStove commented 4 years ago

You were write, the app you mentioned tell me I've a A/B phone, and the other treble check app told me A-only... I think I have the same as you

Elenedeath commented 4 years ago

for sure this is my build something doesn't work like mtp usb and usb OTG, i work on this. But backup and restore on internel and external storage work. Need to try encryption backup but for the rest, it's fine.

simply flash it with fasboot like other release but i think you know how to do this or you dont try to use GSI. https://github.com/Elenedeath/twrp_device_Blackview_BV9900/releases/download/V0.1-alpha/TWRP340-BV9900.img

openStove commented 4 years ago

I'm really lost : When I flash your twrp, I'm going into bootloop, i'm also not able anymore to boot normaly When I flash again the stock recovery, I'm able again to boot to both recovery and system... why?

Elenedeath commented 4 years ago

maybe not the same phone has me or maybe my recovery are phone specific, not a pro of TWRP compilation but do the job.

Send me your recovery and i check and try to compile a custom one for your phone.I can check if you have something different than my stock recovery.

ghost commented 4 years ago

Can I also send my stock recovery I also need twrp I usually work with adb

On Tue, Oct 27, 2020, 12:08 AM Elenedeath <notifications@github.com wrote:

maybe not the same phone has me or maybe my recovery are phone specific, not a pro of TWRP compilation but do the job.

Send me your recovery and i check and try to compile a custom one for your phone.I can check if you have something different than my stock recovery.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1533#issuecomment-716872676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARJLT2A2R4H5C3TFXLKQMKDSMX6NPANCNFSM4SM55ZLA .

Elenedeath commented 4 years ago

yes i want your stock recovery but if you dont know how to backup your original recovery before flash something better for you to understand how your phone and software like sp flash tool work before try to flash or use an GSI rom with an maybe bugged TWRP. If you don't have original recovery before flashing twrp recovery, i can't help you and can't compile a twrp.

openStove commented 4 years ago

Hi Elene, I updated the recovery here, but actually is the one from the stockrom published by Blackview here : https://bbs.blackview.hk/viewtopic.php?f=291&t=532819

https://github.com/openStove/bv9900

i've made an update through Android System Update, and have now exact the same Rom as you for the system : BV9900_EEA_S900AA_V1.0_20200522V12

openStove commented 3 years ago

Could you tell me how to you flash twrp ? over sp_flash_tool oder flashboot ?

007fred50 commented 3 years ago

Hello,

have you a twrp file? if so boot into fastboot (fastboot boot twrp.img) wait for the boot-logo boot up

does that help you?

openStove commented 3 years ago

After a lot of trial error, what I was missing was flashing vbmeta...

So here for the next newbies, what worked by me, thank to the help I get : fastboot -u flash system lineage-17.1-20201215-UNOFFICIAL-treble_arm64_bvS.img

And then using stock rom images :

fastboot -u flash --disable-verity --disable-verification vbmeta BV9900_EEA_S900AA_V1.0_20191225V08_user_20200103_2/vbmeta.img

fastboot -u flash userdata BV9900_EEA_S900AA_V1.0_20191225V08_user_20200103_2/userdata.img

Gaeldrin commented 3 years ago

@openStove you absolutely amazing human being, I just want to say THANK YOU as I spent last couple of days trying to figure this out with no success - I even saw one or two places mention flashing vbmeta but nowhere any specific instructions on how/when to do it. Again, thank you for thinking about writing the info.