summaryrefslogtreecommitdiff
path: root/apex/permission/framework
AgeCommit message (Collapse)Author
2021-01-28Migrate apex/permission to packages/modules/PermissionBaligh Uddin
Refactor import in core/proto/android/os/incident.proto BUG: 167963264 Test: TH Change-Id: I1a6aac95deabeee6d301ad83a2ad31ed2663c02e Merged-In: Ib7c32ba3037c534e9ab8c144716d68e46c908a39
2021-01-27Merge "Add visibility for new location of permission apex." am: 3525be2175 ↵Treehugger Robot
am: e1c8e59876 am: ab95b3352a 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 refactorAnton 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 schemePaul 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 modulesPaul 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 98bd9ace1976e387425c45b93458b259efc81ee6. Reason for revert: Breaks coverage build b/156892973 Bug: 156892973 Change-Id: Id00545e1b2179848d4324d7eacf18e3c3cc476ee
2020-05-17Switch framework-permissions to use java_sdk_libraryPaul 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 modulesAnton 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 filesAnton 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 stubsAnton 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-devTreeHugger 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 defaultsAnton 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 modulesAnton 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 SDKAnton Hansson
Bug: 146757305 Test: m Change-Id: I6a2f8c9340051497770811f631ffb72debbf0b23
2020-02-03Create all variants of stubs for permissionAnton 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