yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] Boozezela:
It is true that the partition differs, but it is also true that I was able to flash update.zip from stock recovery.

.

The system booted correctly and files previously in /system disappeared (su and a test file I did touch on purpose).

This could mean that under stock recovery block devices names are different, after all emmcblk0p3 normally is only 10MB big.

Another thing that I have noticed is that update.zip contains the following extra files:

/system/etc/dbus.com

/system/etc/throttle.sh

/system/etc/ril/oper.lis

Plus the ones from "recovery" that are pushed in system:

/system/etc/install-recovery.sh

/system/recovery-from-boot.p

Edit: By removing the check for the ro.properties from the updater script (because I was too lazy to check for the values reported by CMW) I was able to flash update.zip from CMW as well.

The installation completed successfully, even with the reference to the wrong block device in it.

Logs showed something like: cannot format unsafe partition mmcblk0p8 and "Can't format uknown volume: /emmc".

The device booted successfully even in this case. CMW also detected the install-recovery script and offered to remove it.

Here there is a mention of a generated updater script with the same reference to mmcblkp03:

http://xdaforums.com/showthread.php?p=37769037

P.S. If you unzip Launcher2.apk you will see that there are duplicate wallpapers in two different folders. Also in one folder some of the wallpapers are huge 3-5MB png files: you may want to replace everything with jpg to improve loading speed?
[Miscellaneous Android Development] C3C076:
Hmm... Interesting.

About the Launcher. The wallpapers are for different screen resolutions. Launcher provides only those stored in drawable-xhdpi + drawable-nodpi (if there are any). Removing images for different resolution won't improve loading speed remarkably, especially on quad-core device. Advantage would be that it would reduce the size of apk, but we have enough space on system partition.

Looks like GooManager failed to send notification about new update. Maybe it is confused by 2-in-1 package model.

Anyway, update is available via GooManager / Browse compatible roms or in the first post.
[Miscellaneous Android Development] Indiant:
If the 1.0.5 fw is out, then 1.0.3 is not the latest, or I missed something?

ps.: thanks for the new update, if I finally get my phone I will try it
[Miscellaneous Android Development] akim14:
there is a newer rom, compatible with other phones too, antutu over 13k :)
[Miscellaneous Android Development] -fluffy-:
that funny because antutu doesnt make scores from firmware

but from hardware
[Miscellaneous Android Development] amstel:
what do you mean?
[Miscellaneous Android Development] manu81:
The room change modem band, lost the band 850 just stay the 2100. In my country we use the band 850. as the install?
[Miscellaneous Android Development] ch-vox:
Try to add manually "GSM850" through EngineerMode > Telephony > BandeMode (use MobileUncle for instance)
[Miscellaneous Android Development] akim14:
you are wrong and you should feel bad. if you have got bad optimized software - you will get low benchmark score... try it
[Miscellaneous Android Development] manu81:
not possible. I enter engineering mode and is only to select Band 2000, the other bands can not be selected. It is sad ..

You can test you to enter engineering mode and see what I say ...

Please help
[Miscellaneous Android Development] ch-vox:
GSM850 is selected (SIM1 & SIM2 by default) through EngineerMode on my W8... :?

Have wipe all cache & data before installing GM2 ROM ?
[Miscellaneous Android Development] manu81:
Yes GSM 850 i have, but need 3G (UMTS Mode in WCDMA- CLR 850), you can see is only WCDMA-IMT-2000

All afect service 3G, now no 3G, no have the modem band
[Miscellaneous Android Development] ch-vox:
You're right : only WCDMA-IMT-2000 for UMTS :( , I'm lucky this works in France...
[Miscellaneous Android Development] -fluffy-:
yes off course u will get bad bench because the app take to much ram an speed off the cpu

an why shut i feel bad fore pointing it out that it reads hardware

hardware has nothing to do wiht bad apps there take up to mutch speed an ram

if u want the

real benchmarks

u have to run it as clean as possible
[Miscellaneous Android Development] akim14:
that was a kind of joke used in meme jokes... anyway my post was legit and true, you attacked it and I defended it.

I know what really Antutu does, but there is strong connection between HW and optimalized SW (modules, tweaks&stuff). Sorry If i have insulted you, it was not my point.
[Miscellaneous Android Development] manu81:
I hope the creator give us a fix to solve the problem
[Miscellaneous Android Development] SlvK:
Unfortunately 60fps are still unavailable for some reason (gravity + two fixes + full wipe):

The same picture is in Gears test application.
[Miscellaneous Android Development] C3C076:
I can see 850 band in engineering mode.

But you mean the umts one probably...

BTW there's a newer version of this ROM for W1 that might solve your issue...

I will do update when I find time.
[Miscellaneous Android Development] C3C076:
BTW, you could try replacing /system/etc/firmware/modem.IMG

Take the one from stock rom .
[Miscellaneous Android Development] amstel:
Same with me, despite games now work better
[Miscellaneous Android Development] C3C076:
This is something I don't understand. Only explanation is that there must be some difference @ hw level...
[Miscellaneous Android Development] SlvK:
I've attached full output of hardware info. Probably it can tells something.

View attachment ThLW8.7z
[Miscellaneous Android Development] manu81:
It worked your help, now doing well

Thanks ¡¡¡¡¡¡¡
[Miscellaneous Android Development] C3C076:
- For W8, ROM is based on Eastcom W1 ROM, not THL ROM. And the latest version for Eastcom W1 is 1.0.3 (we use ROM from this device to get 60FPS)

For W8+, ROM is based on THL FW, which is 1.0.5
[Miscellaneous Android Development] peptonib:
Auto brightness highly improved here. Before, I could see coarse steps on ambient light changes. Now, transitions are smooth and quick. Congrats. :good:
[Miscellaneous Android Development] C3C076:
Thanks. Well, it's still not perfect under certain conditions, but better than it was before, I think. Sometimes it seems like sensor balances between different values even if conditions are steady. I noticed that sometimes it's due to my glasses reflecting remote light :D
[Miscellaneous Android Development] peptonib:
Do you think it would be interesting to include the XPosed framework + XTheme Engine on this ROM?

They are quite easy to install and setup on their own, but maybe we could "spice up" this rom with some optional exclusive custom theme.

I am trying to find a good excuse to learn the xthemeengine syntaxis to develop a "black text over white background" theme...

I have no idea about it yet, so don't expect a 24h beta yet...

Anyway, just an idea.

I'm also finding out about ext4 optimization and reliable build.prop tweaks to pack in a script.
[Miscellaneous Android Development] Boozezela:
Indeed, my point is that the files in drawable-xhdpi and drawable-xxhdpi are exactly the same. Some are duplicates (the jpgs with same CRC), some others are the same image in a different format (png).

There are also different wallpapers images in drawable-sw600dp-nodpi (@1600x1280) and drawable-sw720dp-nodpi (@1920x1280).

The only difference between W8 and W8+ firmware should be DPI density in .prop file and the kernel.

This means that you don't have to use different bases (eastcom / thl).

Try to flash the 1.0.5 W8+ firmware on your W8, replace the kernel with the one from eastcom or from the latest official W8 ROM, whichever is the newest, and see what happens.
[Miscellaneous Android Development] C3C076:
That's unfortunatelly not that easy. I've already done such experiments when I was trying to provide GM2 for W8+ just by changing kernel. It kind of works, but there are some library incompatibilities (e.g. camera is broken when using eastcom libs and W8+ kernel).

This means, to be able to use kernel from Eastcom which is 60FPS, we must also use libraries from Eastcom ROM.

Eastcom kernel cannot be used on W8+ due to different screen driver, that's why GM2 for W8+ uses THL kernel and thus also system libs coming from THL FW.

You can try yourself. Flash W8 official ROM and Eastcom kernel. System will boot. But at least camera will not work.
[Miscellaneous Android Development] C3C076:
Yes, XPosed is definitely a powerful piece of software. I think it wouldn't be a problem to include the XPosed framework into ROM. After that, we only need some interesting modules or to write our own (instead of hacking smali). I haven't checked how framework works if you want to write module for changing layout (lack of time) but I will be very interested in seeing anything you come up with - either know-how or some kind of a ready-to-use module :) In the mean time, I will think about how we can utilise it to modify/bring some interesting functionality into system apps. For know, nothing is crossing my mind.
[Miscellaneous Android Development] Boozezela:
I tried something else. :)

I run an update only containing the following:

format("ext4", "EMMC", "[B][COLOR="Red"]dev/block/mmcblk0p3[/COLOR][/B]", "0", "/system");
mount("ext4", "EMMC", "[B][COLOR="Red"]/dev/block/mmcblk0p3[/COLOR][/B]", "/system");

After the script executed these were the partitions mounted:

