yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] arcadesdude:
I did some testing in direct sunlight.

Anything over 8000 lux needs full brightness to be able to see the screen (even when the screen is set to 100% brightness in anything over 8000 lux it is still kinda of hard to see but that's why it needs to be full brightness on auto for 8000+).

In shade, but still bright out, the lux read about 6000 and the auto brightness setting was good.

I in framework-res.apk, changing those last two lux levels I think would help.

<item>6000</item>

<item>8000</item>

...

<item>230</item>

<item>255</item>

I tried decompiling and recompiling framework-res.apk after making the changes but couldn't get it to work. I wasn't sure how to install it. I used apktool and apkmultitool to decompile framework-res.apk and then change /res/values/arrays.xml and saved the files. Then I compiled and also tried signing them to produce the new apk. So far so good.

I then tried installing using apkmultitool install apk and it didn't work. It just said waiting on device. I tried rebooting my phone, tried recovery mode, tried regular just plugged in and turned on mode and nothing. USB debugging is enabled.

I also tried copying the changed apk directly to /system/framework (after first mounting as rw and changing the permissions of the new apk to match the permissions of the current framework-res.apk) using copy and paste on FX "file explorer." It would freeze when I gave it the paste command (yes it had root permissions).

I don't know how to install the changed apk or how to update this to get the new brightness settings. As the copy operation had froze the app, even pressing home did not work so I had to use my nandroid backup to revert phone to a useable state again.
[General Questions and Answers] C3C076:
When you compile modified apk in multi tool, say yes when it asks you if it's a system apk. Then say yes to create "keep" folder and delete resources.arsc from it, and then finish compiling process.
[General Questions and Answers] arcadesdude:
6. Great. Perhaps an alternative dual-sim dialer is available...I didn't check...are the stock 4.2.1 (FH4 4-28-2013 official update) dialer and the Eastcom/GravityMod2 dialers the same? Could that kind of change be made and fix up these crazy errors?

4. Does that mean it is also impossible or just kinda difficult to fix?

9. Agreed and hey, thanks for taking the time to answer all my questions. Hopefully I can help in some way too :)
[General Questions and Answers] C3C076:
I managed to solve 4) already. I mentioned it in GM2 thread.
[General Questions and Answers] arcadesdude:
Apkmultitook didn't prompt me about this, possibly because I chose the decompile system apk option at first. In fact, the compile process finished just fine with no errors. (Hopefully it was a good format for being a system apk but it didn't ask about that so...)

Once I have the compiled apk...I wasn't sure what to do with it. I was able to verify I had changed the xml file by decompiling the new apk but couldn't get it installed on my phone. I was probably doing something wrong. Is copying and pasting correct?
[General Questions and Answers] C3C076:
Have you tried wiping dalvik cache?
[General Questions and Answers] arcadesdude:
In what order would I do that?

Wipe the dalvik cache from recovery....then what? Try copying and pasting the new apk again? How does wiping the dalvik cache help here?

OK. I wiped the dalvik cache and then rebooted. Tried replacing my current framework-res.apk again with the new one (after setting permssions on the file first) and I still get a freeze at coping files. I might try again later with a different app with root access that can remount the /system as rw. Or maybe look into creating a update.zip and trying from recovery if that is possible.
[General Questions and Answers] C3C076:
I typically use "adb push" while in recovery (system partition must be mounted)
[General Questions and Answers] C3C076:
Good new everybody.

Looks like I fixed the Caller ID issues. At least for phone calls now.

This means that contacts stored without country code will be matched to caller ID sent by operator containing country code.

Messages seem to be handled differently (damn it) but I will try to look into it, too.
[General Questions and Answers] yewchieh:
Waiting for this update for phone and Messages.
[General Questions and Answers] arcadesdude:
Thanks. That was part of the problem.

The other part was since it was a system apk, I signed it thinking that's what it needed but I read a comment that stated that system apks shouldn't be signed. All I had to do was make my changes, compile it, then copy over meta-inf and AndroidManifest.xml from the original to the newly compiled apk. Then, adb push was correct as you stated for system apks.

On a side note I had to manually put in my java jdk path for android's sdk by editing the \adt-bundle-windows-x86_64-20130219\sdk\tools\lib\find-java.bat file with my jdk path....and I had to make sure I had the adb driver installed which was another hiccup. Once all those settled then I could use adb and apkmultitool etc worked fine.

