Add generic APK URL source
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# adb-sideload-free-apps
|
||||
|
||||
Install free Android apps via ADB from F-Droid, GitHub Releases, GitLab Releases, or Codeberg Releases.
|
||||
Install free Android apps via ADB from F-Droid, GitHub Releases, GitLab Releases, Codeberg Releases, or generic HTTPS pages.
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -39,11 +39,18 @@ See `config.example.toml`. Supported sources:
|
||||
| `github` | `url` (repository) |
|
||||
| `gitlab` | `url` (projet) |
|
||||
| `codeberg` | `url` (repository Codeberg) |
|
||||
| `generic` | `url`, `asset_pattern` (HTTPS page or directory) |
|
||||
|
||||
Every application also requires `name` and `package`. For GitHub, GitLab, and Codeberg,
|
||||
set `asset_pattern` when a release contains more than one suitable APK. Debug,
|
||||
test and unsigned APKs are rejected by default.
|
||||
|
||||
The `generic` source follows HTTPS anchor links from `url`. Use ordered
|
||||
`intermediate_patterns` to navigate directories; when several links match, a
|
||||
pattern with numeric capture groups selects the greatest numeric tuple.
|
||||
`asset_pattern` is required and must match exactly one final APK. Optional
|
||||
`headers` and `sha256` are supported; header values are never logged.
|
||||
|
||||
`aapt2` is used to validate the APK package ID before installation, with
|
||||
`aapt` as a fallback for older Android SDK Build Tools. At least one of them
|
||||
must be available in `PATH`. The script refuses to install an APK when neither
|
||||
|
||||
Reference in New Issue
Block a user