[ OmniRom 13 Dev - xtrnaw7@t15g
/data/develop/android/test ] $ time ./prepare_phone.sh
set_os_image_to_install:/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip
update_os
[26.01.2023 20:44 ] ### prepare_phone.sh started at
26.01.2023 20:44:18 (The PID of this process is 882357)
[26.01.2023 20:44 ] ### Processing the parameter ...
[26.01.2023 20:44 ] Not yet used parameter are:
"set_os_image_to_install:/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip
update_os"
[26.01.2023 20:44 ] Tasks to execute are:
"set_os_image_to_install:/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip
update_os"
[26.01.2023 20:44 ] Parameter for the function
init_tasks are: ""
[26.01.2023 20:44 ] ### The logfile used is
/var/tmp/prepare_phone.sh.log
[26.01.2023 20:44 ] Checking the include file
"/data/develop/android/test/prepare_phone.include" ...
[26.01.2023 20:44 ] Reading the include file
"/data/develop/android/test/prepare_phone.include" ...
[26.01.2023 20:44 ] Processing the parameter
...
[26.01.2023 20:44 ] Preparing the list of tasks to
execute ...
[26.01.2023 20:44 ] "init_tasks" is defined - now
executing it ...
----------------------------------------------------------------------
[26.01.2023 20:44 ] Searching for a config file ....
[26.01.2023 20:44 ] Config file
"prepare_phone.conf" succesfully read
[26.01.2023 20:44 ] Using the directory "/tmp" for
temporary files
[26.01.2023 20:44 ] The PID of this process is 882357
[26.01.2023 20:44 ] The include file used is :
-rwxr-xr-x. 1 xtrnaw7 xtrnaw7 236143 Jan 26 19:36
/data/develop/android/test/prepare_phone.include
[26.01.2023 20:44 ] The include file used was last
edited at: "21.01.2023 /bs"
[26.01.2023 20:44 ] The version of the used
execute_tasks.sh script is "v2.2.2"
-----------------------------------------------------------------------
[26.01.2023 20:44 ] Using the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
for booting the phone into TWRP
[26.01.2023 20:44 ] Using the working directory
"/tmp/prepare_phone.sh_WORKDIR.882357" .
[26.01.2023 20:44 ] *** Reading the include file
"/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh"
...
[26.01.2023 20:44 ] The script is running as user
"xtrnaw7" -- will use "sudo" for the fastboot commands ...
[26.01.2023 20:44 ] Will use the attached phone with
the serial number "M6AIB760D0939LX"
[26.01.2023 20:44 ] Using the TWRP image found in the
parameter:
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
[26.01.2023 20:44 ] Using the options "-d -s
M6AIB760D0939LX " for the adb commands
[26.01.2023 20:44 ] Using the options " -s
M6AIB760D0939LX " for the fastboot commands
[26.01.2023 20:44 ] Checking the script prerequisites
...
[26.01.2023 20:44 ] Will wait up to 60 second(s)
after booting the phone into the bootloader
[26.01.2023 20:44 ] Will wait up to 120 second(s)
after booting the phone from the TWRP image
[26.01.2023 20:44 ] Will wait up to 30 second(s)
until the adb daemon is ready to use
[26.01.2023 20:44 ] The phone is currently booted
into the Android OS
[26.01.2023 20:44 ] The boot slot is _a.
----------------------------------------------------------------------
[26.01.2023 20:44 ] Executing the tasks now ...
[26.01.2023 20:44 ] The tasks to execute are:
Task 1: set_os_image_to_install
/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip
Task 2: enable_disable_abort_on_error enable
Task 3: boot_phone_from_twrp_image
Task 4: install_os noreboot
Task 5: install_twrp noreboot:next
Task 6: install_magisk_in_boot_partition
reboot:next
[26.01.2023 20:44 ] Processing
the task "set_os_image_to_install" with the parameter
"/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
...
[26.01.2023 20:44 ] Executing now
"set_os_image_to_install
/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
----------------------------------------------------------------------
[26.01.2023 20:44 ]
[26.01.2023 20:44 ] *** Define the OS image to
install ..
[26.01.2023 20:44 ]
[26.01.2023 20:44 ] The OS image to install is
"/data/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
[26.01.2023 20:44 ] Checking the contents of the file
...
[26.01.2023 20:44 ] ... this seems to be a
valid OS image
----------------------------------------------------------------------
[26.01.2023 20:44 ] Processing
the task "enable_disable_abort_on_error" with the parameter
"enable" ...
[26.01.2023 20:44 ] Executing now
"enable_disable_abort_on_error enable"
----------------------------------------------------------------------
[26.01.2023 20:44 ] Setting the variable
"ABORT_TASK_EXECUTION_ON_ERROR" to "0" ..
----------------------------------------------------------------------
[26.01.2023 20:44 ] Processing
the task "boot_phone_from_twrp_image" ...
[26.01.2023 20:44 ] Executing now
"boot_phone_from_twrp_image "
----------------------------------------------------------------------
[26.01.2023 20:44 ]
[26.01.2023 20:44 ] *** Booting the attached phone
from the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
...
[26.01.2023 20:44 ]
[26.01.2023 20:44 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 20:44 ] The phone is booted into the
Android OS
[26.01.2023 20:44 ] Booting the phone into the
bootloader now ...
[26.01.2023 20:44 ] Waiting up to 60 seconds for the
boot into the fastboot mode ...
[26.01.2023 20:44 ] The phone is booted into the
bootloader
[26.01.2023 20:44 ] Booting the phone from the TWRP
image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
now ...
Sending 'boot.img' (98304
KB)
OKAY [ 2.822s]
Booting
OKAY [ 10.362s]
Finished. Total time: 13.231s
Waiting up to 120 seconds for the boot of the phone
....
Waiting up to 30 seconds for the adb daemon to get
ready ..
[26.01.2023 20:45 ] ... the adb daemon is ready after
4.046 second(s)
[26.01.2023 20:45 ] The phone is booted into TWRP:
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
version "3.7.0_12-0"
----------------------------------------------------------------------
[26.01.2023 20:45 ] Processing
the task "install_os" with the parameter "noreboot" ...
[26.01.2023 20:45 ] Executing now "install_os
noreboot"
----------------------------------------------------------------------
[26.01.2023 20:45 ]
[26.01.2023 20:45 ] *** Installing the Android OS
using the image
"/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
using the script
"/data/develop/android/test/install_os_via_twrp.sh" with the
parameter "
/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
...
[26.01.2023 20:45 ]
[26.01.2023 20:45 ] The automatic reboot after
executing the script is disabled
[26.01.2023 20:45 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 20:45 ]
----------------------------------------------------------------------
[26.01.2023 20:45 ] *** Executing now
"/data/develop/android/test/install_os_via_twrp.sh
/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
...
#
---------------------------------------------------------------------
install_os_via_twrp.sh version - v1.1.0.0 - install
an OS image via the TWRP command twrp
Using the TWRP helper script
"/data/develop/android/test/boot_phone_from_twrp.sh"
The OS image to install is:
"/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.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 default TWRP image:
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.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 boot slot is _a.
The phone is booted from a TWRP image
The phone is booted into TWRP:
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img" version
"3.7.0_12-0"
Waiting up to 30 seconds for the adb daemon to get
ready
... the adb daemon is ready after 0 second(s)
Coyping the OS image file
"/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip"
to "/tmp/omni-13-20230126-zenfone8-MICROG.zip" on the phone ...
adb: error: failed to read copy response
/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip:
1 file pushed, 0 skipped. 219.9 MB/s (1289198186 bytes in
5.592s)
adb: error: failed to read copy response
adb: device 'M6AIB760D0939LX' not found
Copying the image failed -- we will do another try in
5 seconds ...
/data1/backup/ASUS_ZENFONE8/omnirom_local/omni-13-20230126-zenfone8-MICROG.zip:
1 file pushed, 0 skipped. 32.4 MB/s (1289198186 bytes in
37.935s)
Installing the OS image
"/tmp/omni-13-20230126-zenfone8-MICROG.zip" into the slot "_b"
...
Installing zip file
'/tmp/omni-13-20230126-zenfone8-MICROG.zip'
Flashing A/B zip to inactive slot: B
Step 1/2Step 2/2Updating partition details...
...done
Devices on super may not mount until rebooting
recovery.
To flash additional zips, please reboot recovery to
switch to the updated slot.
Done processing script file
OS image file
"/tmp/omni-13-20230126-zenfone8-MICROG.zip" successfully
installed.
Now changing the next active slot to _b ...
... successfully changed the active slot for the next
reboot
Automatically rebooting the phone is disabled
#
---------------------------------------------------------------------
[26.01.2023 20:47 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 20:47 ] Processing
the task "install_twrp" with the parameter "noreboot:next" ...
[26.01.2023 20:47 ] Executing now "install_twrp
noreboot next"
----------------------------------------------------------------------
[26.01.2023 20:47 ] The slot to use for this task is
"next"
[26.01.2023 20:47 ]
[26.01.2023 20:47 ] *** Installing the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
using the script /data/develop/android/test/install_twrp.sh with
the parameter " next
/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
...
[26.01.2023 20:47 ]
[26.01.2023 20:47 ] The automatic reboot after
executing the script is disabled
[26.01.2023 20:47 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 20:47 ]
----------------------------------------------------------------------
[26.01.2023 20:47 ] *** Executing now
"/data/develop/android/test/install_twrp.sh next
/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
...
#
---------------------------------------------------------------------
install_twrp.sh version - v1.3.0.0 - install TWRP to
the boot partition of a phone running Android using TWRP
Using the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
Checking the script prerequisites ...
Will wait 10 second(s) before starting the script 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.61-BeyondStock™-Sake-A11.001-CPTB-g93366b87d #4 SMP PREEMPT
Sat Aug 21 18:03:04 EDT 2021 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-0"
Retrieving the current boot slot from the phone ...
The current boot slot is "_a"
The boot slot to patch is "_b"
The boot partition to patch is "boot_b"
Checking if the directory "/data/local/tmp" exists on
the phone ....
/data/local/tmp
Copying the script
"/data/develop/android/test/install_twrp_from_within_twrp.sh" to
the phone ...
/data/develop/android/test/install_twrp_from_within_twrp.sh:
1 file pushed, 0 skipped. 379.4 MB/s (14228 bytes in 0.000s)
Creating the boot image file
"/data/local/tmp/boot_b.883349.img" from the partition
"/dev/block/by-name/boot_b" ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.311352 s, 308 M/s
Checking the result ...
-rw-rw-rw- 1 root root 100663296 2023-01-26 19:47
/data/local/tmp/boot_b.883349.img
The check sums are:
The check sum of the boot partition
"/dev/block/by-name/boot_b" on the phohe is "3041206176"
The check sum of the boot image file on the phone is
"/data/local/tmp/boot_b.883349.img" is "3041206176"
Installing TWRP using the boot image file
"/data/local/tmp/boot_b.883349.img" ...
[2023.01.26 20:47:42] Waiting now 10 seconds ...
Now executing
"/data/local/tmp/install_twrp_from_within_twrp.sh" on the phone
...
----------------------------------------------------------------------
+ adb -d -s M6AIB760D0939LX shell
/data/local/tmp/install_twrp_from_within_twrp.sh
/data/local/tmp/boot_b.883349.img
/data/local/tmp/boot_b_witn_twrp.883349.img
Installing TWRP into a boot image or boot partition
via script
Checking the running OS ...
OK, running a shell in TWRP: "twrp_I006D" version
"3.7.0_12-0"
Checking the prerequisites for installing TWRP ...
Using the file "/data/local/tmp/boot_b.883349.img" as
source for the installation of TWRP
Creating the boot image with TWRP in the file
"/data/local/tmp/boot_b_witn_twrp.883349.img"
Checking if the required executables exist ...
OK, the file "/system/bin/magiskboot" exists and is
executable
OK, the file "/system/bin/cpio" exists and is
executable
OK, the file "/system/bin/sha256sum" exists and is
executable
OK, the file "/system/bin/getprop" exists and is
executable
Checking if the required data files exist ...
OK, the file "/ramdisk-files.sha256sum" exists
OK, the file "/ramdisk-files.txt" exists
OK, the file "/data/local/tmp/boot_b.883349.img"
exists
Checking the check sums of the files for the new
ramdisk ...
OK, the check sums of the files for the new ramdisk
are okay
Directory "/tmp/install_twrp.689" successfully
created
Directory "/tmp/install_twrp.689/img.689"
successfully created
Directory "/tmp/install_twrp.689/img_files.689"
successfully created
The temporary directory to unpack the boot image is
"/tmp/install_twrp.689/img_files.689"
Unpacking the boot image from
"/data/local/tmp/boot_b.883349.img" ...
Parsing boot image:
[/data/local/tmp/boot_b.883349.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [16564548]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
OK, "/data/local/tmp/boot_b.883349.img" successfully
unpacked to "/tmp/install_twrp.689/img_files.689" :
Creating a backup of the original ramdisk ...
total 55180
-rw-rw-rw- 1 root
root 50 2023-01-26 19:47
header
-rw-r--r-- 1 root root 39928320 2023-01-26 19:47
kernel
-rw-r--r-- 1 root root 16564548 2023-01-26 19:47
ramdisk.cpio.org
Creating the new ramdisk with TWRP ...
New ramdisk with TWRP
"/tmp/install_twrp.689/img_files.689/ramdisk.cpio" successfully
created.
-rw-rw-rw- 1 root root 96503248 2023-01-26 19:47
/tmp/install_twrp.689/img_files.689/ramdisk.cpio
-rw-r--r-- 1 root root 16564548 2023-01-26 19:47
/tmp/install_twrp.689/img_files.689/ramdisk.cpio.org
Repacking the boot image into the file
"/data/local/tmp/boot_b_witn_twrp.883349.img" ...
+ cd /tmp/install_twrp.689/img_files.689
+ /system/bin/magiskboot repack
/data/local/tmp/boot_b.883349.img
/data/local/tmp/boot_b_witn_twrp.883349.img
Parsing boot image:
[/data/local/tmp/boot_b.883349.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [16564548]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image:
[/data/local/tmp/boot_b_witn_twrp.883349.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39517010]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
+ TEMPRC=0
+ set +x
OK, the new boot image
"/data/local/tmp/boot_b_witn_twrp.883349.img" successfully
created
-rw-r--r-- 1 root root 100663296 2023-01-26 19:48
/data/local/tmp/boot_b_witn_twrp.883349.img
Note: Flashing the new image to the boot partition
was not requested
+ TEMPRC=0
+ set +x
----------------------------------------------------------------------
Checking the result ...
The patched boot image is
"/data/local/tmp/boot_b_witn_twrp.883349.img"
-rw-r--r-- 1 root root 100663296 2023-01-26 19:48
/data/local/tmp/boot_b_witn_twrp.883349.img
[2023.01.26 20:48:04] Waiting now 5 seconds ...
Patching the partition "/dev/block/by-name/boot_b"
from the patched boot image file
"/data/local/tmp/boot_b_witn_twrp.883349.img" via dd ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 4.529613 s, 21 M/s
Checking the result ....
The check sums for the images and devices on the
phone are:
Checksum
Size File/Device name
-------------------------------------
3041206176 100663296
/data/local/tmp/boot_b.883349.img
1629816578 100663296
/data/local/tmp/boot_b_witn_twrp.883349.img
1629816578 100663296 /dev/block/by-name/boot_b
OK, patching the boot partition
"/dev/block/by-name/boot_b" was successfull
Automatically rebooting the phone is disabled
#
---------------------------------------------------------------------
[26.01.2023 20:48 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 20:48 ] Processing
the task "install_magisk_in_boot_partition" with the parameter
"reboot:next" ...
[26.01.2023 20:48 ] Executing now
"install_magisk_in_boot_partition reboot next"
----------------------------------------------------------------------
[26.01.2023 20:48 ] The slot to use for this task is
"next"
[26.01.2023 20:48 ]
[26.01.2023 20:48 ] *** Installing Magisk using the
apk file "/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
into the boot partition using the script
"/data/develop/android/test/install_magisk_via_twrp.sh" with the
parameter "next copy_apk
magisk_apk_file=/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
...
[26.01.2023 20:48 ]
[26.01.2023 20:48 ] The automatic reboot after
executing the script is enabled
[26.01.2023 20:48 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 20:48 ]
----------------------------------------------------------------------
[26.01.2023 20:48 ] *** Executing now
"/data/develop/android/test/install_magisk_via_twrp.sh next
copy_apk
magisk_apk_file=/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
...
#
---------------------------------------------------------------------
install_magisk_via_twrp.sh version - v2.5.0.0 - add
Magisk to the boot partition of a phone running Android using
TWRP
Parmaeter "copy_apk" found: Will copy the Magisk apk
file to the phone if neccessary
Parameter "magisk_apk_file=file" found : Will use the
Magisk apk file
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
Using the TWRP image hardcoded in the script:
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img"
Checking the script prerequisites ...
Will wait 10 second(s) before starting the script 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.61-BeyondStock™-Sake-A11.001-CPTB-g93366b87d #4 SMP PREEMPT
Sat Aug 21 18:03:04 EDT 2021 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-0"
Retrieving the current boot slot from the phone ...
The current boot slot is "_a"
The boot slot to patch is "_b"
The boot partition to patch is "boot_b"
Copying the Magisk apk file
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk" to the
phone into the directory "/data" ...
/data/backup/Android/EssentialApps/Magisk-v25.2.apk:
1 file pushed, 0 skipped. 48.5 MB/s (11278270 bytes in 0.222s)
Checking if the Magisk patch script "boot_patch.sh"
exists on the phone ....
-rwxr-xr-x 1 root root 5987 2023-01-26 18:43
/data/adb/magisk/boot_patch.sh
Checking if the download directory "/sdcard/Download"
exists on the phone ....
/sdcard/Download
Creating the boot image file
"/sdcard/Download/boot_b.883480.img" from the partition
"/dev/block/by-name/boot_b" ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.284822 s, 337 M/s
Checking the result ...
-rw-rw---- 1 root media_rw 100663296 2023-01-26 19:48
/sdcard/Download/boot_b.883480.img
The check sums are:
The check sum of the boot partition
"/dev/block/by-name/boot_b" on the phone
is
"1629816578"
The check sum of th boot image file on the phone is
"/sdcard/Download/boot_b.883480.img" is "1629816578"
Patching the boot image file
"/sdcard/Download/boot_b.883480.img" ...
Waiting now 10 seconds ...
- Unpacking boot image
Parsing boot image:
[/sdcard/Download/boot_b.883480.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39517010]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
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/magisk64.xz] (0644)
Patch with flag KEEPVERITY=[false]
KEEPFORCEENCRYPT=[false]
Found fstab file [system/etc/fstab.postinstall]
Remove pattern
[,avb_keys=/product/etc/security/avb/system_other.avbpubkey]
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/magisk64.xz] ->
[.backup/.rmlist]
Backup mismatch entry: [system/etc/fstab.postinstall]
-> [.backup/system/etc/fstab.postinstall]
Create directory [.backup] (0000)
Add entry [.backup/.magisk] (0000)
Dump cpio: [ramdisk.cpio]
- Repacking boot image
Parsing boot image:
[/sdcard/Download/boot_b.883480.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39517010]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [new-boot.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [37815129]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
Checking the result ...
-rw-r--r-- 1 root root 100663296 2023-01-26 19:48
/data/adb/magisk/new-boot.img
The patched boot image is
"/sdcard/Download/patched_boot_b.883480.img"
Waiting now 5 seconds ...
Patching the partition "/dev/block/by-name/boot_b"
from the patched boot image file
"/sdcard/Download/patched_boot_b.883480.img" via dd ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 4.514257 s, 21 M/s
Checking the result ....
The check sums for the images and devices on the
phone are:
1629816578 100663296
/sdcard/Download/boot_b.883480.img
4270663530 100663296
/sdcard/Download/patched_boot_b.883480.img
4270663530 100663296 /dev/block/by-name/boot_b
OK, patching the boot partition
"/dev/block/by-name/boot_b" was successfull
Rebooting the phone now ...
#
---------------------------------------------------------------------
[26.01.2023 20:48 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 20:48 ] "finish_tasks" is defined - now
executing it ...
----------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
[26.01.2023 20:48 ] *** Task summary :
-------------------------------------------------------------------------------------------------------------
[26.01.2023 20:48 ] Tasks executed successfully are:
set_os_image_to_install
enable_disable_abort_on_error
boot_phone_from_twrp_image
install_os
install_twrp
install_magisk_in_boot_partition
-------------------------------------------------------------------------------------------------------------
[26.01.2023 20:48 ] The working directory used is:
"/tmp/prepare_phone.sh_WORKDIR.882357" .
[26.01.2023 20:48 ] The include file used was :
[26.01.2023 20:48 ] -rwxr-xr-x. 1 xtrnaw7
xtrnaw7 236143 Jan 26 19:36
/data/develop/android/test/prepare_phone.include
[26.01.2023 20:48 ] The include file used was last
edited at: "21.01.2023 /bs"
----------------------------------------------------------------------
[26.01.2023 20:48 ] Execution summary:
[26.01.2023 20:48 ] Tasks
processed:
6
[26.01.2023 20:48 ] Tasks executed
succesfully: 6
[26.01.2023 20:48 ] Tasks executed with
errors: 0
[26.01.2023 20:48 ] Tasks not executed on request: 0
[26.01.2023 20:48 ] Tasks not
found:
0
[26.01.2023 20:48 ] ### The logfile used was
/var/tmp/prepare_phone.sh.log
[26.01.2023 20:48 ] ### The start time was 26.01.2023
20:44:18, the script runtime is (day:hour:minute:seconds)
0:00:04:39 (= 279 seconds)
[26.01.2023 20:48 ] ### prepare_phone.sh ended at
26.01.2023 20:48:57 (The PID of this process is 882357; the RC
is 0)
real 4m39.605s
user 0m5.539s
sys 0m1.694s
[ OmniRom 13 Dev - xtrnaw7@t15g
/data/develop/android/test ] $