Android x86 porting, unable to make it work

前端 未结 8 851
孤城傲影
孤城傲影 2020-12-23 21:27

I\'m kind of new to the whole porting issue and I got to it because of the slowness in the emulator provided with the Android SDK.

I downloaded the android-x86-3.2-R

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 21:41

    I solved the problem. This is what I do to get internet connection.

    In my case, the gateway address was 192.168.0.254 and the DNS server was 192.168.0.10. I select an IP address for the VirtualBox host from the unused ones (192.168.0.250).

    1) First of all, I set my VirtualBox network configuration:

    Attached to: Bridged Adapter

    Adapter type: PCnet-FAST III

    2) After that, I start Android from VirtualBox; after boot, I open a root shell, pressing Alt+F1

    3) Here, I use these commands:

    ifconfig eth0 up 192.168.0.250
    route add default gw 192.168.0.254 dev eth0
    setprop net.dns1 192.168.0.10
    

    4) Now, I return to Android (Alt + F7), and I can surf on internet!

    Unfortunately, this process must be followed each time you start Android


    In order to obtain gateway and DNS IP addresses, from Windows you can use this command

    ipconfig /all
    

    You must refer to your network card

提交回复
热议问题