yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] xdaillum:
Thanks so much for your work c3c076.

I have some questions.

1) I followed the repartitioning instructions to get more space for apps. Is there anyway to undo it if I want to? Phone storage was 1.3GB and now is 785MB - this is because about 500MB got repartitioned for apps right?

2) I used root checker after using your clockworkmod recovery installation instructions to confirm that the phone was rooted because there was no Superuser. Afterwards, I installed GravityMod2 and SuperUser was there. How can you get Superuser and stay on stock ROM?

3) I did not get the error message of damaged storage in step #9 of repartitioning. Is this a problem?

Thanks for your help
[Miscellaneous Android Development] C3C076:
1) Yes. SImply flash EBR1 and EBR2 taken from official fw

2) There are many ways. You could flash this package in CWM which installs SuperSU (it's old so play store will notify you of new version available) http://goo.im/devs/C3C0/THLW8/root

3) No
[Miscellaneous Android Development] d3xtr0:
Good morning. I m using other ROM with your gm app. And it works Weill!! :) I just have a problem, I guess its a rom problem but if you can help I would be grateful.:)

where can I change the default write disk to SD card manually, not from settings because it didnt work. What's the file/files I have to change?

Thanks :)
[Miscellaneous Android Development] C3C076:
What device? What version of gm2?

3.1 hotfix for w8 4gb/8gb solves this issue. But if you mean something different, please, provide more details.
[Miscellaneous Android Development] d3xtr0:
I m using that Samsung version talked before, just because of audio improvement. I ve installed you GM v1.7.1 with xposed framework. It works well. But I guess the ROM have some bug that doesnt let me use SD card as default write disk, even after changed it on settings. Looks like TVE value isnt applied because it doesnt ask to restart. I know its not your ROM ir you dont wanna to help me or dont have time to noobs like me, its normal no problem :) thnks
[Miscellaneous Android Development] C3C076:
I see. In that case, it would be more effective to contact the dev of that Samsung ROM.
[Miscellaneous Android Development] d3xtr0:
some audio improvement?

Ok thanks buddy.

One thing, you can improve the sound (music, call normal/speaker) of your rom or via gravity box app? What would you need? Because your rom is the one I like more, simple and effective. But on calls and headphones music seems a bit low volume. I don't know if I'm the only one with that feeling, if so, forget it.
[Miscellaneous Android Development] C3C076:
You can use engineering mode to adjust levels. There are guides. Try searching.
[Miscellaneous Android Development] gerryg73:
little problem

Hi

Since the 2.0 version of GM2 when someone calls me and I don't want to answer I can't stop the phone ringing... Before 2.0 version I pushed On/Off Button to mute the ringing...

:confused:
[Miscellaneous Android Development] C3C076:
Why do you use power button?

Use volume down. Single press will mute it. You can also set Flip action in gravity box so you can mute ringer by flipping phone face down.
[Miscellaneous Android Development] gerryg73:
volume + and volume - don't give any answer on incoming call

no I'm going to try with flip down action...

strange... with stock rom and with old gravity mod versions the on/off button worked:eek:
[Miscellaneous Android Development] C3C076:
It works here on 8gb w8 and gm2 3.2

Pressing power button mutes ringer and turns display off. Call is not dismissed, only muted.
[Miscellaneous Android Development] gerryg73:
I can confirm you that on my w8+ mute ringer doesn't work... also with flip down action on gravity box
[Miscellaneous Android Development] uniextra:
Hi again, i a camera problem, i have 3.2 and no front camera, i aply the fix and again no front camera...

my device is w8 4gb with original firmware ThL_W8.JB2.HD.EN.COM.8P32_MT6589V1.0.4_20130510
[Miscellaneous Android Development] C3C076:
What do you mean by "no front camera"?

There's no icon to switch to it or it crashes when you try to switch to it?

Have you tried clearing data for Gallery app? What fix did you apply exactly? 3.2 and additional camera fix package?
[Miscellaneous Android Development] uniextra:
hi theres no icon to switch... i have tried the fix on the first page... i havent done the cleaning app since it's not crashing...
[Miscellaneous Android Development] C3C076:
OK. Looks like you have different front camera sensor. Tomorrow I'll try to send you a potential fix.

Have you tried without applying any fixes? Nor 3.2, nor camera fix?

