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

Commit ae7aab59 authored by Steven Liu's avatar Steven Liu Committed by Gerrit Code Review
Browse files

Merge "Demo app for the channel sounding test." into main

parents ed7f7728 5a00f9da
Loading
Loading
Loading
Loading

OWNERS_cs

0 → 100644
+2 −0
Original line number Diff line number Diff line
steveliu@google.com
zning@google.com
+15 −0
Original line number Diff line number Diff line
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
+27 −0
Original line number Diff line number Diff line
package {
    default_applicable_licenses: ["Android-Apache-2.0"],
}

android_app {
    name: "ChannelSoundingTestApp",
    certificate: "platform",
    platform_apis: true,

    srcs: ["app/src/main/**/*.java"],
    resource_dirs: ["app/src/main/res"],
    manifest: "app/src/main/AndroidManifest.xml",
    min_sdk_version: "current",

    static_libs: [
        "androidx-constraintlayout_constraintlayout",
        "androidx.appcompat_appcompat",
        "androidx.lifecycle_lifecycle-extensions",
        "androidx.navigation_navigation-fragment",
        "androidx.navigation_navigation-runtime",
        "androidx.navigation_navigation-ui",
        "com.google.android.material_material",
        "truth",
    ],

    privileged: true,
}
+1 −0
Original line number Diff line number Diff line
include /OWNERS_cs
+15 −0
Original line number Diff line number Diff line
1. prepare the device
adb root
adb remount -R
2. build the app
make ChannelSoundingTestApp
3. load the app
adb root
adb remount
adb push ChannelSoundingTestApp.apk /system/priv-app/ChannelSoundingTestApp/ChannelSoundingTestApp.apk
adb push com.android.bluetooth.channelsoundingtestapp.xml /system/etc/permissions/com.android.bluetooth.cs.xml
adb reboot
4. run test
pair devices from settings;
launch APk
one device works as 'Initiator', another device works as 'Responder';
Loading