Skip to content
Commit 33266b39 authored by Hajime Morrita's avatar Hajime Morrita
Browse files

Add "repin" command to pinner service shell command.

With this CL, "adb shell cmd pinner repin" reset existing
APK pinning based on the current flag values.

For now, the only dynamic flag related to this is "pin_camera"
DeviceConfig flag.

Bug: 176838683
Test: Ran following commands and inspected the output:
   $ adb shell device_config put runtime_native_boot pin_camera false
   $ adb shell cmd pinner repin && adb shell dumpsys pinner
   $ adb shell device_config put runtime_native_boot pin_camera true
   $ adb shell cmd pinner repin && adb shell dumpsys pinner
   Also covered a couple of error cases:
   $ adb shell cmd pinner
   $ adb shell cmd pinner nosuch

Change-Id: I3229879b8637a8e0760cffb7292248e97842042f
parent 677c97dd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment