[APP][5.0+][ROOT][2020.12.21] LiveBoot (Logcat/Dmesg Boot Animation) v1.84

Search This thread

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,691
www.chainfire.eu
[APP][5.0+][ROOT][2020.12.21] LiveBoot (Logcat/Dmesg Boot Animation) v1.84

Que ?


LiveBoot is a boot animation that shows you logcat and dmesg outputs on-screen as they happen. Output configuration includes logcat level, buffer and format selection; whether to show dmesg; the amount of lines that should fit on your screen, whether word-wrap should be employed, and if output should be color-coded. Additionally the background can be set to transparent to overlay the existing boot animation, which looks awesome during boot.

A feature is built-in to test your current configuration without rebooting. The lines shown in test mode may be limited and relatively static, this does not reflect exact boot time behavior as much as it just shows you that it works and how big the text will be.

Note that LiveBoot will only show up after the data partition is mounted. If you need to enter a decryption key or pattern at boot, it will not show up until you have done so.

Root

This app does not only require root, it requires specifically SuperSU version 2.40 or newer, or a recent Magisk, due to how the boot-time code is launched. Alternatively, the app will try to function for otherwise rooted firmwares that support init.d, but this is not officially supported and it cannot be guaranteed to work.

Compatibility

Officially the app supports 5.0+ and newer. Regardless of version, the app may work on your device or it may not. I've gotten it to work on a bunch of my own devices on various firmwares, but not on all. Even if the test run functionality works, this does not necessarily mean it will actually work during boot. It usually does, but not always.

This does indeed also mean I cannot guarantee continued operation - even if it works for you today, it may fail your next firmware update. If that is an issue for you, then you should definitely not update to Pro.

The risk of bootloops is extremely low, but not completely non-existent. Should a bootloop occur, removing either the app's APK or /system/su.d/0000liveboot through recovery should fix the problem.

Unless you are using SuperSU in system-less mode, the app writes to /system, as such your firmware must allow this. There is no recovery-based install option at this time.

Pro

There's an in-app purchase to upgrade to Pro, which supports my developments, and unlocks the transparency option as well as logcat buffer and format selection.

Of course, if you have one of the paid variants of the old live logcat or live dmesg boot animations from all those years ago installed, this will also enable Pro mode.

Like some of my other apps these days, if you don't have Google Play but still managed to install the APK, this will also enable Pro mode.

Last but not least, if you simply don't want to pay for it, there's also a button to enable Pro mode (the 'freeload' option)

Script

If /system/su.d/0000liveboot.script or /su/su.d/0000liveboot.script or /sbin/supersu/su.d/0000liveboot.script exists (chmod 0644, not 0700 like other files in /system/su.d/ or /su/su.d/ !), this script will be run instead of logcat and dmesg, and its output will be shown in white (stdout) and red (stderr).

Download

Google Play

or see attachment below

Screenshots
(1.14: 7646; 1.20: 5826; 1.30: 3999; 1.40: 1512; 1.50: 16710; 1.60: 25034; 1.70: 9446; 1.81: 2564, 1.83: 23762)
 

Attachments

  • screenshot-nexus9-app-1.png
    screenshot-nexus9-app-1.png
    115.8 KB · Views: 81,838
  • screenshot-nexus9-live-1.jpg
    screenshot-nexus9-live-1.jpg
    260.6 KB · Views: 82,770
  • LiveBoot-v1.84-20201221231212.apk
    220.6 KB · Views: 538
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,691
www.chainfire.eu

Why ?

I always liked the old logcat and dmesg boot animations on 2.x. Unfortunately the code doesn't port well to newer Android versions. They were starting to cause more issues for users than they were provide coolness, so I pulled them from Play (together with a number of other apps) some time ago.

While working on the next generation of Mobile ODIN, I've started using some techniques that I realized could be used to bring this back. Aside from being as cool as it is, this app actually serves as a testbed for these techniques.

Tech

The code is launched by a daemonsu bootscript immediately after /data is available. It then pulls an overlay surface from SurfaceFlinger through native code. It proceeds by running Java code that spins threads that catch logcat / dmesg / script output with libsuperuser. That output is then rendered by the Java code with OpenGL to the surface and shown on-screen.
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,691
www.chainfire.eu
SAUCE AVAILABE AT GITHUB - https://github.com/Chainfire/liveboot

Changelogs