~ # mount
mount
rootfs on / type rootfs (rw)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
/dev/block/mmcblk0p6 on /cache type ext4 (rw,nodev,noatime,nodiratime,data=ordered)
/dev/block/mmcblk0p8 on /sdcard type vfat (rw,nodev,noatime,nodiratime,fmask=0000,dmask=0000,allow_utime=0022,codepage=c
p437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
[B][COLOR="Red"]/dev/block/mmcblk0p5 on /system type ext4 (rw,nodev,noatime,nodiratime,data=ordered)[/COLOR][/B]

From recovery.log:

(...)
ThL W8/W8+ CWM-based Recovery v6.0.3.3
recovery filesystem table
=========================
0 /tmp ramdisk (null) (null) 0
[B][COLOR="Red"] 1 /system ext4 /dev/block/mmcblk0p5 (null) 0[/COLOR][/B]
2 /cache ext4 /dev/block/mmcblk0p6 (null) 0
3 /data ext4 /dev/block/mmcblk0p7 (null) 0
4 /sdcard vfat /dev/block/mmcblk0p8 (null) 0
5 /external_sd vfat /dev/block/mmcblk1p1 (null) 0
6 /sd-ext auto /dev/block/mmcblk1p2 (null) 0
7 /boot emmc /dev/bootimg (null) 0
8 /recovery emmc /dev/recovery (null) 0
9 /uboot emmc /dev/uboot (null) 0

(...)
-- Installing: /sdcard/azz.zip
Finding update package...
I:Update location: /sdcard/azz.zip
Opening update package...
Installing update...
====== Updater-Script:
format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/system");

[B][COLOR="Red"]format /system /dev/block/mmcblk0p5[/COLOR][/B]
Creating filesystem with parameters:
Size: 680525824
Block size: 4096
Blocks per group: 32768
Inodes per group: 6928
Inode size: 256
Journal blocks: 2596
Label:
Blocks: 166144
Block groups: 6
Reserved block group size: 47
Created filesystem with 11/41568 inodes and 5405/166144 blocks
[B][COLOR="Red"]mount /system /dev/block/mmcblk0p5[/COLOR][/B]
script result was [/system]

Install from sdcard complete.

The file system table comes from /etc/fstab.

So it seems you cannot screw up even if the block devices targeted in the uptater script are not the right ones. :)
[Miscellaneous Android Development] C3C076:
Nice analysis :) At least we know more now. Thanks.

[MENTION=5266979]peptonib[/MENTION]

I've played with XPosed a little and coded a base module with UI called "GravityBox" with own settings containing one initial feature - to switch off circle battery :)

Now only to have good ideas and code some more tweaks. I am attaching some screenshots, including code for battery mod.
[Miscellaneous Android Development] clandestino123:
Brilliant !! I was meaning to post about this minor issue a few days ago but forgot.

thanks very much.
[Miscellaneous Android Development] peptonib:
Hi all,

I've tried to use Orange Backup, Online Nandroid Backup with no luck. These tools can make a full Nandroid backup from a running Android system, without switching to recovery mode.

Three days ago I reported the problem to Ameer, the creator of the online nandroid backup script.

He has been very helpful with the problem. We have exchanged some files and information about the THL W8, including C3C0 GitHub for the adapted CWMR. We made a couple of tests too.

Ameer has finally come up with a patch he has included in a beta versión of Online Nandroid Backup script, which I tested yesterday for him with big success.

He expects to release this version after his final beta testing, with support for our W8. He is also making Orange Backup support our phone.

So, we just have to wait for his next release to have full support!

---------- Post added at 10:08 AM ---------- Previous post was at 10:03 AM ----------

You are far far far ahead of me... I would not even touch code yet, just looking at colour, etc. definitions on the xml file...

As we already have the possibility of showing the full % in the status bar, would you find interesting to include an option to completely hide the battery icon...? This would leave only the % in the Status Bar.
[Miscellaneous Android Development] brown777:
I tried the GPS tracking without AGPS support, but the distance measuring was also problematic... :(

Thanks for the 2.0 version :)
[Miscellaneous Android Development] C3C076:
New GravityBox features implemented

- battery style indicator can be completely hidden - this allows to have only big percentage text displayed (the one that can be turned on in Settings / Battery)

- Skip track on volume keys long-press while screen is off
[Miscellaneous Android Development] Senapone:
There's something i wish to have in your gravitybox tweak list.

I got a flip cover that cover all the front part of the phone included proximity and light sensors.

It would be nice to have phone turned in sleep mode when flip is closed (like when making a call).

A sort of anticipated time-out of screen ruled by proximity sensor.

This would also preserve battery life.
[Miscellaneous Android Development] brown777:
Where can I find the GravityBox application/menu?
[Miscellaneous Android Development] C3C076:
You can't, yet.

It will be available in the next version.

I've just finished coding another feature:
[Miscellaneous Android Development] jnorbi:
Thanks!

