yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] szg0000:
My phone is in boot animation stuck. I need to debug, why stucked in boot animation, so I need to see the booting kernel messages.

My phone is not booting, I can't install the Liveboot apk file. I have working AROMA fm file manager, I can copy files from SD card to the phone.

Is it possible to install Liveboot from CWM somehow? Or with file copy?
[Android Apps and Games] Adromir:
Does your PC recognize your Phone? Then connect it via USB and get a logcat via "adb logcat"
[Android Apps and Games] EAPOCS:
This app is ruining my phone.

The startup doesn't end, stuff keeps scrolling over the screen. I thought it would take a bit longer, but after 5 minutes my phone started to heat up.

I can boot TRWP recovery, what files do I need to delete to stop the ****ty neverending boot animation?
[Android Apps and Games] skyline72:
Yet another wonderful stuff from you!
[Android Apps and Games] pkelly517:
Google is your friend.
[Android Apps and Games] Didgeridoohan:
It's written in the OP...
[Android Apps and Games] tqf:
After updating the SU binaries I have issues with this app, I think.

After reboot, the home screen doesn't show up anymore. If I press any hardware buttons on the device I see the log updating on the screen. Have removed the apk file from /data/app/... and the script from /system/su.d/ using recovery (TWRP). The boot animation changes to the default one but now it's stuck. The home screen doesn't show up. I have access to adb, though.

Before this update of the SU binaries everything was OK.

I tried wipe Dalvik and cache in recovery and still no luck.

My device: HTC m7 802w, stock ROM (5.0.2), rooted using SuperSU and I have xposed installed as well.

Any ideas how to fix this? I am mentally preparing for a factory reset, but wish to make sure I tried all solutions before doing that. :)
[Android Apps and Games] kgr:
Has anyone had any luck getting LiveBoot to run with Magisk?

*Edit: got it working... details here if anyone needs: https://xdaforums.com/showpost.php?p=72524061&postcount=14220
[Android Apps and Games] DeadlyByNite:
Actually the init.d module for Magisk isn't needed at all. (As long as your device has init.d support) The reason I believe that it doesn't work properly without SuperSU is because SuperSU puts the script in it's own su.d folder (just like Magisk's post-fs-data.d) and SuperSU starts at boot, and runs the script as soon as it finds it. Magisk's root doesn't start until after the boot process, or towards the end of it, but I think MagiskSU is really irrelevant here.

Liveboot puts the script in the init.d folder if your device supports it, but I don't think that the files there are ran until the end of the boot process, or possibly after on some devices. Correct me if I am wrong. I'm by far the most experienced.

All I did was move the liveboot script from init.d to the post-fs-data.d folder and give it 0700 permission. I don't think 0755 will hurt anything, but all it needs is 0700.
[Android Apps and Games] rignfool:
Doubtful to get a reply but...

[MENTION=631273]Chainfire[/MENTION]

Can I call the script with init.rc with an exec command if I modify the kernel myself?
[Android Apps and Games] Ibuprophen:
A very nice app [MENTION=631273]Chainfire[/MENTION] and thank you for all your hard work with your developments!

***Please Note: As always, I welcome any member to help with further valuable information/clarification for any of my posts.

Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise...
[Android Apps and Games] bigo72:
I was smiling too early: it didn't worked for me, mate. I moved the script from /etc/init.d to /magisk/.core/post-fs-data.d

Using a root file explorer (FX, to be precise), permissions were already 0700. I really don't know what to do to make it works.
[Android Apps and Games] DeadlyByNite:
Have you looked at the logs inside Magisk app? For example, mine, without any modules installed, shows it is being executed. I don't even have a system/etc/init.d folder on my device.

