a7d21f8c321ae7149b68625a5c8502abe005ed7b |
|
05-Dec-2017 |
Neil Fuller <nfuller@google.com> |
Tidy up changes for timezone update code Tidy up changes for timezone update code: 1) Remove some TODOs 2) Fix some logging 3) Remove ClockHelper in favor of java.time.Clock / SystemClock.elapsedRealtimeClock() No functional changes intended. Bug: 31008728 Test: PTS: run pts -m PtsTimeZoneTestCases Change-Id: Ib1ae04cbadfe71e4e340a0572e82f0bc3f68ef30
/frameworks/base/services/core/java/com/android/server/timezone/PackageTrackerHelperImpl.java
|
3accca05ddcad9d0b1b313eae49f273e39121d3c |
|
20-Sep-2013 |
Dianne Hackborn <hackbod@google.com> |
Add major version code to platform. It turns the version code into almost a 64-bit integer, with the new major part being the upper 32 bits. The only tricky part about this is the backup manager, since it stored 32-bit version codes in its backup data sets. This is dealt with by, when the major version code is not 0, writing MIN_INT as the version code and following that by the full long version code, which we can detect when reading. Note that this makes backup sets containing apps with major version codes incompatible with older versions of the platform. Bug: 64459786 Test: Added in Change-Id: Iab8a682b62103babd6c16a56b8dc1e97d7078658 Change-Id: Ibfffe235bbfcf358b3741abd3f7197fdb063d3f3
/frameworks/base/services/core/java/com/android/server/timezone/PackageTrackerHelperImpl.java
|
1281f39f86a8e4d9950581fb1f15245843856c23 |
|
22-Sep-2017 |
Neil Fuller <nfuller@google.com> |
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
/frameworks/base/services/core/java/com/android/server/timezone/PackageTrackerHelperImpl.java
|
328532ab13768a6303231b670708d750c4d7aa5f |
|
16-Mar-2017 |
Neil Fuller <nfuller@google.com> |
Add (disabled) time zone update system server impl This commit builds on top of prior API commits. It adds code to the system server, but in a disabled way. The system server is responsible for monitoring two (configured) package names: one for the "updater app" (provided by the platform) and one for the "data app" (provided by the OEM). When either package changes the updater app is triggered via a privileged intent. The updater is then required to communicate with the data app and report back to the system server. Unit tests are included for the major components. To run: make -j30 FrameworksServicesTests adb install -r -g "out/target/product/angler/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" Test: See above. Bug: 31008728 Change-Id: I8f82cdcc2b574778a7e0d0184270f305b69ee17b
/frameworks/base/services/core/java/com/android/server/timezone/PackageTrackerHelperImpl.java
|