1 package android.provider; 2 3 import android.annotation.SystemApi; 4 5 /** 6 * This class reports the readiness of the updatable code to be used. 7 * @hide 8 */ 9 @SystemApi 10 public final class UpdatableDeviceConfigServiceReadiness { 11 UpdatableDeviceConfigServiceReadiness()12 private UpdatableDeviceConfigServiceReadiness() { 13 // do not instantiate 14 } 15 16 /** 17 * Returns true if the updatable service (part of mainline) is ready to be used. 18 * Otherwise the platform shell service should be started. 19 * 20 * <p>see {@code com.android.providers.settings.DeviceConfigService} 21 * <p>see {@code android.provider.DeviceConfig} 22 * 23 * @return true if the updatable code should be used 24 */ shouldStartUpdatableService()25 public static boolean shouldStartUpdatableService() { 26 return false; 27 } 28 29 } 30