10

I'm working on some compatibility problem on Android development, My Android apps crashed on a rare device ROM, which has modified some framework(app.widget) code to cause the crash.

I want to reproduce the crash by my self without the device, I don't own the device and can't easily get the right device, except 2-hand market.

But the ROM I can download from the device's forum(system.img, userdata.img), Can I flash the ROM to the AVD or Genymotion directly? Any guide to achieve this?

Gohan
  • 2,422
  • 2
  • 26
  • 45
  • 3
    "Can I flash the ROM to the AVD or Genymotion directly?" -- I doubt it. After all, the emulator is not hardware, and the ROM will have hardware drivers expecting to work with hardware. – CommonsWare Feb 01 '16 at 12:37
  • Instead of trying to reproduce first, whats the exact error? – Jonas Köritz Nov 06 '16 at 08:30
  • @JonasKöritz it is the ROM specify bug, because that the ROM's framework code(TextView stuff) is a little differ than the normal code. My custom TextView extends TextView, will make the selection logic crash in a specify serials of operation. I already find the crash cause, and prevent it in the ROM using reflection, find the cause by dump the ROM's framework code. Map it to the exception stack. – Gohan Nov 06 '16 at 10:28

1 Answers1

0

Simple answer: no you can't. Device ROMs are entirely device specific. Genymotion runs on x86 (your Computer) which in most cases will not be the same architecture as your device. Even if you could "flash" this to genymotions "Flash-Storage", no executable including the kernel and bootloader will be able to start.

Jonas Köritz
  • 2,606
  • 21
  • 33