lizh1 commited on
Commit
6c719d8
·
verified ·
1 Parent(s): 0838626

Upload 5 files

Browse files
.gitattributes CHANGED
@@ -37,3 +37,4 @@ resources/ubuntu/Ubuntu_w_apps_41G.qcow2 filter=lfs diff=lfs merge=lfs -text
37
  macos/BaseSystem.img filter=lfs diff=lfs merge=lfs -text
38
  resources/macos/BaseSystem.img filter=lfs diff=lfs merge=lfs -text
39
  resources/macos/mac_hdd_ng.img filter=lfs diff=lfs merge=lfs -text
 
 
37
  macos/BaseSystem.img filter=lfs diff=lfs merge=lfs -text
38
  resources/macos/BaseSystem.img filter=lfs diff=lfs merge=lfs -text
39
  resources/macos/mac_hdd_ng.img filter=lfs diff=lfs merge=lfs -text
40
+ resources/android/openlogic-openjdk-8u412-b08-linux-x64-deb.deb filter=lfs diff=lfs merge=lfs -text
resources/android/Dockerfile ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用基于 Debian 的 Python 镜像作为基础镜像
2
+ FROM python:3.11-slim-bullseye
3
+
4
+ # 替换为USTC的镜像源
5
+ RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
6
+
7
+ # 安装 Flask
8
+ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
9
+ RUN pip install flask
10
+
11
+ # 更新软件包索引并安装必要的软件包及缺失的依赖
12
+ RUN apt-get update && apt-get install -y \
13
+ vim \
14
+ wget \
15
+ unzip \
16
+ libpulse-dev \
17
+ libnss3 \
18
+ cpu-checker \
19
+ # === 添加的 Android Emulator 和 Qt 相关依赖 ===
20
+ libdrm2 \
21
+ libxkbfile1 \
22
+ libxcb-cursor0 \
23
+ libxkbcommon-x11-0 \
24
+ libglu1-mesa \
25
+ libqt5gui5 \
26
+ libqt5core5a \
27
+ libqt5widgets5 \
28
+ libqt5network5 \
29
+ libqt5qml5 \
30
+ libqt5quick5 \
31
+ libx11-xcb-dev \
32
+ libxcb-xinerama0 \
33
+ libxcb-icccm4 \
34
+ libxcb-image0 \
35
+ libxcb-keysyms1 \
36
+ libxcb-randr0 \
37
+ libxcb-render0 \
38
+ libxcb-shape0 \
39
+ libxcb-sync1 \
40
+ libxcb-xfixes0 \
41
+ libxcb-glx0 \
42
+ libsdl2-2.0-0 \
43
+ libxext6 \
44
+ libpciaccess0
45
+
46
+ # 创建安装目录并切换到该目录
47
+ RUN mkdir -p /root/install-android && cd /root/install-android
48
+
49
+ # 下载和安装 OpenJDK
50
+ COPY openlogic-openjdk-8u412-b08-linux-x64-deb.deb .
51
+ RUN apt install -y ./openlogic-openjdk-8u412-b08-linux-x64-deb.deb
52
+
53
+ # 设置 Android 环境变量
54
+ ENV ANDROID_HOME=/root/.android
55
+ RUN mkdir -p $ANDROID_HOME
56
+
57
+ # 下载 Android SDK
58
+ COPY sdk-tools-linux-4333796.zip .
59
+ RUN unzip ./sdk-tools-linux-4333796.zip -d $ANDROID_HOME
60
+
61
+ # 更新 .bashrc 文件
62
+ RUN echo "export ANDROID_HOME=$ANDROID_HOME" >> /root/.bashrc \
63
+ && echo 'export SDK=$ANDROID_HOME' >> /root/.bashrc \
64
+ && echo 'export ANDROID_SDK_ROOT=$ANDROID_HOME' >> /root/.bashrc \
65
+ && echo 'export PATH=$SDK/emulator:$SDK/tools:$SDK/tools/bin:$SDK/platform-tools:$PATH' >> /root/.bashrc
66
+
67
+ # 安装 Android SDK 工具
68
+ RUN /bin/bash -c "source /root/.bashrc && yes | sdkmanager 'platform-tools' 'emulator'"
69
+ RUN /bin/bash -c "source /root/.bashrc && yes | sdkmanager 'build-tools;33.0.0'"
70
+ RUN /bin/bash -c "source /root/.bashrc && yes | sdkmanager 'platforms;android-33'"
71
+
72
+ # 复制文件到容器内的指定位置
73
+ COPY skins.zip .
74
+ RUN unzip ./skins.zip -d /root/.android/
75
+ COPY Pixel_7_Pro_API_33.ini /root/.android/avd/
76
+ COPY Pixel_7_Pro_API_33.avd.zip .
77
+ RUN unzip ./Pixel_7_Pro_API_33.avd.zip -d /root/.android/avd/
78
+
79
+ COPY adb_client.py /
80
+
81
+ COPY x86_64.zip .
82
+ RUN mkdir -p /root/.android/system-images/android-33/google_apis/
83
+ RUN unzip ./x86_64.zip -d /root/.android/system-images/android-33/google_apis/
84
+
85
+ # 清理不需要的文件
86
+ RUN rm /Pixel_7_Pro_API_33.avd.zip \
87
+ && rm /openlogic-openjdk-8u412-b08-linux-x64-deb.deb \
88
+ && rm /sdk-tools-linux-4333796.zip \
89
+ && rm /skins.zip \
90
+ && rm /x86_64.zip
91
+
92
+
resources/android/openlogic-openjdk-8u412-b08-linux-x64-deb.deb ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6e0d855ae563f4af87ccf933d0d5ae0d39a16d563a2fdf39712382708622810
3
+ size 105656450
resources/android/sdk-tools-linux-4333796.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92ffee5a1d98d856634e8b71132e8a95d96c83a63fde1099be3d86df3106def9
3
+ size 154582459
resources/android/skins.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1f437d6deebc6b4e7002c7838c3378f002e1fe2ce9a1614b93afc7e528a9757f
3
+ size 14314285
resources/android/x86_64.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80d059a585a317a581ef4448ab7242e74de5afbd287561f2e8f3125b45318568
3
+ size 1501886555