11 Commits

Author SHA1 Message Date
Suprabh Shukla
db8c1dbc5e Disallowing bluetooth config for demo users
Bluetooth is currently not multi-user aware, so bluetooth pairings are
carrying across demo users. Have to disable bluetooth config to prevent
security risks in retail environments.

Bug: 30039481
Change-Id: I28ad0d9585a4e6e22af8772132d585c01b33abc9
2016-07-12 15:35:47 -07:00
TreeHugger Robot
33fa5dfa1d Merge "Making timeouts configurable through Settings" into nyc-mr1-dev 2016-07-08 14:36:34 +00:00
Suprabh Shukla
dbbc7af063 Making timeouts configurable through Settings
Adding a global setting for timeouts used in retail demo mode.
Also renaming the protected intent ACTION_RESET_DEMO to reflect proper
owner package.

Bug: 29917613
Change-Id: I9a174503626ab28cceb5024a8e63d27612439b92
2016-07-07 14:12:14 -07:00
Fyodor Kupolov
56d32190e0 Install preloaded apps into the demo user
Apks preloaded in /data/preloads/apps are now automatically installed when
device is running in demo mode.

Apps are also installed into system user, so that they can be cached for
the next demo user session.

Bug: 29908713
Change-Id: If0fb45bb31c169a1e3020621a173867b8530532d
2016-07-06 18:36:31 -07:00
Amith Yamasani
0f6c2bfe30 Merge "Log as histogram instead of counter" into nyc-mr1-dev 2016-07-06 18:09:55 +00:00
Sudheer Shanka
c46098b243 Grant location permission to camera app.
Change-Id: I9c73a0232e9fdc7043321b35a2721603dced8789
Fixes: 29911953
2016-07-01 18:19:00 -07:00
Amith Yamasani
48e819bfd8 Log as histogram instead of counter
Log the demo session duration as a histogram.

Bug: 29540372
Change-Id: Ie4b1bd5586316213d0ae9167f30d6d551e3e0fe8
2016-06-30 16:42:09 -07:00
Suprabh Shukla
408e0d50bd Disabling account modification on demo users
Added user restriction DISALLOW_MODIFY_ACCOUNTS on demo users

Bug: 29910166
Change-Id: I21c9534a3ae66dc3ab650e2d1a45a65cc8ffbd2a
2016-06-30 16:38:08 -07:00
Suprabh Shukla
0271fd661d Improving the Reset Demo Warning dialog
Removing explicit call to setView which was distorting the layout
of a standard AlertDialog. Used the correct unicode characted for
apostrophe. Also removed calls to enable demo mode launcher for user 0.

Bug: 29520255
Change-Id: Id876f01f8e51c02634c03fce1ea93a15b111fc27
2016-06-28 16:48:34 -07:00
Amith Yamasani
b75fc2b2b7 Add tron logging for retail demo session counters
Count each demo user creation and time between
first touch (to dismiss the video) and the start
of inactivity timeout.

Fixed an NPE in SysUI when user switcher is missing.

Bug: 29540372
Change-Id: I7bc0e0dde75e7b213a025683c15c9b3e750643a9
2016-06-27 11:15:38 -07:00
Suprabh Shukla
6472501f2e Resetting some settings on starting a new demo session
Muting ringer and media volume and turning off the flashlight
before starting a new session. Also, resetting the configuration of any
new demo user to the configuration of user 0 on the device. Moved
RetailDemoModeService and RetailDemoModeServiceInternal to more
appropriate new packages

Bug: 29519612
Change-Id: Ib65f89ce61afab2d2f1b2dd0c761f5d35a466181
2016-06-23 17:36:19 -07:00