安装#

Google Play#

借助谷歌应用商店是在Android设备上安装达世币钱包的最便捷的方式。

../../../../_images/google-play-badge.png

通过APK#

某些Android手机无法访问谷歌应用商店商店,原因是某些国家或地区的手机软件供应商和网络服务商不支持这项功能。在这种情况下,(还没有安装外部资源的)用户可以先手动安装,然后再下载并安装Android安装包。在安装进程中,用户可以参考以下说明:

  1. 通过设置 → 关于手机检查软件版本,确保软件至少为4.0.3版本。

  2. 通过设置 → 安全性 → 未知来源启用未知来源的软件,阅读并接受提示条款。

  3. Using your phone, download the latest version of the APK from this link.

  4. 如果用户无法使用手机上网,请使用电脑下载Android安装包,并通过数据线或蓝牙功能将安装包复制到手机上。用户可能还需要一个文件浏览器来查找复制的文件。

您还可以使用Android 调试(ADB)直接通过个人计算机进行安装。请参考以下说明:

  1. 通过设置 → 关于手机检查软件版本,确保软件至少为4.0.3版本。

  2. 用户需确保个人计算机上存有Android 调试的副本。SDK平台调试工具SDK Platform Tools适用于Mac、 Windows或Linux系统。

  3. 通过设置 → 安全性 → 未知来源启用未知来源的软件,阅读并接受提示条款。

  4. 通过设置 → 开发人员选项 → USB调试启用USB调试。如果开发者选项不可用,用户可在关于手机页面向下滚动,然后连续点击内部版本号七次。

  5. Using your PC, download the latest version of the APK from this link.

  6. 连接手机与个人计算机,打开终端或命令提示符窗口并输入以下内容:

    adb install <<path to .apk file>>
    

通过源#

The source code for the Dash Android wallet is available on GitHub. The following instructions describe how to compile an APK from source under an up-to-date installation of Ubuntu 20.04 LTS with a single non-root user. Begin by installing dependencies and downloading the latest Android SDK Tools:

sudo apt install openjdk-8-jdk-headless unzip make

mkdir android-sdk-linux/cmdline-tools -p
cd android-sdk-linux/cmdline-tools
wget https://dl.google.com/android/repository/commandlinetools-linux-6609375_latest.zip
unzip commandlinetools-linux-6609375_latest.zip

echo 'export ANDROID_SDK_ROOT=$HOME/android-sdk-linux' >> ~/.bashrc
echo 'export PATH=$ANDROID_SDK_ROOT/cmdline-tools/tools/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
cd ~

Next, download the necessary SDK platform bundles and dependencies and agree to the licenses:

sdkmanager "tools" "platform-tools" "platforms;android-15" "platforms;android-28" "build-tools;28.0.3" "ndk;20.0.5594570" "cmake;3.10.2.4988404"
yes | sdkmanager --licenses

在环境搭建完毕之后,用户需要下载并构建达世币Android钱包的资源:

git clone https://github.com/dashpay/dash-wallet.git
cd dash-wallet
git submodule update --init --recursive
./gradlew assembleProdRelease

The unsigned built APK files are now available in the ~/dash-wallet/wallet/build/outputs/apk/prod/release/ folder.