phhusson / treble_experimentations

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

moto e5 play not booting (comcast variant) #1527

Closed TheNextGamer21 closed 4 years ago

TheNextGamer21 commented 4 years ago

I tried installing the android 11 treble rom, system-roar-arm-aonly-vanilla.img.xz. I unzipped the file, booted my phone into fastboot, erased data, cache, dalvik, etc.. and ran these commands

  1. fastboot flash modem NON-HLOS.bin (my sim card was not working)
  2. fastboot erase modemst1
  3. fastboot erase modemst2
  4. fastboot flash system roar.img (renamed it to that)

The flash was successful and I entered flashboot reboot

My phone starts saying your bootloader is unlocked, and reboots sometimes into fastboot, sometimes into bootloop

Note: The previous android 10 gsi, system-quack-arm-aonly-gapps.img, works perfectly and boots just fine

Any help would be greatly appreciated

TheNextGamer21 commented 4 years ago

Note: lineage os 18 (android 11) gsi is also able to boot, bot I like phh-treble more :)

phhusson commented 4 years ago

Got logs?

TheNextGamer21 commented 4 years ago

IDK what logs to get, sorry I was in school

My bootloader is completely unlocked

I have both the arm32 stock rom and an arm64 aospextended rom, both supporting treble

I would prefer to use stock rom, I have twrp and orangefox recovery

Note: when flashing the android 11 gsi, I notice an error

PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\platform-tools\roar.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi

TheNextGamer21 commented 4 years ago

If you want logs however, I would be happy to get them if you could tell me how to, thanks!

Note #2: Here is my device's stock rom https://mirrors.lolinet.com/firmware/moto/rjames/official/Comcast/

phhusson commented 4 years ago

Flash GSI, boot it, then in recovery get /proc/last_kmsg and /sys/pfs/pstore and send them here

Le ven. 9 oct. 2020 à 22:33, TheNextGamer21 notifications@github.com a écrit :

IDK what logs to get, sorry I was in school

My bootloader is completely unlocked

I have both the arm32 stock rom and an arm64 aospextended rom, both supporting treble

I would prefer to use stock rom, I have twrp and orangefox recovery

Note: when flashing the android 11 gsi, I notice an error

PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\platform-tools\roar.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706389742, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OSQA3HU7A35AHVTW7DSJ5XRFANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

So I should basically just flash my stock rom and try it

Ok I will do it in an hour

TheNextGamer21 commented 4 years ago

None of those files exist, I don't even think android is able to boot

Videos of error: https://www.youtube.com/watch?v=fe7u7zZ70Mk https://www.youtube.com/watch?v=HO52PeDx6DE

Logs: PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\system-roar-arm64-ab-vanilla.img target reported max download size of 535822336 bytes sending sparse 'system' (458752 KB)... OKAY [ 15.088s] writing 'system'... OKAY [ 9.950s] sending sparse 'system' (458752 KB)... OKAY [ 15.608s] writing 'system'... OKAY [ 9.701s] sending sparse 'system' (458752 KB)... OKAY [ 15.645s] writing 'system'... OKAY [ 9.697s] sending sparse 'system' (458752 KB)... OKAY [ 15.831s] writing 'system'... OKAY [ 9.714s] sending sparse 'system' (434392 KB)... OKAY [ 14.877s] writing 'system'... OKAY [ 9.196s] finished. total time: 125.322s

TheNextGamer21 commented 4 years ago

Side Note: The device says bad key because the bootloader is unlocked, it disappears once android's boot animation comes up, which it never does in my case

phhusson commented 4 years ago

Why are you flashing A/B variant? I'm pretty sure it's supposed to be a-only

Le sam. 10 oct. 2020 à 00:45, TheNextGamer21 notifications@github.com a écrit :

None of those files exist, I don't even think android is able to boot

Videos of error: https://www.youtube.com/watch?v=fe7u7zZ70Mk https://www.youtube.com/watch?v=HO52PeDx6DE

Logs: PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\system-roar-arm64-ab-vanilla.img target reported max download size of 535822336 bytes sending sparse 'system' (458752 KB)... OKAY [ 15.088s] writing 'system'... OKAY [ 9.950s] sending sparse 'system' (458752 KB)... OKAY [ 15.608s] writing 'system'... OKAY [ 9.701s] sending sparse 'system' (458752 KB)... OKAY [ 15.645s] writing 'system'... OKAY [ 9.697s] sending sparse 'system' (458752 KB)... OKAY [ 15.831s] writing 'system'... OKAY [ 9.714s] sending sparse 'system' (434392 KB)... OKAY [ 14.877s] writing 'system'... OKAY [ 9.196s] finished. total time: 125.322s

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706431775, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4ORVXSJCLW5RMXWV4Q3SJ6G7BANCNFSM4SKL7H6Q .

