summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorSongchun Fan <schfan@google.com>2020-05-27 22:17:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-27 22:17:23 +0000
commitf2a6af4b8a4ea7d889b83b7e54135fca6dcfcb40 (patch)
tree78c35875466c851915046052199991ea15c7f6b2 /core/java/android
parent09aa3bc4b7c2033af7dffc6e46b3db7aa6224623 (diff)
parent14f6c3c735164f8c0f879e96a568168b0c564fa6 (diff)
Merge "[incremental] respect extractNativeLibs in native lib config" into rvc-dev
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/os/incremental/IIncrementalService.aidl4
-rw-r--r--core/java/android/os/incremental/IncrementalStorage.java7
2 files changed, 7 insertions, 4 deletions
diff --git a/core/java/android/os/incremental/IIncrementalService.aidl b/core/java/android/os/incremental/IIncrementalService.aidl
index 4c5757098025..220ce22ded5c 100644
--- a/core/java/android/os/incremental/IIncrementalService.aidl
+++ b/core/java/android/os/incremental/IIncrementalService.aidl
@@ -111,9 +111,9 @@ interface IIncrementalService {
void deleteStorage(int storageId);
/**
- * Setting up native library directories and extract native libs onto a storage.
+ * Setting up native library directories and extract native libs onto a storage if needed.
*/
- boolean configureNativeBinaries(int storageId, in @utf8InCpp String apkFullPath, in @utf8InCpp String libDirRelativePath, in @utf8InCpp String abi);
+ boolean configureNativeBinaries(int storageId, in @utf8InCpp String apkFullPath, in @utf8InCpp String libDirRelativePath, in @utf8InCpp String abi, boolean extractNativeLibs);
/**
* Waits until all native library extraction is done for the storage
diff --git a/core/java/android/os/incremental/IncrementalStorage.java b/core/java/android/os/incremental/IncrementalStorage.java
index 70ebbaa326b8..6200a38fe13c 100644
--- a/core/java/android/os/incremental/IncrementalStorage.java
+++ b/core/java/android/os/incremental/IncrementalStorage.java
@@ -469,12 +469,15 @@ public final class IncrementalStorage {
* @param apkFullPath Source APK to extract native libs from.
* @param libDirRelativePath Target dir to put lib files, e.g., "lib" or "lib/arm".
* @param abi Target ABI of the native lib files. Only extract native libs of this ABI.
+ * @param extractNativeLibs If true, extract native libraries; otherwise just setup directories
+ * without extracting.
* @return Success of not.
*/
public boolean configureNativeBinaries(String apkFullPath, String libDirRelativePath,
- String abi) {
+ String abi, boolean extractNativeLibs) {
try {
- return mService.configureNativeBinaries(mId, apkFullPath, libDirRelativePath, abi);
+ return mService.configureNativeBinaries(mId, apkFullPath, libDirRelativePath, abi,
+ extractNativeLibs);
} catch (RemoteException e) {
e.rethrowFromSystemServer();
return false;