Age | Commit message (Collapse) | Author |
|
Refactor import in core/proto/android/os/incident.proto
BUG: 167963264
Test: TH
Change-Id: I1a6aac95deabeee6d301ad83a2ad31ed2663c02e
Merged-In: Ib7c32ba3037c534e9ab8c144716d68e46c908a39
|
|
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
|
|
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
|
|
These changes have to be in this CL together because:
- Code in service-permission depends on IRoleManager in
framework-permission, so the APIs in framework-permission and the code
in service-permission need to be moved together.
- The changes to service-permission build rules doesn't make sense
without the code moved in, so they have to be together as well.
Other details:
- framework-annotations: Several annotations are added into
framework-annoatations. Since the discussion with API council seems to
allow user IDs in system server in-process APIs, @UserIdInt and
@AppIdInt is added. @MainThread and @AnyThread is added since
@WorkerThread is already added. @CallSuper is added since @CheckResult
is also already added and they are similar in terms of category of
functionality.
- framework-permission-s-shared-srcs: 3 classes (and 2 AIDL files)
from framework is copied as shared source files and jarjared for
framework-permission, and an additional 3 is added for
service-permission as service-permission-shared-srcs. Similar to
framework-wifi and service-wifi, the 3 classes in framework-permission
is also available to service-permission by the stub library
framework-permission-pre-jarjar, and the other 3 classes used only for
service-permission is included separately to minimize our impact on
classes loaded into boot classpath. framework-permission and
service-permission shares the same jarjar rules to make sure the
classes remain available, and for the same reason framework-permission
cannot be shrank during any optimization.
- framework-permission-s-shared: A java_library target for
framework-permission-shared-srcs is created to make sure that the
public classes won't be counted as APIs, as it would be if directly
included as srcs for framework-permission
java_sdk_library. service-permission-shared is the same thing for
service-permission.
- framework-permission-s: A new java_sdk_library target created to be
loaded into bootclasspath by Android S+.
- Dumpsys Protobuf: The dumpsys protobuf
file (rolemanagerservice.proto) is moved into the module, and both the
platform (incident.proto) and the module uses protoc-gen-javastream to
generate the Java classes from it. This should be fine since it's a
"source level inclusion", and we jarjar the generated classes in our
module to avoid conflict with platform copies.
Bug: 158736025
Test: manual
Test: device boots, default apps can be changed successfully.
Change-Id: I1914774f631e51d0c587a7e527a1c9bc05ee1595
|
|
am: 48b91458bd am: 0fb45fadbc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1534424
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic7d62f96ebaac6fbf24228fb6324a4b8b8037956
|
|
The system-server part of this library has last-api tacking, but we also
enable the public api tracking which we don't have last-api tracking of.
Bug: 176092454
Test: m nothing
Change-Id: I0685ad7a971b2b0ce4e01bc7bd31b9d393eed60d
|
|
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
|
|
//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
|
|
Previously, the droidstubs generated the system-server API into the
current.txt and removed.txt files which are usually associated with the
public API surface. This change moves that specification into the
system-server....txt files and verifies that no public APIs are leaking
into the stubs.
Bug: 155164730
Test: m java
Change-Id: I907533c36dcb6c0ef679b0098d497d88476d8b95
|
|
As this did not have @hide this was being treated as if it was part of
the public API and so while it was not being tracked in a .txt file
because only the system-server API was being generated it was being
included in the system-server stubs as metalava will include public API
stubs in the stubs for every API surface.
Adding @hide ensures that it is no longer exported as part of the
service-permission stubs.
Bug: 155164730
Test: m service-permission-stubs and verify that it does not include IoUtils
Change-Id: I1ffa284c1f692397b52bdd6b3750b13125887352
|
|
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
|
|
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
|
|
It should have the stubs of the modules it depends on in its
classpath instead, so link against service-permission-stubs
which is the only module it currently depends on.
Bug: 152864915
Test: m
Change-Id: I4ca19b9ed0db5b9bd61d67e37f5de2e61253bc95
|
|
Should prevent accidental addition of APIs outside com.android,
which is where we want these APIs to be.
Also fix a bug in the permission filegroup where it wasn't
specifying the subpath of its code.
Bug: 149293194
Test: m update-api
Change-Id: I144ce6dbfe524106fc7de87318f66390c31b45af
|
|
Bug: 147768409
Test: m
Change-Id: I824497fe4d3c3dc7bcd63bf1a2b0a2b0bd9172f1
|
|
mainline." into rvc-dev
|
|
Test: build
Fixes: 150877494
Change-Id: Ieca5f7a46241032f6722bb379fc08206b9600ddc
|
|
This renames the new ApexContext class to ApexEnvironment, at the
request of the API Council.
Bug: 150685788
Test: atest ApexEnvironmentTest
Change-Id: I4340b0c7e78d240f4e48fdc94ec9e7d60e58d35c
|
|
This flag will now be used to show different ui if the permission has
been previously set as one-time
Test: Reboot and verify ui is consistent
Bug: 144389816
Change-Id: I86fb595b79819a604aaed613d9edf30c883d1440
|
|
According to lint warnings.
Bug: 136503238
Fixes: 149818284
Test: presubmit
Change-Id: I83e9ac9b65e307bb47d305003ce7adcd2b9c4049
|
|
Bug: 146757305
Test: m
Change-Id: I6a2f8c9340051497770811f631ffb72debbf0b23
|
|
Bug: 148177503
Test: Build / treehugger
Change-Id: If656b2faa2e031775ef1fc4e9bfaeb170db55620
|
|
One time permissions should not be persisted as a granted state because
it doesn't make sense to later load a one-time permission.
Test: Manual
Bug: 136219229
Change-Id: I3352efe1eb8db7fd602f30dcd881c20e2fe5e494
|
|
Bug: 136503238
Test: manual
Change-Id: I8d6aa35b522b390576ae76bc4e5471ba4b2f8372
|
|
Bug: 136503238
Test: presubmit
Change-Id: Id11842ad7653317d5f0ebf2df0f4c315d0018440
|
|
Bug: 136503238
Test: presubmit
Change-Id: Id016d8c111ceadd27dc318c256b2f32ff0380f60
|
|
Along with two empty classes to make build happy.
Bug: 136503238
Test: presubmit
Change-Id: Ib706a7ac4d09374ce220961f9439f712a38f7c0c
|