Reading GPS data from Android Phone on PC - Android Software/Hacking General [Developers Only]

I want to be able to read the current state of my GPS from my Android phone to my PC. I want to do it programmatically on the PC itself.
Currently, I am able to do it using telnet on my PC and an app called GPS tether on the phone. But, I want to read data off my phone without any software running on it. Also, I want to write my own codes. Is it possible and if yes, can you please provide me with some developer resources?
I plan to integrate this feature with the .NET framework using C#.

Related

[Q] Native app (C++) for Windows Mobile 7?

Hi all,
As far as I known, after a WM7 phone is unlocked (jail-broken) and apply root-cert, we certain take the root permission of the phone.
What I'm going to ask is that is it possible to install a native app to this phone? A Native app may be a script, a console app (without GUI), or an executable code that run in background and able to access to system resource such as SMS, phone and can use socket connection as well ?? I guess if it is possible, we must use another development tool/compiler (GCC e.g) instead of M$ studio.
Any help will be appreciated.

Good For Enterprise

Has anyone been able to get this working with Root? I install fine, enter my pin and it goes through but since I have root it doesnt sync. Im running liberty, any suggestions
matt1313 said:
Has anyone been able to get this working with Root? I install fine, enter my pin and it goes through but since I have root it doesnt sync. Im running liberty, any suggestions
Click to expand...
Click to collapse
Checking for root is configurable by your IT area. My account is not setup to check for root but I have had other problems. Can you easily unroot and reroot your device so Good would work except for the rare times that you actually need root? One problem I have had is the initial setup would never complete (stops at retrieving policies) unless I go back to stock eclair, get it working and back it up via Titanium backup, then upgrade to Froyo or GB, and then restore it. Mine continues to work via root though. The other problem I have had is if I ever restore to an earlier state (using the same PIN), it will stop syncing. I need a new PIN issued to get it working again.
I'm reading that IT admins can lock your phone camera, wipe SD card, etc.
What other kinds of things can they do once "Good for Enterprise" is installed on your personal phone?
Nate2 said:
I'm reading that IT admins can lock your phone camera, wipe SD card, etc.
What other kinds of things can they do once "Good for Enterprise" is installed on your personal phone?
Click to expand...
Click to collapse
I was involved in piloting "Good for Enterprise" for my company. I do know that the possible "controls" vary depending on the platform. Good for Enterprise on the IPhone will have much more control because the devices (hardware) and OS are very limited compared to Android. Keep that in mind as you read some of these items if they don't mention which platform. Also, the Good application would have to be granted root access to your phone "I believe" in order to do any of the items you mentioned. If you are running a custom ROM and have the "SuperUser" app, you would see if it had that access. I "think" it will be very hard for Good to implement some of those controls unless the Android OS provides an API for it because the underlying hardware can vary so much. I'm not a developer but I think that is correct.
Also, if you work for any decent sized company, they will be very concerned about the legal aspects of company provided software deleting (or even reading) personal information outside the "Good container". I mention the word container because Good provides encryption of everything within the app so it can not be read by anything outside the app (such as root explorer). I have successfully backed up and restored the encrypted data to another ROM but it is just bits to Titanium Backup or anything else. Feel free to PM me if you have any other questions on it that I might be able to answer. I know the admin for Good for our company that I could ask other questions.
I'm reading that the installation can detect jailbroken iPhones and rooted Android devices, and if the IT admins decide, they can configure it to refuse installation on such devices to prevent compromising Good's security/integrity of its resources.
(I'm not rooted, and don't plan to root my DroidX, so it is a moot point for me)
I heard from Verizon that IT admins can remotely control hardware components, including cameras, Bluetooth and IR ports, SD Cards, and more.
Things I'd like to know... can IT admins:
Track/monitor internet usage on the device?
Track/monitor GPS usage?
Copy non-Good related resources (e.g. files) from the device or SD card?
Lock the device?
Locate the device?
Wipe non-Good related resources?
Does the Good app send device System Logs to the IT folks?
Phone call logs?
App Permissions:
YOUR ACCOUNTS
ACT AS AN ACCOUNT AUTHENTICATOR Allows an application to use the account authenticator capabilities of the AccountManager, including creating accounts and getting and setting their passwords.
MANAGE THE ACCOUNTS LIST Allows an application to perform operations like adding, and removing accounts and deleting their password.
SERVICES THAT COST YOU MONEY
DIRECTLY CALL PHONE NUMBERS Allows the application to call phone numbers without your intervention. Malicious applications may cause unexpected calls on your phone bill. Note that this does not allow the application to call emergency numbers.
NETWORK COMMUNICATION
FULL INTERNET ACCESS Allows an application to create network sockets.
YOUR PERSONAL INFORMATION
READ CONTACT DATA Allows an application to read all of the contact (address) data stored on your device. Malicious applications can use this to send your data to other people.
READ SENSITIVE LOG DATA Allows an application to read from the system's various log files. This allows it to discover general information about what you are doing with the device, potentially including personal or private information.
WRITE CONTACT DATA Allows an application to modify the contact (address) data stored on your device. Malicious applications can use this to erase or modify your contact data.
PHONE CALLS
READ PHONE STATE AND IDENTITY Allows the application to access the phone features of the device. An application with this permission can determine the phone number and serial number of this phone, whether a call is active, the number that call is connected to and the like.
STORAGE
MODIFY/DELETE USB STORAGE CONTENTS
MODIFY/DELETE SD CARD CONTENTS Allows an application to write to the USB storage. Allows an application to write to the SD card.
SYSTEM TOOLS
RETRIEVE RUNNING APPLICATIONS Allows application to retrieve information about currently and recently running tasks. May allow malicious applications to discover private information about other applications.
PREVENT DEVICE FROM SLEEPING Allows an application to prevent the device from going to sleep.
YOUR ACCOUNTS
DISCOVER KNOWN ACCOUNTS Allows an application to get the list of accounts known by the device.
HARDWARE CONTROLS
CONTROL VIBRATOR Allows the application to control the vibrator.
NETWORK COMMUNICATION
VIEW NETWORK STATE Allows an application to view the state of all networks.
VIEW WI-FI STATE Allows an application to view the information about the state of Wi-Fi.
SYSTEM TOOLS
READ SYNC STATISTICS Allows an application to read the sync stats; e.g., the history of syncs that have occurred.
AUTOMATICALLY START AT BOOT Allows an application to have itself started as soon as the system has finished booting. This can make it take longer to start the device and allow the application to slow down the overall device by always running.
KILL BACKGROUND PROCESSES Allows an application to kill background processes of other applications, even if memory isn't low.
Sent from my unrooted DroidX using XDA App
I've been using EVO CM7 nightlies for quite a while now and never had issues with Good for Enterprise. With last 3 versions of nightlies, Good hasn't worked. When trying to reinstall Good, it says there is no phone network when trying to register. When looking at Device Info in Good setup screen, it doesn't have a phone number. Tried clearing, data, all cache, etc.
Is anyone else having this issue? It's like CM7 is not sending the phone string to Good when calling it.
A coworker also uses CM7 (not nightlies) and has no issues with Good on EVO. The phone number shows up in Good device info on his EVO.
I had the same problem, but I'm luckily an admin at our company on the good software. After messing around with it... this is what I had to do.
1. Uninstall Good from your phone on CM7 (Must be uninstalled at first for this to work....)
2. Reboot into Recovery and make a Nandroid Backup
3. Wipe the both Caches and Data, Install a Sense Rom
4. Install Good Mobile and have you admin resend you the email to enroll your phone
5. After entering the code and entering a password.. the Good will try to pull emails... kill the good app before this.
6. With Titinium Backup, backup Good and its Data.
7. Reboot into recovery.
8. Wipe the both Caches and the Data... Recover your previous CM7 Nandroid backup.
9. In CM7 launch Titanium backup and restore Good Mobile and its Data.
Worked after that... this way Good would communicate with the phone during the enrollment... which for some reason with CM7 it doesn't work... and just complains about not being connected to your mobile network.
Coincidentally I've just put up another post relating to IMSI numbers which was prompted by Good refusing to activate as some devices are reporting the same 1st 6 digits of their IMSI rather than the full 15 that Good uses to authenticate the license relative to the specific SIM card the license is for. Has anyone else come across this issue with Good?
matt1313 said:
Has anyone been able to get this working with Root? I install fine, enter my pin and it goes through but since I have root it doesnt sync. Im running liberty, any suggestions
Click to expand...
Click to collapse
Mine quit syncing after the first day. I had to upgrade my personal unlimited data plan to a corporate/enterprise data plan for an additional $15/month with Verizon, and reinstall Good.
Sent from my unrooted DroidX using XDA App
Sievers said:
I had the same problem, but I'm luckily an admin at our company on the good software. After messing around with it... this is what I had to do.
1. Uninstall Good from your phone on CM7 (Must be uninstalled at first for this to work....)
2. Reboot into Recovery and make a Nandroid Backup
3. Wipe the both Caches and Data, Install a Sense Rom
4. Install Good Mobile and have you admin resend you the email to enroll your phone
5. After entering the code and entering a password.. the Good will try to pull emails... kill the good app before this.
6. With Titinium Backup, backup Good and its Data.
7. Reboot into recovery.
8. Wipe the both Caches and the Data... Recover your previous CM7 Nandroid backup.
9. In CM7 launch Titanium backup and restore Good Mobile and its Data.
Worked after that... this way Good would communicate with the phone during the enrollment... which for some reason with CM7 it doesn't work... and just complains about not being connected to your mobile network.
Click to expand...
Click to collapse
I previously had a similar problem that I mentioned above - on custom FROYO ROMs it would stop at retrieving policies but flashing to stock eclair, I could finish the setup (and let all current emails come in) and then backup via TB, flash to custom FROYO, then restore and it would be all set. However, when I recently reinstalled Good on Continuum 5.5, I decided to try to let it complete the setup and it did with no problem. I only tried that since my IT admin setup "self-service" for me. I can access a link where I can send a new PIN for my account since it can easily stop syncing. The PIN goes to your corporate email so it is safe to allow.
@Nate2 - sorry I didn't see your post previously. Yes, there are Good policies that can be setup to detect "jailbroken" IPhones, etc. At my company, Good on Android is still not a standard offering because corporate policies are limited to what they can do on Android due to the numerous OS and hardware combinations. However, I have been pushing simply putting trust in the Good encryption (AES 256 if I remember right). Looking at the permissions of the app makes it look at first glance like it can do anything. However, I don't think it is as extensive as it seems. The only "data" outside the Good container that can be read by the app "to my knowledge" is the contact info. This is because your IT administrator can allow Good to sync corporate contact info (in Good) to your phone's contact info. This allows you to easily see who is calling (rather than a phone #) if it is one of your corporate contacts. Although it can access (modify/delete) SD contents, it doesn't say "Read". I don't think I am "reading" too much into that... For internet access, I know Good is working on adding in internet access (from inside the Good container) so browser access is allowed. I am "guessing" this is mostly for IPhones, etc. where the IT admin could stop internet access outside the Good container. That way they could control internet access on a "corporate" device. This is speculation on my part, though. I do think it can send device logs which is required "I think" to detect root access. Look over all the permissions listed keeping in mind READ access to system logs and contact info only and it seems to fit. Therefore, I think they probably can detect that you enabled/disabled GPS but I "doubt" they can detect where you went since I don't "think" that goes in system logs that they pull. If you still have any question, send me a PM since I don't frequently check this thread.
Thanks RichMD.
I once worked in a large company where a sysadmin was fired for accessing the corporate e-mail of an employee (his ex-girlfriend). She reported the incident to HR. Possible access to additional sensitive resources on the phone makes these kinds of incidents worse, and that's why we should be cautious.
Sent from my unrooted DroidX using XDA App

[Q] Integrate WM Device Center

Hi everyone, Is it possible to integrate the WM Device Center directly in the OS? I don't wanna have to open this app every time I connect my phone to the pc..I'm lazy, I know
gigsaw said:
I'm lazy, I know
Click to expand...
Click to collapse
Seems like you are lazy more than you've expected. You don't even read forum title - it's WP7, not WM forum
I'm not even sure what app or what OS you're referring to - do you mean ToucnXpereince on WP7? That's *supposed* to open automatically when you start WPDM on the PC.
Windows Mobile Device Center is a "big" Windows (desktop/laptop) app, not a phone app... are you saying you want it to launch on the PC when you connect your phone?
Sorry guys, I haven't been clear enough I meant the Windows Mobile Device Center LAUNCHER look at this tread: http://forum.xda-developers.com/showthread.php?t=1521763
It's an app that has to be launched on a fully unlocked phone every time you connect it to the computer. In this way your device can be explored as a sort of plug&play usb mass storage. You can directly copy on it doc files, or anything else you want. Even xap files on my HD7 with deepshining, if I install a File Browser too, I'm able to install XAPs directly from my phone without any other software installed on my pc or on my phone. I think it's a great thing, even for doc files because before of this program the only method to transfer them from PC to the phone ad vice versa was to send'em to myself via mail, or use skydrive. Not much convenient for me. This new method simplyfied my life
So my question was: can this XAP be directly integrated in Windows Phone 7 so when I connect my device to the computer I don't have to open every time this app on my phone?
Now *that* is actually an interesting question. It's certainly possible to have a PC app start a phone app; that's how WPDM launches TouchXperience or Visual Studio launches a debug app. To launch fully automaticlaly, though... that would probably require that the app either have some background service (possible on a fully-unlocked ROM) that monitors for a PC connection, or that the app be registered in some way as "do this when you connect" although I'm not sure how I'd go about the latter.
Yeah, now it's much clear and as GoodDayToDie said is much more interesting I'm already thought about implementation (but I need to run WPConnect.exe automatically, not a Windows Mobile Device Center LAUNCHER). I'll try to find time for the development of this app (this one - finding time - is really hard ), so stay tuned!
Here we are: http://forum.xda-developers.com/showthread.php?p=24820620
Hey, gigsaw, did you tried WP7 auto launcher? I don't have full unlock so I can't test with WMDC Launcher.
So sorry if it seems that I disappeared but someone stole my HD7 some days ago D: D: D: D: I'm so sad........I was very interested in windows phone 7, I thought it could be the best mobile OS with a bit of developing..but now I can't do anything more. So sorry guys ='(

