gpt4 book ai didi

android - 无法从代理后面的 Android 模拟器访问互联网

转载 作者:行者123 更新时间:2023-11-29 18:14:54 26 4
gpt4 key购买 nike

我正在尝试从运行 Android 4.0.3 的 Android 模拟器访问互联网。我正在运行 Ubuntu 11.10 并使用最新版本的 SDK 和工具。我已经使用提供的 APN、代理和端口在模拟器中设置了代理设置。虽然在此之后我可以使用内置的 Android 浏览器访问互联网,但我无法使用其他应用程序访问互联网。我已经尝试安装 Firefox mobile 和 Opera mobile 来对此进行测试,但两次都无法连接。我已经尝试过以下操作,这里是模拟器的全部细节:

        dahaldev@ubuntu:~$ emulator -avd Phone -verbose -http-proxy http://172.30.0.10:3128
emulator: found SDK root at /home/dahaldev/android-sdk-linux
emulator: Android virtual device file at: /home/dahaldev/.android/avd/Phone.ini
emulator: virtual device content at /home/dahaldev/.android/avd/Phone.avd
emulator: virtual device config file: /home/dahaldev/.android/avd/Phone.avd/config.ini
emulator: using core hw config path: /home/dahaldev/.android/avd/Phone.avd/hardware-qemu.ini
emulator: Found AVD target API level: 15
emulator: found skin 'HVGA' in directory: /home/dahaldev/android-sdk-linux/platforms/android-15/skins
emulator: autoconfig: -skin HVGA
emulator: autoconfig: -skindir /home/dahaldev/android-sdk-linux/platforms/android-15/skins
emulator: keyset loaded from: /home/dahaldev/.android/default.keyset
emulator: trying to load skin file '/home/dahaldev/android-sdk-linux/platforms/android-15/skins/HVGA/layout'
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: autoconfig: -kernel /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//kernel-qemu
emulator: autoconfig: -ramdisk /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//ramdisk.img
emulator: Using initial system image: /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//system.img
emulator: autoconfig: -data /home/dahaldev/.android/avd/Phone.avd/userdata-qemu.img
emulator: autoconfig: -initdata /home/dahaldev/.android/avd/Phone.avd/userdata.img
emulator: autoconfig: -cache /home/dahaldev/.android/avd/Phone.avd/cache.img
emulator: autoconfig: -sdcard /home/dahaldev/.android/avd/Phone.avd/sdcard.img
emulator: Physical RAM size: 1024MB

