programatically accessing LBSTestMode params - Captivate Android Development

Maybe this is too technical for these forums, sorry if it is...but I hit a brick wall so here goes....
I'm trying to extract the configuration settings displayed by the LBSTestMode app (accessed by entering *#*#1472365#*#*) from within a home-made android app.
It's quite possible that they cannot be directly accessed via the Android API at all, but maybe somebody here knows another way to get them? I've looked through the variables accessible via the obvious places like LocationManager etc. and came up with nothing.
Or maybe somebody knows where the source for this app exists...I'm looking through Samsung's source for the i897 (http://opensource.samsung.com/) as we speak but nothing so far. The app seemed like something the vendor would add into their image but perhaps its part of the basline android source afterall.
Thanks,
Nick

Related

App Developer Bidding

Is there a website where you post what you want and developers bid to do the work? I've used similar services before for html / php / java and was wondering if it was available for android apps???
sites like guru.com and rentacoder.com you may be able to find people.
Do you mind explaining the project"s" your looking at having done. Might find some people here who will be able to help and assist
I thought i saw something similar on www.anddev.org
Sluzpuppet said:
sites like guru.com and rentacoder.com you may be able to find people.
Do you mind explaining the project"s" your looking at having done. Might find some people here who will be able to help and assist
Click to expand...
Click to collapse
Here is my thought (remember, I'm not a developer):
A super basic app: a single icon (like wifi tether) that opens a predefined url that has users info appended to the end as arguments, see example below:
Code:
mydomain,com/page.php?name=mike&id=1234&color=blue
Users info are just text fields with no validation and are setup from the menu button.
This would be a customizable app. A person could modify the app by adding (changing) three files
icon image
url.xml - contains the base url and perhaps the app name
user.xml - contains the users data fields
above example users.xml would add 3 setup fields for name, id, color
by changing the url xml file, you could setup app to piont to any domain
by changing the users.xml, you could setup any number of arguments
by changing icon, app image would match users preference
Ideally it would be best if it could have multiple occurances of the app (maybe just app name being different would work) because I may want it for mydomain.com any you may want to use it for yourdomain.com
Hope this makes sense.

[Q] Apex - Android Permission Extension - anyone?

Hi,
Anybody seen any actual implementations of a more secure permissions model for Android? That is, patched and compiled a kernel, used it in a custom ROM or anything like that?
A little background information:
The very first time, I tried to install an app from the Market, I was stunned to find the lack of options, in regard to which permissions I wanted to grant a certain app, when installed. It is all or nothing - "That can't be true?!", I said to myself, so I went looking for a way to control, which permissions were granted to an app, only to find out, that it's simply not possible (yes, I know you can hack the .apk, but that's besides the point here, and not very user friendly).
The solution (to be?):
While searching the net on this issue, I came across a paper written by a couple of Software Engineers, which seems quite interesting, and just about the perfect solution for my problem. However, I can't find any actual implementations on this - whether the authors didn't make any, or just didn't release it, I cannot say.
The paper I'm referring to, can be found here:
http://recluze.files.wordpress.com/2007/06/and-usage-nauman10.pdf
And another paper here:
http://www.list.gmu.edu/zhang/pub/asiaccs10-apex.pdf
After reading the papers, I went "OMG, that's freaking awesome! Where can I get that?" - So does anyone know something about this? Anything? Work-in-progress perhaps?
I'm very attracted to Android, being the number one open source mobile operating system, but the lack of security features is holding me back somewhat.
There's already posted an issue about this on Google Code - I urge everyone to go and put up a vote for this issue (login, and scroll to the bottom), in order to put some focus on it.
http://code.google.com/p/android/issues/detail?id=6266
In the meantime - anybody know of any patches?
Best regards,
Michael

[Q] Debugging help needed

I have a user of my app who is having a problem running it. My code launches another activity in the same app, and he is saying it is stopping before it should & returning to the previous activity, and he doesn't see any Force Close warnings.
I have run my code in the emulator & on my phone, I can't reproduce the error. We both run Android 2.2 on our phones, his is an HTC EVO & mine is a HTC Wildfire, as far as I can tell his specs are better than mine so shouldn't cause an issue - I deliberately chose a low spec for for my dev work so the code ought to run on anything.
As a bit of an Andoid dev noob (but been coding for years), is there any easy way I can make a special build of the app to send to him that would log any errors that happen ? I'd like to get a stack dump as well if possible, as I'm not sure exactly what routine in the activity its crashing out in. The activity that crashes is Gallery with 9 images in it, he can't flick through them or select one. I'm stumped as to whats causing it, any assistance would be gratefully received.
Thanks.
Why not point to your app and let others here try it on their phones? It could simply be other apps installed on his phone interfering with your app.
Long time programmer here too and when I get to where you're at (and I"m sure you've put some hours into this LOL), I go back to STEP 1.
I comment-out any and all code but the bare minimum; break it down to the Intent, startActivity and maybe a Toast message in the second activity. Even parse down your XML files to bare minimum.
See if that works. Then, ADD BACK ONE LINE OF CODE AT A TIME Run program and make sure it works. Yeah, it's painful, but in my 20 years of coding, I've learned to put my pride aside and to not "pretend" all the code I've written is correct.
Sometimes on bigger projects, I"ll change or add a couple of lines of code, run a back up and test. Rinse and repeat LOL. That way, I know I"m only a couple of lines of code from what "used" to work.
Good Luck!
Thanks both of you.
old_dude - Its a paid app. Only £0.99 but I don't think people would pay to help me. There is a free version of the same app (with less functionality) that this guy can get to work. If your really interested the 2 versions are -
Plink Log - Free Version
Plink Log Pro - Paid version
Rootstonian - agreed thats the approach I'd normally take if I was having problems on my dev phone or the emulator. The problem is that its OK on my HTC Wildfire/Android2.2 but on this guys HTC EVO/Android2.2 its having problems. I dont really want to keep sending him .apks with 1 or 2 lines extra enabled just to see if that fixes his specific issue. I was hoping there was something I could code to catch whatever crashes the activity & log it somewhere for me to analyse. When I do PC dev work, I have a global exception handler that catches anything I dont explicitly handle, and dumps the full call stack into a Log File I can read later.
I think I'll just have to take the existing app & put loads of debug code into it to save messages into a log file & see what bits of code are being called & what isn't & then get him to email me the results.
Thanks for the ideas guys, its always useful to get input from another perspective.
Dave
Hmmmm, just discovered setDefaultUncaughtExceptionHandler - might be able to use that with printStackTrace. Sounds interesting.

