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: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
AppFuse is now a public API. The CL removes the private version from
MtpDocuemntsProvider package and switches to the public version.
Bug: 32891253
Test: MtpDocumentsProviderTest
Change-Id: Ibdf67309bc0678e2f70ac2dddb920125d9e0760e
The policy value 'enable' does not exist anymore
and was replaced by 'always'
(cherry-picked from 2a6b5c63c04b819950cec466c8bb6da61270af22)
Change-Id: I233a555821a84d917e3b3ec923b5baffc18bd2d2
Root documents must be added by RootScanner.
Previously DocumentLoader unintentionally tries to load unmapped root
documents, which causes crash.
BUG=27731902
Change-Id: I8674473d80d6e7f758f6636d30148f5d2118bc25
Previously it skips the device permission check by referring package
name. The CL removes the special case and use general MANAGE_USB
system-only permission to skip USB device permission dialog.
BUG=26048722
Change-Id: I3702393a50696209499d1e5f6549dab9fb2cefe4
Now default configuration of proguard can handle internal VisibleForTesting
annotation. We don't need to have local configuration.
BUG=20274999
Change-Id: Ib21e07336e48dda71d0d2644ddd86422414f7524
These methods will be called in the following CL from the service that handles
USB attach and detach intent.
BUG=20274999
Change-Id: I7b3c658afc5750d6a2713c07f40c59b26dcd1460