summaryrefslogtreecommitdiff
path: root/framework
AgeCommit message (Collapse)Author
2024-02-06Renamed PermissionState to reuse in SystemAPI Kiran Ramachandra
The class `PermissionState` is being used in ag/26066306 as SystemAPI. Hence renaming this to an unused class, which will be cleaned up in a follow up CL. Effort to rename as well as recuse in single CL has failed in pre-submit with the error `FAILED: out/soong/hiddenapi/hiddenapi-stub-flags.txt` and `Class duplication: Landroid/permission/PermissionState`. Hence, created this CL separately to rename first. Bug: 322876542 Test: manual Change-Id: I44dcf2c8a2b0ba1fd9f9e9e4492f1bc4d7566b21
2024-01-31Merge "[DON'T BLOCK] Test ownership migration rules" into main Aditya Choudhary
2024-01-31[DON'T BLOCK] Test ownership migration rules Aditya Choudhary
This CL is created as a best effort to migrate test targets to the new android ownership model. If you find incorrect or unnecessary attribution in this CL, please create a separate CL to fix that. For more details please refer to the link below, <add g3 doc link> Bug: 304529413 Test: N/A (cherry picked from aosp/2939780) Change-Id: Icbe839de65c4449f764bd579a9f8c43f9fac770d
2024-01-25Remove java_api_contribution modules from .bp files Jihoon Kang
java_api_contribution modules are dynamically generated from droidstubs modules or java_sdk_library_import, and is not a user-facing module. Defining this module is a .bp file is a no-op. Test: m nothing Bug: 322242515 Change-Id: I68e450e4c7bbf4a077bfb43cd7e1bbcde4f5a6cc
2023-10-12Add additional overriding methods to signature files Jihoon Kang
This change adds overriding methods that are essential to compile the stubs generated from the signature files. More information and the background for this change is available at go/add-overriding-one-pager. Test: m checkbuild --build-from-text-stub Bug: 299366704 Change-Id: Ibccbf010cada6d0e72514f17c4744b785f57989b
2023-10-10Prepare for keeping concrete overrides of abstract methods Paul Duffin
Currently, metalava will discard concrete overrides of abstract methods from the API signature files which causes problems when attempting to generate stubs from those files and also discards information that may be important in API reviews. This change is the first step in the process of changing that behavior. This change hard codes the current behavior for discarding the concrete overrides (`add-additional-overrides=no`) into those signature files that will (or are likely) to be affected by the change in behavior. That allows the default behavior to be changed for all the other files without affecting these. Follow up changes will remove the hard coding from the signature files and will update the contents which will include the concrete overrides of the abstract methods. More information and the background for this change is available at go/add-overriding-one-pager. Test: m checkapi Bug: 299366704 Change-Id: Ia1562532938bc078b739dfe8b3910b6c741cde72
2023-03-15Use filegroup defaults for framework sources Anton Hansson
There's now a shared defaults module for this kind of filegroup. Use that and remove the previously duplicated prop. Bug: 271816210 Test: m Change-Id: Iafd18cf1740c31f6450a26ce0b80d27dcc5de5ba
2022-12-15java_api_contribution module definition for Permission Jihoon Kang
Add public API surface java_api_contribution module definitions for Permission API domain Test: m Change-Id: Ic7b993a50eb365b49ecd788d09a20f1401621303
2021-08-18Enable strict_updatability_linting for permission. Hai Zhang
Fixes: 188851870 Test: build Change-Id: I40f97abbc07412f84fa1ed52bd22b17a4141d051
2021-02-05[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Permission am: 2f0b2bbf3d ↵ Bob Badour
am: 7924b77485 am: 13f86dd226 Original change: https://android-review.googlesource.com/c/platform/packages/modules/Permission/+/1576226 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I971bc92333730c2121be2e540660fe9419004ef8
2021-02-05[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Permission Bob Badour
Added SPDX-license-identifier-Apache-2.0 to: Android.bp framework/Android.bp service/Android.bp testing/Android.bp tests/Android.bp Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I16cc0e9742f196de9afbecc1bf0788c2f12bc4d0
2021-01-27Merge "Add visibility for new location of permission apex." am: 3525be2175 ↵ Treehugger Robot
am: c8fec8ca93 am: ea03a338bd Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1560528 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: Ia25202e2d5f9ea3beffdaaaf6620436804756a7a
2021-01-26Add visibility for new location of permission apex. Baligh Uddin
This is prep. work for f/b/apex/permission migraton to packages/modules/Permission. The Build System does not enforce location checks within visibility, which allows us to add the new location post migration and ensure migration process does not run into visibility related errors. BUG: 167963264 Test: TH Change-Id: I765b73bb8e0f377ef03805423807e720f1e90582
2021-01-23Add framework-permission-s java_sdk_library. Hai Zhang
This will host the moved framework classes for role. The class RoleFrameworkPlaceholder is added because the build won't pass if there isn't any java source. Bug: 158736025 Test: build Change-Id: Icabab2cc956d6c7c07a6217256d23a8402960307
2020-12-16Limit build visibility of modules in apex/... Anton Hansson
This changes the default visibility of soong modules in this directory to __subpackages__, from the current public default. This helps accidental dependencies sneaking in without intent from the module owner. Bug: 175604587 Test: m nothing Change-Id: I1df8b8e087d27f62ce8c09d7e6e32d511efdba6b
2020-09-07Simplify module visibility post build refactor Anton Hansson
//visibility:override is no longer needed for impl_library_visibility to override visibility. Removing this allows the defaults module to specify better defaults. - Stub libraries are made publicly visible, via `visibility` - Impl libraries are private by default, but visibility is extended by the modules Bug: 165017290 Test: m Exempt-From-Owner-Approval: build refactor Change-Id: Ibf35bfac5c99a21125f89ba10945f3364217b90f
2020-06-02Switch to standard naming scheme Paul Duffin
Removes use of the special framework-modules naming scheme. Bug: 155164730 Test: m java Exempt-From-Owner-Approval: Build cleanup. Change-Id: I3b78fcbcacc3df787e171d6eedeef1e51b087615 Merged-In: I0c31e2183353dfb5bd49f04f3455cb7b10be6866 (cherry picked from 8b864fb45ce79051437f13c2a19510718ea3b7aa)
2020-05-31Clean up the visibility rules for framework modules Paul Duffin
Switching from java_library to java_sdk_library switched the meaning of the module name from referring to the implementation library to referring to the stubs. This change updates the visibility rules to reflect that new meaning. Visibility rules that were previously set for the java_library have been moved to the impl_library_visibility property and the special //visibility:override value has been prepended to prevent it from inheriting the values from the visibility property. Visibility rules set for the stubs (via stubs_library_visibility) property have been moved to the visibility property. Bug: 155164730 Test: m nothing Exempt-From-Owner-Approval: Build cleanup Change-Id: Icc9bc5a9ef86cf7ba0f15c2b2a4abd596ec9f640
2020-05-20Retry "Switch framework-permissions to use java_sdk_library" Paul Duffin
The bug that caused this to be reverted has been fixed and this was tested (and passed) on the build configuration that previously failed. The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Test: m update-api TARGET_BUILD_VARIANT=userdebug PRODUCT=mainline_modules_x86 EMMA_INSTRUMENT=true NATIVE_COVERAGE=true Bug: 155164730 Change-Id: I4ec54a4a25447d04acc2d7ac688258780328653f
2020-05-18Revert "Switch framework-permissions to use java_sdk_library" Paul Duffin
This reverts commit 63fde6a097711745f60c9e5b37d335f5da2dd1f8. Reason for revert: Breaks coverage build b/156892973 Bug: 156892973 Change-Id: Id00545e1b2179848d4324d7eacf18e3c3cc476ee
2020-05-17Switch framework-permissions to use java_sdk_library Paul Duffin
The names of the individual modules do not quite follow the pattern that java_sdk_library uses so this temporarily sets the following: naming_scheme: "frameworks-modules" That causes java_sdk_library to use a naming scheme that matches the one used by the individual modules of this. It will be cleaned up later. Test: m update-api Bug: 155164730 Change-Id: I56b4db67e919673f353dd2238b63c5bd3e749b05
2020-05-05Enable api lint and check_last_api for modules Anton Hansson
This adds checking of module api compatibility to the individual module api rules. Until now, this checking has been done via the monolithic metalava runs which we are aiming to get rid of. Now is a good time to do this because we can compare them to the just finalized version 30 API, which we have no diffs with. Baseline the existing wifi failures that metalava fails to find in the previous API. Bug: 144149403 Test: m checkapi Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
2020-04-30Rename module dist files Anton Hansson
This makes the filenames of the disted artifacts (api txts and stubs) match the module name of the modules they're from. This matches the naming scheme used by java_sdk_library, which should make the future transition to this build rule easier. Bug: 149293194 Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
2020-04-08Don't specify sdk_version for stubs Anton Hansson
The default specifies sdk_version correctly, so use the inherited value to make it easier to make global changes. Bug: 144149403 Test: m Change-Id: Ie78e2a934ed52cc9ad31dc6a3c0fb7e0c4b915a1
2020-03-27Merge "Add permitted_packages to framework-permission." into rvc-dev TreeHugger Robot
2020-03-26Add permitted_packages to framework-permission. Vladimir Marko
Test: m out/soong/.intermediates/frameworks/base/apex/permission/framework/framework-permission/android_common/package-check.stamp Bug: 151314205 Change-Id: I414d79c1b384d982d9774718c2578dffa9e8bd8e
2020-03-24Make framework-permission stubs use the new defaults Anton Hansson
Makes it convenient to change all stubs from a central place. Bug: 149293194 Test: m framework-permission-stubs{public,system,module_libs_}api Change-Id: I8c12cf5c30833211eee3191765e635c5a9921a2b
2020-03-18Add individual API tracking files for modules Anton Hansson
This adds metalava api tracking generation to the module stub rules, to make sure we know exactly what API a particular module stub exports. Bug: 147768409 Test: m update-api Exempt-From-Owner-Approval: Approved in master Change-Id: Iaf2ef5b5751eb208d119ddbc74481239366fe581 Merged-In: Iaf2ef5b5751eb208d119ddbc74481239366fe581
2020-02-08Build permission against the module SDK Anton Hansson
Bug: 146757305 Test: m Change-Id: I6a2f8c9340051497770811f631ffb72debbf0b23
2020-02-03Create all variants of stubs for permission Anton Hansson
Add separate publicapi, systemapi and module_libs stubs for permission, and use a naming scheme consistent with other modules. Bug: 147768409 Test: m Test: m framework-permission-stubs-{public,system,module_libs_}api Change-Id: I0bd870f5418bab55e0507a57c72db1c088f732d2
2020-01-17Move runtime permissions persistence into APEX. Hai Zhang
Bug: 136503238 Test: presubmit Change-Id: Id016d8c111ceadd27dc318c256b2f32ff0380f60
2020-01-15Allow adding framework and service java code into permission APEX. Hai Zhang
Along with two empty classes to make build happy. Bug: 136503238 Test: presubmit Change-Id: Ib706a7ac4d09374ce220961f9439f712a38f7c0c