Commit Graph

103 Commits

Author SHA1 Message Date
Adnan Begovic 66f23d80ba cmsdk: Remove unused androidTest directory.
Change-Id: Id15cfc17d95f89aceb963a216ddd23295c21773a
2016-02-08 14:15:17 -08:00
Matt Wagantall eb82dbf050 cmsdk: cmhw: Add UniqueDeviceId support
It's sometimes useful to know what physical device you're using.

CMHW SerialNumber and an "ro.serialno" property already exists, but
are not guaranteed to be unique. Different OEM may use overlapping
numbering schemes, and sometimes placeholder like "012345ABCDE" are
used.

Attempt to work around these shortcomings by defining a new
UniqueDeviceId class that provides a globally unique device ID that
is both deterministic for a given device and designed not to overlap
with IDs of any other devices.

Change-Id: I3f426972558394ba8e78261273ac8521aa603327
2016-02-02 16:37:59 -08:00
Michael Bestas ee703e74fa Automatic translation import
Change-Id: I1893380ab4f7e3bb5ff31c72578aa28a932839a0
2016-02-02 07:04:22 +02:00
Keith Mok 3629a574b2 cmsdk: remove visualizer from default qs tile list
This fixes the following errors during bootup:
QSTileHost: Error creating tile for spec: visualizer
QSTileHost: java.lang.IllegalArgumentException: Bad tile spec: visualizer

CYNGNOS-1722

Change-Id: Idd45ef73beb004fb4afb310bb335f3cc85b08330
2016-01-26 13:22:40 -08:00
Khalid Zubair a3c05bf3ff Revert "cmsdk: Add example service test."
This reverts commit 33e300e32d.

CYNGNOS-1677

Change-Id: Ia4a9d192fde03152d308f7a93f3fe6525cb57c7d
2016-01-26 11:00:27 -08:00
Michael Bestas 910648e8e2 Automatic translation import
Change-Id: I3777f8d3c8b2c83da6bfe734bfaa1554ae91b198
2016-01-25 19:42:32 +02:00
Scott Mertz 62579b157a cmsdk: add invalid input checking for persistent storage APIs
Some of this exists in the PersistentStorage implementation, but it
was never formally documented in the APIs.  Inherit the cmhw implementation
error checking & move it into the service.

Add tests to validate the new restrictions & a test that was previously
failing.

Change-Id: I3ecda29fdd28bbc4e6d8ccce7511c4644065ea46
2016-01-22 16:24:33 -08:00
d34d f499009346 Change THIRD_PARTY_KEYGUARD permission to normal
Lower protection level of THIRD_PARTY_KEYGUARD permission from
signature|privileged to normal.

Change-Id: I464daba67a66e88efe6219cec2663a07d15ab3ed
TICKET: CYNGNOS-1689
2016-01-21 14:20:30 -08:00
Michael Bestas cc517bfc9b Automatic translation import
Change-Id: I39a0e63fa95fd9a37a79dc6cb52da8047c40c86f
2016-01-11 22:46:43 +02:00
Adnan Begovic 33e300e32d cmsdk: Add example service test.
Change-Id: I52972bc4d32505ba7fd2f7278efdb9441c39b82a
2016-01-05 17:37:14 -08:00
Michael Bestas 9f9759a89a Automatic translation import
Change-Id: I742c557747bbee9f821298497e2cef0e371bb0a2
2015-12-25 19:39:33 +02:00
Khalid Zubair c972c0e85e Add resources for WiFi customization
Add resources needed by WiFi service (see
If1613a8556908f372a70fbd859fa35e9315f9613)

Change-Id: I76b838354459e4482795c9812d37bb204df708c3
2015-12-23 16:28:09 -08:00
Janet Sun 57dc3b3240 CMSDK: add duration for priority/quiet mode
Add setZenModeWithDuration API call with long durationMills
Use NotificationManager.setZenMode with Condition URI
specifying end time.
Update settings/CMPartnerInterfaceTest
TODO: unit test to be added in:
tests/src/org/cyanogenmod/tests/settings/unit.

FOR-156

Change-Id: I18dd661fc07419a7019b6372e81df430a70f86e9
2015-12-23 11:05:45 -08:00
Adnan Begovic 7bdcaa59f4 cmsdk: Fixup stub generation.
Change-Id: I1b033ff646dbbdafa5d0efcaf110b76ca48980e3
2015-12-22 11:10:24 -08:00
Roman Birg 2ba238bf7a ProfileManagerService: fix broadcasting crash
Ref: CYNGNOS-1478
Change-Id: If4952c4513063ea4b2cf2105514183731175ad72
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-22 08:50:29 -08:00
Roman Birg cb4a990216 Profiles: add isEnabled(); send state changes
Ref: CYNGNOS-1461
Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6
Signed-off-by: Roman Birg <roman@cyngn.com>
2015-12-21 10:30:15 -08:00
Michael Bestas 9a83dc6154 cm: Improve permission strings
Change-Id: I2fdf589967efc997d0b3f93ff73268ad57858a61
2015-12-18 18:11:04 -08:00
d34d 9691d4224c Keyguard: Introduce 3rd party keyguard perms and utils
For CM13, the third party keyguard permission is being added to
the cmsdk rather than frameworks/base.  This patch also introduces
CmLockPatternUtils, a subclass of LockPatternUtils, which allows us
to make use of the new third party keyguard permissions in cmsdk.

Change-Id: I91fadfaae79e3f146e9ae73929cea91294ef8d87
2015-12-18 15:04:07 -08:00
Steve Kondik 968127f532 cmsdk: Add CMHW method to check if SRE is self managed
Change-Id: Ia5f644ce0b964a965afa47ea08016167c8b20620
2015-12-09 21:02:54 -08:00
Adnan Begovic af4d676a93 cmsdk: Add QS utility classes.
Change-Id: I5644f6d9769614d72220ee68a08202e6c69037d9
2015-12-08 17:44:26 -08:00
Adnan Begovic 4ae9604b18 cmsdk: Reimplement helper methods for secondary telephony service.
Change-Id: If126936f788d398c53dca21297cd7d69f9d933b8
2015-11-29 14:55:36 -08:00
Adnan Begovic c221959167 cmsdk: Re-enable multiple profiles functions.
Change-Id: I1db0cba6cf107926a25a8e45952813d3c21eb470
2015-11-29 14:55:21 -08:00
Khalid Zubair 4a964c508e perf: Add PerformanceManager.getProfileHasAppProfiles API
Add an API to query PerformanceManager if a perf profile supports
app-profiles.

Change-Id: I51d958343624ab085de0352ac182cb05308e0da4
2015-11-25 12:52:40 -08:00
Khalid Zubair 37b590928f perf: fix perf profile change issues
Rework profile handling to address the following issues:

 - When app specific profiles are enabled, the perf service silently
   changes the profile to BALANCED when the user revisits settings.
   The service and Settings UI still show whatever pref the user had
   selected. The user is now unable to change the setting to BALANCED.
   The perf service ignores the change because the current profile
   (selected by app profiles) did not change.

 - When low power mode (battery saver) activates or deactivates, the
   user selected profile is overwritten.

All runtime decisions regarding active profiles have been consolidated
in to a single applyProfile() function that handles low power mode,
user and app-specific profile rules.

App specific profiles are applied only if the power profile is
BALANCED.

setPowerProfileInternal has been changed to save the user pref even if
the active pref is unchanged.

Fixes SAMBAR-1088

Change-Id: Iac658959130f08452f5e41ce3339fe4603ac474e
2015-11-25 12:52:23 -08:00
Vineet Patil 35fdbdab95 Protected apps components
Change-Id: I850d45e9aca6eff8221766830fce45468c8ca549
2015-11-24 12:12:37 -08:00
AdrianDC a63e78ba92 cmsdk: Move Notification LEDs settings to CMSettings
* Lights with Screen On
 * LEDs Brightness
 * Multiple LEDs

Change-Id: I8c3f3cae53c834d1d2798d9dece00e3253ccb1db
Signed-off-by: AdrianDC <radian.dc@gmail.com>
2015-11-13 14:13:09 +01:00
Adnan Begovic a09defa3c9 cmsdk: Move LiveDisplay settings and resources.
Change-Id: I6d0c3f8b645e2c8cca059ff343a774eab1933a9b
2015-11-10 18:10:54 -08:00
Adnan Begovic 3c42b723c3 cmsdk: Move proximitycheck to CMSettings.
Change-Id: If9e097c373404fe8983fd9160ebeb8405bd363d8
2015-11-09 18:00:32 -08:00
Danesh M b56f346814 CMSDK : Change protection level system to privileged
Change-Id: I8e5e8c17a9d7e2399155b34e63bdd55e19a59362
2015-11-05 15:14:19 -08:00
Steve Kondik ac36cbe559 perf: Remove logspam
Change-Id: Id7c54851950eedc77ab6bc085fe515b6e7aaaac5
2015-11-04 04:39:31 -08:00
Steve Kondik 620c35bd6b cmsdk: Refactor the PerformanceManager
* Remove all code and configuration into CMSDK.
 * Deprecate the properties-based API

