[MOD]Lower Auto-Brightness levels to save battery XFJVA - Galaxy S I9000 Android Development

I modded the values in the framework-res.apk/res/values/arrays.xml to lower the auto brightness settings using apk tool which hopefully should save battery
this is the values i used
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
the low value is when your in low light and the high value is when your in sunlight default samsung is
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
this only works for XFJVA i don't have time to change it for jvt hope this helps people save battery
DOWNLOAD LINK
http://www.multiupload.com/5AL40WN0VC

Can someone else port this to JVT?

Related

[MOD] XWJVX CRT SIP 3G Autobrightness tweak

I have Modded the framework.apk to give crt and cif over 3g by editing the bools.xml file.
i modded the file in framework-res.apk/res/values/arrays.xml to give lower brightness much lower than samsung default
Samsung default
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
My version
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
it should give much better battery life on auto brightness and to get the best out of it use a kernel which has light sensor polling set to 1s
download framework.apk file and use adb or root explorer to install to system/framework
http://www.multiupload.com/W0R9QYLXSE
newcastle9 said:
I have Modded the framework.apk to give crt and cif over 3g by editing the bools.xml file.
i modded the file in framework-res.apk/res/values/arrays.xml to give lower brightness much lower than samsung default
Samsung default
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
My version
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
it should give much better battery life on auto brightness and to get the best out of it use a kernel which has light sensor polling set to 1s
download framework.apk file and use adb or root explorer to install to system/framework
http://www.multiupload.com/W0R9QYLXSE
Click to expand...
Click to collapse
going to check. thanx...i was looking for this.
sajibcy said:
going to check. thanx...i was looking for this.
Click to expand...
Click to collapse
Let me know what you think
Sent from my GT-I9000 using Tapatalk
Thanks.
Any chance for JVZ?
it's the same for jvz, jvz, jvx, jkk ... just decompile framework-res.apk, then change arrays.xml in /res/values ... then recompile ... and ...
question
would it work in XXJVT???
Did you try more steps of brigtnes? Is it possible?
grzessiu said:
would it work in XXJVT???
Did you try more steps of brigtnes? Is it possible?
Click to expand...
Click to collapse
It won't work with jvt I tried better brightness values but this configuration seemed better on battery. In a couple of days I will add a jvt version
Sent from my GT-I9000 using Tapatalk

[MOD] XWJW1 CRT SIP 3G Autobrightness tweak

I have Modded the framework.apk to give crt and cif over 3g by editing the bools.xml file.
i modded the file in framework-res.apk/res/values/arrays.xml to give lower brightness much lower than samsung default
Samsung default
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>69</item>
<item>118</item>
<item>177</item>
<item>255</item>
</integer-array>
My version
Code:
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>30</item>
<item>70</item>
<item>130</item>
<item>255</item>
</integer-array>
it should give much better battery life on auto brightness and to get the best out of it use a kernel which has light sensor polling set to 1s
download framework.apk file and use adb or root explorer to install to system/framework
Download Link http://www.multiupload.com/CNAV8G3J68
for some reason this brightness tweak does not work on stock, cfroot or talon kernel but works on semaphore.
before applying this tweak I would get 2 hours and 30 minutes display time with the tweak I can get 3 hours and 30 minutes
Cannot see such folder "framework-res.apk/res/values"
decompile with apktool than can you find this

[Q] editing fallback_font.xml file

I checked the suggested similar threads, but didn't see anything that seemed to pertain to my question......
Anywa, it seems that I might be in way over my head, but still, it seems that this should be simple to do? In system/etc there is an xml file, fallback_fonts.xml which determines the order in which fonts will be searched to handle glyphs that are not system level fonts. I wish to modify that file.
The problem I wish to address is the proper display of Japanese fonts. In this xml file, DroidSansFallback.ttf comes before MTLmr3m.ttf. As a result, simplified Chinese fonts are always selected rather than the Japanese font (MTLmr3m.ttf). While many of the characters are the same as the Japanese versions, a significant number are not. I found a couple of xml editors on the web (XML Notepad 2007 and FirstObject XML editor) and used each of them to move MTLmr3m.ttf before DroidSansFallback.ttf. However, after saving, renaming and rebooting, the entire file appeared to have been corrupted, no matter which editor I used. For example, not only do I not have any Asian fonts, but One More Clock is unable to display time and temperature. So it appears that this is not as simple as I assumed.
In the Android 4.1 distribution for the GNex, there was also a fallback_fonts-ja.xml which placed MTLmr3m.ttf before DroidSansFallback.ttf. Therefore, it was a simple matter to rename and substitute that file and all was good. However, the 4.2 distribution does not include a fallback_fonts-ja.xml file. But I thought, I will make my own fallback_fonts-ja.xml! How hard can it be? Well...
So, I am hoping that this is in fact a simple process for more experienced and capable folks and that someone will be kind enough to show me how to do this.
Thanks much!
<?xml version="1.0" encoding="utf-8"?>
<!--
Fallback Fonts
This file specifies the fonts, and the priority order, that will be searched for any
glyphs not handled by the default fonts specified in /system/etc/system_fonts.xml.
Each entry consists of a family tag and a list of files (file names) which support that
family. The fonts for each family are listed in the order of the styles that they
handle (the order is: regular, bold, italic, and bold-italic). The order in which the
families are listed in this file represents the order in which these fallback fonts
will be searched for glyphs that are not supported by the default system fonts (which are
found in /system/etc/system_fonts.xml).
Note that there is not nameset for fallback fonts, unlike the fonts specified in
system_fonts.xml. The ability to support specific names in fallback fonts may be supported
in the future. For now, the lack of files entries here is an indicator to the system that
these are fallback fonts, instead of default named system fonts.
There is another optional file in /vendor/etc/fallback_fonts.xml. That file can be used to
provide references to other font families that should be used in addition to the default
fallback fonts. That file can also specify the order in which the fallback fonts should be
searched, to ensure that a vendor-provided font will be used before another fallback font
which happens to handle the same glyph.
Han languages (Chinese, Japanese, and Korean) share a common range of unicode characters;
their ordering in the fallback or vendor files gives priority to the first in the list.
Language-specific ordering can be configured by adding a BCP 47-style "lang" attribute to
a "file" element; fonts matching the language of text being drawn will be prioritised over
all others.
-->
<familyset>
<family>
<fileset>
<file variant="elegant">DroidNaskh-Regular.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file variant="compact">DroidNaskh-Regular-SystemUI.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansEthiopic-Regular.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansHebrew-Regular.ttf</file>
<file>DroidSansHebrew-Bold.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansThai.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansArmenian.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansGeorgian.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansDevanagari-Regular.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansTamil-Regular.ttf</file>
<file>DroidSansTamil-Bold.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>AnjaliNewLipi-light.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>Lohit-Bengali.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>Lohit-Kannada.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>NanumGothic.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>AndroidEmoji.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file>DroidSansFallback.ttf</file>
</fileset>
</family>
<family>
<fileset>
<file lang="ja">MTLmr3m.ttf</file>
</fileset>
</family>
<!--
Fonts below this point have problematic glyphs and should not be moved
higher in the fallback list until those glyphs have been fixed.
-->
<family>
<fileset>
<file>Lohit-Telugu.ttf</file> <!-- masks U+FFBC-10007 -->
</fileset>
</family>
</familyset>

[Q] Need help making custom haptic feedback

I really like strong haptic feedback with pressing the captivate buttons. I've made custom mods before for increasing the haptic feedback, but I seem to be stumped on how to get it working right on the S4.
Previously I've always followed instructions from this thread modifying the framework-res.apk, and adapting it for whatever phone I was on. Most recently this was the Tmobile G2 phone, and it worked great. I was able to give myself super strong haptic feedback with no issue.
Now with the S4 I've run into an issue. I follow all the instructions from the guide, and get the framework-res.apk compiled with no issues. I made a flashable zip file to install it. I'm able to flash the zip from recovery and it successfully flashes, but when looking in the file manager I notice that the framework-res.apk date has not changed. I also have the same weak haptic feedback that I've been using since I got the phone.
I don't think the date is really an issue or indication that the file was not changed, due to the fact that I used the same process for making a flashable zip for my old phones, as well as the AOSP browser for this phone. They all always never changed the date.
My question really is this, is there an easier way to do this that I'm just overlooking, or is it not possible to do this because of the samsung touchwiz stuff?
currently my updater-script looks like this:
Code:
ui_print("Installing");
show_progress(1, 15);
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "/sdcard");
run_program("/sbin/busybox", "mount", "/dalvik");
package_extract_dir("system", "/system");
ui_print("Installing complete");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/data");
run_program("/sbin/busybox", "umount", "/dalvik");
run_program("/sbin/busybox", "umount", "/sdcard");
ui_print("All Done");
And the values in the arrays.xml are as follows:
Code:
<integer-array name="config_longPressVibePattern">
<item>50</item>
<item>50</item>
<item>140</item>
<item>140</item>
</integer-array>
<integer-array name="config_virtualKeyVibePattern">
<item>50</item>
<item>120</item>
<item>140</item>
<item>160</item>
</integer-array>
<integer-array name="config_keyboardTapVibePattern">
<item>160</item>
</integer-array>
<integer-array name="config_safeModeDisabledVibePattern">
<item>50</item>
<item>51</item>
<item>140</item>
<item>141</item>
</integer-array>
<integer-array name="config_safeModeEnabledVibePattern">
<item>50</item>
<item>51</item>
<item>140</item>
<item>141</item>
<item>500</item>
<item>600</item>
</integer-array>
<integer-array name="config_scrollBarrierVibePattern">
<item>50</item>
<item>70</item>
<item>120</item>
<item>120</item>
I've tried using smaller numbers like I usually do. I normally don't have anything above 70 when I've done the mod before, and can physically feel a big change. Even with the numbers pumped like these I'm still feeling very weak haptic feedback.
Any help on this would be greatly appreciated. I know this type of mod is normally per ROM and currently I'm using the WICKED™ v2 [ 5-15-13 ] Deviant Development -MDL- 4.2.2 from evil1art to try get the mod working.
I think I may have found another way to try things. Want to say thanks to elesbb for commenting on this thread.
His signature has links to some other tool I'm going to have a go with. Will be a few days before I get a chance to try again though.
Still open to suggestions / directions on if I'm doing something wrong or if this is even possible with the TouchWiz stuff. Really want to get stronger haptic feedback.

Customize and create your own dynamic icons

PART 1
STEP 1
Dimensioning Your Icons
There are many Software for this you can go for gimp, photoshop, illustrator and many more.
I prefer photoshop.
You can download or purcase from Adobe Store.
Icon size: 136 x 136 (pixels)
STEP 2
Adding layer styles.
Playing with Bleending option.
Add your design your settings add beveal, drop shadow and much more.
IMPORTING ICONS TO MIUI THEME EDITOR
STEP : 1
Now the First thing to DO is Extract the zip file.
STEP : 2
Now GO to MIUI Themes Editor and launch it.
There are two ways of getting started up.
Either select a Theme and Edit or start a new project
STEP : 3
Starting Up a New Project.
[Note: Click on the picture for Enlarging]
STEP : 4
Click on File > New Theme
STEP : 5
Specify a name and Location.
STEP : 6
Later Adding
Theme Name
Author
Designer
Version
PART TWO [ IMPORTANT ]
This is how you reach a fancy icons they are noting but icons with Gif kind of animation we call them dynamic
So what's so special about them ?
Heh!!
You need to know som XML tricks like i am going to show you and i will even share my files which you can edit.
So the above metioned picture is an example how to place it.
FOR CALENDAR
Icons
| __ fancy_icons
|__ com.android.calendar
manifest.xml should be place inside the folders with pngs files
<?xml version="1.0" encoding="utf-8"?>
<!-- calendar -->
<Icon version="1" frameRate="0" width="136" height="136" screenWidth="720" useVariableUpdater="DateTime.Day">
<VariableBinders>
<BroadcastBinder action="android.intent.action.TIME_SET" />
<BroadcastBinder action="android.intent.action.DATE_CHANGED" />
</VariableBinders>
<Group pivotX="68" pivotY="68">
<Image x="68" y="68" align="center" alignV="center" src="date.png" srcid="#date" />
</Group>
</Icon>
You need to edit them accordingly like i have thepng files settled inside the folder com.android.calendar
For Rotational ICONS
<?xml version="1.0" encoding="utf-8"?>
<!-- Audio -->
<Icon version="1" frameRate="30" width="192" height="192" screenWidth="1080" >
<Image x="96" y="96" align="center" alignV="center" src="icon_bg.png" />
<Image x="96" y="96" align="center" alignV="center" centerX="59" centerY="59" src="gear.png" >
<RotationAnimation>
<Rotation angle="0" time="0"/>
<Rotation angle="360" time="10000"/>
</RotationAnimation>
</Image>
</Icon>
And place the Two icons inside the subfolders.
Source : http://en.miui.com/thread-76404-1-1.html
Credits to the OP.

Categories

Resources