Protect APK data during package-manager container cleanup too

This commit is contained in:
toorux committed 2026-10-10 20:27:03 +08:00
1 parent ae35a7c487
commit 1291925884
2 files changed
+4 -4

No files matched your search

+4
View File
@@ -1194,6 +1194,10 @@ fn direct_launch_script(source: &str) -> Result<String> {
"Unsupported Lepton entry script; cannot safely configure the APK display"
);
let hooks = r#"
# Lepton 3 calls this helper from remove_prefix, independently of
# LEPTON_NO_CLEANUP. Preserve installed data for both the package-manager
# container and native Steam launches; temporary prefix removal still runs.
function prepare_baked_data_for_removal() { :; }
# Preserve downloaded Android resources in development contexts. Lepton's
# single-app launcher deletes media/0 before creating its external-storage link.
function framely_prepare_media() {
-4
View File
@@ -23,10 +23,6 @@ function run_app_commands() {
function get_app_hash() { extract_app_hash; }
function get_app_last_depot_version() { extract_app_last_depot_version; }
function clear_baked_app_data() { println 'Framely: keeping installed application data'; }
# Lepton 3 also calls this helper from remove_prefix, independently of
# LEPTON_NO_CLEANUP. It deletes the persistent /data overlay before removing
# the temporary prefix. Installed APKs must keep that overlay across launches.
function prepare_baked_data_for_removal() { :; }
# Separate native APK overlays in older shared contexts. Keep the installed
# directory (including extracted libraries/splits), rather than hiding it with
# a directory containing only the staged base APK.