Build test_com.android.adbd.apex.
Build a test apex with an INT_MAX version code for the purposes of update/rollback testing. Test: atest adbd_e2e_tests # in internal master Change-Id: I0e616db03dcbc940af2741dfca5b4c5f50a5a654
This commit is contained in:
parent
d6289bdf13
commit
7da5d8a977
3 changed files with 53 additions and 36 deletions
|
|
@ -730,39 +730,3 @@ cc_test_host {
|
|||
"fastdeploy/testdata/sample.cd",
|
||||
],
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.adbd.ld.config.txt",
|
||||
src: "apex/ld.config.txt",
|
||||
filename: "ld.config.txt",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.adbd",
|
||||
manifest: "apex/apex_manifest.json",
|
||||
|
||||
binaries: ["adbd"],
|
||||
prebuilts: ["com.android.adbd.init.rc", "com.android.adbd.ld.config.txt"],
|
||||
|
||||
key: "com.android.adbd.key",
|
||||
certificate: ":com.android.adbd.certificate",
|
||||
}
|
||||
|
||||
apex_key {
|
||||
name: "com.android.adbd.key",
|
||||
public_key: "apex/com.android.adbd.avbpubkey",
|
||||
private_key: "apex/com.android.adbd.pem",
|
||||
}
|
||||
|
||||
android_app_certificate {
|
||||
name: "com.android.adbd.certificate",
|
||||
certificate: "apex/com.android.adbd",
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.adbd.init.rc",
|
||||
src: "apex/adbd.rc",
|
||||
filename: "init.rc",
|
||||
installable: false,
|
||||
}
|
||||
|
|
|
|||
49
adb/apex/Android.bp
Normal file
49
adb/apex/Android.bp
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
apex_defaults {
|
||||
name: "com.android.adbd-defaults",
|
||||
|
||||
binaries: ["adbd"],
|
||||
prebuilts: ["com.android.adbd.init.rc", "com.android.adbd.ld.config.txt"],
|
||||
|
||||
key: "com.android.adbd.key",
|
||||
certificate: ":com.android.adbd.certificate",
|
||||
}
|
||||
|
||||
apex {
|
||||
name: "com.android.adbd",
|
||||
defaults: ["com.android.adbd-defaults"],
|
||||
manifest: "apex_manifest.json",
|
||||
}
|
||||
|
||||
// adbd apex with INT_MAX version code, to allow for upgrade/rollback testing.
|
||||
apex {
|
||||
name: "test_com.android.adbd",
|
||||
defaults: ["com.android.adbd-defaults"],
|
||||
manifest: "test_apex_manifest.json",
|
||||
file_contexts: ":com.android.adbd-file_contexts",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.adbd.ld.config.txt",
|
||||
src: "ld.config.txt",
|
||||
filename: "ld.config.txt",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "com.android.adbd.init.rc",
|
||||
src: "adbd.rc",
|
||||
filename: "init.rc",
|
||||
installable: false,
|
||||
}
|
||||
|
||||
apex_key {
|
||||
name: "com.android.adbd.key",
|
||||
public_key: "com.android.adbd.avbpubkey",
|
||||
private_key: "com.android.adbd.pem",
|
||||
}
|
||||
|
||||
android_app_certificate {
|
||||
name: "com.android.adbd.certificate",
|
||||
certificate: "com.android.adbd",
|
||||
}
|
||||
4
adb/apex/test_apex_manifest.json
Normal file
4
adb/apex/test_apex_manifest.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "com.android.adbd",
|
||||
"version": 2147483647
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue