Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Change Serial Number (ro.serialno) on Android Virtual Device (Emulator) on Apple Silicon #69

Open
simonhuwiler opened this issue Sep 24, 2021 · 4 comments

Comments

@simonhuwiler
Copy link

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!

@no-coder-here
Copy link

Have you managed to find solution to your problem? Having the same issue and would appreciate any help.

@simonhuwiler
Copy link
Author

No :-(

@fielding
Copy link

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

@simonhuwiler
Copy link
Author

@fielding Unfortunately not. I switched to a real device.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants