[07.05.2024 19:29 ] ### prepare_phone.sh started at 07.05.2024 19:29:36 (The PID of this process is 1119924) [07.05.2024 19:29 ] ### Processing the parameter ... [07.05.2024 19:29 ] Not yet used parameter are: "all_sideload" [07.05.2024 19:29 ] Tasks to execute are: "all_sideload" [07.05.2024 19:29 ] Parameter for the function init_tasks are: "" [07.05.2024 19:29 ] ### The logfile used is /var/tmp/prepare_phone.sh.log [07.05.2024 19:29 ] Checking the include file "/data/develop/android/scripts_on_linux/prepare_phone.include" ... [07.05.2024 19:29 ] Reading the include file "/data/develop/android/scripts_on_linux/prepare_phone.include" ... [07.05.2024 19:29 ] Processing the parameter ... [07.05.2024 19:29 ] Preparing the list of tasks to execute ... [07.05.2024 19:29 ] "init_tasks" is defined - now executing it ... ---------------------------------------------------------------------- [07.05.2024 19:29 ] Searching for a config file .... [07.05.2024 19:29 ] Config file "prepare_phone.conf" succesfully read [07.05.2024 19:29 ] Using the directory "/tmp" for temporary files [07.05.2024 19:29 ] The PID of this process is 1119924 [07.05.2024 19:29 ] The include file used is : -rw-r--r--. 1 xtrnaw7 xtrnaw7 486206 May 7 19:26 /data/develop/android/scripts_on_linux/prepare_phone.include [07.05.2024 19:29 ] The include file used was last edited at: "05.05.2024 /bs" [07.05.2024 19:29 ] The version of the used execute_tasks.sh script is "v2.3.1" ----------------------------------------------------------------------- [07.05.2024 19:29 ] Using the TWRP image "/data/backup/ASUS_ZENFONE8/Lineage-20/twrp_3.7.0_12-1-I006D_for_lineageOS20-20240423-sake.img" for booting the phone into TWRP [07.05.2024 19:29 ] Using the working directory "/tmp/prepare_phone.sh_WORKDIR.1119924" . [07.05.2024 19:29 ] *** Reading the include file "/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh" ... [07.05.2024 19:29 ] The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... [07.05.2024 19:29 ] Will use the attached phone with the serial number "M6AIB760D0939LX" [07.05.2024 19:29 ] Using the TWRP image defined in the environment variable TWRP_IMAGE: "/data/backup/ASUS_ZENFONE8/Lineage-20/twrp_3.7.0_12-1-I006D_for_lineageOS20-20240423-sake.img" [07.05.2024 19:29 ] Using the options "-d -s M6AIB760D0939LX " for the adb commands [07.05.2024 19:29 ] Using the options " -s M6AIB760D0939LX " for the fastboot commands [07.05.2024 19:29 ] Checking the script prerequisites ... [07.05.2024 19:29 ] Will wait up to 60 second(s) after booting the phone into the bootloader [07.05.2024 19:29 ] Will wait up to 120 second(s) after booting the phone from the TWRP image [07.05.2024 19:29 ] Will wait up to 30 second(s) until the adb daemon is ready to use [07.05.2024 19:29 ] The phone is currently booted from a TWRP image [07.05.2024 19:29 ] The phone is booted from a TWRP image file [07.05.2024 19:29 ] The boot slot is _b. ---------------------------------------------------------------------- [07.05.2024 19:29 ] Executing the tasks now ... [07.05.2024 19:29 ] The tasks to execute are: Task 1: enable_disable_abort_on_error enable Task 2: select_twrp_image ignorerc Task 3: boot_phone_from_twrp_image Task 4: install_os noreboot:sideload:factory_reset:restart_as_root Task 5: select_twrp_image_for_install_image Task 6: boot_phone_from_twrp_image force Task 7: backup_boot_partition active Task 8: install_magisk_in_boot_partition_only noreboot:active Task 9: enable_adb reboot:active Task 10: execute_script_on_the_phone ignorerc:pre_install.sh Task 11: install_magisk_in_data_adb_only noreboot:copy_apk:use_apk Task 12: wait_for_access_via_adb 120:kill Task 13: enable_root_access_for_the_shell reboot Task 14: wait_for_access_via_adb 120:kill Task 15: install_magisk_v26_in_boot_partition active:reboot Task 16: install_the_magisk_app Task 17: wait_for_access_via_adb 120:kill Task 18: install_archive_file twrp:reboot:script=/cache/correct_setlinux_for_wifconifg.sh Task 19: enable_disable_abort_on_error disable Task 20: install_essential_scripts Task 21: execute_script_on_the_phone ignorerc:/data/develop/android/scripts_on_linux/enable_wlan.sh Task 22: install_essential_apps /data/backup/Android/Test_EssentialApps Task 23: install_essential_magisk_modules /data/backup/Android/Test_EssentialMagiskModules Task 24: enable_root_access_for_apps reboot Task 25: execute_script_on_the_phone ignorerc [07.05.2024 19:29 ] The remaining tasks will be executed in single step mode after a task ends with an error [07.05.2024 19:29 ] Processing the task "enable_disable_abort_on_error" with the parameter "enable" ... [07.05.2024 19:29 ] Executing now "enable_disable_abort_on_error enable" ---------------------------------------------------------------------- [07.05.2024 19:29 ] Setting the variable "ABORT_TASK_EXECUTION_ON_ERROR" to "0" .. ---------------------------------------------------------------------- [07.05.2024 19:29 ] Processing the task "select_twrp_image" with the parameter "ignorerc" ... [07.05.2024 19:29 ] Executing now "select_twrp_image ignorerc" ---------------------------------------------------------------------- [07.05.2024 19:29 ] [07.05.2024 19:29 ] *** Selecting the TWRP image to use depending on the installed OS on the phone ... [07.05.2024 19:29 ] [07.05.2024 19:29 ] The phone is currently booted from a TWRP image [07.05.2024 19:29 ] The phone is booted from a TWRP image file [07.05.2024 19:29 ] The boot slot is _b. ---------------------------------------------------------------------- [07.05.2024 19:29 ] Processing the task "boot_phone_from_twrp_image" ... [07.05.2024 19:29 ] Executing now "boot_phone_from_twrp_image " ---------------------------------------------------------------------- [07.05.2024 19:29 ] [07.05.2024 19:29 ] *** Booting the attached phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Lineage-20/twrp_3.7.0_12-1-I006D_for_lineageOS20-20240423-sake.img" ... [07.05.2024 19:29 ] [07.05.2024 19:29 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:29 ] The phone is booted from a TWRP image [07.05.2024 19:29 ] The phone is booted into TWRP version "3.7.0_12-1" ---------------------------------------------------------------------- [07.05.2024 19:29 ] Processing the task "install_os" with the parameter "noreboot:sideload:factory_reset:restart_as_root" ... [07.05.2024 19:29 ] Executing now "install_os noreboot sideload factory_reset restart_as_root" ---------------------------------------------------------------------- [07.05.2024 19:29 ] [07.05.2024 19:29 ] *** Installing the Android OS using the image "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" using the script "/data/develop/android/scripts_on_linux/install_os_via_twrp.sh" with the parameter " sideload factory_reset restart_as_root /data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" ... [07.05.2024 19:29 ] [07.05.2024 19:29 ] The automatic reboot after executing the script is disabled [07.05.2024 19:29 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:29 ] ---------------------------------------------------------------------- [07.05.2024 19:29 ] *** Executing now "/data/develop/android/scripts_on_linux/install_os_via_twrp.sh sideload factory_reset restart_as_root /data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" ... # --------------------------------------------------------------------- install_os_via_twrp.sh version - v2.1.1.0 - install an OS image via the TWRP command twrp Checking the contents of the file "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" ... Using the TWRP helper script "/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh" The OS image to install is: "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" Reading the helper script "boot_phone_from_twrp.sh" ... The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will use the attached phone with the serial number "M6AIB760D0939LX" Using the TWRP image defined in the environment variable TWRP_IMAGE: "/data/backup/ASUS_ZENFONE8/Lineage-20/twrp_3.7.0_12-1-I006D_for_lineageOS20-20240423-sake.img" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking the script prerequisites ... Will wait up to 60 second(s) after booting the phone into the bootloader Will wait up to 120 second(s) after booting the phone from the TWRP image Will wait up to 30 second(s) until the adb daemon is ready to use Retrieving the current status of the phone ... The phone is currently booted from a TWRP image The phone is booted from a TWRP image file The boot slot is _b. The phone is booted from a TWRP image The phone is booted into TWRP version "3.7.0_12-1" Waiting up to 30 seconds for the adb daemon to get ready ... the adb daemon is ready after 0 second(s) The adb connection is ready after 0 second(s) /data is mounted to "/dev/block/sda23" -- will umount it now ... Unmounted '/data' Done processing script file Umounting /data sucesfully done. Formating /data ... ++ /usr/bin/adb -d -s M6AIB760D0939LX shell -tt twrp format data real 0m1.174s user 0m0.001s sys 0m0.003s Done. You may need to reboot recovery to be able to use /data again. TWRP will not recreate /data/media on an FBE device. Please reboot into your rom to create /data/media Formatting Metadata using mke2fs... Done. Done processing script file Formating the data partition sucesfully done. Formating the metadata partition ... ++ /usr/bin/adb -d -s M6AIB760D0939LX shell umount /dev/block/by-name/metadata umount: /dev/block/sda22: Invalid argument ++ /usr/bin/adb -d -s M6AIB760D0939LX shell mke2fs -F -t ext4 /dev/block/by-name/metadata mke2fs 1.45.4 (23-Sep-2019) Discarding device blocks: done Creating filesystem with 4096 4k blocks and 4096 inodes Allocating group tables: 0/1 done Writing inode tables: 0/1 done Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: 0/1 done Formating the metadata partition sucesfully done. Waiting up to 10 seconds for a working adb connection The adb connection is working after 0 second(s) Installing the OS image file "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" via the "sideload" functionality from TWRP into the slot "_a" ... Starting sideload on the phone .. + /usr/bin/adb -d -s M6AIB760D0939LX shell twrp sideload The RC is 0 [2024.05.07 19:29:40] Waiting now 5 seconds ... ..... The phone is booted into the adb sideload mode ERROR: Can not access the phone via adb Now sideloading the image file "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" ... + /usr/bin/adb -d -s M6AIB760D0939LX sideload /data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~0%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~1%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~2%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~3%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~4%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~5%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~6%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~7%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~8%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~9%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~10%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~11%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~12%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~13%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~14%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~15%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~16%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~17%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~18%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~19%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~20%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~21%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~22%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~23%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~24%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~25%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~26%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~27%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~28%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~29%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~30%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~31%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~32%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~33%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~34%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~35%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~36%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~37%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~38%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~39%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~40%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~41%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~42%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~43%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~44%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~45%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~46%) serving: '/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip' (~47%) Total xfer: 1.00x The RC is 0 Installing the image via "twrp sideload" took 239 seconds(s) Finishing the sideload mode now ... + /usr/bin/adb -d -s M6AIB760D0939LX reboot Waiting up to 60 seconds for a working adb connection ......... The adb connection is working after 45 second(s) The phone is currently booted from a TWRP image The phone is booted from a TWRP image file The boot slot is _b. Now changing the next active slot to _a ... + /usr/bin/adb -d -s M6AIB760D0939LX shell bootctl set-active-boot-slot 0 The RC is 0 ... successfully changed the active slot for the next reboot Automatically rebooting the phone is disabled # --------------------------------------------------------------------- [07.05.2024 19:34 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:34 ] Processing the task "select_twrp_image_for_install_image" ... [07.05.2024 19:34 ] Executing now "select_twrp_image_for_install_image " ---------------------------------------------------------------------- [07.05.2024 19:34 ] [07.05.2024 19:34 ] *** Selecting the TWRP image to use based for the OS installed using the image file "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" ... [07.05.2024 19:34 ] [07.05.2024 19:34 ] The TWRP image file "statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" seems to be an image file for StatixOS [07.05.2024 19:34 ] The TWRP image to be used for the OS installed with the image file "statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" is "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" [07.05.2024 19:34 ] Checking the type of the file "/data1/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" ... [07.05.2024 19:34 ] The file type is "Android bootimg, kernel (0x3421539), ramdisk (0x630)" [07.05.2024 19:34 ] OK, the file "/data1/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" is a valid boot image for Android devices [07.05.2024 19:34 ] The TWRP image to be used for the OS installed with the image file "/data/backup/ASUS_ZENFONE8/Statix/20240106/statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.zip" is "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" [07.05.2024 19:34 ] The task execution stops if the script ends with a return code not zero ---------------------------------------------------------------------- [07.05.2024 19:34 ] Processing the task "boot_phone_from_twrp_image" with the parameter "force" ... [07.05.2024 19:34 ] Executing now "boot_phone_from_twrp_image force" ---------------------------------------------------------------------- [07.05.2024 19:34 ] [07.05.2024 19:34 ] *** Booting the attached phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" ... [07.05.2024 19:34 ] [07.05.2024 19:34 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:34 ] The phone is booted from a TWRP image [07.05.2024 19:34 ] Rebooting the phone from the TWRP image requested via parameter [07.05.2024 19:34 ] Booting the phone into the bootloader now ... [07.05.2024 19:34 ] Waiting up to 60 seconds for the boot into the fastboot mode ... [07.05.2024 19:34 ] The phone is booted into the bootloader [07.05.2024 19:34 ] Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.803s] Booting OKAY [ 10.371s] Finished. Total time: 13.236s Waiting up to 120 seconds for a working adb connection ...... [07.05.2024 19:35 ] The adb connection is working after 30 second(s) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:35 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:35 ] The adb connection is ready after 0 second(s) [07.05.2024 19:35 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:35 ] /data is mounted after 0 second(s). [07.05.2024 19:35 ] /data/media not found - /data is not yet initialized [07.05.2024 19:35 ] The phone is booted into TWRP version "3.7.0_12-1" ---------------------------------------------------------------------- [07.05.2024 19:35 ] Processing the task "backup_boot_partition" with the parameter "active" ... [07.05.2024 19:35 ] Executing now "backup_boot_partition active" ---------------------------------------------------------------------- [07.05.2024 19:35 ] Imagefile not defined in the parameter -- using the default image file [07.05.2024 19:35 ] [07.05.2024 19:35 ] *** Creating a backup of a boot partition ... [07.05.2024 19:35 ] [07.05.2024 19:35 ] The automatic reboot after executing the task is disabled [07.05.2024 19:35 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:35 ] The phone is currently booted from a TWRP image [07.05.2024 19:35 ] The phone is booted from a TWRP image file [07.05.2024 19:35 ] The boot slot is _a. [07.05.2024 19:35 ] Creating an image file of the partition "boot_a" in the file "/data/recovery/initial_boot_a.img" on the phone [07.05.2024 19:35 ] Retrieving the current status of the phone ... [07.05.2024 19:35 ] The phone is booted from a recovery or TWRP image with root access [07.05.2024 19:35 ] Creating a backup of the partition "/dev/block/by-name/boot_a" into the file "/data/recovery/initial_boot_a.img" on the phone ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 0.251538 s, 382 M/s [07.05.2024 19:35 ] .. image file "/data/recovery/initial_boot_a.img" successfully created [07.05.2024 19:35 ] Creating the check sum of the boot partition "/dev/block/by-name/boot_a" ... 2353100296 100663296 /dev/block/by-name/boot_a [07.05.2024 19:35 ] Creating the check sum of the image file "/data/recovery/initial_boot_a.img" .... 2353100296 100663296 /data/recovery/initial_boot_a.img [07.05.2024 19:35 ] OK, the check sum for the partition "/dev/block/by-name/boot_a" is equal to the check sum for the image file "/data/recovery/initial_boot_a.img" [07.05.2024 19:35 ] Rebooting the phone was NOT requested via task parameter ---------------------------------------------------------------------- [07.05.2024 19:35 ] Processing the task "install_magisk_in_boot_partition_only" with the parameter "noreboot:active" ... [07.05.2024 19:35 ] Executing now "install_magisk_in_boot_partition_only noreboot active" ---------------------------------------------------------------------- [07.05.2024 19:35 ] The slot to use for this task is "active" [07.05.2024 19:35 ] [07.05.2024 19:35 ] *** Installing Magisk using the apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" into the boot partition using the script "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh" with the parameter "active copy_apk delete_adb_dir magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" ... [07.05.2024 19:35 ] [07.05.2024 19:35 ] The automatic reboot after executing the script is disabled [07.05.2024 19:35 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:35 ] ---------------------------------------------------------------------- [07.05.2024 19:35 ] *** Executing now "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh active copy_apk delete_adb_dir magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" ... # --------------------------------------------------------------------- install_magisk_via_twrp.sh version - v3.1.3.3 - add Magisk to the boot partition of a phone running Android using TWRP Parameter "copy_apk" found: Will copy the Magisk apk file to the phone if neccessary Parameter "delete_adb_dir" found: All files and directories created by this script in the directory "/data/adb" will be deleted at script end. Parameter "magisk_apk_file=file" found : Will use the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" Using the TWRP image found in the parameter: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Checking the script prerequisites ... Will wait 10 second(s) before starting the script on the phone The Magisk version used is v25.x or older Using the temporary directory "/data/MagiskInst" on the phone The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will patch the boot partition on the attached phone with the serial number "M6AIB760D0939LX" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking for a connected phone booted into fastboot mode ... No attached phone in fastboot mode found Checking for an attached phone with working access via adb (USB) ... Linux localhost 5.4.259-android11-2-g90a269fae412 #1 SMP PREEMPT Thu Jan 4 21:16:47 UTC 2024 aarch64 ... found a phone connected via USB with working adb access The phone is already booted from a TWRP image: "twrp_I006D" version "3.7.0_12-1" Retrieving the current boot slot from the phone ... The current boot slot is "_a" The boot slot to patch is "_a" The boot partition to patch is "boot_a" Copying the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" to the phone into the directory "/data" ... /data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk: 1 file pushed, 0 skipped. 49.3 MB/s (11278270 bytes in 0.218s) Creating the temporary directory "/data/MagiskInst" with the Magisk files necessarry to install Magisk into the boot partition ... Creating the script file "/tmp/init_magisk_dirs.sh" to create the directory "/data/MagiskInst" on the phone ... Creating the directory "/data/MagiskInst" on the phone ... Copying the temporary script file "/tmp/init_magisk_dirs.sh" to the file "/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... /tmp/init_magisk_dirs.sh: 1 file pushed, 0 skipped. 150.8 MB/s (7716 bytes in 0.000s) Executing the script "/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... ------------------------------------------------------------------------------ + adb -d -s M6AIB760D0939LX shell /data/MagiskInst/create_temporary_magisk_dir.sh /data/MagiskInst '' Searching for an installed Magisk app .... ls: /data/app/*/com.topjohnwu.magisk*/base.apk: No such file or directory Searching for a Magisk apk file in the directory /sdcard/Download ... ls: /sdcard/Download/Magisk*apk: No such file or directory Searching for a Magisk apk file in the directdory /data ... Found the apk file "/data/Magisk-v25.2.apk" Using the directory "/data/MagiskInst/bin" for the Magisk Binaries Creating the files in the directory "/data/MagiskInst/bin" using the files for the CPU "arm64-v8a" from the apk file "/data/Magisk-v25.2.apk" ... Unpacking the apk file "/data/Magisk-v25.2.apk" into the directory "/data/MagiskInst/magisk_apk_contents.616" ... Delete all existing files in the directory "/data/MagiskInst/bin" ... total 0 total 0 Copying the files to "/data/MagiskInst/bin" ... + mv ./assets/util_functions.sh /data/MagiskInst/bin + mv ./assets/chromeos /data/MagiskInst/bin/ + mv ./assets/boot_patch.sh /data/MagiskInst/bin + mv ./assets/addon.d.sh /data/MagiskInst/bin + '[' -r ./assets/stub.apk ']' + cd ./lib/arm64-v8a + mv libbusybox.so /data/MagiskInst/bin/busybox + mv libmagisk64.so /data/MagiskInst/bin/magisk64 + mv libmagiskboot.so /data/MagiskInst/bin/magiskboot + mv libmagiskinit.so /data/MagiskInst/bin/magiskinit + mv libmagiskpolicy.so /data/MagiskInst/bin/magiskpolicy + cd ../.. + file=libmagisk32.so + '[' arm64-v8ax '=' arm64-v8ax -a -r ./lib/armeabi-v7a/libmagisk32.so ']' + mv ./lib/armeabi-v7a/libmagisk32.so /data/MagiskInst/bin/magisk32 + set +x + TEMPRC=0 + set +x ------------------------------------------------------------------------------ ... "/data/MagiskInst/create_temporary_magisk_dir.sh" successfully executed Checking if the Magisk patch script "boot_patch.sh" exists on the phone .... -rwxr-xr-x 1 root root 5987 2024-05-07 17:35 /data/MagiskInst/bin/boot_patch.sh Checking if the download directory "/sdcard/Download" exists on the phone .... ls: /sdcard/Download: No such file or directory WARNING: Directory "/sdcard/Download" not found on the phone . Checking if the download directory "/tmp" exists on the phone .... /tmp Creating the boot image file "/tmp/boot_a.1121564.img" from the partition "/dev/block/by-name/boot_a" ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 0.216457 s, 444 M/s Checking the result ... -rw-rw-rw- 1 root root 100663296 2024-05-07 17:35 /tmp/boot_a.1121564.img The check sums are: The check sum of the boot partition "/dev/block/by-name/boot_a" on the phone is "2353100296" The check sum of th boot image file on the phone is "/tmp/boot_a.1121564.img" is "2353100296" Installing Magisk into the boot partition using the old method ... Patching the boot image file "/tmp/boot_a.1121564.img" ... Waiting now 10 second(s) ... - Unpacking boot image Parsing boot image: [/tmp/boot_a.1121564.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [1524311] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA - Checking ramdisk status Loading cpio: [ramdisk.cpio] - Stock boot image detected - Patching ramdisk Loading cpio: [ramdisk.cpio] Add entry [init] (0750) Create directory [overlay.d] (0750) Create directory [overlay.d/sbin] (0750) Add entry [overlay.d/sbin/magisk32.xz] (0644) Add entry [overlay.d/sbin/magisk64.xz] (0644) Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[false] Loading cpio: [ramdisk.cpio.orig] Backup mismatch entry: [init] -> [.backup/init] Record new entry: [overlay.d] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist] Create directory [.backup] (0000) Add entry [.backup/.magisk] (0000) Dump cpio: [ramdisk.cpio] - Repacking boot image Parsing boot image: [/tmp/boot_a.1121564.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [1524311] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA Repack to boot image: [new-boot.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009033] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] Checking the result ... -rw-r--r-- 1 root root 100663296 2024-05-07 17:35 /data/MagiskInst/bin/new-boot.img The patched boot image is "/tmp/patched_boot_a.1121564.img" Waiting now 10 second(s) ... Patching the partition "/dev/block/by-name/boot_a" from the patched boot image file "/tmp/patched_boot_a.1121564.img" via dd ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 4.065788 s, 24 M/s Checking the result .... The check sums for the images and devices on the phone are: 2353100296 100663296 /tmp/boot_a.1121564.img 3527414447 100663296 /tmp/patched_boot_a.1121564.img 3527414447 100663296 /dev/block/by-name/boot_a OK, patching the boot partition "/dev/block/by-name/boot_a" was successfull Deleting all used files and directories in the directory /data ... Automatically rebooting the phone is disabled # --------------------------------------------------------------------- [07.05.2024 19:35 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:35 ] Processing the task "enable_adb" with the parameter "reboot:active" ... [07.05.2024 19:35 ] Executing now "enable_adb reboot active" ---------------------------------------------------------------------- _a[07.05.2024 19:35 ] [07.05.2024 19:35 ] *** Enabling access via adb using the script "/data/develop/android/scripts_on_linux/enable_access_via_adb.sh" with the parameter " _a" ... [07.05.2024 19:35 ] [07.05.2024 19:35 ] The automatic reboot after executing the script is enabled [07.05.2024 19:35 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:35 ] The phone is currently booted from a TWRP image [07.05.2024 19:35 ] The phone is booted from a TWRP image file [07.05.2024 19:35 ] The boot slot is _a. [07.05.2024 19:35 ] ---------------------------------------------------------------------- [07.05.2024 19:35 ] *** Executing now "/data/develop/android/scripts_on_linux/enable_access_via_adb.sh _a" ... # --------------------------------------------------------------------- enable_access_via_adb.sh version - v1.3.0.0 - shell script to enable adb access via an init .rc file configured via Magisk Using the TWRP helper script "/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh" Using the Magisk helper script "/data/develop/android/scripts_on_linux/enable_adb_using_magisk.sh" Reading the helper script "boot_phone_from_twrp.sh" ... The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will use the attached phone with the serial number "M6AIB760D0939LX" Using the TWRP image defined in the environment variable TWRP_IMAGE: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking the script prerequisites ... Will wait up to 60 second(s) after booting the phone into the bootloader Will wait up to 120 second(s) after booting the phone from the TWRP image Will wait up to 30 second(s) until the adb daemon is ready to use Checking which user startd the adb daemon ... WARNING: The adb daemon (PID=1117284) was started by the user "root" but the user running this script is "xtrnaw7" - most probably the pubkeys for these user are different and enabling access via adb using the script will NOT work Retrieving the current status of the phone ... The phone is currently booted from a TWRP image The phone is booted from a TWRP image file The boot slot is _a. Copying the public ssl key for access via adb "/data/develop/android/adb.pubkey" to "/tmp/adbkey.pub" on the phone ... Copying the file "/data/develop/android/adb.pubkey" to "/tmp/adbkey.pub" the phone ... /data/develop/android/adb.pubkey: 1 file pushed, 0 skipped. 83.1 MB/s (2156 bytes in 0.000s) Copying the Magisk helper script "/data/develop/android/scripts_on_linux/enable_adb_using_magisk.sh" to "/tmp/enable_adb_using_magisk.sh" on the phone ... /data/develop/android/scripts_on_linux/enable_adb_using_magisk.sh: 1 file pushed, 0 skipped. 238.9 MB/s (20396 bytes in 0.000s) Executing the temporary script "/tmp/enable_adb_using_magisk.sh _a" on the phone ... The directory /data/cache does not exist -- will now create it ... chcon '/data/cache' to u:object_r:cache_file:s0 The working directory "/data/recovery/work" does not exist -- will now create it ... chcon '/data/recovery/work' to u:object_r:system_data_file:s0 Reading the public ssl key for the access via adb from the file "/tmp/adbkey.pub" ... Creating the script to enable access via adb "/data/recovery/enable_adb_via_service.sh" ... chcon '/data/recovery/enable_adb_via_service.sh' to u:object_r:system_data_file:s0 Doing a syntax check for the script "/data/recovery/enable_adb_via_service.sh" ... Creating the RC file with the additional trigger to enable access via adb "/data/recovery/work/enable_adb_via_service.rc" ... Copying the partition "/dev/block/by-name/boot_a" into the file "boot_a.img" ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 0.251199 s, 382 M/s Successfully created the script "/data/recovery/work/restore_boot_partition.sh" to restore the boot partition Extracting the ramdisk from the file "boot_a.img" ... Parsing boot image: [boot_a.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009033] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA Adding the new RC file "/data/recovery/work/enable_adb_via_service.rc" to the ramdisk ... Loading cpio: [ramdisk.cpio] Create directory [overlay.d] (0700) Add entry [overlay.d/init.custom.rc] (0700) Dump cpio: [ramdisk.cpio] Recreating the boot image file "boot_a.img" ... Parsing boot image: [boot_a.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009033] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] VBMETA Repack to boot image: [boot_a_new.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009455] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] Patching the new image file "boot_a_new.img" to the boot partition /dev/block/by-name/boot_a ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 3.682399 s, 26 M/s adb access will now be enabled by Magisk while doing the next reboot Automatically rebooting the phone is disabled # --------------------------------------------------------------------- [07.05.2024 19:36 ] ... the script ended with RC=0 [07.05.2024 19:36 ] *** Rebooting the phone now .... [07.05.2024 19:36 ] Parameter for "reboot_phone" are: wait [07.05.2024 19:36 ] The current phone status is "1" [07.05.2024 19:36 ] Will boot the phone using "adb" [07.05.2024 19:36 ] Rebooting the phone using the command " /usr/bin/adb -d -s M6AIB760D0939LX reboot " now ... Waiting up to 120 second(s) for the phone ....................adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found [07.05.2024 19:37 ] Booting the phone into the Android OS succeeded after 100 seconds; the current status of the phone is 3 adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found [07.05.2024 19:37 ] Waiting up to 20 seconds until /data is mounted ... adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found .adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found .adb: device 'M6AIB760D0939LX' not found adb: device 'M6AIB760D0939LX' not found . [07.05.2024 19:37 ] /data is mounted after 3 second(s). [07.05.2024 19:37 ] Testing if the data partition on the phone is encrypted ... [07.05.2024 19:37 ] The test directory for the encryption test is "/sdcard/Download" [07.05.2024 19:37 ] The data partition on the phone is either not mounted or not encrypted [07.05.2024 19:37 ] Retrieving the UID from the shell ... [07.05.2024 19:37 ] The UID for the shell is "2000" ---------------------------------------------------------------------- [07.05.2024 19:37 ] Processing the task "execute_script_on_the_phone" with the parameter "ignorerc:pre_install.sh" ... [07.05.2024 19:37 ] Executing now "execute_script_on_the_phone ignorerc pre_install.sh" ---------------------------------------------------------------------- [07.05.2024 19:37 ] [07.05.2024 19:37 ] *** Executing the script "/data/develop/android/scripts_on_linux/pre_install.sh" on the phone ... [07.05.2024 19:37 ] [07.05.2024 19:37 ] The Returncode of the script is ignored [07.05.2024 19:37 ] Waiting for a working adb connection ... Waiting up to 120 seconds for a working adb connection [07.05.2024 19:37 ] The adb connection is working after 0 second(s) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:37 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:37 ] The adb connection is ready after 0 second(s) [07.05.2024 19:38 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:38 ] /data is mounted after 0 second(s). [07.05.2024 19:38 ] Testing if the data partition on the phone is encrypted ... [07.05.2024 19:38 ] The test directory for the encryption test is "/sdcard/Download" [07.05.2024 19:38 ] The data partition on the phone is either not mounted or not encrypted [07.05.2024 19:38 ] Copying the script "/data/develop/android/scripts_on_linux/pre_install.sh" to "/sdcard/Download/pre_install.sh" on the phone ... /data/develop/android/scripts_on_linux/pre_install.sh: 1 file pushed, 0 skipped. 15.8 MB/s (1191 bytes in 0.000s) [07.05.2024 19:38 ] Now executing the script "/sdcard/Download/pre_install.sh" on the phone ... Disabling the setup dialog .. The OS on the phone is not the LineageOS -- doing nothing else ---------------------------------------------------------------------- [07.05.2024 19:38 ] Processing the task "install_magisk_in_data_adb_only" with the parameter "noreboot:copy_apk:use_apk" ... [07.05.2024 19:38 ] Executing now "install_magisk_in_data_adb_only noreboot copy_apk use_apk" ---------------------------------------------------------------------- [07.05.2024 19:38 ] [07.05.2024 19:38 ] *** Installing the Magisk directories and files in /data/adb from the apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" using the script "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh" with the parameter " adb_only copy_apk use_apk magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" ... [07.05.2024 19:38 ] [07.05.2024 19:38 ] The automatic reboot after executing the script is disabled [07.05.2024 19:38 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:38 ] ---------------------------------------------------------------------- [07.05.2024 19:38 ] *** Executing now "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh adb_only copy_apk use_apk magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" ... # --------------------------------------------------------------------- install_magisk_via_twrp.sh version - v3.1.3.3 - add Magisk to the boot partition of a phone running Android using TWRP Parameter "adb_only" found: Will only install the directories and files in the directory "/data/adb" Parameter "copy_apk" found: Will copy the Magisk apk file to the phone if neccessary Parameter "use_apk" found: Will use the files from the apk file even if the files in /data/adb/magisk exist Parameter "magisk_apk_file=file" found : Will use the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" Using the TWRP image found in the parameter: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Checking the script prerequisites ... Will wait 10 second(s) before starting the script on the phone The Magisk version used is v25.x or older Using the temporary directory "/data/MagiskInst" on the phone The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will patch the boot partition on the attached phone with the serial number "M6AIB760D0939LX" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking for a connected phone booted into fastboot mode ... No attached phone in fastboot mode found Checking for an attached phone with working access via adb (USB) ... Linux localhost 5.4.259-android11-2-g90a269fae412 #1 SMP PREEMPT Thu Jan 4 21:16:47 UTC 2024 aarch64 Toybox ... found a phone connected via USB with working adb access The phone is booted in normal mode The installed OS is based on Android 14 (Sun Jan 7 00:58:12 KST 2024); the description for the distribution is "statix_sake-user 14 UQ1A.240105.004 eng.build.20240106.110108 test-keys" WARNING: Can not detect the version of the installed Magisk Booting the phone into the fastboot mode now ... Waiting up to 60 seconds for the boot into the fastboot mode ... The phone is booted into the fastboot mode after 11 second(s) Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.766s] Booting OKAY [ 10.359s] Finished. Total time: 13.200s Waiting up to 60 second(s) for the boot of the phone ..... ... ro.build.version.release is "99.87.36" The adb connection is working after 25 second(s) Retrieving the current boot slot from the phone ... The current boot slot is "_a" The boot slot to patch is "_a" The boot partition to patch is "boot_a" Copying the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk" to the phone into the directory "/data" ... /data/backup/Android/EssentialApps_Backup/Magisk-v25.2.apk: 1 file pushed, 0 skipped. 54.4 MB/s (11278270 bytes in 0.198s) Creating the temporary directory "/data/MagiskInst" with the Magisk files necessarry to install Magisk into the boot partition ... Creating the script file "/tmp/init_magisk_dirs.sh" to create the directory "/data/MagiskInst" on the phone ... Creating the directory "/data/MagiskInst" on the phone ... Copying the temporary script file "/tmp/init_magisk_dirs.sh" to the file "/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... /tmp/init_magisk_dirs.sh: 1 file pushed, 0 skipped. 74.2 MB/s (7716 bytes in 0.000s) Executing the script "/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... ------------------------------------------------------------------------------ + adb -d -s M6AIB760D0939LX shell /data/MagiskInst/create_temporary_magisk_dir.sh /data/MagiskInst /data/Magisk-v25.2.apk Magisk is not yet installed Using the directory "/data/MagiskInst/bin" for the Magisk Binaries Creating the files in the directory "/data/MagiskInst/bin" using the files for the CPU "arm64-v8a" from the apk file "/data/Magisk-v25.2.apk" ... Unpacking the apk file "/data/Magisk-v25.2.apk" into the directory "/data/MagiskInst/magisk_apk_contents.606" ... Delete all existing files in the directory "/data/MagiskInst/bin" ... total 0 total 0 Copying the files to "/data/MagiskInst/bin" ... + mv ./assets/util_functions.sh /data/MagiskInst/bin + mv ./assets/chromeos /data/MagiskInst/bin/ + mv ./assets/boot_patch.sh /data/MagiskInst/bin + mv ./assets/addon.d.sh /data/MagiskInst/bin + '[' -r ./assets/stub.apk ']' + cd ./lib/arm64-v8a + mv libbusybox.so /data/MagiskInst/bin/busybox + mv libmagisk64.so /data/MagiskInst/bin/magisk64 + mv libmagiskboot.so /data/MagiskInst/bin/magiskboot + mv libmagiskinit.so /data/MagiskInst/bin/magiskinit + mv libmagiskpolicy.so /data/MagiskInst/bin/magiskpolicy + cd ../.. + file=libmagisk32.so + '[' arm64-v8ax '=' arm64-v8ax -a -r ./lib/armeabi-v7a/libmagisk32.so ']' + mv ./lib/armeabi-v7a/libmagisk32.so /data/MagiskInst/bin/magisk32 + set +x + TEMPRC=0 + set +x ------------------------------------------------------------------------------ ... "/data/MagiskInst/create_temporary_magisk_dir.sh" successfully executed chcon '/data/adb/magisk' to u:object_r:system_file:s0 chcon '/data/adb/magisk/util_functions.sh' to u:object_r:system_file:s0 chcon '/data/adb/magisk/chromeos' to u:object_r:system_file:s0 chcon '/data/adb/magisk/chromeos/kernel_data_key.vbprivk' to u:object_r:system_file:s0 chcon '/data/adb/magisk/chromeos/kernel.keyblock' to u:object_r:system_file:s0 chcon '/data/adb/magisk/chromeos/futility' to u:object_r:system_file:s0 chcon '/data/adb/magisk/boot_patch.sh' to u:object_r:system_file:s0 chcon '/data/adb/magisk/addon.d.sh' to u:object_r:system_file:s0 chcon '/data/adb/magisk/busybox' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magisk64' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskboot' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskinit' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskpolicy' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magisk32' to u:object_r:system_file:s0 chcon '/data/adb/modules' to u:object_r:system_file:s0 chcon '/data/adb/post-fs-data.d' to u:object_r:adb_data_file:s0 chcon '/data/adb/service.d' to u:object_r:adb_data_file:s0 Automatically rebooting the phone is disabled # --------------------------------------------------------------------- [07.05.2024 19:39 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:39 ] Processing the task "wait_for_access_via_adb" with the parameter "120:kill" ... [07.05.2024 19:39 ] Executing now "wait_for_access_via_adb 120 kill" ---------------------------------------------------------------------- [07.05.2024 19:39 ] The phone is currently booted from a TWRP image [07.05.2024 19:39 ] The phone is booted from a TWRP image file [07.05.2024 19:39 ] The boot slot is _a. [07.05.2024 19:39 ] adb access to the phone is working ---------------------------------------------------------------------- [07.05.2024 19:39 ] Processing the task "enable_root_access_for_the_shell" with the parameter "reboot" ... [07.05.2024 19:39 ] Executing now "enable_root_access_for_the_shell reboot" ---------------------------------------------------------------------- [07.05.2024 19:39 ] [07.05.2024 19:39 ] *** Enabling root access for shell in Magisk using the script "/data/develop/android/scripts_on_linux/init_magisk_db.sh" with the parameter " apps=2000" ... [07.05.2024 19:39 ] [07.05.2024 19:39 ] The automatic reboot after executing the script is enabled [07.05.2024 19:39 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:39 ] ---------------------------------------------------------------------- [07.05.2024 19:39 ] *** Executing now "/data/develop/android/scripts_on_linux/init_magisk_db.sh apps=2000" ... # --------------------------------------------------------------------- init_magisk_db.sh version - v1.0.3.0 - shell script to enable root access via Magisk for specified apps Using the TWRP helper script "/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh" Using the Magisk helper script "/data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh" The apps for which root access should be enabled are: 2000 Apps that should be enabled are: UIDs that should be enabled are: 2000 Reading the helper script "boot_phone_from_twrp.sh" ... The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will use the attached phone with the serial number "M6AIB760D0939LX" Using the TWRP image defined in the environment variable TWRP_IMAGE: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking the script prerequisites ... Will wait up to 60 second(s) after booting the phone into the bootloader Will wait up to 120 second(s) after booting the phone from the TWRP image Will wait up to 30 second(s) until the adb daemon is ready to use Retrieving the current status of the phone ... The phone is currently booted from a TWRP image The phone is booted from a TWRP image file The boot slot is _a. Will enable the root access via Magisk for these UIDs: 2000 The phone is booted from a TWRP image The phone is booted into TWRP version "3.7.0_12-1" Copying the Magisk helper script "/data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh" to /cache/enable_root_access_via_magisk.sh on the phone ... /data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh: 1 file pushed, 0 skipped. 261.3 MB/s (25391 bytes in 0.000s) Executing the Magisk helper script "/cache/enable_root_access_via_magisk.sh" on the phone now ... Enabling root access for apps by adding entries to the Magisk database OK, running in TWRP TWRP is booted from an image file Using the Magisk binary "/data/adb/magisk/magisk64" Using the Magisk database "/data/adb/magisk.db" Checking the prerequisites ... Checking if the required executables exist ... OK, the file "/data/adb/magisk/magisk64" exists and is executable The Magisk database does not yet exist Checking if the Magisk daemon is running ... No daemon is currently running! The Magisk daemon is not running -- will start it now ... 25.2:MAGISK:R Successfully started the Magisk daemon Creating the database "/data/adb/magisk.db" using "/data/adb/magisk/magisk64" ... user_version=12 Successfully created the Magisk database "/data/adb/magisk.db" : -rw------- 1 root root 40960 2024-05-07 17:39 /data/adb/magisk.db Stopping the Magisk daemon now No daemon is currently running! Checking if the required data files exist ... OK, the file "/data/adb/magisk.db" exists Using the sqlite3 executable "/system/bin/sqlite3" Checking the parameter ... The parameter "2000" is okay OK, all parameter are okay OK, the installed Magisk version "25.2" is supported Creating a backup of the existing Magisk database in "/data/adb/magisk.db.680.bkp" ... Reading the current entries from the Magisk database ... Current entries in the Magisk database table "policies": Enabling the root access for these app UIDs: 2000 Processing the UID "2000" ... Enabling root access for the UID "2000" now ... OK, root access successfully enabled for the UID "2000" Summary root access enabled for 1 UID(s): 2000 Current entries in the Magisk database table "policies": uid policy until logging notification ---- ------ ----- ------- ------------ 2000 2 0 1 1 root access for the UIDs via Magisk successfully enabled Rebooting the phone now ... Parameter for "reboot_phone" are: The current phone status is "1" Will boot the phone using "adb" Rebooting the phone using the command " /usr/bin/adb -d -s M6AIB760D0939LX reboot " now ... Waiting up to 120 second(s) for the phone ..... Booting the phone into the Android OS succeeded after 25 seconds; the current status of the phone is 3 Waiting up to 20 seconds until /data is mounted ... /data is mounted after 0 second(s). Testing if the data partition on the phone is encrypted ... The test directory for the encryption test is "/sdcard/Download" drwxrws--- 4 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/1vgywAAAAAg9LExwFuasxv1SotxQSF7F drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/BzxMkAAAAAQIyOfxPSgBS5XoNQHDaF4e drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/ISiM0CAAAAgz3f+vZRe48h9cAS6OdZtJ drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/In8nZCAAAAwmzpEVzByCjoByNVhMrn1n drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/KfJAwCAAAAQ+0Oqdksiiln9hMeMPAEjs drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/MENwGAAAAAwquoNpr,+pYVu+r4Se1ckB drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/RgO9IDAAAAwg1GK9Y8gXvicW9IEXnxDg drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:38 /data/media/0/efMvXBAAAAgzqC3igDrGtvowse45rZrC drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/ekFFABAAAAgvbFdRmNdYPiCFtOvxP+,9 drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/fcr0oBAAAAg48SvyA8kixn2iaYBInSG7 drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/glEpDCAAAAw4e9NwD6NtGK2L4C3X8rLg drwxrws--x 5 media_rw media_rw 3452 2024-01-06 16:59 /data/media/0/kulKoDAAAAgEyWIL,CRh5vHULpi23,4d drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/mnEoOCAAAAAd6VYY9PJUbTDDEjuzB9C0 drwxrws--- 2 root media_rw 3452 2024-05-07 19:38 /data/media/0/tgQMnBAAAAAiGL7CsZlTjIsLu6fI9Dew drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/wvnhJBAAAAwubZ3XJE3hjYNR8hUg8Xi+ The user password is not set - now using the default password from Android (default_password) to decrypt the files The data partition on the phone is encrypted twrp not found -- now decrypting the data partition on the phone using the Android command "input" Waiting up to 150 seconds to complete the decrypting .... (Waited for 4 second(s)) Waiting up to 30 seconds for the adb daemon to get ready ... the adb daemon is ready after 0 second(s) The adb connection is ready after 0 second(s) Sucessfully decrypted the data partition # --------------------------------------------------------------------- [07.05.2024 19:39 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:39 ] Processing the task "wait_for_access_via_adb" with the parameter "120:kill" ... [07.05.2024 19:39 ] Executing now "wait_for_access_via_adb 120 kill" ---------------------------------------------------------------------- [07.05.2024 19:39 ] The phone is currently booted into the Android OS [07.05.2024 19:39 ] Selecting the TWRP image to use depending on the installed OS on the phone ... [07.05.2024 19:39 ] The running OS on the phone is StatixOS (Android 14) [07.05.2024 19:39 ] The TWRP image for this OS is "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" [07.05.2024 19:39 ] Checking the type of the file "/data1/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" ... [07.05.2024 19:39 ] The file type is "Android bootimg, kernel (0x3421539), ramdisk (0x630)" [07.05.2024 19:39 ] OK, the file "/data1/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" is a valid boot image for Android devices [07.05.2024 19:39 ] The installed OS is "StatixOS" [07.05.2024 19:39 ] The TWRP file necessary for this OS is "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" [07.05.2024 19:39 ] The boot slot is _a. [07.05.2024 19:39 ] adb access to the phone is working ---------------------------------------------------------------------- [07.05.2024 19:39 ] Processing the task "install_magisk_v26_in_boot_partition" with the parameter "active:reboot" ... [07.05.2024 19:39 ] Executing now "install_magisk_v26_in_boot_partition active reboot" ---------------------------------------------------------------------- [07.05.2024 19:39 ] The slot to use for this task is "active" [07.05.2024 19:39 ] [07.05.2024 19:39 ] *** Installing Magisk using the apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" into the boot partition using the script "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh" with the parameter "active copy_apk use_apk magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... [07.05.2024 19:39 ] [07.05.2024 19:39 ] The automatic reboot after executing the script is enabled [07.05.2024 19:39 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:39 ] ---------------------------------------------------------------------- [07.05.2024 19:39 ] *** Executing now "/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh active copy_apk use_apk magisk_apk_file=/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... # --------------------------------------------------------------------- install_magisk_via_twrp.sh version - v3.1.3.3 - add Magisk to the boot partition of a phone running Android using TWRP Parameter "copy_apk" found: Will copy the Magisk apk file to the phone if neccessary Parameter "use_apk" found: Will use the files from the apk file even if the files in /data/adb/magisk exist Parameter "magisk_apk_file=file" found : Will use the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" Using the TWRP image found in the parameter: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Checking the script prerequisites ... Will wait 10 second(s) before starting the script on the phone The Magisk version used is v26.0 or newer Using the temporary directory "/data/local/tmp/MagiskInst" on the phone The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will patch the boot partition on the attached phone with the serial number "M6AIB760D0939LX" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking for a connected phone booted into fastboot mode ... No attached phone in fastboot mode found Checking for an attached phone with working access via adb (USB) ... Linux localhost 5.4.259-android11-2-g90a269fae412 #1 SMP PREEMPT Thu Jan 4 21:16:47 UTC 2024 aarch64 Toybox ... found a phone connected via USB with working adb access The phone is booted in normal mode The installed OS is based on Android 14 (Sun Jan 7 00:58:12 KST 2024); the description for the distribution is "statix_sake-user 14 UQ1A.240105.004 eng.build.20240106.110108 test-keys" The installed version of Magisk is com.topjohnwu.magisk versionCode 1 Booting the phone into the fastboot mode now ... Waiting up to 60 seconds for the boot into the fastboot mode ... The phone is booted into the fastboot mode after 11 second(s) Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.781s] Booting OKAY [ 10.359s] Finished. Total time: 13.201s Waiting up to 60 second(s) for the boot of the phone ..... ... ro.build.version.release is "99.87.36" The adb connection is working after 25 second(s) Retrieving the current boot slot from the phone ... The current boot slot is "_a" The boot slot to patch is "_a" The boot partition to patch is "boot_a" Copying the Magisk apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" to the phone into the directory "/data" ... /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk: 1 file pushed, 0 skipped. 47.5 MB/s (12498796 bytes in 0.251s) Creating the temporary directory "/data/local/tmp/MagiskInst" with the Magisk files necessarry to install Magisk into the boot partition ... Creating the script file "/tmp/init_magisk_dirs.sh" to create the directory "/data/local/tmp/MagiskInst" on the phone ... Creating the directory "/data/local/tmp/MagiskInst" on the phone ... Copying the temporary script file "/tmp/init_magisk_dirs.sh" to the file "/data/local/tmp/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... /tmp/init_magisk_dirs.sh: 1 file pushed, 0 skipped. 99.9 MB/s (7716 bytes in 0.000s) Executing the script "/data/local/tmp/MagiskInst/create_temporary_magisk_dir.sh" on the phone ... ------------------------------------------------------------------------------ + adb -d -s M6AIB760D0939LX shell /data/local/tmp/MagiskInst/create_temporary_magisk_dir.sh /data/local/tmp/MagiskInst /data/Magisk-v27.0.apk Magisk is not yet installed Using the directory "/data/local/tmp/MagiskInst/bin" for the Magisk Binaries Creating the files in the directory "/data/local/tmp/MagiskInst/bin" using the files for the CPU "arm64-v8a" from the apk file "/data/Magisk-v27.0.apk" ... Unpacking the apk file "/data/Magisk-v27.0.apk" into the directory "/data/local/tmp/MagiskInst/magisk_apk_contents.608" ... Delete all existing files in the directory "/data/local/tmp/MagiskInst/bin" ... total 0 total 0 Copying the files to "/data/local/tmp/MagiskInst/bin" ... + mv ./assets/util_functions.sh /data/local/tmp/MagiskInst/bin + mv ./assets/chromeos /data/local/tmp/MagiskInst/bin/ + mv ./assets/boot_patch.sh /data/local/tmp/MagiskInst/bin + mv ./assets/addon.d.sh /data/local/tmp/MagiskInst/bin + '[' -r ./assets/stub.apk ']' + mv ./assets/stub.apk /data/local/tmp/MagiskInst/bin + cd ./lib/arm64-v8a + mv libbusybox.so /data/local/tmp/MagiskInst/bin/busybox + mv libmagisk64.so /data/local/tmp/MagiskInst/bin/magisk64 + mv libmagiskboot.so /data/local/tmp/MagiskInst/bin/magiskboot + mv libmagiskinit.so /data/local/tmp/MagiskInst/bin/magiskinit + mv libmagiskpolicy.so /data/local/tmp/MagiskInst/bin/magiskpolicy + cd ../.. + file=libmagisk32.so + '[' arm64-v8ax '=' arm64-v8ax -a -r ./lib/armeabi-v7a/libmagisk32.so ']' + mv ./lib/armeabi-v7a/libmagisk32.so /data/local/tmp/MagiskInst/bin/magisk32 + set +x + TEMPRC=0 + set +x ------------------------------------------------------------------------------ ... "/data/local/tmp/MagiskInst/create_temporary_magisk_dir.sh" successfully executed Checking if the Magisk patch script "boot_patch.sh" exists on the phone .... -rwxr-xr-x 1 root root 7078 2024-05-07 17:40 /data/local/tmp/MagiskInst/bin/boot_patch.sh Checking if the download directory "/sdcard/Download" exists on the phone .... /sdcard/Download Creating the boot image file "/sdcard/Download/boot_a.1123439.img" from the partition "/dev/block/by-name/boot_a" ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 0.262244 s, 366 M/s Checking the result ... -rw-rw---- 1 root media_rw 100663296 2024-05-07 17:40 /sdcard/Download/boot_a.1123439.img The check sums are: The check sum of the boot partition "/dev/block/by-name/boot_a" on the phone is "264446075" The check sum of th boot image file on the phone is "/sdcard/Download/boot_a.1123439.img" is "264446075" Installing Magisk into the boot partition using the new method ... Patching the boot image file "/sdcard/Download/boot_a.1123439.img" ... Preparing the directory with the temporary Magisk installation files for usage by the user with the UID 2000 (this is the user "shell") ... + adb -d -s M6AIB760D0939LX shell chown -R 2000:2000 /data/local/tmp/MagiskInst + adb -d -s M6AIB760D0939LX shell chmod -R 755 /data/local/tmp/MagiskInst + adb -d -s M6AIB760D0939LX shell chown -R 2000:2000 /sdcard/Download/boot_a.1123439.img + adb -d -s M6AIB760D0939LX shell chmod o+r /sdcard/Download/boot_a.1123439.img + set +x Copying the file "/sdcard/Download/boot_a.1123439.img" to the local PC now "/tmp/boot_a.1123439.img" ... /sdcard/Download/boot_a.1123439.img: 1 file pulled, 0 skipped. 42.8 MB/s (100663296 bytes in 2.245s) Rebooting the phone into the Android OS now ... Waiting up to 60 second(s) for the boot of the phone ..... ... ro.build.version.release is "14" The adb connection is working after 25 second(s) The phone is now booted into the Android OS. Using the patch script "/data/local/tmp/MagiskInst/bin/boot_patch.sh" ... Waiting up to 240 seconds for /data to get mounted and decrypted ........... .. /data is mounted and decrypted after 7 second(s) Checking if the file "/sdcard/Download/boot_a.1123439.img" exists on the phone ... - - Unpacking boot image Parsing boot image: [/sdcard/Download/boot_a.1123439.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009455] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive) VBMETA - Checking ramdisk status Loading cpio: [ramdisk.cpio] - Magisk patched boot image detected Loading cpio: [ramdisk.cpio] Extracting entry [.backup/.magisk] to [config.orig] Restore [.backup/init] -> [init] Removed entry [.backup] Removed entry [overlay.d] Removed entry [overlay.d/sbin] Removed entry [overlay.d/sbin/magisk32.xz] Removed entry [overlay.d/sbin/magisk64.xz] Dumping cpio: [ramdisk.cpio] - Patching ramdisk - Pre-init storage partition: metadata Loading cpio: [ramdisk.cpio] Add file [init] (100750) Create directory [overlay.d] (0750) Create directory [overlay.d/sbin] (0750) Add file [overlay.d/sbin/magisk32.xz] (100644) Add file [overlay.d/sbin/magisk64.xz] (100644) Add file [overlay.d/sbin/stub.xz] (100644) Patch with flag KEEPVERITY=[false] KEEPFORCEENCRYPT=[false] Loading cpio: [ramdisk.cpio.orig] Backup [init] -> [.backup/init.xz] Record new entry: [overlay.d] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk32.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/magisk64.xz] -> [.backup/.rmlist] Record new entry: [overlay.d/sbin/stub.xz] -> [.backup/.rmlist] Create directory [.backup] (0000) Add file [.backup/.magisk] (100000) Dumping cpio: [ramdisk.cpio] - Repacking boot image Parsing boot image: [/sdcard/Download/boot_a.1123439.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [2009455] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] KERNEL_FMT [raw] RAMDISK_FMT [lz4_legacy] unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive) VBMETA Repack to boot image: [new-boot.img] HEADER_VER [4] KERNEL_SZ [37343744] RAMDISK_SZ [1591181] OS_VERSION [14.0.0] OS_PATCH_LEVEL [2024-01] PAGESIZE [4096] CMDLINE [] Checking the result ... -rw-r--r-- 1 shell shell 100663296 2024-05-07 19:41 /data/local/tmp/MagiskInst/bin/new-boot.img The patched boot image is "/sdcard/Download/patched_boot_a.1123439.img" The Magisk app is not yet installed Now installing the Magisk App using the apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... + cat /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk + adb -d -s M6AIB760D0939LX shell pm install -S 12498796 Success + set +x Will now grant the permission "android.permission.POST_NOTIFICATIONS" for the Magisk App ... + adb -d -s M6AIB760D0939LX shell pm grant com.topjohnwu.magisk android.permission.POST_NOTIFICATIONS + set +x The status of the permission "android.permission.POST_NOTIFICATIONS" for the Magisk App is now: android.permission.POST_NOTIFICATIONS: granted=true, flags=[ USER_SENSITIVE_WHEN_GRANTED|USER_SENSITIVE_WHEN_DENIED] Waiting now 10 seconds ... Now rebooting the phone into the bootloader ... Waiting up to 60 seconds for the boot into the fastboot mode ... The phone is booted into the fastboot mode after 10 second(s) Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.765s] Booting OKAY [ 10.360s] Finished. Total time: 13.194s Waiting up to 60 second(s) for the boot of the phone ..... ... ro.build.version.release is "99.87.36" The adb connection is working after 25 second(s) Copying the Magisk binaries from "/data/local/tmp/MagiskInst/bin" to "/data/adb/magisk" ... chcon '/data/adb/magisk' to u:object_r:system_file:s0 chcon '/data/adb/magisk/addon.d.sh' to u:object_r:system_file:s0 chcon '/data/adb/magisk/boot_patch.sh' to u:object_r:system_file:s0 chcon '/data/adb/magisk/busybox' to u:object_r:system_file:s0 chcon '/data/adb/magisk/chromeos' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magisk32' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magisk64' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskboot' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskinit' to u:object_r:system_file:s0 chcon '/data/adb/magisk/magiskpolicy' to u:object_r:system_file:s0 chcon '/data/adb/magisk/ramdisk.cpio' to u:object_r:system_file:s0 chcon '/data/adb/magisk/stub.apk' to u:object_r:system_file:s0 chcon '/data/adb/magisk/util_functions.sh' to u:object_r:system_file:s0 Magisk binaries successfully copied to "/data/adb/magisk" Waiting now 10 second(s) ... Patching the partition "/dev/block/by-name/boot_a" from the patched boot image file "/sdcard/Download/patched_boot_a.1123439.img" via dd ... 196608+0 records in 196608+0 records out 100663296 bytes (96 M) copied, 4.191891 s, 23 M/s Checking the result .... The check sums for the images and devices on the phone are: 264446075 100663296 /sdcard/Download/boot_a.1123439.img 691917486 100663296 /sdcard/Download/patched_boot_a.1123439.img 691917486 100663296 /dev/block/by-name/boot_a OK, patching the boot partition "/dev/block/by-name/boot_a" was successfull INFO: The Magisk binaries in "/data/adb/magisk" already exist Rebooting the phone now ... # --------------------------------------------------------------------- [07.05.2024 19:42 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:42 ] Processing the task "install_the_magisk_app" ... [07.05.2024 19:42 ] Executing now "install_the_magisk_app " ---------------------------------------------------------------------- [07.05.2024 19:42 ] [07.05.2024 19:42 ] *** Installing the Magisk App from the apk file "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" using the script "/data/develop/android/scripts_on_linux/install_apk.sh" with the parameter " /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... [07.05.2024 19:42 ] [07.05.2024 19:42 ] The automatic reboot after executing the script is disabled [07.05.2024 19:42 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:42 ] Parameter for "reboot_phone" are: [07.05.2024 19:42 ] The current phone status is "3" [07.05.2024 19:42 ] Will boot the phone using "adb" [07.05.2024 19:42 ] The phone is already booted into the android [07.05.2024 19:42 ] Waiting up to 20 seconds until /sdcard is mounted ... [07.05.2024 19:43 ] wait_until_sdcard_is_mounted: /sdcard is mounted after 1 second(s) [07.05.2024 19:43 ] ---------------------------------------------------------------------- [07.05.2024 19:43 ] *** Executing now "/data/develop/android/scripts_on_linux/install_apk.sh -d -s M6AIB760D0939LX -- /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... # --------------------------------------------------------------------- Running on a PC Using adb with the options " -d -s M6AIB760D0939LX " to install the packages The apks will be installed on the phone model ASUS_I006D with the serial number M6AIB760D0939LX Installing these apks /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk Installing the apk "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" ... "/data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk" succcessfully installed Installation summary ==================== 1 package(s) successfully installed: /data/backup/Android/EssentialApps_Backup/Magisk-v27.0.apk # --------------------------------------------------------------------- [07.05.2024 19:43 ] ... the script ended with RC=0 [07.05.2024 19:43 ] Magisk app successfully installed adb: device 'M6AIB760D0939LX' not found The current running Android version does not know the permission "permission android.permission.POST_NOTIFICATIONS" ---------------------------------------------------------------------- [07.05.2024 19:43 ] Processing the task "wait_for_access_via_adb" with the parameter "120:kill" ... [07.05.2024 19:43 ] Executing now "wait_for_access_via_adb 120 kill" ---------------------------------------------------------------------- [07.05.2024 19:43 ] The current status of the phone is not known: 10 [07.05.2024 19:43 ] ERROR: Can not access the phone via adb [07.05.2024 19:43 ] Running adb daemons are: root 1117284 1 0 19:24 ? 00:00:07 adb -L tcp:5037 fork-server server --reply-fd 4 [07.05.2024 19:43 ] Killing the adb deamon now ... [07.05.2024 19:43 ] The running adb daemon was started by the user "root" [07.05.2024 19:43 ] Stopping the adb daemon now ... + sudo /usr/bin/adb -d -s M6AIB760D0939LX kill-server + 2>& 1 [07.05.2024 19:43 ] The returncode of the command is 0 [07.05.2024 19:43 ] Starting the adb daemon now ... + sudo /usr/bin/adb -d -s M6AIB760D0939LX start-server + 2>& 1 * daemon not running; starting now at tcp:5037 * daemon started successfully [07.05.2024 19:43 ] The returncode of the command is 0 [07.05.2024 19:43 ] Running adb daemons are now: [07.05.2024 19:43 ] [07.05.2024 19:43 ] *** Waiting up to 120 second(s) for a working access via adb to the attached phone ... [07.05.2024 19:43 ] Waiting up to 120 seconds for a working adb connection [07.05.2024 19:43 ] The adb connection is working after 0 second(s) [07.05.2024 19:43 ] The phone is currently booted into the Android OS [07.05.2024 19:43 ] ERROR: Can not access the phone via adb [07.05.2024 19:43 ] The boot slot is _a. [07.05.2024 19:43 ] adb access to the phone is working now ---------------------------------------------------------------------- [07.05.2024 19:43 ] Processing the task "install_archive_file" with the parameter "twrp:reboot:script=/cache/correct_setlinux_for_wifconifg.sh" ... [07.05.2024 19:43 ] Executing now "install_archive_file twrp reboot script=/cache/correct_setlinux_for_wifconifg.sh" ---------------------------------------------------------------------- [07.05.2024 19:43 ] Assuming the file "/data/develop/android/android_config.tar" is a tar archive [07.05.2024 19:43 ] [07.05.2024 19:43 ] *** Installing the contents of the file "/data/develop/android/android_config.tar" on the phone ... [07.05.2024 19:43 ] [07.05.2024 19:43 ] The automatic reboot after executing the script is enabled [07.05.2024 19:43 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:43 ] The requested boot environment to unpack the file is "twrp" [07.05.2024 19:43 ] The phone is booted into the Android OS [07.05.2024 19:43 ] Booting the phone into the bootloader now ... * daemon not running; starting now at tcp:5037 * daemon started successfully [07.05.2024 19:43 ] Waiting up to 60 seconds for the boot into the fastboot mode ... [07.05.2024 19:43 ] The phone is booted into the bootloader [07.05.2024 19:43 ] Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.794s] Booting OKAY [ 10.362s] Finished. Total time: 13.208s Waiting up to 120 seconds for a working adb connection ..... [07.05.2024 19:44 ] The adb connection is working after 25 second(s) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:44 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:44 ] The adb connection is ready after 0 second(s) [07.05.2024 19:44 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:44 ] /data is mounted after 0 second(s). [07.05.2024 19:44 ] /data/media not found - /data is not yet initialized [07.05.2024 19:44 ] The phone is booted into TWRP version "3.7.0_12-1" [07.05.2024 19:44 ] The phone is currently booted from a TWRP image [07.05.2024 19:44 ] The phone is booted from a TWRP image file [07.05.2024 19:44 ] The boot slot is _a. [07.05.2024 19:44 ] Retrieving the download directory on the phone ... [07.05.2024 19:44 ] The user on the phone is the user "root" [07.05.2024 19:44 ] Now uploading the file "/data/develop/android/android_config.tar" to the phone into the directory "/sdcard/Download" .... /data/develop/android/android_config.tar: 1 file pushed, 0 skipped. 222.4 MB/s (10240 bytes in 0.000s) [07.05.2024 19:44 ] Creating the temporary script "/tmp/prepare_phone.sh_WORKDIR.1119924/task_install_archive_file_1119924.sh" to unpack the file ... [07.05.2024 19:44 ] Uploading the temporary script "/tmp/prepare_phone.sh_WORKDIR.1119924/task_install_archive_file_1119924.sh" to the file "/sdcard/Download/unpack.1119924.sh" on the phone ... /tmp/prepare_phone.sh_WORKDIR.1119924/task_install_archive_file_1119924.sh: 1 file pushed, 0 skipped. 1.6 MB/s (72 bytes in 0.000s) [07.05.2024 19:44 ] Unpacking the file "/data/develop/android/android_config.tar" on the phone using the temporary script "/sdcard/Download/unpack.1119924.sh" on the phone .... + cd / + tar -xvf /sdcard/Download/android_config.tar cache/correct_setlinux_for_wifconifg.sh data/misc/apexdata/com.android.wifi/WifiConfigStore.xml [07.05.2024 19:44 ] Successfully unpacked the file "/data/develop/android/android_config.tar" on the phone [07.05.2024 19:44 ] Checking if the post install script "/cache/correct_setlinux_for_wifconifg.sh" exists on the phone ... [07.05.2024 19:44 ] Executing the post install script "/cache/correct_setlinux_for_wifconifg.sh" on the phone ... # --------------------------------------------------------------------- chcon '/data/misc/apexdata/com.android.wifi/WifiConfigStore.xml' to u:object_r:apex_system_server_data_file:s0 # --------------------------------------------------------------------- [07.05.2024 19:44 ] ... the RC of the script is 0 [07.05.2024 19:44 ] *** Now rebooting the phone ... [07.05.2024 19:44 ] Parameter for "reboot_phone" are: wait force [07.05.2024 19:44 ] The current phone status is "1" [07.05.2024 19:44 ] Will boot the phone using "adb" [07.05.2024 19:44 ] Rebooting the phone using the command " /usr/bin/adb -d -s M6AIB760D0939LX reboot " now ... Waiting up to 120 second(s) for the phone ..... [07.05.2024 19:45 ] Booting the phone into the Android OS succeeded after 25 seconds; the current status of the phone is 3 [07.05.2024 19:45 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:45 ] /data is mounted after 0 second(s). [07.05.2024 19:45 ] Testing if the data partition on the phone is encrypted ... [07.05.2024 19:45 ] The test directory for the encryption test is "/sdcard/Download" drwxrws--- 4 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/1vgywAAAAAg9LExwFuasxv1SotxQSF7F drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/BzxMkAAAAAQIyOfxPSgBS5XoNQHDaF4e drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/ISiM0CAAAAgz3f+vZRe48h9cAS6OdZtJ drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/In8nZCAAAAwmzpEVzByCjoByNVhMrn1n drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/KfJAwCAAAAQ+0Oqdksiiln9hMeMPAEjs drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/MENwGAAAAAwquoNpr,+pYVu+r4Se1ckB drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/RgO9IDAAAAwg1GK9Y8gXvicW9IEXnxDg drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:44 /data/media/0/efMvXBAAAAgzqC3igDrGtvowse45rZrC drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/ekFFABAAAAgvbFdRmNdYPiCFtOvxP+,9 drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/fcr0oBAAAAg48SvyA8kixn2iaYBInSG7 drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/glEpDCAAAAw4e9NwD6NtGK2L4C3X8rLg drwxrws--x 5 media_rw media_rw 3452 2024-01-06 16:59 /data/media/0/kulKoDAAAAgEyWIL,CRh5vHULpi23,4d drwxrws--- 2 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/mnEoOCAAAAAd6VYY9PJUbTDDEjuzB9C0 drwxrws--- 2 root media_rw 3452 2024-05-07 19:38 /data/media/0/tgQMnBAAAAAiGL7CsZlTjIsLu6fI9Dew drwxrws--- 3 u0_a219 media_rw 3452 2024-05-07 19:37 /data/media/0/wvnhJBAAAAwubZ3XJE3hjYNR8hUg8Xi+ [07.05.2024 19:45 ] The user password is not set - now using the default password from Android (default_password) to decrypt the files [07.05.2024 19:45 ] The data partition on the phone is encrypted [07.05.2024 19:45 ] twrp not found -- now decrypting the data partition on the phone using the Android command "input" [07.05.2024 19:45 ] Waiting up to 150 seconds to complete the decrypting ... (Waited for 3 second(s)) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:45 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:45 ] The adb connection is ready after 0 second(s) [07.05.2024 19:45 ] Sucessfully decrypted the data partition ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "enable_disable_abort_on_error" with the parameter "disable" ... [07.05.2024 19:45 ] Executing now "enable_disable_abort_on_error disable" ---------------------------------------------------------------------- [07.05.2024 19:45 ] Setting the variable "ABORT_TASK_EXECUTION_ON_ERROR" to "1" .. ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "install_essential_scripts" ... [07.05.2024 19:45 ] Executing now "install_essential_scripts " ---------------------------------------------------------------------- [07.05.2024 19:45 ] [07.05.2024 19:45 ] *** Installing the essential scripts from the local directory "/data/backup/Android/EssentialScripts/" onto the phone ... [07.05.2024 19:45 ] [07.05.2024 19:45 ] The automatic reboot after executing the script is disabled [07.05.2024 19:45 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:45 ] Parameter for "reboot_phone" are: [07.05.2024 19:45 ] The current phone status is "3" [07.05.2024 19:45 ] Will boot the phone using "adb" [07.05.2024 19:45 ] The phone is already booted into the android [07.05.2024 19:45 ] Waiting up to 20 seconds until /sdcard is mounted ... [07.05.2024 19:45 ] wait_until_sdcard_is_mounted: /sdcard is mounted after 1 second(s) [07.05.2024 19:45 ] Copying the scripts to the phone ... /data/backup/Android/EssentialScripts//0001logcatboot: 1 file pushed, 0 skipped. 3.5 MB/s (156 bytes in 0.000s) /data/backup/Android/EssentialScripts//correct_dev_pn553.sh: 1 file pushed, 0 skipped. 4.0 MB/s (354 bytes in 0.000s) /data/backup/Android/EssentialScripts//disable_intent_filter_verification.sh: 1 file pushed, 0 skipped. 0.9 MB/s (51 bytes in 0.000s) /data/backup/Android/EssentialScripts//enable_microg.sh: 1 file pushed, 0 skipped. 3.2 MB/s (146 bytes in 0.000s) /data/backup/Android/EssentialScripts//enable_wifi.sh: 1 file pushed, 0 skipped. 54.7 MB/s (2956 bytes in 0.000s) /data/backup/Android/EssentialScripts//install_apk.sh: 1 file pushed, 0 skipped. 163.8 MB/s (6052 bytes in 0.000s) /data/backup/Android/EssentialScripts//list_magisk_root_permissions.sh: 1 file pushed, 0 skipped. 7.3 MB/s (223 bytes in 0.000s) /data/backup/Android/EssentialScripts//remove_screenlock.sh: 1 file pushed, 0 skipped. 1.2 MB/s (69 bytes in 0.000s) [07.05.2024 19:45 ] Successfully copied the essential scripts from the directory "/data/backup/Android/EssentialScripts/" to the phone ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "execute_script_on_the_phone" with the parameter "ignorerc:/data/develop/android/scripts_on_linux/enable_wlan.sh" ... [07.05.2024 19:45 ] Executing now "execute_script_on_the_phone ignorerc /data/develop/android/scripts_on_linux/enable_wlan.sh" ---------------------------------------------------------------------- [07.05.2024 19:45 ] [07.05.2024 19:45 ] *** Executing the script "/data/develop/android/scripts_on_linux/enable_wlan.sh" on the phone ... [07.05.2024 19:45 ] [07.05.2024 19:45 ] The Returncode of the script is ignored [07.05.2024 19:45 ] Waiting for a working adb connection ... Waiting up to 120 seconds for a working adb connection [07.05.2024 19:45 ] The adb connection is working after 0 second(s) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:45 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:45 ] The adb connection is ready after 0 second(s) [07.05.2024 19:45 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:45 ] /data is mounted after 0 second(s). [07.05.2024 19:45 ] Testing if the data partition on the phone is encrypted ... [07.05.2024 19:45 ] The test directory for the encryption test is "/sdcard/Download" [07.05.2024 19:45 ] The data partition on the phone is either not mounted or not encrypted [07.05.2024 19:45 ] Copying the script "/data/develop/android/scripts_on_linux/enable_wlan.sh" to "/sdcard/Download/enable_wlan.sh" on the phone ... /data/develop/android/scripts_on_linux/enable_wlan.sh: 1 file pushed, 0 skipped. 5.3 MB/s (559 bytes in 0.000s) [07.05.2024 19:45 ] Now executing the script "/sdcard/Download/enable_wlan.sh" on the phone ... *** The script to enable WLAN and disable mobile Data is running ... Disabling mobile data ... Enabling WiFi ... Configuring WiFi ... Connection initiated ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "install_essential_apps" with the parameter "/data/backup/Android/Test_EssentialApps" ... [07.05.2024 19:45 ] Executing now "install_essential_apps /data/backup/Android/Test_EssentialApps" ---------------------------------------------------------------------- [07.05.2024 19:45 ] [07.05.2024 19:45 ] *** Installing the essential apps from the local directory "/data/backup/Android/Test_EssentialApps" onto the phone using the script "/data/develop/android/scripts_on_linux/install_apk.sh" ... [07.05.2024 19:45 ] [07.05.2024 19:45 ] The automatic reboot after executing the script is disabled [07.05.2024 19:45 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:45 ] Parameter for "reboot_phone" are: [07.05.2024 19:45 ] The current phone status is "3" [07.05.2024 19:45 ] Will boot the phone using "adb" [07.05.2024 19:45 ] The phone is already booted into the android [07.05.2024 19:45 ] Android 14 found -- using the pm install option "--bypass-low-target-sdk-block" [07.05.2024 19:45 ] (Set the environment variable NO_BYPASS_LOW_TARGET to a non-zero value to suppress using this parameter) Running on a PC Using adb with the options " -d -s M6AIB760D0939LX " to install the packages The apks will be installed on the phone model ASUS_I006D with the serial number M6AIB760D0939LX Installing these apks /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk The additional parameter for the command "pm install" are: " --bypass-low-target-sdk-block " Installing the apk "/data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk" ... Success "/data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk" succcessfully installed Installation summary ==================== 1 package(s) successfully installed: /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk Running on a PC Using adb with the options " -d -s M6AIB760D0939LX " to install the packages The apks will be installed on the phone model ASUS_I006D with the serial number M6AIB760D0939LX Installing these apks /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackup_v417.apk The additional parameter for the command "pm install" are: " --bypass-low-target-sdk-block " Installing the apk "/data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackup_v417.apk" ... Success "/data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackup_v417.apk" succcessfully installed Installation summary ==================== 1 package(s) successfully installed: /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackup_v417.apk Running on a PC Using adb with the options " -d -s M6AIB760D0939LX " to install the packages The apks will be installed on the phone model ASUS_I006D with the serial number M6AIB760D0939LX Installing these apks /data/backup/Android/Test_EssentialApps/F-Droid.apk The additional parameter for the command "pm install" are: " --bypass-low-target-sdk-block " Installing the apk "/data/backup/Android/Test_EssentialApps/F-Droid.apk" ... Success "/data/backup/Android/Test_EssentialApps/F-Droid.apk" succcessfully installed Installation summary ==================== 1 package(s) successfully installed: /data/backup/Android/Test_EssentialApps/F-Droid.apk [07.05.2024 19:45 ] Summary: [07.05.2024 19:45 ] 3 apk(s) successfully installed: /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk /data/backup/Android/Test_EssentialApps/com.keramidas.TitaniumBackup_v417.apk /data/backup/Android/Test_EssentialApps/F-Droid.apk ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "install_essential_magisk_modules" with the parameter "/data/backup/Android/Test_EssentialMagiskModules" ... [07.05.2024 19:45 ] Executing now "install_essential_magisk_modules /data/backup/Android/Test_EssentialMagiskModules" ---------------------------------------------------------------------- [07.05.2024 19:45 ] [07.05.2024 19:45 ] *** Installing the essential Magisk modules from the local directory "/data/backup/Android/Test_EssentialMagiskModules" onto the phone ... [07.05.2024 19:45 ] [07.05.2024 19:45 ] The automatic reboot after executing the script is disabled [07.05.2024 19:45 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:45 ] Parameter for "reboot_phone" are: [07.05.2024 19:45 ] The current phone status is "3" [07.05.2024 19:45 ] Will boot the phone using "adb" [07.05.2024 19:45 ] The phone is already booted into the android [07.05.2024 19:45 ] *** Installing the Magisk Module bootctl-binary-v2.1.3.zip ... bootctl-binary-v2.1.3.zip: 1 file pushed, 0 skipped. 216.4 MB/s (23026 bytes in 0.000s) - Current boot slot: _a - Device is system-as-root ******************* Bootctl Binary by Roee Hershberg ******************* ******************* Powered by Magisk ******************* ************************************** * MMT Extended by Zackptg5 @ XDA * ************************************** - Extracting module files - Removing old files - Installing Installing for arm64 SDK 34 device... - Setting Permissions - Done [07.05.2024 19:45 ] *** Installing the Magisk Module Nano_for_Android_NDK-6_3-6300.zip ... Nano_for_Android_NDK-6_3-6300.zip: 1 file pushed, 0 skipped. 458.3 MB/s (380554 bytes in 0.001s) - Current boot slot: _a - Device is system-as-root ***************************** Nano for Android NDK by osm0sis @ xda-developers ***************************** ******************* Powered by Magisk ******************* Archive: /storage/emulated/0/Download/MagiskModules/Nano_for_Android_NDK-6_3-6300.zip inflating: diffusion_config.sh inflating: module.prop Mounting... Extracting files... Archive: /storage/emulated/0/Download/MagiskModules/Nano_for_Android_NDK-6_3-6300.zip inflating: META-INF/com/google/android/updater-script inflating: META-INF/com/google/android/update-binary inflating: sbin/nano inflating: etc/terminfo/r/rxvt inflating: etc/terminfo/r/rxvt-basic inflating: etc/terminfo/h/hurd inflating: etc/terminfo/m/mach-bold inflating: etc/terminfo/m/mach-color inflating: etc/terminfo/m/mach inflating: etc/terminfo/v/vt100 inflating: etc/terminfo/v/vt52 inflating: etc/terminfo/v/vt220 inflating: etc/terminfo/v/vt102 inflating: etc/terminfo/E/Eterm-color inflating: etc/terminfo/E/Eterm inflating: etc/terminfo/x/xterm inflating: etc/terminfo/x/xterm-vt220 inflating: etc/terminfo/x/xterm-r6 inflating: etc/terminfo/x/xterm-color inflating: etc/terminfo/x/xterm-xfree86 inflating: etc/terminfo/x/xterm-256color inflating: etc/terminfo/x/xterm-r5 inflating: etc/terminfo/w/wsvt25 inflating: etc/terminfo/w/wsvt25m inflating: etc/terminfo/d/dumb inflating: etc/terminfo/s/screen-256color inflating: etc/terminfo/s/screen-bce inflating: etc/terminfo/s/sun inflating: etc/terminfo/s/screen inflating: etc/terminfo/s/screen-w inflating: etc/terminfo/s/screen-s inflating: etc/terminfo/s/screen-256color-bce inflating: etc/terminfo/c/cygwin inflating: etc/terminfo/c/cons25 inflating: etc/terminfo/p/pcansi inflating: etc/terminfo/a/ansi inflating: etc/terminfo/l/linux inflating: customize.sh inflating: update.json inflating: bin/nano inflating: bin/nano.bin inflating: README.md inflating: diffusion_config.sh inflating: module.prop Installing... Installing nano to /data/adb/modules_update/nano-ndk/system/bin ... Installing terminfo to /data/adb/modules_update/nano-ndk/system/etc ... Unmounting... Done! [07.05.2024 19:45 ] Summary: [07.05.2024 19:45 ] 2 Magisk Module(s) successfully installed: bootctl-binary-v2.1.3.zip Nano_for_Android_NDK-6_3-6300.zip ---------------------------------------------------------------------- [07.05.2024 19:45 ] Processing the task "enable_root_access_for_apps" with the parameter "reboot" ... [07.05.2024 19:45 ] Executing now "enable_root_access_for_apps reboot" ---------------------------------------------------------------------- [07.05.2024 19:45 ] [07.05.2024 19:45 ] *** Enabling root access for additional apps using the script "/data/develop/android/scripts_on_linux/init_magisk_db.sh" with the parameter "apps=+com.mixplorer,com.keramidas.TitaniumBackup,io.github.muntashirakon.AppManager,com.matoski.adbm,com.fox2code.mmm" ... [07.05.2024 19:45 ] [07.05.2024 19:45 ] The automatic reboot after executing the script is enabled [07.05.2024 19:45 ] The task execution stops if the script ends with a return code not zero [07.05.2024 19:45 ] ---------------------------------------------------------------------- [07.05.2024 19:45 ] *** Executing now "/data/develop/android/scripts_on_linux/init_magisk_db.sh apps=+com.mixplorer,com.keramidas.TitaniumBackup,io.github.muntashirakon.AppManager,com.matoski.adbm,com.fox2code.mmm" ... # --------------------------------------------------------------------- init_magisk_db.sh version - v1.0.3.0 - shell script to enable root access via Magisk for specified apps Using the TWRP helper script "/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh" Using the Magisk helper script "/data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh" The apps for which root access should be enabled are: com.android.shell com.mixplorer com.keramidas.TitaniumBackup io.github.muntashirakon.AppManager com.matoski.adbm com.fox2code.mmm Apps that should be enabled are: com.android.shell com.mixplorer com.keramidas.TitaniumBackup io.github.muntashirakon.AppManager com.matoski.adbm com.fox2code.mmm UIDs that should be enabled are: Found one more app names in the list of apps Reading the helper script "boot_phone_from_twrp.sh" ... The script is running as user "xtrnaw7" -- will use "sudo" for the fastboot commands ... Will use the attached phone with the serial number "M6AIB760D0939LX" Using the TWRP image defined in the environment variable TWRP_IMAGE: "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" Using the options "-d -s M6AIB760D0939LX " for the adb commands Using the options " -s M6AIB760D0939LX " for the fastboot commands Checking the script prerequisites ... Will wait up to 60 second(s) after booting the phone into the bootloader Will wait up to 120 second(s) after booting the phone from the TWRP image Will wait up to 30 second(s) until the adb daemon is ready to use Retrieving the current status of the phone ... The phone is currently booted into the Android OS Selecting the TWRP image to use depending on the installed OS on the phone ... INFO: Writing the contents of the variable "TWRP_IMAGES_FOR_IMAGE_FILES" to the temporary file "/tmp/get_twrp_image_for_the_installed_OS.1125866" ... /data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh: line 1225: -v: command not found INFO: Processing the contents of the temporary file "/tmp/get_twrp_image_for_the_installed_OS.1125866" ... No special TWRP image found for the running OS on the phone - using the default TWRP image Checking the type of the file "/data1/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-1-I006D-enhanced.img" ... The file type is "Android bootimg, kernel (0x2d52a0b)" OK, the file "/data1/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-1-I006D-enhanced.img" is a valid boot image for Android devices The TWRP file necessary for this OS is "/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img" The boot slot is _a. Retrieving the UIDs for the app names ... Parameter for "reboot_phone" are: The current phone status is "3" Will boot the phone using "adb" The phone is already booted into the android Retrieving the UID for the app "com.android.shell" ... The UID for the app "com.android.shell" is "2000" Retrieving the UID for the app "com.mixplorer" ... WARNING: The app "com.mixplorer" is not installed; this app will be ignored Retrieving the UID for the app "com.keramidas.TitaniumBackup" ... The UID for the app "com.keramidas.TitaniumBackup" is "10243" Retrieving the UID for the app "io.github.muntashirakon.AppManager" ... WARNING: The app "io.github.muntashirakon.AppManager" is not installed; this app will be ignored Retrieving the UID for the app "com.matoski.adbm" ... WARNING: The app "com.matoski.adbm" is not installed; this app will be ignored Retrieving the UID for the app "com.fox2code.mmm" ... WARNING: The app "com.fox2code.mmm" is not installed; this app will be ignored Will enable the root access via Magisk for these UIDs: 2000 10243 The phone is booted into the Android OS Booting the phone into the bootloader now ... Waiting up to 60 seconds for the boot into the fastboot mode ... The phone is booted into the bootloader Booting the phone from the TWRP image "/data/backup/ASUS_ZENFONE8/Statix/20240106/twrp_statix_sake-20240106-14-v7.1-UPSIDEDOWNCAKE.img" now ... Sending 'boot.img' (98304 KB) OKAY [ 2.792s] Booting OKAY [ 10.358s] Finished. Total time: 13.209s Waiting up to 120 seconds for a working adb connection ..... The adb connection is working after 25 second(s) Waiting up to 30 seconds for the adb daemon to get ready ... the adb daemon is ready after 0 second(s) The adb connection is ready after 0 second(s) Waiting up to 20 seconds until /data is mounted ... /data is mounted after 0 second(s). /data/media not found - /data is not yet initialized The phone is booted into TWRP version "3.7.0_12-1" Copying the Magisk helper script "/data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh" to /cache/enable_root_access_via_magisk.sh on the phone ... /data/develop/android/scripts_on_linux/enable_root_access_via_magisk.sh: 1 file pushed, 0 skipped. 150.8 MB/s (25391 bytes in 0.000s) Executing the Magisk helper script "/cache/enable_root_access_via_magisk.sh" on the phone now ... Enabling root access for apps by adding entries to the Magisk database OK, running in TWRP TWRP is booted from an image file Using the Magisk binary "/data/adb/magisk/magisk64" Using the Magisk database "/data/adb/magisk.db" Checking the prerequisites ... Checking if the required executables exist ... OK, the file "/data/adb/magisk/magisk64" exists and is executable The Magisk database file "/data/adb/magisk.db" already exists. -rw------- 1 root root 40960 2024-05-07 17:39 /data/adb/magisk.db Checking if the required data files exist ... OK, the file "/data/adb/magisk.db" exists Using the sqlite3 executable "/system/bin/sqlite3" Checking the parameter ... The parameter "2000" is okay The parameter "10243" is okay OK, all parameter are okay OK, the installed Magisk version "27.0" is supported Creating a backup of the existing Magisk database in "/data/adb/magisk.db.614.bkp" ... Reading the current entries from the Magisk database ... Current entries in the Magisk database table "policies": uid policy until logging notification ---- ------ ----- ------- ------------ 2000 2 0 1 1 Enabling the root access for these app UIDs: 2000 10243 Processing the UID "2000" ... The entry for the UID "2000" already exists in the Magisk database: OK, root access is already enabled for the UID "2000" Processing the UID "10243" ... Enabling root access for the UID "10243" now ... OK, root access successfully enabled for the UID "10243" Summary root access enabled for 1 UID(s): 10243 root access was already enabled for 1 UID(s): 2000 Current entries in the Magisk database table "policies": uid policy until logging notification ----- ------ ----- ------- ------------ 2000 2 0 1 1 10243 2 0 1 1 root access for the UIDs via Magisk successfully enabled Rebooting the phone now ... Parameter for "reboot_phone" are: The current phone status is "1" Will boot the phone using "adb" Rebooting the phone using the command " /usr/bin/adb -d -s M6AIB760D0939LX reboot " now ... Waiting up to 120 second(s) for the phone ............ Booting the phone into the Android OS succeeded after 60 seconds; the current status of the phone is 3 Waiting up to 20 seconds until /data is mounted ... /data is mounted after 0 second(s). Testing if the data partition on the phone is encrypted ... The test directory for the encryption test is "/sdcard/Download" The data partition on the phone is either not mounted or not encrypted # --------------------------------------------------------------------- [07.05.2024 19:47 ] ... the script ended with RC=0 ---------------------------------------------------------------------- [07.05.2024 19:47 ] Processing the task "execute_script_on_the_phone" with the parameter "ignorerc" ... [07.05.2024 19:47 ] Executing now "execute_script_on_the_phone ignorerc" ---------------------------------------------------------------------- [07.05.2024 19:47 ] [07.05.2024 19:47 ] *** Executing the script "/data/develop/android/scripts_on_linux/post_install.sh" on the phone ... [07.05.2024 19:47 ] [07.05.2024 19:47 ] The Returncode of the script is ignored [07.05.2024 19:47 ] Waiting for a working adb connection ... Waiting up to 120 seconds for a working adb connection [07.05.2024 19:47 ] The adb connection is working after 0 second(s) Waiting up to 30 seconds for the adb daemon to get ready [07.05.2024 19:47 ] ... the adb daemon is ready after 0 second(s) [07.05.2024 19:47 ] The adb connection is ready after 0 second(s) [07.05.2024 19:47 ] Waiting up to 20 seconds until /data is mounted ... [07.05.2024 19:47 ] /data is mounted after 0 second(s). [07.05.2024 19:47 ] Testing if the data partition on the phone is encrypted ... [07.05.2024 19:47 ] The test directory for the encryption test is "/sdcard/Download" [07.05.2024 19:47 ] The data partition on the phone is either not mounted or not encrypted [07.05.2024 19:47 ] Copying the script "/data/develop/android/scripts_on_linux/post_install.sh" to "/sdcard/Download/post_install.sh" on the phone ... /data/develop/android/scripts_on_linux/post_install.sh: 1 file pushed, 0 skipped. 38.9 MB/s (3745 bytes in 0.000s) [07.05.2024 19:47 ] Now executing the script "/sdcard/Download/post_install.sh" on the phone ... *** Postinstall script is running ... Disabling sound effects ... Enabling WiFi ... Use SIM 1 for phone calls ... Use SIM 1 for data connections ... Disabling mobile data ... Enable logcat for boot messages ... Grant the necessary permission to Magisk now ... Titanium Backup is installed Disabling verify for apps installed over usb ... Grant the necessary permission to Titanum Backup now ... Removing the directories system/priv-app/DocumentsUIGoogle and system/priv-app/DocumentsUI from the MiXplorer Magisk Module ... Waiting 15 seconds now before rebooting - press CTRL-C to abort .... ............... Now rebooting the phone ... ---------------------------------------------------------------------- [07.05.2024 19:48 ] "finish_tasks" is defined - now executing it ... ---------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- [07.05.2024 19:48 ] *** Task summary : ------------------------------------------------------------------------------------------------------------- [07.05.2024 19:48 ] Tasks executed successfully are: enable_disable_abort_on_error select_twrp_image boot_phone_from_twrp_image install_os select_twrp_image_for_install_image boot_phone_from_twrp_image backup_boot_partition install_magisk_in_boot_partition_only enable_adb execute_script_on_the_phone install_magisk_in_data_adb_only wait_for_access_via_adb enable_root_access_for_the_shell wait_for_access_via_adb install_magisk_v26_in_boot_partition install_the_magisk_app wait_for_access_via_adb install_archive_file enable_disable_abort_on_error install_essential_scripts execute_script_on_the_phone install_essential_apps install_essential_magisk_modules enable_root_access_for_apps execute_script_on_the_phone ------------------------------------------------------------------------------------------------------------- [07.05.2024 19:48 ] The working directory used is: "/tmp/prepare_phone.sh_WORKDIR.1119924" . [07.05.2024 19:48 ] The include file used was : [07.05.2024 19:48 ] -rw-r--r--. 1 xtrnaw7 xtrnaw7 486206 May 7 19:26 /data/develop/android/scripts_on_linux/prepare_phone.include [07.05.2024 19:48 ] The include file used was last edited at: "05.05.2024 /bs" ---------------------------------------------------------------------- [07.05.2024 19:48 ] Execution summary: [07.05.2024 19:48 ] Tasks processed: 25 [07.05.2024 19:48 ] Tasks executed succesfully: 25 [07.05.2024 19:48 ] Tasks executed with errors: 0 [07.05.2024 19:48 ] Tasks not executed on request: 0 [07.05.2024 19:48 ] Tasks not found: 0 [07.05.2024 19:48 ] ### The logfile used was /var/tmp/prepare_phone.sh.log [07.05.2024 19:48 ] ### The start time was 07.05.2024 19:29:36, the script runtime is (day:hour:minute:seconds) 0:00:18:39 (= 1119 seconds) [07.05.2024 19:48 ] ### prepare_phone.sh ended at 07.05.2024 19:48:15 (The PID of this process is 1119924; the RC is 0)