2020-12-21 - v1.84

- Android 11
- Removed links to Google Plus (hehe)
- (c) 2020

2019-12-31 - v1.83
- Android 10

2019-03-13 - v1.81
- (c) 2019
- Fix script reinstalling every launch
- Fix display not working on some Pie ROMs
- Fix test run not working on some devices

2019-01-06 - v1.80
- Magisk: support /data/adb paths
- Magisk: delay startup if /data not available
- Fix script uninstall not working
- Use librootjava's Daemon mode

2018.11.16 - v1.70
- Android 9.0 Pie support
- Improved 64-bit support
- Fix files dir not existing automagically
- Migrated libcfsurface from C hijacks to Java reflection as much as possible (4.2 --> 5.0 minimum support)
- Magisk support
- Adaptive icon
- Updated compile and target API levels
- (C) 2018

2017-09-11 - v1.60
- Add compatibility with Android Oreo
- Add compatibility with SuperSU in SBIN mode
- Fix toolbox/toybox detection on 64-bit, could cause animation to keep running

2016-12-20 - v1.50
- [email protected]: stop animation when Android is up
- (C) 2017

2016-10.30 - v1.40
- Android N 7.1 file-based-encryption support

2016-05-19 - v1.30
- Android N Preview 3 support

2015-10-30 - v1.20
- Android 6.0 support

2015-01-03 - v1.14
- Force remove old boot scripts before placing new one
- Added another watchdog to prevent the animation from never quitting
- (C) 2015
- Note: some devices need SuperSU v2.42 or newer to work

2014-12-21 - v1.13 - BETA
- Use alternative shell if default not available (fx HTC One m7, m8)
- Workaround b/7188322 hack (fx Shield Tablet)
- Fixed minor script issues

2014-12-20 - v1.12
- ProGuard (reduce APK size)

2014.12.20 - v1.11 - BETA
- Added option to disable logcat color coding
- Another possible fix for premature exit

2014.12.20 - v1.10 - BETA - RELEASE NOTES
- Possible fix for only showing for two seconds during boot on some devices
- Fixed some typos
- Made logcat buffers configurable (pro)
- Made logcat format configurable (pro)
- Made word wrap configurable
- Added option to darken the background
- Added option to save logs
- Added reboot option

- Added capability to use init.d if not using SuperSU, but this is not officially supported. It might make the app work on more firmwares, but it should be noted that init.d behavior differs between firmwares, and unlike su.d provided by SuperSU, no guarantees are made as to the state of the /data partition or SELinux policies when init.d scripts execute. Therefor it is impossible to officially support - it might work, it might not, and this will differ between firmwares.

2014.12.18 - v1.05
- Fixed number of lines being interpreted as hexadecimal
- Fixed various load and display issues on 4.3 and 4.4

2014.12.17 - v1.00
- Initial release
 
Last edited:

bombadier

Senior Member
Jul 3, 2010
3,530
3,358
The Burgh
Have just installed on my Nexus 4 android 4.4.4 supersu 2.40 and I cannot get it to run, when I reboot the device I get my normal boot animation,also I do have a pro licence for the old livelogcat but do not have it installed,how to get the app to recognise pro features?
Will try and install again and see if that helps getting it to run

Update: installed again and the app asks to install the script,seems successful but again on reboot no live logcat
 
Last edited:

Chainfire

Moderator Emeritus / Senior Recognized Developer -
Oct 2, 2007
11,441
87,691
www.chainfire.eu
Quite likely SELinux interfering.

Does the "test run" do anything? If not, get me logs, if it does, get me the log but immediately after boot:

Code:
adb wait-for-device
adb shell su -c logcat -d > logcat.txt
adb shell su -c dmesg > dmesg.txt
adb shell su -c cat /data/misc/audit/audit.log > audit.txt

Attach those three files. Those may shed some light on the issue. Unfortunately, often the information I need has already left the logcat and dmesg buffers before your PC can pull them. There's actually a lot more chance of this working on 4.3 and 5.0 than 4.4. Fixing this for 4.4 - especially for device which have 5.0 available - is not a high priority for me.

As for the paid version of the old, it should still be possible to pull them from Play somehow if you've paid for it in the past. Or so they say, I can't test this myself since all my own purchases automatically get refunded after a month because I'm the account owner. Perhaps under "My Apps" somewhere?
 

bombadier