(Just pure gm2 3.1)
[Miscellaneous Android Development] ch-vox:
Here it is.
[Miscellaneous Android Development] Boozezela:
With OS monitor I've noticed that as soon as I swipe the screen down, the following happens:

- Core 0 goes from 497.25MHz to 1.21GHz immediately

- Core 1 goes online and goes to 1.21GHz as well

After a few seconds they both go down to 497.25MHz and then the second core turns off.

Battery life on standby is the same (1%/hour drain). But the battery goes down quickly by just listening to music with the screen turned off.

EDIT:

I have done some empirical testing, leaving Wifi and 3G on, leaving my house and listening to music for about 1 hour. I have something like:

Unplugged: 2h, 12m

Deep Sleep 53m

Awake 1h, 18m

PWL 1h, 12m

Battery usage went from 100% to 96%, which is (according to BBS) about 2.8%/hour.

Leaving OS Monitor open with only music playing, I have noticed that Core 3 rarely goes online and that when I turn on the screen Core 1 changes state every 3 seconds (Offline, Online, Offline, Online and so on) while it stays at 497.25MHz.

Core 0 and 1 speed spikes to 1.21GHz, by just swiping on the screen or sliding down the notification panel (this alone takes up to 12% per core).

The use of the Hotplug governor, the other cores going online as soon there is a CPU usage of 3% and the neverending status changes for Core 1 could be all causes for battery drain when you are actively using the phone and the screen is also on.

I have not done the same testing with the stock kernel so I don't know if CPU behavior is the same.
[Miscellaneous Android Development] uniextra:
i have tried with 3.0 with no fix and no camera either
[Miscellaneous Android Development] gerryg73:
could someone tell me what to do? I still have this problem...

should I try to do a data factory reset from recovery? What will I loose ?
[Miscellaneous Android Development] C3C076:
You will loose your user installed apps and all the settings and user data. That's it.
[Miscellaneous Android Development] uniextra:
Also did the 3.1 with no fix and no icon ...

also aplied the fix and no icon yet
[Miscellaneous Android Development] C3C076:
[MENTION=5000683]uniextra[/MENTION]

Try flashing this package over your current version: http://ceco.sk.eu.org/GooMirror/THLW8/GravityMod2/thlw8-4GB-gravitymod2-camera-fix-20130728.zip

Make a backup before flashing just to be on the safe side.

Wipes are not required.

If camera still doesn't work I recommend trying with your stock build number if it works OK there.

You could even consider staying on stock FW and install standalone GravityBox.
[Miscellaneous Android Development] uniextra:
Thanks.. it didnt work either..

to flash the stock can i do it on recovery cmw? i do i need to use the flash tool?
[Miscellaneous Android Development] uniextra:
ok just flashed and no icon yet! only the flash appears! it might got broken?
[Miscellaneous Android Development] C3C076:
Well, it is possible. That was the reason I asked you to try with official. Was strange to me that nobody else reported to this day. So I thought it must had been something unique.
[Miscellaneous Android Development] C3C076:
I am not sure how much free time I'll have during upcoming days so I thought like I could at least release version containing what I was able to implement so far. So here it is.

GravityBox latest version

Download: GravityBox v1.8.0

Flash via clockworkmod recovery. No wipes needed.

Changelog 1.8.0 - 28/07/2013

- Media tweaks

--- option for expandable volume panel

--- option to unlink common volumes for ringtone and notifications to control them independently

- Quick settings

--- auto-switch to QuickSettings when there are no notifications is now configurable

--- option to use edges of status bar to quickly pull down QuickSettings (off,left,right)

- Hardware keys

--- option to disable volume rocker wake for devices like Jiayu G3S, G4, where volume keys turn on screen

--- this should also fix volume keys skip track for those devices

- Messaging wakelock fix

--- adapted to support more devices (Zopo, Jiayu G3s, G4)
[Miscellaneous Android Development] Boozezela:
A small bug: the expandability of the panel does not work on W8+ when the volume buttons trigger media audio (for instance when you are listening to music): the icon to expand the panel is there and it disappear as soon as I tap on it.

When the volume buttons trigger phone audio, everything is OK, including the ability to separate ringtone/notification volumes.
[Miscellaneous Android Development] C3C076:
Yes. Looks to be standard aosp behaviour. When music is playing, only music slider is available for some reason. I'll take a look if it could be changed.
[Miscellaneous Android Development] BuPe:
Great work, just updated my W8 16GB running GM 3.0!

One question though - I am coming from a Samsung Galaxy S1 and got used to waking the device with the home button. One of the main reasons why I bought the W8 instead of an UMI X2 or G4 was to have a real home button instead of just a touch button. Would it be difficult to have an option in GB to enable wake when pressing the home button? I read about a manual fix but that does not work all the time (and also it would be more convenient to have this as an option in GB instead of always having to edit the system file manually when reflashing).
[Miscellaneous Android Development] C3C076:
Some info.

http://xdaforums.com/showthread.php?p=44042731
[Miscellaneous Android Development] BuPe:
I see, this is bad news for me. I am no Android expert so this may be a noob question but would it be difficult to trigger a "wakelock" with GB that would make waking with Home button or volume buttons work with the W8?
[Miscellaneous Android Development] C3C076:
And how should GB know you are going to press button? :)
[Miscellaneous Android Development] Senapone:
Your tests looks really interesting!

About crazy core 1 do you think it's a governor problem?

It's such a shame we cannot change it... :(

---------- Post added at 09:53 AM ---------- Previous post was at 09:48 AM ----------

Hi C3C076,

Do you know where audio values from engineering mode are saved?

It's quite annoying to rewrite them every time we make a wipe data.

Do you think it's possible to backup and than restore them?

---------- Post added at 10:07 AM ---------- Previous post was at 09:53 AM ----------

About network changing from GravityBox tile, i made some tests during the weekend.

I follow your hint, i disabled all network settings (data connections and 3G) and starts using only GravityBox tiles.

When i switch from 2G to 3G i have no more problems, but when activating data connection (after catching 3G network) system gives me a popup message like "3G is off, if you activate data connection your browsing will be slow - Continue/Cancel" and if i tap continue data connection start with H+. :laugh:

So tiles made its work and pilot system networks but system just don't notice it. :good:
[Miscellaneous Android Development] C3C076:
To avoid that message, you could even do it the other way.

Leave 3G master switch always ON in the Mobile network settings.

Switching to 2G using tile won't switch 3G master switch off but will change network mode to GSM Only (which is basically 2G)
[Miscellaneous Android Development] C3C076:
EngineeringMode app is calling GetAudioData and SetAudioData methods of AudioSystem class (part of Android framework).

