This commit is mainly from I7a6a30bf8e8db9f2738594d187bb9148f138b8da, so
test cases and features are mostly same.
We change product_services partition name to "system_ext" because this
partition's purpose changes.
- installing a RRO package for framework from /system_ext/overlay
- installing apps from /system_ext/app
- installing priv-apps from /system_ext/priv-app
- installing permissions from
/system_ext/etc/[default-permissions|permissions|sysconfig]
Bug: 134359158
Test: `mma` under frameworks/base/tests/[libs|privapp]-permissions
adb sync && adb reboot
adb shell cmd package list libraries
=> confirmed com.android.test.libs.system_ext library
adb shell cmd package dump \
com.android.framework.permission.privapp.tests.system_ext
=> confirmed that the package is a priv-app
Change-Id: Ibbccbba64156a7bc464ffb3785fb8fe69ebb973c
62 lines
1.5 KiB
Plaintext
62 lines
1.5 KiB
Plaintext
android_app {
|
|
name: "PrivAppPermissionTest",
|
|
sdk_version: "current",
|
|
privileged: true,
|
|
manifest: "system/AndroidManifest.xml",
|
|
required: ["privapp-permissions-test.xml"],
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "privapp-permissions-test.xml",
|
|
src: "system/privapp-permissions-test.xml",
|
|
sub_dir: "permissions",
|
|
}
|
|
|
|
android_app {
|
|
name: "VendorPrivAppPermissionTest",
|
|
sdk_version: "current",
|
|
privileged: true,
|
|
manifest: "vendor/AndroidManifest.xml",
|
|
vendor: true,
|
|
required: ["vendorprivapp-permissions-test.xml"],
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "vendorprivapp-permissions-test.xml",
|
|
src: "vendor/privapp-permissions-test.xml",
|
|
sub_dir: "permissions",
|
|
proprietary: true,
|
|
}
|
|
|
|
android_app {
|
|
name: "ProductPrivAppPermissionTest",
|
|
sdk_version: "current",
|
|
privileged: true,
|
|
manifest: "product/AndroidManifest.xml",
|
|
product_specific: true,
|
|
required: ["productprivapp-permissions-test.xml"],
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "productprivapp-permissions-test.xml",
|
|
src: "product/privapp-permissions-test.xml",
|
|
sub_dir: "permissions",
|
|
product_specific: true,
|
|
}
|
|
|
|
android_app {
|
|
name: "SystemExtPrivAppPermissionTest",
|
|
sdk_version: "current",
|
|
privileged: true,
|
|
manifest: "system_ext/AndroidManifest.xml",
|
|
system_ext_specific: true,
|
|
required: ["system_extprivapp-permissions-test.xml"],
|
|
}
|
|
|
|
prebuilt_etc {
|
|
name: "system_extprivapp-permissions-test.xml",
|
|
src: "system_ext/privapp-permissions-test.xml",
|
|
sub_dir: "permissions",
|
|
system_ext_specific: true,
|
|
}
|