Run copy_preinit_files in run_migrations

This commit is contained in:
topjohnwu 2024-07-23 02:21:49 -07:00
parent c8fe0f5524
commit a8789073f1
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,6 @@ direct_install() {
rm -f $1/new-boot.img
fix_env $1
run_migrations
copy_preinit_files
return 0
}
@ -232,7 +231,7 @@ app_init() {
RAMDISKEXIST=false
check_boot_ramdisk && RAMDISKEXIST=true
get_flags >/dev/null
run_migrations
run_migrations >/dev/null
SHA1=$(grep_prop SHA1 $MAGISKTMP/.magisk/config)
check_encryption

View File

@ -556,6 +556,8 @@ run_migrations() {
rm -f $BACKUP
gzip -9f $TARGET
done
copy_preinit_files
}
copy_preinit_files() {