.method public static native GetAudioData(II[B)I
.end method
.method public static native SetAudioData(II[B)I
.end method

The implementation is done in native code (c++), this means it is implemented inside libmedia.so library from which we can hardly see

where data is actually written/read from...
[Miscellaneous Android Development] arcadesdude:
I think the main reason this isn't done is because creating a wakelock prevents the phone from deep sleeping. This drains batteries fast! Like probably half or more than half your battery life if the phone doesn't deep sleep.
[Miscellaneous Android Development] Boozezela:
Hotplug is the governor used for multi core devices and it has the ability to turn on and off cores depending on the system's load.

According to this page it should scale the speed covering all intermediate values.

The parameters for the governor can be found under /sys/devices/system/cpu/cpufreq/hotplug and can be changed on the fly, maybe we should compare them with the ones for other multicore devices (e.g. nexus 4, nexus 7...).

I have checked the state of the CPU using the instructions at this other page (note that the script covers only the speed for the first 2 cores) to have a more accurate reading and I saw the CPU going through all the speed steps and the various core turning on and off.

One strange thing that I have noticed is that when the phone is idling with the screen on, only Core 0 is on and it stays at 498MHz as one would expect BUT as soon as the screen turns off, Core 0 jumps and stays at 1.21 GHz.

1209000

988000

988000

1209000

497250

1209000

1209000

754000

497250

497250

497250

497250

497250

497250

497250

497250

1209000 <<< screen off.

1209000

1209000

1209000

1209000

1209000

1209000

...

I have also noticed that sometimes Core 0 alternates between 498MHz and 1.21 GHz every second for no apparent reason.

Also just touching the screen seems to be really overkill: Core 1 goes online and Core 0 and Core 1 both go from 498MHz to 1.21GHz immediately without intermediate steps.

Turning the screen off sometimes puts Core 1 online for a second. Turning the screen on also puts Core 1 and 2 online for a second as well.

Strange device...

EDIT: I have noticed that swiping through Twitter or Facebook posts, the battery drops by 1% every 5 minutes (Wifi on, screen @20%). Not good at all.

EDIT2: I have performed the same tests on Stock 1.0.7 and and I don't see changes both in CPU usage and battery drain.
[Miscellaneous Android Development] kevin.26:
Can you make a mirror for Gravity Box?
[Miscellaneous Android Development] C3C076:
My server is down. I will transfer GB package to goo server as soon as I'm at my PC.

EDIT: server is up again
[Miscellaneous Android Development] chentz78:
Hi,

I have a suggestion for feature on next release of GravityBox. Include an option to change font color of status bar clock. I see this in original post http://xdaforums.com/showthread.php?t=2332575. And if possible, an option to change color of circle and text of battery in status bar.

I think it's simple and cool.

Thanks

Cleverton
[Miscellaneous Android Development] NZ-Simplicity:
I was wondering if you would consider having Gravitybox setup in goomanager like you did for main upgrades where it let us know if there was an upgrade/update as it's starting to get a little confusing as to which version I got installed or not LOL
[Miscellaneous Android Development] BuPe:
So how does it work in Samsung Galaxy S1 CM10.1, Android 4.2.2? Difference in hardware? The buttons are there on both devices I wonder what is missing from our device that makes this impossible to implement...
[Miscellaneous Android Development] C3C076:
GravityBox / About - there you can see which version you have. You can check the first post to find out if you are up to date. Simple as that :)

I am planning to implement notifications about new update availability. But it is currently not a priority.
[Miscellaneous Android Development] NZ-Simplicity:
Thanks for that, I guess I should have looked at things a little more closely :)
[Miscellaneous Android Development] jasonbd:
Here are the answer to your questions, similar to mine ealier questions.
[Miscellaneous Android Development] chentz78:
Hi [MENTION=5008415]C3C076[/MENTION],

I would like to try some minor changes in GravityBox source code for test and learn. But I don't know how build GB from source.

Do you have any tutorial or documentation to build GB from source ?

I could build it like others Xposed modules or does it have any different config ?

I will be grateful for any help you can provide.
[Miscellaneous Android Development] d3xtr0:
Yep, i've seen it. But I was talking about something automatic. The values are saved on libaudio.so like C3C076 said. So I guess we just need to adjust it once and save the file. After you reflash a rom or something just need to replace the file. Didn't test because I'm not using this rom right now. But thanks for the info :)
[Miscellaneous Android Development] C3C076:
Builds like every other app. You need 2 java libs - xposedbridge api (from rovo's github) and libcore (master key patch requires it) from tungstwenty's github.
[Miscellaneous Android Development] chentz78:
Hi, I try this and I get compile error in file "FixDevOptions.java" (In other files too with same error) at line 85 with reference to "R" class. I included "android.jar" whit the API 17 (4.2.2 rev 2 on Mac Os 10.8.4), but it's like not see this class. I try change line to "android.R...", but with this error is in "window_animation_scale_entries" part. I import the project in Eclipse Indigo (Build id 20120216-1857).

Any tip for what I'm doing wrong ?

---------- Post added at 10:01 PM ---------- Previous post was at 09:17 PM ----------

Ok, I solved the problem. I marked the folder "res" as source code in Eclipse and it found the references.

Now I build the GB. :)
[Miscellaneous Android Development] C3C076:
I'll be off for couple of days so here's new GB release before I'm gone.

GravityBox latest version

Download: GravityBox v1.8.5

Flash via clockworkmod recovery. No wipes needed.

Changelog 1.8.5 - 01/08/2013

- fixed status bar background color not being applied at boot on some devices

- expandable volume panel - make ringer slider always available (e.g. also when music plays)

- option to set statusbar icon color and data activity indicators color

--- applies to all icons except for bluetooth and airplane mode icon

--- stock battery icon won't animate during charging when coloring is turned on

--- for mobile signal, the basic blue color is overriden. Other 3 colors in SIM Management can be used to override GB color

- reorganized statusbar preferences

- optimized resource handling

