History log of /packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d1d6a37bddc64b28d0474b338daee05323f1af16 08-May-2018 Yao, Yuxing <yaoyx@google.com> Add a button to blocking activity to restart task.

- always launch blocking activity into its task (singleTask)
- blocking activity handles new intent with blocked task id
- add system API restartTask() to CarPMS and SAMS
- when root activity is DO, blocking activity displays restart button

Bug: 78662129
Bug: 79595101
Test: Verified in demo app.
Change-Id: Ib8cfd731001e4604990b65fe60f3f12a0b5ae12b
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
e6e2ac37515f84f9d0fb22cde339f9a1e62f0f58 02-May-2018 Ram Periathiruvadi <ramperry@google.com> Fix CarPackageManager not receiving boot intents.

Adding package manager actions and boot intents to the same intent
filter causes the BroadcastReceiver to not receive the boot related
intents. Making individual intent filters fixes the problem.

Added a few null checks as well.

Bug: 79158330
Test: Make sure Intent.ACTION_LOCKED_BOOT_COMPLETED is received.
Change-Id: If48d78c5d64cee681ce505f3c2e1d5c24369db4a
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
a6e0d9bae301f56e1b651aac682f31f0c0826df1 26-Apr-2018 Ram Periathiruvadi <ramperry@google.com> Enable/disable app blocking during restricted state.

Removed the dummy toggle button and reused it for enabling/disabling
driving restriction.

Bug:78603623
Test: App blocking is enabled or disabled accordingly.
Change-Id: I1c5c7c4e55b871e089ed9038ee970763db7c485a
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
c57678d64f04259df1eca2a211bdab1aa1de3168 23-Apr-2018 Ram Periathiruvadi <ramperry@google.com> CarPackageManager - Wait till whitelists are built before blocking apps.

To handle situations where we start getting sensor and driving data
before we know what can be allowed or blocked.

Bug: 78189774
Test: No blocking behavior until the white lists have been built.
Change-Id: Id6c1f01e0c548e3f138acce598fa38bdd475a336
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
295954da6fbdc2357fe8802331903fabcce96972 11-Apr-2018 Ram Periathiruvadi <ramperry@google.com> Build whitelists when pkg is installed/uninstalled.

Installed packages are parsed for building white or black lists only
when the system boots up. The lists need to be updated when there is
any package install/uninstall/replacement. Listen to the PackageManager
intents and rebuild the whitelist when anything changes.

Bug: 73787007
Test: Test whitelist updated on app install/uninstall.
Change-Id: I9b9e71d51256de34df1c7f491955f8507203116b
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
46a3a3d56751d1405463c29d05d9ee416617f44d 24-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Provide a way to blacklist apps via XML.

Apps and specific activities can be whitelisted via the config.xml
resource. Extending it to providing a way to blacklist apps as well.

Bug: 74149196
Test: Make sure the blacklisted activities show up in adb shell dumpsys
activity service com.android.car

Change-Id: I6b43158e17adae1163dd7df5f183b354ed2973a9
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
e154f586afe04724e10e53d4c3a4dfb36423b686 22-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Rename CarPackageManager APIs.

CarPackageManager APIs isActivityAllowedWhileDriving and
isServiceAllowedWhileDriving are renamed to
isActivityDistractionOptimized and isServiceDistractionOptimized to
reflect the information that they actually provide.

Bug: 73064345
Test: compile, exercise the APIs and carservice_test.
Change-Id: I1063d13c672caa659735686ed0d8df4e5c20a1d3
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
8ef1a20482b5b8a5b4d559bef4f528cbf7b74f5f 17-Mar-2018 Ram Periathiruvadi <ramperry@google.com> Fix CarPackageManager Test.

The test needs to explicitly call the CarPackageManager to check for
CarAppBlockingPolicyServices in order to get a bind request.

Bug:74395964
Test: runtest -x src/com/android/car/CarPackageManagerTest.java
Change-Id: I99534328319054e6194921a459b399a7761d584e
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
3838830086d818960d556841427a2e415a7999c5 23-Feb-2018 Ram Periathiruvadi <ramperry@google.com> Parse installed pkgs for Distraction Optimization.

1. Check the configurable whitelist for apps and activities that can run
during DO.
2. If not in whitelist, check if the apps have tagged their activities
to be DO and add them to the allowable list.

Bug: 68717481
Test: Whitelisted and DO tagged apps can run while restrictions are in
place.

Change-Id: Ic46b95dd9e4e4194c8753d26250f0dc123163908
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
985ca2ff30309b7acd7a66a2955ef706699fd0b9 09-Feb-2018 Andreas Gampe <agampe@google.com> Car: Annotate trivial @GuardedBy

Add @GuardedBy for simple functions that require a single lock
and are named XYZLocked.

Derived by errorprone.

Bug: 73000847
Test: m
Test: m javac-check-framework RUN_ERROR_PRONE=true
Change-Id: Idd443648d5f66c90dff9b16cd4a8473e7af131ea
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
bf0eab7a275edfbf7df2881ebca69cde72bd5614 06-Feb-2018 Ram Periathiruvadi <ramperry@google.com> Provide an option to disable app blocking.

adb shell dumpsys activity service com.android.car enable-uxr
true|false
Running above command and setting it to false will disable UXR blocking.

Bug:72992174
Test: Running above command and setting it to false will allow any app to
run while in restricted mode. Setting it to true will enable back UX
Restriction behavior.

