Merge "Revert "DO NOT MERGE - Add AUTOMOTIVE_USER_SETUP_IN_PROGRESS to Settings"" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
cb0b5e206d
@@ -5979,16 +5979,6 @@ public final class Settings {
|
|||||||
@TestApi
|
@TestApi
|
||||||
public static final String USER_SETUP_COMPLETE = "user_setup_complete";
|
public static final String USER_SETUP_COMPLETE = "user_setup_complete";
|
||||||
|
|
||||||
/**
|
|
||||||
* Whether the Auto Embedded Setup Wizard (0 = false, 1 = true) is in progress.
|
|
||||||
* This differs from USER_SETUP_COMPLETE in that it can be reset back to 0
|
|
||||||
* in case Setup Wizard has been re-enabled on Auto Embedded devices.
|
|
||||||
*
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
public static final String AUTOMOTIVE_USER_SETUP_IN_PROGRESS =
|
|
||||||
"automotive_user_setup_in_progress";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates that the user has not started setup personalization.
|
* Indicates that the user has not started setup personalization.
|
||||||
* One of the possible states for {@link #USER_SETUP_PERSONALIZATION_STATE}.
|
* One of the possible states for {@link #USER_SETUP_PERSONALIZATION_STATE}.
|
||||||
|
|||||||
@@ -139,13 +139,6 @@ message SecureSettingsProto {
|
|||||||
}
|
}
|
||||||
optional AutomaticStorageManager automatic_storage_manager = 9;
|
optional AutomaticStorageManager automatic_storage_manager = 9;
|
||||||
|
|
||||||
message Automotive {
|
|
||||||
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
|
||||||
|
|
||||||
optional SettingProto automotive_user_setup_in_progress = 1 [ (android.privacy).dest = DEST_AUTOMATIC ];
|
|
||||||
}
|
|
||||||
optional Automotive automotive = 77;
|
|
||||||
|
|
||||||
message Backup {
|
message Backup {
|
||||||
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
option (android.msg_privacy).dest = DEST_EXPLICIT;
|
||||||
|
|
||||||
@@ -573,5 +566,5 @@ message SecureSettingsProto {
|
|||||||
|
|
||||||
// Please insert fields in alphabetical order and group them into messages
|
// Please insert fields in alphabetical order and group them into messages
|
||||||
// if possible (to avoid reaching the method limit).
|
// if possible (to avoid reaching the method limit).
|
||||||
// Next tag = 78;
|
// Next tag = 77;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -703,7 +703,6 @@ public class SettingsBackupTest {
|
|||||||
Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS,
|
Settings.Secure.UNSAFE_VOLUME_MUSIC_ACTIVE_MS,
|
||||||
Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED,
|
Settings.Secure.USB_AUDIO_AUTOMATIC_ROUTING_DISABLED,
|
||||||
Settings.Secure.USER_SETUP_COMPLETE,
|
Settings.Secure.USER_SETUP_COMPLETE,
|
||||||
Settings.Secure.AUTOMOTIVE_USER_SETUP_IN_PROGRESS,
|
|
||||||
Settings.Secure.USER_SETUP_PERSONALIZATION_STATE,
|
Settings.Secure.USER_SETUP_PERSONALIZATION_STATE,
|
||||||
Settings.Secure.VOICE_INTERACTION_SERVICE,
|
Settings.Secure.VOICE_INTERACTION_SERVICE,
|
||||||
Settings.Secure.VOICE_RECOGNITION_SERVICE,
|
Settings.Secure.VOICE_RECOGNITION_SERVICE,
|
||||||
|
|||||||
@@ -2411,10 +2411,6 @@ class SettingsProtoDumpUtil {
|
|||||||
Settings.Secure.USER_SETUP_COMPLETE,
|
Settings.Secure.USER_SETUP_COMPLETE,
|
||||||
SecureSettingsProto.USER_SETUP_COMPLETE);
|
SecureSettingsProto.USER_SETUP_COMPLETE);
|
||||||
|
|
||||||
dumpSetting(s, p,
|
|
||||||
Settings.Secure.AUTOMOTIVE_USER_SETUP_IN_PROGRESS,
|
|
||||||
SecureSettingsProto.Automotive.AUTOMOTIVE_USER_SETUP_IN_PROGRESS);
|
|
||||||
|
|
||||||
final long voiceToken = p.start(SecureSettingsProto.VOICE);
|
final long voiceToken = p.start(SecureSettingsProto.VOICE);
|
||||||
dumpSetting(s, p,
|
dumpSetting(s, p,
|
||||||
Settings.Secure.VOICE_INTERACTION_SERVICE,
|
Settings.Secure.VOICE_INTERACTION_SERVICE,
|
||||||
|
|||||||
@@ -4449,19 +4449,6 @@ public class SettingsProvider extends ContentProvider {
|
|||||||
currentVersion = 183;
|
currentVersion = 183;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentVersion == 183) {
|
|
||||||
// Version 169: by default, automotive setup wizard is in progress
|
|
||||||
final SettingsState secureSettings = getSecureSettingsLocked(userId);
|
|
||||||
Setting currentSetting = secureSettings.getSettingLocked(
|
|
||||||
Secure.AUTOMOTIVE_USER_SETUP_IN_PROGRESS);
|
|
||||||
if (currentSetting.isNull()) {
|
|
||||||
secureSettings.insertSettingLocked(
|
|
||||||
Secure.AUTOMOTIVE_USER_SETUP_IN_PROGRESS, "1", null, true,
|
|
||||||
SettingsState.SYSTEM_PACKAGE_NAME);
|
|
||||||
}
|
|
||||||
currentVersion = 184;
|
|
||||||
}
|
|
||||||
|
|
||||||
// vXXX: Add new settings above this point.
|
// vXXX: Add new settings above this point.
|
||||||
|
|
||||||
if (currentVersion != newVersion) {
|
if (currentVersion != newVersion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user