Skip to the content.

Compiling APKs with gradle

README

Adding canary repo (As its beta feature still)

  1. Open “package settings” menu
  2. Click 3 dots and select “source”
  3. Choose “new”
    • For URL add: https://gitlab.com/pwn-hunter/apt-repository/-/raw/canary/
    • For “New repo” add: canary main
  4. Do apt update

Installing deps and needed sdk’s

$ apt install gradle android-sdk-build-tools android-sdk-tools git

$ sdkmanager --update

$ sdkmanager "platforms;android-29"

Building apk from kali-nethunter-app (As example)

Cloning source code
$ home

$ git clone https://gitlab.com/kalilinux/nethunter/apps/kali-nethunter-app.git -b 2021.1 --depth=1

$ cd kali-nethunter-app

$ touch local.properties

$ echo "sdk.dir=/data/data/hilled.pwnterm/files/usr/share/android-sdk" >> local.properties
Building the app