launchperf use the private APIs in android.test.runner. So
LOCAL_SDK_VERSION of launchperf will be changed to platform.
Bug: 77577799
Test: m -j
Merged-In: I4ab94e009d96c297b37c7afee35f8ddd2546b977
Change-Id: I4ab94e009d96c297b37c7afee35f8ddd2546b977
launchperf use the private APIs in android.test.runner. So
LOCAL_SDK_VERSION of launchperf will be changed to platform.
Bug: 77577799
Test: m -j
Change-Id: I4ab94e009d96c297b37c7afee35f8ddd2546b977
This reverts commit 3bf31401fe.
Reason for revert: Build cop revert because this change is breaking Blueline builds.
Change-Id: I54f87f21eec0e93873ffedec6b0bbe154584ba4b
Otherwise, it causes the CTS-on-GSI failure on non-emulator devices:
CtsPermission2TestCases android.permission2.cts.PrivappPermissionsTest#testPrivappPermissionsEnforcement
Because non-emulator devices lack the permission file in their /vendor.
/system/priv-app/SdkSetup/SdkSetup.apk
/vendor/etc/permissions/privapp-permissions-goldfish.xml
Bug: 110517983
Test: boot a GSI and checks that SdkSetup.apk is moved to /vendor
Change-Id: I3086f99c477eeca38f42041e1809a5aa3b8bfa7a
An on-device dumpsys / logcat viewer.
It needs the following 3 permissions in order to access logcat / dumpsys.
<uses-permission android:name="android.permission.READ_LOGS"/>
<uses-permission android:name="android.permission.DUMP"/>
<uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
Use "adb install -r -g DumpViewer.apk" to give the permissions.
Alternatively, you can grant the permissions with "pm grant":
pm grant com.android.dumpviewer android.permission.PACKAGE_USAGE_STATS
pm grant com.android.dumpviewer android.permission.READ_LOGS
pm grant com.android.dumpviewer android.permission.DUMP
Bug: 110088132
Test: manual test
Change-Id: If5aed1e459e67989f6759a2f53c80a26c3eacccf
Bug: 78372687
Test: suceeded building and tested with taimen
Change-Id: Iefa08beffd6377bdd5c0c49065471a59f79f79a1
(cherry picked from commit 376cc06104)
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.
Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.
Test: make relevant packages
Bug: 73535841
Change-Id: I371bd0b43e66bcc4be1e26decb95c70519ac3342
android.test.base/runner/mock libraries are shared libraries that are
built without SDK, but with framework interanl libraries (framework.jar,
etc). Apps or libs that are built with SDK (LOCAL_SDK_VERSION is set)
shouldn't use them, but instead the stubs version of the test framework
libraries, which are built using SDK.
This is because, the build system does not allow a module built with SDK
to depend on another module built without SDK. This has been
exceptionally allowed with warnings, but will soon be errors.
In order to prevent the expected build breakage, direct reference to the
shared libraries are all changed to the stubs libraries.
Note: no one has been using these shared libs statically. So, it is
guaranteed that they won't encounter a problem due to missing
<uses-library name="android.test.runner"/> even after this change.
Bug: 69899800
Test: m -j checkbuild
Change-Id: I7f25e0127c52c56adf288163a760f3dc9aee6586