summaryrefslogtreecommitdiff
path: root/core/java/android/content/RestrictionsManager.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I6ab53570aca580fbee1fcc927871caa09780f58f
* Move some members to the "Q blacklist".Mathew Inwood2018-09-141-1/+2
| | | | | | | | | | | | | | Based on some analysis, these fields/methods are likely false positives. Set maxTargetSdk=P so that any apps using them are required to migrate off them in future. See the bug for more details. Exempted-From-Owner-Approval: Automatic changes to the codebase affecting only @UnsupportedAppUsage annotations, themselves added without requiring owners approval earlier. Bug: 115609023 Test: m Change-Id: I719b5c94e5b1f4fa562dd5d655953422958ad37e
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-151-0/+2
| | | | | | | | | | | | | | | | | | | | | | For packages: android.content.res android.content.pm.split android.content.pm.permission android.content.pm.dex android.content.pm android.content.om android.content This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ia79256a3d04e16dd78331a61af0dcddc5fc1599b
* Annotate @SystemApi with required permissions.Jeff Sharkey2017-06-051-0/+2
| | | | | | | | | | | | | | | | | Most @SystemApi methods should be protected with system (or higher) permissions, so annotate common methods with @RequiresPermission to make automatic verification easier. Verification is really only relevant when calling into system services (where permissions checking can happen on the other side of a Binder call), so annotate managers with the new @SystemService annotation, which is now automatically documented. This is purely a docs change; no logic changes are being made. Test: make -j32 update-api && make -j32 offline-sdk-docs Bug: 62263906 Change-Id: I2554227202d84465676aa4ab0dd336b5c45fc651
* Fix the handling of bundle array in RestrictionsManagerTony Mak2016-06-201-4/+14
| | | | | | Fix: 29506624 Change-Id: I0683d406f8b70d5d5f78bfc337d3952b6513d102
* When system server goes down, crash apps more.Jeff Sharkey2016-02-271-5/+5
| | | | | | | | | | | | | | Similar to first patch, but now using new "rethrowFromSystemServer()" method which internally translates DeadObjectException into DeadSystemException. New logic over in Log.printlns() now suppresses the DeadSystemException stack traces, since they're misleading and just added pressure to the precious log buffer space. Add some extra RuntimeInit checks to suppress logging-about-logging when the system server is dead. Bug: 27364859 Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
* Fixed a typo in convertRestrictionsToBundle JavaDocFyodor Kupolov2015-08-211-1/+2
| | | | | Bug: 23408097 Change-Id: Ie06c33aa7b9a953dec645d1763e27dcb506764f0
* Support for nested bundles in setApplicationRestrictionsFyodor Kupolov2015-03-301-18/+112
| | | | | | | | | | | | | | | Added new restriction types - bundle and bundle-array. Modified RestrictionsManager.getManifestRestrictions to support new hierarchical restrictions. Added RestrictionsManager.convertRestrictionsToBundle, which enables programmatic conversion from a list of RestrictionEntries to a Bundle. Modified read/write methods for application restrictions in UserManagerService. Added unit tests. Bug: 19540606 Change-Id: I32b264e04d5d177ea5b4c39a8ace5ee0ce907970
* Rename getLocalApprovalIntent to createLocalApprovalIntentAmith Yamasani2014-09-051-3/+3
| | | | | | | Based on API review. Bug: 17389920 Change-Id: I84674f25a84d317f017473b6f4ac19c849079323
* Rename restrictions API class and methodAmith Yamasani2014-08-191-1/+2
| | | | | | | | AbstractRestrictionsProvider -> android.service.restrictions.RestrictionsReceiver requestPermission->onRequestPermission Bug: 17006805 Change-Id: I03b1626d6abcd2ad739a55b60b54fdbf9810ceca
* API Review: Improvements to RestrictionsManager APIAmith Yamasani2014-07-221-33/+64
| | | | | | | | | Use an activity intent for local approval instead of a type. Use PeristableBundle instead of Bundle. Pass requestId as an explicit argument in cases where it's required. Bug: 16400892 Change-Id: Id882033f17c39aa9cd63a7eeb73bb7b51f98cf5b
* App restrictions schema and parserAmith Yamasani2014-07-151-12/+179
| | | | | | | | | | | | | Documented the restrictions schema in RestrictionsManager docs. Added a parser to read the meta-data and XML file on the device. Added more types and methods in RestrictionEntry to accomodate some new types and construction modes. Added a styleable for restriction attributes. Slight tweak to permission response params. Bug: 14582645 Change-Id: I193d1162741d110c100831cab33b48e2baf7426c
* Revert some new APIs for restrictions providerAmith Yamasani2014-07-151-93/+70
| | | | | | | | Simplify back to being a broadcast receiver and add an extra to indicate that a new request is desired vs. returning a pending response from before. Change-Id: Iafd16ed98293a2cc09006d2cce097fc3d590bbe2
* Improvements to Restrictions APIAmith Yamasani2014-07-131-83/+204
| | | | | | | | | | | | | | | Convert restrictions provider to a service instead of a receiver. Add a way to get pending responses from restrictions provider. Add AbstractRestrictionsProvider. Add a callback API for responses. Removed some constants in RestrictionsManager. Added new constants for errors and error codes. Much improved javadocs. Bug: 16176009 Change-Id: I838a50fabc80b94b632294b3a55cd5d8092acf55
* Restrictions ManagerAmith Yamasani2014-05-311-0/+344
Mechanism to register a provider for requesting an administrator to respond to permission requests. Request format and response format constants. Description of manifest template for static restrictions. Int type introduced in RestrictionEntry. Needs more javadoc and better description of manifest templates, including specifying the XML attributes. Change-Id: I5a654d364e98379fc60f73db2e06bf9a8310263d