Files
rk35xx-android14/packages/modules/RemoteKeyProvisioning/util/RkpRegistrationCheck.sh
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

26 lines
823 B
Bash
Executable File

#!/usr/bin/bash
# Builds, installs, then runs a small test binary on an Android device that is
# attached to your workstation. This tool checks to see if the KeyMint
# instances on this device have been registered with the RKP backend.
#
# Run the script by passing the desired lunch target on the command-line:
# ./packages/modules/RemoteKeyProvisioning/util/RkpRegistrationCheck.sh <aosp_arm64-userdebug>
if [ -z "$1" ]; then
echo "Lunch target must be specified"
exit 1
fi
. build/envsetup.sh
lunch $1
m RkpRegistrationCheck
adb push $ANDROID_PRODUCT_OUT/system/framework/RkpRegistrationCheck.jar \
/data/local/tmp
adb shell "CLASSPATH=/data/local/tmp/RkpRegistrationCheck.jar \
exec app_process /system/bin com.android.rkpdapp.RkpRegistrationCheck"
adb shell "rm /data/local/tmp/RkpRegistrationCheck.jar"