Saturday, 5 July 2014

Rooting UG007 AKA Mobicity's Android MiniPC on Ubuntu 14.04

ADB

  1. Plug the stick into the TV then in the settings enable debugging
  2. Unplug the device
  3. Install adb: sudo apt-get install android-tools-adb
  4. Create a new conf file: sudo gedit /etc/udev/rules.d/51-android.rules
  5. The file should contain only the following line, replace <username> with your username: SUBSYSTEM=="usb",ATTR{idVendor}=="2207",MODE="0666",OWNER="<username>"
  6. sudo service udev restart
  7. gedit ~/.android/adb_usb.ini
  8. The file should contain only the following line: 0x2207
  9. adb kill-server
  10. adb usb
  11. Plugin the device
  12. adb devices
Note: 0x2207 is the hex code for the UG007 device

Adapted from: http://www.slatedroid.com/topic/37572-how-to-adb-under-linux-solved/

Rooting

Download SuperSU
adb push psneuter /data/local/tmp
adb shell
$ cd /data/local/tmp
$ chmod 777 psneuter
$ ./psneuter

adb kill-server
adb devices
adb shell
ADB shell prompt should now be a hash '#' to indicate root
# mount -o remount,rw -t rfs /dev/block/st19 /system
# exit
adb push busybox /system/bin
adb push su /system/bin
adb push su /system/xbin
adb install Superuser.apk
If the install hangs or otherwise doesn't work: adb push su /system/app
adb shell
# chmod 4755 /system/bin/busybox
# chmod 4755 /system/bin/su
# mount -o remount,ro -t rfs /dev/block/st19 /system
# exit
adb reboot

Based on this guide from step 12. There are some key things that do not work - in particular adb install Superuser.apk and also I had to use SuperSU (apk filename is the same).