[go: up one dir, main page]

Skip to content

vladislav-smirnov/automotive-emulator-aosp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automotive AOSP Emulator

In this repo you can download binary files of avd for Android studio or standalone. I will describe hot to use it.

How to

Let's start to work.

Before the next step you should already have Android SDK and Android Studio.

Download zip archive

Use this link to download

Unpack zip archive

Unzip archive to "Android SDK path"/system-images/android-30. Result of that is aosp_11 folder into "android-30" folder. Image

Create avd

I describe method for android studio. You can use different ways.

  1. Open Android Studio
  2. Open AVD manager Menu Tools -> AVD Manager Image Image
  3. Open Virtual device configuration. Press button "Create Virtual Device" Image
  4. Create New Hardware Profile
  • Put device name as you wish. example "car"
  • Choose device type: "Android Automotive"
  • Set screen size. It depends of your requrements. I recommend to set 10.
  • Set resolution. I recommend 1920x1080.
  • Set Supported device states. I recommend choose only "Landscape". Image
  1. Create AVD
  • Select HW. Image
  • Select System image Image
  • Finish avd creation. Don't forget to change avd name. Image
Start AVD

To start AVD you can use Android studio or terminal(console). I use terminal.

  • go to "Android SDK path"/emulator Image
  • start emulator by command ./emulator -avd -skin 1920x1080 -gpu on -verbose -debug-init -writable-system -selinux permissive -no-snapshot Image

Only few parameters are important:

  • -writable-system
  • -avd
Wait when emulator will be opened.

Result: Image

For more details see developes android.

Root and remount

If you want to change anything on system partition you need to remount it.

use this commands:

  • adb root
  • adb shell avbctl disable-verification
  • adb reboot
  • adb root
  • adb remount

Releases

No releases published

Packages

No packages published