[Q] Network Android Emulator

What I'm looking for is a way to run an android emulator such as bluestacks or Andy in a way that's accessible over a network. I know there are online services like Manymo or Appetize but I'm specifically looking for something I can run on my local network rather than being reliant on the internet connection.
I presume that it's doable since people like Manymo are doing it but does anyone have a clue that could start me on the right track?
Yes this is possible if you have a computer capable of creating a remote server if you want to connect to it on another device. You would need a client Android emulator installed on the computer and make sure it works. Now you are going to need to research a good VNC that can allow you to remotely control your computer from other devices. Once you have and can successfully start up the server, you'll then need a VNC connecting app that you can connect to the computer running the Android emulator. And then walla, you should be accessing it over your local host (network).
Using CM12.1 on my SGH-T999

Access same instance of app from two devices while on the go

Me and my friend both need to access the same instance of an app at the same time. We can not just both install the app, as we both need access to the exact same instance, account, etc. We may be at different locations, yet we still want to access the app. Both of us occasionally switch off our phones, and the other one of us may need access to the app while the other person has their phone off.
We both have Android phones. We also have a cheap third Android device that we do not use.
So:
Device 1: My device
Device 2: Friend's device
Device 3: Cheap device not currently in use.
What I am thinking about doing is installing the app on Device 3, and then leaving it at home, with the app always running, connected to WiFi and power. I guess we could then use some remote access software to access the app wherever we are.
My priorities are that accessing the app should be as simple as possible. I do not want to go login screens, authorisations, etc. every time I access it. Ideally, it should just be an icon on the home screen to click on, and preferably I should just get straight into the app. If that is not possible, then at least it should be as quick as possible with the minimum amount of steps required for access.
We do not require remote control, only remote viewing. However, remote control would also be nice.
We can use root, Xposed Framework, Magisk modules and whatever may be needed.
It would all depend on your app. If it can be run on the device and access remote data (via 'mount' as an FTP device, NFS, or other file sharing) then that would be good.
Otherwise what you want is to have a remote control app for Device 3 (where the app and data live). Go to No-IP.com and get a free DDNS entry so you can point it to your network. Have the DMZ host be configured to be Device 3 (you'll have to assign a static IP address to the device). Then you use the client software to access the server (device 3) so you can use your App. Otherwise, without knowing the abilities of your app, and its limitations, there would not be a clean way to do what you want.
If you are using the same app on both machines and having it to point to one set of data, then a networked folder would be best.

Categories

Resources