[Windows 8 Development and Hacking] Graveen:
Guide: installing Google Apps and Rooting the tablet

THIS POST IS DEPRECATED. See http://xdaforums.com/showpost.php?p=55513404&postcount=23

:good: /!\ Please click thanks or offer me a coffee with donate if it was usefull for you /!\ :good:

This is rather technical, but i can help if you are stuck. Thank you for your comments.

Here is how you could install Google App suite to the THBK1-10 and certainly many ones based on Inside H2O bios, board name: CARD_B (see above for detailled specs)

Basically, to install some stuff, the concept is to get rid of all the caveats (special MMC drivers, EFI 32 bits with GPT, etc...) through actual Windows 8.1 installation. Everything takes place through classic Windows desktop. For convenience, personnally worked with TeamViewer, doing this with the dock/touchpad is pain in the ass. You can void your warranty and break the android part of your tablet, so operate carefully, i'm not responsible of what you do !

This leads to 3 phases:

a) accessing EXT4 Android partitions

b) transfer files from Windows to Android

c) change permissions

a) Accessing EXT4. I used coLinux to access and handle Android EXT4 partitions:

- download and install coLinux http://sourceforge.net/projects/colinux/files/latest/download?source=files. At the 'Choose components' screen, uncheck 'Root filesystem image Download', and accept everything (including TAP drivers)

- download and unzip Debian Squeeze image in coLinux folder (c:\program files\colinux). Warning, this leads to a 2Gb file, ensure you have proper space. You could unzip it in your external SDcard, but you would have to change the path to rootfs and swap in above squeeze.conf

http://sourceforge.net/projects/col... 6.0 Squeeze/Debian-6.0.1-squeeze.7z/download

- test it: click on the squeeze.bat file into c:\program files\colinux (if you have an error co-slirp, simply close colinux and restart it). Once you have the 'debian login:' prompt simply type root then enter. You are now under coLinux.

First, install your local keyboard (if needed)

apt-get update
apt-get install console-setup locales console-data

In case you miss the point for the keyboard:

(choose select keyboard from full list / pc azerty or whatever...)

dpkg-reconfigure console-data

- you should now update your /etc/apt/sources.list file:

nano /etc/apt/sources.list

- fill with the following lines (remove all before)

deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free

- update your apt repository:

apt-get update

- you would like to sync the clock from Linux with Windows: edit /etc/default/rcS and change UTC=yes to UTC=no

nano /etc/default/rcS

You can exit coLinux, we have things to tweak now.You can then download the attached Squeeze.conf, and put it into your colinux folder, replacing the old. Remember, if you have changed the path for rootfs and swap, you must change them to reflect your current installation.

Squeeze.conf:

kernel=vmlinux
cobd0="c:\program files\coLinux\rootfs_2gb.img"
cobd1="c:\program files\coLinux\\swap_128mb.img"
cofs0="C:\share"
cobd8=\Device\HarddiskVolume8
root=/dev/cobd0 ro
initrd=initrd.gz
mem=256
eth0=slirp

b) transfer files from Windows to coLinux

We would create a share folder at the root of C:\.

You must have C:\share folder.

- Create a directory in /mnt

mkdir /mnt/win

- then mount the folder into your coLinux

mount -t cofs cofs0 /mnt/win

FOLLOW THE ABOVE ONLY FOR GAPPS:

- You must now download the google apps files. The operation is done under Windows:

download Android 4.2.2 ones: http://goo.im/gapps/gapps-jb-20130812-signed.zip and extract all the file into C:\share

This folder must contains the whole gapps (you 'll see folders named: system, META-INF, optional...).

You must directly DELETE 3 files and 1 folder:

file system\app\GooglePlus.apk

file system\app\LatinImeDictionary.apk

file system\lib\libjni_latinime.so

fodler system\tts

If everything is ok, browsing /mnt/win/ from coLinux (not windows)

ls /mnt/win

should show the share directory content (META-INF,system,optional,...).

FOLLOW THIS ONLY IF ROOT:

- You must now copy su binary to your tablet: download attached files, unzip, copy it to your windows desktop shared folder

Nota: this file is extracted from Koush' superuser APK. This is the x86 su binary. Feel free to replace with newest version if available or if you fear something

FOLLOW THIS IF ROOT & GAPPS

c) access to Android partition

- create a system folder in /mnt

mkdir /mnt/system

- mount android to system

mount /dev/cobd8 /mnt/system

- check you are ok with

ls /mnt/system

You must see app, bin, usr, etc .... folders.

*** at this point, /mnt/system contains ALL your android system. NO MISTAKE ! ***

FOLLOW THIS ONLY IF GAPPS

- part 1: removing files. Browse to /mnt/system/app and CAREFULLY delete the 8 files (some could be missing, don't bother):

cd /mnt/system/app
rm Provider.apk
rm Provider.odex
rm QuickSearchBox.apk
rm QuickSearchBox.odex
rm SetupWizard.apk
rm SetupWizard.odex

- part2: copy. Copy the files from Windows to Android - it could take up to 2 minutes -

cp -rp /mnt/win/system/* /mnt/system

- then fix the permissions:

chmod -R 755 /mnt/system/addon.d
chmod 755 /mnt/system/app/*
sync

At this point, this is over. You can exit from colinux, reboot to Android, and come back to windows uninstalling coLinux, if anything is ok

The whole GAPPS are installed. Enjoy !

FOLLOW THIS ONLY IF ROOT

- copy attached x86 su binary to android

cp -p /mnt/win/su /mnt/system/bin

- then fix the permissions:

chmod 755 /mnt/system/bin/su
chmod u+s /mnt/system/bin/su
ln -s /mnt/system/bin/su /mnt/system/xbin/su
sync

At this point, this is over. Reboot, you can now download and install superuser https://f-droid.org/repository/browse/?fdfilter=superuser&fdid=com.koushikdutta.superuser

Your tablet is now rooted. Enjoy !