How to set the serial number, manufacturer and model data on the emulator

I have an Android app that I am testing in an emulator (SDK emulator with Nougat). I would like to receive the serial number of the device, manufacturer and model data for device management purposes.

In the emulator, I see the following values.

  • Build.SERIAL = unknown
  • Build.MANUFACTURER = unknown
  • Build.MODEL = AOSP for IA x86_64 emulator

Is there a way to change these values ​​to something else (for testing purposes)?

+4
source share

Source: https://habr.com/ru/post/1684648/


All Articles