android / android/android-test

Expose emulator images for APIs 29+ in Bazel

Open
#1,107 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.2k
Forks
342
Avg merge
11h 29m
Merged PRs (30d)
2

Description

### Description
https://github.com/android/android-test/blob/master/tools/android/emulated_devices/macro/image_info.bzl currently exposes only images up to API 28. API 28 is Android 9 and was released three years ago. It would be nice to have this updated for more recent API levels.

Device templates also stopped with the Pixel 3 family in https://github.com/android/android-test/tree/master/tools/android/emulated_devices. Having more recent ones is less useful, but would still be a nice touch.

### Steps to Reproduce
Try to use e.g. `@android_test_support//tools/android/emulated_devices/generic_phone:android_29_x86_qemu2`

### Expected Results
It should work.

### Actual Results
```
no such target '@android_test_support//tools/android/emulated_devices/generic_phone:android_29_x86_qemu2': target 'android_29_x86_qemu2' not declared in package 'tools/android/emulated_devices/generic_phone' (did you mean 'android_19_x86_qemu2'?)
```

### AndroidX Test and Android OS Versions
1.4.0

### Link to a public git repo demonstrating the problem:

Contributor guide

Open the contributing guide

Research direction

Start with tools/android/emulated_devices/macro/image_info.bzl and the tools/android/emulated_devices/generic_phone package. Check how existing API 28 image targets are defined, then add the requested API 29+ targets and verify that @android_test_support//tools/android/emulated_devices/generic_phone:android_29_x86_qemu2 resolves in Bazel.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
build-system, mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.