GravityMod2 - custom ROM for THL W8 (4GB/8GB/16GB/THL W8+/THL Beyond) - Android 4.2.1
Version 3.0
Compatible with 4GB/8GB/16GB versions of THL W8, W8+ and W8 Beyond

Here comes the Android 4.2.1 ROM with full Project Butter experience with UI running @ 60+ FPS* making our W8 a real beast!
It's based on the latest Eastcom W1 stock Android 4.2.1 ROM. It's a pure stock with a few fixes and mods on top (check out the Changelog in the second post).
For W8 16GB, W8+ and Beyond, the ROM is based on the official THL firmware and it uses official THL kernel.
Installation can be done via recovery (Instructions below).
* 60FPS is available for W8 4GB/8GB models only.
* W8 16GB runs at max of 49FPS since it's using official THL kernel
* W8+ and Beyond use kernel from Beyond running at 58 FPS

Although this ROM seems to be working fine on majority of W8 models, there's still a chance you might come accross some issues caused by incompatibility.
Except for memory size, newer batches of W8 seem to have some other hardware differences (e.g. camera sensor) making them incompatible with this ROM.
Since I own W8 8GB version that came out in the very first batch, it is impossible for me to reproduce, debug and fix bugs that may appear on different or newer W8 models. I won't be providing any support nor bug fixes for these models!!! It is simply unmanageable for me! Thanks for understanding.
Therefore, you should rather consider sticking with the stock ROM and installing standalone GravityBox app which will basically introduce all the mods without actually having to flash any custom ROM. This approach avoids all the potential incompatibility issues you may have with non-official ROMs.
And remember, it's always YOUR decision when it comes to flashing ROMs or installing apps.
You should ALWAYS make a backup of stock rom before flashing anything on your device!!! I am getting too many personal message from people that didn't make a backup of stock ROM before flashing GM2 asking for help, which wastes a lot of my free time that could be used more efficiently (e.g. to work on GravityBox app)

Read carefully before you proceed
- full wipe is needed to upgrade from Android 4.1.2 or any other ROM that's not based on this one.
- returning to previous ROM that was backed up using custom recovery is possible only in case you used my ClockworkMod to backup your previous ROM.
All other custom recoveries will simply not work fully because they are not "MTK6589 friendly".
So I strongly recommend to flash my ClockworkMod and perform backup using this recovery before proceeding any further.

Click image for larger version    Name:	gravitybox.jpg  Views:	4970  Size:	38.9 KB  ID:	2025395
Click image for larger version    Name:	banner3.jpg  Views:	2311  Size:	187.5 KB  ID:	2125260 Click image for larger version    Name:	banner4.jpg  Views:	2157  Size:	170.2 KB  ID:	2125261
Click image for larger version    Name:	Screenshot_2012-12-31-17-03-26.jpg  Views:	8419  Size:	11.5 KB  ID:	1910401 Click image for larger version    Name:	Screenshot_2013-04-25-11-20-10.jpg  Views:	9667  Size:	43.9 KB  ID:	1910417

Main Features
- Project Butter fully working (60FPS UI on W8 4GB/8GB, 49 FPS on W8 16GB)
- Rooted
- Busybox
- Sysinit support (for init.d scripts)
- Updated Google apps
- Google Now included
- Chinese apps removed
- Updated APNs
- CallerID mappings fixed in Phone calls and Messaging
- CyanogenMod Circle Battery
- Auto-hide of signal icons for empty SIM slots
- No annoying "SIM card not inserted" notifications
- Power menu reboot and recovery
- Fullscreen caller photo
- Multiline contact names
- Volume key cursor control
- Recent apps clear all button
- Internet Calls support (SIP)
- OTA updates via GooManager
- Engineering mode accessible from Settings / Developer options
- GravityBox - centralized app for additional customizations
--- Status bar tweaks (QuickSettings tiles, additional tiles, background color and transparency, ...)
--- CyanogenMod Pie Controls
--- Expanded desktop
--- Navigation bar tweaks
--- Lockscreen tweaks (custom background, maximized widgets, ...)
--- Power tweaks (advanced power-off menu, low battery warning policy)
--- Phone tweaks (flip action, disable vibrate on call connect, fullscreen caller photo)
--- Display tweaks (minimum brightness setting, autobrightness settings, ...)
--- Hardware key actions (action on menu long-press/doubletap, back key long-press)
--- Media tweaks (more volume steps for music, skip track using volume keys)
--- Other miscellaneous tweaks
--- General MTK6589 fixes



