chmod +x
scriptname) and reboot the phone.# boot the phone into the bootloader and then do
sudo fastboot boot
/data/backup/ASUS_ZENFONE8/twrp/twrp-3.6.1_12-1-I006D.img
cat /data/adb/service.d/correct_dev_pn553.sh
#!/system/bin/sh
NFC_DEVICE="/dev/pn553"
echo ""
echo "The SELinux context for \"${NFC_DEVICE}\" is now:"
ls -lZ ${NFC_DEVICE}
echo ""
echo "Correcting the SELinux context for the NFC device
\"${NFC_DEVICE}\" ..."
chcon -v u:object_r:nfc_device:s0 /dev/pn553
echo ""
echo "The SELinux context for \"${NFC_DEVICE}\" is now:"
ls -lZ ${NFC_DEVICE} REBOOT=yes install_magisk_via_twrp.sh
REBOOT=no install_magisk_via_twrp.sh
/data/adb/magisk/boot_patch.sh[211]: can't create
/proc/self/fd/: Is a directory [ 77%] /sdcard/Download/patched_boot_a.391985.img ERROR:
Error downloading the file
"/sdcard/Download/patched_boot_a.391985.img" from the phone!
adb: insufficient permissions for device adb kill-server [xtrnaw7@t15g /data/backup/Android/scripts_on_linux]$
./install_magisk_via_twrp.sh
./install_magisk_via_twrp.sh version - 2.0.0.0 - add Magisk to
the boot partition of a phone running Android using TWRP
Using the TWRP image hardcoded in the script:
"/data/backup/ASUS_ZENFONE8/twrp/twrp-3.7.0_12-0-I006D.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-gea6f815f5af9-dirty #42
SMP PREEMPT Tue Sep 27 18:03:41 CEST 2022 aarch64
... found a phone connected via USB with working adb access
The phone is booted in normal mode
The installed OS is based on Android 12 (Wed Aug 10 06:59:46
CEST 2022); the description for the distribution is
"omni_zenfone8-user 12 SQ3A.220605.009.A1
eng.xtrnaw.20220810.065947 release-keys"
The installed version of Magisk is com.topjohnwu.magisk
versionCode 25200
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/twrp-3.7.0_12-0-I006D.img"
now ...
Sending 'boot.img' (98304 KB) OKAY [ 2.489s]
Booting OKAY [ 10.359s]
Finished. Total time: 12.888s
Waiting up to 60 seconds for the boot of the phone ....
Retrieving the current boot slot from the phone ...
The current boot slot is "_b"
The boot slot to patch is "_b"
The boot partition to patch is "boot_b"
Checking if the Magisk patch script "boot_patch.sh" exists on
the phone ....
-rwxr-xr-x 1 root root 5987 2022-10-27 07:33
/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.732627.img" from the partition
"/dev/block/by-name/boot_b" ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 0.308243 s, 311 M/s
Checking the result ...
-rw-rw---- 1 root media_rw 100663296 2022-10-28 09:51
/sdcard/Download/boot_b.732627.img
The check sums are:
The check sum of the boot partition
"/dev/block/by-name/boot_b" on the phone is "4108888341"
The check sum of th boot image file on the phone is
"/sdcard/Download/boot_b.732627.img" is "4108888341"
Patching the boot image file
"/sdcard/Download/boot_b.732627.img" ...
Waiting now 10 seconds ...
- Unpacking boot image
Parsing boot image: [/sdcard/Download/boot_b.732627.img]
HEADER_VER [3]
KERNEL_SZ [42025472]
RAMDISK_SZ [34080597]
OS_VERSION [12.0.0]
OS_PATCH_LEVEL [2022-05]
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.732627.img]
HEADER_VER [3]
KERNEL_SZ [42025472]
RAMDISK_SZ [34080597]
OS_VERSION [12.0.0]
OS_PATCH_LEVEL [2022-05]
PAGESIZE [4096]
CMDLINE []
KERNEL_FMT [raw]
RAMDISK_FMT [gzip]
VBMETA
Repack to boot image: [new-boot.img]
HEADER_VER [3]
KERNEL_SZ [42025472]
RAMDISK_SZ [34331854]
OS_VERSION [12.0.0]
OS_PATCH_LEVEL [2022-05]
PAGESIZE [4096]
CMDLINE []
Checking the result ...
-rw-r--r-- 1 root root 100663296 2022-10-28 09:51
/data/adb/magisk/new-boot.img
The patched boot image is
"/sdcard/Download/patched_boot_b.732627.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.732627.img" via dd ...
196608+0 records in
196608+0 records out
100663296 bytes (96 M) copied, 4.721236 s, 20 M/s
Checking the result ....
The check sums for the images and devices on the phone are:
4108888341 100663296 /sdcard/Download/boot_b.732627.img
3369959638 100663296
/sdcard/Download/patched_boot_b.732627.img
3369959638 100663296 /dev/block/by-name/boot_b
OK, patching the boot partition "/dev/block/by-name/boot_b"
was successfull
*** Press return to reboot the phone now
Rebooting the phone now ...
[xtrnaw7@t15g /data/backup/Android/scripts_on_linux]$
adb shell su - ASUS_I006D:/ # ls -ld /data/adb/modules/*
drwxrws--- 3 u0_a118 media_rw 3452 2022-05-30 12:12
/data/adb/modules/playstore
ASUS_I006D:/ # ASUS_I006D:/ # find /data/adb/modules/playstore
/data/adb/modules/playstore
/data/adb/modules/playstore/system
/data/adb/modules/playstore/system/etc
/data/adb/modules/playstore/system/etc/permissions
/data/adb/modules/playstore/system/etc/permissions/com.android.vending.xml
/data/adb/modules/playstore/system/priv-app
/data/adb/modules/playstore/system/priv-app/Phonesky
/data/adb/modules/playstore/system/priv-app/Phonesky/lib
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libbrotli.so
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libconscrypt_jni.so
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libcronet.85.0.4181.5.so
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libgame_sdk_device_info_jni.so
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libphonesky_data_loader.so
/data/adb/modules/playstore/system/priv-app/Phonesky/lib/arm/libtensorflowlite_jni.so
/data/adb/modules/playstore/system/priv-app/Phonesky/Phonesky.apk
/data/adb/modules/playstore/system/priv-app/FakeStore
/data/adb/modules/playstore/system/priv-app/FakeStore/oat
/data/adb/modules/playstore/system/priv-app/FakeStore/oat/arm64
/data/adb/modules/playstore/system/priv-app/FakeStore/oat/arm64/FakeStore.odex
/data/adb/modules/playstore/system/priv-app/FakeStore/oat/arm64/FakeStore.vdex
/data/adb/modules/playstore/system/priv-app/FakeStore/FakeStore.apk
ASUS_I006D:/ # ASUS_I006D:/ # find /system/priv-app/Phonesky/
/system/priv-app/Phonesky/
/system/priv-app/Phonesky/lib
/system/priv-app/Phonesky/lib/arm
/system/priv-app/Phonesky/lib/arm/libbrotli.so
/system/priv-app/Phonesky/lib/arm/libconscrypt_jni.so
/system/priv-app/Phonesky/lib/arm/libcronet.85.0.4181.5.so
/system/priv-app/Phonesky/lib/arm/libgame_sdk_device_info_jni.so
/system/priv-app/Phonesky/lib/arm/libphonesky_data_loader.so
/system/priv-app/Phonesky/lib/arm/libtensorflowlite_jni.so
/system/priv-app/Phonesky/Phonesky.apk
ASUS_I006D:/ # ASUS_I006D:/ # find /system/priv-app/FakeStore/
/system/priv-app/FakeStore/
/system/priv-app/FakeStore/oat
/system/priv-app/FakeStore/oat/arm64
/system/priv-app/FakeStore/oat/arm64/FakeStore.vdex
/system/priv-app/FakeStore/oat/arm64/FakeStore.odex
/system/priv-app/FakeStore/FakeStore.apk
ASUS_I006D:/ # adb push magisk_ssh_v0.14.zip /sdcard/Download/ adb shell su - -c /data/adb/magisk/magisk64 --install-module
/sdcard/Download/magisk_ssh_v0.14.zip ASUS_I006D:/ # /data/adb/magisk/magisk64 --install-module
/sdcard/Download/magisk_ssh_v0.14.zip
- 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] Found sshd_config, will not copy a default one
[7/7] Cleaning up - Setting permissions - Done
ASUS_I006D:/ # adb shell reboottouch /data/ssh/root/.ssh/authorized_keys
chmod 600 /data/ssh/root/.ssh/authorized_keys touch /data/ssh/KEEP_ON_UNINSTALL touch /data/ssh/no-autostart # start the sshd (as user root)
#
/data/adb/modules/ssh/opensshd.init start
# to stop the sshd (as user root)
#
/data/adb/modules/ssh/opensshd.init stop PHONE_IP_ADDRESS=$( adb shell ifconfig wlan0 | grep "inet
addr:" | sed -e "s/.*inet addr://g" -e
"s/[[:space:]]*Bcast.*//g" ) [xtrnaw7@t15g ~]$ ssh -l root ${PHONE_IP_ADDRESS} id
uid=0(root) gid=0(root) groups=0(root) context=u:r:magisk:s0
[xtrnaw7@t15g ~]$ # on your local Linux workstation do:
# start the sshd on the phone via adb if not already running
#
adb shell su - -c /data/adb/modules/ssh/opensshd.init start
# retrieve the current IP address from the phone
#
PHONE_IP_ADDRESS=$( adb shell ifconfig wlan0 | grep "inet addr:"
| sed -e "s/.*inet addr://g" -e "s/[[:space:]]*Bcast.*//g" )
# backup the new photos from the phone to the Linux workstation
(rsync only copies new files from the phone)
# to the local directory /data/backup/ASUS_ZENFONE8/DCIM
#
rsync -av --rsync-path /data/adb/modules/ssh/usr/bin/rsync
root@${PHONE_IP_ADDRESS}:/sdcard/DCIM/
/data/backup/ASUS_ZENFONE8/DCIM
# optional stop the sshd on the phone via adb
#
adb shell su - -c /data/adb/modules/ssh/opensshd.init stop
ASUS_I006D:/ # ls -ld /storag
drwx--x--- 4 shell everybody 80 2022-06-26 18:37 /storage
ASUS_I006D:/ # # /data/adb/service.d/create_ssh_dir_for_shell.sh
#
mkdir -p /storage/shell/.ssh chmod -R 700 /storage/shell/
touch /storage/shell/.ssh/authorized_keys
echo "<ssh_public_key>" >
/storage/shell/.ssh/authorized_keys
chmod 600 /storage/shell/.ssh/authorized_keys
chown -R shell:shell /storage/shell su - -c sh data/adb/service.d/create_ssh_dir_for_shell.sh
su - -c cp /data/ssh/sshd_config
/storage/ssh/sshd_config.org.$$ Match User shell AuthorizedKeysFile
/storage/shell/.ssh/authorized_keys [xtrnaw7@t15g ~]$ ssh -l shell 192.168.1.148 id
uid=2000(shell) gid=2000(shell) groups=2000(shell)
context=u:r:magisk:s0
[xtrnaw7@t15g ~]$ sed -i -e "s/.*StrictModes.*//g" -e
"s/UsePrivilegeSeparation/StrictModes
no\nUsePrivilegeSeparation/g" /data/ssh/sshd_config Match User shell AuthorizedKeysFile
/sdcard/shell/.ssh/authorized_keys /data/adb/modules/ssh/opensshd.init stop
/data/adb/modules/ssh/opensshd.init start ASUS_I006D:/ # find /sdcard/shell -exec ls -ld {} \;
drwxrws--- 3 u0_a118 media_rw 3452 2022-06-26 18:32
/sdcard/shell
drwxrws--- 2 u0_a118 media_rw 3452 2022-06-26 18:32
/sdcard/shell/.ssh
-rw-rw---- 1 u0_a118 media_rw 408 2022-06-26 18:32
/sdcard/shell/.ssh/authorized_keys
ASUS_I006D:/ # ps -fp $PPID| grep adbd >/dev/null if [ $? -ne 0 ] ; then
# # not running in an adb session : else # # running in an adb
session ... fi #!/system/bin/sh
GRANTED=$(magisk --sqlite "SELECT uid FROM policies WHERE
policy = '2';")
echo 'Packages with root granted:'
for UID in $GRANTED
do
UID=$(echo $UID | sed 's!^uid=!!g')
pm list packages --uid $UID
doneadb shell rm /data/adb/modules/*/disable A tool to unpack / repack boot images, parse / patch / extract cpio, patch dtb, hex patch binaries, and compress / decompress files with multiple algorithms.
/system/etc/init
/vendor/etc/init
/odm/etc/init
| Name |
Type |
Content |
Comment |
| /tmp/adbkey.pub |
file |
ssl public key that should be configured |
/tmp is on a ramdisk so this file is lost
after booting the phone |
| /data/recovery/work |
Directory |
temporary files used for enabling adb |
|
| /data/recovery/work/enable_adb_via_service.rc |
file |
init *rc file added to the boot partition
via Magiks |
|
| /data/recovery/work/boot_a.img |
file |
image of the original boot partition |
|
| /data/recovery/work/original_boot_partition.img |
SymLink |
link to the image with the original boot
partition |
|
| /data/recovery/work/restore_boot_partition.sh | file |
Script to restore the boot partition using
the image of the original boot partition |
|
| /data/recovery/work/header /data/recovery/work/kernel /data/recovery/work/ramdisk.cpio |
files |
contents of the boot partition |
|
| /data/recovery/adbkey.pub |
file |
public ssl key to be configured for access
via adb |
|
| /data/recovery/adb_temp_keys.xml.human |
file |
XML file with the configuration for the
access via adb (will be converted to an XML file in Android binary XML format in /data/misc/adb) |
|
| /data/recovery/enable_adb_via_service.sh |
file |
script to enable the access via adb and
installl the public ssl key for the access via adb The script is configured in the init*rc file /data/recovery/work/enable_adb_via_service.rc |
|
| /data/recovery/enable_adb_via_service.log |
file |
log file created by the script /data/recovery/enable_adb_via_service.sh | |
| /data/recovery/adb_initialized |
file |
semphor file for the script
/data/recovery/enable_adb_via_service.sh - if this file
exists the script will do nothing |
|
| /data/recovery/semfile |
file |
test file created by the new init *rc
service |
|
| /data/recovery/log.gz /data/recovery/last_log.gz /data/recovery/recovery.fstab /data/recovery/storage.fstab |
file |
Files created by TWRP |
only for information |
/system, /vendor,
/product, /system_ext, /odm,
/odm_dlkm, /vendor_dlkm, ...) become
read-write.How to properly install the GApps without using a computer ? can I download it as APK and install it ?
I want to add custom.init.rc with this code
```
./magiskboot unpack boot_root.img
./magiskboot cpio ramdisk.cpio \
"mkdir 0700 overlay.d" \
"add 0700 overlay.d/init.custom.rc init.custom.rc" \
"mkdir 0700 overlay.d/sbin" \
"add 0700 overlay.d/sbin/custom.sh init.custom.sh"
./magiskboot repack boot_root.img
```
After reboot my phone doing nothing, check file /sbin/custom.sh is existed, but /init.custom.rc not exist.
A10 Pixel Experience Redmi4x
*.rc file (except for init.rc)
in overlay.d will be read and concatenated AFTER
init.rc
if it does not exist in the root directory, otherwise it will
REPLACE the existing one.Starting from Android 11, the /sbin folder may no longer exists, and in that scenario, Magisk randomly generates a different tmpfs folder each boot. Every occurrence of the pattern ${MAGISKTMP} in your *.rc scripts will be replaced with the Magisk tmpfs folder when magiskinit injects it into init.rc. On pre Android 11 devices, ${MAGISKTMP} will simply be replaced with /sbin, so NEVER hardcode /sbin in the *.rc scripts when referencing these additional files.To get the value of ${MAGISKTMP} in the running Android OS use the command magisk --path, e.g.
for each repository configued in the manifest file omni-aosp.xml
do
is the repository in the list of forked AOSP repositories
for the OmniROM? If not, ignore it
is the repository in the list of repositories to ignore ?
if yes, ignore it
get the URL of the original AOSP repository for this
repository
either
fetch the changes in the files for the new
security patch using "git fetch <AOSP_repository_url>
<new_tag>"
merge the files just fetched using "git merge
<new_tag>"
or
pull the repository from the AOSP
repositories using "git pull <AOSP_repository_url>
<new_tag>"done| Environment variable |
Used for |
Comment |
| NEW_TAG | new tag to apply (will be overwritten by the parameter of the script if any) | If no new tag is defined in this variable
or in the script parameters, the script will ask the user |
| YES | do not ask the user for confirmation if not empty | If this variable is not set and the "yes"
parameter is not used, the script will ask the user for
confirmation before starting the merge. |
| VERBOSE | print some more messages if this variable
is not empty |
|
| GIT_PARAMETER | additional parmeter for the command git |
Do NOT use "-q" here because the script analyzes the messages written by git! |
update_verifier
provided by LineageOS can be used. update_verifier
is a python script and available for download here: https://wiki.lineageos.org/verifying-builds targetSdkVersion
lower than 23 can't be installed. Requiring apps to meet these
minimum target API level requirements improves security and
privacy for users."| Value |
Description |
| PRESIGNED | the apk file is already signed |
| platform | the build scripts will sign the apk with
the platform key this will be converted to: -> LOCAL_CERTIFICATE := build/make/target/product/security/platform |
| shared | "a key for things that are shared in the
home/contacts process." this will be converted to: -> LOCAL_CERTIFICATE := build/make/target/product/security/shared |
| media | the build scripts will sign the apk with
the key used for packages in media/download this will be converted to: -> LOCAL_CERTIFICATE := build/make/target/product/security/media |
| vendor/example/certs/app |
the bulild scripts will sign the apk with
the key found in the local directory vendor/example/certs this will be converted to: -> LOCAL_CERTIFICATE := vendor/example/certs/app |
| testkey |
a key used for all other packages default this will be converted to: -> LOCAL_CERTIFICATE := build/make/target/product/security/testkey |
| EXTERNAL |
"The magic string "EXTERNAL" means this
package will be signed with the test key throughout the
build process, but we expect the final package to be
signed with a different key." -> LOCAL_CERTIFICATE := build/make/target/product/security/testkey |
[ OmniRom 14 Dev - xtrnaw7@t15g /data/develop/android/edl ]
$ ./edl getstorageinfo
Qualcomm Sahara / Firehose Client V3.62 (c) B.Kerler 2018-2023.
main - Trying with no loader given ...
main - Waiting for the device
main - Device detected :)
main - Mode detected: sahara
Traceback (most recent call last):
File "/data/develop/android/edl/./edl", line 393, in
<module>
base.run()
File "/data/develop/android/edl/./edl", line 295, in run
version = conninfo["data"].version
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'req' has no attribute 'version'
[ OmniRom 14 Dev - xtrnaw7@t15g /data/develop/android/edl ] $
./edl
--loader=/data/backup/ASUS_ZENFONE8/edl/prog_firehose_ddr.elf| ROM |
"adb reboot edl" works? |
Comment |
| ASUS Android 13 |
yes |
|
| OmniROM 13 |
yes |
|
| OmniROM 14 | yes |
|
| LineageOS 19 |
no |
the phone boots into the Android OS after
executing "adb reboot edl" Booting into EDL mode via adb does also not work if the phone is booted into the recovery Booting via adb into the EDL mode works if the phone is booted from the TWRP image file. |
| LineageOS 20 | no | the phone boots into the Android OS after
executing "adb reboot edl" Booting into EDL mode via adb does also not work if the phone is booted into the recovery Booting via adb into the EDL mode also does not work if the phone is booted from the TWRP image file created for the LineageOS (see here) |
| LineageOS 21 (unofficial build!) |
yes |
OS image downloaded from here: https://github.com/mikooomich/android_device_asus_sake/releases |
| LineageOS 22 |
no |
|
| /e/ |
no |
the phone boots into the Android OS after
executing "adb reboot edl" Booting into EDL mode via adb does also not work if the phone is booted into the recovery Booting via adb into the EDL mode also does not work if the phone is booted from the TWRP image file created for the StatiXOS (see here) |
| StatiXOS |
no |
the phone boots into the Android OS after
executing "adb reboot edl" Booting into EDL mode via adb does also not work if the phone is booted into the recovery Booting via adb into the EDL mode also does not work if the phone is booted from the TWRP image file created for the StatiXOS (see here) |
| LMODroid |
no |
the phone boots into the Android OS after executing "adb reboot edl" |
| TWRP 3.7.1_12-0 |
yes |
| ROM |
Magisk module adb_root works? |
Comment |
| LineageOS 20.x |
yes |
|
| LineageOS 21.x | yes |
|
| ASUS Android 13 | yes |
|
| OmniROM 13 | no |
see below for a work around |
| OmniROM 14 |
no |
see below for a work around |
| /e/ 2.0x |
yes |
|
| LMODroid 4.2 |
yes |
|
| File / Directory |
Content |
Comment |
| /system/bin/server/syslogd | the syslogd binary |
|
| /system/bin/nlogger | the logger binary |
this is the executable logger from the GNU
inetuils (There is already a binary called logger in the Android OS ) |
| /system/bin/restart_syslogd | a script to restart the syslogd |
a symbolic link to ./start_syslogd |
| /system/bin/start_syslogd | a script to start the syslogd | |
| /system/bin/stop_syslogd | a script to stop the syslogd | a symbolic link to ./start_syslogd |
| /system/etc/syslog.conf_with_local_files | an example syslog config file to log a
loghost and to local files |
|
| /system/etc/syslog.conf | a syslog config file to log only to the
loghost |
this is the default syslog config file |
| /system/etc/syslog.d | the directory for additional syslog config
files |
additional syslog config files must use the
suffic .conf |
| /system/etc/hosts | a writable host file to be able to define
the loghost |
The file /system/etc/hosts is not changed if already replaced by another Magisk Module. |