Wow C3C076! Thanks, I can't wait for the next release and my phone too :) it's on the way to me... ;) Also thanks your great ROM! :good:
[Miscellaneous Android Development] epidemya:
Hi

I have installed in a thl W8 16Gb ( not +)the gravitymod2 1.5 with their updates till 2.0 but in my phone I have detected a problem with the aplication of the camera. It doesn't recognize the front camera (the camera of videoconference). Do you know how to solve this problem?. In my thl w8 8 Gb this work well.

thanks
[Miscellaneous Android Development] Boozezela:
Hi,

I have another one:

"Home button turns the screen on"

Open /system/usr/keylaout/mtk-kpd.kl

Change

102 HOME

To

102 HOME [B]WAKE[/B]

WAKE_DROPPED should work as well:

http://www.kandroid.org/online-pdk/guide/keymaps_keyboard_input.html#androidKeymapKeyLayoutMapTitle

I have also noticed that the virtual cd-rom I was looking for in the CWM thread is stored as an ISO file in /system/mobile_toolkit.

It could be nice to replace it with another ISO containing VIDCOM drivers, SP Flash Tool and the latest recovery. :)
[Miscellaneous Android Development] C3C076:
This would mean that apart from memory size, 16GB W8 models have probably different front camera hardware, which would make things more complicated for GM2...

Just curious - can you try if it is possible to set up FaceUnlock in Settings / Security?

If you have time, please contact me via PM so we can do some experiments with system libs.
[Miscellaneous Android Development] Senapone:
I own a w8+ but even with this tweak home hardware button doesn't wake phone properly.

Sometimes it need to be long pressed to wake up, other times double/triple click, some other times it just does not work. :(

I tried with both attributes.

---------- Post added at 08:29 AM ---------- Previous post was at 08:25 AM ----------

C3C076 i don't know if you want to insert it in your GravityBox, but do you think is technically possible?
[Miscellaneous Android Development] C3C076:
Yes. This was already discussed previously.

It works, but not 100%. There's a HW limitation. If phone is asleep (all CPUs offline) only the power button can wake it up seamlessly.

I could make a setting for it in GravityBox but people people should know that it doesn't always work 100% and thus could become annoying.
[Miscellaneous Android Development] C3C076:
For now, I have no clue where to look and how this could be done. If it was that easy, I suppose, CyanogenMod would already have such feature.
[Miscellaneous Android Development] Mr. Premise:
Attempting to set up FaceUnlock on my GM2 2.0 16GB W8 yields "Camera could not be opened".

And here I was thinking it was just me who hadn't found out how to open the front camera.
[Miscellaneous Android Development] epidemya:
The camera does not work. FaceUnlock in Settings / Security. It She gives a message of mistake
[Miscellaneous Android Development] Senapone:
By searching for it on google i found that there are several app doing that.

I installed "Proxymity Screen Off Lite" (133kb) i although think it would be better to have it in settings instead of an external app.

In any case thanks.
[Miscellaneous Android Development] C3C076:
This means... I have to rebase W8 16GB GM2 on official firmware, unfortunatelly. This will reduce FPS from 60 to 49.

I will try to assemble 2.1 update (will also include GravityBox) to test on W8 16GB. If you like to help with testing let me know. I will contact you by PM when the package is ready.
[Miscellaneous Android Development] andrew21166:
thl w8+

hello C3C076, the GPS still does not do the fix, engages only so engeenering mode, then going out with the home button and starting the browser google stays attached for a short time and continuously engages and disengages, do you think you can not find the solution ..

Thanks for the work.:confused::(
[Miscellaneous Android Development] gerryg73:
face unlock and front camera are working properly on my W8(16GB) with GM2 v2.0!
[Miscellaneous Android Development] Mr. Premise:
Curiouser and curiouser. Perhaps I'm doing it wrong. How to activate the front camera?
[Miscellaneous Android Development] C3C076:
Let's don't get confused. gerry has W8+ 16GB, not W8 :)

[MENTION=5268604]Mr. Premise[/MENTION]

I've sent you a PM. I am missing boot and uboot of stock ThL_W8.JB2.HD.EN.COM.8P128_MT6589V1.0.1_20130506 to complete the package for W8 16GB.

New package for W8 16GB should solve front camera issues (at the cost of lower (but official) FPS: 49 instead of 60)
[Miscellaneous Android Development] Mr. Premise:
Here they are (as I apparently can't attach files in a PM).
[Miscellaneous Android Development] C3C076:
Great! I will contact you with the 2.1 package, soon!
[Miscellaneous Android Development] gerryg73:
All the users I know (mostly italians) have W8(16GB) model... sold as W8+, but on the phone & on the box there is not written W8+

so... there is no difference between W8(16GB) & W8+ models... it's exactly the same phone...

I have ThL W8(16GB), front camera is working.
[Miscellaneous Android Development] C3C076:
No, they are not :)

Just take a look at these build numbers:

ThL_W8.JB2.HD.EN.COM.8P128_MT6589V1.0.1_20130506 (W8 16GB with HD screen)

ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.5_20130517 (W8+ 16GB with FullHD screen)

You can't share kernel between these two due to different screen resolution and driver (HD vs. FHD)
[Miscellaneous Android Development] gerryg73:
ok...

so what's the resolution of W8 16GB model?
[Miscellaneous Android Development] C3C076:
The same as for 4GB and 8GB: 720x1080 (HD).
[Miscellaneous Android Development] Senapone:
The same of W8 4 and 8 GB, 1280*720
[Miscellaneous Android Development] gerryg73:
ok sorry I didn't know there was another model... :silly:
[Miscellaneous Android Development] =Dynamic=:
Hi, where i can buy THL W8 at best price, from China ?

thanks, you can send me a private message :good:
[Miscellaneous Android Development] Boozezela:
As C3C076 already explained, it does not work when the phone is in deep sleep. Still better than nothing. :)
[Miscellaneous Android Development] gerryg73:
you're OT !
[Miscellaneous Android Development] C3C076:
Fresh info from one Czech guy who tested v2.1 for me on his w8 16gb.

