How to communicate with Android from a PC ? - Android Q&A, Help & Troubleshooting

Hi,
I want to write a program ,which will communicate to the available android mobile device via wi-fi .(Note :I do not want to use the USB cable)
That moblile device is having an IP in it by a wi-fi connection with it.The major thing is that i pinged that IP and I am getting connection packets getting back to my pc,means I can communicate with the devices. so can I able to get the details of the device.
details means
1.its name what user sets on it.
2.some address like mac in computers.
3.model name.
4.type of os in it.
etc
I really find this interesting but,no idea how to do but i got something like ARP protocol for getting the mac address but I do not know how to communicate with a phone with this ARP protocol.
Can we communicate by the SSH as it a linux kernel based OS .Kindly give me a way how to get these information.
can any one have some idea ,kindly tell me,it is very important for my project.
Thanks

Related

Motorola Phone Portal USB Linux?

Has anyone gotten this to work, or come close? Wifi over work really isn't an option..
Switching to phone portal gives me a srX device, none of the settings give me any type of usb interface.
I've done searching but haven't found any threads discussing USB moto phone portal for linux, i'd be willing to help figure this out.
arch/gentoo/lfs/ubuntu user.
Are you trying to use it as a Mass Storage Device under linux? Make sure you have the following working under your linux installation. Scroll down to the linux section.
http://developer.motorola.com/docstools/library/Installing_MOTODEV_Studio_for_Android/
No, I can mount it as storage no problem.
I want the web portal you can use with Windows. Where I can view text messages, etc from a browser.
My main work pc is linux, as are all my home PC's. I don't like the idea of using WiFi for this at home, and it's simply not an option to have WiFi running at work.
I tried installing the motorola suite under wine to no success.
If I could get the phone to be in the state it is when it's connected to a windows PC(serving that web interface), I could manually configure the usb0 interface, bridge, and connect?
any linux guys been working on this?

[Q] Wi-fi mac address spoofing in Android mobile phones

I need to spoof the wifi mac address of my phone to that of my Laptops. Then only I can use them at my workplace. In linux there is a software called macchanger for spoofing the mac address. By installing the mac changer software using the apt-get install macchanger command just spoofs the mac address. I just need to know whether this command works in terminal emulator. Or is there any software in android which changes the mac address of wifi via command line?? Please help me out...Thanks in advance..
tonyjoseph456 said:
I need to spoof the wifi mac address of my phone to that of my Laptops. Then only I can use them at my workplace. In linux there is a software called macchanger for spoofing the mac address. By installing the mac changer software using the apt-get install macchanger command just spoofs the mac address. I just need to know whether this command works in terminal emulator. Or is there any software in android which changes the mac address of wifi via command line?? Please help me out...Thanks in advance..
Click to expand...
Click to collapse
You can manually set any MAC address for a specific ethernet/wlan device in an Android terminal window, under the condition that you have rooted your phone and have a ifconfig binary installed. Use the hw ether parameters to do so. To check whether you have succeeded, use the netcfg command. To double-check it, use for example a packet sniffer and compare the MAC address with your set address in a ethernet packet to/from your Android device.
Btw: ...You are not breaking any of your company's security policies by using your phone?
i am getting SIOCSIFHWADDR: Operation not supported when i tried with both ifconfig and ip link... please help

[Q] Web server in wifi tethering

Hi,
I want to develop an application which runs a Http server without any external modem i.e. both server and wifi tethering should be in same device.
Example lets say android devices A, B and C are there. Now device A will be tethering (wifi hotspot enabled) as well server has to run in it. So that device B and C can connect to it forming a client which can access the server. How do i do this. Pls help...
I tried using server ultimate app, but ended without success since it is working only when i'm connected with external wifi modem/mobile data.
Pls let me know if there are any application exist like my requirement.
Please provide me solution, I'm in need of very urgent.
Thanks in advance

[Q] Secure ADB connection over network

I am using Geniatech ATV Android Set Top Boxes running android 4.2.2 for a current project. I might put some of those devices in public places like shopping centers. These boxes are connected to the local network there by cable or wireless.
I have a VPN connection to ssh remotely into the boxes (using debian kit) and on the boxes USB debugging is enabled, so that i have ADB access, which I use for chrome browser observation as well as for updating or installing new applications.
The problem is that everyone on the same local network as the box can also use adb to connect to the boxes and then have full access to everything, which is a big security problem.
What I want to do is restrict the interface of adb to only work over the vpn connection.
Alternatively I need a way to stop and start the adb daemon using my ssh connection to the box. The problem here is that I only connect to a debian kit instance running on the same box, which uses the same filesystem but doesn't have access to the start or stop adb commands.
Does anyone have an idea how to achieve this? I can't find a lot of information on this special requirements.

port forwarding to RasPI

Hi,
I have Raspberry PI (there simply runs ARM linux - Raspbian) and need to access it via ssh and http in my local network. I have tried some tether application, but it does not help since there is NAT.
I have tried some port forward apps, I have set ports but still not able to connect to this port. Do I need to change anything on my RasPI?
I have thought that I need some interface on RasPI, but there is no (sth like usb0). I have tried to connect firstly with easytether and then portforward, but still no success.
Any advice?
Thank you.

Categories

Resources