Change-Id: Ib14ce5b8623cb368e6b545d1f82bc9c58580e13b
2015-11-03 17:59:44 -08:00
Adnan Begovic 99f872ffcf cmsdk: Make sure we're generating as 0x3F res id
Change-Id: I2a55e65d7b9746dfd005d04c39024490a5b1d2b1
2015-10-26 15:38:23 -07:00
Adnan Begovic ce2636010c cmsdk: Point at cmsettings for system profiles.
Change-Id: I61497111f1bf1873554c4185b4424662dcb8c7e5
2015-10-26 15:37:55 -07:00
Matt Garnes 9e69abb862 Improve several permission description Strings.
The MODIFY_NETWORK_SETTINGS and MODIFY_SOUND_SETTINGS permissions were
not descriptive enough. Improve the strings to enumerate exactly what
settings these permissions protect.

Fixes FOR-23.

Change-Id: Idd64738c21d879462a7e7e6c65ceefdc771f1bcd
2015-10-14 14:58:56 -07:00
Adnan Begovic fe7a368a69 cmsdk: Temporary build fixes
Change-Id: I18a1aa9ade95de63fe18eaaeca388b118c8ffe8c
2015-10-09 14:56:20 -07:00
Adnan Begovic a79a53b8ea cmsdk: mContext is private with SystemService now.
YOU MEAN WE HAVE SANE ABSTRACTION NOW?!

Change-Id: I5b37b656b2002013b368b43153927b796ec46e6a
2015-10-09 14:56:20 -07:00
Michael Bestas 7f34720a99 Automatic translation import
Change-Id: If46cee0ac3a60de651bcb20c54c19add9d2bbd3b
2015-10-03 00:23:59 +03:00
Danesh M b4ef25ab19 CMSdk : Initial thermal state to STATE_UNKNOWN
Change-Id: I37c7fe7441d7f0f09d1b96be001f046417ffff12
2015-09-24 18:18:56 -07:00
Michael Bestas ce92e371d0 Automatic translation import
Change-Id: I097602ee86881fcbd1d14ac9626f3f3119966df9
2015-09-24 13:47:57 -07:00
Danesh M b4f88faa26 CMSdk : Add thermal monitor service impl
Change-Id: I54c4473a5fdd026958bc6bf170b2e8953aaa64af
2015-09-24 11:44:14 -07:00
Adnan Begovic 3c456656b3 cmsdk: Make sure the ACCESS_APP_SUGGESTIONS perm is not hidden.
Change-Id: Ide2ce8de1db05a9ccbcb948429623cff481eec12
2015-09-14 17:39:51 -07:00
herriojr e78ca4d6fe Added Application Suggestions.
Added in custom Resolver to handle providing suggestions.

Added in Service to handle providing suggestions to custom resolver.

Added in ability to provider suggestions through a Proxy to another
application which must be installed during compile time if one is
to be used. This is a similar implementation to how the Location
Services work.

Change-Id: Id960260596b7bb6485caa1e1d07744e387a4c6e9
2015-09-14 14:29:43 -07:00
Michael Bestas 35df988aa5 Automatic translation import
Change-Id: I00f2ca510c5c449bc18ea5385510389e72efd539
2015-09-11 20:01:23 +03:00
Michael Bestas d39c839727 Update persistent storage permission string
Change-Id: Id32018b2e6db156eefb124b646b08205e0dcd635
2015-09-11 19:23:37 +03:00
Michael Bestas 44b9ae46d2 Correct permission string.
* Be consistent

Change-Id: I5201f1f2e7ddbf3639985036444935aac3835683
2015-09-11 19:01:43 +03:00
Steve Kondik 7cef6f6945 cmsdk: Add persistent properties API
* Add support for reading and writing values from/to persistent
   storage. Requires the MANAGE_PERSISTENT_STORAGE permission, which
   should not be available for general use by applications.

Change-Id: I8a793396d207f23fcda851c172372f2073778eec
2015-09-09 15:43:32 -07:00
Matt Garnes eabd575721 Add Broadcast action and query API for AudioSource.HOTWORD.
- Add ACTION_HOTWORD_INPUT_CHANGED broadcast action and related extras.
- Add getCurrentHotwordPackageName() API to SettingsManager to query the
  current package name of the application that controls the HOTWORD
  input.
- Rename SettingsManager to PartnerInterface.

Change-Id: I5987499cd32908c47a7e8e95d644c483dc32914c
2015-09-08 17:28:20 -07:00
Matt Garnes a458122384 Allow whitelist for MODIFY_NETWORK_SETTINGS permission.
Change-Id: If4e8137bd782b43f5bd6bd08804a5130deb05359
2015-09-03 14:49:03 -07:00
Adnan Begovic bc2ea6b4a7 cmsdk: Update documentation for HAF permission.
Change-Id: I0b02f23335d13a95abef31bd4cbe6fac7c7b5519
2015-09-01 18:00:39 -07:00
Adnan Begovic 7f17704974 cmsdk: Add permissions for ALARMS.
Change-Id: Ibf8f8a51b97d4c90dcddb11f093e64d82b478f44
2015-09-01 17:14:11 -07:00