Content of hardware configuration file:
hw.cpu.arch = arm
hw.cpu.model = cortex-a8
hw.ramSize = 1024
hw.touchScreen = yes
hw.mainKeys = yes
hw.trackBall = yes
hw.keyboard = yes
hw.keyboard.lid = no
hw.keyboard.charmap = qwerty2
hw.dPad = yes
hw.gsmModem = yes
hw.camera = no
hw.camera.maxHorizontalPixels = 640
hw.camera.maxVerticalPixels = 480
hw.gps = yes
hw.battery = yes
hw.accelerometer = yes
hw.audioInput = yes
hw.audioOutput = yes
hw.sdCard = yes
hw.sdCard.path = /home/dahaldev/.android/avd/Phone.avd/sdcard.img
disk.cachePartition = yes
disk.cachePartition.path = /home/dahaldev/.android/avd/Phone.avd/cache.img
disk.cachePartition.size = 66m
hw.lcd.width = 320
hw.lcd.height = 480
hw.lcd.depth = 16
hw.lcd.density = 160
hw.lcd.backlight = yes
hw.gpu.enabled = no
hw.fakeCamera = back
hw.webcam.count = 6
hw.webcam.0.name = webcam0
hw.webcam.1.name = webcam1
hw.webcam.2.name = webcam2
hw.webcam.3.name = webcam3
hw.webcam.4.name = webcam4
hw.webcam.5.name = webcam5
hw.webcam.0.direction = front
hw.webcam.1.direction = back
hw.webcam.2.direction = front
hw.webcam.3.direction = front
hw.webcam.4.direction = front
hw.webcam.5.direction = front
vm.heapSize = 48
hw.sensors.proximity = yes
hw.sensors.magnetic_field = yes
hw.sensors.orientation = yes
hw.sensors.temperature = yes
kernel.path = /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//kernel-qemu
kernel.parameters = android.checkjni=1
disk.ramdisk.path = /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//ramdisk.img
disk.systemPartition.initPath = /home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//system.img
disk.systemPartition.size = 166m
disk.dataPartition.path = /home/dahaldev/.android/avd/Phone.avd/userdata-qemu.img
disk.dataPartition.size = 66m
disk.snapStorage.path =
avd.name = Phone
QEMU options list:
emulator: argv[00] = "/home/dahaldev/android-sdk-linux/tools/emulator-arm"
emulator: argv[01] = "-http-proxy"
emulator: argv[02] = "http://172.30.0.10:3128"
emulator: argv[03] = "-android-hw"
emulator: argv[04] = "/home/dahaldev/.android/avd/Phone.avd/hardware-qemu.ini"
Concatenated QEMU options:
/home/dahaldev/android-sdk-linux/tools/emulator-arm -http-proxy http://172.30.0.10:3128 -android-hw /home/dahaldev/.android/avd/Phone.avd/hardware-qemu.ini
emulator: registered 'boot-properties' qemud service
emulator: nand_add_dev: system,size=0xa600000,initfile=/home/dahaldev/android-sdk-linux/system-images/android-15/armeabi-v7a//system.img
emulator: mapping 'system' NAND image to /tmp/android-dahaldev/emulator-I31Kib
emulator: rounding devsize up to a full eraseunit, now a608000

emulator: nand_add_dev: userdata,size=0x4200000,file=/home/dahaldev/.android/avd/Phone.avd/userdata-qemu.img
emulator: registered 'boot-properties' qemud service
emulator: Adding boot property: 'dalvik.vm.heapsize' = '48m'
emulator: Adding boot property: 'qemu.sf.lcd_density' = '160'
emulator: Adding boot property: 'qemu.hw.mainkeys' = '1'
emulator: Adding boot property: 'qemu.sf.fake_camera' = 'back'
emulator: nand_add_dev: cache,size=0x4200000,file=/home/dahaldev/.android/avd/Phone.avd/cache.img
Warning: No DNS servers found
emulator: Kernel parameters: qemu.gles=0 qemu=1 console=ttyS0 android.qemud=ttyS1 android.checkjni=1 ndns=-1
emulator: Trace file name is not set

emulator: autoconfig: -scale 1
emulator: WARNING: Unable to create sensors port: Connection refused
emulator: control console listening on port 5554, ADB on port 5555
emulator: sent '0012host:emulator:5555' to ADB server
emulator: setting up http proxy: server=172.30.0.10 port=3128
emulator: ping program: /home/dahaldev/android-sdk-linux/tools/ddms
emulator: ping command: /home/dahaldev/android-sdk-linux/tools/ddms ping emulator 16.0
goldfish_fb_get_pixel_format:167: display surface,pixel format:
bits/pixel: 16
bytes/pixel: 2
depth: 16
red: bits=5 mask=0xf800 shift=11 max=0x1f
green: bits=6 mask=0x7e0 shift=5 max=0x3f
blue: bits=5 mask=0x1f shift=0 max=0x1f
alpha: bits=0 mask=0x0 shift=0 max=0x0

请帮我解决这个问题。

最佳答案

从 cmd 尝试这个命令并键入 cd your/drive of sdk 然后写在下面提到的行

emulator.exe -avd "EmulatorName" -dns-server "your ip Address"

关于android - 无法从代理后面的 Android 模拟器访问互联网,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8757430/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com