{"id":18876089,"url":"https://github.com/activitywatch/aw-android","last_synced_at":"2026-03-05T11:03:18.239Z","repository":{"id":42436175,"uuid":"162004435","full_name":"ActivityWatch/aw-android","owner":"ActivityWatch","description":"ActivityWatch for Android, using aw-server-rust as backend.","archived":false,"fork":false,"pushed_at":"2024-09-03T22:12:02.000Z","size":840,"stargazers_count":196,"open_issues_count":51,"forks_count":28,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T23:18:56.671Z","etag":null,"topics":["activitywatch","android","rust"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ActivityWatch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ActivityWatch"],"open_collective":"activitywatch","liberapay":"ActivityWatch","custom":["https://activitywatch.net/donate/"]}},"created_at":"2018-12-16T13:35:14.000Z","updated_at":"2025-04-09T16:33:58.000Z","dependencies_parsed_at":"2023-01-21T15:47:40.837Z","dependency_job_id":"dcc0b6da-abdb-4c99-afe3-1540c6de3a39","html_url":"https://github.com/ActivityWatch/aw-android","commit_stats":{"total_commits":226,"total_committers":5,"mean_commits":45.2,"dds":"0.030973451327433676","last_synced_commit":"9d32040ff8a177e8441adf1294ded9280ab99e0d"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivityWatch%2Faw-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivityWatch%2Faw-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivityWatch%2Faw-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActivityWatch%2Faw-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActivityWatch","download_url":"https://codeload.github.com/ActivityWatch/aw-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248125643,"owners_count":21051777,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activitywatch","android","rust"],"created_at":"2024-11-08T06:10:41.838Z","updated_at":"2026-03-05T11:03:13.206Z","avatar_url":"https://github.com/ActivityWatch.png","language":"Kotlin","readme":"aw-android\n==========\n\n[![GitHub Actions badge](https://github.com/ActivityWatch/aw-android/workflows/Build/badge.svg)](https://github.com/ActivityWatch/aw-android/actions)\n[![Play Store ratings](https://PlayBadges.pavi2410.me/badge/ratings?id=net.activitywatch.android\u0026country=us)](https://play.google.com/store/apps/details?id=net.activitywatch.android)\n\nA very work-in-progress ActivityWatch app for Android.\n\nAvailable on Google Play:\n\n\u003ca title=\"Get it on Google Play\" href=\"https://play.google.com/store/apps/details?id=net.activitywatch.android\"\u003e\n    \u003cimg src=\"https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png\" width=\"240px\"/\u003e\n\u003c/a\u003e\n\n\n## Usage\n\nInstall the APK from the Play Store or from the [GitHub releases](https://github.com/ActivityWatch/aw-android/releases).\n\n### For Oculus Quest\n\n\u003e **Note** \n\u003e At some point a Quest system upgrade broke the ability to allow ActivityWatch access to usage stats. This can be fixed by manually assigning the needed permission using adb: `adb shell appops set net.activitywatch.android android:get_usage_stats allow`\n\nIt's available [on SideQuest](https://sidequestvr.com/#/app/201). \n\n\n## Building\n\nTo build this app you first need to build aw-server-rust (`./aw-server-rust`) and aw-webui (`./aw-server-rust/aw-webui`).\n\nIf you haven't already, initialize the submodules with: `git submodule update --init --recursive`\n\n### Building aw-server-rust\n\n\u003e **Note**\n\u003e If you don't want to go through the hassle of getting Rust up and running, you can download the jniLibs from [aw-server-rust CI artifacts](https://github.com/ActivityWatch/aw-server-rust/actions/workflows/build.yml) and place them in `mobile/src/main/jniLibs` manually instead of following this section.\n\nTo build aw-server-rust you need to have Rust nightly installed (with rustup). Then you can build it with:\n\n```\nexport ANDROID_NDK_HOME=`pwd`/aw-server-rust/NDK  # The path to your NDK\npushd aw-server-rust \u0026\u0026 ./install-ndk.sh; popd    # This configures the NDK for use with Rust, and installs the NDK if missing\nenv RELEASE=false make aw-server-rust             # Set RELEASE=true to build in release mode (slower build, harder to debug)\n```\n\n\u003e **Note**\n\u003e The Android NDK will be downloaded by `install-ndk.sh` to `aw-server-rust/NDK` if `ANDROID_NDK_HOME` not set. You can create a symlink pointing to the real location if you already have it elsewhere (such as /opt/android-ndk/ on Arch Linux).\n\n### Building aw-webui\n\nTo build aw-webui you need a recent version of node/npm installed. You can then build it with `make aw-webui`.\n\n### Putting it all together\n\nOnce both aw-server-rust and aw-webui is built, you can build the Android app as any other Android app using Android Studio.\n\n### Making a release\n\nTo make a release, make a signed tag and push it to GitHub:\n\n```sh\ngit tag -s v0.1.0\ngit push origin refs/tags/v0.1.0\n```\n\nThis will trigger a GitHub Actions workflow which will build the app and upload it to GitHub releases, and deploy it to the Play Store (including the metadata in `./fastlane/metadata/android`).\n\n## More info\n\nFor more info, check out the main [ActivityWatch repo](https://github.com/ActivityWatch/activitywatch).\n","funding_links":["https://github.com/sponsors/ActivityWatch","https://opencollective.com/activitywatch","https://liberapay.com/ActivityWatch","https://activitywatch.net/donate/"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivitywatch%2Faw-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivitywatch%2Faw-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivitywatch%2Faw-android/lists"}