** Magisk post-fs mode running...
** Magisk post-fs-data mode running...
* Running post-fs-data.d
post-fs-data.d: /magisk/.core/post-fs-data.d/0000liveboot
* Loading core props
** Magisk late_start service mode running...
* Linking binaries to /sbin
* Starting MagiskSU
* Running service.d
[Android Apps and Games] DeadlyByNite:
I just found this post in the Magisk thread. Maybe it will work for you, or help anyone else having issues with liveboot & Magisk: https://xdaforums.com/showpost.php?p=72608107&postcount=14475
[Android Apps and Games] bigo72:
Thank you very much .... even if it didn't worked, unfortunately.

I got "cannot create symbolic link from '/magisk/.core/post-fs-data.d' to '/system/etc/init.d/post-fs-data.d': read only file system"

And I was SU..... I think I should change /system permissions, but I'm a bit scared
[Android Apps and Games] DeadlyByNite:
No need to change any system permissions. Just change your system to rewritable by simply typing "mount -o remount,rw /system" without the quotes in any terminal emulator app. To make it read-only again, type "mount -o remount,ro /system"

It seems that I've seen someone mention a Magisk module for liveboot somewhere. Maybe try searching XDA for it?
[Android Apps and Games] bigo72:
Didn't worked and I give up.

But thank you very much, you teacher me something that can be useful in the future

EDIT: It worked!!! At the second reboot! And I've no idea why not at the first one. Flashing stuff from decads, I now know that it's better to never ask "why" something works. It's better to just enjoy the result.
[Android Apps and Games] kgr:
Can confirm - init.d Magisk module not needed. I just clean flashed a new ROM (AEX Official) on my OP3. After I flashed the ROM, Magisk, and BusyBox, I moved the LiveBoot script into the post-fs-data.d folder. Permissions seemed to be assigned by system. LiveBoot works, and I still pass SafetyNet :good: :cool:
[Android Apps and Games] ferdossi:
Hi,

I am not able to flash any custom ROM on my I9505 which is currently runnig on a Stock ROM 5.0.1, it get stucked on the animation logo.

So I wanted to try this app to see what happens during this animation logo that makes the phone stucked.

So let's say I install this app , then I boot into recovery and flash the custom ROM after doing a factory reset. So after this, will this app be of any use? if not what should I do to get logs during this boot animation.
[Android Apps and Games] kapil_dheer:
You should use adb connecting to computer & get required logs.

---------- Post added at 02:29 PM ---------- Previous post was at 02:03 PM ----------

Can somebody attach 0000liveboot.script file. App is not installing the file. System is with magisk.
[Android Apps and Games] raju1987:
How too root in my phone
[Android Apps and Games] pkelly517:
Search
[Android Apps and Games] R1kM@n:
Hi! This app have to be installed in internal storage to work? Or it can be installed in sdcard? Thank
[Android Apps and Games] Viggen66:
I would like to use this app to debug a kernel, problem is that the kernel hangs randomly, and to catch the bug I would need to see what's happening when it crashes, well, as I turn on the Android device, it writes the log it hangs, no way to recover and get that log, as it reboots again and successful boots it will overwrite the previous log, how to fix this?
[Android Apps and Games] whitedavidp:
See this response to my almost identical post.
[Android Apps and Games] Viggen66:
Is of merit of the developer of course, but adding an option to log for consequential files would fix this issue, like for instance log1, log2, log3 or log_30-08-2017_17:34 (log+date+time) no way to overwrite previous logs.
[Android Apps and Games] whitedavidp:
I do not disagree. All I am saying is that there IS a way now to do what you need to do.
[Android Apps and Games] Chainfire:
v1.60 released with Android Oreo compatibility: https://plus.google.com/+Chainfire/posts/CPPzFya5Tsf
[Android Apps and Games] RaZi3L_:
https://xdaforums.com/showpost.php?p=59330030&postcount=269

or

https://xdaforums.com/showpost.php?p=62462438&postcount=310
[Android Apps and Games] RaZi3L_:
hi, i have a problem with my android car radio... In brief: first start hangs device at a determinate point (at launcher load). With a manual reboot the device starts normally. And so on.

