[ OmniRom 13 Dev - xtrnaw7@t15g
/data/develop/android/scripts_on_linux ] $ time
./prepare_phone.sh all
[26.01.2023 07:16 ] ### prepare_phone.sh started at
26.01.2023 07:16:48 (The PID of this process is 614923)
[26.01.2023 07:16 ] ### Processing the parameter ...
[26.01.2023 07:16 ] Not yet used parameter are: "all"
[26.01.2023 07:16 ] Tasks to execute are: "all"
[26.01.2023 07:16 ] Parameter for the function
init_tasks are: ""
[26.01.2023 07:16 ] ### The logfile used is
/var/tmp/prepare_phone.sh.log
[26.01.2023 07:16 ] Checking the include file
"/data/develop/android/scripts_on_linux/prepare_phone.include"
...
[26.01.2023 07:16 ] Reading the include file
"/data/develop/android/scripts_on_linux/prepare_phone.include"
...
[26.01.2023 07:16 ] Processing the parameter
...
[26.01.2023 07:16 ] Preparing the list of tasks to
execute ...
[26.01.2023 07:16 ] Parameter "all" found - now
ignoring all other task parameter and executing all defined
tasks
[26.01.2023 07:16 ] Executing the tasks defined in
the include file(s) for "all"
[26.01.2023 07:16 ] "init_tasks" is defined - now
executing it ...
----------------------------------------------------------------------
[26.01.2023 07:16 ] Searching for a config file ....
[26.01.2023 07:16 ] Config file
"prepare_phone.conf" succesfully read
[26.01.2023 07:16 ] Using the directory "/tmp" for
temporary files
[26.01.2023 07:16 ] The PID of this process is 614923
[26.01.2023 07:16 ] The include file used is :
-rwxr-xr-x. 1 xtrnaw7 xtrnaw7 236016 Jan 26 06:49
/data/develop/android/scripts_on_linux/prepare_phone.include
[26.01.2023 07:16 ] The include file used was last
edited at: "21.01.2023 /bs"
[26.01.2023 07:16 ] The version of the used
execute_tasks.sh script is "v2.2.2"
-----------------------------------------------------------------------
[26.01.2023 07:16 ] 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 07:16 ] Using the working directory
"/tmp/prepare_phone.sh_WORKDIR.614923" .
[26.01.2023 07:16 ] *** Reading the include file
"/data/develop/android/scripts_on_linux/boot_phone_from_twrp.sh"
...
[26.01.2023 07:16 ] The script is running as user
"xtrnaw7" -- will use "sudo" for the fastboot commands ...
[26.01.2023 07:16 ] Will use the attached phone with
the serial number "M6AIB760D0939LX"
[26.01.2023 07:16 ] 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 07:16 ] Using the options "-d -s
M6AIB760D0939LX " for the adb commands
[26.01.2023 07:16 ] Using the options " -s
M6AIB760D0939LX " for the fastboot commands
[26.01.2023 07:16 ] Checking the script prerequisites
...
[26.01.2023 07:16 ] Will wait up to 60 second(s)
after booting the phone into the bootloader
[26.01.2023 07:16 ] Will wait up to 120 second(s)
after booting the phone from the TWRP image
[26.01.2023 07:16 ] Will wait up to 30 second(s)
until the adb daemon is ready to use
[26.01.2023 07:16 ] The phone is currently booted
into the Android OS
[26.01.2023 07:16 ] The boot slot is _b.
----------------------------------------------------------------------
[26.01.2023 07:16 ] Executing the tasks now ...
[26.01.2023 07:16 ] The tasks to execute are:
Task 1:
enable_disable_abort_on_error enable
Task 2: boot_phone_from_twrp_image
Task 3: install_os noreboot:factory_reset
Task 4: install_twrp noreboot:next
Task 5: install_magisk_in_boot_partition_only
noreboot:next
Task 6: enable_adb reboot
Task 7: install_magisk_in_data_adb_only
noreboot:copy_apk
Task 8: enable_root_access_for_the_shell
reboot
Task 9: wait_for_access_via_adb 60:kill
Task 10: install_the_magisk_app
Task 11: enable_disable_abort_on_error disable
Task 12: install_essential_scripts
Task 13: install_essential_apps
Task 14: install_essential_magisk_modules
Task 15: enable_root_access_for_apps reboot
Task 16: execute_script_on_the_phone ignorerc
[26.01.2023 07:16 ] Processing
the task "enable_disable_abort_on_error" with the parameter
"enable" ...
[26.01.2023 07:16 ] Executing now
"enable_disable_abort_on_error enable"
----------------------------------------------------------------------
[26.01.2023 07:16 ] Setting the variable
"ABORT_TASK_EXECUTION_ON_ERROR" to "0" ..
----------------------------------------------------------------------
[26.01.2023 07:16 ] Processing
the task "boot_phone_from_twrp_image" ...
[26.01.2023 07:16 ] Executing now
"boot_phone_from_twrp_image "
----------------------------------------------------------------------
[26.01.2023 07:16 ]
[26.01.2023 07:16 ] *** 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 07:16 ]
[26.01.2023 07:16 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:16 ] The phone is booted into the
Android OS
[26.01.2023 07:16 ] Booting the phone into the
bootloader now ...
[26.01.2023 07:16 ] Waiting up to 60 seconds for the
boot into the fastboot mode ...
[26.01.2023 07:17 ] The phone is booted into the
bootloader
[26.01.2023 07:17 ] 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.816s]
Booting
OKAY [ 10.410s]
Finished. Total time: 13.271s
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 07:17 ] ... the adb daemon is ready after
4.050 second(s)
[26.01.2023 07:17 ] 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 07:17 ] Processing
the task "install_os" with the parameter
"noreboot:factory_reset" ...
[26.01.2023 07:17 ] Executing now "install_os
noreboot factory_reset"
----------------------------------------------------------------------
[26.01.2023 07:17 ]
[26.01.2023 07:17 ] *** Installing the Android OS
using the image
"/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-zenfone8-MICROG.zip"
using the script
"/data/develop/android/scripts_on_linux/install_os_via_twrp.sh"
with the parameter " factory_reset
/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-zenfone8-MICROG.zip"
...
[26.01.2023 07:17 ]
[26.01.2023 07:17 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:17 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:17 ]
----------------------------------------------------------------------
[26.01.2023 07:17 ] *** Executing now
"/data/develop/android/scripts_on_linux/install_os_via_twrp.sh
factory_reset
/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-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/scripts_on_linux/boot_phone_from_twrp.sh"
The OS image to install is:
"/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-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 _b.
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)
Formating /data ...
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 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:
done
Writing inode tables:
done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting
information: done
Coyping the OS image file
"/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-zenfone8-MICROG.zip"
to "/tmp/omni-13-20230115-zenfone8-MICROG.zip" on the phone ...
adb: error: failed to read copy response
/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-zenfone8-MICROG.zip:
1 file pushed, 0 skipped. 383.8 MB/s (1289203458 bytes in
3.203s)
adb: error: failed to read copy response
adb: device 'M6AIB760D0939LX' not found
Copying the image failed -- we will do another try in
5 seconds ...
/data/develop/android/OmniROM_13.0/out/target/product/zenfone8/omni-13-20230115-zenfone8-MICROG.zip:
1 file pushed, 0 skipped. 32.3 MB/s (1289203458 bytes in
38.034s)
Installing the OS image
"/tmp/omni-13-20230115-zenfone8-MICROG.zip" into the slot "_a"
...
Installing zip file
'/tmp/omni-13-20230115-zenfone8-MICROG.zip'
Flashing A/B zip to inactive slot: A
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-20230115-zenfone8-MICROG.zip" successfully
installed.
Now changing the next active slot to _a ...
... successfully changed the active slot for the next
reboot
Automatically rebooting the phone is disabled
#
---------------------------------------------------------------------
[26.01.2023 07:19 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:19 ] Processing
the task "install_twrp" with the parameter "noreboot:next" ...
[26.01.2023 07:19 ] Executing now "install_twrp
noreboot next"
----------------------------------------------------------------------
[26.01.2023 07:19 ] The slot to use for this task is
"next"
[26.01.2023 07:19 ]
[26.01.2023 07:19 ] *** Installing the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
using the script
/data/develop/android/scripts_on_linux/install_twrp.sh with the
parameter " next
/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D-enhanced.img"
...
[26.01.2023 07:19 ]
[26.01.2023 07:19 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:19 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:19 ]
----------------------------------------------------------------------
[26.01.2023 07:19 ] *** Executing now
"/data/develop/android/scripts_on_linux/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 "_b"
The boot slot to patch is "_a"
The boot partition to patch is "boot_a"
Checking if the directory "/data/local/tmp" exists on
the phone ....
ls: /data/local/tmp: No such file or directory
WARNING: Directory "/data/local/tmp" not found on the
phone, will try /tmp now ...
/tmp
Copying the script
"/data/develop/android/scripts_on_linux/install_twrp_from_within_twrp.sh"
to the phone ...
/data/develop/android/scripts_on_linux/install_twrp_from_within_twrp.sh:
1 file pushed, 0 skipped. 327.9 MB/s (14228 bytes in 0.000s)
Creating the boot image file "/tmp/boot_a.615769.img"
from the partition "/dev/block/by-name/boot_a" ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.192620 s, 498 M/s
Checking the result ...
-rw-rw-rw- 1 root root 100663296 2023-01-26 06:20
/tmp/boot_a.615769.img
The check sums are:
The check sum of the boot partition
"/dev/block/by-name/boot_a" on the phohe is "4118923458"
The check sum of the boot image file on the phone is
"/tmp/boot_a.615769.img" is "4118923458"
Installing TWRP using the boot image file
"/tmp/boot_a.615769.img" ...
[2023.01.26 07:20:04] Waiting now 10 seconds ...
Now executing "/tmp/install_twrp_from_within_twrp.sh"
on the phone ...
----------------------------------------------------------------------
+ adb -d -s M6AIB760D0939LX shell
/tmp/install_twrp_from_within_twrp.sh /tmp/boot_a.615769.img
/tmp/boot_a_witn_twrp.615769.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 "/tmp/boot_a.615769.img" as source for
the installation of TWRP
Creating the boot image with TWRP in the file
"/tmp/boot_a_witn_twrp.615769.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 "/tmp/boot_a.615769.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.676" successfully
created
Directory "/tmp/install_twrp.676/img.676"
successfully created
Directory "/tmp/install_twrp.676/img_files.676"
successfully created
The temporary directory to unpack the boot image is
"/tmp/install_twrp.676/img_files.676"
Unpacking the boot image from
"/tmp/boot_a.615769.img" ...
Parsing boot image: [/tmp/boot_a.615769.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [16564463]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
OK, "/tmp/boot_a.615769.img" successfully unpacked to
"/tmp/install_twrp.676/img_files.676" :
Creating a backup of the original ramdisk ...
total 55180
-rw-rw-rw- 1 root
root 50 2023-01-26 06:20
header
-rw-r--r-- 1 root root 39928320 2023-01-26 06:20
kernel
-rw-r--r-- 1 root root 16564463 2023-01-26 06:20
ramdisk.cpio.org
Creating the new ramdisk with TWRP ...
New ramdisk with TWRP
"/tmp/install_twrp.676/img_files.676/ramdisk.cpio" successfully
created.
-rw-rw-rw- 1 root root 96503248 2023-01-26 06:20
/tmp/install_twrp.676/img_files.676/ramdisk.cpio
-rw-r--r-- 1 root root 16564463 2023-01-26 06:20
/tmp/install_twrp.676/img_files.676/ramdisk.cpio.org
Repacking the boot image into the file
"/tmp/boot_a_witn_twrp.615769.img" ...
+ cd /tmp/install_twrp.676/img_files.676
+ /system/bin/magiskboot repack
/tmp/boot_a.615769.img /tmp/boot_a_witn_twrp.615769.img
Parsing boot image: [/tmp/boot_a.615769.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [16564463]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image:
[/tmp/boot_a_witn_twrp.615769.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39516826]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
+ TEMPRC=0
+ set +x
OK, the new boot image
"/tmp/boot_a_witn_twrp.615769.img" successfully created
-rw-r--r-- 1 root root 100663296 2023-01-26 06:20
/tmp/boot_a_witn_twrp.615769.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
"/tmp/boot_a_witn_twrp.615769.img"
-rw-r--r-- 1 root root 100663296 2023-01-26 06:20
/tmp/boot_a_witn_twrp.615769.img
[2023.01.26 07:20:26] Waiting now 5 seconds ...
Patching the partition "/dev/block/by-name/boot_a"
from the patched boot image file
"/tmp/boot_a_witn_twrp.615769.img" via dd ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 4.880468 s, 20 M/s
Checking the result ....
The check sums for the images and devices on the
phone are:
Checksum
Size File/Device name
-------------------------------------
4118923458 100663296 /tmp/boot_a.615769.img
3784618027 100663296 /tmp/boot_a_witn_twrp.615769.img
3784618027 100663296 /dev/block/by-name/boot_a
OK, patching the boot partition
"/dev/block/by-name/boot_a" was successfull
Automatically rebooting the phone is disabled
#
---------------------------------------------------------------------
[26.01.2023 07:20 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:20 ] Processing
the task "install_magisk_in_boot_partition_only" with the
parameter "noreboot:next" ...
[26.01.2023 07:20 ] Executing now
"install_magisk_in_boot_partition_only noreboot next"
----------------------------------------------------------------------
[26.01.2023 07:20 ] The slot to use for this task is
"next"
[26.01.2023 07:20 ]
[26.01.2023 07:20 ] *** Installing Magisk using the
apk file "/data/backup/Android/EssentialApps/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 "next copy_apk delete_adb_dir
/data/backup/Android/EssentialApps/Magisk-v25.2.apk" ...
[26.01.2023 07:20 ]
[26.01.2023 07:20 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:20 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:20 ]
----------------------------------------------------------------------
[26.01.2023 07:20 ] *** Executing now
"/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh
next copy_apk delete_adb_dir
/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 "delete_adb_dir" found: All files and
directories created by this script in the directory
"/data/adb" will be deleted at script end.
Using the TWRP image found in the parameter:
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
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 "_b"
The boot slot to patch is "_a"
The boot partition to patch is "boot_a"
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. 49.0 MB/s (11278270 bytes in 0.219s)
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.
139.9 MB/s (4701 bytes in 0.000s)
Executing the script
"/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone
...
------------------------------------------------------------------------------
ls: /data/app/*/com.topjohnwu.magisk*/base.apk: No
such file or directory
ls: /data/app/*/com.topjohnwu.magisk*/base.apk: No
such file or directory
Magisk is not yet installed -- searching for an apk
file (Magisk*apk) in the directory /sdcard/Download ...
ls: /sdcard/Download/Magisk*apk: No such file or
directory
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.733" ...
Copying the files to "/data/MagiskInst/bin" ...
+ mv ./assets/util_functions.sh /data/MagiskInst/bin
+ mv ./assets/chromeos/futility
./assets/chromeos/kernel.keyblock
./assets/chromeos/kernel_data_key.vbprivk /data/MagiskInst/bin/
+ mv ./assets/boot_patch.sh /data/MagiskInst/bin
+ mv ./assets/addon.d.sh /data/MagiskInst/bin
+ 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
+ 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 2023-01-26 06:20
/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.616122.img"
from the partition "/dev/block/by-name/boot_a" ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.193192 s, 497 M/s
Checking the result ...
-rw-rw-rw- 1 root root 100663296 2023-01-26 06:20
/tmp/boot_a.616122.img
The check sums are:
The check sum of the boot partition
"/dev/block/by-name/boot_a" on the phone
is
"3784618027"
The check sum of th boot image file on the phone is
"/tmp/boot_a.616122.img" is "3784618027"
Patching the boot image file
"/tmp/boot_a.616122.img" ...
Waiting now 10 seconds ...
- Unpacking boot image
Parsing boot image: [/tmp/boot_a.616122.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39516826]
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: [/tmp/boot_a.616122.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [39516826]
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 [37815037]
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 06:21
/data/MagiskInst/bin/new-boot.img
The patched boot image is
"/tmp/patched_boot_a.616122.img"
Waiting now 5 seconds ...
Patching the partition "/dev/block/by-name/boot_a"
from the patched boot image file
"/tmp/patched_boot_a.616122.img" via dd ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 4.433951 s, 22 M/s
Checking the result ....
The check sums for the images and devices on the
phone are:
3784618027 100663296 /tmp/boot_a.616122.img
2528209283 100663296 /tmp/patched_boot_a.616122.img
2528209283 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
#
---------------------------------------------------------------------
[26.01.2023 07:21 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:21 ] Processing
the task "enable_adb" with the parameter "reboot" ...
[26.01.2023 07:21 ] Executing now "enable_adb reboot"
----------------------------------------------------------------------
[26.01.2023 07:21 ]
[26.01.2023 07:21 ] *** Enabling access via adb using
the script
"/data/develop/android/scripts_on_linux/enable_access_via_adb.sh"
with the parameter "" ...
[26.01.2023 07:21 ]
[26.01.2023 07:21 ] The automatic reboot after
executing the script is enabled
[26.01.2023 07:21 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:21 ] The phone is currently booted
from a TWRP image
[26.01.2023 07:21 ] The boot slot is _b.
[26.01.2023 07:21 ]
----------------------------------------------------------------------
[26.01.2023 07:21 ] *** Executing now
"/data/develop/android/scripts_on_linux/enable_access_via_adb.sh
" ...
#
---------------------------------------------------------------------
enable_access_via_adb.sh version - v1.1.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 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 _b.
Copying the public ssl key for access via adb
"/home/xtrnaw7/.android/adbkey.pub" to "/tmp/adbkey.pub" on the
phone ...
Copying the file "/home/xtrnaw7/.android/adbkey.pub"
to "/tmp/adbkey.pub" the phone ...
/home/xtrnaw7/.android/adbkey.pub: 1 file pushed, 0
skipped. 19.4 MB/s (721 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. 464.8 MB/s (13979 bytes in 0.000s)
Executing the temporary script
"/tmp/enable_adb_using_magisk.sh" on the phone ...
The directory /data/recovery does not exist -- will
now create it ...
chcon '/data/recovery' to
u:object_r:system_data_file:s0
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.282021 s, 340 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 [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [37815037]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
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 [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [37815037]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-01]
PAGESIZE
[4096]
CMDLINE
[]
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [boot_a_new.img]
HEADER_VER [3]
KERNEL_SZ
[39928320]
RAMDISK_SZ [37816006]
OS_VERSION [13.0.0]
OS_PATCH_LEVEL [2023-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, 4.513607 s, 21 M/s
adb access will now be enabled by Magisk while doing
the next reboot
Automatically rebooting the phone is disabled
#
---------------------------------------------------------------------
[26.01.2023 07:21 ] ... the script ended with
RC=0
[26.01.2023 07:21 ] Killing the running adb daemon
now ....
+ grep adb
+ ps -ef
xtrnaw7
536055 1 0 Jan25
? 00:00:25 adb -L
tcp:5037 fork-server server --reply-fd 4
xtrnaw7 616385 614923 0 07:21
pts/5 00:00:00 grep adb
+ /usr/bin/adb -d -s M6AIB760D0939LX kill-server
+ grep adb
+ ps -ef
xtrnaw7 616388 614923 0 07:21
pts/5 00:00:00 grep adb
[26.01.2023 07:21 ] *** Rebooting the phone now ....
[26.01.2023 07:21 ] Rebooting the phone using the
command " /usr/bin/adb -d -s M6AIB760D0939LX reboot " now
...
* daemon not running; starting now at tcp:5037
* daemon started successfully
Waiting up to 120 second(s) for the phone ...........
[26.01.2023 07:22 ] Booting the phone into the
AndroidOS succeeded after 55 seconds; the current status of the
phone is 3
[26.01.2023 07:22 ] Retrieving the UID from the shell
...
[26.01.2023 07:22 ] Could not retrieve the UID for
the shell (this is not an error)
----------------------------------------------------------------------
[26.01.2023 07:22 ] Processing
the task "install_magisk_in_data_adb_only" with the parameter
"noreboot:copy_apk" ...
[26.01.2023 07:22 ] Executing now
"install_magisk_in_data_adb_only noreboot copy_apk"
----------------------------------------------------------------------
[26.01.2023 07:22 ]
[26.01.2023 07:22 ] *** Installing the Magisk
directories and files in /data/adb from the apk file
"/data/backup/Android/EssentialApps/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
magisk_apk_file=/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
...
[26.01.2023 07:22 ]
[26.01.2023 07:22 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:22 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:22 ]
----------------------------------------------------------------------
[26.01.2023 07:22 ] *** Executing now
"/data/develop/android/scripts_on_linux/install_magisk_via_twrp.sh
adb_only 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
Parameter "adb_only" found: Will only install the
directories and files in the directory "/data/adb"
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.147-Omni-qgki-perf-g875131b91949
#13 SMP PREEMPT Sun Jan 22 09:09:31 CET 2023 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 13 (Sat Jan 21
11:12:55 CET 2023); the description for the distribution is
"omni_zenfone8-user 13 TQ1A.230105.002.A1
eng.xtrnaw.20230121.111408 release-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 ...
Booting the phone from the TWRP image
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img" now ...
Sending 'boot.img' (98304
KB)
OKAY [ 2.818s]
Booting
OKAY [ 10.360s]
Finished. Total time: 13.226s
Waiting up to 60 seconds for the boot of the phone
....
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/Magisk-v25.2.apk" to the
phone into the directory "/data" ...
/data/backup/Android/EssentialApps/Magisk-v25.2.apk:
1 file pushed, 0 skipped. 55.1 MB/s (11278270 bytes in 0.195s)
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.
100.7 MB/s (4701 bytes in 0.000s)
Executing the script
"/data/MagiskInst/create_temporary_magisk_dir.sh" on the phone
...
------------------------------------------------------------------------------
ls: /data/app/*/com.topjohnwu.magisk*/base.apk: No
such file or directory
ls: /data/app/*/com.topjohnwu.magisk*/base.apk: No
such file or directory
Magisk is not yet installed -- searching for an apk
file (Magisk*apk) in the directory /sdcard/Download ...
ls: /sdcard/Download/Magisk*apk: No such file or
directory
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.530" ...
Copying the files to "/data/MagiskInst/bin" ...
+ mv ./assets/util_functions.sh /data/MagiskInst/bin
+ mv ./assets/chromeos/futility
./assets/chromeos/kernel.keyblock
./assets/chromeos/kernel_data_key.vbprivk /data/MagiskInst/bin/
+ mv ./assets/boot_patch.sh /data/MagiskInst/bin
+ mv ./assets/addon.d.sh /data/MagiskInst/bin
+ 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
+ set +x
------------------------------------------------------------------------------
... "/data/MagiskInst/create_temporary_magisk_dir.sh"
successfully executed
chcon '/data/adb/magisk' to u:object_r:magisk_file:s0
chcon '/data/adb/magisk/util_functions.sh' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/futility' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/kernel.keyblock' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/kernel_data_key.vbprivk' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/boot_patch.sh' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/addon.d.sh' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/busybox' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/magisk64' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/magiskboot' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/magiskinit' to
u:object_r:magisk_file:s0
chcon '/data/adb/magisk/magiskpolicy' to
u:object_r:magisk_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
#
---------------------------------------------------------------------
[26.01.2023 07:23 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:23 ] Processing
the task "enable_root_access_for_the_shell" with the parameter
"reboot" ...
[26.01.2023 07:23 ] Executing now
"enable_root_access_for_the_shell reboot"
----------------------------------------------------------------------
[26.01.2023 07:23 ]
[26.01.2023 07:23 ] *** Enabling root access for
shell in Magisk using the script
"/data/develop/android/scripts_on_linux/init_magisk_db.sh" with
the parameter "" ...
[26.01.2023 07:23 ]
[26.01.2023 07:23 ] The automatic reboot after
executing the script is enabled
[26.01.2023 07:23 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:23 ]
----------------------------------------------------------------------
[26.01.2023 07:23 ] *** Executing now
"/data/develop/android/scripts_on_linux/init_magisk_db.sh " ...
#
---------------------------------------------------------------------
init_magisk_db.sh version - v1.0.0.1 - 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
Apps that should be enabled are:
com.android.shell
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 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.
Retrieving the UIDs for the app names ...
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 AndroidOS succeeded after
25 seconds; the current status of the phone is 3
Retrieving the UID for the app "com.android.shell"
...
The UID for the app "com.android.shell" is "2000"
Will enable the root access via Magisk for these
UIDs: 2000
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/twrp/current_twrp.img" now ...
Sending 'boot.img' (98304
KB)
OKAY [ 2.812s]
Booting
OKAY [ 10.359s]
Finished. Total time: 13.225s
Waiting up to 120 seconds for the boot of the phone
....
Waiting up to 30 seconds for the adb daemon to get
ready ..
... the adb daemon is ready after 2 second(s)
The phone is booted into TWRP:
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img" version
"3.7.0_12-0"
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. 489.1 MB/s (22501 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
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.563.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 ...
Rebooting the phone using the command " /usr/bin/adb
-d -s M6AIB760D0939LX reboot " now ...
#
---------------------------------------------------------------------
[26.01.2023 07:24 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:24 ] Processing
the task "wait_for_access_via_adb" with the parameter
"60:kill" ...
[26.01.2023 07:24 ] Executing now
"wait_for_access_via_adb 60 kill"
----------------------------------------------------------------------
[26.01.2023 07:24 ] The current status of the phone
is not known (PHONE_STATUS=10)
[26.01.2023 07:24 ] Stopping the adb daemon now ...
+ grep adb
+ grep -v grep
+ ps -ef
xtrnaw7
616392 1 0 07:21
? 00:00:00 adb -L
tcp:5037 fork-server server --reply-fd 4
+ echo
+ /usr/bin/adb -d -s M6AIB760D0939LX kill-server
+ echo
+ grep adb
+ grep -v grep
+ ps -ef
[26.01.2023 07:24 ]
[26.01.2023 07:24 ] *** Waiting up to 60 second(s)
for a working access via adb to the attached phone ...
[26.01.2023 07:24 ]
Waiting up to 60 seconds for the boot of the phone
.....
[26.01.2023 07:25 ] The phone is currently booted
into the Android OS
[26.01.2023 07:25 ] The boot slot is _a.
[26.01.2023 07:25 ] adb access to the phone is
working now
----------------------------------------------------------------------
[26.01.2023 07:25 ] Processing
the task "install_the_magisk_app" ...
[26.01.2023 07:25 ] Executing now
"install_the_magisk_app "
----------------------------------------------------------------------
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] *** Installing the Magisk App
from the apk file
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk" using the
script "/data/develop/android/scripts_on_linux/install_apk.sh"
with the parameter "
/data/backup/Android/EssentialApps/Magisk-v25.2.apk" ...
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:25 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:25 ] The phone is already booted into
the Android
[26.01.2023 07:25 ]
----------------------------------------------------------------------
[26.01.2023 07:25 ] *** Executing now
"/data/develop/android/scripts_on_linux/install_apk.sh
/data/backup/Android/EssentialApps/Magisk-v25.2.apk" ...
#
---------------------------------------------------------------------
Running on a PC
Using adb 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/Magisk-v25.2.apk
Installing the apk
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk" ...
Success
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/Magisk-v25.2.apk
#
---------------------------------------------------------------------
[26.01.2023 07:25 ] ... the script ended with
RC=0
[26.01.2023 07:25 ] Magisk app successfully installed
[26.01.2023 07:25 ] Will now grant the permission
"android.permission.POST_NOTIFICATIONS" for the Magisk app ...
----------------------------------------------------------------------
[26.01.2023 07:25 ] Processing
the task "enable_disable_abort_on_error" with the parameter
"disable" ...
[26.01.2023 07:25 ] Executing now
"enable_disable_abort_on_error disable"
----------------------------------------------------------------------
[26.01.2023 07:25 ] Setting the variable
"ABORT_TASK_EXECUTION_ON_ERROR" to "1" ..
----------------------------------------------------------------------
[26.01.2023 07:25 ] Processing
the task "install_essential_scripts" ...
[26.01.2023 07:25 ] Executing now
"install_essential_scripts "
----------------------------------------------------------------------
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] *** Installing the essential
scripts from the local directory
"/data/backup/Android/EssentialScripts/" onto the phone
...
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:25 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:25 ] The phone is already booted into
the Android
[26.01.2023 07:25 ] Waiting for 5 seconds now ...
[26.01.2023 07:25 ] Copying the scripts to the phone
...
/data/backup/Android/EssentialScripts//0001logcatboot:
1 file pushed, 0 skipped. 7.0 MB/s (156 bytes in 0.000s)
/data/backup/Android/EssentialScripts//correct_dev_pn553.sh:
1 file pushed, 0 skipped. 37.4 MB/s (354 bytes in 0.000s)
/data/backup/Android/EssentialScripts//disable_intent_filter_verification.sh:
1 file pushed, 0 skipped. 6.3 MB/s (51 bytes in 0.000s)
/data/backup/Android/EssentialScripts//enable_microg.sh:
1 file pushed, 0 skipped. 20.3 MB/s (146 bytes in 0.000s)
/data/backup/Android/EssentialScripts//enable_wifi.sh:
1 file pushed, 0 skipped. 362.4 MB/s (2956 bytes in 0.000s)
/data/backup/Android/EssentialScripts//install_apk.sh:
1 file pushed, 0 skipped. 331.9 MB/s (6052 bytes in 0.000s)
/data/backup/Android/EssentialScripts//list_magisk_root_permissions.sh:
1 file pushed, 0 skipped. 28.5 MB/s (223 bytes in 0.000s)
/data/backup/Android/EssentialScripts//remove_screenlock.sh:
1 file pushed, 0 skipped. 9.5 MB/s (69 bytes in 0.000s)
8 files pushed, 0 skipped. 0.1 MB/s (10007 bytes in
0.109s)
----------------------------------------------------------------------
[26.01.2023 07:25 ] Processing
the task "install_essential_apps" ...
[26.01.2023 07:25 ] Executing now
"install_essential_apps "
----------------------------------------------------------------------
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] *** Installing the essential apss
from the local directory "/data/backup/Android/EssentialApps"
onto the phone using the script
"/data/develop/android/scripts_on_linux/install_apk.sh" ...
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:25 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:25 ] The phone is already booted into
the Android
Running on a PC
Using adb 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/axp.tool.apkextractor_v5.apk
Installing the apk
"/data/backup/Android/EssentialApps/axp.tool.apkextractor_v5.apk"
...
Success
"/data/backup/Android/EssentialApps/axp.tool.apkextractor_v5.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/axp.tool.apkextractor_v5.apk
Running on a PC
Using adb 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/com.android.keepass_196.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.android.keepass_196.apk"
...
Success
"/data/backup/Android/EssentialApps/com.android.keepass_196.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.android.keepass_196.apk
Running on a PC
Using adb 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/com.bytehamster.changelog_v49.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.bytehamster.changelog_v49.apk"
...
Success
"/data/backup/Android/EssentialApps/com.bytehamster.changelog_v49.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.bytehamster.changelog_v49.apk
Running on a PC
Using adb 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/com.elsdoerfer.android.autostarts_v33.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.elsdoerfer.android.autostarts_v33.apk"
...
Success
"/data/backup/Android/EssentialApps/com.elsdoerfer.android.autostarts_v33.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.elsdoerfer.android.autostarts_v33.apk
Running on a PC
Using adb 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/com.keramidas.TitaniumBackupAddon_v1.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk"
...
Success
"/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk
Running on a PC
Using adb 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/com.keramidas.TitaniumBackup_v417.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackup_v417.apk"
...
Success
"/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackup_v417.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackup_v417.apk
Running on a PC
Using adb 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/com.kunzisoft.keepass.libre_57.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.kunzisoft.keepass.libre_57.apk"
...
Success
"/data/backup/Android/EssentialApps/com.kunzisoft.keepass.libre_57.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.kunzisoft.keepass.libre_57.apk
Running on a PC
Using adb 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/com.matoski.adbm_v27.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.matoski.adbm_v27.apk"
...
Success
"/data/backup/Android/EssentialApps/com.matoski.adbm_v27.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.matoski.adbm_v27.apk
Running on a PC
Using adb 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/com.offsec.nhterm_2020040001.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.offsec.nhterm_2020040001.apk"
...
Success
"/data/backup/Android/EssentialApps/com.offsec.nhterm_2020040001.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.offsec.nhterm_2020040001.apk
Running on a PC
Using adb 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/com.termux_v118.apk
Installing the apk
"/data/backup/Android/EssentialApps/com.termux_v118.apk" ...
Success
"/data/backup/Android/EssentialApps/com.termux_v118.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/com.termux_v118.apk
Running on a PC
Using adb 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/F-Droid.apk
Installing the apk
"/data/backup/Android/EssentialApps/F-Droid.apk" ...
Success
"/data/backup/Android/EssentialApps/F-Droid.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/F-Droid.apk
Running on a PC
Using adb 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/FoxMagiskModuleManager_0.4.0-rc1.apk
Installing the apk
"/data/backup/Android/EssentialApps/FoxMagiskModuleManager_0.4.0-rc1.apk"
...
Success
"/data/backup/Android/EssentialApps/FoxMagiskModuleManager_0.4.0-rc1.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/FoxMagiskModuleManager_0.4.0-rc1.apk
Running on a PC
Using adb 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/FoxMmm-0.5.6.apk
Installing the apk
"/data/backup/Android/EssentialApps/FoxMmm-0.5.6.apk" ...
Success
"/data/backup/Android/EssentialApps/FoxMmm-0.5.6.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/FoxMmm-0.5.6.apk
Running on a PC
Using adb 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/io.github.muntashirakon.AppManager_v397.apk
Installing the apk
"/data/backup/Android/EssentialApps/io.github.muntashirakon.AppManager_v397.apk"
...
Success
"/data/backup/Android/EssentialApps/io.github.muntashirakon.AppManager_v397.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/io.github.muntashirakon.AppManager_v397.apk
Running on a PC
Using adb 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/Magisk-v25.2.apk
Installing the apk
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk" ...
Success
"/data/backup/Android/EssentialApps/Magisk-v25.2.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/Magisk-v25.2.apk
Running on a PC
Using adb 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/MiXplorer_v6.58.8_B23010320.apk
Installing the apk
"/data/backup/Android/EssentialApps/MiXplorer_v6.58.8_B23010320.apk"
...
Success
"/data/backup/Android/EssentialApps/MiXplorer_v6.58.8_B23010320.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/MiXplorer_v6.58.8_B23010320.apk
Running on a PC
Using adb 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/NetHunterStore.apk
Installing the apk
"/data/backup/Android/EssentialApps/NetHunterStore.apk" ...
Success
"/data/backup/Android/EssentialApps/NetHunterStore.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/NetHunterStore.apk
Running on a PC
Using adb 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/Notecase_Pro_1.2.2.apk
Installing the apk
"/data/backup/Android/EssentialApps/Notecase_Pro_1.2.2.apk" ...
Success
"/data/backup/Android/EssentialApps/Notecase_Pro_1.2.2.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/Notecase_Pro_1.2.2.apk
Running on a PC
Using adb 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/yasnac-v1.1.5.r65.15110ef310-release.apk
Installing the apk
"/data/backup/Android/EssentialApps/yasnac-v1.1.5.r65.15110ef310-release.apk"
...
Success
"/data/backup/Android/EssentialApps/yasnac-v1.1.5.r65.15110ef310-release.apk"
succcessfully installed
Installation summary
====================
1 package(s) successfully installed:
/data/backup/Android/EssentialApps/yasnac-v1.1.5.r65.15110ef310-release.apk
[26.01.2023 07:25 ] Summary:
[26.01.2023 07:25 ] 19 apk(s) successfully installed:
/data/backup/Android/EssentialApps/axp.tool.apkextractor_v5.apk
/data/backup/Android/EssentialApps/com.android.keepass_196.apk
/data/backup/Android/EssentialApps/com.bytehamster.changelog_v49.apk
/data/backup/Android/EssentialApps/com.elsdoerfer.android.autostarts_v33.apk
/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackupAddon_v1.apk
/data/backup/Android/EssentialApps/com.keramidas.TitaniumBackup_v417.apk
/data/backup/Android/EssentialApps/com.kunzisoft.keepass.libre_57.apk
/data/backup/Android/EssentialApps/com.matoski.adbm_v27.apk
/data/backup/Android/EssentialApps/com.offsec.nhterm_2020040001.apk
/data/backup/Android/EssentialApps/com.termux_v118.apk
/data/backup/Android/EssentialApps/F-Droid.apk
/data/backup/Android/EssentialApps/FoxMagiskModuleManager_0.4.0-rc1.apk
/data/backup/Android/EssentialApps/FoxMmm-0.5.6.apk
/data/backup/Android/EssentialApps/io.github.muntashirakon.AppManager_v397.apk
/data/backup/Android/EssentialApps/Magisk-v25.2.apk
/data/backup/Android/EssentialApps/MiXplorer_v6.58.8_B23010320.apk
/data/backup/Android/EssentialApps/NetHunterStore.apk
/data/backup/Android/EssentialApps/Notecase_Pro_1.2.2.apk
/data/backup/Android/EssentialApps/yasnac-v1.1.5.r65.15110ef310-release.apk
----------------------------------------------------------------------
[26.01.2023 07:25 ] Processing
the task "install_essential_magisk_modules" ...
[26.01.2023 07:25 ] Executing now
"install_essential_magisk_modules "
----------------------------------------------------------------------
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] *** Installing the essential
Magisk modules from the local directory
"/data/backup/Android/EssentialMagiskModules" onto the phone ...
[26.01.2023 07:25 ]
[26.01.2023 07:25 ] The automatic reboot after
executing the script is disabled
[26.01.2023 07:25 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:25 ] The phone is already booted into
the Android
[26.01.2023 07:25 ] *** Installing the Magisk Module
addbin-v1.3.0.0.zip ...
addbin-v1.3.0.0.zip: 1 file pushed, 0 skipped. 32.5
MB/s (90829439 bytes in 2.664s)
- Current boot slot: _a
- Device is system-as-root
**********************
Additional Binaries
by bnsmb01@gmail.com
**********************
*******************
Powered by Magisk
*******************
- Extracting module files
The current envrironment for this installation is
The version of the installed Magisk is "25.2" (25200)
INFO: BOOTMODE is "true"
INFO: MODPATH is "/data/adb/modules_update/addbin"
INFO: TMPDIR is "/dev/tmp"
INFO: ZIPFILE is
"/storage/emulated/0/Download/MagiskModules/addbin-v1.3.0.0.zip"
INFO: ARCH is "arm64"
INFO: IS64BIT is "true"
INFO: API is "33"
Installing the Magisk Module for the additional
binaries version "1.0.0.0" ...
Checking the type of the CPU used in this device ....
The CPU in this device is a arm64 CPU
OK, the CPU is supported by this module
Copying the config files to /sdcard ...
Creating the config file "/sdcard/.viminfo" ...
Creating the config file "/sdcard/.aliases" ...
Creating the config file "/sdcard/.customrc" ...
Creating the config file "/sdcard/.bashrc" ...
- Done
[26.01.2023 07:27 ] *** Installing the Magisk Module
bootctl-binary-v2.1.2.zip ...
bootctl-binary-v2.1.2.zip: 1 file pushed, 0 skipped.
539.7 MB/s (23015 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 33 device...
- Setting Permissions
- Done
[26.01.2023 07:27 ] *** Installing the Magisk Module
magisk_ssh_v0.14.zip ...
magisk_ssh_v0.14.zip: 1 file pushed, 0 skipped. 34.6
MB/s (23306755 bytes in 0.643s)
- Current boot slot: _a
- Device is system-as-root
*******************************
OpenSSH for
Android
*******************************
[0/7] Preparing module directory
[1/7] Extracting architecture unspecific module files
[2/7] Extracting libraries and binaries for arm64
[3/7] Configuring library path wrapper
[4/7] Recreating symlinks
[5/7] Creating SSH user directories
[6/7] Extracting sshd_config
[7/7] Cleaning up
- Setting permissions
- Done
[26.01.2023 07:27 ] *** Installing the Magisk Module
MiXplorer.v6.58.4.22020910.zip ...
MiXplorer.v6.58.4.22020910.zip: 1 file pushed, 0
skipped. 33.5 MB/s (43026084 bytes in 1.224s)
- Current boot slot: _a
- Device is system-as-root
***********
MiXplorer
by Psk.It
***********
*******************
Powered by Magisk
*******************
- Extracting module files
- Done
[26.01.2023 07:27 ] *** 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. 571.8 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!
[26.01.2023 07:27 ] *** Installing the Magisk Module
PlayStore_for_MicroG.zip ...
PlayStore_for_MicroG.zip: 1 file pushed, 0 skipped.
35.3 MB/s (21746673 bytes in 0.588s)
- Current boot slot: _a
- Device is system-as-root
*******************************************************************
Patched Playstore from NanoDroid for MicroG
(for ARM64 CPUs only)
by bnsmb01@gmail.com
*******************************************************************
*******************
Powered by Magisk
*******************
- Extracting module files
The current envrironment for this installation is
The version of the installed Magisk is "25.2" (25200)
INFO: BOOTMODE is "true"
INFO: MODPATH is
"/data/adb/modules_update/PlayStore_for_MicroG"
INFO: TMPDIR is "/dev/tmp"
INFO: ZIPFILE is
"/storage/emulated/0/Download/MagiskModules/PlayStore_for_MicroG.zip"
INFO: ARCH is "arm64"
INFO: IS64BIT is "true"
INFO: API is "33"
Installing the Magisk Module for the patched
Playstore version "1.0.0.0" ...
Checking the OS configuration ...
Checking the directories used for the patched
Playstore ...
Checking tf the MicroG packages are installed ...
package:org.microg.nlp.backend.nominatim
package:org.microg.nlp.backend.ichnaea
Checking the type of the CPU used in this device ....
The CPU in this device is a arm64 CPU
OK, the CPU is supported by this module
- Done
[26.01.2023 07:27 ] Summary:
[26.01.2023 07:27 ] 6 Magisk Module(s) successfully
installed:
addbin-v1.3.0.0.zip
bootctl-binary-v2.1.2.zip
magisk_ssh_v0.14.zip
MiXplorer.v6.58.4.22020910.zip
Nano_for_Android_NDK-6_3-6300.zip
PlayStore_for_MicroG.zip
----------------------------------------------------------------------
[26.01.2023 07:27 ] Processing
the task "enable_root_access_for_apps" with the parameter
"reboot" ...
[26.01.2023 07:27 ] Executing now
"enable_root_access_for_apps reboot"
----------------------------------------------------------------------
[26.01.2023 07:27 ]
[26.01.2023 07:27 ] *** 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"
...
[26.01.2023 07:27 ]
[26.01.2023 07:27 ] The automatic reboot after
executing the script is enabled
[26.01.2023 07:27 ] The task execution will stop if
the script ends with a return code not zero
[26.01.2023 07:27 ]
----------------------------------------------------------------------
[26.01.2023 07:27 ] *** 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.0.1 - 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 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 into the Android OS
The boot slot is _a.
Retrieving the UIDs for the app names ...
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" ...
The UID for the app "com.mixplorer" is "10146"
Retrieving the UID for the app
"com.keramidas.TitaniumBackup" ...
The UID for the app "com.keramidas.TitaniumBackup" is
"10138"
Retrieving the UID for the app
"io.github.muntashirakon.AppManager" ...
The UID for the app
"io.github.muntashirakon.AppManager" is "10145"
Retrieving the UID for the app "com.matoski.adbm" ...
The UID for the app "com.matoski.adbm" is "10140"
Retrieving the UID for the app "com.fox2code.mmm" ...
The UID for the app "com.fox2code.mmm" is "10144"
Will enable the root access via Magisk for these
UIDs: 2000 10146 10138 10145 10140 10144
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/twrp/current_twrp.img" now ...
Sending 'boot.img' (98304
KB)
OKAY [ 2.808s]
Booting
OKAY [ 10.360s]
Finished. Total time: 13.211s
Waiting up to 120 seconds for the boot of the phone
....
Waiting up to 30 seconds for the adb daemon to get
ready ..
... the adb daemon is ready after 2 second(s)
The phone is booted into TWRP:
"/data/backup/ASUS_ZENFONE8/twrp/current_twrp.img" version
"3.7.0_12-0"
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. 560.7 MB/s (22501 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
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 "10146" is okay
The parameter "10138" is okay
The parameter "10145" is okay
The parameter "10140" is okay
The parameter "10144" 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.562.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
10146 1
0
1
1
Enabling the root access for these app UIDs:
2000 10146 10138 10145 10140 10144
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 "10146" ...
The entry for the UID "10146" already exists in the
Magisk database:
root acces for the UID "10146" is not enabled --
enabling root access for the UID "10146" now ...
OK, root access successfully enabled for the UID
"10146"
Processing the UID "10138" ...
Enabling root access for the UID "10138" now ...
OK, root access successfully enabled for the UID
"10138"
Processing the UID "10145" ...
Enabling root access for the UID "10145" now ...
OK, root access successfully enabled for the UID
"10145"
Processing the UID "10140" ...
Enabling root access for the UID "10140" now ...
OK, root access successfully enabled for the UID
"10140"
Processing the UID "10144" ...
Enabling root access for the UID "10144" now ...
OK, root access successfully enabled for the UID
"10144"
Summary
root access enabled for 5 UID(s):
10146 10138 10145 10140 10144
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
10146 2
0
1
1
10138 2
0
1
1
10145 2
0
1
1
10140 2
0
1
1
10144 2
0
1
1
root access for the UIDs via Magisk successfully
enabled
Rebooting the phone now ...
Rebooting the phone using the command " /usr/bin/adb
-d -s M6AIB760D0939LX reboot " now ...
#
---------------------------------------------------------------------
[26.01.2023 07:28 ] ... the script ended with
RC=0
----------------------------------------------------------------------
[26.01.2023 07:28 ] Processing
the task "execute_script_on_the_phone" with the parameter
"ignorerc" ...
[26.01.2023 07:28 ] Executing now
"execute_script_on_the_phone ignorerc"
----------------------------------------------------------------------
[26.01.2023 07:28 ]
[26.01.2023 07:28 ] *** Executing the script
"/data/develop/android/scripts_on_linux/post_install.sh" on the
phone ...
[26.01.2023 07:28 ]
[26.01.2023 07:28 ] The Returncode of the script will
be ignored
[26.01.2023 07:28 ] Waiting for a working adb
connection ...
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 07:29 ] 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. 8.3 MB/s (241 bytes in 0.000s)
[26.01.2023 07:29 ] Now executing the script
"/sdcard/Download/post_install.sh" on the phone ...
*** Postinstall script is running ...
Disabling mobile data ...
----------------------------------------------------------------------
[26.01.2023 07:29 ] "finish_tasks" is defined - now
executing it ...
----------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------
[26.01.2023 07:29 ] *** Task summary :
-------------------------------------------------------------------------------------------------------------
[26.01.2023 07:29 ] Tasks executed successfully are:
enable_disable_abort_on_error
boot_phone_from_twrp_image
install_os
install_twrp
install_magisk_in_boot_partition_only
enable_adb
install_magisk_in_data_adb_only
enable_root_access_for_the_shell
wait_for_access_via_adb
install_the_magisk_app
enable_disable_abort_on_error
install_essential_scripts
install_essential_apps
install_essential_magisk_modules
enable_root_access_for_apps
execute_script_on_the_phone
-------------------------------------------------------------------------------------------------------------
[26.01.2023 07:29 ] The working directory used is:
"/tmp/prepare_phone.sh_WORKDIR.614923" .
[26.01.2023 07:29 ] The include file used was :
[26.01.2023 07:29 ] -rwxr-xr-x. 1 xtrnaw7
xtrnaw7 236016 Jan 26 06:49
/data/develop/android/scripts_on_linux/prepare_phone.include
[26.01.2023 07:29 ] The include file used was last
edited at: "21.01.2023 /bs"
----------------------------------------------------------------------
[26.01.2023 07:29 ] Execution summary:
[26.01.2023 07:29 ] Tasks
processed:
16
[26.01.2023 07:29 ] Tasks executed
succesfully: 16
[26.01.2023 07:29 ] Tasks executed with
errors: 0
[26.01.2023 07:29 ] Tasks not executed on request: 0
[26.01.2023 07:29 ] Tasks not
found:
0
[26.01.2023 07:29 ] ### The logfile used was
/var/tmp/prepare_phone.sh.log
[26.01.2023 07:29 ] ### The start time was 26.01.2023
07:16:48, the script runtime is (day:hour:minute:seconds)
0:00:12:39 (= 759 seconds)
[26.01.2023 07:29 ] ### prepare_phone.sh ended at
26.01.2023 07:29:27 (The PID of this process is 614923; the RC
is 0)
real 12m38.456s
user 0m2.452s
sys 0m3.029s
[ OmniRom 13 Dev - xtrnaw7@t15g
/data/develop/android/scripts_on_linux ] $