commit | aa7aa7cf8676e3c8cb21a93ce74d02873541a41b | [log] [tgz] |
---|---|---|
author | Felipe Leme <felipeal@google.com> | Fri Jul 02 12:22:13 2021 -0700 |
committer | Felipe Leme <felipeal@google.com> | Thu Jul 08 20:44:20 2021 +0000 |
tree | 156a4317fd3614c1ac694d7a86398d3e6beed70e | |
parent | 8eb94e23c226f37be193553583304da1bb0c28e2 [diff] |
Added UserSwitchMonitorApp2 It's the same as UserSwitchMonitorApp but with a different package name and shared uid. Test: m -j UserSwitchMonitorApp && adb install --user 0 $OUT/system/app/UserSwitchMonitorApp/UserSwitchMonitorApp.apk && adb shell pm grant --user 0 com.google.android.car.userswitchmonitor android.permission.INTERACT_ACROSS_USERS && adb shell am start-foreground-service --user 0 com.google.android.car.userswitchmonitor/.UserSwitchMonitorService && adb shell dumpsys activity service com.google.android.car.userswitchmonitor/.UserSwitchMonitorService Test: m -j UserSwitchMonitorApp2 && adb install --user 0 $OUT/system/app/UserSwitchMonitorApp2/UserSwitchMonitorApp2.apk && adb shell pm grant --user 0 com.google.android.car.userswitchmonitor2 android.permission.INTERACT_ACROSS_USERS && adb shell am start-foreground-service --user 0 com.google.android.car.userswitchmonitor2/com.google.android.car.userswitchmonitor.UserSwitchMonitorService && adb shell dumpsys activity service com.google.android.car.userswitchmonitor2/com.google.android.car.userswitchmonitor.UserSwitchMonitorService Bug: 192564058 Change-Id: Ib87514cfa1cfe9081886155a4dc933566083a30c
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.