My device has a stock recovery and i can not change it (withou losing others funcionalities)

So I need the posibility to rotate logs too. I tried this approach, but while /system/su.d/0000liveboot has the original content:

#!/tmp-mksh/tmp-mksh
/tmp-mksh/tmp-mksh /data/data/eu.chainfire.liveboot/files/liveboot &

the liveboot works like a charm.

When I try to change the script like this:

#!/tmp-mksh/tmp-mksh
logfile="/cache/liveboot.log"
logdir="/sdcard/bootlog"
logfile1="$logdir/liveboot1.log"
logfile2="$logdir/liveboot2.log"
logfile3="$logdir/liveboot3.log"
logfile4="$logdir/liveboot4.log"
logfile5="$logdir/liveboot5.log"
# Create directory on sdcard
if [ ! -d $logdir ]; then
mkdir $logdir
fi
# Rotate logs
if [ -f $logfile4 ]; then
cp $logfile4 $logfile5
fi
if [ -f $logfile3 ]; then
cp $logfile3 $logfile4
fi
if [ -f $logfile2 ]; then
cp $logfile2 $logfile3
fi
if [ -f $logfile1 ]; then
cp $logfile1 $logfile2
fi
if [ -f $logfile ]; then
cp $logfile $logfile1
rm $logfile
fi
/tmp-mksh/tmp-mksh /data/data/eu.chainfire.liveboot/files/liveboot &

liveboot stop working. When i remove the extra lines liveboot works again.

So I will try the second approach.

But with this approach I need help. I have thinked to edit /data/data/eu.chainfir.liveboot/files/liveboot file with this new line at the botton of the script (after the "rm. /dev/.app_process_liveboot" command":

mv /cache/liveboot.log /sdcard/bootlog/lv_$(date +%F-%H:%M).log

But I don't know if "this" works on android.... If that doesn't work, how can I rotate logs?
[Android Apps and Games] EriksR:
For those whom init.d is supported but Liveboot still doesn't run with Magisk, use module Init.d Linker, works for me.
[Android Apps and Games] kgr:
Has anyone had any luck getting LiveBoot to work on a Pixel 2 rooted with Magisk? I can't seem to get the script to install into /system/etc/init.d. Is there a way to change the install location (like directly into magisk/.core/post-fs-data.d)?
[Android Apps and Games] Bryanx86:
Read one up, although it didn't work for me on OGPixel XL.
[Android Apps and Games] kgr:
Yeah I saw that but that's not the issue - I don't think. I can't get the script to install, or at least not in default location.

Edit: even if I create the script manually and place it in init.d and post-fs-data.d it doesn't work. Not even the test run from liveboot app.
[Android Apps and Games] badai:
help.

i am on galaxy S8. the liveboot keep running for hours now and i can't get into my home screen, or restart my phone.
[Android Apps and Games] OptimuSlime:
I just used it successfully on a Note 8, Deknoxed. Trying to figure out how to save / read the logs
[Android Apps and Games] leathan:
Please I will enslave you my first born child for help enabling this app on my pixel 2 xl 8.1.0, or wait, maybe i can try to revert to 8.0.0 :D?

EDIT: I had no luck reverting.
[Android Apps and Games] leathan:
Inside when you click "Test run" I had it working flawlessly! (it didnt work on boot tho)

taimen:/ # /system/bin/sh /data/user_de/0/eu.chainfire.liveboot/files/liveboot &
[1] 4674
taimen:/ # XAPI: ComposerService::getComposerService()
XAPI: SurfaceComposerClient->createSurface26()
XAPI: SurfaceControl->setLayer()
gralloc-mapper must be in passthrough mode
Aborted

The above is an error I get when I just try to run it manually on my phone. I notice that the gralloc-mapper must be in passthrough mode also appeared in the /cache/liveboot.log. (which means it did run on boot that time i ran it in test mode but it failed for the same reason I just posted.

Im going to do some digging into which rom/kernel it was that let me run in test mode, I cannot live without this app, I prefer death.

CarbonROM lets me run the test mode successfully, but it still wont work.

---------- Post added at 08:23 PM ---------- Previous post was at 08:21 PM ----------

I tried manually moving the 0000liveboot script into both post-fs-data.d and server.d with no luck :(
[Android Apps and Games] kgr:
I haven't played around with it too much more on my P2, but I did get it working with the latest Magisk on my OP5 with a custom 8.1 rom.

My P2 is the first phone I've been forced to stay encrypted, and I wonder if that has something to do with it. It seems like the phone doesn't start all the way up or something until you enter your password, decrypting the data. It's always been a breeze to get it working with decrypted roms.
[Android Apps and Games] leathan:
Lucky ducky. I got test mode working again by switching over to CarbonROM. Which means I cant use active edge but its worth it, other than it does not actually work when I reboot :(

---------- Post added at 01:23 AM ---------- Previous post was at 01:18 AM ----------

Lucky ducky :(

I found out that it was CarbonROM where test mode works. and the error I get running it in terminal is

$ su -c '/system/bin/sh /data/user_de/0/eu.chainfire.liveboot/files/liveboot'
XAPI: ComposerService::getComposerService()
XAPI: SurfaceComposerClient->createSurface26()
XAPI: SurfaceControl->setLayer()
Killed

and nothing appears in my /cache, and i tried again to make a script under post-fs-data.d and server.d. both failed :(

---------- Post added at 01:25 AM ---------- Previous post was at 01:23 AM ----------

Test mode works with CarbonROM but still wont work. :(
[Android Apps and Games] kgr:
Yeah I have a Pixel2 and there's no custom roms for it :(
[Android Apps and Games] leathan:
I got it working!!!!! !!!! !! !! !!!

I used CarbonROM + Magisk + Unchecked dm-verify and reinstalled Magisk from phone + Magisk module init.d linker.

I really hope I can get it working on stock though so I can keep active edge.
[Android Apps and Games] kgr:
Are you running encrypted or decrypted?
[Android Apps and Games] leathan:
The first time I did it without encryption (and youtube downloader didnt crash o.O). But anyway I went back and did it again with encryption and it worked. Maybe we just need the dm-verify option unchcked? Atleast thats what Im doing.

I got it working doing exactly as follows:

1.) Revert to stock.

2.) fastboot boot twrp-3.2......img

3.) Install CARBON-ROM-.........zip (from twrp, maybe wipe data/cache)

4.) Install Magisk (while still in twrp)

5.) Reboot

6.) Open Magisk and uncheck the dm-verify options then click install and install directly to the device from Magisk (then reboot).

7.) From Magisk install the module "init.d linker" (then reboot)

7.) Install LiveBoot and click test run (if it works just reboot and it should work).

Big caveat: Installing other Magisk modules seems to break it??? I am sure there is a simple solution for this, but since it does not bother me I doubt ill be the one to find it. But if its bothering you let me know because I have some ideas why adding more modules are breaking liveboot.

