android


Connect Android emulateur to internet


I build a goldfish Android arm, but when I launch the emulator with the command:
$ ./emulator -avd myavd -verbose -debug init -dns-server 10.0.0.1 -kernel ~/build/goldfish/arch/arm/boot/zImage
the emulator there is no internet neither from the root shell neither from the navigator.
Anyone can help please, thank you
Edit:
I edit the iptables rules:
Chain INPUT (policy ACCEPT)
target prot opt source destination
bw_INPUT all -- anywhere anywhere
fw_INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
oem_fwd all -- anywhere anywhere
fw_FORWARD all -- anywhere anywhere
bw_FORWARD all -- anywhere anywhere
natctrl_FORWARD all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
oem_out all -- anywhere anywhere
fw_OUTPUT all -- anywhere anywhere
st_OUTPUT all -- anywhere anywhere
bw_OUTPUT all -- anywhere anywhere
Chain bw_FORWARD (1 references)
target prot opt source destination
bw_costly_eth0 all -- anywhere anywhere
Chain bw_INPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
bw_costly_eth0 all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain bw_OUTPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
bw_costly_eth0 all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain bw_costly_eth0 (3 references)
target prot opt source destination
bw_penalty_box all -- anywhere anywhere
REJECT all -- anywhere anywhere ! quota eth0: 9223372036854775807 bytes reject-with icmp-port-unreachable
Chain bw_costly_shared (0 references)
target prot opt source destination
bw_penalty_box all -- anywhere anywhere
Chain bw_data_saver (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere
Chain bw_happy_box (1 references)
target prot opt source destination
RETURN all -- anywhere anywhere owner UID match u0_a8
RETURN all -- anywhere anywhere owner UID match 0-9999
bw_data_saver all -- anywhere anywhere
Chain bw_penalty_box (2 references)
target prot opt source destination
bw_happy_box all -- anywhere anywhere
Chain fw_FORWARD (1 references)
target prot opt source destination
Chain fw_INPUT (1 references)
target prot opt source destination
fw_standby all -- anywhere anywhere
Chain fw_OUTPUT (1 references)
target prot opt source destination
fw_standby all -- anywhere anywhere
Chain fw_dozable (0 references)
target prot opt source destination
RETURN tcp -- anywhere anywhere tcp flags:RST/RST
RETURN all -- anywhere anywhere owner UID match 0-9999
DROP all -- anywhere anywhere
Chain fw_powersave (0 references)
target prot opt source destination
RETURN tcp -- anywhere anywhere tcp flags:RST/RST
RETURN all -- anywhere anywhere owner UID match 0-9999
DROP all -- anywhere anywhere
Chain fw_standby (2 references)
target prot opt source destination
RETURN tcp -- anywhere anywhere tcp flags:RST/RST
Chain natctrl_FORWARD (1 references)
target prot opt source destination
DROP all -- anywhere anywhere
Chain oem_fwd (1 references)
target prot opt source destination
Chain oem_out (1 references)
target prot opt source destination
Chain st_OUTPUT (1 references)
target prot opt source destination
Chain st_clear_caught (2 references)
target prot opt source destination
Chain st_clear_detect (0 references)
target prot opt source destination
REJECT all -- anywhere anywhere connmark match 0x2000000/0x2000000 reject-with icmp-port-unreachable
RETURN all -- anywhere anywhere connmark match 0x1000000/0x1000000
CONNMARK tcp -- anywhere anywhere u32 "0x0>>0x16&0x3c#0xc>>0x1a&0x3c#0x0&0xffff0000=0x16030000&&0x0>>0x16&0x3c#0xc>>0x1a&0x3c#0x4&0xff0000=0x10000" CONNMARK or 0x1000000
CONNMARK udp -- anywhere anywhere u32 "0x0>>0x16&0x3c#0x8&0xffff0000=0x16fe0000&&0x0>>0x16&0x3c#0x14&0xff0000=0x10000" CONNMARK or 0x1000000
RETURN all -- anywhere anywhere connmark match 0x1000000/0x1000000
st_clear_caught tcp -- anywhere anywhere state ESTABLISHED u32 "0x0>>0x16&0x3c#0xc>>0x1a&0x3c#0x0&0x0=0x0"
st_clear_caught udp -- anywhere anywhere
Chain st_penalty_log (0 references)
target prot opt source destination
CONNMARK all -- anywhere anywhere CONNMARK or 0x1000000
NFLOG all -- anywhere anywhere
Chain st_penalty_reject (0 references)
target prot opt source destination
CONNMARK all -- anywhere anywhere CONNMARK or 0x2000000
NFLOG all -- anywhere anywhere
REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
But still have no connection.

Related Links

Writing to a File in Android
Android send udp broadcast silently fails
Best way to pass a SurfaceView to android.media.MediaPlayer
Android : How to set edittext text just in first touch after activity launch
Battery charging
SMS : Columns “_id” does not Exist
GetFragmentManager.findFragmentByTag() returns null
Can not set background for RelativeLayout?
Android activity finish() and onBackPressed
Android Studio sudden appearance of unresolved symbols after pulling from Git
How does Android Back Navigation works?
How to install google apps when android built from source
Cannot be resolved to type - Android
Android Programming: onPause() called, onSaveInstanceState(…) not
Replacing android.jar provided with Terminal-IDE for newer SDK levels?
maximum TextView width in layout file

Categories

HOME
batch-file
windows
mysql-workbench
yahoo-finance
static-site
yandex
babeljs
azure-container-service
barcode
rcloud
accessibility
p2p
automatic-ref-counting
intercom
modbus-tcp
entitymanager
aws-sdk
android-7.0-nougat
git-extensions
soci
symfony-console
imagemap
parcelable
flask-sqlalchemy
strongname
froala
interbase
angularjs-components
progress-bar
exchangewebservices
cppreference
powershell-ise
sql-server-2000
r-grid
erb
installshield-le
docfx
filesystemwatcher
recurrent-neural-network
demo
chef-solo
visa
chronicle-map
uiimage
openrasta
mschart
launchctl
context-sensitive-grammar
reshape
sandcastle
donations
xcode-server
myspace
burrows-wheeler-transform
scaffolding
expectations
android-wake-lock
vigenere
include-guards
ons-api
opserver
android-broadcast
addressing-mode
sonarqube-5.0
easyrtc
mdichild
mobility
kissfft
personalization
grails-domain-class
reflector
cancellation
wxformbuilder
memset
spring-remoting
vbe
qscrollarea
xmltodict
gwt-openlayers
breakout
nevron
poker
dolby-audio-api
onload-event
android-sdk-2.3
extreme-programming
fragmenttransaction
subgraph
koken
urlrewriter
w3c-geolocation
photolibrary
diagrams
hbm2java
purepdf
web-application-project
blind

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App