aboutsummaryrefslogtreecommitdiffstats
path: root/cm/lib/main/java/org/cyanogenmod/platform/internal/ProfileManagerService.java
Commit message (Collapse)AuthorAgeFilesLines
* Apply active profile if user enables system profilesLuis Vidal2016-06-301-1/+65
| | | | | | | | | | | | | | | | | Ensures the active profile is applied when user enables system profiles. The profile will be automatically applied upon activation if: - No triggers are defined (i.e the profile does not respond to events) - A ON_CONNECT WiFi/BT trigger is defined and the device is currently connected to such network/device If system profiles are already enabled and a WiFi/BT event is fired, apply the profile overrides Change-Id: I362893151e52d35636d2ac05ab35e986d1f7237e TICKET: CYNGNOS-3104
* cmsdk: Create CMSystemServer to handle our platform init.Adnan Begovic2016-05-311-1/+6
| | | | Change-Id: I7b62978e2a284a3a1ec1ffc1d8c72545d7b0c939
* cmsdk: Mandate profile feature xml's for service implementation.Adnan Begovic2016-03-241-1/+7
| | | | | | | | | | | | | | The feature xml plays two roles: 1) To allow sdk interface (constructor) to throw when system service is unavailable. This allows for clearer platform development debugging. 2) To allow for simpler disambiguation of what services to instrument in a modular environment. TICKET: CYNGNOS-2288 Change-Id: Id0adcc1eaa4a0512faf25f11057c45dc2ac733e0
* cmsdk: Fixup stub generation.Adnan Begovic2015-12-221-1/+1
| | | | Change-Id: I1b033ff646dbbdafa5d0efcaf110b76ca48980e3
* ProfileManagerService: fix broadcasting crashRoman Birg2015-12-221-4/+4
| | | | | | Ref: CYNGNOS-1478 Change-Id: If4952c4513063ea4b2cf2105514183731175ad72 Signed-off-by: Roman Birg <roman@cyngn.com>
* Profiles: add isEnabled(); send state changesRoman Birg2015-12-211-1/+69
| | | | | | Ref: CYNGNOS-1461 Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6 Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Enforce cyanogenmod.permission.MODIFY_PROFILES for profiles.Adnan Begovic2015-09-011-3/+2
| | | | Change-Id: Id14bfd9b214b4f53960c55d8abab2764f990b1b6
* profiles: Don't bind the keyguard until ActivityManager is upSteve Kondik2015-08-191-1/+7
| | | | Change-Id: I2f349d00c197cf5c4a492fb0892b3edd71479ea4
* cmsdk: fix enabling/disabling keyguardRoman Birg2015-08-131-1/+43
| | | | | | | | | | | | | | We cannot create a new WindowManagerPolicy every time since the method isn't called from the main thread every time, which could lead to exceptions being thrown when trying to create PhoneWindowManager. Instead of creating a new policy, bind to the keyguard service on bind, and then pass it to the profile to operate on. Ref: NIGHTLIES-1640 Change-Id: I3ac58bfa534755eaa73890cc5ddf05987a7d0d8c Signed-off-by: Roman Birg <roman@cyngn.com>
* cmsdk: Clear calling identity when resetAll is called.Adnan Begovic2015-07-141-0/+2
| | | | Change-Id: Id39eb18165d12a792c141dc44840a122d509dece
* cmsdk: fix cannot create handlerJorge Ruesga2015-07-131-1/+4
| | | | | | Change-Id: I34153f6199d46b7fa9a914efa38552b8d66c0c99 JIRA: NIGHTLIES-1532 Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* CMSDK: Introduce factored out resources from framework.Adnan Begovic2015-07-091-3/+3
| | | | Change-Id: I4193db99f3f883260354cde98366f94c608f6163
* CMSDK: Make sure to initialize ProfileTriggerHelper.Adnan Begovic2015-07-011-4/+10
| | | | | | OSS-JIRA: NIGHTLIES-1480 Change-Id: I48fbb350d96424b593858aca1b2343a79f298b0c
* CMSDK: Introduce Profiles API from frameworks.Adnan Begovic2015-06-251-0/+616
Refactor to create a system service in secondary CM framework. Change-Id: Ic69da01d941bbd09271c260429d744f8e79ab7b9