Call update engine to apply payload

Calling update engine to apply payload provided from boot_otas and
reboot on success. Updating different dialogues for 4k prompt.

Test: m Settings && adb install -r $ANDROID_PRODUCT_OUT/system_ext/priv-app/Settings/Settings.apk
Test: make RunSettingsRoboTests ROBOTEST_FILTER=Enable16kPagesPreferenceControllerTest
Bug: 295573133
Change-Id: Iab90a2c2fae5f6aefce95b2306db91c7b056d9f7
This commit is contained in:
Pawan Wagh
2023-09-20 17:58:16 +00:00
parent 8996ca9768
commit 008842edeb
8 changed files with 347 additions and 15 deletions

View File

@@ -11330,9 +11330,15 @@
<!-- setting Checkbox summary whether to boot with 16K page size[CHAR_LIMIT=50] -->
<string name="enable_16k_pages_summary">Boot device using 16K page size supported kernel</string>
<!-- Confirmation dialog title to ensure user wishes to enable 16K page size -->
<string name="confirm_enable_16k_pages_title">Reboot with 16K page compatible kernel?</string>
<string name="confirm_enable_16k_pages_title">Reboot with 16KB pages compatible kernel?</string>
<!-- Warning dialog message to confirm user wishes to enable 16K page size -->
<string name="confirm_enable_16k_pages_text">WARNING: Some applications may not be compatible with this mode</string>
<string name="confirm_enable_16k_pages_text">WARNING: Some applications may not be compatible with this mode. Device will reboot after confirmation.</string>
<!-- dialog title to confirm user wishes to revert to 4k page size kernel -->
<string name="confirm_enable_4k_pages_title">Reboot with 4KB pages compatible kernel?</string>
<!-- dialog message to confirm user wishes to enable 4K page size -->
<string name="confirm_enable_4k_pages_text">Device will reboot after confirmation.</string>
<!-- Toast message when 16k OTA update fails -->
<string name="toast_16k_update_failed_text">Failed to update kernel to 16KB pages compatible kernel.</string>
<!-- DSU Loader. Do not translate. -->
<string name="dsu_loader_title" translatable="false">DSU Loader</string>