vib example client on product

Bug: partner question
Test: # PRODUCT_PACKAGES += ExampleVibratorJavaProductClient
    adb root
    adb setenforce 0 # for find permission
    adb shell am start -n example.vib/example.vib.MyActivity
    # vibrator works

Change-Id: Ie70f4cfe0f546a43a5d11bbdd1f1143d817aab50
This commit is contained in:
Steven Moreland
2023-01-09 21:52:23 +00:00
parent 466f3c55a9
commit f2ff92f3e0
5 changed files with 17 additions and 1 deletions

View File

@@ -10,7 +10,8 @@ package {
cc_library {
name: "libexample_vib_getter",
srcs: ["getter.cpp"],
vendor: true,
product_available: true,
vendor_available: true,
shared_libs: [
"liblog",
"libbinder_ndk",
@@ -26,6 +27,21 @@ android_app {
vendor: true,
static_libs: ["android.hardware.vibrator-V1-java"],
jni_libs: ["libexample_vib_getter"],
use_embedded_native_libs: true,
jarjar_rules: "jarjar.txt",
stl: "c++_shared",
srcs: ["example/vib/MyActivity.java"],
sdk_version: "system_current",
visibility: [":__subpackages__"],
}
android_app {
name: "ExampleVibratorJavaProductClient",
privileged: true,
product_specific: true,
static_libs: ["android.hardware.vibrator-V1-java"],
jni_libs: ["libexample_vib_getter"],
use_embedded_native_libs: true,
jarjar_rules: "jarjar.txt",
stl: "c++_shared",
srcs: ["example/vib/MyActivity.java"],