GPS SirfIV Tool Development - Disable Static Navigation / ...

Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
And here we can see what static navigation is doing with our tracks. On the right side I was running (high speed) and on the left side I was walking (slow speed). You can see that the static navigation feature freezes the track if you do not move very wide within approx. 30 seconds and releases the freeze if you moved a certain distance. This continues until you are moving at higher speeds.
To generate the tracks the original NMEA data from the SirfIV GPS chipset was dumped every second.
Because of the zoom level you can not see every timestamp, but there IS a trackpoint every second. While at higher speeds they are aligned along the track (right side) the are lying at exactly the same place during the freeze on the left track.
Best regards,
Chris
Maybe an interesting place to search for is the file:
/system/lib/hw/gps.s5pc210.so
Inside this you will find strings like:
MI_SetStaticNav
NL_GetStaticNavMode
NL_SetStaticNavMode
NL_Get_StaticNav_Status
NL_GetStaticNavMode_NL3
NL_SetStaticNavMode_NL3
NL_StaticNav
MI_GetStaticNav
StaticNav: %s3SV
NL_SetStaticNavMode()
NL_StaticNav()
Seems to be interesting.
Best regards,
Chris
And for the usage of the "MI_GetStaticNav" and "MI_SetStaticNav" functions see:
read.pudn.com/downloads28/sourcecode/embed/88065/SDK%20Users%20Guide%20Part%201%20-%20Software.pdf
Page Nr. 196
Is it possible to use the functions defined within the .so file from your own programs???
segelfreak2 said:
Is it possible to use the functions defined within the .so file from your own programs???
Click to expand...
Click to collapse
Yes, it is possible and easily done.
segelfreak2 said:
Hello
I just stumbled over this document: micro-modular.com/docs/AddlRsrc/GSD4e OSP Manual (CS-129291-DC-9).pdf
So, for example on site 119 for example you can see that it is possible to disable the static navigation filter by sending the corresponding Payload Sequence to the SirfIV chipset. The only question which remains is "how can we send these strings to the chipset".
And this is the point where we need some really brilliant XDA developers. If someone would manage to open the communication way to the sirf IV chipset, it would be possible to reconfigure this chipset totaly free.
At the beginning it can be a really simple tool where you have to enter the Start sequence, payload and end sequence which should be send manually. This would be good enough. But the biggest part will be to find a way to communicate with the GPS chipset. Maybe someone knows some good tools to find out how to communicate with the GPS chipset.
I'm very curious on your suggestions.
Best regards,
Chris
Click to expand...
Click to collapse
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Entropy512 said:
Not Applicable.
The GS2 has a GSD4t, not a GSD4e. It's the "crippled" version of the Star IV that uses the host processor to do all the work.
Click to expand...
Click to collapse
Hello Entropy512,
thank you for your comment. I know that the SGS2 has a GSD4t unit. But despite the document is named GSD4e OSP Manual... it is also applicable to the GSD4t version. So it is written in the document. And as I posted, there is a .so file who has all these functions in it. We just need to use it. And I think that the functions provided within gps.s5pc210.so are really worth a try.
aerobahn said:
Yes, it is possible and easily done.
Click to expand...
Click to collapse
Hello aerobahn,
many thanks also to you for your input. Your answer sounds great in my ears . I think it should be worth a try if it is really so easy to use functions defined within a .so library file. I do not have any experience in programming for android, but if someone who has would try it I would appreciate that. Because without static navigation the SGS2 would be a very good GPS logger too. And this can be somtimes very valuable, for geocaching, hiking tours, even low speed navigation...
Best regards,
Chris
No one who wants to try? Please. If you succeed I'm willing to honor your effort.
I have no programming skills at all but i am able to test whatever lib is generated
I can test daily in a 30 Km path (and 30 Km back).
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
The app doesn't work with CM7. I'd like to know if static navigation is enabled in CM7 by default.
Sent from my GT-I9100 using XDA App
Yes, it is not supposed to work with CM (yet). Just send me your gps library file (.so) and I can update the app so that it works with CM also. (or I'll just send you a modified .so)
It's not working with MIUI too. If you tell me which file(s) you need, I would give them to you. At the moment it just says unknown driver.
Sent from my GT-I(OVER 9000!!!!) using XDA App
In recent stock firmwares the file is /system/lib/hw/gps.s5pc210.so
In older ones the file was /system/lib/hw/gps.GT-I9100.so
steffato said:
segelfreak2, what you really want is to enable satic navigation and not disable it, as it is already disabled by Samsung. Static navigation disabled means filtering is ON. Static navigation enabled means filtering OFF. It is a common misconception.
Nevertheless, I have developed a tool called GPS Control for SGS2. You can check it out on market. It does exactly what you need. Just remember to reboot after changing Static Navigation config. It requires root access and works only on I9100.
You are welcome to propose any additions you might want in future versions.
Click to expand...
Click to collapse
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
mengsuan said:
I'm curious, why did Samsung disable static navigation by default?
I think this would be good for those who uses the phone to track their marathons etc
Click to expand...
Click to collapse
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files​
Just updated the app in the market. It now should support both MIUI and CM. Try it and I 'm waiting for results. Thanks for your input.
Please be patient. The update may take some time to show up in the market.
Raudi1 said:
As long as you don't walk the marathon, you should be fine
@ steffato: I've sent you a pm with the .so files​
Click to expand...
Click to collapse
I tried endomondo on the phone. It does "pause" my location and then update seconds later. Average speed is 9-10km/h
Sent from my GT-I9100 using Tapatalk
Don't forget to reboot after changing setting. It's required or there will be no change. On some cases the phone may crash and reboot on its own, unless you rebooted after changing settings.
If you want to check your gps behaviour after enabling static navigation, you should try disabling any filtering options that you app might have. I test with locus after disabling filters.
Don't test it with googlemaps. There is filtering in that app, therefore gps behaves the same either with sn enabled or disabled.
Sent from my GT-I9100 using xda premium
thank you.
your program is working quite good.
mayby you should create a separate topic in the original dev forum?
the question is how it influence battery life?
Sent from my GT-I9100 using Tapatalk

Is it possible to edit the code of the BMW headunit menu?

I was wondering if anyone know if it's possible to edit the default apps code. For example the car info app on the main screen takes parameters from the car's default computer to emulate the speedometer, read temperatures etc. I either want to edit that default app or code another one from scratch then install it onto the device. Wanted to make a 0-60 timer. Let me know, thanks!
If anyone knows where the files are stored for the home apps, that will be helpful too.
It must be the day for it.
What is hesd unit, post Android system information including MCU.
No one here can guess there are too many variants as there are phones.

Categories

Resources