Revision history for MagiskHelpBugs
Additions:
~-//**dmesg**// Can be run directly from the device or through ADB, but root is necessary. The command is simply "dmesg > /sdcard/dmesg.txt" (or whatever path you want to use or file name you want to give it). If running through ADB, put "adb shell su -c" in front of the command.
Deletions:
Additions:
~- //**The device doesn't boot/bootloops**// - A logcat during boot (either through ADB or a boot script) or dmesg are the only thing that really could show what's going on. A Magisk log might be good for complementary information.
~- //**Something doesn't work right**// -If something about your system or Magisk just doesn't work right, a dmesg or boot logcat might show what's wrong.
~-//**dmesg**// Can be run directly from the device (if root is working) or through ADB. The command is simply "dmesg > /sdcard/dmesg.txt" (or whatever path you want to use or file name you want to give it).
~- //**Something doesn't work right**// -If something about your system or Magisk just doesn't work right, a dmesg or boot logcat might show what's wrong.
~-//**dmesg**// Can be run directly from the device (if root is working) or through ADB. The command is simply "dmesg > /sdcard/dmesg.txt" (or whatever path you want to use or file name you want to give it).
Deletions:
Additions:
~- //**Installation of Magisk or modules fail**// - If installing from recovery, you'll need the //recovery log// and if installing from the Magisk app you need to save the installation log.
~- //**The Magisk app crashes**// - A logcat when the crash occurs will be necessary.
~- //**Installation log**// from the Magisk app (press "Save log" after installing Magisk or a module). If you experience errors when installing Magisk or modules in the Magisk app.
~- //**Magisk log**// save from the Magisk app or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below. **Note that when reporting about issues and bugs it is required to use verbose logging (//see "Verbose logging" below//).**
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]], an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] or a logcat bootscript (see below). It might be a good idea to start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Magisk app is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
~- //**The Magisk app crashes**// - A logcat when the crash occurs will be necessary.
~- //**Installation log**// from the Magisk app (press "Save log" after installing Magisk or a module). If you experience errors when installing Magisk or modules in the Magisk app.
~- //**Magisk log**// save from the Magisk app or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below. **Note that when reporting about issues and bugs it is required to use verbose logging (//see "Verbose logging" below//).**
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]], an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] or a logcat bootscript (see below). It might be a good idea to start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Magisk app is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Deletions:
~- //**The Magisk Manager crashes**// - A logcat when the crash occurs will be necessary.
~- //**Installation log**// from the Manager (press "Save log" after installing Magisk or a module). If you experience errors when installing Magisk or modules in the Manager.
~- //**Magisk log**// save from the Manager or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below. **Note that when reporting about issues and bugs it is required to use verbose logging (//see "Verbose logging" below//).**
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]], an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] or a logcat bootscript (see below). It might be a good idea to start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Additions:
All bug reports should be made on the [[https://github.com/topjohnwu/Magisk#bug-reports | the Magisk Github repo]]. The same tips that are outlined above apply.
Deletions:
Additions:
When reporting a bug, make sure you have the latest [[https://github.com/topjohnwu/Magisk#bug-reports | Canary bleeding edge build]] installed on your device. Otherwise any bug you're reporting may already be fixed upstream. It will also have much more detailed logging enabled (see below).
All bug reports should be made on the [[https://github.com/topjohnwu/Magisk | the Magisk Github repo]].
When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://github.com/topjohnwu/Magisk#bug-reports | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, this is a requirement.**
All bug reports should be made on the [[https://github.com/topjohnwu/Magisk | the Magisk Github repo]].
When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://github.com/topjohnwu/Magisk#bug-reports | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, this is a requirement.**
Deletions:
When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, it is required to use the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]] and the verbose logging.**
Additions:
rm -f /cache/bootlog.log
Deletions:
Additions:
logcat -f /cache/bootlog.log &
kill %1
do
[ -e ${Loc}/bootlog.log ] && mv -f ${Loc}/bootlog.log ${Loc}/bootlog_last.log
cp -f /cache/bootlog.log ${Loc}/bootlog.log
rm -f /cache/bootlog.log ${Loc}/bootlog.log
kill %1
do
[ -e ${Loc}/bootlog.log ] && mv -f ${Loc}/bootlog.log ${Loc}/bootlog_last.log
cp -f /cache/bootlog.log ${Loc}/bootlog.log
rm -f /cache/bootlog.log ${Loc}/bootlog.log
Deletions:
do
[ -e ${Loc}/boot.log ] && mv -f ${Loc}/boot.log ${Loc}/boot_last.log
cp -f /cache/boot.log ${Loc}/boot.log && rm -f /cache/boot.log
Additions:
sleep 30
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Additions:
sleep 60
logcat -d -f /cache/boot.log
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
cp -f /cache/boot.log ${Loc}/boot.log && rm -f /cache/boot.log
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
logcat -d -f /cache/boot.log
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
cp -f /cache/boot.log ${Loc}/boot.log && rm -f /cache/boot.log
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
while [ $(getprop sys.boot_completed) == 1 ]; do
# Pause until boot has been completed
until [ $(getprop sys.boot_completed) == 1 ]; do
sleep 15 # Number of seconds to keep recording after boot is completed.
logcat -d -f ${Loc}/boot.log
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. This will record until boot has completed and an additional 15 seconds, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Additions:
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. This will record until boot has completed and an additional 15 seconds, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
Additions:
# Wait to make sure props have been reset
while [ $(getprop sys.boot_completed) == 1 ]; do
# Pause until boot has been completed
until [ $(getprop sys.boot_completed) == 1 ]; do
sleep 15 # Number of seconds to keep recording after boot is completed.
logcat -d -f ${Loc}/boot.log
while [ $(getprop sys.boot_completed) == 1 ]; do
# Pause until boot has been completed
until [ $(getprop sys.boot_completed) == 1 ]; do
sleep 15 # Number of seconds to keep recording after boot is completed.
logcat -d -f ${Loc}/boot.log
Deletions:
logcat -d -f /cache/boot.log
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
cp -f /cache/boot.log ${Loc}/boot.log && rm -f /cache/boot.log
Additions:
do
Deletions:
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put the following code snippet in it (thank you [[https://forum.xda-developers.com/member.php?u=8340552 | jenslody]] and [[https://forum.xda-developers.com/member.php?u=4487388 | jcmm11]] for help with the script). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
Deletions:
Additions:
cp -f /cache/boot.log ${Loc}/boot.log && rm -f /cache/boot.log
Deletions:
rm -f /cache/boot.log
Additions:
cp -f /cache/boot.log ${Loc}/boot.log
rm -f /cache/boot.log
rm -f /cache/boot.log
Deletions:
Additions:
} &%%This will save a logcat to a file named boot.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
Additions:
logcat -d -f /cache/boot.log
[ -e ${Loc}/boot.log ] && mv -f ${Loc}/boot.log ${Loc}/boot_last.log
mv -f /cache/boot.log ${Loc}/boot.log
[ -e ${Loc}/boot.log ] && mv -f ${Loc}/boot.log ${Loc}/boot_last.log
mv -f /cache/boot.log ${Loc}/boot.log
Deletions:
[ -e ${Loc}/bootlog.log ] && mv -f ${Loc}/bootlog.log ${Loc}/bootlog_last.log
mv -f /cache/bootlog.log ${Loc}/bootlog.log
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put the following code snippet in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
Deletions:
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automated script creation process you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Additions:
sleep 60
logcat -d -f /cache/bootlog.log
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
logcat -d -f /cache/bootlog.log
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 60 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Deletions:
sleep 30
kill %1
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Below you can find a very simple example script that you can use, but I highly recommend the you try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes. If you want to do it manually, read on: Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
logcat -f /cache/bootlog.log &
sleep 30
kill %1
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
mv -f /cache/bootlog.log ${Loc}/bootlog.log
exit
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
logcat -f /cache/bootlog.log &
sleep 30
kill %1
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
mv -f /cache/bootlog.log ${Loc}/bootlog.log
exit
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Deletions:
until [ $(getprop sys.boot_completed) == 1 ]; do
logcat -d -f ${Loc}/bootlog.log
exit $$
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automatic setup you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/service.d, give it execution permission and put the following code snippet in it (thank you @jenslody and @jcmm11 for help with the script). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in service.d.%%#!/system/bin/sh
until [ $(getprop sys.boot_completed) == 1 ]; do
logcat -d -f ${Loc}/bootlog.log
exit $$
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automatic setup you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
until [ $(getprop sys.boot_completed) == 1 ]; do
logcat -d -f ${Loc}/bootlog.log
exit $$
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs. If you want a more automatic setup you can try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes.
Deletions:
logcat -f /cache/bootlog.log &
sleep 30
kill %1
until [ -e ${Loc}/testx ]
do
touch ${Loc}/testx
rm -f ${Loc}/testx
mv -f /cache/bootlog.log ${Loc}/bootlog.log
exit
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Below you can find a very simple example script that you can use, but I highly recommend the you try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable (the boot script option can be found under the logcat menu) and can also be used for a number of other information collecting purposes. If you want to do it manually, read on: Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
Deletions:
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Below you can find a very simple example script that you can use, but I highly recommend the you try the [[https://forum.xda-developers.com/android/apps-games/app-temefi-comprehensive-documentation-t3806260 | TeMeFI App]] by XDA recognised contributor [[https://forum.xda-developers.com/member.php?u=5417899 | DiamondJohn]]. It is highly customisable and can also be used for a number of other information collecting purposes. If you want to do it manually, read on: Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
Deletions:
Additions:
logcat -f /cache/bootlog.log &
Loc='/data/media/0'
until [ -e ${Loc}/testx ]
do
sleep 1
touch ${Loc}/testx
done
rm -f ${Loc}/testx
[ -e ${Loc}/bootlog.log ] && mv -f ${Loc}/bootlog.log ${Loc}/bootlog_last.log
mv -f /cache/bootlog.log ${Loc}/bootlog.log
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Loc='/data/media/0'
until [ -e ${Loc}/testx ]
do
sleep 1
touch ${Loc}/testx
done
rm -f ${Loc}/testx
[ -e ${Loc}/bootlog.log ] && mv -f ${Loc}/bootlog.log ${Loc}/bootlog_last.log
mv -f /cache/bootlog.log ${Loc}/bootlog.log
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but if this isn't enough you can adjust the sleep time in the script to fit your needs.
Deletions:
[ -e /data/media/0/bootlog.log ]&&mv /data/media/0/bootlog.log /data/media/0/bootlog_last.log
logcat -f /data/media/0/bootlog.log &
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
Additions:
Certain issues require different kinds of logs. Here's a list of examples (see further down for details on how to acquire the logs in question), but it's far from a complete list and only meant as an example of what logs may be useful:
Deletions:
Additions:
rm -f /data/media/0/bootlog_last.log
[ -e /data/media/0/bootlog.log ]&&mv /data/media/0/bootlog.log /data/media/0/bootlog_last.log
logcat -f /data/media/0/bootlog.log &
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
[ -e /data/media/0/bootlog.log ]&&mv /data/media/0/bootlog.log /data/media/0/bootlog_last.log
logcat -f /data/media/0/bootlog.log &
} &%%This will save a logcat to a file named bootlog.log and save it to your internal storage (/sdcard) as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
Deletions:
[ -e /cache/bootlog.log ]&&mv /cache/bootlog.log /cache/bootlog_last.log
logcat -f /cache/bootlog.log &
} &%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
Additions:
~- //**The device only boots to bootloader/recovery**// - After the reboot, grab the kmsg file.
~- //**kmsg/last_kmsg**// If experiencing random reboots or booting to bootloader/recovery, the kmsg files, found in /proc, might show what's going on.
~- //**kmsg/last_kmsg**// If experiencing random reboots or booting to bootloader/recovery, the kmsg files, found in /proc, might show what's going on.
Deletions:
Additions:
~- //**The device randomly reboots**// - After the reboot, grab the console-ramoops and/or last_kmsg.
~- //**console-ramoops**// If experiencing random reboots, the console-ramoops file, found in /sys/fs/pstore, might show what's going on.
~- //**last_kmsg**// If experiencing random reboots, the last_kmsg file, found in /proc, might show what's going on.
~- //**console-ramoops**// If experiencing random reboots, the console-ramoops file, found in /sys/fs/pstore, might show what's going on.
~- //**last_kmsg**// If experiencing random reboots, the last_kmsg file, found in /proc, might show what's going on.
Deletions:
~- //**console-ramoops**// If experiencing random reboots, the console-ramoops file, found in /sys/fs/pstore might show what's going on.
Additions:
~- //**Other apps/my system are/is misbehaving/crashes**// - A logcat showing the issue will be necessary.
Additions:
~- //**The device doesn't boot/bootloops**// - A logcat during boot (either through ADB or a boot script) is the only thing that really could show what's going on. A Magisk log might be good for complementary information.
Deletions:
Additions:
~- **//Logs!//** A bug report or a report about some kind of issue that is not accompanied by logs will likely be ignored. __Always provide logs!__ And when providing logs, do **NOT** paste them into your post. Attach as a file or upload the file somewhere and provide the link. If you can't provide logs for some reason, at least try to give detailed instructions on how to reliably reproduce the issue.
==**But what if I can't get logs?**==
Most of the time you can get some kind of log showing what is going on. Keep reading below to see what tools you have at your disposal.
But, if you really cannot get hold of any logs at least try to give as detailed instructions as possible on how to reliably reproduce the issue.
==**But what if I can't get logs?**==
Most of the time you can get some kind of log showing what is going on. Keep reading below to see what tools you have at your disposal.
But, if you really cannot get hold of any logs at least try to give as detailed instructions as possible on how to reliably reproduce the issue.
Deletions:
Additions:
==**Which log?**==
==**Get the log**==
Could also mean it's faulty somehow. Try grabbing a logcat and see what happens //(see above)//.
==**Get the log**==
Could also mean it's faulty somehow. Try grabbing a logcat and see what happens //(see above)//.
Deletions:
Could also mean it's fully somehow. Try grabbing a logcat and see what happens //(see above)//.
Additions:
**Relevant logs include:**
Deletions:
Additions:
Certain issues require different kinds of logs. Here's a list of examples (see further down for details on how to acquire the logs in question):
~- //**Installation of Magisk or modules fail**// - If installing from recovery, you'll need the //recovery log// and if installing from the Manager you need to save the installation log.
~- //**Magisk/modules/MagiskHide isn't working as it should**// - The Magisk log should as a rule always be included whenever there are issues with Magisk core features. Some modules provide their own logging for if there are issues (see the specific modules thread/documentation).
~- //**The Magisk Manager crashes**// - A logcat when the crash occurs will be necessary.
~- //**The device doesn't boot/bootloops**// - The Magisk log and a logcat during boot (either through ADB or a boot script) might show what's going on.
~- //**The device randomly reboots**// - After the reboot, grab the console-ramoops.
~- //**Etc...**//
~- //**Installation of Magisk or modules fail**// - If installing from recovery, you'll need the //recovery log// and if installing from the Manager you need to save the installation log.
~- //**Magisk/modules/MagiskHide isn't working as it should**// - The Magisk log should as a rule always be included whenever there are issues with Magisk core features. Some modules provide their own logging for if there are issues (see the specific modules thread/documentation).
~- //**The Magisk Manager crashes**// - A logcat when the crash occurs will be necessary.
~- //**The device doesn't boot/bootloops**// - The Magisk log and a logcat during boot (either through ADB or a boot script) might show what's going on.
~- //**The device randomly reboots**// - After the reboot, grab the console-ramoops.
~- //**Etc...**//
Deletions:
Additions:
~- //**Recovery log**// from installation (in TWRP, go to Advanced - Copy log). If you experience errors when installing Magisk or modules through recovery. **Note that this log HAS to be saved right after you've done whatever you're trying to save a log of. If you reboot inbetween there is a good chance that the info will be lost.** The log might still be found in /cache/recovery after rebooting, but any subsequent reboots to recovery will overwrite the relevant information.
Deletions:
Additions:
~- //**console-ramoops**// If experiencing random reboots, the console-ramoops file, found in /sys/fs/pstore might show what's going on.
Additions:
~- //**Module log**// Sometimes modules have their own set of logs that might be useful when troubleshooting issues with a particular module. See the module documentation for details.
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11). Tip: press the "Grab" button below the code block to download a file ready to be renamed and placed in post-fs-data.d.%%#!/system/bin/sh
Deletions:
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody and @jcmm11):%%#!/system/bin/sh
{
rm -f /cache/bootlog_last.log
[ -e /cache/bootlog.log ]&&mv /cache/bootlog.log /cache/bootlog_last.log
logcat -f /cache/bootlog.log &
sleep 30
kill %1
exit
} &%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
{
rm -f /cache/bootlog_last.log
[ -e /cache/bootlog.log ]&&mv /cache/bootlog.log /cache/bootlog_last.log
logcat -f /cache/bootlog.log &
sleep 30
kill %1
exit
} &%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. The first 30 seconds will be saved, but of this isn't enough you can adjust the sleep time in the script to fit your needs.
Deletions:
rm -f /cache/bootlog.last_log
mv /cache/bootlog.log /cache/bootlog.last_log
logcat -f /cache/bootlog.log%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. Make sure to remove this script and reboot as soon as you're done or it might fill up your /cache partition.
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason, or if you're experiencing other boot related issues. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody):%%#!/system/bin/sh
Deletions:
Additions:
~- //**Logcat boot script**//. This is useful if your device won't boot for some reason. The script might even work when ADB logcat doesn't (since ADB won't work until later in the boot process). Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody):%%#!/system/bin/sh
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]], an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] or a logcat bootscript (see below). It might be a good idea to start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]], an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] or a logcat bootscript (see below). Always start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
~- //**Logcat boot script**//. Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody):%%#!/system/bin/sh
rm -f /cache/bootlog.last_log
mv /cache/bootlog.log /cache/bootlog.last_log
logcat -f /cache/bootlog.log%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. Make sure to remove this script and reboot as soon as you're done or it might fill up your /cache partition.
~- //**Logcat boot script**//. Place a file (doesn't matter what you name it) in /data/adb/post-fs-data.d, give it execution permission and put this in it (thank you @jenslody):%%#!/system/bin/sh
rm -f /cache/bootlog.last_log
mv /cache/bootlog.log /cache/bootlog.last_log
logcat -f /cache/bootlog.log%%This will save a logcat to /cache/bootlog.log as soon as possible during boot and you won't need a PC or other device to run ADB from. Make sure to remove this script and reboot as soon as you're done or it might fill up your /cache partition.
Deletions:
Additions:
~- **//Detailed description//** of the issue and what you've tried so far, what has worked and what hasn't (as an example, did you [[https://www.didgeridoohan.com/magisk/MagiskHide#hn_Hiding_root_from_apps | test MagiskHide]]?).
Deletions:
Additions:
Could also mean it's fully somehow. Try grabbing a logcat and see what happens //(see above)//.
Additions:
~- //**Recovery log**// from installation (in TWRP, go to Advanced - Copy log). If you experience errors when installing Magisk or modules through recovery. **Note that this log HAS to be saved right after you've done whatever you're trying to save a log of. If you reboot inbetween, the info will be lost.**
Deletions:
Additions:
~- //**Magisk log**// save from the Manager or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below. **Note that when reporting about issues and bugs it is required to use verbose logging (//see "Verbose logging" below//).**
Deletions:
Additions:
==**Verbose logging**==
When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, it is required to use the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]] and the verbose logging.**
When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, it is required to use the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]] and the verbose logging.**
Deletions:
Additions:
When reporting a bug, make sure you have the latest [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]] installed on your device. Otherwise any bug you're reporting may already be fixed upstream. It will also have much more detailed logging enabled (see below).
Deletions:
Additions:
~- //**Magisk log**// save from the Manager or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below. **Note that when reporting about issues and bugs it is required to use verbose logging (see below).**
Deletions:
Additions:
~**Relevant logs include:**
Deletions:
Additions:
~- //**Magisk log**// save from the Manager or in /cache (or /data/cache on A/B devices) through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below.
Deletions:
Additions:
~- **//Logs!//** A bug report or a report about some kind of issue that is not accompanied by logs will likely be ignored. __Always provide logs!__ And when providing logs, do **NOT** paste them into your post. Attach as a file or upload the file somewhere and provide the link.
Deletions:
Additions:
~- //**Verbose logging**// When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, it is required to use the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge debug build]] and the verbose logging.**
Deletions:
Additions:
~- //**Verbose logging**// When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. **When reporting about Magisk bugs, it is required to use the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]] and the verbose logging.**
Deletions:
Additions:
~- //**Verbose logging**// When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above. When reporting about Magisk bugs, this is required.
Deletions:
Additions:
===**Reporting a bug**===
When reporting a bug, make sure you have the latest [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]] installed on your device. Otherwise any bug you're reporting may already be fixed upstream. It will also have much more detailed logging enabled (see below).
~- //**Verbose logging**// When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above.
When reporting a bug, make sure you have the latest [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]] installed on your device. Otherwise any bug you're reporting may already be fixed upstream. It will also have much more detailed logging enabled (see below).
~- //**Verbose logging**// When reporting about issues and bugs, it's useful to have more verbose logging. To get the most information possible, make sure to install the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. The log is then saved just as the normal Magisk log, described above.
Deletions:
Additions:
~- //**Verbose logging**// Sometimes it's useful to have more verbose logging. If the //Magisk log// isn't showing anything useful, you could consider installing the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. Just consider that it is a bleeding edge build and may be quite unstable. //Only install of you know what you're doing!// If you have the Canary build installed, the log is saved just as the normal Magisk log, described above.
If you're here because MagiskHide, ""SafetyNet"", Google Pay, etc, isn't working. This is why... Android logging need to be enabled for MagiskHide to work //(also see [[MagiskHideBasics | "Requirements"]])//.
If you're here because MagiskHide, ""SafetyNet"", Google Pay, etc, isn't working. This is why... Android logging need to be enabled for MagiskHide to work //(also see [[MagiskHideBasics | "Requirements"]])//.
Deletions:
If you're here because MagiskHide, SafetyNet, Google Pay, etc, isn't working. This is why... Android logging need to be enabled for MagiskHide to work //(also see [[MagiskHideBasics | "Requirements"]])//.
Additions:
~- //**Magisk log**// save from the Manager or in /cache through recovery if you don't have root access. If the log is empty, see //"The Magisk log is empty"// below.
~- //**Verbose logging**// Sometimes it's useful to have more verbose logging. If the //Magisk log// isn't showing anything useful, you could consider installing the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. Just consider that it is a bleeding edge build and may be quite unstable. //Only install of you know what you're doing!//
~- //**Verbose logging**// Sometimes it's useful to have more verbose logging. If the //Magisk log// isn't showing anything useful, you could consider installing the [[https://forum.xda-developers.com/apps/magisk/dev-magisk-canary-channel-bleeding-edge-t3839337 | Canary bleeding edge build]]. It has debug logging active and will show much more useful information. Just consider that it is a bleeding edge build and may be quite unstable. //Only install of you know what you're doing!//
Deletions:
Additions:
~- //**Magisk log**// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version, so if you're having issues it might be a good idea to switch to the beta channel to get better logs.
Deletions:
~- //**Magisk debug log**//. //Not available since Magisk beta v16.6. Use the Magisk log.// If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. If you currently can't access/data/adb, because of root loss, etc, you can boot to a custom recovery (i.e. TWRP) and access it from there. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
Additions:
~- //**Magisk debug log**//. //Not available since Magisk beta v16.6. Use the Magisk log.// If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. If you currently can't access/data/adb, because of root loss, etc, you can boot to a custom recovery (i.e. TWRP) and access it from there. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
Deletions:
Additions:
~- //**Magisk debug log**//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. If you currently can't access/data/adb, because of root loss, etc, you can boot to a custom recovery (i.e. TWRP) and access it from there. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] (always start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app). Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. **If you can't get root access** it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Deletions:
Additions:
~- **//Logs!//** And when providing logs, do **NOT** paste them into your post. Attach as a file or upload the file somewhere and provide the link.
Deletions:
Additions:
~- //**Recovery log**// from installation (in TWRP, go to Advanced - Copy log). If you experience errors when installing Magisk or modules through recovery. **Note that this log HAS to be saved right after you've done whatever you're trying to save a log of. If you reboot inbetween, the info will likely get lost.**
Deletions:
Additions:
If you're here because MagiskHide, SafetyNet, Google Pay, etc, isn't working. This is why... Android logging need to be enabled for MagiskHide to work //(also see [[MagiskHideBasics | "Requirements"]])//.
Deletions:
Additions:
If you're here because MagiskHide, SafetyNet, Google Pay, etc, isn't working. This is why... Android logging need to be enabled for MagiskHide to work //(also see [MagiskHideBasics | "Requirements"]])//.
Additions:
If your Magisk log is empty, it's likely that you have Android logging disabled. Try enabling it.
Deletions:
Additions:
~- **//Logs!//** And when providing logs, do **NOT** paste them into your post. Attach as a file, upload the file somewhere (or use a service like [[https://pastebin.com/ | Pastebin]] or [[https://hastebin.com | hastebin]]) and provide the link.
Deletions:
Additions:
~- **//Logs!//** And when providing logs, do NOT paste them into your post. Attach as a file, upload the file somewhere (or use a service like [[https://pastebin.com/ | Pastebin]] or [[https://hastebin.com | hastebin]]) and provide the link.
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]] (always start by clearing the log so you don't end up with a lot of useless info before whatever you're trying to catch; "logcat -c" with ADB and there's usually an option for it in the app). Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. If you can't get root access it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Deletions:
Additions:
It might also be that your kernel/ROM wipes the /cache directory during boot, thus removing the log. See [[https://forum.xda-developers.com/showpost.php?p=73230207&postcount=17612 | here]] for details.
Deletions:
Additions:
If your Magisk log is empty, it's likely that you have logging disabled. Try enabling it.
It might also be that your kernel/ROM wipes the /cache directory during boot and thus removing the log. See [[https://forum.xda-developers.com/showpost.php?p=73230207&postcount=17612 | here]] for details.
It might also be that your kernel/ROM wipes the /cache directory during boot and thus removing the log. See [[https://forum.xda-developers.com/showpost.php?p=73230207&postcount=17612 | here]] for details.
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. If you can't get root access it's easiest to hook up your device to a computer and use ADB. If your device isn't booting, it might be possible to grab a logcat during boot with ADB.
Deletions:
Additions:
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues. If you can't get root access it's easiest to hook up your device to a computer and use ADB.
Deletions:
Additions:
~- **//Detailed description//** of the issue and what you've tried so far.
~- **//Details//** about your device, Android version, ROM, custom kernel, mods, etc.
~- **//Logs!//** And when providing logs, do NOT paste them into your post. Attach as a file or use a service like [[https://pastebin.com/ | Pastebin]] or [[https://hastebin.com | hastebin]] and provide the link.
~- //**Recovery log**// from installation (in TWRP, go to Advanced - Copy log). If you experience errors when installing Magisk or modules through recovery.
~- //**Installation log**// from the Manager (press "Save log" after installing Magisk or a module). If you experience errors when installing Magisk or modules in the Manager.
~- //**Magisk log**// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- //**Magisk debug log**//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues.
~- **//Details//** about your device, Android version, ROM, custom kernel, mods, etc.
~- **//Logs!//** And when providing logs, do NOT paste them into your post. Attach as a file or use a service like [[https://pastebin.com/ | Pastebin]] or [[https://hastebin.com | hastebin]] and provide the link.
~- //**Recovery log**// from installation (in TWRP, go to Advanced - Copy log). If you experience errors when installing Magisk or modules through recovery.
~- //**Installation log**// from the Manager (press "Save log" after installing Magisk or a module). If you experience errors when installing Magisk or modules in the Manager.
~- //**Magisk log**// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- //**Magisk debug log**//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
~- //**Logcat**//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues.
Deletions:
~- Details about your device, Android version, ROM, custom kernel, mods, etc.
~- Current and previous root solution (and what you've done to remove it, if applicable)
~- Logs! And when providing logs, do NOT paste them into your post. Attach as a file or use a service like [[https://pastebin.com/ | Pastebin]] or [[https://hastebin.com | hastebin]] and provide the link.
~- //Recovery log// from installation (in TWRP, go to Advanced - Copy log).
~- //Installation log// from the Manager (press "Save log" after installing Magisk or a module).
~- //Magisk log// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- //Magisk debug log//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
~- //Logcat//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues.
Additions:
~- //Recovery log// from installation (in TWRP, go to Advanced - Copy log).
~- //Installation log// from the Manager (press "Save log" after installing Magisk or a module).
~- //Magisk log// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- //Magisk debug log//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
~- //Logcat//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues.
~- //Installation log// from the Manager (press "Save log" after installing Magisk or a module).
~- //Magisk log// (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- //Magisk debug log//. If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
~- //Logcat//. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log. Also immensely useful if the Manager is crashing or having other issues.
Deletions:
~- Installation log from the Manager (press "Save log" after installing Magisk or a module).
~- Magisk log (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- Logcat. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log.
~- If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
Additions:
===**Asking for help**===
===**Logs**===
~**Relevant logs may include:**
~- Recovery log from installation (in TWRP, go to Advanced - Copy log).
~- Installation log from the Manager (press "Save log" after installing Magisk or a module).
~- Magisk log (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- Logcat. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log.
~- If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
===**Logs**===
~**Relevant logs may include:**
~- Recovery log from installation (in TWRP, go to Advanced - Copy log).
~- Installation log from the Manager (press "Save log" after installing Magisk or a module).
~- Magisk log (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~- Logcat. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log.
~- If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.
Deletions:
~~- Recovery log from installation (in TWRP, go to Advanced - Copy log).
~~- Installation log from the Manager (press "Save log" after installing Magisk or a module).
~~- Magisk log (from the Manager or in /cache through recovery if you don't have root access). If the log is empty, see //"The Magisk log is empty"// below.
~~- Logcat. Grab it via [[https://forum.xda-developers.com/showthread.php?t=1726238 | ADB]] or an [[https://www.xda-developers.com/guide-sending-a-logcat-to-help-debug-your-favorite-app/ | app]]. Useful when other parts of the system are aren't working properly or if it's something that doesn't show up in the Magisk log.
~~- If you’re having issues with Magisk, please install the [[https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589 | latest beta]]. It has more verbose logging and a magisk_debug.log will be saved in /data/adb. There’s always a beta version of the current Magisk release available, the only difference between the releases being the more verbose logging in the beta version.