commit | 3ce0135afc98db60822dd7e160856741b3788af7 | [log] [tgz] |
---|---|---|
author | felipeal <felipeal@google.com> | Tue Apr 14 15:43:09 2020 -0700 |
committer | Felipe Leme <felipeal@google.com> | Tue Apr 14 23:57:50 2020 +0000 |
tree | 4940601b92d5d0497b80a77811093657f4fbc4ac | |
parent | b29bb936e76f3831a7023ffcadc921422175965e [diff] |
UserSwitchMonitorApp improvements: - Automatically start on boot. - Implement dump(). - Add its own user id on logs. Bug: 144120654 Test: m 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 Change-Id: I3665e9446d577befd932c74d4ec3fe0624dad831
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.