11 Commits

Author SHA1 Message Date
Anton Hansson
a3e79fbb8c frameworks/base: Set LOCAL_SDK_VERSION where possible.
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
2018-02-28 17:15:21 +00:00
Daichi Hirono
e80ea38489 Use public version of AppFuse in MtpDocumentsProvider.
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
2017-01-19 14:14:00 +09:00
Delphine Martin
355421460b Set jack.assert.policy value to 'always'
The policy value 'enable' does not exist anymore
and was replaced by 'always'

(cherry-picked from 2a6b5c63c04b819950cec466c8bb6da61270af22)

Change-Id: I233a555821a84d917e3b3ec923b5baffc18bd2d2
2016-05-10 15:35:06 +00:00
Daichi Hirono
071313e8b5 Don't map root documents in DocumentLoader.
Root documents must be added by RootScanner.
Previously DocumentLoader unintentionally tries to load unmapped root
documents, which causes crash.

BUG=27731902

Change-Id: I8674473d80d6e7f758f6636d30148f5d2118bc25
2016-03-22 13:46:52 +09:00
Daichi Hirono
f52ef008c7 Start to use app fuse in MtpDocumentsProvider.
BUG=25756419

Change-Id: I050e7cf7523926710291875737602e95c47be088
2016-01-19 11:20:59 +09:00
Daichi Hirono
bee50c0543 Add AppFuse class and its JNI module.
BUG=25756145

Change-Id: I10597e3377cf860412e006a118cd979b6f108af3
2015-12-21 12:07:13 +09:00
Daichi Hirono
4751880a4d Grant USB device permission by using system permission.
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
2015-12-09 11:15:25 +09:00
Daichi Hirono
d30c9d1302 Remove local flag for proguard.
Now default configuration of proguard can handle internal VisibleForTesting
annotation. We don't need to have local configuration.

BUG=20274999

Change-Id: Ib21e07336e48dda71d0d2644ddd86422414f7524
2015-07-28 14:30:07 +09:00
Daichi Hirono
d5152429e1 Add openDevice and closeDevice methods to MtpDocumentsProvider.
These methods will be called in the following CL from the service that handles
USB attach and detach intent.

BUG=20274999

Change-Id: I7b3c658afc5750d6a2713c07f40c59b26dcd1460
2015-07-24 10:50:08 +09:00
Daichi Hirono
9a05d6b87a Add test package for MTPDocumentsProvider.
BUG=20274999

Change-Id: I179692d3b14392a0634d4c0ace21a9d96a2d0d6a
2015-07-09 15:39:22 +09:00
Daichi Hirono
c00d5d4d82 Create package directory for MtpDocumentProvider.
BUG=20274999

Change-Id: I7e0727e28b8e0ef2909d86f7ba6eddc2bec8911d
2015-06-11 17:35:14 +09:00