Installation package to be flashed in recovery - version 3.0
THL W8 4GB/8GB: (MD5: bad6e080d7b1865015ae8ca395093482)
THL W8 16GB: (MD5: 18d58581ae211724550d31dddbb03640)
THL W8+: (MD5: ed64686bad1d693496bf45e8f1d1fcd4)
THL W8 Beyond: (MD5: d25afae1123beba06fb28a09cddee8db)

Incremental updates (installable via custom recovery)
THL W8 4GB/8GB: Incremental update v3.0->v3.1 (hotfix for default write disk setting) (MD5: a04df439bcd58983999108d89dff7e32)
THL W8 4GB/8GB: Incremental update v3.1->v3.2 (hotfix for front camera resolution) (MD5: d34c95bd5ff50935096a6a9c49f5d7d4)

Camera fix for W8 4GB running GravityMod2 3.x
- applicable to W8 4GB models experiencing camera crash
- applicable to GravityMod2 version 3.x
- contains official THL kernel that will reduce FPS from 60 to 49 (which is still acceptable)
- flash via recovery - make a backup before flashing
- no wipes needed
- Download link: (MD5: 0ff9b2314bbd1f454ea85e2042d65291)

GravityBox latest version
Download: GravityBox v2.4.2
Flash via clockworkmod recovery. No wipes needed.

Installation instructions
1) Download proper installation package for your W8 model from Downloads section above

2) Put installatrion ZIP on SD card

3) Reboot to clockworkmod recovery

4) Make a backup of your current rom.

5) Perform full wipe: wipe data/factory reset, advanced/wipe dalvik cache

6) Choose "install zip from sd card", browse for installation ZIP and confirm flash

7) Reboot

Incremental update instructions - when updating to newer version
This is in case you are already running some version of GM2 and want to upgrade to newer version of GM2
1) Download incremental update package and put it on SD card

2) Reboot to clockworkmod recovery

3) Wipe cache and dalvik cache (don't wipe data - your user apps will be preserved)

4) Choose "install zip from sd card", browse for incremental update ZIP and confirm flash

5) Reboot

Repartitioning instructions - to get more space for apps (2GB instead of 1GB)

1) Backup contents of Phone storage (internal SD) somewhere to your PC.

2) Download repartitioning package and put it on external SD

3) Reboot to recovery


5) Install zip from sd card / choose zip from external sd - choose zip downloaded in step 2)

6) Reboot recovery (recovery main menu / advanced / reboot recovery)

7) Format data partition (mounts and storage / format data)

8) Reboot system

9) You should see notification saying that phone storage is damaged. Open notification and confirm Format SD when prompted.

10) Reboot to recovery

11) Restore Backup made in step 4) (you can restore complete rom or just Data partition using "Advanced restore")

12) Copy contents of backed up Phone storage (internal SD) from PC back to Phone storage (make sure they fit new size)
New size for 8GB model: ~4.5GB
New size for 4GB model: ~0.5GB

GPL compliance
Sources for kernel used in this ROM are available here:

Changelog 3.2 - 01/07/2013
For W8 4GB/8GB
- Hotfix for front camera resolution
IMPORTANT: if camera crashes after update
it is necessary to clear data for Gallery
(Settings / Apps / Gallery -> Clear data)

Changelog 3.1 - 01/07/2013
For W8 4GB/8GB
- Hotfix for default disk write setting

Changelog 3.0 - 01/07/2013
For W8 4GB/8GB
- updated system files from the latest official THL W8 FW
- updated GravityBox 1.4.1
- updated Google apps
- updated Superuser

For W8 16GB
- completely rebased on the latest official THL W8 FW
- fixes blank screen issues
- fixes front camera issues
- fixes CPU frequency scaling issues
- additional languages ported from Eastcom W1 rom
- updated GravityBox 1.4.1
- updated Google apps
- updated Superuser

