summaryrefslogtreecommitdiffstats
path: root/core/java
Commit message (Collapse)AuthorAgeFilesLines
* Fix issue #8470131: Process thrash kills batteryDianne Hackborn2015-08-251-4/+13
| | | | | | | | | | | | | | Protect app widget broadcasts from abuse. In this case the app was sending an APPWIDGET_UPDATE broadcast without specifying a target, which (a) should not be allowed (you should not be able to send updates to other apps), and (b) resulted in every single potential app widget in the system being launched... which was about 75 of them. Change-Id: I9d48733610ce6d5a7c32e69a3e06b9f33bd79a34 Signed-off-by: Dianne Hackborn <hackbod@google.com> Tested-by: Moritz Bandemer <replicant@posteo.mx>
* LockPatternUtils: Method is not deprecated for no reasonPaul Kocialkowski2014-01-231-1/+0
| | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Links corrections for javadocPaul Kocialkowski2013-11-161-2/+1
| | | | | Change-Id: I22188668bd4b2d82dcfb13d0b656db324b858858 Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Adapt hardware renderer and screen rotation animation for SoftwareGLPaul Kocialkowski2013-10-282-33/+45
| | | | | Change-Id: I0d7809e7ae408c4762982599576be9a78d54a2dc Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
* Merge "Make notification-shade-collapse-after-dismiss behaviour ↵Danny Baumann2013-07-301-0/+13
|\ | | | | | | configurable." into cm-10.1
| * Make notification-shade-collapse-after-dismiss behaviour configurable.Danny Baumann2013-07-171-0/+13
| | | | | | | | Change-Id: I1be0be2753b479e6d2e4fc8e17d971d03ce01bb7
* | Fix SELinux.java doc errorsRichard Haines2013-07-181-7/+5
| | | | | | | | | | | | | | | | This fixes five errors when building the Java docs. It also removes two obsolete lines. Signed-off-by: Richard Haines <richard_c_haines@btinternet.com> Change-Id: I814411cbc8d16eaed99a1389f5487529e36e647b
* | Replace SEAndroid with SELinux.Stephen Smalley2013-07-182-5/+5
| | | | | | | | | | Change-Id: Ibbe544a9f025d71ad416bc01cee2145b62d7b2d4 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | Move seinfo and install-time changes to inside PMS.Robert Craig2013-07-181-514/+0
| | | | | | | | | | | | | | Per request by Google, move the install-time checks entirely inside PMS. Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8479e
* | Update location of policy filesWilliam Roberts2013-07-181-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | The location of policy files has changed from /data/system to /data/security. Also, a name change to mmac enforcing property name to place it under persist.mmac. namesepace. Adds api's for getting and setting the MMAC enforcing mode. Change-Id: I0e9468fe651cd6ec018d5c85d35d693e55479e89
* | Implement Device Admin API for MMACJoman Chu2013-07-183-4/+173
| | | | | | | | | | | | | | | | Conflicts: api/current.txt core/java/android/app/admin/DevicePolicyManager.java Change-Id: I1df507ced67fbcab8fdcde9cce78705b5e54e346
* | Apply MMAC changes from master.Stephen Smalley2013-07-182-54/+296
| | | | | | | | Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8477e
* | Remove SELinux additions from public APIRicardo Cerqueira2013-07-182-0/+15
| | | | | | | | Change-Id: If2e076312b0e411145c1cd900f3ae20d998a0f24
* | Add APIs to allow Device Admins to change SELinux settingsJoman Chu2013-07-183-1/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These calls, added to the Device Admin API, will allow Device Admin apps to change various SELinux settings, including: * Toggling SELinux enforcing and permissive modes * Toggle SELinux booleans * Load a new SELinux policy file (sepolicy) * Load new SELinux context files ({property,file,seapp}_contexts) In order to use these APIs, a Device Admin must first request USES_POLICY_ENFORCE_SELINUX, then become a SELinux Admin by calling setSELinuxAdmin(). All other set* calls relevant to SELinux are guarded by a check against whether the admin is a SELinux Admin. Otherwise, the style of the set* calls are very similar to the other calls setting device policy in the Device Admin API. That is, these calls change the Admin's internal state and then call a sync method to update the device's state to the Admin's state. Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8476e
* | Added SELinux enforcing status and booleans keys to secure system settings.Stephen Smalley2013-07-181-0/+21
| | | | | | | | | | | | | | Conflicts: core/java/android/provider/Settings.java Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8474e
* | Add seinfo parsing to PackageManagerService.rpcraig2013-07-182-0/+278
|/ | | | | | | | | | | | | | | | | This patch set allows the PMS to parse the mac_permissions.xml file which contains the seinfo values. Each package that is installed on the device will be assigned an seinfo value based on policy. This seinfo value will help label the app process and data directory. Modifications also include, adjustments to ApplicationInfo.java to store the seinfo tag per package, adjustments to installd to communicate the seinfo tag to libselinux, and finally a set of unit tests. Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil> Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
* Merge "Also backup profiles file via backup manager." into cm-10.1David van Tonder2013-07-102-0/+35
|\
| * Also backup profiles file via backup manager.Danny Baumann2013-07-102-0/+35
| | | | | | | | Change-Id: Id70cb1bce15b7de127e4291e9482ab3fd7270f9f
* | Merge "Add lockscreen rotation as an optional rotation setting (1/2)" into ↵David van Tonder2013-07-101-0/+8
|\ \ | | | | | | | | | cm-10.1
| * | Add lockscreen rotation as an optional rotation setting (1/2)Kelly2013-07-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will allow the user to select wether or not to use the rotation settings for the lockscreen. This is dependent upon the rotation setting being checked. Signed-off-by: Michael Bestas <mikeioannina@gmail.com> Change-Id: Ibd7c69b0af1e0a7d91b985f2b21ea0b5bc619a70 JIRA: CYAN-339
* | | New Event: ACTION_NEW_OUTGOING_SMSKoushik Dutta2013-07-101-0/+19
|/ / | | | | | | Change-Id: I8be01ad6251ca25e4d00ebffd876bb6ce7f3c283
* | Merge "Fix requery behaviour of MemoryCursor." into cm-10.1Danny Baumann2013-07-091-1/+25
|\ \
| * | Fix requery behaviour of MemoryCursor.Danny Baumann2013-07-071-1/+25
| |/ | | | | | | | | | | | | As we can't restore the contents of the cursor window, we need to keep it on deactivation so we can restore it on requery(). Change-Id: I06f688bbe9120c307bdc3ddbc3833416becdec82
* | Merge "FileUtils: add method to get UUID of a volume" into cm-10.1Steve Kondik2013-07-091-0/+7
|\ \
| * | FileUtils: add method to get UUID of a volumeDaniel Hillenbrand2013-06-171-0/+7
| | | | | | | | | | | | Change-Id: I41b76c5e01c82a2f8e67b33133a76947877a2814
* | | Merge "Make contacts app aware of blacklist being disabled (1/3)" into cm-10.1Danny Baumann2013-07-091-0/+6
|\ \ \
| * | | Make contacts app aware of blacklist being disabled (1/3)Danny Baumann2013-06-261-0/+6
| | | | | | | | | | | | | | | | Change-Id: Ic59f370a6e78390c9b2b1510e0ec85b2f4af9146
* | | | Add a delimiter between scheme and hostSelim Gurun2013-07-073-4/+24
| | | | | | | | | | | | | | | | | | | | Bug: 6923539 Change-Id: I49aac145e8e80a5af7475cfe93ef4a353d2d3fe6
* | | | Validate restored file paths against their nominal domainChristopher Tate2013-07-071-9/+19
| |_|/ |/| | | | | | | | | | | | | | Bug 8460775 Change-Id: Ib16d740a001adf4f9cb9ccaa31066ac7cadfb430
* | | Merge "Add option to hide music controls in lockscreen." into cm-10.1David van Tonder2013-07-021-0/+7
|\ \ \
| * | | Add option to hide music controls in lockscreen.Danny Baumann2013-07-021-0/+7
| | | | | | | | | | | | | | | | | | | | JIRA:CYAN-1566 Change-Id: Iae3dd9914b1685c6bf1e39e421372ce0bdfb93cc
* | | | Add an option to allow a (subtle) notification vibration during calls.Danny Baumann2013-07-021-0/+9
|/ / / | | | | | | | | | | | | Change-Id: I8a5e1d15d17d56089158b24f9a4b246ae6e60285 JIRA:CYAN-1550
* | | Add SMS Middleware layer.Koushik Dutta2013-06-291-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add fix so ordered broadcasts are delivered to system apps first in the event of a tie. This works around the issue where terrible apps steal SMS notifications from the broadcast queue to simply prevent notifications that could otherwise be removed by a toggle. Change-Id: I4fff0c584f8fce9c5f2f4fe86a82fe6480c307c7
* | | Merge "Add 2G/3G option to profile connections (1/2)" into cm-10.1David van Tonder2013-06-261-0/+28
|\ \ \
| * | | Add 2G/3G option to profile connections (1/2)Jo De Boeck2013-06-261-0/+28
| |/ / | | | | | | | | | Change-Id: I55d0768c9eeecb7dcce97c6d6390e339d678d0c4
* | | QuickSettings: Camera tileNebojsa Cvetkovic2013-06-262-1/+6
|/ / | | | | | | Change-Id: Id0beb3dd559536bb5571ddc87cb0bcb4945b1a77
* | Use sticky broadcast to convey torch state (1/2).Danny Baumann2013-06-263-9/+65
| | | | | | | | | | | | | | | | | | | | | | It doesn't really make sense to store the (non-persistent) state of the torch in a (persistent) setting. As the torch is sending a broadcast anyway, make that broadcast sticky and use it to convey the state. Also unify the torch constants (actions, extras, activity names) at a common place. Change-Id: If845bef27cc79990794aa748dce18cfea3bac1f5
* | Profiles: Add a profile picker activityJorge Ruesga2013-06-251-0/+66
| | | | | | | | | | | | | | | | | | Patchset 2: Add CM Copyright Patchset 3+4: Rebase Patchset 5: Some optimizations Change-Id: Ic8281e4c6fef6d2f4c56fc01acfe6e54b4c8f51c Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
* | Add missing @hide annotations for Privacy GuardSteve Kondik2013-06-241-0/+1
| | | | | | | | Change-Id: I6072ed2d3ac05382f9cabbada0c42cea6cbe2422
* | Merge "Fix multi-user behaviour for system UI settings (1/2)" into cm-10.1David van Tonder2013-06-241-0/+1
|\ \
| * | Fix multi-user behaviour for system UI settings (1/2)Danny Baumann2013-06-241-0/+1
| | | | | | | | | | | | Change-Id: I0e434b989c16f5871ce56c7e3041ff3c7a436c73
* | | Merge "Profiles: Fix turning bluetooth on/off when its in intermediate ↵David van Tonder2013-06-241-3/+5
|\ \ \ | | | | | | | | | | | | state" into cm-10.1
| * | | Profiles: Fix turning bluetooth on/off when its in intermediate stateJo De Boeck2013-06-241-3/+5
| |/ / | | | | | | | | | Change-Id: I09213c987580f47a6c3618edb469edabda96230c
* | | framework: Privacy GuardSteve Kondik2013-06-2411-3/+160
|/ / | | | | | | | | | | | | | | | | | | | | * Introduce a new privacy feature which allows the user to run an application with reduced visibility into his or her personal data. * Adds a per-application flag and simple API to determine if this flag is enabled for the current or calling process. * This flag can be used by content providers to decide if they should return a limited/empty dataset. Change-Id: Id7c54d728e63acb2b02a2a9322930b54949f6c5d
* | Merge "[2/2] Add bluetooth triggers to profiles" into cm-10.1David van Tonder2013-06-231-29/+157
|\ \
| * | [2/2] Add bluetooth triggers to profilesJo De Boeck2013-06-211-29/+157
| | | | | | | | | | | | Change-Id: I374cc93364c88b8b29c88345deccf297234ff624
* | | Fix DateUtils.formatElapsedTime, againRicardo Cerqueira2013-06-211-1/+1
| | | | | | | | | | | | | | | | | | Remove extraneous "hours" argument in the <10 minutes case Change-Id: I5a5913d2e0744f5783f8422cddc30603c7bd703f
* | | WebSettings: Move CM tag to the end of the user-agentRicardo Cerqueira2013-06-211-4/+11
|/ / | | | | | | | | | | | | | | Append it at the end of everything to make it less obtrusive to agent parsers, and append the CM device identifier so we can present smarter choices when our sites are accessed. Change-Id: I1e60d13be4cca9043e434a31bfc4fa08e01a12c0
* | Revert behavior of DateUtils.formatElapsedTimeRicardo Cerqueira2013-06-201-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Change Ib3c1e1aad05827df646aa18645cce19dffb7551f fixes the inability to display more that 2-digit hour values, but also changes the behavior of <10 minutes display by zero-padding the minutes. This makes the Chronometer widget look different, and breaks Holo CTS. Fix it so that for values under 600 seconds, the minutes don't get padded Change-Id: I34eb7f22e728c55bf3313ed1987ac32969cd5ed0
* | ThemeUtils: Retain the original package name in themed UI contextRicardo Cerqueira2013-06-201-1/+18
|/ | | | | | | | | | | | | | In order for themes to reflect on system elements, we're changing their context, including the package name. This breaks anything that tries to identify system elements, most notably any users of the uiautomator. Trying to do 'UiSelector().packageName("android")' to find, for example, a force-close dialog will fail. Fixes com.android.cts.uiautomatortest.CtsUiAutomatorTest#testUiWatcher Change-Id: Ic05c3024b20ac3772ed5597846fbfa4a184ebb0d