Senior Member
Jul 3, 2010
3,530
3,358
The Burgh
@Chainfire
See the 3 logs (audit.txt outputed an error: tmp-mksh: cat: /data/misc/audit/audit.log: No such file or directory)
https://drive.google.com/folderview?id=0B4M1eQ8oIVUoTndzZDJwUk4xajg&usp=sharing

About the pro thing, I thought you had pulled it from the playstore as when I searched for it I couldn't find it,followed the link in the xda thread and found it so thats that sorted thanks,hope there is something useful in the logs cheers
Oh yeah test run works
Just tried setting SELinux to permissive and no joy
 
Last edited:
  • Like
Reactions: longtinhpro

Troubadour666

Recognized Contributor
Aug 3, 2012
3,140
7,035
43.7031 - 7.2661
work on I9100 with OMNI LP 5.0.2

Hi,
tried on I9100 , Omni Rom 4.4, DorimanX kernel.

"test run" not working here. script is installed on /system/ like you said but with 0700, i change to 0644 to try too but no success.

i have tmp-mksh: cat: /data/misc/audit/audit.log: No such file or directory error too

other logs :
https://drive.google.com/folderview?id=0Bw4xquvHPdi_WU1WQnQ3Z285Ums&usp=sharing

(i used putty instead of adb to get logs)
thanks.


hi,
10 days after, little review with LiveBoot working on S2 I9100 with OmniRom 5.0 HOMEMADE from @asimovi and Apolo kernel from @pedestre :)
ROM : http://forum.xda-developers.com/galaxy-s2/development-derivatives/wip-omni-5-0-homemade-t2948401


thanks @Chainfire
 
Last edited:

rub1k

Senior Member
Nov 6, 2008
130
29
Thanks, this is neat!

This is nitpicking but there's a minor typo on first run (after granting su access prompt)... the pop-up box warning of installing/updating a script on the system partition read something like "in on system" (an extra in/on there)... sorry, didn't take a screenshot but I'm sure you'll know what I"m talking about. :p
 
  • Like
Reactions: Chainfire

L.F.B.

Senior Member
Feb 29, 2012
824
357
Is nice to get back live boot and old live dmesg. Used in my ond gti9100... Ive bought the old app and I bought this! For sure!

This is for the full geekgasm! ;)

Master Chaifire deserves all! Thanks for bring back this! :)

Edit: working good in my N5 4.4.4 and my N7 with LP 5.0.1

Just didnt try in my i9505 cause is CM11... Already have a built in super user...:-\ Any way to use this in Cyanogenmod master Chainfire. :p
 
Last edited:

omniwolf

Senior Member
Jan 13, 2005
997
471
sydney
HTC One M8

Hi CF, thanks for another cool app.
I tried it on my HTC One M8 (Sense 4.4.4), the first time i click the Test run option, i get a >1 second display of some stuff that looks like dmesg/logcat stuff, and then it quits back to the LiveBoot screen. All subsequent attempts to press the Test run button result in a >1 second grey screen with no dmesg or logcat or any text on it.
If i reboot the phone, soon after the bootloader i get the grey screen flash up momentarily, and then the standard boot animation takes over.

I discovered that if i disable all Logcat levels then the Test run button will work properly - i'll get the full 5 seconds of grey screen. This works whether or not i tick Dmesg (but obviously if Dmesg is unticked, then the grey screen is all i get, if it's ticked then i get some stuff scrolling up the screen during the test).

If i reboot with logcat disabled and dmesg enabled, then i get about 4-5 seconds worth of greyscreen with dmsg showing, before the standard boot animation seems to override it. I'm not sure if this is expected behaviour or it should last longer, but just thought i would report my findings.

Cheers.
 

AntaresOne

Recognized Developer
Sep 30, 2013
2,205
17,621
27
Chieti, Italy
www.antaresone.eu
@Chainfire

Tested on S4 I9505 with my CM12 unofficial builds & GPE 5.0, both with SuperSU 2.40 flashed from recovery.

Script in su.d is installed and files in data/data/appname are present, test runs fine showing the log but if you reboot/shutdown live log isn't showed

SELinux in cmdline is set to permissive, even checked folder/script permissions, no luck

Inviato dal mio GT-I9505
 

scottx .

Senior Member
As always, great work. Looks and runs great on Nexus 5, SlimLP (5.0.1)

