Test whether the GPS data been deleted - android

I have written a code in C (sending commands to phone) to delete GPS data (eph, alm, time, position etc) on LG Phoenix phone and i am trying to test if the data has been deleted. What would be the best way to test it?

Call last the getLastKnownLocation() on the GPS provider and see if it returns anything.

Different GPS chipsets stores this data in different locations, so you can never be sure. I don't know what chipset is used in your LG phone. Root your phone and browse the /data/ directory, usually you'll find something like /data/gps/.
The external symptoms of deleting this data is that of a cold start. That is, if the device is not connected to the internet, and it is somewhere outside, it will take 2 minutes or longer to get a GPS fix. So that's how you'l know.

Related

Android Bluetooth LE scanned devices missing Name

I've been using StartLeScan for quite a while, the names of the returned devices after a scan are never populated. I could never figure out why, I just get the mac address back.
Today I ran a scan from the OS BT settings page and it showed only the MAC addresses until the scan completed, then it showed the names. Now when I run a scan programmatically the names are always populated.
Why does StartLeScan not return the device names?
Name is not broadcast with the MAC during scan, the name you see later is a local cache after you have required it from the device.
My memory might be betraying me, but I believe settings makes a separate request for the name after they scan. Settings also has a local separate cache for keeping track of devices and their current state.
Remember that the name is not really a good way of identifying a device as it may be changed by the user.

Location cache in android ICS?

my understanding is that in gingerbread and lower, android kept a cache of 200 wifi location fixes and 50 cell location fixes. These were stored in cache.wifi and
cache.cell files at /data/data/com.google.android.location/files, and rooted devices could view these locations using apps like this.
However, those types of apps no longer work in ICS devices. Does this mean android no longer caches cell/wifi location fixes? Or does it simply mean nobody has been able to create
a similiar type of app for ICS or nobody can figure out where the cache is stored anymore?
Assuming there is a cache stored locally on the device, then when a network provided location is requested, is the location returned by android retrieved via the local cache or
is it a fresh one from the network? How do I know if its new or from the cache?
Lastly, how much network data do network provided locations (with wifi radio enabled/on and data connectivity on) actually use?
Thanks,
Dom

sim card with disabled TS11 (Tele Service: Telephony) drains battery

I have a sim card with disabled TS11 (Tele Service: Telephony), im using this card only for data connection. My question is: it is possible to disalble TS11 service on android? Because when this sim card is in use, my phone thinks that there is no service and trying to find network wchich causes battery drain. Is there any solution for this problem?
This is a known problem with data-only SIM cards. To fix this, you'll need a rooted phone (or a phone with ability to pull/push files from /system partition). Also, you should save a backup of your framework.jar, because your phone might not work well with voice/data SIM cards after this modification. But, if you push original framework.jar back to your phone, everything will be restored.
The modification changes phone status to IN_SERVICE even when it's not connected to the network, so the phone stops searching for networks. Here are the details, however I don't recommend using batch file and prefer to to all modifications manually, it's safer that way.

Send GPS (NMEA) to a real phone via DDMS?

I was having issues with the DDMS's ability to send GPS data to my emulator (i needed speed, accuracy, heading, etc all to change but couldn't get that to work with DDMS). Anyhow, I wrote a quick script to connect to the debug port and send nmea sentences following a track from a gpx file (nmea sentences modelled off an nexus s) but added the extra data i needed. I know there are other gps emulators out there, but for various reasons I ended up writing my own.
The question I have is, is there a way to do this to a real phone? I've trawled through the ddms info i can find and cant find much of use?
I've seen one emulator that can do this via bluetooth, but had trouble with it.
The same way you can send GPS data to a phone, which must have USB debugging and Mock locations allowed in settings.

Android: Connect two phones wirelessly?

I'm interested in fleshing out an idea for a Android phone app, and I'm wondering if this is possible. So I would have the app running in the background on Phone A, then when it finds another Android phone B, it saves certain information like time, GPS location, just state variables.
But if the other phone is also running the same app, the two phones connect and share trivial non-private information.
Hypothetically, would this be possible? Would I go through a local ad-hoc Wi-Fi connection, or constantly broadcast Bluetooth?
If both people have the same app, you could do it in a round about way. If two people installed the app on their phone and agreed to have their gps coordinates shared, you could upload both sets of gps coordinates to a server as the people move around. The server could then compare which people are close to each other. When the user wants to share information with another user, the phone just needs to ask the server who is in their vicinity and sharing could be done over the internet. This is essentially how Bump works. Bumping two phones together triggers a call to the server to see who else is bumping in that vicinity at the same time. After phones close by are discovered, you might be able to trigger bluetooth pairing and sharing if you don't want to share over the internet.
Bluetooth is the easiest way for two phones to communicate directly with each other. However, both phones would have to be paired through the Settings->Wireless->Bluetooth menu. You would experience better range and speed with WiFi, but this requires a router as far as I know.
I found out how this can be done, use the viewranger app on both phones, create a user and log into the app on both phones. I set this up with myself as the user. Then the second phone (the one with broken gps) is used to track the user who is in my back pocket.
The user in both cases is me.
The problem with this is that a phone signal is required.

Categories

Resources