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

How to open the search by clicking a custom button in android? [closed]
How to recognize touch on the home screen
Django REST Framework: Directly display on results list in GenericView
Android app with Google+ API: Client ID or Android ID?
Cannot be cast to android.app.activity
TextToSpeech OnUtteranceCompletedListener causes delay
parse string into jsonarray in android
Animate adding item and item movement in listview like Google Plus app
how to move an image along circle in android?
How to use image as a map with zoom level in android
RuntimeException with Samsung Galaxy — Flashlight
Android - how to completely disable keyguard
Android PhoneGap does not support CSS3 Flexbox
Responsive css not working properly
Layout design in android having TextView with image
display a child view of frame layout at the front

Categories

HOME
shell
uml
phpword
porting
prism
numbers
rds
visual-studio-emulator
pearson-correlation
google-admin-sdk
mvc5
title
emoji
naivebayes
endpoint
keytool
entitymanager
package.json
microsoft-dynamics-nav
git-extensions
google-container-registry
google-maps-autocomplete
r-mice
monit
draft-js-plugins
surveymonkey
fat
jackson-modules
appirater
outliers
oculus
underscore.js
sinch
errbot
browser-sync
ntp
constexpr
hard-drive
installscript
release
c9.io
plaintext
escpos
postgresql-8.4
parser-generator
bindingnavigator
knime
photos
sonarlint-eclipse
reportservice2010
x-ray
podscms
quicktime
libjpeg
pybrain
vibrate
shinobi
testrail
taocp
usart
simplepie
meteor-packages
microstation
jodd
lua-telegram-bot
riot
kiosk
jparsec
mobiledoc-kit
jaunt-api
jnlua
atan2
directdraw
concurrentmodification
eoferror
amiga
angular-gettext
iiop
webfinger
xml-namespaces
create.js
build-script
live555
matrix-inverse
winginx
dot42
windows-embedded-standard
bin
kendo-dataviz
process-explorer
poker
diem
httponly
azman
flex-mobile
xcelsius
creole
ruby-1.8
updatesourcetrigger
object-database
burndowncharts

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