I pushed the changed framework-res.apk to my phone verifying the changes were made and testing the light sensor values with 'GPS Status' which shows the lux...AND IT WORKED!! I can now leave the brightness on Auto and it works just fine :)

The change made was to framework-res.apk\res\values\arrays.xml

Changed lines 554 and 555 to be 6000 and 8000 respectively instead of 8000 and 10000.

Can you incorporate this change into the next version of GM2 C3C076?

So, new topic:

10. What files in SystemUI.apk or framework-res.apk are for the Cyanogenmod circle battery? I looked all through those two and couldn't find the graphics of the circle battery?

Thanks again!
[General Questions and Answers] C3C076:
Great :) I will include it in today's release.

CM circle battery is not image based. It is a self-drawing ImageView. It's in CircleBattery.smali in statusbar/policy.

It is referenced in layout xmls. The change would be easy. Just remove references from 2 xmls and remove visibility="gone" from standard battery references.
[General Questions and Answers] muffinboy9:
[MENTION=5008415]C3C076[/MENTION], sir could you share how you were able to fix the Caller ID problems of your phone/rom. I currently own a ZTE V987 and have been trying to look for a fix for the same problem. I currently have android 4.1.2 Thanks! :)
[General Questions and Answers] C3C076:
I'll probably write a guide for it...
[General Questions and Answers] C3C076:
The guide: http://xdaforums.com/showthread.php?t=2268120
[General Questions and Answers] danhii:
.........................
[General Questions and Answers] muffinboy9:
[MENTION=5008415]C3C076[/MENTION], thank you so much for the guides! Time for me to review these stuff yet again :)
[General Questions and Answers] arcadesdude:
Did you mean the sim slot 2 icon?

If so version 1.5 of gravitymod2 hides it automatically for you.
[General Questions and Answers] C3C076:
He wants it for another mtk6589 device.
[General Questions and Answers] danhii:
..........................
[General Questions and Answers] C3C076:
Hehe :) it's not as easy as editing build.prop.

SystemUI has to be decompiled and changes in smali code made.
[General Questions and Answers] danhii:
................
[General Questions and Answers] danhii:
.............
[General Questions and Answers] C3C076:
SystemUI.

SignalClusterViewGemini
[General Questions and Answers] danhii:
..................
[General Questions and Answers] C3C076:
No, it's in smali. Sorry, I can't help any further. Lack of time.
[General Questions and Answers] danhii:
..............
[General Questions and Answers] C3C076:
The guide: http://xdaforums.com/showthread.php?t=2270776
[General Questions and Answers] arcadesdude:
I'm not finding this change so easy. I just want to change the battery back to stock but am having a time of it. First of all, I have edited one xml file gemini_status_bar.xml which is the only one I found a reference to circlebattery inside (using a text search inside all files of the decompiled SystemUI.apk folder). There is a line there:

<com.android.systemui.statusbar.policy.CircleBattery android:textAppearance="@style/TextAppearance.StatusBar.Battery" android:gravity="bottom" android:id="@id/circle_battery" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />

Which I deleted and was able to successfully recompile and adb push back to my phone...however the old circle battery still remains on my status bar.

So I see you mentioned smali....but when I decompile SystemUI.apk I do not get a smali folder at all. I did some reading and read that my SystemUI.apk isn't deodexed and the smali code is compiled in the SystemUI.odex file....but I can't seem to use baksamali to decompile it.

C:\Users\User\Desktop\framework>java -Xmx1024m -jar baksmali-2.0b4.jar -c :frame
work.jar -x SystemUI.odex

Error occured while loading boot class path files. Aborting.
org.jf.util.ExceptionWithContext: Cannot locate boot class path file /system/fra
mework/core.odex
at org.jf.dexlib2.analysis.ClassPath.loadClassPathEntry(ClassPath.java:2
17)
at org.jf.dexlib2.analysis.ClassPath.fromClassPath(ClassPath.java:161)
at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:58)
at org.jf.baksmali.main.main(main.java:270)

To change this battery in the status bar...what do I have to do?
[General Questions and Answers] C3C076:
You don't have to mess with the smali (odex) at all.

Removing CircleBattery from gemini_status_bar.xml and removing android:visibility="gone" from stock battery is enough.

The reason you still see the circle one is that you probably didn't recompile SystemUI.apk correctly.

