Change Serial Number (ro.serialno) on Android Virtual Device (Emulator) on Apple Silicon
simonhuwiler opened this issue · comments
Hi everyone
I am using the Android Studio Preview Version and thought, maybe this is the right place :)
I need to change the Serial Number (ro.serialno, and other IDs) of an emulated Android Device. There are not many ressources concerning that issue.
Ideas:
- Change it by adb shell (setprop ro.serialno=123), but it is a read only property
- Add serial number by kernel parameters (
emulator -avd my_device -prop ro.serialno=123456 -no-snapshot-load
), but I get a warning:WARNING: unexpected '-prop' value ('ro.serialno=123456'), only 'qemu.*' properties are supported
- Change the Number by editing the emulator (or virtual device) in a hex editor. But I could not find, where it is stored
Do you have any ideas?
Environment: MacBook M1, Android 11, arm64-v8a (Api-Level 30)
Thank you very much!
Have you managed to find solution to your problem? Having the same issue and would appreciate any help.
No :-(
Any update on this? I'm basically at the same point @simonhuwiler was. I tried rooting the emulator and setting the serialno via setprop and also via the kernel params, but no luck.
Would love to know if you ever solved this @simonhuwiler
@fielding Unfortunately not. I switched to a real device.