October 2015

Android: how to edit AndroidManifest.xml

Sometime to edit a system apk we have to edit its AndroidManifest.xml but we can't simple edit it otherwise we will corrupt the signature and the edited apk will not be loaded at system boot. We could disable the signature check in the services.jar or resign every apk in the rom but these aren't the more elegant solutions. After editing the AndroidManifest.xml in a system's apk we can check the...

Linux: display colorized boot messages from bootlogd daemon

If we have an error at startup on a linux distro and we want check the log of the bootlogd then we can use this command and we will display the colorized log: sed $'s/\^\[/\E/g;s/\[1G\[/\[27G\[/' /var/log/boot