[Q] build.prop question - Paranoid Android Q&A

Hi, i've started to build aospa by myself from the legacy tree.
I have a question about build.prop generation.
Searching i discovered that it is composed by 3 parts:
first part generated by buildinfo.sh
second part taken from /device/<vendor>/<phone.model>/system.prop
3rd part called ADDITIONAL_BUILD_PROPERTIES
I would like to know more about the last one, i couldn't figure out how to modify the last part before compiling.
For example how can i add another prop like "qemu.hw.mainkeys=0" or modify the value of another one?
Thanks

Related

Progress-circle style/color editing

Ok - so lots of searches have brought together a good amount of information regarding this, but I'm still having a bit of trouble - and would love some help from the people who seem to know how to customize this. This could also be a good reference for the future.
I would really like to be able to edit the colors of the various progress bars/circles around the Android. But I cannot seem to figure this out.
So, the files are in the framework-res.apk/res/drawable/ folder, and are apparently the following files:
progress_horizontal.xml
progress_large.xml
progress_medium.xml
progress_small.xml
progress_small_titlebar.xml
So, here is a sample of what is in progress_horizontal.xml:
Code:
<!--
Copyright (C) 2008 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
−
<layer-list>
−
<item android:id="@android:id/background">
−
<shape>
<corners android:radius="5dip"/>
<gradient android:startColor="#ff9d9e9d" android:centerColor="#ff5a5d5a" android:centerY="0.75" android:endColor="#ff747674" android:angle="270"/>
</shape>
</item>
−
<item android:id="@android:id/secondaryProgress">
−
<clip>
−
<shape>
<corners android:radius="5dip"/>
<gradient android:startColor="#80ffd300" android:centerColor="#80ffb600" android:centerY="0.75" android:endColor="#a0ffcb00" android:angle="270"/>
</shape>
</clip>
</item>
−
<item android:id="@android:id/progress">
−
<clip>
−
<shape>
<corners android:radius="5dip"/>
<gradient android:startColor="#ffffd300" android:centerColor="#ffffb600" android:centerY="0.75" android:endColor="#ffffcb00" android:angle="270"/>
</shape>
</clip>
</item>
</layer-list>
I've dabbled in web-design, so colors like "#80ffd300" look familiar...except that they seem to have too many characters. I'm used to hex colors only having 6 characters.
So - question is...how would I go about customizing the colors? I want to change them all to a light-bluish color. I just don't know where to start.
i believe those are eight-digit hexadecimal color codes use google to search for them codes
Check out my modified kspec theme I have them set to a bluish color. When I edit the .xml files I use HxD. Look for the instances of 08 00 00 1C I think (or 80 00 00 1C) I think the first is correct but can't recall right now and am at work using my g1 to post. The next 8 digits after that string control color. Its also backwards so instead of AARRGGBB is typed in as BBGGRRAA the last 2 hex values controlling transparency. Also I think you are correct in all the files you can edit that are posted. In progress_horizontal there are 9 instances of 08 00 00 1C the first 3 controlling the graybackground and the next 6 controlling loading/progress color in the browser and volume and in the music app plus whatever has a horizontal bar lol. In the large medium small and small titlebar there are 3 instances of 08 00 00 1C with the middle one controlling loading color and the first and last being the gray scale. I found all this out by expirimenting with the .xml files, so I figured I would share my finding for all to use. Also if you use the Windows standard built in calculator you can enter in part of the RGB code under Dec and click hex and it will show the hexidecimal binary code that corresponds to it. That's an easy way to figure out any color you would want to use in the .xml I hope my long winded rant helps. I put so much explanation into this so someone that has no clue what to do can still modify the files they want to, not trying to imply the OP doesn't know what to do. Cheers happy editing
namsir said:
i believe those are eight-digit hexadecimal color codes use google to search for them codes
Click to expand...
Click to collapse
Ahhh...indeed. As posted right above me, the first 2 digits control opacity. From xbox-scene forums:
Ok... I have recently been messing with skinning my UnleashX dash. I could not find ONE single tutorial on how to skin so I figured it all out on my own. I learned quite a bit about just looking at the XML files of other skins... but I just couldn't figure out why the hex codes were 8-digit instead of 6. After much experimenting and comparing skins and thinking about it... I realized that the first two digits are OPACITY (transparency). The lower those first two hex digits amount to, the more transparent it is. FF is 100% opacity... and obviously 00 is 0%. The six after that are the hex color codes we all know and love. I thought I'd just contribute to anyone who is struggling to figure out what to do.
Click to expand...
Click to collapse
I am definitely following this. Sorry I can't be of more help
cal3thousand said:
I am definitely following this. Sorry I can't be of more help
Click to expand...
Click to collapse
its really not that hard to edit an .xml for color once you figure out what you are looking for and what you want to change. a week ago i knew absolutely positively nothing about how to edit an .xml, now classes.dex files........ i can use oshaka's colorChange.jar thats it. i can take apart the files but have no clue what i am looking at once i do
This would be a good add on to the colorChange.jar application... I posted the source to it already. You can see how it programatically hex-edits an XML file...
david1171 said:
its really not that hard to edit an .xml for color once you figure out what you are looking for and what you want to change. a week ago i knew absolutely positively nothing about how to edit an .xml, now classes.dex files........ i can use oshaka's colorChange.jar thats it. i can take apart the files but have no clue what i am looking at once i do
Click to expand...
Click to collapse
Pretty much a ditto there on all accounts. I would love to change the circles to either a turquoise or just white so it looks like an Oreo. lol
The files above can be edited just like any other xml.
There is only one reference on the small/medium/large to color that is yellow'ish, and a couple in the horizontal.xml.
These are very few of "all" of the xmls that will need to be edited in order to cover all of the progress bars though.
It looks like some of the actual applications will need to be touched as well (most spefically the browser/market/framework)...
...I think a longer list would be in the works if people wanted to really completely do this.
mianosm said:
The files above can be edited just like any other xml.
There is only one reference on the small/medium/large to color that is yellow'ish, and a couple in the horizontal.xml.
These are very few of "all" of the xmls that will need to be edited in order to cover all of the progress bars though.
It looks like some of the actual applications will need to be touched as well (most spefically the browser/market/framework)...
...I think a longer list would be in the works if people wanted to really completely do this.
Click to expand...
Click to collapse
I have only edited the files above for loading bars ,circles, etc., and from I have not encountered an instance where the bar was a different color. The market, browser, music, volume adjustments, in twidroid.... have all had the changed color. Has anyone found an app where it isn't the changed color?
david1171 said:
I have only edited the files above for loading bars ,circles, etc., and from I have not encountered an instance where the bar was a different color. The market, browser, music, volume adjustments, in twidroid.... have all had the changed color. Has anyone found an app where it isn't the changed color?
Click to expand...
Click to collapse
You were right:
In progress_horizontal there are 9 instances of 08 00 00 1C the first 3 controlling the graybackground and the next 6 controlling loading/progress color in the browser and volume and in the music app plus whatever has a horizontal bar lol.
Click to expand...
Click to collapse
A paragraph would have made that brick a little more readable maybe. I missed the other references in _horizontal. : (
mianosm said:
You were right:
A paragraph would have made that brick a little more readable maybe. I missed the other references in _horizontal. : (
Click to expand...
Click to collapse
Sorry I was typing that from my G1 at work, and once I got started I didn't think about the way it looked.
So, perhaps it is an Ubuntu thing - but I can't seem to open any of the XML files without getting this jarbled block (which I take to mean that it doesn't recognize the encoding):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What am I supposed to do about this? I just want to edit the file, and I seem to remember being able to in certain themes. I've tried using XML editors and they say they don't recognize the encoding. The screenshot is from one of the stock CM 3.9.1 Theme Template XMLs.
How do I fix this?
I always use HxD to edit .xml files and it has never given any problems. Sorry I use Windows or I would be of more help, but if no one else can help you try HxD
erissiva said:
So, perhaps it is an Ubuntu thing - but I can't seem to open any of the XML files without getting this jarbled block (which I take to mean that it doesn't recognize the encoding):
What am I supposed to do about this? I just want to edit the file, and I seem to remember being able to in certain themes. I've tried using XML editors and they say they don't recognize the encoding. The screenshot is from one of the stock CM 3.9.1 Theme Template XMLs.
How do I fix this?
Click to expand...
Click to collapse
Ghex for Gnome.
Khex for KDE.
If you are using a better window manager like xfce or xlde, dunno, check the repository for your distribution. ; )
mianosm said:
Ghex for Gnome.
Khex for KDE.
If you are using a better window manager like xfce or xlde, dunno, check the repository for your distribution. ; )
Click to expand...
Click to collapse
I've used GHex extensively. It just seems to give me a fragmented file. Perhaps I have the wrong settings?
Installed HxD to see if that fixes it. Is this what it's supposed to look like?
Yes. that is Hex.
0-9, and A-F.
Ok this needs to be elaborated on. Im not a hex genius or even a hex n00b. I have no idea what any of that means. I know the basic 0-9 A-F. But im not sure where to start changing numbers. Is each 4 digit string one part of the 8 digit code? If its hex with 6 and 2 for opac why am i looking at 32 digits when its 8, crap numbers suck ass.
Honestly77 said:
Ok this needs to be elaborated on. Im not a hex genius or even a hex n00b. I have no idea what any of that means. I know the basic 0-9 A-F. But im not sure where to start changing numbers. Is each 4 digit string one part of the 8 digit code? If its hex with 6 and 2 for opac why am i looking at 32 digits when its 8, crap numbers suck ass.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=479019
I've been reading up on this, but wasn't sure exactly what to modify for Cyanogen's 4.1.11.1. I would like the progress bar to be blue to match my theme, but haven't been successful. Any help would be great, I have read this thread, and am familiar with HxD and RGB color codes. But I don't know what the corresponding codes are that I need to replace, I tried searching through for ones that would match the original orange (I even hex compared some 4.0.4 files that had been modified against the original, but there were so many changes, I didn't know which was which).... any help?
Thanks.

Developing against HTC libs

I'm trying to figure out how to write an app that uses HTC API's. Specifically I want my app to switch scenes but I can't figure out how to call in to their libraries.
I unzipped Rosie.apk and it is only resources, no java.
it's the classes.dex
Right but how do I import something from a dex in eclipse and build it?
manicmethod said:
Right but how do I import something from a dex in eclipse and build it?
Click to expand...
Click to collapse
no way.
.dex is compiled, not source.
does java have a way to forward-declare classes so I can tell java they'll be there when it tries to run?
I haven't done much (read: any) actual development on Android yet, as I just got my Hero recently (developing solely on an emulator? ewww), but isn't the typical way of interacting with other applications on Android through Intents and Actions?
Browsing through the AndroidManifest.xml file in Rosie.apk, there seems to be a reference to com.htc.launcher.ThemeChooser.action.theme_change - Maybe this would be a place to start?
Ah yes, I'm still in the mindset of calling other peoples interfaces to do things. Thanks for the tip.
trying to figure out what to do with it will be fun, I'm sure
So com.htc.launcher.ThemeChooser.action.theme_change launches the chooser. I need to be able to change the scene under the covers by telling it what theme to switch to, any one have any ideas?
Glad to see that you made a little bit of progress I did some more searching, but this time in Rosie.odex. I found an ACTION_THEME_CHANGE string. Perhaps it could be something like this:
Component Name: com.htc.launcher.ThemeChooser.action.theme_change
Action: ACTION_THEME_CHANGE
Data: ?
Like I mentioned, I'm new to this stuff I'm not sure if there is a way to log or monitor intents (that would sure make this easy, wouldn't it?).
After looking at this more I think I need to hook into the htc settings content provider and see if I can change the settings like that. I found this in the manifest.xml:
E: provider (line=191)
A: android:name(0x01010003)="LauncherProvider" (Raw: "LauncherProvider")
A: android:readPermission(0x01010007)="com.htc.launcher.permission.READ_SETTINGS" (Raw: "com.htc.launcher.permission.READ_SETTINGS")
A: android:writePermission(0x01010008)="com.htc.launcher.permission.WRITE_SETTINGS" (Raw: "com.htc.launcher.permission.WRITE_SETTINGS")
A: android:authorities(0x01010018)="com.htc.launcher.settings" (Raw: "com.htc.launcher.settings")
so according to http://developer.android.com/guide/topics/providers/content-providers.html it looks like the Uri should be:
Uri u = Uri.parse("content://com.htc.launcher.settings");
except when I try that I get an exception saying that is an invalid URI :\
I'm not sure that it would be a setting. I mean, I'm sure you could find an attribute to set, but I don't think the switch would be instantaneous (likely requiring a reboot to show), unless there is something listening for changes to the settings. I could be wrong, of course.
Figured it out:
final Uri u = Uri.parse("content://com.htc.launcher.settings/widget_workspaces");
And the resulting table has
_id, display_name, created, status, and ancestor_id
So I think I can change status and then figure out how to throw a notify
I guess you were right, it looks like the widget_workspaces table has all the scenes available but the status field doesn't do what I assumed it would, rather it looks like it indicates whether a scene was shipped by HTC, is your saved scene or is unsaved.
I was really hoping this would do it because I don't know where to look now.
Well, looking at the ddms, it seems like I am wrong. It looks like ThemeChooser activity will do the swapping itself after you have selected a different scene. So it doesn't look like you will be able to make use of HTC's packages to do the swapping for you. Unfortunately, the only thing I can think that you could do next, is figure out how it is storing the scenes and load it and call all of the loading functions yourself...
Well, I have no way of calling their loading functions so I guess I'm out of luck :X
Check out smali and baksmali to snoop around in the classes.dex.
P
I used ddx1.7 to snoop in the dex files and found the tables and everything they were storing settings in. Unfortunately it looks like they neither store the current active scene in the table nor have an intent to call that will switch it without popping up the dialog.
It looks like what I want to do isn't possible.

[Q] How to post in a "text box" ?

I see some posts where voluminous data (a log for instance) is put in a scrollable text box. The idea is to isolate long pieces of info so that the post is not 200 lines long - you just see the main post and can scroll through the data if you need to see it.
However, I can't see how to do that. I see how to format text, insert a URL, indent text, justify, etc., etc., but not the box I am looking for. Any help? Thanks.
I think you're talking about the code box. Click on the hash icon to do that.
missparker76 said:
I think you're talking about the code box. Click on the hash icon to do that.
Click to expand...
Click to collapse
If you click "QUOTE" on someone's post you can see the BB code they used.
Or just point us to a post if you still can't figure it, and we'll take a look.
Dave
Thanks! I couldn't identify the hash icon, but from the "code" I figured out if I use a bb tag of "code" and "/code", I could get it. See:
Code:
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
Line 9
Line 10
Line 11
Line 12
Line 13
Line 14
Line 15
Now, just a small inconvenience. Does it have to say "code" at the top? It seems to add that automatically.
Code:
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
Line 1
I wonder if this will work.
Click go advance when you reply then its the # symbol on the top of the input box.
Gahh Its Lee said:
Click go advance when you reply then its the # symbol on the top of the input box.
Click to expand...
Click to collapse
I see! When I looked before, I didn't understand what code hashes meant. Thanks much!
As Dave Shaw mentions above, vBulletin boards use what are called BB Codes to format the text within a post.
Have a look at the vBulletin Community Forum BB Code page for a full list of codes. Straight from the horses mouth!
Be aware that not all codes may be available, or usable on XDA-DEVS. Their use is controlled by the security settings, as defined by the board administrator(s).
stephj said:
As Dave Shaw mentions above, vBulletin boards use what are called BB Codes to format the text within a post.
Have a look at the vBulletin Community Forum BB Code page for a full list of codes. Straight from the horses mouth!
Be aware that not all codes may be available, or usable on XDA-DEVS. Their use is controlled by the security settings, as defined by the board administrator(s).
Click to expand...
Click to collapse
Hehe. Most should be available, except anything that allows code embedding in a page, like html, as they are always off by default.
We've actually got our own list at http://forum.xda-developers.com/misc.php?do=bbcode too (same list as that I think )

[Q] Keycode_App_Switch

Ok, I hate asking for help, and I'm sure the answer is right in front of me and amazingly easy, but I can't seem to get anywhere with it. Its been years since I've really looked at any code, so this has all been a re-learning experience.
I finally got around to setting up build environment, blah blah blah. I wanted to see if I could get the Search Key re-bound per the setup here.
I'm using the Andro repo and changing it where necessary, but receiving an error when it builds android.policy that PhoneWindowManager.java has an invalid character.
I don't see anything that would be invalid with that change. The build goes through find if I use the original PhoneWindowManager file.
I know there were some people interested in this being a flashable zip, which I'd like to do as my next project if I can get this working. So....any thoughts?
OK, just as a (partial) sanity check, I tried building ICS AOSP with the some of the changes you linked.
I did not repo sync, so the source is probably from late 2011 or whenever AOSP was released. I didn't change my keylayout files. I did add the new code to test if the build works. I built a generic full-eng build since I don't have any of the supported devices.
After all that, it did build without fatal errors (35 mins). I have all the .img parts in the out directory.
How did you edit the PhoneWindowManager.java file? Linux uses different end of line characters than Mac or Windows, so if you saved it with the wrong editor, it will bork the end of line characters. nano or vi should work.
Thanks for checking. I don't recall what it was I edited it with, but wasn't eclipse or anything like that. Ill add that to the build environment and give that a shot when I get home. I know I had a backup of the original file.
I more wanted to make sure I wasn't crazy with it. I didn't change any of the keychar files yet (there are quite a few to sort through, so have to find out which). I appreciate you running it through the build process.
Sent from my HTC Vision using XDA App
What gee one said seems likely from the explanation you give here, but the log from the build will help confirm it. The javac compiler can be picky. You should be able to run the file through `dos2unix' or equivalent to fix it up if that's the case.
Aside: the poster of the original pseudo-patch should have used diff to make a real patch, rather than that "from"->"to" business. That's just asking for mistakes.
I might suggest, if you get this working, going a step further and making it configurable from Settings. This seems like it might be a good CM9 feature if you were interested. If you'd like, I can try to help guide you through that process, though (disclaimer) I haven't run anything through CM Gerrit since May 2011 so hopefully nothing has changed.
Well I ran it through again after changing a fresh copy through eclipse. The first one had an error, though I had a nagging feeling I did something wrong, so restored my backup and did it again. Looking carefully I think I had copied it wrong and left a statement open, or an extra close. Considering I did this half a dozen times I'd feel pretty stupid if it was just a matter of me making sure the statements weren't correct. Anyways, it passed android.policy on the build, but with this old machine it probably won't be done until late tonight or tomorrow. I'll follow up then.
Oleary, I make take you up on that. If everything works I'd like to make a flashable zip for everyone, and eventually send it for review (if it hasn't been already). I really don't have any experience with it, so I'll be sure to get in touch with you.
Thanks again for the follow ups.
You can make just parts of a build (after the initial build) with the mm command (or is it mmm)?
mmm frameworks/base
http://wiki.cyanogenmod.com/wiki/Howto:_Speed_up_building#Decrease
I can never remember (but I haven't done it often.) I always just end up checking the function definitions in build/envsetup.sh
Well the build took a lot quicker that I had thought. I changed several of the .kl files (still have to figure out which one it actually is though) to get it running. Works great.
oleary, mind if I shoot you a PM tomorrow regarding a few things on the build, zips, etc?
Feel free, though for flashable zip kinda stuff I'm probably not the right person.

[Q] gps.conf & power_profile.xml

I have an AT&T Samsung Galaxy S3 with two problems at hand.
First of all, my GPS does not lock onto any sattelites at all. I've come to realize that this is related to an incorrect configuration file. As far as I know, a # at the beginning of a statement means that that statement is a remark, and not actual code. Thus, it's ignored.
If you look at my gps.conf file below, you will notice that many of the lines contain a # at the beginning. I have a general idea of which should remain. However, I'd like to know all those of which should/can be removed. If someone could just rewrite it removing all the # which should not be included, that would be awesome!
Code:
#Test
NTP_SERVER=time.gpsonextra.net
#Asia
# NTP_SERVER=asia.pool.ntp.org
#Europe
# NTP_SERVER=europe.pool.ntp.org
#North America
# NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra2.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra2.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra2.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 4
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# supl version 1.0
SUPL_VER=0x10000
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
# GPS Capabilities bit mask
# SCHEDULING = 1
# MSB = 2
# MSA = 4
# ULP = 0x20
# ON_DEMAND_TIME = 0x10 // yunu.lee
# default = MSA | MSB | SCHEDULING | ULP
CAPABILITIES=0x16
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
# ACCURACY_THRES=5000
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.google.com
# SUPL_PORT=7276
# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234
################################
# Sensor Settings
################################
# Needs to be set explicitly based on sensor
# There is no default value.
GYRO_BIAS_RANDOM_WALK=0.00001
SENSOR_ACCEL_BATCHES_PER_SEC=3
SENSOR_ACCEL_SAMPLES_PER_BATCH=5
SENSOR_GYRO_BATCHES_PER_SEC=3
SENSOR_GYRO_SAMPLES_PER_BATCH=5
# Sensor Control Mode (0=AUTO, 1=FORCE_ON)
SENSOR_CONTROL_MODE=0
# Enable or Disable Sensors for GPS use (0=Enable, 1=Disable)
SENSOR_USAGE=0
# Choose GSIFF sensor provider (1=DSPS, 2=Android NDK)
SENSOR_PROVIDER=2
################################
# Indoor Positioning Settings
################################
# 0: QUIPC disabled, 1: QUIPC enabled, 2: forced QUIPC only
QUIPC_ENABLED = 0
################################
# EXTRA SETTINGS
################################
My second problem has to do with the power_profile.xml file. It was noted that certain S3s had a problem with an incorrect value in the power_profile.xml file, which resulted in Cell Standby topping the list for battery drainage. I have taken a look at that file on my S3, and noticed that I am affected by that incorrect value (34 instead of 3.4).
The problem is that the fixed XML file available for download seems slightly different to the one currently in my S3, in more ways than just that value. I'd like to know whether it's safe to make the switch. Or, does anyone have a fixed power_profile.xml which they wish to share with me, that definitely works on the AT&T S3?
I'm sorry if this has been posted before, but I wasn't able to find anything completely answering my questions. Thanks in advance for the help, and it's much appreciated!
My second problem has to do with the power_profile.xml file.
Click to expand...
Click to collapse
You probably downloaded the XML file like I initially did...and for the same reason...I did NOT want to replace it. But this much smaller flashable CWM fix only changes the VALUE in question...not the whole XML file....as far as I can tell. It has worked for my on my i747m for months. Do a CWM backup first!
themadproducer said:
You probably downloaded the XML file like I initially did...and for the same reason...I did NOT want to replace it. But this much smaller flashable CWM fix only changes the VALUE in question...not the whole XML file....as far as I can tell. It has worked for my on my i747m for months. Do a CWM backup first!
Click to expand...
Click to collapse
Actually, that is the same fix I downloaded. I extracted it just to take a look at it first before doing anything, and noticed that inside, it had a power_profile.xml slightly different to the one currently in my phone. So, I'm not sure whether to flash this or not. Or alternatively, is there any way which I can simply edit this file myself? I've tried several XML editors, but they all show weird symbols throughout, when I open that XML file. Though I can clearly see the value that I need to change, but I don't want to end up saving the file from a program that can't properly read it, ending up with a corrupt file flashed to my phone. Unless, that is how the file actually looks.
Sorry for all the noobish questions, but I have only had my S3 and been on Android for a couple of months now. Was on iOS before, and did a lot of tinkering on that side of the smartphone world.
.Xanadu. said:
Actually, that is the same fix I downloaded. I extracted it just to take a look at it first before doing anything, and noticed that inside, it had a power_profile.xml slightly different to the one currently in my phone. So, I'm not sure whether to flash this or not. Or alternatively, is there any way which I can simply edit this file myself? I've tried several XML editors, but they all show weird symbols throughout, when I open that XML file. Though I can clearly see the value that I need to change, but I don't want to end up saving the file from a program that can't properly read it, ending up with a corrupt file flashed to my phone. Unless, that is how the file actually looks.
Sorry for all the noobish questions, but I have only had my S3 and been on Android for a couple of months now. Was on iOS before, and did a lot of tinkering on that side of the smartphone world.
Click to expand...
Click to collapse
Ok, i will compare tomorrow...and let you know.
themadproducer said:
Ok, i will compare tomorrow...and let you know.
Click to expand...
Click to collapse
Thanks mucho! Much appreciated.
If you could also send me/share your gps.conf file so I can compare it with mine, that would be great! As I believe in addition to many lines being set as a remark, there are several lines also missing within there, such as for AGPS.
.Xanadu. said:
Thanks mucho! Much appreciated.
If you could also send me/share your gps.conf file so I can compare it with mine, that would be great! As I believe in addition to many lines being set as a remark, there are several lines also missing within there, such as for AGPS.
Click to expand...
Click to collapse
For starters, here is my gps.conf file.
There is only one area with slight differences but they are commented out with the # sign so it's irrelevant.
I have the i747m Rogers and you have AT&T. They should be pretty close with most core OS contents...as is this file.
I am assuming you are on Stock ICS? (not JB or custom)
Humor me...download Ulysse Gizmos 1.6.2 and use this to try to lock into sats. Test from outside OR inside but touching a window.
Stay tuned for XML.
PS...Xanadu....name from Rush by any chance?
UPDATE: Upload your stock power_profile.xml file (upload it) and I will check it against mine.
I just compared the FIXED one for the i9300....with my Stock i747m version and the only change is the value 34 to 3.4.
That's why it worked perfectly for me and probably will be EXACTLY the same for you.
Well that's interesting. Our gps.conf files are exactly the same. So, what could be the problem? I'm baffled.
Maybe I should also throw in that I'm using an unlocked AT&T Samsung Galaxy S III outside of the states. I'm in the Caribbean to be exact, if that makes any difference. (?)
I'll also try that app which you mentioned and report back.
As for my power_profile.xml, it's included below for comparison. Thanks!
.Xanadu. said:
Well that's interesting. Our gps.conf files are exactly the same. So, what could be the problem? I'm baffled.
Maybe I should also throw in that I'm using an unlocked AT&T Samsung Galaxy S III outside of the states. I'm in the Caribbean to be exact, if that makes any difference. (?)
I'll also try that app which you mentioned and report back.
As for my power_profile.xml, it's included below for comparison. Thanks!
Click to expand...
Click to collapse
Yes your location could be a huge reason.
You probably need to modify gps.conf for where you are.
When I was running my HD2, I had to do that to optimize the GPS,
but in your case...it's probably even more important.
Look around for an XDA page that focuses on the GPS ZONES for your area.
Start HERE. You may just want to extract certain elements and place them into your gps.conf file as needed.
UPDATE: your power_profile.xml is identical to mine. So go ahead and flash the CWM standby fix. ALWAYS do a CWM backup first!!!
themadproducer said:
Yes your location could be a huge reason.
You probably need to modify gps.conf for where you are.
When I was running my HD2, I had to do that to optimize the GPS,
but in your case...it's probably even more important.
Look around for an XDA page that focuses on the GPS ZONES for your area.
Start HERE. You may just want to extract certain elements and place them into your gps.conf file as needed.
UPDATE: your power_profile.xml is identical to mine. So go ahead and flash the CWM standby fix. ALWAYS do a CWM backup first!!!
Click to expand...
Click to collapse
Thanks for the help! I'll have a look at adding in the GPS zones for my area. I'll also go ahead with flashing the power_profile.xml and report back on how it went.
http://forum.xda-developers.com/showpost.php?p=40207546&postcount=67
Download this files and place it in /system/etc .... permission it to rw r r
then delete all files in /data/gps folder
restart and use gpstest to see results. try it with data on on first try to fix the satellite faster.
popcorn1122 said:
http://forum.xda-developers.com/showpost.php?p=40207546&postcount=67
Download this files and place it in /system/etc .... permission it to rw r r
then delete all files in /data/gps folder
restart and use gpstest to see results. try it with data on on first try to fix the satellite faster.
Click to expand...
Click to collapse
How do I set the permissions? I tried copying and it gave me error saying cannot copy system file. I tried setting the permissions using Root Explorer but didnt work
Use file manager from the google play and go to settings and then slect mount root.
u need to have root before doing this

Categories

Resources