We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b96037 + 205a4c1 commit 3ef8cc8Copy full SHA for 3ef8cc8
1 file changed
cmds/installd/otapreopt_script.sh
@@ -50,6 +50,12 @@ else
50
exit 1
51
fi
52
53
+if pm art on-ota-staged --slot "$TARGET_SLOT_SUFFIX"; then
54
+ # Handled by Pre-reboot Dexopt.
55
+ exit 0
56
+fi
57
+echo "Pre-reboot Dexopt not enabled. Fall back to otapreopt."
58
+
59
if [ "$(/system/bin/otapreopt_chroot --version)" != 2 ]; then
60
# We require an updated chroot wrapper that reads dexopt commands from stdin.
61
# Even if we kept compat with the old binary, the OTA preopt wouldn't work due
0 commit comments