For the record I'm only 90% sure of what I'm doing. I bet Chainfire could fix this up correctly in a second. Im very unsure why CARBONrom works but manually linking init.d to magisk fails even with dm-verify off.
[Android Apps and Games] f2bacon:
thank you so much[
[Android Apps and Games] RenaKunisaki:
Got it working on my PH-1 (with LineageOS) by doing (in root shell):

# mount -o remount,rw /system
# mv /etc/init.d/0000liveboot /magisk/.core/post-fs-data.d/
# mount -o remount,ro /system
# reboot

It's not perfect though. It appears a few seconds after the boot animation starts, and floods a ton of messages (I guess everything since boot).
[Android Apps and Games] noidea24:
I love this. I'll have to reset my phone for some reason, so I'll hit reset and put it down.

Someone will walk by and say something close to "hey, what the heck is going on with your phone?"

And I'll respond with "what are you talking about? My phone's fine?" While Trying to waste time, so by the time I get to pick up my phone it's just my lock screen.

Then is hit them with "see it's fine, you must have been seeing things"
[Android Apps and Games] zolyyy:
test run and liveboot not working for me on lineage os 15 oreo. I have non encrypted permissive rom + radon kernel. Lineage os 14 works...
[Android Apps and Games] Aerotinge:
Is there any possible that install the Liveboot by update.zip in recovery?

It's could be useful for debugging a pre-alpha rom, which is unstable, and rom not always boots everytime...
[Android Apps and Games] kurokirasama:
Hello, doesn't work with this lineageos https://xdaforums.com/p8lite/p8-lit...m-lineageos-14-1-huawei-p8-lite-2017-t3649292
[Android Apps and Games] tze_vitamin:
I need a litle help with installing this.. On my Note 3 Lineage 15.1..

Can some one write step by step..
[Android Apps and Games] kgr:
If you are running Magisk you likely need the init.d linker module.

If you get an error when starting LiveBoot saying that there is no init.d support in your rom, install the init.d injector module.

My basic understanding is that the app needs to install completely, and the script installs to the init.d folder (init.d injector). Then the init.d linker makes Magisk see the script so it's gets run on reboot.

As far as step by step?

On a functioning rom:

1) install Magisk

2) install LiveBoot app

2a) if you get errors, install the Magisk modules I mentioned above.
[Android Apps and Games] tze_vitamin:
I have root my phone with SuperSU in recovery.

I will now download magisk manager from play store and follow the step that you wrote to me..

The!
[Android Apps and Games] urbanboymne:
Is this work on Emui 8.0 Android 8.0 Huawei devices?
[Android Apps and Games] Didgeridoohan:
If you have SuperSU v2.40+ it should work out of the box. Just install the LiveBoot app and run it.

Do NOT install a Magisk Manager that you find in the Play Store! They're all fake and will at best do nothing but force you to give it a high rating and show you some ads.
[Android Apps and Games] tze_vitamin:
I root phone with superSU v2.82

When i go to recovery and try to install Magisk.zip,downloaded from xda ,i cant install it.

It says : faild to install .. Something like that..
[Android Apps and Games] eavandijk83:
That's because you're already rooted with SuperSU and your bootimage is patched... Don't flash Magisk, just stick with SuperSU and install/run Liveboot. Why do you want to go with Magisk anyway? SuperSU is rock solid. It doesn't need an update every day because it's really good. (sorry Magisk fans )
[Android Apps and Games] tze_vitamin:
Ok. Thx!

Can you a litlle bit help me and explain me how to install livebot with supersu. How you mean stick with supersu?
[Android Apps and Games] eavandijk83:
You're already rooted with SuperSU right? Only thing left to do is to install LiveBoot from the playstore. Run it once and choose your preferences within the app. Then reboot and watch the magic happen.
[Android Apps and Games] tze_vitamin:
I have install it from play store,give root permission, restart my phone and nothing happend. I cant run test also in app.
[Android Apps and Games] Ferbee:
How did you get it to work?
[Android Apps and Games] OptimuSlime:
Running Fennec Note 8 Rom liveboot was functional. I installed it, chose Freeload option, hit reboot and saw every color of the rainbow in text on boot.

Note:

Note 8 boot image is stock. Running systemless su, so if your Su method is different you may experience different results
[Android Apps and Games] Ferbee:
Yep I got it to work, I'm on magisk and the installation folder for magisk has changed, I just moved a file and got it to work

Thanks
[Android Apps and Games] doctorew:
What file?
[Android Apps and Games] Ferbee:
Okay I don't know if it's any different for a Samsung device but...

Assuming you are on the latest magisk (16+)

Download init.d linker module from the download section

Open Liveboot, customise whatever settings you want

Then navigate to /sbin/.core/img/initdlinker and cut/copy the 0000liveboot file

To

/Sbin/.core/img/.core/postfsdata folder

Reboot

(If you don't plan to modify the Liveboot anymore feel free to uninstall the application and/or uninstall the init.d linker module)

Happy Flashing :D
[Android Apps and Games] ianmacd:
The paths mentioned above aren't quite right.

The exact commands needed are these:

cd /sbin/.core/img/.core/post-fs-data.d
cp -p ../../InitdInjector/system/etc/init.d/0000liveboot .
[Android Apps and Games] Ferbee:
Wait really?

Those paths are correct for me
[Android Apps and Games] christantoan:
They use different modules so the paths are different
[Android Apps and Games] ianmacd:
There is no module called init.d linker in the Downloads section of Magisk Manager.

Regardless, the post-fs-data.d path given in the original posting was also wrong.
[Android Apps and Games] ipdev:
init.d linker was an older module. Might be why the path was different.

The current one is Init.d injector.
[Android Apps and Games] ianmacd:
See this update from Chainfire. It seems that LiveBoot is now officially at end-of-life.
[Android Apps and Games] kgr:
So sad. CF is an awesome dev and was a great contributor to the whole android scene.
[Android Apps and Games] Radnanum:
My LiveBoot show up when testing in mode 5 sec, but wont show up when i press reboot button.

Can u help me? Or somebody here :crying:

MIUI with Magisk + Kernel Adiutor
[Android Apps and Games] ipdev:
You need to copy 0000liveboot to /sbin/.core/img/.core/post-fs-data.d/

Since you are not using SuperSU, 0000liveboot should have been created in /system/etc/init.d/

If you use a file manager to copy the file, make sure the option to view hidden files and root permissions are enabled.
[Android Apps and Games] Radnanum:
Here take my Thanks! :)

And what difference from Format section? Brief, Process, Tag, Thread, Time, and Threadtime

what are u use sir?
[Android Apps and Games] ipdev:
outputFormat

The last time I used it to grab a logcat at boot, I did tweak the settings a little bit.

Outside of that, I just normally leave the default settings. + Dark Background

Keep in mind, if you open the app and change something, it will update the script in init.d So after any changes, you will need to copy the updated 0000liveboot from init.d to post-fs-data.d

Cheers :)
[Android Apps and Games] ianmacd:
For some reason, this tip doesn't work on a Galaxy Tab S3 running Oreo. It works perfectly on my S9+ phone, however. I'll have to investigate why when I have a bit more time.

Which file manager is that in your screen shot, by the way? I like how it displays file permissions.
[Android Apps and Games] Didgeridoohan:
That looks like the very nice FX File Explorer by [MENTION=2954544]tliebeck[/MENTION]. Well worth getting...
[Android Apps and Games] ipdev:
That it is.
[Android Apps and Games] Radnanum:
:o so nice to meet you sirrr, thanksss! :highfive:
[Android Apps and Games] ianmacd:
I've been a happy Solid Explorer user for a few years now, but I've downloaded FX now to try it out, and, I must say, I do like the way it displays a lot of the metadata by default without the need to tap through a lot of submenus. This app may well need to be rewarded with a purchase.

Thanks for identifying it for me. I don't know why I hadn't tried it until now; it's not exactly new.
[Android Apps and Games] ianmacd:
I must have rebooted my Tab S3 50 times since writing the above, and lo and behold, liveboot just randomly ran properly for the first time ever under Magisk.

It appears there is some big race condition in Magisk somewhere, which means that the liveboot script almost never runs in time to have any effect. As previously stated, the same trick works perfectly on my phone, and both devices have exactly the same build of Magisk, so whatever difference there is, it's a subtle one.
[Android Apps and Games] vi.rus.08:
Good day! Please tell me how to disable Logcat? How to go back to the factory screensaver?
[Android Apps and Games] ipdev:
Post-445

Note:

If you are not using SuperSU or a rooted device with init.d, and manually moved the script file, you will have to manually delete it.