0x15f2d commented 4 years ago

Note: when flashing the android 11 gsi, I notice an error

PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\platform-tools\roar.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi

I also got that error too. Use img2simg to convert the image to sparse form so it can be flashed correctly.

But usually, a normal ext4 image would work with fastboot fine and bootable if those spare free space doesn't eat up the whole system partition.

But prefer converting to sparse.

And @phhusson. Can you make images shipped with sparse by default? If I wasn't wrong the v300.f still shipped with raw ext4. Prove me I'm wrong please.

phhusson commented 4 years ago

"Invalid sparse file format at header magic" IS NOT AN ERROR This is perfectly normal, ignore it, and sparsing it won't change a thing

Le sam. 10 oct. 2020 à 17:25, 0x15f2d notifications@github.com a écrit :

Note: when flashing the android 11 gsi, I notice an error

PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\platform-tools\roar.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi

I also got that error too. Use img2simg to convert the image to sparse form so it can be flashed correctly.

But usually, a normal ext4 image would work with fastboot fine and bootable if those spare free space doesn't eat up the whole system partition.

But prefer converting to sparse.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706565943, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OQJUMZFC77ISFCB54LSKB4FXANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

ohhh thats why, i need a only varient

I'll try that later today, if it works, issue resolved

TheNextGamer21 commented 4 years ago

Issue still persists, same behavior

Logs: PS C:\Users\rever\Desktop> fastboot flash system .\system-roar-arm-aonly-vanilla.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi sending sparse 'system' (517254 KB)... OKAY [ 17.075s] writing 'system'... OKAY [ 11.620s] sending sparse 'system' (512138 KB)... OKAY [ 17.074s] writing 'system'... OKAY [ 11.579s] sending sparse 'system' (194940 KB)... OKAY [ 6.517s] writing 'system'... OKAY [ 4.570s] finished. total time: 68.447s PS C:\Users\rever\Desktop> fastboot reboot rebooting...

phhusson commented 4 years ago

and still nothing in /sys/fs/pstore or /proc/last_kmsg in TWRP?

Le sam. 10 oct. 2020 à 19:42, TheNextGamer21 notifications@github.com a écrit :

Issue still persists, same behavior

Logs: PS C:\Users\rever\Desktop> fastboot flash system .\system-roar-arm-aonly-vanilla.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi sending sparse 'system' (517254 KB)... OKAY [ 17.075s] writing 'system'... OKAY [ 11.620s] sending sparse 'system' (512138 KB)... OKAY [ 17.074s] writing 'system'... OKAY [ 11.579s] sending sparse 'system' (194940 KB)... OKAY [ 6.517s] writing 'system'... OKAY [ 4.570s] finished. total time: 68.447s PS C:\Users\rever\Desktop> fastboot reboot rebooting...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706586116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OQSLFE4LY2G7VUIZ63SKCMJXANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

nope, nothing

TheNextGamer21 commented 4 years ago

again, android 10 phh boots fine

TheNextGamer21 commented 4 years ago

but not android 11

TheNextGamer21 commented 4 years ago

i will try it with an arm64 ab custom rom

TheNextGamer21 commented 4 years ago

wait, i think there are log files

phhusson commented 4 years ago

K, flash Android 11 GSI, boot it, reboot into fastboot, flash Android 10 GSI, and grab /sys/fs/pstore and /proc/last_kmsg from Android 10 GSI (DO NOT reboot into recovery))

Le sam. 10 oct. 2020 à 20:09, TheNextGamer21 notifications@github.com a écrit :

but not android 11

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706589494, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4ORZM6NHLTJYSK4IEI3SKCPOZANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

twrp allows me to output the android 11 logs

TheNextGamer21 commented 4 years ago

i believe

TheNextGamer21 commented 4 years ago

ok so I should re install android (stock rom), flash android 11 gsi, boot it, reboot into fastboot, flash android 10 gsi, and grab /sys/fs/pstore without going into recovery?

How do I do that without recovery (new to fastboot so idk)

phhusson commented 4 years ago

No, flash Android 10 GSI, do factory reset, boot it once, reboot into fastboot, flash Android 11 GSI, boot it once, flash Android 10, boot it, recover logs. You need to go into recovery only for the factory reset which is done before flashing Android 11.

ghost commented 4 years ago

How did you get the aosp extended gsi

On Fri, Oct 9, 2020, 9:33 PM TheNextGamer21 notifications@github.com wrote:

IDK what logs to get, sorry I was in school

My bootloader is completely unlocked

I have both the arm32 stock rom and an arm64 aospextended rom, both supporting treble

I would prefer to use stock rom, I have twrp and orangefox recovery

Note: when flashing the android 11 gsi, I notice an error

PS C:\Users\rever\Desktop\Firmware> fastboot flash system C:\Users\rever\Desktop\platform-tools\roar.img target reported max download size of 535822336 bytes Invalid sparse file format at header magi

— 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/1527#issuecomment-706389742, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARJLT2FA22ODILV3WLLOLPLSJ5XRPANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

i have the full aosp extended rom

TheNextGamer21 commented 4 years ago

including system, boot, etc...

TheNextGamer21 commented 4 years ago

it is NOT a gsi, it is a full rom

TheNextGamer21 commented 4 years ago

according to the treble app, as far as i remember, it was arm64 and supported AB (system as root)

TheNextGamer21 commented 4 years ago

OK so first thing, when the system crashes on boot, fastboot says the reason is reboot mode set to fastboot

What I did Entered fastboot Flashed stock rom Flashed android 11 Booted android 11 Entered fastboot Flashed android 10 DID NOT BOOT ANDORID 10

What do I do now

EDIT: THIS IS WRONG, ignore it

TheNextGamer21 commented 4 years ago

oh i see what u want me to do

how am i supposed to pull files from the phone without recovery mode

phhusson commented 4 years ago

Whichever way you want, adb, root explorer, terminal...

Le sam. 10 oct. 2020 à 20:29, TheNextGamer21 notifications@github.com a écrit :

oh i see what u want me to do

how am i supposed to pull files from the phone without recovery mode

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706592012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OUU4CJMHMZ6NGI6XGDSKCR2BANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

OK so first thing, when the system crashes on boot, fastboot says the reason is reboot mode set to fastboot

What I did Entered fastboot Flashed stock rom Flashed android 10 Booted it (system starts successfully and connects to cellular and wifi network) Entered fastboot Flashed android 11 Booted it (fails after 10 seconds and enters fastboot) Flashed android 10 Now on the welcome screen

What do I do now

TheNextGamer21 commented 4 years ago

Ok device not play protect certified (dont care google) Gonna install root file explorer (zarchiver) What files should I get

phhusson commented 4 years ago

/sys/fs/pstore and /proc/last_kmsg

Le sam. 10 oct. 2020 à 20:57, TheNextGamer21 notifications@github.com a écrit :

Ok device not play protect certified (dont care google) Gonna install root file explorer (zarchiver) What files should I get

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706595833, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OTEAFCMAKUHECQCAQLSKCVC5ANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

/sys/fs/pstore is a folder?

TheNextGamer21 commented 4 years ago

logs.zip

phhusson commented 4 years ago

well the only file in this zip is empty. Yes pstore is a folder

Le sam. 10 oct. 2020 à 21:11, TheNextGamer21 notifications@github.com a écrit :

logs.zip https://github.com/phhusson/treble_experimentations/files/5359773/logs.zip

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706597457, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OTVWSEBNFGCPXULKFDSKCWVVANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

its empty???

phhusson commented 4 years ago

yes the only file in the zip is logs/pstore/annotate-ramoops-0 and its size is 0

TheNextGamer21 commented 4 years ago

Here is screenshot Screenshot_20201010-141546

phhusson commented 4 years ago

well it says 0 byte so empty...

Le sam. 10 oct. 2020 à 21:19, TheNextGamer21 notifications@github.com a écrit :

Here is screenshot [image: Screenshot_20201010-141546] https://user-images.githubusercontent.com/72624720/95663276-8212a700-0b03-11eb-8b82-51c5cf96c13f.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#issuecomment-706598450, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OW6OWNTF3ETAIBLLILSKCXSJANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

IDK what to even do now

TheNextGamer21 commented 4 years ago

I'll try it with the arm64 ab rom

TheNextGamer21 commented 4 years ago

@phhusson I found a rom for my phone that supports treble and is much more likely to work

https://forum.xda-developers.com/moto-e5/development/rom-aospextended-rom-v6-7-moto-e5-play-t4096167

TheNextGamer21 commented 4 years ago

system has successfully started android 11 using the 3rd party rom

Until @phhusson finds a fix, you can only use 3rd party roms to be able to use the android 11 gsi

Issue CLOSED

phhusson commented 4 years ago

How am I supposed to find a fix if you won't help me...?

Le sam. 10 oct. 2020 à 21:41, TheNextGamer21 notifications@github.com a écrit :

Closed #1527 https://github.com/phhusson/treble_experimentations/issues/1527.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1527#event-3863056953, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAA4OXY6A27LCN2TMKEQP3SKC2GTANCNFSM4SKL7H6Q .

TheNextGamer21 commented 4 years ago

@phhusson idk what to get when the file is 0 bytes

TheNextGamer21 commented 4 years ago

it baffles me how android 10 gsi boots but android 11 gsi does not

I will re open the issue I guess

TheNextGamer21 commented 4 years ago

I noticed one thing, when I flashed it with the 3rd party rom, it did not show the sparse error while flashing, not sure why