Remove ro.apex.updatable check

We no longer support flattened apexes.

Bug: 278826656
Test: atest FrameworksServicesTests:RecoverySystemServiceTest
Change-Id: Id104a4002f3c2057d4d8a832858118ad6fcf5520
This commit is contained in:
Jooyung Han
2023-07-07 11:08:56 +09:00
parent 337e6cc832
commit 5154272595

View File

@@ -52,7 +52,6 @@ import android.os.ServiceManager;
import android.os.ShellCallback;
import android.os.SystemProperties;
import android.provider.DeviceConfig;
import android.sysprop.ApexProperties;
import android.util.ArrayMap;
import android.util.ArraySet;
import android.util.FastImmutableArraySet;
@@ -921,10 +920,6 @@ public class RecoverySystemService extends IRecoverySystem.Stub implements Reboo
return rebootWithLskfImpl(packageName, reason, slotSwitch);
}
public static boolean isUpdatableApexSupported() {
return ApexProperties.updatable().orElse(false);
}
// Metadata should be no more than few MB, if it's larger than 100MB something is wrong.
private static final long APEX_INFO_SIZE_LIMIT = 24 * 1024 * 100;
@@ -975,11 +970,6 @@ public class RecoverySystemService extends IRecoverySystem.Stub implements Reboo
@Override
public boolean allocateSpaceForUpdate(String packageFile) {
allocateSpaceForUpdate_enforcePermission();
if (!isUpdatableApexSupported()) {
Log.i(TAG, "Updatable Apex not supported, "
+ "allocateSpaceForUpdate does nothing.");
return true;
}
final long token = Binder.clearCallingIdentity();
try {
CompressedApexInfoList apexInfoList = getCompressedApexInfoList(packageFile);