A generator to simplify the creation of HuamiWatchFaces2.jar
needed for creating Amazfit APK Watchfaces.
adb
(Android Debug Bridge)java
- Connect Amazfit Stratos to your computer
- Open
afwf-jar-lib-generator
(Downloaded from release) - Look for
./output/HuamiWatchFaces2.jar
This generators will run 5 topic of tasks (see: /index.js)
- Initialize
- Get dependencies
- Download the necessary tools and assets for the generation process (oat2dex, dex-tools, old-watchfaces apk)
- Generate JAR file from the odex obtained from your smartwatch
- Generate JAR file from the old watchfaces file
- Repack and create
HuamiWatchFaces2.jar
The executable is bundled using nexe. The underlying logic of the script is written in JavaScript for nodejs. If you want, it can also be executed using node
yarn install
node .
- This script follow the steps provided by https://github.com/RavenLiquid/amazfit-watchfaces#prerequisites
- This script should work for Amazfit Pace too (but it has only been tested with Stratos as of now)
- As of now, the release contains executable for Windows only. A pull request is welcomed to support other machine.