Skip to content

Commit df2ebf2

Browse files
authored
explain about "sdk64_phone_x86_64"
1 parent 222e449 commit df2ebf2

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ To create a secure Android emulator image with the latest security patches, foll
7878

7979
```shell
8080
source ./build/envsetup.sh
81-
lunch sdk_phone_x86-userdebug
81+
lunch sdk_phone_x86_64-userdebug
8282
make emu_img_zip -j$(nproc)
8383
```
8484

@@ -97,6 +97,44 @@ To create a secure Android emulator image with the latest security patches, foll
9797
- `sdk-repo-linux-system-images-eng.[username].zip`
9898
- `repo-sys-img.xml`
9999

100+
### Postscript
101+
102+
After `android-14.0.0_r29`, using `lunch sdk_phone_x86_64-userdebug` will result in the following error:
103+
104+
```shell
105+
Valid combos must be of the form <product>-<release>-<variant>
106+
```
107+
108+
After consulting Google's documentation, it was found that the `trunk_staging` option needs to be added, but using `lunch sdk_phone_x86_64-trunk_staging-userdebug` will result in the following error:
109+
110+
```shell
111+
In file included from build/make/core/config.mk:380:
112+
In file included from build/make/core/envsetup.mk:369:
113+
build/make/core/product_config.mk:226: error: Cannot locate config makefile for product "sdk_phone_x86_64"
114+
```
115+
116+
I found that the `target/product/sdk_phone_x86_64.mk` file no longer exists, and I looked at the [commit](https://cs.android.com/android/_/android/platform/build/+/4bf479f6057ad532c792e26d3d958a8b50fc1f02) that describes the changes:
117+
118+
```diff
119+
Retire obsolete emulator targets and boards
120+
121+
the sdk_phone* targets are replaced with sdk_phone64*,
122+
the emulator* boards are replaced with emu64* in
123+
the device/generic/goldfish folder.
124+
125+
Bug: 295259752
126+
Test: presubmit
127+
Change-Id: I069a06baf02aea30db617f183abbfeaa6f968f29
128+
Signed-off-by: Roman Kiryanov <[email protected]>
129+
```
130+
131+
Therefore, the correct command to use should be:
132+
133+
```shell
134+
lunch sdk_phone64_x86_64-trunk_staging-userdebug
135+
```
136+
137+
100138
### Reference:
101139

102140
1. [Merging AOSP Security Patches into Custom ROMs | Aditya Telange.](https://adityatelange.in/blog/aosp/merge-security-patches-aosp/)

0 commit comments

Comments
 (0)