Cuttlefish virtual android device deployment

Prerequisite:

  1. Ubuntu 20.04
  2. Lantern

Steps:

  1. Make sure virtualization with KVM is available.This should return a non-zero value.
    grep -c -w "vmx\|svm" /proc/cpuinfo
  2.  Install dependency modules
    $sudo apt-get install devscripts config-package-dev debhelper-compat
  3.  Download, build, and install the host cuttlefish-common package
    $git clone https://github.com/google/android-cuttlefish
    $cd android-cuttlefish
    $debuild -i -us -uc -b
    $sudo dpkg -i ../cuttlefish-common_*_amd64.deb || sudo apt-get install -f

       Power off and power on again will trigger installing additional kernel modules and  applying udev rules.
       Please check whether the capability_query.py and unpack_boot_image.py scripts are installed.   

    $ubuntu-server:~$ ls /usr/lib/cuttlefish-common/bin/
    capability_query.py  unpack_boot_image.py

       Notice:Reboot sometimes not effect.

  4. Go to http://ci.android.com/

  5. Enter a branch name. Start with `aosp-master`

  6. Navigate to `aosp_cf_x86_64_phone` and click on `userdebug` for the latest build

  7. Click on `Artifacts` and download these files
    `aosp_cf_x86_64_phone-img-xxxxxx.zip`
    `cvd-host_package.tar.gz`

  8. On your local system, combine the packages

    $mkdir cf
    $cd cf
    $tar xvf /path/to/cvd-host_package.tar.gz
    $unzip /path/to/aosp_cf_x86_64_phone-img-xxxxxx.zip
  9. Add current user to cvdnetwork and kvm group.  

    $sudo usermod -aG cvdnetwork $USER
    $sudo usermod -aG kvm $USER

    Logout and re-login again.

  10. Launch cuttlefish 
    $HOME=$PWD ./bin/launch_cvd --start_webrtc
     
  11.  Install chrome brower
    $wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
    $sudo apt install ./google-chrome-stable_current_amd64.deb

    Notice:Firefox is not work

  12. Open chrome and input https://0.0.0.0:8443

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值