I deleted the /system/media/bootanimation.zip and set transparent on. So the default 'android' shows. Looks great. Like it should be from Google.

Unix always showed this so you could debug boot sequences, etc and IMO Android should also.

Sent from my Nexus 5 using Tapatalk
 
  • Like
Reactions: arop

Top Liked Posts

  • There are no posts matching your filters.
  • 315
    [APP][5.0+][ROOT][2020.12.21] LiveBoot (Logcat/Dmesg Boot Animation) v1.84

    Que ?


    LiveBoot is a boot animation that shows you logcat and dmesg outputs on-screen as they happen. Output configuration includes logcat level, buffer and format selection; whether to show dmesg; the amount of lines that should fit on your screen, whether word-wrap should be employed, and if output should be color-coded. Additionally the background can be set to transparent to overlay the existing boot animation, which looks awesome during boot.

    A feature is built-in to test your current configuration without rebooting. The lines shown in test mode may be limited and relatively static, this does not reflect exact boot time behavior as much as it just shows you that it works and how big the text will be.

    Note that LiveBoot will only show up after the data partition is mounted. If you need to enter a decryption key or pattern at boot, it will not show up until you have done so.

    Root

    This app does not only require root, it requires specifically SuperSU version 2.40 or newer, or a recent Magisk, due to how the boot-time code is launched. Alternatively, the app will try to function for otherwise rooted firmwares that support init.d, but this is not officially supported and it cannot be guaranteed to work.

    Compatibility

    Officially the app supports 5.0+ and newer. Regardless of version, the app may work on your device or it may not. I've gotten it to work on a bunch of my own devices on various firmwares, but not on all. Even if the test run functionality works, this does not necessarily mean it will actually work during boot. It usually does, but not always.

    This does indeed also mean I cannot guarantee continued operation - even if it works for you today, it may fail your next firmware update. If that is an issue for you, then you should definitely not update to Pro.

    The risk of bootloops is extremely low, but not completely non-existent. Should a bootloop occur, removing either the app's APK or /system/su.d/0000liveboot through recovery should fix the problem.

    Unless you are using SuperSU in system-less mode, the app writes to /system, as such your firmware must allow this. There is no recovery-based install option at this time.

    Pro

    There's an in-app purchase to upgrade to Pro, which supports my developments, and unlocks the transparency option as well as logcat buffer and format selection.

    Of course, if you have one of the paid variants of the old live logcat or live dmesg boot animations from all those years ago installed, this will also enable Pro mode.

    Like some of my other apps these days, if you don't have Google Play but still managed to install the APK, this will also enable Pro mode.

    Last but not least, if you simply don't want to pay for it, there's also a button to enable Pro mode (the 'freeload' option)

    Script

    If /system/su.d/0000liveboot.script or /su/su.d/0000liveboot.script or /sbin/supersu/su.d/0000liveboot.script exists (chmod 0644, not 0700 like other files in /system/su.d/ or /su/su.d/ !), this script will be run instead of logcat and dmesg, and its output will be shown in white (stdout) and red (stderr).

    Download

    Google Play

    or see attachment below

    Screenshots
    (1.14: 7646; 1.20: 5826; 1.30: 3999; 1.40: 1512; 1.50: 16710; 1.60: 25034; 1.70: 9446; 1.81: 2564, 1.83: 23762)
    81

    Why ?

    I always liked the old logcat and dmesg boot animations on 2.x. Unfortunately the code doesn't port well to newer Android versions. They were starting to cause more issues for users than they were provide coolness, so I pulled them from Play (together with a number of other apps) some time ago.

    While working on the next generation of Mobile ODIN, I've started using some techniques that I realized could be used to bring this back. Aside from being as cool as it is, this app actually serves as a testbed for these techniques.

    Tech

    The code is launched by a daemonsu bootscript immediately after /data is available. It then pulls an overlay surface from SurfaceFlinger through native code. It proceeds by running Java code that spins threads that catch logcat / dmesg / script output with libsuperuser. That output is then rendered by the Java code with OpenGL to the surface and shown on-screen.
    57
    SAUCE AVAILABE AT GITHUB - https://github.com/Chainfire/liveboot

    Changelogs

    2020-12-21 - v1.84

    - Android 11
    - Removed links to Google Plus (hehe)
    - (c) 2020

    2019-12-31 - v1.83
    - Android 10

    2019-03-13 - v1.81
    - (c) 2019
    - Fix script reinstalling every launch
    - Fix display not working on some Pie ROMs
    - Fix test run not working on some devices

    2019-01-06 - v1.80
    - Magisk: support /data/adb paths
    - Magisk: delay startup if /data not available
    - Fix script uninstall not working
    - Use librootjava's Daemon mode

    2018.11.16 - v1.70
    - Android 9.0 Pie support
    - Improved 64-bit support
    - Fix files dir not existing automagically
    - Migrated libcfsurface from C hijacks to Java reflection as much as possible (4.2 --> 5.0 minimum support)
    - Magisk support
    - Adaptive icon
    - Updated compile and target API levels
    - (C) 2018

    2017-09-11 - v1.60
    - Add compatibility with Android Oreo
    - Add compatibility with SuperSU in SBIN mode
    - Fix toolbox/toybox detection on 64-bit, could cause animation to keep running

    2016-12-20 - v1.50
    - [email protected]: stop animation when Android is up
    - (C) 2017

    2016-10.30 - v1.40
    - Android N 7.1 file-based-encryption support

    2016-05-19 - v1.30
    - Android N Preview 3 support

    2015-10-30 - v1.20
    - Android 6.0 support

    2015-01-03 - v1.14
    - Force remove old boot scripts before placing new one
    - Added another watchdog to prevent the animation from never quitting
    - (C) 2015
    - Note: some devices need SuperSU v2.42 or newer to work

    2014-12-21 - v1.13 - BETA
    - Use alternative shell if default not available (fx HTC One m7, m8)
    - Workaround b/7188322 hack (fx Shield Tablet)
    - Fixed minor script issues

    2014-12-20 - v1.12
    - ProGuard (reduce APK size)

    2014.12.20 - v1.11 - BETA
    - Added option to disable logcat color coding
    - Another possible fix for premature exit

    2014.12.20 - v1.10 - BETA - RELEASE NOTES
    - Possible fix for only showing for two seconds during boot on some devices
    - Fixed some typos
    - Made logcat buffers configurable (pro)
    - Made logcat format configurable (pro)
    - Made word wrap configurable
    - Added option to darken the background
    - Added option to save logs
    - Added reboot option

    - Added capability to use init.d if not using SuperSU, but this is not officially supported. It might make the app work on more firmwares, but it should be noted that init.d behavior differs between firmwares, and unlike su.d provided by SuperSU, no guarantees are made as to the state of the /data partition or SELinux policies when init.d scripts execute. Therefor it is impossible to officially support - it might work, it might not, and this will differ between firmwares.

    2014.12.18 - v1.05
    - Fixed number of lines being interpreted as hexadecimal
    - Fixed various load and display issues on 4.3 and 4.4

    2014.12.17 - v1.00
    - Initial release
    18
    Here's another test version, let me know if that helps.

    Script uninstall now also works properly, sorry about that.

    I'm running DeluxeROM 9.4 (Oreo 8.0) on my Note 8 with the latest unofficial release of Magisk. LiveBoot seems to install and the test works fine but doesn't seem to do anything during boot.

    I'm not sure where the scripts have copied to or if I need to do something in Magisk to get it working...

    I see this in the Magisk Logs:

    Exactly the same behavior. Nexus 5X, 8.1 (November stock image), Magisk 17.3. Magisk log shows
    Code:
    post-fs-data.d: exec [0000liveboot]
    but nothing is displayed, only the stock boot animation.

    PS, "test run" works fine, but starts approx. 20 seconds after clicking the menu item.

    Hi,

    Tried LiveBoot v1.70 but it's not working on my LG (H910) V20 phone running Nougat 7.0. Hopefully it will in a future update? I'd be happy to test.

    Thanks

    On pixel 3xl. It was working initially, now nothing when I restart. Occasionally works when I power off.
    Uninstall through the app does is not working either

    It will not work on redmi note 4 10.0.1 stale rom..
    I liked this app on soo many other devices, installed via play store.
    My device is unlocked and magisked 17.1


    not working on samsung j200gu 5.1.1 stock rom touchwiz :( test run works but when i reboot it only shows the standard bootanimation please help :(
    Here are attachments for more details


    Update: It worked using v1.60. Before I installed the v1.70 I had a back up so i wiped my data etc then restore it and then instead of v1.70 I used v1.60 and it worked like magic! :victory:
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone