General :: How To Connect To A Service Bind To 127.0.0.1 On Phone From Android App
Sep 29, 2013
I'm developing an automatic vulnerability scanner/exploiter for android. I'm adding the cool feature of using the metasploit framework from our android phones.
I can start the MsfRpcd ( the metasploit daemon ) from a su shell an make it bind to the 127.0.0.1 address.
I can connect to the server using busybox netcat ( no Java though here ).
I can't connect to 127.0.0.1 from the android app! i got ECONNREFUSED.
After a bit of google i understood that JavaVM have a separate network and it filter out my connection to localhost/127.0.0.1.
how can i connect to a service bind to 127.0.0.1 on my phone from an android app?
I gave a quick look at iptables -L output, maybe i can make some hack there, but probably i will break the JavaVM network.
Binding on wifi ip is not an answer.
View 1 Replies
Sep 30, 2010
Please show me how to bind to a Service from another Service on Android.
If you have an image to show how to do.
View 1 Replies
View Related
Mar 11, 2010
is it possible somehow to bind to private system services? What I want to do is listen to the activitymanagerservice and be notified when other activites are started. I tried implementing the IActivityController.aidl from the Sourcecode. It has methods like activityStarting and activityResuming but this didn't really work. (I used the idea from here: http://blog.codetastrophe.com/2008/12/accessing-hidden-system-service... , problem is there is no proper private field one could use at least c.getDeclaredFields() doesn't return anything useful from the activity manager)
Any ideas how I can get notified of things going on in the Activity Manager without having to do a getRunningTasks all the time? Because this is the only workaround I came up with but it slows down the phone.
##IActivityController.aidl:...................
View 5 Replies
View Related
Sep 30, 2009
i get an error message like 09-30 20:08:24.733: ERROR/AndroidRuntime(949): Caused by: android.content.ReceiverCallNotAllowedException: IntentReceiver components are not allowed to bind to services 09-30 20:08:24.733: ERROR/AndroidRuntime(949): at android.app.ReceiverRestrictedContext.bindService (ApplicationContext.java:136) so i guess you can't bind to a service in an AppWidgetProvider - although you can start the service just fine?
View 2 Replies
View Related
Feb 12, 2010
I have a service that provides gps coordinates.Here is the code...
View 5 Replies
View Related
Jun 14, 2009
How can I know who started(bind) service?
I already check 'RunningServiceInfo()' but I couldn't find.
View 2 Replies
View Related
Sep 9, 2009
I have the following base activity. code...
View 3 Replies
View Related
May 19, 2010
I'm new to Android development and am working on a small test project. I have a service, which communicates with an SQLite3 database, and two activities. A main activity which fetches database information via the service and displays it and a second activity which allows me to add data to the database via the service.
Currently, I have a singleton class which implements the ServiceConnection interface and I'm binding this to the service in the the main activity using the bindService function. Because it's a singleton, I can then use this service connection in both the main activity and second activity to work with the database and it all seems to work quite well.
However, I'm all the time aware that the service connection is bound to the main activity and I'm wondering if this is the wrong/bad way to do it? Would I be best off having two service connections, one in each activity, and binding each to the service?
View 2 Replies
View Related
Sep 5, 2010
I have coded this service, that computes stuff and i want other applications to be able to bind this service, i.e. i want to enable other programmers to communicate with this service. problem is, this has to work without these other programmers to get access to the source code. just the (installed) apk with the remote service is given (and of course a detailed description of the service' interface)...problem is, eclipse keeps braggin' about that the packages of the service are not available in source code...
View 1 Replies
View Related
Sep 8, 2009
How to start/bind a service from a test case. I tried using the ServiceTestCase and somehow I am getting the context as null and the test is not launching/starting the service.
View 2 Replies
View Related
May 28, 2010
A new question about android and services. Currently I'm developing a App that should send images to a server. It should also be possible to send more images parallel. I made a service that creates for every image a new image. The activity can bind to that service and gather information about the progress. I want to show the current status for every image in a notification (and when the user clicks a notification, an activity with the progress for that image should be shown). But I get several problems with that approach. There are errors with binding, the notification pending event starts the activity completely new, so I lose information about currently sending images and so on. How I could design in a appropriate way.
View 1 Replies
View Related
May 2, 2013
I got a Star N8000 with android 4.1.1 1 month and a half ago and I think its a great phone... anyways the point is that when Im connected on wifi everything is perfect, notifications aren't delayed at all but when I use data mobile its different =/ when the screen turns off for 5 mins or something like that, notifications are quite delayed... sometimes I have to turn on the screen and wait like 20 secs after I open whatsapp and all messages start to come. I dont know why I cannot connect to 3G service, maybe its because Movistar doesnt have it (Im from venezuela) so I use EDGE and I figured out about something: when I open whatsapp (after inactivity) it starts to try to connect I think because in the signal icon appears two white signs like an arrow or something like that. I dont know if it the software but it doesnt happen on wifi:.. so I dont have any idea about it. Im not root user (tried to be but didnt work) and I dont have any task killer..
View 1 Replies
View Related
Dec 9, 2013
Im trying to connect to a WCF service hosted on one of my websites, this WCF Service returns "Hello World" nothing exciting i've been followinf this Calling a RESTful web service from an Android application | vrsbrazil
Below is my Request task
[HIGH]
package Methods;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import org.apache.http.HttpResponse;
[Code]....
View 13 Replies
View Related
Dec 22, 2009
I am trying to connect to a .NET WCF service in Android using kSOAP2 (v 2.1.2), but I keep getting a fatal exception whenever I try to make the service call. I'm having a bit of difficulty tracking down the error and can't seem to figure out why it's happening. The code....
View 3 Replies
View Related
Oct 24, 2012
Any program to bind screen tap to keyboard keys. so I can play without touching the screen. something like this?
View 3 Replies
View Related
Mar 11, 2010
I'm trying to write a basic camera app. The problem that I am facing is that it works fine in emulator but on the phone (Nexus one) it fails.
The point of failure is the very first call, i.e. Camera.open(). It fails on the phone saying "Failed to connect to camera service". Any idea what could be wrong? (BTW, I am calling this from my activity's onCreate funtion itself, could that be an issue?)
For the information, I do have the necessary Camera permissions specified in my manifest xml file.
View 2 Replies
View Related
Nov 16, 2009
I apologize in advance for this long post, but it's necessary to show what is happening.
I've been working on an app that works on the 1.6 emulator, but bombs on my G1.
Here is the Photographer activity:
CODE:..........
And here is where this activity gets called from:
CODE:............
Having trouble pasting the relevant portions of AndroidManifest.xml, but I have permissions for Camera:
CODE:..........
Here's the Photographer part:
CODE:..............
Also set for testing on G1:
android:debuggable="true"
and working off of 1.6:
<uses-sdk android:minSdkVersion="4" />
All this works on a 1.6 emulator, but when I run this on the G1, LogCat shows:
CODE:.............
And /data/anr/traces.txt shows:
CODE:................
It sounds like the problem is a timeout issue, but I am at a loss as to where I should be looking ....
View 6 Replies
View Related
Jul 30, 2010
I had my camera set to this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE); and it works fine but if I change it to PORTRAIT instead of LANDSCAPE then it crashes with the following error...
CODE:............
The method it crashes in is..
CODE:.........
It crashes at mCamera = Camera.open();
My Manifest file has <uses-permission android:name="android.permission.CAMERA"></uses-permission>
How do I fix this so I can view my app in Portrait?
View 3 Replies
View Related
Mar 18, 2009
At the moment i have the following problem. I try to establish a connect to a SOAP-service. Therefore i need basicauth via http. I use ksoap2 and HttpTransportBasicAuth. The problem is, I do not know how i can start a call when i use HttpTransportBasicAuth because the function "call" is not available.
View 2 Replies
View Related
Dec 18, 2009
I am writing an android program and I need to connect to the Drupal service to fretch the data or submit data. How can I do that?
View 2 Replies
View Related
Jun 2, 2010
My web service should be returning an integer, but every time i run the code i get the NullPointerException error. i think my url string may be the problem, but i've tried using my ip with no luck. Code...
View 1 Replies
View Related
Jul 2, 2013
I have an android app that must connect to my local webservice with soap but I cant seem to get it working. This is the code I have.
[HIGH]public void Hello()
{
String SOAP_ACTION = "http://tempuri.org/Hello";
String METHOD_NAME = "Hello";
String NAMESPACE = "http://tempuri.org/";
String URL = "http://10.0.2.2/MainService/MainService.asmx";
[Code]...
All this does is catch an exception with the message "Null". Note that I am not an android developer, this is my very first project.
I did the same thing with Netbeans and regular Java and it works perfectly.
View 2 Replies
View Related
Mar 22, 2014
I have just bought an Android Smart TV Box (to replace my AC Ryan media box which gave up the ghost a few days ago) and it mostly works fine - it is connected to my tv via hdmi and the box is hard wired to my router - so it is the standard connection setup. I have two usb hard drives connected to it. I obviously want to drag and drop media files from my phone (android) or my laptop (Windows7) to the connected hard drives I use ES Explorer app on my phone and Windows explorer but using either version I cannot see the Android box wirelessly - if i do a scan using es explorer it finds the laptop straight away and i can drag and drop but it just will not find the android box at all. However if i go onto the Android box and into the es explorer app and do a scan it picks up the laptop and i can drag and drop a file onto the laptop. So the wireless is sort of working as opposed to not at all. But just seems odd that i cant see it at all - i cant even ping it from the laptop.
View 7 Replies
View Related
Jun 14, 2010
I had a moment in the beginning and took it back,got a hero had massive problems and finally got my hero replaced with another moment that was brand new.I just got it like 2-3 days ago and its having the same issues that i had on 1.5 when i had it the first time.I had it replaced when i had it the first time and same issue.I have 2.1 now and the battery life is still horrible like dropping not long after taking it off the charger without using it but biggest problem is that the phone will tell me i have no service and it will have an x up above where the bars should be and i have to remove the battery and put it back in before it will work again.The data does the same thing and i can turn the phone off and back on for that and it will work again.Does this happen to anyone else??Its very frustrating!!Also the wifi wont connect.It just says it is unable to connect but it was just working and my laptop works wirelessly so i know that its not my router or anything with my connection.
View 4 Replies
View Related
May 29, 2013
send images to the TV or PCscreen. Howevevr I am thinking that sometimes could be very interesting the opposite case, I mean .... send video (or static images) from PC to the android phone screen.And I am not talking about sending only image data file.
For example:
USB connection to use the mobile as a extended or mirrored desktop for windows.
View 2 Replies
View Related
Feb 1, 2013
Im looking for a Android powered GSM phone that will automatically turn itself back on if the battery is dead and power is reconnected.
I want to stash this in my vintage automobile and use tracking software to locate the vehicle in the unfortunate event its stolen. The only issue I need to solve is if the battery dies and the phone turns off how to turn it back on automatically. I plan to put the device in the door panels so access will be difficult.
View 7 Replies
View Related
Oct 28, 2012
I downloaded android 4.0.4 version without any trouble.Yesterday I tried to get the jelly bean version.Everything went good till the point he was going to start. (Battery was full-loaded, no doubts about that).Then suddenly the phone didn't react anymore.I tried everything, even volume down+home button +power button.The phone also won't connect with PC.So i can't use Odin and download another version.
View 1 Replies
View Related
Jul 21, 2010
I am trying to write an Android app to connect to an existing web service. I'm pretty new to web services in general, other than what I've done with this first web services (written with JSPs, Struts 1.x, and JAVA). This web service is connected to a document storage database. The user would first login to the service, then using search parameters (document title, type, etc.) the user would be displayed a list of possibly relevant documents. The user would choose a specific document from that list, and the service would then stream the entire document (pdf file) to the user for viewing.What methods are available to Android where I can make a request given some specific parameters, and be able to parse a response?The only thing I know of is HTTP, but my project leader (I'm a summer intern) is hinting that there are others available. I'm not sure where to start looking.
View 4 Replies
View Related
Feb 9, 2013
I want to format my phone, it's kinda full and going very slow. Here comes the question: Is it a good way to back up my android phone by connecting it to my laptop and copy all the files and maps in to my D: drive. I don't mind if it doesn't my text messages and contacts.
I am using a rooted Samsung Galaxy S plus (i9001).
View 4 Replies
View Related
Dec 30, 2013
I just installed both kies and kies 3 to my pc and my phone was unable to connect to either one. my us has phone has been debugged my phone and i checked under connections for kies and it was no where to be found. i am running andorid 4.3 on my samsung galaxy s4. connect my phone to my pc should not be this difficult
View 2 Replies
View Related