OSDN Git Service

Be more explicit about users
authorNeil Fuller <nfuller@google.com>
Fri, 22 Sep 2017 14:32:06 +0000 (15:32 +0100)
committerNeil Fuller <nfuller@google.com>
Wed, 25 Oct 2017 13:00:24 +0000 (14:00 +0100)
commitb755291e65f7cf928221c4d2c718b6b9c152e461
tree0fbf70a41a9a7da1ea3b4e2e09a994e4e5f46495
parent65d1e549b63ddb788906e2a837c09768f7002b38
Be more explicit about users

Be more explicit about users executing processes in the time
zone updates code.The code was already running everything as the
system user but now that's more explicit / by design.

To service unit tests:
make -j30 FrameworksServicesTests
adb install -r -g "${ANDROID_PRODUCT_OUT}/data/app/FrameworksServicesTests/FrameworksServicesTests.apk"
adb shell am instrument -e package com.android.server.timezone -w com.android.frameworks.servicestests \
  "com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner"

Bug: 64111659
Test: Unit tests: See above
Test: Manual testing installing updates as secondary device user
Test: PTS: run pts -m PtsTimeZoneTestCases
Change-Id: Idb754f3e1aa3830ba1ada8ef5740f9f7340f03d5
Merged-In: Idb754f3e1aa3830ba1ada8ef5740f9f7340f03d5
(cherry picked from commit 1281f39f86a8e4d9950581fb1f15245843856c23)
core/java/android/app/timezone/RulesUpdaterContract.java
services/core/java/com/android/server/timezone/IntentHelperImpl.java
services/core/java/com/android/server/timezone/PackageTrackerHelperImpl.java