Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

busybox arp not found #2

Open
Nushio opened this issue Feb 28, 2012 · 6 comments
Open

busybox arp not found #2

Nushio opened this issue Feb 28, 2012 · 6 comments

Comments

@Nushio
Copy link

Nushio commented Feb 28, 2012

This happened on my Galaxy S2 with CM7.2 installed.

adb shell busybox arp
arp: applet not found

The alternative is to use netcfg, which does return IPs:

netcfg

lo UP 127.0.0.1 255.0.0.0 0x00000049
svnet0 UP 0.0.0.0 0.0.0.0 0x000000d1
usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002
tunl0 DOWN 0.0.0.0 0.0.0.0 0x00000080
gre0 DOWN 0.0.0.0 0.0.0.0 0x00000080
sit0 DOWN 0.0.0.0 0.0.0.0 0x00000080
pdp0 UP 10.127.52.94 255.255.255.0 0x000010d1
eth0 UP 192.168.11.110 255.255.255.0 0x00001043

However this requires creating a new parsing method in phone.cpp, and I'm familiar enough with c++ to do this.

@triochi
Copy link
Owner

triochi commented Feb 28, 2012

OK. You can propose a patch then

@Nushio
Copy link
Author

Nushio commented Feb 28, 2012

I'll see what I can do, but like I said, I'm not very familiar with c++/qt to work on this.

I hardcoded my phone's IP address to the source and the Android App (Qtadb) crashed too. Is the source for the Android App available elsewhere?

D/qtadb (26898): CLIENT IP= 192.168.11.108
D/qtadb (26898): Connecting...
E/qtadb (26898): SMS: Error
E/qtadb (26898): java.net.SocketException: No route to host
E/qtadb (26898): at org.apache.harmony.luni.platform.OSNetworkSystem.connect(Native Method)
E/qtadb (26898): at dalvik.system.BlockGuard$WrappedNetworkSystem.connect(BlockGuard.java:357)
E/qtadb (26898): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:204)
E/qtadb (26898): at org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:183)
E/qtadb (26898): at java.net.Socket.startupSocket(Socket.java:705)
E/qtadb (26898): at java.net.Socket.(Socket.java:263)
E/qtadb (26898): at com.qtadb.SmsReceiver.sendToClient(SmsReceiver.java:260)
E/qtadb (26898): at com.qtadb.SmsReceiver.getSmsList(SmsReceiver.java:189)
E/qtadb (26898): at com.qtadb.service$TCPServer.run(service.java:105)
E/qtadb (26898): at java.lang.Thread.run(Thread.java:1019)
D/qtadb (26898): CLIENT IP= 192.168.11.108
D/qtadb (26898): Connecting...

@7ymekk
Copy link
Collaborator

7ymekk commented Feb 28, 2012

unfortunately it is not possible to unify netcfg for all android
phones. it gives me:

tiwlan0 UP 192.168.2.3 255.255.255.0 0x00001043

for You it is:

eth0 UP 192.168.11.110 255.255.255.0 0x00001043

and as I know Android for other phones it can be something
else...busybox arp is so cool that always returns the same output. it
is phone independent. We have to find some other solution...

2012/2/28 Juan Rodriguez
[email protected]:

pdp0     UP    10.127.52.94    255.255.255.0   0x000010d1
eth0     UP    192.168.11.110  255.255.255.0   0x00001043

@Nushio
Copy link
Author

Nushio commented Feb 28, 2012

How about providing a list of interfaces with valid IP addresses (Discard
localhost and 0.0.0.0) and the user could just choose from that list.

If all else fails, having the user manually type the IP into a textbox as a
fallback would also be a nice workaround.

On Tue, Feb 28, 2012 at 1:55 PM, 7ymekk <
[email protected]

wrote:

unfortunately it is not possible to unify netcfg for all android
phones. it gives me:

tiwlan0 UP 192.168.2.3 255.255.255.0 0x00001043

for You it is:

eth0 UP 192.168.11.110 255.255.255.0 0x00001043

and as I know Android for other phones it can be something
else...busybox arp is so cool that always returns the same output. it
is phone independent. We have to find some other solution...

2012/2/28 Juan Rodriguez
[email protected]:

pdp0 UP 10.127.52.94 255.255.255.0 0x000010d1
eth0 UP 192.168.11.110 255.255.255.0 0x00001043


Reply to this email directly or view it on GitHub:
#2 (comment)

Ing. Juan M. Rodriguez Moreno
Desarrollador de Sistemas Abiertos
Sitio: http://proyectofedora.org/mexico

@7ymekk
Copy link
Collaborator

7ymekk commented Feb 28, 2012

I just remembered that 'busybox arp' is used only for the first time
when You try to connect with Your phone. when You press "connect wifi"
then wifi window appears. if busybox arp returns ip, then this ip is
provided in window so You don't have to type it by yourself. if it
fails then You have to pass ip on Your own...so when You pass ip what
happens? QtADB can't see Your phone or only messages panel doesn't
work?

2012/2/28 Juan Rodriguez
[email protected]:

How about providing a list of interfaces with valid IP addresses (Discard
localhost and 0.0.0.0) and the user could just choose from that list.

If all else fails, having the user manually type the IP into a textbox as a
fallback would also be a nice workaround.

On Tue, Feb 28, 2012 at 1:55 PM, 7ymekk <
[email protected]

wrote:

unfortunately it is not possible to unify netcfg for all android
phones. it gives me:

tiwlan0  UP    192.168.2.3     255.255.255.0   0x00001043

for You it is:

eth0     UP    192.168.11.110  255.255.255.0   0x00001043

and as I know Android for other phones it can be something
else...busybox arp is so cool that always returns the same output. it
is phone independent. We have to find some other solution...

2012/2/28 Juan Rodriguez
[email protected]:

pdp0     UP    10.127.52.94    255.255.255.0   0x000010d1
eth0     UP    192.168.11.110  255.255.255.0   0x00001043


Reply to this email directly or view it on GitHub:
#2 (comment)

Ing. Juan M. Rodriguez Moreno
Desarrollador de Sistemas Abiertos
Sitio: http://proyectofedora.org/mexico


Reply to this email directly or view it on GitHub:
#2 (comment)

@Nushio
Copy link
Author

Nushio commented Feb 28, 2012

I tried both the "Master" branch and the "Work" branch.

When I do a connection via wifi, it asks for my IP (Despite being plugged via usb). That's fine, I type in my IP and unplug my phone. I can continue to browse files and everything as if it was plugged in.

When I try to access the Messages window, this appears:

MainWindow::showPageMessages()
Phone::getIP(): arp: applet not found

Phone::getIP(), gotIP: found:
MainWindow::showPageMessages(): demo is over dude
Phone::getGoogleAccounts(): "<authority id="20" account="[email protected]" type="com.google" authority="gmail-ls" enabled="true" syncable="true">
<authority id="28" account="[email protected]" type="com.google" authority="gmail-ls" enabled="true" syncable="true">
"
MainWindow::showPageMessages(): user is verified
showPageMessages

The service is running on the Android phone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants