summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2017-12-11 14:39:03 +0000
committerNeil Fuller <nfuller@google.com>2017-12-11 17:05:35 +0000
commit3582259c72476c55b60f49da1c7f1338b6683249 (patch)
tree9caa789416325f6b574fd341be6d2e161f7f1ba2 /tools/aapt2/java/JavaClassGenerator.cpp
parenta7d21f8c321ae7149b68625a5c8502abe005ed7b (diff)
Avoid potential failure to boot with bad storage
Discovered by inspection: It is possible in the event of file system issues to throw an exception on boot. This change moves logic previously done in the PackageStatusStorage constructor to an initialize() method that can be called on service start up and handled more gracefully: if there is a storage problem a warning will be logged and time zone updates feature will just not be enabled. Also: Commit a7d21f8c321ae7149b68625a5c8502abe005ed7b switched to FileUtils.createDir() but the mkdir() (implied by createDir()) wasn't removed along with it but was redundant. Units tests run with: atest FrameworksServiceTestsCases:PackageStatusStorageTest \ FrameworksServiceTestsCases:PackageTrackerTest Test: See above Test: PTS: run pts -m PtsTimeZoneTestCases Test: Manual test: deleted /data/system/timezone and rebooted, dir recreated Change-Id: I84ab3152d0a9d6781e5665e8615b3ab92b6c7a40
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions