GNU/Linux系统下的一个新的Android运行环境——SPURV
Tofloor
poster avatar
MobeiSiran
deepin
2019-04-05 22:13
Author
本帖最后由 MobeiSiran 于 2019-4-6 17:56 编辑

spurv是由Collabora发布的一款安卓运行环境,旨在使安卓应用能够在基于Wayland显示服务的桌面环境下运行并获得完整的3D加速性能。


http://player.youku.com/embed/XNDEyNjA4ODU0OA==
https://gitlab.collabora.com/spurv

官方的编译方法,我卡在repo sync -j15
https://gitlab.collabora.com/spurv/device_freedesktop/blob/master/spurv/README.md
  1. Android
  2. mkdir aosp; cd aosp
  3. Install repo as per https://source.android.com/setup/build/downloading
  4. repo init -u https://android.googlesource.com/platform/manifest -b android-9.0.0_r10
  5. git clone https://gitlab.collabora.com/spurv/android_manifest.git .repo/local_manifests/
  6. repo sync -j15
  7. . build/envsetup.sh
  8. lunch spurv-eng
  9. make -j12

  10. Kernel
  11. git clone https://gitlab.collabora.com/spurv/linux.git -b android-container
  12. cd linux
  13. sh ../aosp/device/freedesktop/spurv/build-kernel.sh
  14. The kernel image is at arch/arm/boot/zImage and the DT at arch/arm/boot/dts/imx6qp-zii-rdu2.dtb

  15. Root filesystem
  16. sudo apt install debootstrap qemu-user-static
  17. sudo debootstrap --include=systemd,weston,systemd-container,udev,sudo,openssh-server,iputils-ping,pulseaudio,psmisc,bc --arch armhf --variant minbase testing rootfs http://deb.debian.org/debian/
  18. sudo chroot rootfs adduser aosp --ingroup sudo

  19. Prepare sdcard
  20. mkfs.ext4 /dev/mmcblk0
  21. sudo mkdir /mnt/sdcard
  22. sudo mount /dev/mmcblk0 /mnt/sdcard

  23. Copy files to sdcard
  24. sudo cp linux/arch/arm/boot/zImage linux/arch/arm/boot/dts/imx6qp-zii-rdu2.dtb rootfs/boot/.
  25. cp aosp/device/freedesktop/spurv/run.sh rootfs/home/aosp/.
  26. cp aosp/out/target/product/spurv/system.img rootfs/home/aosp/aosp.img
  27. cp aosp/out/target/product/spurv/vendor.img rootfs/home/aosp/.
  28. cp aosp/out/target/product/spurv/userdata.img rootfs/home/aosp/.
  29. sudo cp -rfa rootfs/* /mnt/sdcard/.

  30. Boot SD card

  31. In barebox's console
  32. # Enable RAVE-SP - which controls things like backligt
  33. memset -b -d /dev/main-eeprom 0xa2 1 0

  34. # Set up boot options
  35. detect mmc1
  36. global.linux.bootargs.base="console=ttymxc0,115200 console=tty0 enforcing=0 ip=dhcp rw rootwait root=/dev/mmcblk0 log_buf_len=16M cma=512M vmalloc=512M"
  37. global.bootm.oftree=/mnt/mmc1/boot/imx6qp-zii-rdu2.dtb
  38. global.bootm.image=/mnt/mmc1/boot/zImage
  39. global.bootm.initrd=
  40. bootm

  41. Run!
  42. Log in as aosp/aosp
  43. sudo sh run.sh
Copy the Code




Reply Favorite View the author
All Replies
avatar
anclark
deepin
2019-04-06 05:07
#1
Mark一下。Archon和ARC Welder在一些应用面前总会集体阵亡
Reply View the author
avatar
MobeiSiran
deepin
2019-04-06 06:50
#2
https://bbs.deepin.org/post/176421
Mark一下。Archon和ARC Welder在一些应用面前总会集体阵亡

在GNU/Linux系统上原生运行安卓应用的前面还有anbox、xDroid、Kydroid,还有APP Runtime for Chrome(ARC)也算一种,目前用起来的话xDroid比较稳定,anbox体验更好,Kydroid的话没用上过,这个spurv不知道怎么用
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-04-07 05:21
#3
关键是应用都是触屏的,它没有考虑到用鼠标代替触控吧???
Reply View the author
avatar
Ligocut光剪视频剪辑软件
deepin
Backbone of ecological co-construction group
2019-04-07 05:35
#4
你为什么卡在repo sync -j15
Reply View the author
avatar
anclark
deepin
2019-04-08 03:20
#5
https://bbs.deepin.org/post/176421
在GNU/Linux系统上原生运行安卓应用的前面还有anbox、xDroid、Kydroid,还有APP Runtime for Chrome(ARC ...

xDroid的官方已经弃坑了
Reply View the author
avatar
MobeiSiran
deepin
2019-04-15 20:38
#6
https://bbs.deepin.org/post/176421
你为什么卡在repo sync -j15

我也不知道
Reply View the author
avatar
MobeiSiran
deepin
2019-04-15 20:39
#7
https://bbs.deepin.org/post/176421
xDroid的官方已经弃坑了

xDroid还在更新,据说月末支持多窗口
Reply View the author