Wipe /data with ext4 before 16K OTA

16K developer option needs /data partition to be ext4. Wipe
the /data and reformat it to ext4 using RecoverySystem.

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Test: adb shell cat /proc/mounts | grep f2fs
Bug: 295035851
Bug: 320700993
Change-Id: I7ca6f3a7e18d6dbe4e9791b3c83d149365941989
This commit is contained in:
Pawan Wagh
2024-02-23 01:04:29 +00:00
parent ff6f53b24a
commit 2951b024dc
4 changed files with 192 additions and 6 deletions

View File

@@ -0,0 +1,26 @@
/*
* Copyright (C) 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.settings.development;
/** Interface for EnableExt4DialogHost callbacks. */
public interface EnableExt4DialogHost {
/** Callback when the user presses ok the warning dialog. */
void onExt4DialogConfirmed();
/** Callback when the user cancels or dismisses the warning dialog. */
void onExt4DialogDismissed();
}