在VirtualBox上为Android 4.3设置静态IP
我在VirtualBox上使用Android 4.3来测试应用程序。但是,我正在我的计算机上运行VM,它位于代理(没有DHCP)后面,因此我无法从VM连接到Internet 我需要完成的是:在VirtualBox上为Android 4.3设置静态IP,android,proxy,virtualbox,static-ip-address,Android,Proxy,Virtualbox,Static Ip Address,我在VirtualBox上使用Android 4.3来测试应用程序。但是,我正在我的计算机上运行VM,它位于代理(没有DHCP)后面,因此我无法从VM连接到Internet 我需要完成的是: 将Android机器设置为使用静态IP(192.168.1.213/24,带网关192.168.1.1) 设置代理访问(代理位于网络192.168.1.2中的另一台服务器上,具有用户/权限) 你能告诉我怎么做吗?有关我正在使用的内容的更多详细信息: 从中,我使用了android-x86-4.3-20130
- 从中,我使用了android-x86-4.3-20130725.iso
- 在VirtualBox中,在机器设置下,我使用了桥接适配器和默认选择“Realtek PCIe GBE系列控制器”
- 没有其他变化
sqlite3 /data/data/com.android.providers.settings/databases/settings.db
INSERT INTO system VALUES(99, 'http_proxy', '<proxy_server>:<port>');
ex: INSERT INTO system VALUES(99, 'http_proxy', '192.168.179.202:3128');
sqlite3/data/data/com.android.providers.settings/databases/settings.db
插入到系统值中(99,'http_proxy',':');
例如:插入到系统值中(99,'http_proxy','192.168.179.202:3128');
以上答案仅适用于安卓<6。
如果您正在使用更新的东西,以下内容对我有效
Alt+F1以进入外壳
settings put global http_proxy <address>:<port>
设置放置全局http\u代理: