Loading core/java/android/os/incremental/IIncrementalService.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading core/java/android/os/incremental/IncrementalStorage.java +5 −2 Original line number Diff line number Diff line Loading @@ -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; Loading core/java/com/android/internal/content/NativeLibraryHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,8 @@ public class NativeLibraryHelper { } for (int i = 0; i < apkPaths.length; i++) { if (!incrementalStorage.configureNativeBinaries(apkPaths[i], libRelativeDir, abi)) { if (!incrementalStorage.configureNativeBinaries(apkPaths[i], libRelativeDir, abi, handle.extractNativeLibs)) { return PackageManager.INSTALL_FAILED_INTERNAL_ERROR; } } Loading services/incremental/BinderIncrementalService.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -280,8 +280,9 @@ binder::Status BinderIncrementalService::startLoading(int32_t storageId, bool* _ binder::Status BinderIncrementalService::configureNativeBinaries( int32_t storageId, const std::string& apkFullPath, const std::string& libDirRelativePath, const std::string& abi, bool* _aidl_return) { *_aidl_return = mImpl.configureNativeBinaries(storageId, apkFullPath, libDirRelativePath, abi); const std::string& abi, bool extractNativeLibs, bool* _aidl_return) { *_aidl_return = mImpl.configureNativeBinaries(storageId, apkFullPath, libDirRelativePath, abi, extractNativeLibs); return ok(); } Loading services/incremental/BinderIncrementalService.h +2 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,8 @@ public: binder::Status configureNativeBinaries(int32_t storageId, const std::string& apkFullPath, const std::string& libDirRelativePath, const std::string& abi, bool* _aidl_return) final; const std::string& abi, bool extractNativeLibs, bool* _aidl_return) final; binder::Status waitForNativeBinariesExtraction(int storageId, bool* _aidl_return) final; private: Loading Loading
core/java/android/os/incremental/IIncrementalService.aidl +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading
core/java/android/os/incremental/IncrementalStorage.java +5 −2 Original line number Diff line number Diff line Loading @@ -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; Loading
core/java/com/android/internal/content/NativeLibraryHelper.java +2 −1 Original line number Diff line number Diff line Loading @@ -506,7 +506,8 @@ public class NativeLibraryHelper { } for (int i = 0; i < apkPaths.length; i++) { if (!incrementalStorage.configureNativeBinaries(apkPaths[i], libRelativeDir, abi)) { if (!incrementalStorage.configureNativeBinaries(apkPaths[i], libRelativeDir, abi, handle.extractNativeLibs)) { return PackageManager.INSTALL_FAILED_INTERNAL_ERROR; } } Loading
services/incremental/BinderIncrementalService.cpp +3 −2 Original line number Diff line number Diff line Loading @@ -280,8 +280,9 @@ binder::Status BinderIncrementalService::startLoading(int32_t storageId, bool* _ binder::Status BinderIncrementalService::configureNativeBinaries( int32_t storageId, const std::string& apkFullPath, const std::string& libDirRelativePath, const std::string& abi, bool* _aidl_return) { *_aidl_return = mImpl.configureNativeBinaries(storageId, apkFullPath, libDirRelativePath, abi); const std::string& abi, bool extractNativeLibs, bool* _aidl_return) { *_aidl_return = mImpl.configureNativeBinaries(storageId, apkFullPath, libDirRelativePath, abi, extractNativeLibs); return ok(); } Loading
services/incremental/BinderIncrementalService.h +2 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,8 @@ public: binder::Status configureNativeBinaries(int32_t storageId, const std::string& apkFullPath, const std::string& libDirRelativePath, const std::string& abi, bool* _aidl_return) final; const std::string& abi, bool extractNativeLibs, bool* _aidl_return) final; binder::Status waitForNativeBinariesExtraction(int storageId, bool* _aidl_return) final; private: Loading