Change-Id: Ic66976dde6965b4a8e5395a70a142f12eb6bc9f3
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
2da6d0efdd5676ba5c48b00a7f3bb04a113eeafa 27-Jan-2018 Ram Periathiruvadi <ramperry@google.com> Make CarPackageManager listen to UX restrictions.

CarPackageManager used to subscribe to CarSensorManager's DRIVING_STATUS
to enforce activity blocking. Changing that to listen to the new
CarUxRestrictionsManagerService.
Add the Home App to the white list.
No change to the current restriction behavior yet, only changing the
source to the new Restriction Manager.

Bug: b/72570830
Test: Compile and boot. CarPackageManager can receive Ux Restriction
events.

Change-Id: I3b96a004cafa2813b7d1855e68cea53c9ffb5f40
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
3da3c6150b395fb0ae0ae83873086a4a34cc8b33 21-Jan-2017 Enrico Granata <egranata@google.com> Fix a typo: s/Pakcage/Package/

Test: build
Change-Id: Ia7e8681b01a7c0805ee0f2a8ce067a56f263a504
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
0d07c76bbc788fba8c77d8e932330ab22ec6ba27 04-Nov-2016 Pavel Maltsev <pavelm@google.com> Migrating Car service to new Vehicle HAL

- make car service work directly with Vehicle HAL
- getting rid of protobufs and dependencies on VNS
- get rid of CarTestManager / CarTestService and refactor
tests accordingly
- reworked ICarImpl to pass dependencies rather than
using singletons for better testing experience

Test: existing test should work, although some of the tests
(esp. audio) are broken and we will fix them in follow up CLs

Bug: b/31971746
Change-Id: I229969af332304ba3b1718f130cdf22038e86fad
Tests: tests adjusted to new data structures
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
f9215209e0f425d2fc570bef37dad959c82d2e9e 10-Oct-2016 Keun-young Park <keunyoung@google.com> update TODOs

- assign bugs for future items
- remove it if not necessary any more
- also remove unused CarServiceApplication

bug: 31970410

Change-Id: I3f5ecb8a80fd450afdb58007e07e88527132edb9
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
6dcc50beade1a6e4213efa578057af550b10ac96 11-Oct-2016 Keun-young Park <keunyoung@google.com> fix synchronization in PM and PowerHal

- PM: in mocked test, release can be called while
init is still going on. Wait for init to be done
in release.
- ignore IllegalArgumentException for sensor
subscription during init: mocking can bring this.
- PowerHal: add missing synchronizarion

bug: 32074752
Change-Id: I746fcfff3848d3e5aa29b5a28d7dafb6b38057c5
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
98960815f56a75d35b5e32a1aa1b976fe986eaee 04-Oct-2016 Keun-young Park <keunyoung@google.com> fix race in app blocking during bootup

- there were race between app monitoring and policy init
as policy init was done in separate thread.
- enable activity launching monitoring only after initial
policy is set.
- When initial policy is set, block top activities if necessary.
- also add dump of default white list string
- also add android to default whitelist

bug: 31931861
Change-Id: I36e03d01023b73ff617ed712140db3742b187873
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
1b1247b5648975dd41ee73c25425825abb256234 30-Sep-2016 Vitalii Tomkiv <vitalit@google.com> Change logging for car packages.

Removed PII information.
Disable all debug logging by default.
bug: 31811554
Test: manual build.

Change-Id: If95a27a1bb514f79f2acd65c21f5e7b29345a361
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
4727da3796711ddd09d8c684fe50a341841284ee 31-May-2016 Keun-young Park <keunyoung@google.com> implement activity blocking

- monitor activity launch and shut it down if
car is not parked and if the app is not allowed.
- Launch blocking activity for unsafe app.
- Blocking activity stays up to timeout (3 secs) and
finish itself if there is safe app behind.
If safe app is not there, launch home. If home is
not safe either. stay.
- allow OEMs to give static whitelist as overlay.

bug: 25267050

Change-Id: Id0bdae757fa98345069f2d83711b46447506f888
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
e54ac276796c6535558f8444d882adecd19ce2bd 17-Feb-2016 Keun-young Park <keunyoung@google.com> add android.car

- instead of using binder as compatibility layer, add android.car
- apps using android.car should add it to LOCAL_JAVA_LIBRARIES
unless doing include
packages/services/Car/car-support-lib/car-support.mk

- support lib renamed to android.support.car
- UI stuffs only exist in android.support.car
UI has dependency on androud support library and not added to
android.car

- permission only uses android.car namespace even for support.car

- car-systemtest remains as static library. To use CarTestManager,
test app should get CarTestManagerBinderWrapper then create
CarTestManager.

bug: 27199752
Change-Id: I3522e11e958dade404443fbe2d45f576c827fa7a
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
bdbce66547dec0bd5c38c5630c3ac3ab65cb5ccd 20-Jan-2016 Keun-young Park <keunyoung@google.com> fix missing Activity whitelisting for system apps

bug: 25267050

Change-Id: I27d68a9243504e19e0cc83b438d39d82f38a5f1a
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java
4aeb4bf0c56588be65264c324bbaaa545ad6714c 09-Dec-2015 Keun-young Park <keunyoung@google.com> add app blocking api

- launches CarAppBlockingPolicyService and read Policy on startup
- also provides setAppBlockingPolicy API
- not working fully due to missng framework api but only sets internal
state for now.
- also fixed some build warnings
- also renamed all permisisons to android.support.car
- remaining TODO:
monitor app install / uninstall and re-activate policy
plumb framework side policy setting

bug: 25261583

Change-Id: I6da09468c95a28f2e3d7d59e6e91279ca018239b
/packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java