Changelog 2.6 - 09/06/2013
- GravityBox 1.1
--- removed redundant power-off menu
--- fixed "SIM not inserted" notifications option
--- fixed circle battery size on W8+ (FHD)
- updated Gmail,Hangouts,YouTube
- updated Superuser
- changed GooManager identifier to avoid false ROM update notifications

Changelog 2.5 - 08/06/2013
- GravityBox app integrated (v1.0)

Changelog 2.0 - 01/06/2013
W8 models:
- system rebased on the latest Eastcom W1 official FW (1.0.3)
- fixed missing permission on cpu_num_limit device node

W8+ models:
- system rebased on the latest official THL FW (1.0.5)
- added init.d support (sysinit)
- updated APN list
- added support for VoIP (SIP) calls in native Phone app

Both models:
- fixed center position of unlock ring
- tweaked autobrightness levels to eliminate flickering on small ambient light changes

Changelog 1.9 - 28/05/2013
W8 models:
- updated kernel taken from the latest Eastcom W1 1.0.3 official FW
--- better support for 2000mAh batteries
--- should increase battery life slightly
All models:
- updated CWM recovery to Includes:
--- synced with upstream sources
--- changed font to increase font size
--- brought back /sd-ext support
--- added custom recovery name and version info
--- links to relevant commits: Part1, Part2

Changelog 1.8 - 22/05/2013
- Fixed FlashLight crash in LCD mode
- Option to launch Engineering mode from Settings/Developer options
- System updates replaced with GooManager (Settings/About phone)
--- introduced GM2 OTA update system
--- Removed obsolete GoogleOTA system
- Google Maps: updated and moved from system to data partition
- Google Hangouts updated
- Play Store updated
- Superuser updated

Changelog 1.7 - 16/05/2013
- reboot recovery icon changed
- updated Google Maps
- updated Google Talk (Google Hangouts)
- updated Google Play Services
- updated Google Now (QuickSearch box)
- added working Adobe Flash Player

Changelog 1.6 - 14/05/2013
- fixed uncontrolled periodic wake from sleep (uncontrolled turning on of the display)
- disabled spammy "nativeGetEnabledTags" log messages flooding system log really hard

Changelog 1.5 - 07/05/2013
- Fixed CallerID mappings in Phone calls (contacts without country code are mapped correctly)
IMPORTANT: it is necessary to clear and re-add contacts for this fix to take effect.
Go to Settings/Apps, locate "Contacts Storage", open it and Clear Data (this will delete all of your contacts
so make sure you have a backup!!!
If you are synced withh Google account you don't need to backup - your contacts will be synced shortly.

- Fixed CallerID mappings in Messaging (contacts without country code are mapped correctly)
IMPORTANT: fix doesn't apply to existing conversations - they will remain splitted.
So delete problematic threads if any. All new conversations will be grouped OK.

- Removed annoying "SIM card not inserted" notifications
- Added sysinit support (for init.d scripts)
- Autobrightness levels adjusted for better brightness in sunlight
- Enabled support for Internet Calls (SIP)
- Updated Play Store

Changelog 1.4 - 02/05/2013
- Volume key cursor control in text fields
- Added missing lockscreen targets (camera, google search)
- Recents apps: added button to clear all open tasks at once
- Automatic backlight values adjusted (less brightness in dark)
- Wifi scan interval changed from 15secs to 60secs
- Quick-unlock by touching menu key while on lockscreen
- Don't turn on display when charger/USB unplugged

Changelog 1.3 - 28/04/2013
- Updated baseband (from the latest official 4.2 rom)
- Added G-sensor calibration
- Added Proximity sensor calibration
- Fullscreen caller photo
- Multiline contact names

Changelog 1.2 - 26/04/2013
- CyanogenMod Circle Battery
- Auto-hide of signal icons for empty SIM slots
- Power menu reboot and recovery

Changelog 1.1 - 25/04/2013
- Updated to latest Eastcom W1 1.0.2 stock rom
- Fixes low FPS issue for some devices
- Play store app compatibility issues fixed
- DateTime settings crash fixed
- Fixed support for WCDMA 850 UMTS networks
- Louder sound for media

Changelog 1.0 - 24/04/2013
- Initial release
- Based on Eastcom W1 1.0.1 stock rom