Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f2ff92f3 authored by Steven Moreland's avatar Steven Moreland
Browse files

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
parent 466f3c55
Loading
Loading
Loading
Loading
+17 −1
Original line number Diff line number Diff line
@@ -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"],