Daily Diary (Flashing recovery in Micromax bolt A089)

After rooted my mobile I wants to flash recovery in my mobile. Then I found the new android app Rashr – Flash Tool which is using to flash recovery image in mobile and also this app will find Philips recovery image, CWM (Clock Work Mode) recovery image and TWRP (Team Win Recovery Project) recovery image of my mobile. Then after flashing Philips recovery which was found by Rashr – Flash Tool I cannot go to in recovery mode. When I go to recovery mode white screen cames up for 1 or 2 seconds, dismiss and then restart my phone. It makes our whole mobile storage (i.e internal and external storage) as read-only. At this stage, I cannot open any android app and storage.

Now I connected my mobile to laptop tried running ADB (Android Debug Bridge) commands. I tried to push recovery image by adb push command but I failed because my whole mobile storage in mount as read-only. Then after asking my problem in GD Vigas told a couple of links which can solve my problem. Here in that links first of all, I run adb shell command because by running this I can go to an Android shell and in this shell I used the power of su. In ADB shell first command I run was su and now I run mount -o remount,rw /, this command remounts my whole mobile storage as in read and write mode. Then after running this command, my problem was not solved. I cannot read and write data from my mobile storage. Then in ADB shell I set some permissions by running chmod 0777 /mnt/sdcard and chmod 0777 /mnt/sdcard1. After changing permissions of /mnt/sdcard and /mnt/sdcard2, permissions of /storage/sdcard0 and /storage/sdcard1 automatically changed because /storage/sdcard0 is a symbolic link of /mnt/sdcard and /storage/sdcard1 is a symbolic link of /mnt/sdcard2 now I can read and write data in my mobile storage.

Because my recovery was damage by Rashr – Flash Tool during flashing Philips recovery. Now I downloaded CTR (Carliv Touch recovery) image file and push it into my mobile by adb push recovery.img /storage/sdcard1 and flashed it by Rashr – Flash Tool.

This day was a great day for me in Android world because continuously unknown problems came and I solved all problems one by one.


Powerline Plugin

Powerline is a plug-in to display informational and beautiful statusline for vim, tmux and shell prompt for bash, zsh.


Install python-pip and git: Run the following command in a terminal:

sudo apt-get install python-pip git

Then run the given below command to install Powerline plugin:

su -c 'pip install git+git://github.com/Lokaltog/powerline'

Installing fonts for Powerline:

wget https://github.com/Lokaltog/powerline/raw/develop/font/PowerlineSymbols.otf https://github.com/Lokaltog/powerline/raw/develop/font/10-powerline-symbols.conf
mkdir -p ~/.fonts/ && mv PowerlineSymbols.otf ~/.fonts/
fc-cache -vf ~/.fonts
mkdir -p ~/.config/fontconfig/conf.d/ && mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/


    • Vim statusline:
      Add following to your ~/.vimrc or /etc/vim/vimrc:

      set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
      " Always show statusline
      set laststatus=2
      " Use 256 colours (Use this setting only if your terminal supports 256 colours)
      set t_Co=256


  • Bash prompt:
    Add the following line to your ~/.bashrc or /etc/bash.bashrc:

    if [ -f /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh ]; then
        source /usr/local/lib/python2.7/dist-packages/powerline/bindings/bash/powerline.sh


  • Zsh prompt:
    Add the following line to your ~/.zshrc or /etc/zsh/zshrc:

    if [[ -r /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh ]]; then
        source /usr/local/lib/python2.7/dist-packages/powerline/bindings/zsh/powerline.zsh
  • Tmux statusline:
    Add the following line to your ~/.tmux.conf:

    source /usr/local/lib/python2.7/dist-packages/powerline/bindings/tmux/powerline.conf
    set-option -g default-terminal "screen-256color"