- updated Slovak, Czech, French, Russian translations
[Miscellaneous Android Development] BartAfterDark:
Dansk (Danish) isn't selectable as a language is it?
[Miscellaneous Android Development] C3C076:
Should be.
[Miscellaneous Android Development] BartAfterDark:
Could anyone check ? :) Because I don't own the phone yet, but thinking about getting it and using your great rom :)
[Miscellaneous Android Development] C3C076:
It certainly is in gm2 for 4gb/8gb version.

If I remember correctly, I added additional languages into 16gb, w8+ and beyond, too, so Danish is there for 99%. [MENTION=222082]Mr.P[/MENTION]remise can confirm that for w8 beyond.
[Miscellaneous Android Development] d3xtr0:
Something really strange happens with my w8. The usb is recognised only as charger. I plug the cable in and nothing, jsut the red led. Even in recovery, mount storage nothing happens. Someone has a guess? :s
[Miscellaneous Android Development] Ninpuukamui:
Have you tried a different cable? It is possible the one you are using now has only charging function, because it was designed that way out because it broke.
[Miscellaneous Android Development] kenturky:
confused

hi all, i have just got my thl w8 beyond today, and im really confused as to how to get it rooted+recovery with gm2 custom rom...

Some instructions are given how to get cwm recovery on the device, and for w8 beyond, the pdf was given. well, how do i install a new kernel without flashing? I downloaded the gravity mod rom, and i find 3 images Kernel.img, boot.img and recovery.img. should i install the cwm recovery, put this rom in the sd card, and install the zip from sd? or should i reflash the boot, uboot, and recovery using sp flash tool?

well, someone provide me some instructions what i am supposed to do from start to end...

Alright, heres what i did... I installed custom recovery using this method, as i couldnt wait.... now, ill try and find a way to root the device... or else, ill install the gm2 rom by flashing it from recovery.....
[Miscellaneous Android Development] satiros:
i see a lot of guys using thl ,so im trying to decide on a new phone,are you happy with thl quallity?

W8 has many versions

im interested in w8s or w8+

can you help me ?

Send a pm if not appropriate to comment here

THank you
[Miscellaneous Android Development] C3C076:
Please, ask in this thread instead:

http://xdaforums.com/showthread.php?t=2163522
[Miscellaneous Android Development] d3xtr0:
Yap buddy. 4 cables and three pcs with ubuntu and win7/8.. :s looks like.something happens with hardware, or maybe some file missing
[Miscellaneous Android Development] kenturky:
I know what you have to do...

Connect the usb cable to the computer, then bring down the notification bar, and tap "USB charge only, touch for other usb coptions" then choose USB storage, but you will have to send it back to charge only for high speed charging...

tried charging my phone, but it increases by 1% every 15 mins to half an hour.... that was too long.... :D
[Miscellaneous Android Development] kenturky:
dude, i backed up my rom using rom manager, went to the backup, and realized its not backed up into a zip.... all the data is in a folder. now, if i wanna restore the rom from cwm recovery, how do i achieve that?

I also downloaded gravitybox and flashed it via recovery... applied the tweaks, but didnt find any change.... do i need to do anything else? couldnt find anything to apply the tweaks....
[Miscellaneous Android Development] C3C076:
This thread, including flashable GB package is only for those running gm2 ROM.

You should use this thread to install GB instead:

http://xdaforums.com/showthread.php?t=2316070
[Miscellaneous Android Development] azarzar:
does the THL W8 16GB can be re-partitioned ?
[Miscellaneous Android Development] d3xtr0:
Nice try m8... But I really don't have any notification when plug it in: s

Under settings, storage, mount USB storage is disabled. It's normal?

Edit:

Using GM3 with GB 1.8.5
[Miscellaneous Android Development] satiros:
Thank you c3c076!

THANK YOU!

Υou are great person you are doing a great job here !
[Miscellaneous Android Development] kenturky:
hi, i installed the gm2 rom instead, and its pretty cool... now, i feel a bit upset about the camera.... The pictures seem to be a bit grainy especially if i zoom it to the max. I like the 30 step volume, but can you by any chance make a flashable zip of the latest version of the bravia engine? most probably its bravia engine 2 or 3... And also, i would like to improve the loudness of the speaker... put xloud mod along with bravia engine... that would be cool........