Files
gitlab-instance-0a899031_ma…/公众号/安卓模拟器.md
2023-04-08 20:19:36 +08:00

84 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 安卓开发板
> orange pi5 (香橙派5)
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955211.png" title="" alt="" width="371">
香橙派一直在宣传`国产新系统`,比如 `orange pi Droid`,基于android进行了平板/PC模式的主题适配
正在最近想要运行7*24的安卓应用,所以直接把目标对准了香橙派5
当然,核心还是要运行`magisk和lsposed`,进行功能增强
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955757.png" title="" alt="" width="377">
> 为什么不用手机
手机本身的硬件配置和定制ROM,对于应用的风控风险,肯定是正常很多,设备串码,4G卡流量,等等
通过以下方式,也可以做到`控制电池充放`,避免锂电池过热造成的鼓包,爆炸等风险
- magisk的acc模块 (结合app:AccA+Accubattlery)
- 智能插座定时开关
- 动硬件:去掉电池=>改`usb线直供电`
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955168.png" title="" alt="" width="201">
> 树莓派安装lineageos
树莓派(raspberry pi)约等于理财产品,目前没有性价比,
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081955825.png" title="" alt="" width="358">
---
## 安卓模拟器waydroid
> 在linux上运行安卓应用
Waydroid 使用 Linux 命名空间(user、pid、uts、net、mount、ipc)在容器中运行完整的 Android 系统,并在任何基于 GNU/Linux 的平台(arm、arm64、x86、x86_64)上提供 Android 应用程序。容器内的Android系统可以`通过LXC和binder接口直接访问需要的硬件`
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081956268.png" title="" alt="" width="363">
> 在X86/mini主机的ubuntu server安装waydroid
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081956065.png" title="" alt="" width="369">
为了实验waydroid的效果,在X86主机的ubuntu server,安装了ubuntu-desktop桌面
然后依照官网文档,安装waydroid,一路install下来,没有阻碍
只是无法安装`微信`,无论是google play商店,还是直接下载apk,都提示无法运行
> orange pi3 LTS安装armbian
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081956779.png" title="" alt="" width="365">
香橙派3,是arm芯片,于是安装了armbian系统,接着测试安卓虚拟机
能进入`waydroid shell`,但是无法启动模拟器的GUI界面,一直提示`not set display_0`
这个问题,参照issues提供的解决方式,也没有生效,就先放着
---
## 最后
> 香橙派5是直接去公司拿的
因为它们周末不发货
<img src="https://hackrobot-1258475618.cos.ap-shenzhen-fsi.myqcloud.com/202304081956018.jpg" title="" alt="" width="155">