Saturday, September 21, 2013

Recovering rooted and bricked Tolino Shine reader via ADB

[Draft]

Having rooted your Tolino Shine (a post to be written), you have been using it for a while. As the days passed by and the Internal Storage was bursting at its seams from the installed apps, you may have noticed that your new ereader has become sluggish.
What is worse, some autostart system applications (Button Savior, Floating Toolbar) fail to start on their own. Have you remembered about  checking the external and internal drives for errors and defragging them? No? Give them a try.

Despite these measures, one day Tolino may just die on you. There will be not even the creeping boxes boot animation - only the initial Tolino leaf will show. Of course you won't have a nandroid backup to speak of, either.

What did not work for me:
  • fastboot
  • flashing recovery.img with tools or manually
  • toying with init.rc or /system files

That is what helped me instead:

  • Make sure you have the right ADB driver files (e.g. Xiaomi), see How I rooted my Tolino post (to be written). 
  • Check if you can see Tolino in the Device Manager as Google ADB, not Tolino
  • Find the newest ADB.EXE package or download it off the Net.
  • Connect a hung Tolino via a good micro USB cable. Try different USB ports.
  • Check if Tolino has been discovered by the desktop computer. In the Windows command line run 
ADB devices
  • If you see the identification number of the connected Tolino device (e.g. "00096e7549872f  device"), run
ADB logcat
to see the booting process. Most probably you will see a boot loop: a service refuses to start and the panic daemon keeps restarting it. Run
ADB shell
  • If you are lucky, you should see #, which means you are running it as a root. Run
ps
  • to list the processes. Try to find the PID of the service monitor, to kill it, e.g.:
Kill 2683

- that way, the booting loop should stop and you will have more processor power. You will need it, trust me.
  • Run the QtADB front end and see if you can browse the root file system.
  • Remount /system  as read and write:
busybox mount -o remount,rw /system
  • Run
busybox mount /dev/block/mmcblk0p1 /sdcard
  • to mount the SD card. (You may experiment with mounting the other images, e.g. busybox mount /dev/block/mmcblk0p4  /mnt/obb/, just to try)
  • Copy one of the original Tolino update.zip files, select any from this forum, to the root directory of the internal sdcard (yes)
  • Find and analyze the /system/bin/upgrade_check.sh script on your Tolino, the bolded part, see also Naberius' post. We will use a trick from there.
  • On your computer, create a file named just command with the following content:
--update_package=/sdcard/update.zip

  • Copy this command file to the /cache/recovery directory with QtADB, so that you get /cache/recovery/command
  • You may need to change its permissions: chmod 777 command, just in case.
  • Run this command, taken from the script:
am start -n com.ntx.msg/.MsgUpgradeActivity
  • Run:
Reboot
in the shell, or press and hold the Power button to do it manually. 

If you are lucky, you will see the Recovery/Update screen. If you are very lucky, the update process will accept the update.zip file and you will have your /system and init files fixed.  Proceed to root your Tolino. See my "Root your Tolino" post (in the making) with more details.

4 comments:

  1. I bricked my tolino shine 2 HD during the rooting. Windows reports error. Can't restart it or shut it down. Only tolino logo on the screen. Any suggestions?

    ReplyDelete
    Replies
    1. You should:
      1. find twrp.img in the net
      2. light key + power key until the LED lights, after then plug the cable with Tolino into usb port
      3. after that use command "fastboot device" to find Your Tolino in system
      4. after that use command "fastboot boot twrp.img"
      5. then You got access to Your device, but
      6. if You have not original image of Your device, it could be impossible to run Your device as usual.

      Delete
    2. 3. after that use command "fastboot device" to find Your Tolino in system
      4. after that use command "fastboot boot twrp.img"

      Hi I am trying to fix mine, how can I use command? thank you

      Delete
    3. This comment has been removed by the author.

      Delete

Note: Only a member of this blog may post a comment.