TeamWin / android_device_emulator_twrp

Device configs for making a ramdisk-recovery.img that you can boot in the Android emulator
222 stars 103 forks source link

[ISSUE]Cannot boot 3.4.0-0 in AVD #9

Open HemanthJabalpuri opened 3 years ago

HemanthJabalpuri commented 3 years ago

@Dees-Troy

I have installed Android 4.4.2 armeabi-v7a with SDK Tools 24.2.0 with Galaxy Nexus as Target, Skin HVGA and 1500MiB as SDCARD.

TWRP 3.4.0-0 (and all 3.x) version(s) are not booting at all with above said AVD configuration. Last version booting is 2.8.5.0 in my AVD with 3.4 goldfish kernel from android-4.4 branch.

All the images above 2.7.0.1 except 2.8.0.1 are Android boot.img format, that is the reason TWRP may not boot. We have to unpack it and pack ramdisk.cpio as gzip(?). 2.6.3.0 is working fine with all skins available. 2.8.5.0 is working fine with all skins but not 2.8.0.0.

I don't know if we have to use it in specific android avd or not.

As @dadreamer said here, we have to use it in arm architecture AVD only!(?)

Please correct me if I am wrong. Since there is no simple guide which explains all these things, I am not sure how to choose which version of Android AVD, which version of kernel to choose and lastly which version of TWRP to use.

More instructions like answering above small questions at https://twrp.me/twrp/androidemulator.html will help people like me.

Thanks

HemanthJabalpuri commented 3 years ago

Just found that we have to use twrpx86(_64) for x86(_64) architecture AVDs from https://github.com/TeamWin/android_device_emulator_twrpx86 and https://github.com/TeamWin/android_device_emulator_twrpx8664

But there is no precompiled ramdisk img is there like goldfish kernel and twrp.img😥. I am not a developer and don't have the knowledge to compile recovery.

HemanthJabalpuri commented 3 years ago

Download Link:- https://dl.twrp.me/twrp/

So, it is better use 2.8.x.y versions in android-4.4.2(19) and 3.x.y-z(upto 3.4.0-0 as of now) versions in android-6.0(23) AVDs.

HemanthJabalpuri commented 3 years ago

Update

With above references, I have set AVD with below configuaration

Result is black screen only.

But 3.0.2-0, 3.1.0-0(both unpacked img and gzipped ramdisk.cpio manually) are booting fine with above configuration.

Below configuaration works fine for me

MrDiagnose commented 1 year ago

never version of emulator requires newer goldfish kernel 3.10+