Front camera fixed.
[Miscellaneous Android Development] juljez:
usb host on thl w8

Hello, can you tell me how have USB host, on the thl w8 like cyanogène mod on other phone...

Thanks, julien from France
[Miscellaneous Android Development] epidemya:
Can I try the GM2 2.1 also?
[Miscellaneous Android Development] martin9571:
good afternoon, we can test the 2.1 version for mobile w8 8gb?
[Miscellaneous Android Development] C3C076:
This doesn't require testing as I own this model so I'm testing it myself. 2.1 will be released for all models at the same time. When it's ready.
[Miscellaneous Android Development] C3C076:
You have PM
[Miscellaneous Android Development] peptonib:
This morning I had two "black screens" after waking the phone in full sunlight, while I had auto-brightness enabled. I will try to reproduce tomorrow to confirm. The screen shows up very very shortly, it then goes completely black. I had to long push power button to reset the device.

More infor tomorrow.
[Miscellaneous Android Development] Boozezela:
I have noticed that if you press the power button very quickly 6 or 7 times, sometimes the screen wakes up, give it a try next time.
[Miscellaneous Android Development] Supracer:
My wife's thl w8 aswell had the same problem this morning

Jiayu G2 1GBRAM Dual-Core JB 4.1.2
[Miscellaneous Android Development] peptonib:
mmm... Could not reproduce the problem today, no matter what I tried. The screen came up normally... strange.
[Miscellaneous Android Development] Supracer:
All I can say is that the 1.8 worked perfectly no problems and camera quality was way better on my wife's 4gb model..... it happened last night and this morning, and now the problem went away? I have no clue either, sorry I can't help you with this

Jiayu G2 1GBRAM Dual-Core JB 4.1.2
[Miscellaneous Android Development] peptonib:
[MENTION=5008415]C3C076[/MENTION], is there a chance you will include cpu control support for this rom? I mean, can we use the cpu control apps with it, now or in the future (no frills, set cpu, etc). CPU Max Min control, governors... I don't care very much about battery, but love to have a snappy phone. Thank you.
[Miscellaneous Android Development] C3C076:
You can install CPU control apps from play store. They should work normally. Of course, you won't be able to over clock. But changing frequencies between stock min-max should be possible.
[Miscellaneous Android Development] peptonib:
I tried... but as I explained earlier on another post, this apps seems to DISABLE 3 out of 4 cores. I tested with ANTUTU... But I will do some more testing, maybe the cores where only asleep. Tell you more later.

EDIT: Ok, tested with ANTUTU CPU Master Pro. Anything I set, makes the cpu fall to use only 1 core. If i set a max and min cpu frequencies and after I do a ANTUTU Benchmark, Core 1 goes crazy to 100%, but the other stay asleep. I can see the cpu cores with TaskManager from nextapp.
[Miscellaneous Android Development] Supracer:
So the phone is working only on one core? Sorry if I misunderstood

Jiayu G2 1GBRAM Dual-Core JB 4.1.2
[Miscellaneous Android Development] peptonib:
yes. but i am still finding out what is going on... not sure yet.