If using ApkMultiTool, you have to say YES when it asks you if it's a system apk, then

say YES to create keep folder. Then you need to delete gemini_status_bar.xml from keep folder, as well as resources.arsc

and let the multi tool to finish compilation after that. You end up with unsignedSystemUI.apk which you need to push to phone.

Anyway, attached is the modified SystemUI.apk with stock battery.
[General Questions and Answers] macort:
THL W8 8GB GravityMod2 1.7- Android 4.2.1.

Dear all

I installed this rom yesterday morning. Everything works properly, really fast and no bugs found until now. Thank very much for this

I followed all the steps of the forum web http://xdaforums.com/showthread.php?t=2249808 and updated to the 1.7 version.

I have observed that the battery consumption is very high compare with the THL stock ROM android 4.1.2

Any feedback about that? Is it possible to suggest an improvement about the power botton for the next update??

Thank you in advance
[General Questions and Answers] code8100:
How to disable to auto-hide signal icons for SIMs.

I just got the thl W8 4GB version yesterday, and installed GravityMod2 to my W8. It's very good and smoothly working.

I am really appreciate [MENTION=5008415]C3C076[/MENTION]

But the signal icons does not appear although the SIM is correctly recognized. My SIM works only for data connection, no support voice and SMS.

So following good GM2 feature may reject to correctly work with my SIM. Could you please point out how to disable following automatic SIM recognition feature.

- Auto-hide of signal icons for empty SIM slots

- No annoying "SIM card not inserted" notifications

---------- Post added at 06:37 AM ---------- Previous post was at 06:28 AM ----------

I just found following important resource written by [MENTION=5008415]C3C076[/MENTION]. As first, I will read this.

http://xdaforums.com/showthread.php?t=2270776
[General Questions and Answers] C3C076:
Well, this is strange. Because the condition that decides whether to hide signal icon or not is related to what isSimInserted method returns.

One would expect, that even if you use SIM for data only, isSimInserted should return true, anyway. But it seems it is not...

Btw, can you describe how your signal icon looked like when you used that SIM on official rom?

Anyway, I can make a little mod tomorrow - to disable the feature for SIM Slot 1 and leave it only for SIM Slot 2.

So if you use your data SIm in SIM Slot 1, there will be a signal icon for it.
[General Questions and Answers] code8100:
Thank you very much for your quick reply, C3C076;)

Yes, I read your modification document for auto-hide signal icon. Just isSimInserted is trigger, but my SIM is surely recognized by the system setting menu "SIM management".

And I do not try to confirm with official ROM yet. At least, the signal icon appears with my SIM on my previous dual sim support phone based on MTK6577.

Anyway I will wait for your disable patch for SIM slot 1. Thank you so much again for your support.
[General Questions and Answers] C3C076:
I've sent you a PM with info and link to update package to test.
[General Questions and Answers] turbojim88:
Thl W8 issue

Dear C3C076,

I read your all your posts in developer forum (GM2), but I'm not allowed to join that threads due to XDA regulatons. My issues are:

1) Bought my China market W8 (1G+4G) with no Google account.

2) Installed Google Play from China apps stall but won't launch and this popped out: (this could be a temporary problem or your sim card may not be provisioned for data services".

3) Tried many ways like installing the missing apks. (i.e. GoogleCalendarSyncAdapter.apk; GoogleContactsSyncAdapter.apk; GooglePartnerSetup.apk) Just won't work.

I saw you mentioned about some development done by you specifically for China Market and International market. What is the difference?

Need help desperately......:confused:

---------- Post added at 10:02 PM ---------- Previous post was at 09:54 PM ----------

Dear C3C076,

By the way, my model is:

Android 4.2.1

Kernel version: 3.4.5

Thl_W8.JB2.HD.CN.COM.8P32_MT6589V1.0.9_20130418

:o
[General Questions and Answers] C3C076:
I have only GM2 that's for international market containing all the necessary Google apps.

I recommend switching to that one.
[General Questions and Answers] turbojim88:
Dear C3C076,

Due to the long thread (started since April), I might get lost somewhere in terms of the right steps and directions to install your GM2. Do you mind to give me from Step 1 to completion?

I found there are many incremental versions to keep up, so not sure where to do it one-by-one or, go straight to v1.8. I'm not a tehc-savvy guy, please pardon me. The reason I touched the subject of CWM version 6.0.3.2 because I'm not sure which one to pick:

- ThL_W8.JB.HD.EN.COM.8P32_MT6589V1.0.4_20130328 (W8 4GB international

- ThL_W8.JB2.HD.CN.COM.8P32_MT6589V1.0.9_20130418 (W8 4GB Chinese)

- ThL_W8.JB2.HD.CN.COM.8P32_MT6589V1.0.3_20130508 (W8 4GB Chinese Lewa OS)

For your information, there is one latest filmware (not available in needrom) released by the official Thl website: 20130511(FH4). It claimed to improve the camera photo taking quality.

Many thanks!
[General Questions and Answers] C3C076:
Camera quality on gm2 is already improved.

Regarding installation, gm2 thread has all the necessary info in the first post, so I would just repeat myself...

Regarding recovery - use the one matching your build number. But you don't need to install it separately if you are going to install gm2. Recovery is already a part of it.
[General Questions and Answers] turbojim88:
Excellent! God bless you C3C076.
[General Questions and Answers] code8100:
gyro sensor does not work

I checked gyro sensor on my thl W8 (4GB) with Android Sensor Box.

https:// play.google.com/store/apps/details?id=imoblife.androidsensorbox

The sensor is detected by this app, but the rectangle on this app does not work with motion.

The gyro sensor information is as follows, is this correct?

Name MPU3050c gyroscope Sensor

Vendor Ivensensor

Version 1

Power 6.1

Maximum range 34.91

Resolution 0.0107
[General Questions and Answers] code8100:
I am usually use GM2 v.2.0 now (Gyro sensor is detected, but does not work), but I have just changed the following stock rom. The gyro sensor is not detected with this stock rom. Therefore, I think W8 does not have gyro sensor actually.

http:// pan.baidu.com/share/link?shareid=424439&uk=4213659546
[General Questions and Answers] maleficmax:
OTG in GravityMod2

It seems, that our device is almost the same as Zopo C2, but Zopo has OTG, and W8 does not.

Is it possible to add support of OTG in GravityMod2, or there are some hardware restrictions to do it?

Thank you for you work!
[General Questions and Answers] glisignoli:
Ipega Support

Would it be possible to add Ipega Bluetooth controller support to GravityMod?

I can't seem to get the controller to pair. Is there anything I can supply you with (logs etc) that could help with this?
[General Questions and Answers] arcadesdude:
Same problem. Seconded.
[General Questions and Answers] C3C076:
Sorry guys, but I am not going to investigate on this since :

1) it could be deeply in the system and hard to identify ( might be also related to kernel < - > libs incompatibility)

2) impossible for me without actually having that BT device to test with.

It would be easier for you to stick with official fw (if it works there, though) and install standalone gravity box app which will basically add the same features that are in GM2. (Except for 60fps that is available on 4gb/8gb w8 , anyway)
[General Questions and Answers] lelemm:
Came here just to say: nice work! =)

Probably will come back in the weekend after installing the GM2 on my phone.

Thanks!
[General Questions and Answers] ronkop2012:
home button wake up and more questions

Hi

1. Has anyone solved the problem that the phone don't wake up by pressing the Home button?

(I added the word WAKE_DROPPED, but the device wakes up only part of the time and did not wake up at all when going into sleep)

2. Anyone know how to increase the vibration of the touch keys? Is really weak ...

3. Anyone know how to do touch keys have a vibration in situations like quiet mode \ vibration? Not only in normal mode.

This is for now.

The most important thing is the home button to wake the device.

Thank you so much for helping!
[General Questions and Answers] arcadesdude:
1. Many people have already asked about that. I think there is some info in the "THL W8 Anybody?" Thread. The answer I remember is that while you can add it to turn on the phone it won't work all the time. It doesn't work all the time because of a hardware limitation of only the power button waking the phone when it is 'deep sleeping.' Nothing more can be done about this I'm afraid. :(

2 & 3. I don't know...maybe someone else here does.
[General Questions and Answers] ronkop2012:
had idendsho

ok,thank you very much.

i saw the "THL W8 Anybody?" thread.

It is very disappointing that it does not work, I'm used to my previous device and it's not always easy to operate the power button.

I'm used to a lot of things from CM10 rom.

If anyone knows anything about this problem or the other problems , I'd love to get a solution for it.
[General Questions and Answers] Dbuiz:
Bugs I'm experiencing, anyone else?

First of all, thanks C3C076 for all your work on the ROM and support for these phones. Makes the world of difference, no matter how good the hardware without the software it means nothing.

I finally got my hands on my THL W8 (4Gb) and flashed v2.6 of the ROM and have kept up to date on GravityBox (I did overlook extracting the boot.img for my first flash though). I have been experiencing a number of little problems and have read the entire [ROM] thread and this one and surprised noone else have commented on these.

I'm wondering whether it's just happening to me and if so if there are any ideas to try to fix them?

1) Apps randomly crash often at start-up. Apps range from system to messaging to maps, basically core apps

2) Phone will hang and restart maybe 3-4 times a day (normal?)

3) This is the weird one, I have a lot of trouble installing apps from Play/restoring apps from Titanium. A number of apps would continually give me error messages. This happened to a number of apps including google maps(?!) The weird thing is that for some apps it was just a matter of trying like 10 times or rebooting and trying or just random luck and it installed

- Package file is invalid;

- Unknown Error code during application install: "-24";

- I think there was also a verify/unsigned error

I tried reflashing a few times all to v2.6 (MD5 checked) and have also tried combinations of factory reset, wiping cache/davlik cache but still have these issues. I know there isn't much detail here and can do a dump if instructed.

Any ideas?

Thanks in advance and thanks again for all your work to date :good:
[General Questions and Answers] C3C076:
What is your original build number?

There are some newer 4GB batches of W8 which have some HW differences when compared to first batches sold in April.

That might be your issue. My recommendation is to return to your original FW to see if it works OK.

Then you could also install standalone GravityBox on top of it (together with Xposed framework) so you can get all the fixes and mods.
[General Questions and Answers] Dbuiz:
Wow...thanks for the quick response. Unfortunately I got too excited and didn't make a back-up of the stock rom. Will try to load one of the official roms over the weekend. The SN on the phone ends in (FH4) not sure if that's informative though

Thanks again
[General Questions and Answers] iecu:
First of all, a big thanks to C3C076 for his work.

Now the porblem that I facing :)

I've installed on THL W8+ with an initial ROM version (should be 1.0.2 or 1.0.3, I've not noted before upgrade it), clear all the cache and turn-on the phone. Everything seem work correctly BUT when I push the power button to wake-up it the screen remain blank for several (a lot, 20 or more) seconds before display the unlock screen.

If, with the black screen, I swipe as unlock the phone and seem that it work, because a sound is generated and the key work correctly

Moving on the last official THL release (ThL_W8.JB2.FHD.EN.COM.8P128_MT6589V1.0.5_20130517) everything seem work fine.

BTW, also on previous THL vanilla release I never experience this kind of problem

Have you some suggestion on things/configuration/procedure that I can follow to reduce this inconvenient?

Thanks in advance

Iecu
[General Questions and Answers] C3C076:
Yes. Stay on stock ROM. There's really no point staying on gm2 if you experience problems. By installing standalone gravitybox app you get all the goodies on stock fw as well. (BTW your issue is related to auto brightness. If you turn it off it should be fine.)
[General Questions and Answers] lelemm:
I installed the GM2 2.6 on my phone.

- Camera works

- Interface is perfect, smooth as butter =p

But the internet connection from network doesn't work (3g, edge, nothing). Tried doing all the things on the other topic (tried reconfigure apn's, tried copy apns-conf.xml from stock and reset apn configuration). But no deal yet...

I'm downloading the italian mod quoted on the other topic and i'll try to use it to see if i have connection problems with it too...

My stock version is ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.4_20130510

Can anyone point how to solve this?

Thanks!
[General Questions and Answers] lelemm:
OK, that was weird, but worked!

I followed the instruction someone gave in the other topic:

- Install the Italian ROM (i installed using AROMA -> Copy Aroma ROM to External SD Card -> Turn the phone in recovery mode -> install zip from external sd card -> follow steps -> done)

- Configure your SIM Card to work with it

- Shutdown phone

- Install GM2 using SP Flash

- Do not clean cache/data

- Restart phone

- Now 3g works!

Can you take a look on this C3C076?
[General Questions and Answers] iecu:
Thanks C3C076 for the promptly response but I've to say that auto brightness was already off (it's the default set). I've also tried different level and auto brightness also but never work :(

I'll try to install gravitybox

Thanks again

Iecu