A file sharing client, media player and simple file manager for your Android devices.
FrostWire for Android lets you search and download files from the BitTorrent network and several popular cloud video services.
All the BitTorrent functionality is done using FrostWire's jlibtorrent library, a set of high level libtorrent wrappers.
The FrostWire team is an active contributor to libtorrent and jlibtorrent always tries to stay on par with the latest libtorrent release.
-
Keep it simple.
-
Do not repeat yourself. Re-use your own code and our code. It'll be faster to code, and easier to maintain.
-
If you want to help, Issue tracker is a good place to take a look at.
-
Try to follow our coding style and formatting before submitting a patch.
-
All pull requests should come from a feature branch created on your git fork. We'll review your code and will only merge it to the
masterbranch if it doesn't break the build. If you can include tests for your pull request you get extra bonus points ;) -
When you submit a pull request, try to explain what issue you're fixing in detail and how you're fixing it in detail, so it's easier for us to read your patches. If it's too hard to explain what you're doing, you're probably making things more complex than they already are. Look and test your code well before submitting patches.
-
We prefer well named methods and code re-usability than a lot of comments. Code should be self-explanatory.
Becoming a core collaborator with direct commit access to the upstream repository will only happen after we have received lots of great patches and we get to know you better.
Pre-requisites:
- JDK 17 or later (OpenJDK or Oracle JDK)
- Python 3.7+ with
rich(pip install rich) — for the launcher tool - Android SDK - Minimum API 26 (Android 8.0 Oreo), Target API 34 (Android 14)
- Android NDK (for native library compilation if building from source)
- Gradle (included with the
gradlewGradle Wrapper script) - Git to clone and version control the project
Make sure your JAVA_HOME and PATH environment variables are set correctly.
Example on a Linux/Mac system's .bashrc or .zshrc file:
export JAVA_HOME=/path/to/jdk17
export PATH=${PATH}:${JAVA_HOME}/binFor Android SDK, you can download it via Android Studio or as standalone tools.
We recommend using Android Studio as your development environment (it handles most configuration automatically).
-
Fork the project.
-
No matter how small your change will be, create a feature branch for it.
-
Make sure the name of your feature branch describes what you're trying to fix. If you don't know what to name it and there's an issue created for it, name your branch
issue-233(where 233 would be the number of the issue you're fixing). -
If your branch has taken a while to be accepted for merging into master, it's very likely that the
masterbranch will have moved forward while you work. In this case, make sure to sync yourmaster.
git checkout master
git pull upstream master
and then rebase your branch to bring it up to speed so it can be merged properly:
git checkout my-branch
git rebase master
as you do this you may have to fix any possible conflicts, just follow the instruction git gives you if this is your first time.
- Make sure to
squashany cosmetic commits into the body of your work so that we don't pollute the history and you don't get more bitcoins than you should from the rest of the collaborators for things like fixing a typo you just introduced on your branch.
- Make sure you have Android Studio properly installed.
- Open the project in Android Studio.
- Wait for gradle sync and indices to update.
- Should work out of the box.
To build a debug APK:
./gradlew assemblePlus1DebugThe built APK will be located at build/outputs/apk/plus1/debug/.
To install directly on a connected device or emulator:
./gradlew installPlus1DebugThe built APK will be located at build/outputs/apk/plus1/debug/.
To run tests:
./gradlew testSee the Running Tests section below for details on how to run specific test suites.
To clean build artifacts:
./gradlew cleanFor more build options:
./gradlew tasksOn Windows, use gradlew.bat instead of ./gradlew.
A command-line launcher with a TUI for building, installing, running and debugging FrostWire without Android Studio.
python3 frostwire_launcher.pyFeatures:
- Interactive device picker — lists all connected physical devices and emulators
- AVD management — create and delete Android Virtual Devices from SDK system images
- One-shot build + install + launch — select a device and the tool handles everything
- Live logcat viewer — streams FrostWire process output (tag-filtered) in the terminal with auto-refresh
Requirements:
- Python 3.7+
rich(pip install rich)adbandemulatorin PATH- Android SDK at
ANDROID_SDK_ROOTorANDROID_HOME
The tool auto-detects connected devices, available AVDs, SDK system images (API 26–36), and avdmanager/sdkmanager paths.
Happy coding!
Make sure you have Android SDK properly installed and the ANDROID_SDK_ROOT or ANDROID_HOME environment variable set:
export ANDROID_SDK_ROOT=/path/to/android/sdk
# or
export ANDROID_HOME=/path/to/android/sdk- Go to File → Invalidate Caches / Restart
- Select Invalidate and Restart
- Wait for the project to re-index
Increase Gradle heap size in gradle.properties:
org.gradle.jvmargs=-Xmx2560m -XX:+UseParallelGC --enable-native-access=ALL-UNNAMEDFrostWire Android uses Chaquopy for Python integration. Ensure you have Python 3 installed on your system.
| Task | What it runs |
|---|---|
./gradlew testPlus1DebugUnitTest |
All JVM unit tests (pure JVM + Robolectric) |
./gradlew test |
Unit tests for all variants |
./gradlew connectedPlus1DebugAndroidTest |
Instrumentation tests on a connected device/emulator |
./gradlew testPlus1DebugUnitTestThese tests cover structural regressions from the deprecation migration sprint and require no Android SDK or Robolectric downloads:
./gradlew testPlus1DebugUnitTest \
--tests "com.frostwire.android.gui.services.EngineIntentServiceMigrationTest" \
--tests "com.frostwire.android.gui.DeprecationMigrationStructureTest" \
--tests "com.frostwire.android.core.ConfigurationManagerGetStringTest"./gradlew testPlus1DebugUnitTest --tests "com.frostwire.android.core.ConfigurationManagerGetStringTest"./gradlew testPlus1DebugUnitTest --tests "com.frostwire.android.*"
./gradlew testPlus1DebugUnitTest --tests "com.andrew.apollo.*"After a run, results are available at:
- HTML report:
build/reports/tests/testPlus1DebugUnitTest/index.html - XML results:
build/test-results/testPlus1DebugUnitTest/
Tests annotated with @RunWith(RobolectricTestRunner.class) (e.g. ShuffleHistoryTest,
MusicPlaybackServiceStateTest, MediaButtonIntentReceiverTest) will download the Android SDK
JAR (~100 MB) on the first run. After that initial download the JAR is cached in ~/.m2 and
subsequent runs take only a few seconds.
The Android app consists of multiple Gradle modules:
| Location | Contains |
|---|---|
| src/main/java/com/frostwire/android/ | Android FrostWire (core, gui, transfers, services) |
| src/main/java/com/frostwire/android/gui/ | UI layer (activities, fragments, adapters, dialogs) |
| src/main/java/com/andrew/apollo/ | Apollo music player integration |
| src/main/java/com/limegroup/ | Legacy LimeWire code |
| apollo/ | Apollo Android resources |
| common/ | Cross-platform code shared with desktop (search, bittorrent, transfers) |
| desktop/ | Desktop-specific code (MCP, platform integrations) |
| res/ | Android resources (layouts, strings, drawables) |
| build.gradle | Project dependencies and build configuration |
Latest binaries | Previous versions (SourceForge)
Downloading FrostWire does not constitute permission or a license for obtaining or distributing unauthorized files. It is illegal for you to distribute copyrighted files without permission.
If you want to know about legal content you can download and distribute legally please visit FrostClick, VODO, ClearBits.net and Creative Commons
See COPYING for the license. Frostwire for Android is offered under the GNU General Public License Version 3 (GPL 3.0).
