Compare commits

..

64 Commits

Author SHA1 Message Date
Imran
7d01141db5 Merge pull request #2300 from ImranR98/dev
Update Kotlin version (to enable Docker builder) + update Dockerfile
2025-05-17 21:59:17 -04:00
Imran Remtulla
195c0d1f11 Update Kotlin version (to enable Docker builder) + update Dockerfile 2025-05-17 21:56:32 -04:00
Imran
6b8bb095d4 Merge pull request #2150 from Fmstrat/docker-build
Add support for building via a docker container [remote dev]
2025-05-17 21:41:25 -04:00
Imran
fd9bf721d4 Merge pull request #2299 from ImranR98/dev
Attempt to fix RuStore charset bug (#2294)
2025-05-17 21:02:44 -04:00
Imran Remtulla
1a058a1959 Increment version 2025-05-17 20:59:19 -04:00
Imran Remtulla
f78beff5d8 Attempt to fix RuStore charset bug (#2294) 2025-05-17 20:58:32 -04:00
Imran
39757a3416 Merge pull request #2296 from bernikr/apkpure-fix-no-variants
bugfix: invalid version codes for some apkpure links
2025-05-17 20:39:52 -04:00
Imran
e7ff0bb2cb Merge pull request #2295 from summoner001/main
Update hu.json
2025-05-17 20:39:35 -04:00
Imran
b1bd488f22 Merge pull request #2297 from Cambrells/main
Updated ca.json
2025-05-17 20:39:32 -04:00
summoner001
8201348995 Fix separete spelling 2025-05-17 21:01:05 +02:00
Cambrells
c1ddc57126 Updated ca.json 2025-05-17 20:55:15 +02:00
bernikr
b41b9d3109 bugfix: invalid version codes for some apkpure links 2025-05-17 15:49:28 +02:00
summoner001
add2574c25 Update hu.json
Translate new string
2025-05-17 14:45:58 +02:00
Imran
c702dbcefe Merge pull request #2292 from ImranR98/dev
- Add missing update ownership permission (#2078)
- Update colour picker component to pick up layout fix (#2258)
- Fix a few more title case lines (#2284)
- Added battery optimization notice to welcome message (#2291)
2025-05-17 01:12:09 -04:00
Imran Remtulla
19710cf7ad Increment version 2025-05-17 01:11:00 -04:00
Imran Remtulla
104a19bc32 Add allowOverride = false to vivo store 2025-05-17 01:10:07 -04:00
Imran Remtulla
b02de232ee Merge remote-tracking branch 'origin/main' into dev 2025-05-17 01:09:37 -04:00
Imran
971b5dbf11 Merge pull request #2269 from iKirby/vivo
Add support for vivo App Store
2025-05-17 01:09:23 -04:00
Imran
eb805bd30a Merge pull request #2285 from wodin/add-allow-override-app-source-option
Add allowOverride app source option
2025-05-17 01:08:12 -04:00
Imran
21ec90c11c Merge pull request #2290 from bernikr/apkpure-fix-no-variants
allow apkpure links for apks with no variant list
2025-05-17 01:07:01 -04:00
Imran Remtulla
51ed211b3d Added battery optimization notice to welcome message (#2291) 2025-05-17 01:06:03 -04:00
Imran Remtulla
34848794e4 Fix a few more title case lines (#2284) 2025-05-17 00:53:02 -04:00
Imran Remtulla
ab3489f60d Update colour picker component to pick up layout fix (#2258) 2025-05-17 00:51:22 -04:00
Imran Remtulla
12c878eaba Merge remote-tracking branch 'origin/main' into dev 2025-05-17 00:42:49 -04:00
Imran Remtulla
6c3a496be1 Add missing update ownership permission (#2078) 2025-05-17 00:42:38 -04:00
bernikr
b2742dd904 allow apkpure links for apks with no variant listt 2025-05-14 16:17:22 +02:00
Michael Wood
1d69e42949 Add allowOverride app source option 2025-05-12 13:18:16 +02:00
iKirby
9ce74beda5 Add appId empty check 2025-05-06 16:56:13 +08:00
iKirby
26bca6df64 Fix parsing vivo app id from URL when using source override 2025-05-06 16:18:31 +08:00
iKirby
7a7a6f78e9 Indicate vivo App Store is for CN site only 2025-05-06 16:04:03 +08:00
iKirby
8d062f0296 Remove unnecessary custom header 2025-05-06 15:52:14 +08:00
Imran
8d54824a7d Merge pull request #2267 from UjuiUjuMandan/fastlane
Convert fastlane images to symbolic links
2025-05-05 14:56:28 -04:00
Imran
20d3c4141e Merge pull request #2273 from wodin/use-built-in-url-resolver
Use built-in method to fix HTML link resolution
2025-05-05 14:52:31 -04:00
Michael Wood
2f54de6d7c Use built-in method to fix HTML link resolution 2025-05-02 10:33:55 +02:00
iKirby
849a565177 Add support for vivo App Store 2025-04-29 17:01:11 +08:00
UjuiUjuMandan
972d7d6634 Google Play requires 512x512 2025-04-28 00:24:59 +08:00
UjuiUjuMandan
2a3251aacb symbolic link 2025-04-28 00:12:12 +08:00
UjuiUjuMandan
fa6ed32ad5 test symbolic link 2025-04-28 00:07:46 +08:00
UjuiUjuMandan
53caa88d6f ru/title.txt 2025-04-27 23:51:56 +08:00
UjuiUjuMandan
5dab58cc89 Validate Fastlane metadata 2025-04-27 23:51:45 +08:00
Imran
e061e99451 Merge pull request #2266 from ImranR98/dev
Bugfix
2025-04-27 04:57:22 +00:00
Imran Remtulla
a282080fea Fix bug from previous commit 2025-04-27 00:55:57 -04:00
Imran Remtulla
0b812b508a Fix bug from previous commit 2025-04-27 00:54:03 -04:00
Imran
e639758b15 Merge pull request #2265 from ImranR98/dev
- Always follow redirects and store cookies between redirects, including for downloads —useful for https://xeiaso.net/blog/2025/anubis (https://github.com/ImranR98/Obtainium/issues/2264)
- Even more flexibility in the HTML source — JSON string extraction fallback (https://github.com/ImranR98/Obtainium/issues/2262)
2025-04-27 04:15:43 +00:00
Imran Remtulla
f159c0bd44 Upgrade packages, increment version 2025-04-27 00:13:21 -04:00
Imran Remtulla
950bf28289 Even more flexibility in the HTML source — JSON string extraction fallback (#2262) 2025-04-27 00:10:06 -04:00
Imran Remtulla
ecf4326b47 Always follow redirects and store cookies between redirects, including for downloads —useful for https://xeiaso.net/blog/2025/anubis (#2264) 2025-04-26 23:48:15 -04:00
Imran
98182d9873 Merge pull request #2256 from ImranR98/dev
Minor bug: avoid showing empty dialog when notifications tapped (#2250)
2025-04-22 18:57:23 -04:00
Imran Remtulla
c7c6731732 Upgrade packages, increment version 2025-04-22 18:50:47 -04:00
Imran Remtulla
b62b60d9df Minor bug: avoid showing empty dialog when notifications tapped (#2250) 2025-04-20 19:01:14 -04:00
Imran
3e41913153 Merge pull request #2247 from ImranR98/dev
- Remove Oxford comma (#2245) 
- Show error dialog box when error notification tapped (#2246)
2025-04-18 16:37:35 -04:00
Imran Remtulla
6b4943349a Upgrade packages + Flutter, increment version 2025-04-18 16:35:54 -04:00
Imran Remtulla
2f60835801 Add pt_BR to language list, rename pt, standardize languages 2025-04-18 16:30:30 -04:00
Imran Remtulla
3de2121ed8 Merge remote-tracking branch 'origin/main' into dev 2025-04-18 16:24:39 -04:00
Imran
e1c80229ab Merge pull request #2183 from UjuiUjuMandan/coolapk
Add CoolApk
2025-04-18 16:24:25 -04:00
Imran
e9feaf0d8b Merge pull request #2228 from lucasmz-dev/main
i10n: pt-BR
2025-04-18 16:24:02 -04:00
Imran Remtulla
3175597a2a Remove Oxford comma (#2245) 2025-04-18 16:08:06 -04:00
Imran Remtulla
6af1748a78 Show error dialog box when error notification tapped (#2246) 2025-04-18 16:05:16 -04:00
UjuiUjuMandan
c9aed8dfc4 clean up debug prints 2025-04-14 04:49:11 +00:00
Lucas
9c3bdafa47 Rename pt-BR.json to pt-BR.json 2025-04-06 17:36:42 +00:00
Lucas
d4e857f7f4 Rename obtainium-unofficial-app-pt_BR.json to pt-BR.json 2025-04-06 17:36:20 +00:00
Lucas
74d6ffcfb3 Add files via upload 2025-04-06 17:33:43 +00:00
UjuiUjuMandan
988f9a6f9f Add CoolApk 2025-03-13 12:54:28 +00:00
Fmstrat
d9c29c6751 add support for building via a docker container [remote dev] 2025-02-26 23:18:02 +00:00
63 changed files with 1232 additions and 224 deletions

15
.dockerignore Normal file
View File

@@ -0,0 +1,15 @@
LICENSE.md
README.md
analysis_options.yaml
android
assets
build
build.sh
data
docker
fastlane
lib
pubspec.lock
pubspec.yaml
sign.sh
test

16
.github/workflows/fastlane.yml vendored Normal file
View File

@@ -0,0 +1,16 @@
name: Validate Fastlane metadata
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate Fastlane Supply Metadata
uses: ashutoshgngwr/validate-fastlane-supply-metadata@v2

3
.gitignore vendored
View File

@@ -48,4 +48,5 @@ app.*.map.json
/android/app/.cxx
# Custom
TODO.txt
TODO.txt
data

View File

@@ -30,6 +30,8 @@ Currently supported App sources:
- [Uptodown](https://uptodown.com/)
- [Huawei AppGallery](https://appgallery.huawei.com/)
- [Tencent App Store](https://sj.qq.com/)
- [CoolApk](https://coolapk.com/)
- [vivo App Store (CN)](https://h5.appstore.vivo.com.cn/)
- [RuStore](https://rustore.ru/)
- Jenkins Jobs
- [APKMirror](https://apkmirror.com/) (Track-Only)

View File

@@ -69,6 +69,7 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<uses-permission android:name="android.permission.ENFORCE_UPDATE_OWNERSHIP"/>
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />

View File

@@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.1.0" apply false
id "org.jetbrains.kotlin.android" version "1.8.22" apply false
id "org.jetbrains.kotlin.android" version "2.1.21" apply false
}
include ":app"

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Stay one version behind latest",
"refreshBeforeDownload": "Refresh app details before download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Name",
"smartname": "Name (Smart)",
"sortMethod": "Sort Method",
"welcome": "Welcome",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions, and other resources that will help you understand how to use the app.",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions and other resources that will help you understand how to use the app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Želite li ukloniti aplikaciju?",
"other": "Želite li ukloniti aplikacije?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Roman a la versió anterior a l'última",
"refreshBeforeDownload": "Actualitza les dades de l'aplicació abans de descarregar-la",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nom",
"smartname": "Nom (smart)",
"sortMethod": "Mètode d'ordenació",
"welcome": "Benvinguda",
"documentationLinksNote": "La pàgina GitHub d'Obtainium enllaçada a sota conté enllaços a vídeos, articles, debats i altres recursos que t'ajudaran a entendre com usar l'aplicació.",
"batteryOptimizationNote": "Tingues present que les descàrregues en segon pla funcionaran millor si inhabilites l'optimització de bateria per a Obtainium.",
"removeAppQuestion": {
"one": "¿Suprimeixo l'aplicació?",
"other": "¿Suprimeixo les aplicacions?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Zůstaňte o jednu verzi pozadu za nejnovější",
"refreshBeforeDownload": "Obnovení údajů o aplikaci před stažením",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Název",
"smartname": "Název (Smart)",
"sortMethod": "Metoda třídění",
"welcome": "Vítejte na",
"documentationLinksNote": "Níže odkazovaná stránka Obtainium GitHub obsahuje odkazy na videa, články, diskuse a další zdroje, které vám pomohou pochopit, jak aplikaci používat.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Odstranit Apku?",
"other": "Odstranit Apky?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Forbliv én version bagud den seneste",
"refreshBeforeDownload": "Opdater app-detaljer før download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Navn",
"smartname": "Navn (Smart)",
"sortMethod": "Sorteringsmetode",
"welcome": "Velkommen",
"documentationLinksNote": "Obtainiums GitHub-side, som der linkes til nedenfor, indeholder links til videoer, artikler, diskussioner og andre ressourcer, som kan hjælpe dig med at forstå, hvordan du bruger appen.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Fjern app?",
"other": "Fjern apps?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Eine Version hinter der neuesten Version bleiben",
"refreshBeforeDownload": "App-Details vor dem Download aktualisieren",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Name",
"smartname": "Name (Smart)",
"sortMethod": "Sortierverfahren",
"welcome": "Willkommen",
"documentationLinksNote": "Die unten verlinkte GitHub-Seite von Obtainium enthält Links zu Videos, Artikeln, Diskussionen und anderen Ressourcen, die Ihnen helfen werden, die Verwendung der App zu verstehen.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "App entfernen?",
"other": "Apps entfernen?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Stay one version behind latest",
"refreshBeforeDownload": "Refresh app details before download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Name",
"smartname": "Name (Smart)",
"sortMethod": "Sort Method",
"welcome": "Welcome",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions, and other resources that will help you understand how to use the app.",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions and other resources that will help you understand how to use the app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Forigi la aplikaĵon?",
"other": "Forigi la aplikaĵojn?"

View File

@@ -320,14 +320,17 @@
"stayOneVersionBehind": "Stay one version behind latest",
"refreshBeforeDownload": "Refresh app details before download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"vivoAppStore": "vivo App Store (CN)",
"name": "Name",
"smartname": "Name (smart)",
"sortMethod": "Sort method",
"welcome": "Welcome",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions, and other resources that will help you understand how to use the app.",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions and other resources that will help you understand how to use the app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Remove App?",
"other": "Remove Apps?"
"one": "Remove app?",
"other": "Remove apps?"
},
"tooManyRequestsTryAgainInMinutes": {
"one": "Too many requests (rate limited) - try again in {} minute",

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Mantenerse una versión por detrás de la última",
"refreshBeforeDownload": "Actualiza los datos de la aplicación antes de descargarla",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nombre",
"smartname": "Nombre (Smart)",
"sortMethod": "Método de clasificación",
"welcome": "Bienvenido",
"documentationLinksNote": "La página GitHub de Obtainium enlazada a continuación contiene enlaces a vídeos, artículos, debates y otros recursos que te ayudarán a entender cómo utilizar la aplicación.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "¿Eliminar aplicación?",
"other": "¿Eliminar aplicaciones?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "یک نسخه از آخرین نسخه پشت سر بگذارید",
"refreshBeforeDownload": "قبل از دانلود، جزئیات برنامه را بازخوانی کنید",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Name",
"smartname": "Name (Smart)",
"sortMethod": "Sort Method",
"welcome": "Welcome",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions, and other resources that will help you understand how to use the app.",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions and other resources that will help you understand how to use the app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "برنامه حذف شود؟",
"other": "برنامه ها حذف شوند؟"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Rester une version en arrière de la dernière",
"refreshBeforeDownload": "Actualiser les détails de l'application avant de la télécharger",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nom",
"smartname": "Nom (Smart)",
"sortMethod": "Méthode de tri",
"welcome": "Bienvenue",
"documentationLinksNote": "La page GitHub d'Obtainium, dont le lien figure ci-dessous, contient des liens vers des vidéos, des articles, des discussions et d'autres ressources qui vous aideront à comprendre comment utiliser l'application.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Supprimer l'application ?",
"other": "Supprimer les applications ?"

View File

@@ -28,11 +28,11 @@
"githubStarredRepos": "Csillagozott GitHub tárolók",
"uname": "Felhasználónév",
"wrongArgNum": "A megadott argumentumok száma nem megfelelő",
"xIsTrackOnly": "A(z) {} csak nyomon-követhető",
"xIsTrackOnly": "A(z) {} csak nyomon követhető",
"source": "Forrás",
"app": "Alkalmazás",
"appsFromSourceAreTrackOnly": "Az ebből a forrásból származó alkalmazások „csak nyomon-követhetők”.",
"youPickedTrackOnly": "„Csak nyomon-követés” opciót választotta.",
"appsFromSourceAreTrackOnly": "Az ebből a forrásból származó alkalmazások „csak nyomon követhetők”.",
"youPickedTrackOnly": "„Csak nyomon követés” opciót választotta.",
"trackOnlyAppDescription": "Az alkalmazás frissítéseit nyomon követi, de az Obtainium nem tudja letölteni vagy telepíteni.",
"cancelled": "Visszavonva",
"appAlreadyAdded": "Az alkalmazás már hozzá van adva",
@@ -45,7 +45,7 @@
"search": "Keresés",
"additionalOptsFor": "További lehetőségek a következőhöz: {}",
"supportedSources": "Támogatott források",
"trackOnlyInBrackets": "(Csak nyomon-követés)",
"trackOnlyInBrackets": "(Csak nyomon követés)",
"searchableInBrackets": "(Kereshető)",
"appsString": "Alkalmazások",
"noApps": "Nincsenek alkalmazások",
@@ -63,7 +63,7 @@
"removeSelectedApps": "A kiválasztott alkalmazások eltávolítása",
"updateX": "{} frissítése",
"installX": "{} telepítése",
"markXTrackOnlyAsUpdated": "Megjelölés: {}\n(Csak nyomon-követés)\nFrissítettként",
"markXTrackOnlyAsUpdated": "Megjelölés: {}\n(Csak nyomon követés)\nFrissítettként",
"changeX": "{}-változás",
"installUpdateApps": "Alkalmazások telepítése/frissítése",
"installUpdateSelectedApps": "A kiválasztott alkalmazások telepítése/frissítése",
@@ -143,7 +143,7 @@
"warning": "Figyelem",
"sourceIsXButPackageFromYPrompt": "Az alkalmazás forrása a(z) „{}” tároló, de a kiadási csomag innen származik: „{}”. Folytatja?",
"updatesAvailable": "Frissítések érhetők el",
"updatesAvailableNotifDescription": "Értesíti a felhasználót, hogy egy vagy több, az Obtainium által nyomon-követett alkalmazáshoz frissítések állnak rendelkezésre",
"updatesAvailableNotifDescription": "Értesíti a felhasználót, hogy egy vagy több, az Obtainium által nyomon követett alkalmazáshoz frissítések állnak rendelkezésre",
"noNewUpdates": "Nincsenek új frissítések.",
"xHasAnUpdate": "A(z) {} frissítést kapott.",
"appsUpdated": "Alkalmazások frissítve",
@@ -162,7 +162,7 @@
"checkingForUpdates": "Frissítések ellenőrzése",
"checkingForUpdatesNotifDescription": "Átmeneti értesítés, amely a frissítések ellenőrzésekor jelenik meg",
"pleaseAllowInstallPerm": "Engedélyezze az Obtainiumnak az alkalmazások telepítését",
"trackOnly": "Csak nyomon-követés",
"trackOnly": "Csak nyomon követés",
"errorWithHttpStatusCode": "Hiba {}",
"versionCorrectionDisabled": "Verzió-korrekció letiltva (úgy tűnik, hogy a bővítmény nem működik)",
"unknown": "Ismeretlen",
@@ -224,7 +224,7 @@
"autoLinkFilterByArch": "Ha lehetséges, próbálja meg a hivatkozásokat CPU-architektúra szerint szűrni",
"overrideSource": "Forrás felülírása",
"dontShowAgain": "Ne jelenítse meg ezt többé",
"dontShowTrackOnlyWarnings": "Ne jelenítse meg a „Csak nyomon-követés” figyelmeztetést",
"dontShowTrackOnlyWarnings": "Ne jelenítse meg a „Csak nyomon követés” figyelmeztetést",
"dontShowAPKOriginWarnings": "Ne jelenítse meg az APK eredetére vonatkozó figyelmeztetéseket",
"moveNonInstalledAppsToBottom": "Helyezze át a nem telepített alkalmazásokat az alkalmazásnézet aljára",
"gitlabPATLabel": "GitLab személyes hozzáférési token",
@@ -287,7 +287,7 @@
"downloadingXNotifChannel": "A(z) {} letöltése",
"completeAppInstallationNotifChannel": "Teljes alkalmazás telepítés",
"checkingForUpdatesNotifChannel": "Frissítések ellenőrzése",
"onlyCheckInstalledOrTrackOnlyApps": "Csak a telepített és a csak nyomon-követhető alkalmazások frissítéseinek ellenőrzése",
"onlyCheckInstalledOrTrackOnlyApps": "Csak a telepített és a csak nyomon követhető alkalmazások frissítéseinek ellenőrzése",
"supportFixedAPKURL": "Támogatja a rögzített APK webcímeket",
"selectX": "{} kiválasztása",
"parallelDownloads": "Párhuzamos letöltések engedélyezése",
@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Maradjon egy verzióval a legújabb mögött",
"refreshBeforeDownload": "Az alkalmazás adatainak frissítése a letöltés előtt",
"tencentAppStore": "Tencent Appstore",
"coolApk": "CoolApk",
"name": "Név",
"smartname": "Név (Okos)",
"sortMethod": "Rendezési eljárás",
"welcome": "Üdvözöljük!",
"documentationLinksNote": "Az alábbi hivatkozás az Obtainium GitHub oldalára vezet, amely további videók, cikkek, beszélgetések és egyéb források hivatkozásait tartalmazza, amelyek segítenek megérteni az alkalmazás használatát.",
"batteryOptimizationNote": "Megjegyzés: A háttérfrissítések megbízhatóbban működhetnek, ha kikapcsolja a rendszer akkumulátor-optimalizálását az Obtainium számára.",
"removeAppQuestion": {
"one": "Eltávolítja az alkalmazást?",
"other": "Eltávolítja az alkalmazásokat?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Tetap satu versi di belakang versi terbaru",
"refreshBeforeDownload": "Segarkan detail aplikasi sebelum mengunduh",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nama",
"smartname": "Nama (Cerdas)",
"sortMethod": "Metode Penyortiran",
"welcome": "Selamat datang.",
"documentationLinksNote": "Halaman GitHub Obtainium yang ditautkan di bawah ini berisi tautan ke video, artikel, diskusi, dan sumber daya lain yang akan membantu Anda memahami cara menggunakan aplikasi.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Hapus aplikasi?",
"other": "Hapus aplikasi?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Rimanere una versione indietro rispetto alla più recente",
"refreshBeforeDownload": "Aggiornare i dettagli dell'app prima del download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nome",
"smartname": "Nome (intelligente)",
"sortMethod": "Metodo di ordinamento",
"welcome": "Benvenuti",
"documentationLinksNote": "La pagina GitHub di Obtainium collegata qui sotto contiene collegamenti a video, articoli, discussioni e altre risorse che vi aiuteranno a capire come utilizzare l'applicazione.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Rimuovere l'app?",
"other": "Rimuovere le app?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "最新のバージョンから1つ前のものを使用する",
"refreshBeforeDownload": "ダウンロード前にアプリの詳細を更新する",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "名称",
"smartname": "名前(スマート)",
"sortMethod": "ソート方法",
"welcome": "ようこそ",
"documentationLinksNote": "以下のリンクにあるObtainium GitHubページには、ビデオ、記事、ディスカッション、その他のリソースへのリンクがあり、アプリの使い方を理解するのに役立ちます。",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "アプリを削除しますか?",
"other": "アプリを削除しますか?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "최신 버전보다 한 버전 뒤에 머무르기",
"refreshBeforeDownload": "다운로드 전에 앱 세부 정보 새로 고침",
"tencentAppStore": "텐센트 앱 스토어",
"coolApk": "CoolApk",
"name": "이름",
"smartname": "이름(스마트)",
"sortMethod": "정렬 방법",
"welcome": "환영",
"documentationLinksNote": "아래에 링크된 Obtainium 깃허브 페이지에는 앱 사용 방법을 이해하는 데 도움이 되는 동영상, 기사, 토론 및 기타 리소스에 대한 링크가 포함되어 있습니다.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "앱을 제거하시겠습니까?",
"other": "앱을 제거하시겠습니까?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Blijf een versie achter op de nieuwste",
"refreshBeforeDownload": "Vernieuw app details voor download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Naam",
"smartname": "Naam (Slim)",
"sortMethod": "Sorteermethode",
"welcome": "Welkom",
"documentationLinksNote": "De GitHub pagina van Obtainium waarnaar hieronder wordt gelinkt bevat links naar video's, artikelen, discussies en andere bronnen die je zullen helpen begrijpen hoe je de app kunt gebruiken.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "App verwijderen?",
"other": "Apps verwijderen?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Pozostań jedną wersję w tyle za najnowszą",
"refreshBeforeDownload": "Odśwież szczegóły aplikacji przed pobraniem",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nazwa",
"smartname": "Nazwa (Smart)",
"sortMethod": "Metoda sortowania",
"welcome": "Witamy",
"documentationLinksNote": "Strona Obtainium GitHub, do której link znajduje się poniżej, zawiera linki do filmów, artykułów, dyskusji i innych zasobów, które pomogą ci zrozumieć, jak korzystać z aplikacji.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Usunąć aplikację?",
"few": "Usunąć aplikacje?",

View File

@@ -0,0 +1,390 @@
{
"invalidURLForSource": "Não é uma URL de app válida de {}",
"noReleaseFound": "Não foi possível encontrar um lançamento adequado",
"noVersionFound": "Não foi possível determinar a versão do lançamento",
"urlMatchesNoSource": "A URL não corresponde com nenhuma fonte conhecida",
"cantInstallOlderVersion": "Não é possível instalar uma versão mais antiga de um app",
"appIdMismatch": "O ID do pacote baixado não corresponde ao existente",
"functionNotImplemented": "Essa classe não implementou esse recurso ainda",
"placeholder": "Espaço reservado",
"someErrors": "Ocorreram alguns erros",
"unexpectedError": "Erro inesperado",
"ok": "Ok",
"and": "e",
"githubPATLabel": "Token de acesso pessoal do GitHub (aumenta o limite de taxa)",
"includePrereleases": "Incluir pré-lançamentos",
"fallbackToOlderReleases": "Recorrer à lançamentos mais antigos",
"filterReleaseTitlesByRegEx": "Filtrar títulos de lançamentos por expressão regular",
"invalidRegEx": "Expressão regular inválida",
"noDescription": "Sem descrição",
"cancel": "Cancelar",
"continue": "Continuar",
"requiredInBrackets": "(obrigatório)",
"dropdownNoOptsError": "ERRO: O MENU DEVE TER PELO MENOS UMA OPÇÃO",
"colour": "Cor",
"standard": "Padrão",
"custom": "Personalizado",
"useMaterialYou": "Usar Material You",
"githubStarredRepos": "Repositórios com estrela do GitHub",
"uname": "Nome de usuário",
"wrongArgNum": "Número errado de argumentos fornecidos",
"xIsTrackOnly": "{} é somente de rastreio",
"source": "Fonte",
"app": "App",
"appsFromSourceAreTrackOnly": "Apps desta fonte são somente para rastreamento.",
"youPickedTrackOnly": "Você selecionou a opção de somente rastreamento.",
"trackOnlyAppDescription": "As atualizações do app serão rastreadas, mas o Obtainium não baixará ou instalará elas.",
"cancelled": "Cancelado",
"appAlreadyAdded": "O app já foi adicionado",
"alreadyUpToDateQuestion": "O app já está atualizado?",
"addApp": "Adicionar app",
"appSourceURL": "URL da fonte do app",
"error": "Erro",
"add": "Adicionar",
"searchSomeSourcesLabel": "Pesquisar (somente algumas fontes)",
"search": "Pesquisar",
"additionalOptsFor": "Opções adicionais de {}",
"supportedSources": "Fontes suportadas",
"trackOnlyInBrackets": "(somente rastreamento)",
"searchableInBrackets": "(pesquisável)",
"appsString": "Apps",
"noApps": "Nenhum app",
"noAppsForFilter": "Nenhum app pro filtro",
"byX": "Por {}",
"percentProgress": "Progresso: {}%",
"pleaseWait": "Por favor aguarde",
"updateAvailable": "Atualização disponível",
"notInstalled": "Não instalado",
"pseudoVersion": "pseudo-versão",
"selectAll": "Selecionar tudo",
"deselectX": "Desselecionar {}",
"xWillBeRemovedButRemainInstalled": "{} será removido do Obtainium mas continuará instalado no dispositivo.",
"removeSelectedAppsQuestion": "Remover os apps selecionados?",
"removeSelectedApps": "Remover apps selecionados",
"updateX": "Atualizar {}",
"installX": "Instalar {}",
"markXTrackOnlyAsUpdated": "Marcar {}\n(somente rastreamento)\ncomo atualizado",
"changeX": "Alterar {}",
"installUpdateApps": "Instalar/atualizar apps",
"installUpdateSelectedApps": "Instalar/atualizar apps selecionados",
"markXSelectedAppsAsUpdated": "Marcar os {} apps selecionados como atualizados?",
"no": "Não",
"yes": "Sim",
"markSelectedAppsUpdated": "Marcar apps selecionados como atualizados",
"pinToTop": "Fixar ao topo",
"unpinFromTop": "Desfixar do topo",
"resetInstallStatusForSelectedAppsQuestion": "Redefinir o estado de instalação dos apps selecionados?",
"installStatusOfXWillBeResetExplanation": "Os estados de instalação dos apps selecionados serão redefinidos.\n\nIsso pode ajudar quando a versão exibida no Obtainium está incorreta devido a atualizações malsucedidas ou outros problemas.",
"customLinkMessage": "Esses links funcionarão em dispositivos com o Obtainium instalado",
"shareAppConfigLinks": "Compartilhar configuração do app como um link HTML",
"shareSelectedAppURLs": "Compartilhar as URLs dos apps selecionados",
"resetInstallStatus": "Redefinir estado de instalação",
"more": "Mais",
"removeOutdatedFilter": "Remover filtro de apps desatualizados",
"showOutdatedOnly": "Mostrar somente apps desatualizados",
"filter": "Filtro",
"filterApps": "Filtrar apps",
"appName": "Nome do app",
"author": "Autor",
"upToDateApps": "Apps atualizados",
"nonInstalledApps": "Apps não instalados",
"importExport": "Importar/Exportar",
"settings": "Configurações",
"exportedTo": "Exportado para {}",
"obtainiumExport": "Exportação do Obtainium",
"invalidInput": "Entrada inválida",
"importedX": "{} importado(s)",
"obtainiumImport": "Importação do Obtainium",
"importFromURLList": "Importar da lista de URLs",
"searchQuery": "Consulta de pesquisa",
"appURLList": "Lista de URLs dos apps",
"line": "Linha",
"searchX": "Pesquisar {}",
"noResults": "Nenhum resultado encontrado",
"importX": "Importar {}",
"importedAppsIdDisclaimer": "Os apps importados podem ser exibidos incorretamente como se não estivessem instalados.\nPara resolver isso, reinstale eles pelo Obtainium.\nIsso não afetará os dados dos apps.\n\nIsso somente afeta a URL e os métodos de importação de terceiros.",
"importErrors": "Erros de importação",
"importedXOfYApps": "{} de {} foram importados.",
"followingURLsHadErrors": "As seguintes URLs tiveram erros:",
"selectURL": "Selecionar URL",
"selectURLs": "Selecionar URLs",
"pick": "Escolher",
"theme": "Tema",
"dark": "Escuro",
"light": "Claro",
"followSystem": "Seguir o sistema",
"followSystemThemeExplanation": "Só é possível seguir o tema do sistema ao usar aplicativos de terceiros",
"useBlackTheme": "Usar o tema escuro de preto profundo",
"appSortBy": "Ordenar apps por",
"authorName": "Autor/nome",
"nameAuthor": "Nome/autor",
"asAdded": "Como adicionados",
"appSortOrder": "Ordem dos apps",
"ascending": "Crescente",
"descending": "Decrescente",
"bgUpdateCheckInterval": "Intervalo de busca por atualizações em segundo plano",
"neverManualOnly": "Nunca - somente manualmente",
"appearance": "Aparência",
"showWebInAppView": "Mostrar a fonte da pagina web na tela de apps",
"pinUpdates": "Fixar atualizações no topo da tela de apps",
"updates": "Atualizações",
"sourceSpecific": "Específico à fonte",
"appSource": "Fonte do app",
"noLogs": "Nenhum registro",
"appLogs": "Registros do app",
"close": "Fechar",
"share": "Compartilhar",
"appNotFound": "O app não foi encontrado",
"obtainiumExportHyphenatedLowercase": "obtainium-export",
"pickAnAPK": "Selecione um APK",
"appHasMoreThanOnePackage": "{} tem mais de um pacote:",
"deviceSupportsXArch": "Seu dispositivo suporta a arquitetura de CPU {}.",
"deviceSupportsFollowingArchs": "Seu dispositivo suporta as seguintes arquiteturas de CPU:",
"warning": "Alerta",
"sourceIsXButPackageFromYPrompt": "A fonte do app é '{}' mas o pacote de lançamento vem de '{}'. Continuar mesmo assim?",
"updatesAvailable": "Atualizações disponíveis",
"updatesAvailableNotifDescription": "Notifica o usuário que atualizações estão disponíveis para um ou mais apps rastreados pelo Obtainium",
"noNewUpdates": "Nenhuma atualização disponível.",
"xHasAnUpdate": "{} tem uma atualização.",
"appsUpdated": "Apps atualizados",
"appsNotUpdated": "Falhou ao atualizar os aplicativos",
"appsUpdatedNotifDescription": "Notifica o usuário que atualizações de um ou mais apps foram aplicadas em segundo plano",
"xWasUpdatedToY": "{} foi atualizado para a versão {}.",
"xWasNotUpdatedToY": "Falha ao atualizar {} para a versão {}.",
"errorCheckingUpdates": "Ocorreu um erro ao buscar atualizações",
"errorCheckingUpdatesNotifDescription": "Uma notificação que mostra quando a busca de atualizações em segundo plano falha",
"appsRemoved": "Apps removidos",
"appsRemovedNotifDescription": "Notifica o usuário que um ou mais apps foram removidos devido a erros ao carregá-los",
"xWasRemovedDueToErrorY": "{} for removido devido ao erro: {}",
"completeAppInstallation": "Concluir instalação do app",
"obtainiumMustBeOpenToInstallApps": "O Obtainium precisa estar aberto para instalar apps",
"completeAppInstallationNotifDescription": "Pede pro usuário voltar ao Obtainium para concluir a instalação de um app",
"checkingForUpdates": "Buscando atualizações",
"checkingForUpdatesNotifDescription": "Notificação transitória que aparece ao buscar atualizações",
"pleaseAllowInstallPerm": "Permita que o Obtainium instale apps",
"trackOnly": "Somente rastreamento",
"errorWithHttpStatusCode": "Erro {}",
"versionCorrectionDisabled": "Correção de versão desativada (o plugin parece não funcionar)",
"unknown": "Desconhecido",
"none": "Nenhum",
"never": "Nunca",
"latestVersionX": "Mais recente: {}",
"installedVersionX": "Instalado: {}",
"lastUpdateCheckX": "Última busca por atualizações: {}",
"remove": "Remover",
"yesMarkUpdated": "Sim, marcar como atualizado",
"fdroid": "Oficial do F-Droid",
"appIdOrName": "ID do app ou nome",
"appId": "ID do app",
"appWithIdOrNameNotFound": "Nenhum app foi encontrado com aquele ID ou nome",
"reposHaveMultipleApps": "Repositórios podem conter vários apps",
"fdroidThirdPartyRepo": "Repositório de terceiros do F-Droid",
"install": "Instalar",
"markInstalled": "Marcar como instalado",
"update": "Atualizar",
"markUpdated": "Marcar como atualizado",
"additionalOptions": "Opções adicionais",
"disableVersionDetection": "Desativar detecção de versão",
"noVersionDetectionExplanation": "Essa opção só seve ser usada para apps aonde a detecção de versão não funciona corretamente.",
"downloadingX": "Baixando {}",
"downloadX": "Baixar {}",
"downloadedX": "{} foi baixado",
"releaseAsset": "Item de lançamento",
"downloadNotifDescription": "Notifica o usuário do progresso ao baixar um app",
"noAPKFound": "Nenhum APK encontrado",
"noVersionDetection": "Sem detecção de versão",
"categorize": "Categorizar",
"categories": "Categorias",
"category": "Categoria",
"noCategory": "Nenhuma categoria",
"noCategories": "Nenhuma categoria",
"deleteCategoriesQuestion": "Excluir categorias?",
"categoryDeleteWarning": "Todos os apps em categorias excluídas ficarão sem categoria.",
"addCategory": "Adicionar categoria",
"label": "Rótulo",
"language": "Idioma",
"copiedToClipboard": "Copiado para a área de transferência",
"storagePermissionDenied": "Permissão de armazenamento negada",
"selectedCategorizeWarning": "Isso substituirá a configuração de categoria existente dos apps selecionados.",
"filterAPKsByRegEx": "Filtrar APKs por expressão regular",
"removeFromObtainium": "Remover do Obtainium",
"uninstallFromDevice": "Desinstalar do dispositivo",
"onlyWorksWithNonVersionDetectApps": "Funciona somente em apps com a detecção de versão desativada.",
"releaseDateAsVersion": "Usar data de lançamento como número da versão",
"releaseTitleAsVersion": "Usar título do lançamento como número da versão",
"releaseDateAsVersionExplanation": "Essa opção só deve ser usada para apps quais a detecção de versão não funciona corretamente, mas uma data de lançamento está disponível.",
"changes": "Alterações",
"releaseDate": "Data de lançamento",
"importFromURLsInFile": "Importar das URLs em arquivo (como OPML)",
"versionDetectionExplanation": "Combinar o número da versão com a versão detectada pelo sistema",
"versionDetection": "Detecção de versão",
"standardVersionDetection": "Detecção de versão padrão",
"groupByCategory": "Agrupar por categoria",
"autoApkFilterByArch": "Tentar filtrar APKs pela arquitetura da CPU quando possível",
"autoLinkFilterByArch": "Tentar filtrar links pela arquitetura da CPU quando possível",
"overrideSource": "Sobrescrever fonte",
"dontShowAgain": "Não mostrar isso novamente",
"dontShowTrackOnlyWarnings": "Não mostrar alertas de \"somente rastreamento\"",
"dontShowAPKOriginWarnings": "Não mostrar alertas de origem dos APKs",
"moveNonInstalledAppsToBottom": "Mover apps não instalados ao final da tela de apps",
"gitlabPATLabel": "Token de acesso pessoal do GitLab",
"about": "Sobre",
"requiresCredentialsInSettings": "{} precisa de credenciais adicionais (nas Configurações)",
"checkOnStart": "Buscar atualizações ao abrir o app",
"tryInferAppIdFromCode": "Tentar inferir o ID do app pelo código fonte",
"removeOnExternalUninstall": "Remover automaticamente apps desinstalados externamente",
"pickHighestVersionCode": "Selecionar APK de versão mais alta automaticamente",
"checkUpdateOnDetailPage": "Buscar atualizações ao abrir a tela de detalhes de um app",
"disablePageTransitions": "Desativar animações de transição de tela",
"reversePageTransitions": "Inverter animações de transição de tela",
"minStarCount": "Número de estrelas mínimo",
"addInfoBelow": "Adicione essa informação abaixo.",
"addInfoInSettings": "Adicione essa informação nas Configurações.",
"githubSourceNote": "O limite de taxa do GitHub pode ser evitado ao usar uma chave de API.",
"sortByLastLinkSegment": "Ordenar somente pelo ultimo segmento do link",
"filterReleaseNotesByRegEx": "Filtrar notas de lançamento por expressão regular",
"customLinkFilterRegex": "Filtro de link de APK personalizado por expressão regular (padrão '.apk$')",
"appsPossiblyUpdated": "Tentativas de atualização de apps",
"appsPossiblyUpdatedNotifDescription": "Notifica o usuário que atualizações de um ou mais apps podem ter sido aplicadas em segundo plano",
"xWasPossiblyUpdatedToY": "{} pode ter sido atualizado para a versão {}.",
"enableBackgroundUpdates": "Ativar atualizações em segundo plano",
"backgroundUpdateReqsExplanation": "Atualizações em segundo plano podem não funcionar com todos os apps.",
"backgroundUpdateLimitsExplanation": "O sucesso de uma instalação em segundo plano só pode ser determinada ao abrir o Obtainium.",
"verifyLatestTag": "Verificar a tag 'mais recente'",
"intermediateLinkRegex": "Filtrar por um link 'intermediário' para visitar",
"filterByLinkText": "Filtrar links por texto do link",
"intermediateLinkNotFound": "Link intermediário não encontrado",
"intermediateLink": "Link intermediário",
"exemptFromBackgroundUpdates": "Isento de atualizações em segundo plano (caso ativadas)",
"bgUpdatesOnWiFiOnly": "Desativar atualizações em segundo plano fora do Wi-Fi",
"bgUpdatesWhileChargingOnly": "Desativar atualizações em segundo plano fora do carregador",
"autoSelectHighestVersionCode": "Selecionar automaticamente APK com o código de versão mais alto",
"versionExtractionRegEx": "ExReg de extração do número da versão",
"trimVersionString": "Cortar número da versal com ExReg",
"matchGroupToUseForX": "Corresponder grupo para o uso em \"{}\"",
"matchGroupToUse": "Corresponder grupo para o uso para a extração do número da versão por ExReg",
"highlightTouchTargets": "Acentuar alvos de toque menos óbvios",
"pickExportDir": "Selecionar pasta de exportação",
"autoExportOnChanges": "Exportar automaticamente ao ocorrer alterações",
"includeSettings": "Incluir configurações",
"filterVersionsByRegEx": "Filtrar versões por expressão regular",
"trySelectingSuggestedVersionCode": "Tente selecionar o APK com o código de versão sugerido",
"dontSortReleasesList": "Manter ordem de lançamento da API",
"reverseSort": "Ordem inversa",
"takeFirstLink": "Usar o primeiro link",
"skipSort": "Pular ordenação",
"debugMenu": "Menu de depuração",
"bgTaskStarted": "Tarefa em segundo plano iniada - verifique os registros.",
"runBgCheckNow": "Executar busca por atualizações em segundo plano agora",
"versionExtractWholePage": "Aplicar ExReg de extração de número de versão à página inteira",
"installing": "Instalando",
"skipUpdateNotifications": "Pular notificações de atualização",
"updatesAvailableNotifChannel": "Atualizações disponíveis",
"appsUpdatedNotifChannel": "Apps atualizados",
"appsPossiblyUpdatedNotifChannel": "Tentativas de atualização de apps",
"errorCheckingUpdatesNotifChannel": "Erro ao buscar atualizações",
"appsRemovedNotifChannel": "Apps removidos",
"downloadingXNotifChannel": "Baixando {}",
"completeAppInstallationNotifChannel": "Concluir instalação do app",
"checkingForUpdatesNotifChannel": "Buscando atualizações",
"onlyCheckInstalledOrTrackOnlyApps": "Buscar atualizações somente para apps instalados e de somente rastreamento",
"supportFixedAPKURL": "Suportar URLs de APK fixas",
"selectX": "Selecionar {}",
"parallelDownloads": "Permitir downloads em paralelo",
"useShizuku": "Usar Shizuku ou Sui para instalação",
"shizukuBinderNotFound": "Serviço Shizuku não está em execução",
"shizukuOld": "Versão do Shizuku antiga (<11) - atualize",
"shizukuOldAndroidWithADB": "Shizuku sendo executado no Android < 8.1 com ADB - atualize o Android ou use o Sui",
"shizukuPretendToBeGooglePlay": "Definir Google Play como a fonte de instalação (se o Shizuku é usado)",
"useSystemFont": "Usar a fonte do sistema",
"useVersionCodeAsOSVersion": "Usar código de versão do app como a versão detectada pelo sistema",
"requestHeader": "Cabeçalho da solicitação",
"useLatestAssetDateAsReleaseDate": "Usar o envio de item mais recente como a data de lançamento",
"defaultPseudoVersioningMethod": "Método de pseudo-versão padrão",
"partialAPKHash": "Hash do APK parcial",
"APKLinkHash": "Hash do link do APK",
"directAPKLink": "Link direto ao APK",
"pseudoVersionInUse": "Uma pseudo-versão está em uso",
"installed": "Instalado",
"latest": "Mais recente",
"invertRegEx": "Inverter expressão regular",
"note": "Observação",
"selfHostedNote": "O menu de opções \"{}\" pode ser usado para alcançar instâncias hospedadas-por-você/personalizadas de qualquer fonte.",
"badDownload": "O APK não pode ser interpretado (incompatível ou baixado parcialmente)",
"beforeNewInstallsShareToAppVerifier": "Compartilhar apps novos com o AppVerifier (se disponível)",
"appVerifierInstructionToast": "Compartilhe com o AppVerifier, e volte aqui ao estar pronto.",
"wiki": "Ajuda/Wiki",
"crowdsourcedConfigsLabel": "Configurações de app pela comunidade (use ao seu próprio risco)",
"crowdsourcedConfigsShort": "Configurações de app da comunidade",
"allowInsecure": "Permitir solicitações de HTTP inseguras",
"stayOneVersionBehind": "Ficar uma versão antes da mais recente",
"refreshBeforeDownload": "Atualizar detalhes do app antes de baixar",
"tencentAppStore": "Loja de Apps da Tencent",
"coolApk": "CoolApk",
"name": "Nome",
"smartname": "Nome (inteligente)",
"sortMethod": "Método de ordenação",
"welcome": "Boas vindas",
"documentationLinksNote": "A página do Obtainium no GitHub visível abaixo contém links de vídeos, artigos, discussões, e outros recursos que podem te ajudar ao usar o app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Remover app?",
"other": "Remover apps?"
},
"tooManyRequestsTryAgainInMinutes": {
"one": "Muitas solicitações (limitado) - tente novamente em {} minuto",
"other": "Muitas solicitações (limitado) - tente novamente em {} minutos"
},
"bgUpdateGotErrorRetryInMinutes": {
"one": "A busca de atualizações em segundo plano encontrou um {}, será agendado uma nova tentativa em {} minuto",
"other": "A busca de atualizações em segundo plano encontrou um {}, será agendado uma nova tentativa em {} minutos"
},
"bgCheckFoundUpdatesWillNotifyIfNeeded": {
"one": "BG update checking found {} update - will notify user if needed",
"other": "BG update checking found {} updates - will notify user if needed"
},
"apps": {
"one": "{} app",
"other": "{} apps"
},
"url": {
"one": "{} URL",
"other": "{} URLs"
},
"minute": {
"one": "{} minuto",
"other": "{} minutos"
},
"hour": {
"one": "{} hora",
"other": "{} horas"
},
"day": {
"one": "{} dia",
"other": "{} dias"
},
"clearedNLogsBeforeXAfterY": {
"one": "Cleared {n} log (before = {before}, after = {after})",
"other": "Cleared {n} logs (before = {before}, after = {after})"
},
"xAndNMoreUpdatesAvailable": {
"one": "{} e mais 1 app têm atualizações.",
"other": "{} e mais {} apps têm atualizações."
},
"xAndNMoreUpdatesInstalled": {
"one": "{} e mais 1 app foram atualizados.",
"other": "{} e mais {} apps foram atualizados."
},
"xAndNMoreUpdatesFailed": {
"one": "Falha ao atualizar {} e mais 1 app.",
"other": "Falha ao atualizar {} e mais {} apps."
},
"xAndNMoreUpdatesPossiblyInstalled": {
"one": "{} e mais 1 app podem ter sido atualizados.",
"other": "{} e mais {} apps podem ter sido atualizados."
},
"apk": {
"one": "{} APK",
"other": "{} APKs"
}
}

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Manter-se uma versão atrás da mais recente",
"refreshBeforeDownload": "Atualizar os detalhes da aplicação antes da transferência",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Nome",
"smartname": "Nome (Smart)",
"sortMethod": "Método de ordenação",
"welcome": "Bem-vindo",
"documentationLinksNote": "A página do Obtainium no GitHub com a ligação abaixo contém ligações para vídeos, artigos, discussões e outros recursos que o ajudarão a compreender como utilizar a aplicação.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Remover aplicativo?",
"other": "Remover aplicativos?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Не отставайте от последней версии",
"refreshBeforeDownload": "Обновляйте информацию о приложении перед загрузкой",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Имя",
"smartname": "Имя (умное)",
"sortMethod": "Метод сортировки",
"welcome": "Добро пожаловать",
"documentationLinksNote": "На странице Obtainium GitHub, ссылка на которую приведена ниже, содержатся ссылки на видео, статьи, обсуждения и другие ресурсы, которые помогут вам понять, как пользоваться приложением.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Удалить приложение?",
"other": "Удалить приложения?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Håll dig en version bakom den senaste",
"refreshBeforeDownload": "Uppdatera appdetaljerna före nedladdning",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Namn",
"smartname": "Namn (Smart)",
"sortMethod": "Sorteringsmetod",
"welcome": "Välkommen",
"documentationLinksNote": "Obtainium GitHub-sidan som länkas nedan innehåller länkar till videor, artiklar, diskussioner och andra resurser som hjälper dig att förstå hur du använder appen.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Ta Bort App?",
"other": "Ta Bort Appar?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "En son sürümün bir sürüm gerisinde kalın",
"refreshBeforeDownload": "İndirmeden önce uygulama ayrıntılarını yenileyin",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "İsim",
"smartname": "İsim (Akıllı)",
"sortMethod": "Sıralama Yöntemi",
"welcome": "Hoş geldiniz",
"documentationLinksNote": "Aşağıda bağlantısı verilen Obtainium GitHub sayfası, uygulamayı nasıl kullanacağınızı anlamanıza yardımcı olacak videolara, makalelere, tartışmalara ve diğer kaynaklara bağlantılar içerir.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Uygulamayı Kaldır?",
"other": "Uygulamaları Kaldır?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Залишайтеся на одну версію актуальнішою",
"refreshBeforeDownload": "Оновіть інформацію про програму перед завантаженням",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Ім'я",
"smartname": "Ім'я (Smart)",
"sortMethod": "Метод сортування",
"welcome": "Ласкаво просимо.",
"documentationLinksNote": "Сторінка Obtainium на GitHub, посилання на яку наведено нижче, містить посилання на відео, статті, дискусії та інші ресурси, які допоможуть вам зрозуміти, як користуватися додатком.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Видалити застосунок?",
"other": "Видалити застосунки?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "Stay one version behind latest",
"refreshBeforeDownload": "Refresh app details before download",
"tencentAppStore": "Tencent App Store",
"coolApk": "CoolApk",
"name": "Name",
"smartname": "Name (Smart)",
"sortMethod": "Sort Method",
"welcome": "Welcome",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions, and other resources that will help you understand how to use the app.",
"documentationLinksNote": "The Obtainium GitHub page linked below contains links to videos, articles, discussions and other resources that will help you understand how to use the app.",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "Gỡ ứng dụng?",
"other": "Gỡ ứng dụng?"

View File

@@ -320,11 +320,13 @@
"stayOneVersionBehind": "保持比最新版本落後一個版本",
"refreshBeforeDownload": "下載前刷新應用程式詳細資訊",
"tencentAppStore": "騰訊應用寶",
"coolApk": "CoolApk",
"name": "名稱",
"smartname": "名稱(智慧)",
"sortMethod": "排序方式",
"welcome": "歡迎",
"documentationLinksNote": "下方連結的 Obtainium GitHub 頁面包含影片、文章、討論及其他資源,能幫助你瞭解如何使用這款應用程式。",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "移除應用程式?",
"other": "移除應用程式?"

View File

@@ -320,11 +320,14 @@
"stayOneVersionBehind": "比最新版本晚一个版本",
"refreshBeforeDownload": "下载前刷新应用程序详细信息",
"tencentAppStore": "腾讯应用宝",
"coolApk": "酷安",
"vivoAppStore": "vivo 应用商店(中国)",
"name": "名称",
"smartname": "姓名(智能)",
"sortMethod": "排序方法",
"welcome": "欢迎光临",
"documentationLinksNote": "下面链接的 Obtainium GitHub 页面包含视频、文章、讨论和其他资源的链接,可帮助您了解如何使用该应用程序。",
"batteryOptimizationNote": "Note that background downloads may work more reliably if you disable OS battery optimizations for Obtainium.",
"removeAppQuestion": {
"one": "是否删除应用?",
"other": "是否删除应用?"

86
docker/Dockerfile Normal file
View File

@@ -0,0 +1,86 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND noninteractive
ENV ANDROID_SDK_ROOT /opt/android-sdk-linux
ENV PATH "${PATH}:/opt/flutter/bin:/root/.pub-cache/bin:${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin:/opt/android-sdk-linux/platform-tools"
ENV HOME=/root
# Prereqs
RUN \
apt-get update &&\
apt-get install -y --no-install-recommends \
bash \
curl \
file \
git 2.x \
unzip \
xz-utils \
zip \
libglu1-mesa \
libxi-dev \
libxmu-dev \
libglu1-mesa-dev \
git-lfs \
openssl \
wget
# Build prereqs
RUN \
apt-get install -y \
cmake curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed \
cmake ninja-build build-essential libgl1-mesa-dev libegl1-mesa-dev libgles2-mesa-dev clang pkg-config libgtk-3-dev \
liblzma-dev libmount-dev libblkid-dev libgcrypt20-dev libgpg-error-dev libssl-dev libpng-dev libjpeg-dev \
libtiff-dev libgif-dev libgtk-3-dev
# Android SDK prequisites
# https://developer.android.com/studio#command-tools
RUN \
apt-get install -y --no-install-recommends \
git \
git-lfs \
openssl \
wget \
unzip
# Android SDK
RUN \
wget --quiet https://dl.google.com/android/repository/commandlinetools-linux-13114758_latest.zip -O /tmp/tools.zip && \
mkdir -p ${ANDROID_SDK_ROOT}/cmdline-tools && \
unzip -q /tmp/tools.zip -d ${ANDROID_SDK_ROOT}/cmdline-tools && \
mv ${ANDROID_SDK_ROOT}/cmdline-tools/cmdline-tools ${ANDROID_SDK_ROOT}/cmdline-tools/latest && \
rm -v /tmp/tools.zip && \
mkdir -p /root/.android/ && touch /root/.android/repositories.cfg &&\
apt-get install -y --no-install-recommends openjdk-17-jdk openjdk-17-jre &&\
yes | sdkmanager --licenses &&\
sdkmanager --update
# Platform tools
# Get latest with sdkmanager --list
RUN sdkmanager --install "build-tools;33.0.1"
RUN sdkmanager --install "ndk;26.3.11579264"
RUN sdkmanager --install "cmake;4.0.2"
RUN sdkmanager --install platform-tools
RUN sdkmanager --install emulator
RUN sdkmanager --install tools
RUN sdkmanager --install "platforms;android-28"
RUN sdkmanager --install "platforms;android-31"
RUN sdkmanager --install "platforms;android-32"
RUN sdkmanager --install "platforms;android-33"
RUN sdkmanager --install "platforms;android-34"
RUN sdkmanager --install "platforms;android-35"
# Flutter
ARG DEV_UID=0
RUN \
wget --quiet https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.29.3-stable.tar.xz -O /tmp/flutter.tar.xz &&\
mkdir -p /opt &&\
cd /opt &&\
tar xf /tmp/flutter.tar.xz &&\
rm /tmp/flutter.tar.xz &&\
git config --global --add safe.directory /opt/flutter &&\
dart pub global activate cider &&\
chown -R ${DEV_UID} /opt/flutter
RUN flutter --disable-analytics
RUN flutter upgrade
RUN chmod a+w /opt/flutter/packages -R

21
docker/builder.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd ${SCRIPT_DIR}/..
mkdir -p ./data/home
docker run \
--rm \
-ti \
--net host \
-v "${PWD}/../:${PWD}/../":z \
-w "${PWD}" \
--name flutter-dev-obtainium \
--user $(id -u) \
-v ./data/home:/home/${USER}:z \
-e USER=${USER} \
-e HOME=/home/${USER} \
-e ANDROID_USER_HOME=${HOME}/.android \
-e GRADLE_USER_HOME=${HOME}/.gradle \
-e PS1="${debian_chroot:+($debian_chroot)}${USER}@\h:\w\$ " \
flutter-builder-obtainium

14
docker/mkbuilder.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
D=$(date +'%Y%m%d.%H%M%S%3N')
set -e
cd "${SCRIPT_DIR}/.."
# Create the builder image
docker build \
-t flutter-builder-obtainium \
-f ./docker/Dockerfile \
--build-arg="DEV_UID=$(id -u)" \
.

View File

@@ -25,6 +25,8 @@
<li>APKMirror (Track-Only)</li>
<li>Huawei AppGallery</li>
<li>Tencent App Store</li>
<li>CoolApk</li>
<li>vivo App Store (CN)</li>
<li>Jenkins Jobs</li>
<li>RuStore</li>
</ul>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 41 B

View File

@@ -0,0 +1 @@
../../../../../assets/graphics/banner.png

Before

Width:  |  Height:  |  Size: 66 KiB

After

Width:  |  Height:  |  Size: 41 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 47 B

View File

@@ -0,0 +1 @@
../../../../../assets/graphics/icon-512x512.png

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 47 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 KiB

After

Width:  |  Height:  |  Size: 47 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/1.apps.png

Before

Width:  |  Height:  |  Size: 234 KiB

After

Width:  |  Height:  |  Size: 47 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 53 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/2.dark_theme.png

Before

Width:  |  Height:  |  Size: 238 KiB

After

Width:  |  Height:  |  Size: 53 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 55 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/3.material_you.png

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 55 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 46 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/4.app.png

Before

Width:  |  Height:  |  Size: 139 KiB

After

Width:  |  Height:  |  Size: 46 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 51 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/5.app_opts.png

Before

Width:  |  Height:  |  Size: 118 KiB

After

Width:  |  Height:  |  Size: 51 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 54 B

View File

@@ -0,0 +1 @@
../../../../../../assets/screenshots/6.app_webview.png

Before

Width:  |  Height:  |  Size: 262 KiB

After

Width:  |  Height:  |  Size: 54 B

View File

@@ -25,6 +25,8 @@
<li>APKMirror (Track-Only)</li>
<li>Huawei AppGallery</li>
<li>Tencent App Store</li>
<li>CoolApk</li>
<li>vivo App Store (CN)</li>
<li>Jenkins Jobs</li>
<li>RuStore</li>
</ul>

View File

@@ -0,0 +1 @@
Obtainium

View File

@@ -128,7 +128,21 @@ class APKPure extends AppSource {
.toList() ??
[];
if (apkUrls.isEmpty) {
throw NoAPKError();
var link =
html.querySelector("a.download-start-btn")?.attributes['href'];
RegExp downloadLinkRegEx = RegExp(
r'^https:\/\/d\.[^/]+\/b\/([^/]+)\/[^/?]+\?versionCode=([0-9]+)$',
caseSensitive: false);
RegExpMatch? match = downloadLinkRegEx.firstMatch(link ?? '');
if (match == null) {
throw NoAPKError();
}
String type = match.group(1)!;
String versionCode = match.group(2)!;
apkUrls = [
MapEntry('$appId-$versionCode-.${type.toLowerCase()}',
'https://d.${hosts.contains(host) ? 'cdnpure.com' : host}/b/$type/$appId?versionCode=$versionCode')
];
}
String version = Uri.parse(link).pathSegments.last;
String? author;

View File

@@ -0,0 +1,174 @@
import 'dart:convert';
import 'package:bcrypt/bcrypt.dart';
import 'package:crypto/crypto.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:obtainium/custom_errors.dart';
import 'package:obtainium/providers/source_provider.dart';
import 'dart:math';
// kanged from https://github.com/DUpdateSystem/UpgradeAll/blob/b2f92c9/core-websdk/src/main/java/net/xzos/upgradeall/core/websdk/api/client_proxy/hubs/CoolApk.kt
class CoolApk extends AppSource {
CoolApk() {
name = tr('coolApk');
hosts = ['www.coolapk.com', 'api2.coolapk.com'];
allowSubDomains = true;
naiveStandardVersionDetection = true;
allowOverride = false;
}
@override
String sourceSpecificStandardizeURL(String url, {bool forSelection = false}) {
RegExp standardUrlRegEx = RegExp(
r'^https?://(www\.)?coolapk\.com/apk/[^/]+',
caseSensitive: false);
var match = standardUrlRegEx.firstMatch(url);
if (match == null) {
throw InvalidURLError(name);
}
String standardizedUrl = match.group(0)!;
return standardizedUrl;
}
@override
Future<String?> tryInferringAppId(String standardUrl,
{Map<String, dynamic> additionalSettings = const {}}) async {
String appId = Uri.parse(standardUrl).pathSegments.last;
return appId;
}
@override
Future<APKDetails> getLatestAPKDetails(
String standardUrl,
Map<String, dynamic> additionalSettings,
) async {
String appId = (await tryInferringAppId(standardUrl))!;
String apiUrl = 'https://api2.coolapk.com';
// get latest
var detailUrl = '$apiUrl/v6/apk/detail?id=$appId';
var headers = await getRequestHeaders(additionalSettings);
var res = await sourceRequest(detailUrl, additionalSettings);
if (res.statusCode != 200) {
throw getObtainiumHttpError(res);
}
var json = jsonDecode(res.body);
if (json['status'] == -2 || json['data'] == null) {
throw NoReleasesError();
}
var detail = json['data'];
String version = detail['apkversionname'].toString();
String appName = detail['title'].toString();
String author = detail['developername']?.toString() ?? 'CoolApk';
String changelog = detail['changelog']?.toString() ?? '';
int? releaseDate = detail['lastupdate'] != null
? (detail['lastupdate'] is int
? detail['lastupdate'] * 1000
: int.parse(detail['lastupdate'].toString()) * 1000)
: null;
String aid = detail['id'].toString();
// get apk url
String apkUrl = await _getLatestApkUrl(apiUrl, appId, aid, version, headers);
if (apkUrl.isEmpty) {
throw NoAPKError();
}
String apkName = '${appId}_$version.apk';
return APKDetails(
version,
[MapEntry(apkName, apkUrl)],
AppNames(author, appName),
releaseDate: releaseDate != null
? DateTime.fromMillisecondsSinceEpoch(releaseDate)
: null,
changeLog: changelog,
);
}
Future<String> _getLatestApkUrl(String apiUrl, String appId, String aid,
String version, Map<String, String>? headers) async {
String url = '$apiUrl/v6/apk/download?pn=$appId&aid=$aid';
var res = await sourceRequest(url, {}, followRedirects: false);
if (res.statusCode >= 300 && res.statusCode < 400) {
String location = res.headers['location'] ?? '';
return location;
}
return '';
}
@override
Future<Map<String, String>?> getRequestHeaders(
Map<String, dynamic> additionalSettings,
{bool forAPKDownload = false}) async {
var tokenPair = _getToken();
// CoolAPK header
return {
'User-Agent':
'Dalvik/2.1.0 (Linux; U; Android 9; MI 8 SE MIUI/9.5.9) (#Build; Xiaomi; MI 8 SE; PKQ1.181121.001; 9) +CoolMarket/12.4.2-2208241-universal',
'X-App-Id': 'com.coolapk.market',
'X-Requested-With': 'XMLHttpRequest',
'X-Sdk-Int': '30',
'X-App-Mode': 'universal',
'X-App-Channel': 'coolapk',
'X-Sdk-Locale': 'zh-CN',
'X-App-Version': '12.4.2',
'X-Api-Supported': '2208241',
'X-App-Code': '2208241',
'X-Api-Version': '12',
'X-App-Device': tokenPair['deviceCode']!,
'X-Dark-Mode': '0',
'X-App-Token': tokenPair['token']!,
};
}
Map<String, String> _getToken() {
final rand = Random();
String randHexString(int n) =>
List.generate(n, (_) => rand.nextInt(256).toRadixString(16).padLeft(2, '0'))
.join()
.toUpperCase();
String randMacAddress() =>
List.generate(6, (_) => rand.nextInt(256).toRadixString(16).padLeft(2, '0'))
.join(':');
// 加密算法来自 https://github.com/XiaoMengXinX/FuckCoolapkTokenV2、https://github.com/Coolapk-UWP/Coolapk-UWP
// device
String aid = randHexString(16);
String mac = randMacAddress();
const manufactor = 'Google';
const brand = 'Google';
const model = 'Pixel 5a';
const buildNumber = 'SQ1D.220105.007';
// generate deviceCode
String deviceCode =
base64.encode('$aid; ; ; $mac; $manufactor; $brand; $model; $buildNumber'.codeUnits);
// generate timestamp
String timeStamp = (DateTime.now().millisecondsSinceEpoch ~/ 1000).toString();
String base64TimeStamp = base64.encode(timeStamp.codeUnits);
String md5TimeStamp = md5.convert(timeStamp.codeUnits).toString();
String md5DeviceCode = md5.convert(deviceCode.codeUnits).toString();
// generate token
String token =
'token://com.coolapk.market/dcf01e569c1e3db93a3d0fcf191a622c?$md5TimeStamp\$$md5DeviceCode&com.coolapk.market';
String base64Token = base64.encode(token.codeUnits);
String md5Base64Token = md5.convert(base64Token.codeUnits).toString();
String md5Token = md5.convert(token.codeUnits).toString();
// generate salt and hash
String bcryptSalt = '\$2a\$10\$${base64TimeStamp.substring(0, 14)}/${md5Token.substring(0, 6)}u';
String bcryptResult = BCrypt.hashpw(md5Base64Token, bcryptSalt);
String reBcryptResult = bcryptResult.replaceRange(0, 3, '\$2y');
String finalToken = 'v2${base64.encode(reBcryptResult.codeUnits)}';
return {'deviceCode': deviceCode, 'token': finalToken};
}
}

View File

@@ -1,3 +1,5 @@
import 'dart:convert';
import 'package:easy_localization/easy_localization.dart';
import 'package:html/parser.dart';
import 'package:http/http.dart';
@@ -7,32 +9,7 @@ import 'package:obtainium/providers/apps_provider.dart';
import 'package:obtainium/providers/source_provider.dart';
String ensureAbsoluteUrl(String ambiguousUrl, Uri referenceAbsoluteUrl) {
if (ambiguousUrl.startsWith('//')) {
ambiguousUrl = '${referenceAbsoluteUrl.scheme}:$ambiguousUrl';
}
try {
Uri.parse(ambiguousUrl).origin;
return ambiguousUrl;
} catch (err) {
// is relative
}
var currPathSegments = referenceAbsoluteUrl.path
.split('/')
.where((element) => element.trim().isNotEmpty)
.toList();
String absoluteUrl;
if (ambiguousUrl.startsWith('/')) {
absoluteUrl = '${referenceAbsoluteUrl.origin}$ambiguousUrl';
} else if (currPathSegments.isEmpty) {
absoluteUrl = '${referenceAbsoluteUrl.origin}/$ambiguousUrl';
} else if (ambiguousUrl.split('/').where((e) => e.isNotEmpty).length == 1) {
absoluteUrl =
'${referenceAbsoluteUrl.origin}/${currPathSegments.join('/')}/$ambiguousUrl';
} else {
absoluteUrl =
'${referenceAbsoluteUrl.origin}/${currPathSegments.sublist(0, currPathSegments.length - (currPathSegments.last.contains('.') ? 1 : 0)).join('/')}/$ambiguousUrl';
}
return Uri.parse(absoluteUrl).toString();
return referenceAbsoluteUrl.resolve(ambiguousUrl).toString();
}
int compareAlphaNumeric(String a, String b) {
@@ -67,6 +44,27 @@ int compareAlphaNumeric(String a, String b) {
return aParts.length.compareTo(bParts.length);
}
List<String> collectAllStringsFromJSONObject(dynamic obj) {
List<String> extractor(dynamic obj) {
final results = <String>[];
if (obj is String) {
results.add(obj);
} else if (obj is List) {
for (final item in obj) {
results.addAll(extractor(item));
}
} else if (obj is Map<String, dynamic>) {
for (final value in obj.values) {
results.addAll(extractor(value));
}
}
return results;
}
return extractor(obj);
}
List<String> _splitAlphaNumeric(String s) {
List<String> parts = [];
StringBuffer sb = StringBuffer();
@@ -95,6 +93,13 @@ bool _isNumeric(String s) {
return s.codeUnitAt(0) >= 48 && s.codeUnitAt(0) <= 57;
}
List<MapEntry<String, String>> getLinksInLines(String lines) => RegExp(
r'(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?')
.allMatches(lines)
.map((match) =>
MapEntry(match.group(0)!, match.group(0)?.split('/').last ?? ''))
.toList();
// Given an HTTP response, grab some links according to the common additional settings
// (those that apply to intermediate and final steps)
Future<List<MapEntry<String, String>>> grabLinksCommon(
@@ -114,12 +119,21 @@ Future<List<MapEntry<String, String>>> grabLinksCommon(
.map((e) => MapEntry(ensureAbsoluteUrl(e.key, res.request!.url), e.value))
.toList();
if (allLinks.isEmpty) {
allLinks = RegExp(
r'(http|ftp|https)://([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?')
.allMatches(res.body)
.map((match) =>
MapEntry(match.group(0)!, match.group(0)?.split('/').last ?? ''))
.toList();
allLinks = getLinksInLines(res.body);
}
if (allLinks.isEmpty) {
// Getting desperate
try {
var jsonStrings = collectAllStringsFromJSONObject(jsonDecode(res.body));
allLinks = getLinksInLines(jsonStrings.join('\n'));
if (allLinks.isEmpty) {
allLinks = getLinksInLines(jsonStrings.map((l) {
return ensureAbsoluteUrl(l, res.request!.url);
}).join('\n'));
}
} catch (e) {
//
}
}
List<MapEntry<String, String>> links = [];
bool skipSort = additionalSettings['skipSort'] == true;

View File

@@ -33,6 +33,16 @@ class RuStore extends AppSource {
return Uri.parse(standardUrl).pathSegments.last;
}
Future<String> decodeString(String str) async {
try {
return (await CharsetDetector.autoDecode(
Uint8List.fromList(str.codeUnits)))
.string;
} catch (e) {
return str;
}
}
@override
Future<APKDetails> getLatestAPKDetails(
String standardUrl,
@@ -73,17 +83,9 @@ class RuStore extends AppSource {
throw NoAPKError();
}
appName = (await CharsetDetector.autoDecode(
Uint8List.fromList(appName.codeUnits)))
.string;
author =
(await CharsetDetector.autoDecode(Uint8List.fromList(author.codeUnits)))
.string;
changeLog = changeLog != null
? (await CharsetDetector.autoDecode(
Uint8List.fromList(changeLog.codeUnits)))
.string
: null;
appName = await decodeString(appName);
author = await decodeString(author);
changeLog = changeLog != null ? await decodeString(changeLog) : null;
return APKDetails(
version,

View File

@@ -0,0 +1,98 @@
import 'dart:convert';
import 'package:easy_localization/easy_localization.dart';
import 'package:obtainium/custom_errors.dart';
import 'package:obtainium/providers/source_provider.dart';
class VivoAppStore extends AppSource {
static const appDetailUrl =
'https://h5coml.vivo.com.cn/h5coml/appdetail_h5/browser_v2/index.html?appId=';
VivoAppStore() {
name = tr('vivoAppStore');
hosts = ['h5.appstore.vivo.com.cn', 'h5coml.vivo.com.cn'];
naiveStandardVersionDetection = true;
canSearch = true;
allowOverride = false;
}
@override
String sourceSpecificStandardizeURL(String url, {bool forSelection = false}) {
var vivoAppId = parseVivoAppId(url);
return '$appDetailUrl$vivoAppId';
}
@override
Future<String?> tryInferringAppId(String standardUrl,
{Map<String, dynamic> additionalSettings = const {}}) async {
var json = await getDetailJson(standardUrl, additionalSettings);
return json['package_name'];
}
@override
Future<APKDetails> getLatestAPKDetails(
String standardUrl, Map<String, dynamic> additionalSettings) async {
var json = await getDetailJson(standardUrl, additionalSettings);
var appName = json['title_zh'].toString();
var packageName = json['package_name'].toString();
var versionName = json['version_name'].toString();
var versionCode = json['version_code'].toString();
var developer = json['developer'].toString();
var uploadTime = json['upload_time'].toString();
var apkUrl = json['download_url'].toString();
var apkName = '${packageName}_$versionCode.apk';
return APKDetails(
versionName, [MapEntry(apkName, apkUrl)], AppNames(developer, appName),
releaseDate: DateTime.parse(uploadTime));
}
@override
Future<Map<String, List<String>>> search(String query,
{Map<String, dynamic> querySettings = const {}}) async {
var apiBaseUrl =
'https://h5-api.appstore.vivo.com.cn/h5appstore/search/result-list?app_version=2100&page_index=1&apps_per_page=20&target=local&cfrom=2&key=';
var searchUrl = '$apiBaseUrl${Uri.encodeQueryComponent(query)}';
var response = await sourceRequest(searchUrl, {});
if (response.statusCode != 200) {
throw getObtainiumHttpError(response);
}
var json = jsonDecode(response.body);
if (json['code'] != 0 || !json['data']['appSearchResponse']['result']) {
throw NoReleasesError();
}
Map<String, List<String>> results = {};
var resultsJson = json['data']['appSearchResponse']['value'];
for (var item in (resultsJson as List<dynamic>)) {
results['$appDetailUrl${item['id']}'] = [
item['title_zh'].toString(),
item['developer'].toString()
];
}
return results;
}
Future<Map<String, dynamic>> getDetailJson(
String standardUrl, Map<String, dynamic> additionalSettings) async {
var vivoAppId = parseVivoAppId(standardUrl);
var apiBaseUrl = 'https://h5-api.appstore.vivo.com.cn/detail/';
var params = '?frompage=messageh5&app_version=2100';
var detailUrl = '$apiBaseUrl$vivoAppId$params';
var response = await sourceRequest(detailUrl, additionalSettings);
if (response.statusCode != 200) {
throw getObtainiumHttpError(response);
}
var json = jsonDecode(response.body);
if (json['id'] == null) {
throw NoReleasesError();
}
return json;
}
String parseVivoAppId(String url) {
var appId = Uri.parse(url.replaceAll('/#', '')).queryParameters['appId'];
if (appId == null || appId.isEmpty) {
throw InvalidURLError(name);
}
return appId;
}
}

View File

@@ -154,7 +154,7 @@ String list2FriendlyString(List<String> list) {
(e.key == list.length - 1
? ''
: e.key == list.length - 2
? ', and '
? ' and '
: ', '))
.join('');
}

View File

@@ -34,7 +34,8 @@ List<MapEntry<Locale, String>> supportedLocales = const [
MapEntry(Locale('pl'), 'Polski'),
MapEntry(Locale('ru'), 'Русский'),
MapEntry(Locale('bs'), 'Bosanski'),
MapEntry(Locale('pt'), 'Brasileiro'),
MapEntry(Locale('pt'), 'Português'),
MapEntry(Locale('pt', 'BR'), 'Brasileiro'),
MapEntry(Locale('cs'), 'Česky'),
MapEntry(Locale('sv'), 'Svenska'),
MapEntry(Locale('nl'), 'Nederlands'),
@@ -109,11 +110,13 @@ void main() async {
);
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
}
final np = NotificationsProvider();
await np.initialize();
runApp(MultiProvider(
providers: [
ChangeNotifierProvider(create: (context) => AppsProvider()),
ChangeNotifierProvider(create: (context) => SettingsProvider()),
Provider(create: (context) => NotificationsProvider()),
Provider(create: (context) => np),
Provider(create: (context) => LogsProvider())
],
child: EasyLocalization(
@@ -168,6 +171,7 @@ class _ObtainiumState extends State<Obtainium> {
SettingsProvider settingsProvider = context.watch<SettingsProvider>();
AppsProvider appsProvider = context.read<AppsProvider>();
LogsProvider logs = context.read<LogsProvider>();
NotificationsProvider notifs = context.read<NotificationsProvider>();
if (settingsProvider.prefs == null) {
settingsProvider.initializeSettings();
@@ -211,6 +215,10 @@ class _ObtainiumState extends State<Obtainium> {
}
}
WidgetsBinding.instance.addPostFrameCallback((_) {
notifs.checkLaunchByNotif();
});
return DynamicColorBuilder(
builder: (ColorScheme? lightDynamic, ColorScheme? darkDynamic) {
// Decide on a colour/brightness scheme based on OS and user settings

View File

@@ -407,8 +407,14 @@ class AddAppPageState extends State<AddAppPage> {
defaultValue: pickedSourceOverride ?? '',
[
MapEntry('', tr('none')),
...sourceProvider.sources.map(
(s) => MapEntry(s.runtimeType.toString(), s.name))
...sourceProvider.sources
.where((s) =>
s.allowOverride ||
(pickedSource != null &&
pickedSource.runtimeType ==
s.runtimeType))
.map((s) =>
MapEntry(s.runtimeType.toString(), s.name))
],
label: tr('overrideSource'))
]

View File

@@ -671,6 +671,7 @@ class AppsPageState extends State<AppsPage> {
formItems.add(GeneratedFormSwitch('updates',
label: tr('updateX', args: [
plural('apps', existingUpdateIdsAllOrSelected.length)
.toLowerCase()
]),
defaultValue: true));
}
@@ -678,6 +679,7 @@ class AppsPageState extends State<AppsPage> {
formItems.add(GeneratedFormSwitch('installs',
label: tr('installX', args: [
plural('apps', newInstallIdsAllOrSelected.length)
.toLowerCase()
]),
defaultValue: existingUpdateIdsAllOrSelected.isEmpty));
}
@@ -696,7 +698,8 @@ class AppsPageState extends State<AppsPage> {
newInstallIdsAllOrSelected.length +
trackOnlyUpdateIdsAllOrSelected.length;
return GeneratedFormModal(
title: tr('changeX', args: [plural('apps', totalApps)]),
title: tr('changeX',
args: [plural('apps', totalApps).toLowerCase()]),
items: formItems.map((e) => [e]).toList(),
initValid: true,
);

View File

@@ -1,5 +1,6 @@
import 'dart:async';
import 'package:android_intent_plus/android_intent.dart';
import 'package:animations/animations.dart';
import 'package:app_links/app_links.dart';
import 'package:easy_localization/easy_localization.dart';
@@ -80,6 +81,30 @@ class _HomePageState extends State<HomePage> {
decoration: TextDecoration.underline,
fontWeight: FontWeight.bold),
)),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(tr('batteryOptimizationNote')),
GestureDetector(
onTap: () {
final intent = AndroidIntent(
action:
'android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS',
package:
obtainiumId, // Replace with your app's package name
);
intent.launch();
},
child: Text(
tr('settings'),
style: const TextStyle(
decoration: TextDecoration.underline,
fontWeight: FontWeight.bold),
),
)
],
)
],
),
actions: [

View File

@@ -7,7 +7,6 @@ import 'dart:io';
import 'dart:math';
import 'package:battery_plus/battery_plus.dart';
import 'package:fluttertoast/fluttertoast.dart';
import 'package:http/http.dart' as http;
import 'package:crypto/crypto.dart';
import 'dart:typed_data';
@@ -246,9 +245,9 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
var reqHeaders = headers ?? {};
var req = Request('GET', Uri.parse(url));
req.headers.addAll(reqHeaders);
var client = IOClient(createHttpClient(allowInsecure));
StreamedResponse response = await client.send(req);
var resHeaders = response.headers;
var headersClient = IOClient(createHttpClient(allowInsecure));
StreamedResponse headersResponse = await headersClient.send(req);
var resHeaders = headersResponse.headers;
// Use the headers to decide what the file extension is, and
// whether it supports partial downloads (range request), and
@@ -276,21 +275,20 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
rangeFeatureEnabled =
resHeaders['accept-ranges']?.trim().toLowerCase() == 'bytes';
}
headersClient.close();
// If you have an existing file that is usable,
// decide whether you can use it (either return full or resume partial)
var fullContentLength = response.contentLength;
var fullContentLength = headersResponse.contentLength;
if (useExisting && downloadedFile.existsSync()) {
var length = downloadedFile.lengthSync();
if (fullContentLength == null || !rangeFeatureEnabled) {
// If there is no content length reported, assume it the existing file is fully downloaded
// Also if the range feature is not supported, don't trust the content length if any (#1542)
client.close();
return downloadedFile;
} else {
// Check if resume needed/possible
if (length == fullContentLength) {
client.close();
return downloadedFile;
}
if (length > fullContentLength) {
@@ -330,7 +328,6 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
if (shouldReturn) {
logs?.add(
'Existing partial download completed - not repeating: ${tempDownloadedFile.uri.pathSegments.last}');
client.close();
return downloadedFile;
} else {
logs?.add(
@@ -346,17 +343,18 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
: null;
int rangeStart = targetFileLength ?? 0;
IOSink? sink;
req = Request('GET', Uri.parse(url));
req.headers.addAll(reqHeaders);
if (rangeFeatureEnabled && fullContentLength != null && rangeStart > 0) {
client.close();
client = IOClient(createHttpClient(allowInsecure));
req = Request('GET', Uri.parse(url));
req.headers.addAll(reqHeaders);
req.headers.addAll({'range': 'bytes=$rangeStart-${fullContentLength - 1}'});
response = await client.send(req);
reqHeaders.addAll({'range': 'bytes=$rangeStart-${fullContentLength - 1}'});
sink = tempDownloadedFile.openWrite(mode: FileMode.writeOnlyAppend);
} else if (tempDownloadedFile.existsSync()) {
tempDownloadedFile.deleteSync(recursive: true);
}
var responseWithClient =
await sourceRequestStreamResponse('GET', url, reqHeaders, {});
HttpClient responseClient = responseWithClient.key;
HttpClientResponse response = responseWithClient.value;
sink ??= tempDownloadedFile.openWrite(mode: FileMode.writeOnly);
// Perform the download
@@ -369,7 +367,8 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
const downloadUIUpdateInterval = Duration(milliseconds: 500);
const downloadBufferSize = 32 * 1024; // 32KB
final downloadBuffer = BytesBuilder();
await response.stream
await response
.asBroadcastStream()
.map((chunk) {
received += chunk.length;
final now = DateTime.now();
@@ -407,31 +406,15 @@ Future<File> downloadFile(String url, String fileName, bool fileNameHasExt,
}
if (response.statusCode < 200 || response.statusCode > 299) {
tempDownloadedFile.deleteSync(recursive: true);
throw response.reasonPhrase ?? tr('unexpectedError');
throw response.reasonPhrase;
}
if (tempDownloadedFile.existsSync()) {
tempDownloadedFile.renameSync(downloadedFile.path);
}
client.close();
responseClient.close();
return downloadedFile;
}
Future<Map<String, String>> getHeaders(String url,
{Map<String, String>? headers, bool allowInsecure = false}) async {
var req = http.Request('GET', Uri.parse(url));
if (headers != null) {
req.headers.addAll(headers);
}
var client = IOClient(createHttpClient(allowInsecure));
var response = await client.send(req);
if (response.statusCode < 200 || response.statusCode > 299) {
throw ObtainiumError(response.reasonPhrase ?? tr('unexpectedError'));
}
var returnHeaders = response.headers;
client.close();
return returnHeaders;
}
Future<List<PackageInfo>> getAllInstalledInfo() async {
return await pm.getInstalledPackages() ?? [];
}

View File

@@ -2,7 +2,9 @@
// Contains a set of pre-defined ObtainiumNotification objects that should be used throughout the app
import 'package:easy_localization/easy_localization.dart';
import 'package:flutter/material.dart';
import 'package:flutter_local_notifications/flutter_local_notifications.dart';
import 'package:obtainium/main.dart';
import 'package:obtainium/providers/settings_provider.dart';
import 'package:obtainium/providers/source_provider.dart';
@@ -16,10 +18,11 @@ class ObtainiumNotification {
Importance importance;
int? progPercent;
bool onlyAlertOnce;
String? payload;
ObtainiumNotification(this.id, this.title, this.message, this.channelCode,
this.channelName, this.channelDescription, this.importance,
{this.onlyAlertOnce = false, this.progPercent});
{this.onlyAlertOnce = false, this.progPercent, this.payload});
}
class UpdateNotification extends ObtainiumNotification {
@@ -88,7 +91,8 @@ class ErrorCheckingUpdatesNotification extends ObtainiumNotification {
'BG_UPDATE_CHECK_ERROR',
tr('errorCheckingUpdatesNotifChannel'),
tr('errorCheckingUpdatesNotifDescription'),
Importance.high);
Importance.high,
payload: "${tr('errorCheckingUpdates')}\n$error");
}
class AppsRemovedNotification extends ObtainiumNotification {
@@ -173,11 +177,50 @@ class NotificationsProvider {
};
Future<void> initialize() async {
isInitialized = await notifications.initialize(const InitializationSettings(
android: AndroidInitializationSettings('ic_notification'))) ??
isInitialized = await notifications.initialize(
const InitializationSettings(
android: AndroidInitializationSettings('ic_notification')),
onDidReceiveNotificationResponse: (NotificationResponse response) {
_showNotificationPayload(response.payload);
},
) ??
false;
}
checkLaunchByNotif() async {
final NotificationAppLaunchDetails? launchDetails =
await notifications.getNotificationAppLaunchDetails();
if (launchDetails?.didNotificationLaunchApp ?? false) {
_showNotificationPayload(launchDetails!.notificationResponse?.payload,
doublePop: true);
}
}
_showNotificationPayload(String? payload, {bool doublePop = false}) {
if (payload?.isNotEmpty == true) {
var title = (payload ?? '\n\n').split('\n').first;
var content = (payload ?? '\n\n').split('\n').sublist(1).join('\n');
globalNavigatorKey.currentState?.push(
PageRouteBuilder(
pageBuilder: (context, _, __) => AlertDialog(
title: Text(title),
content: Text(content),
actions: [
TextButton(
onPressed: () {
Navigator.of(context).pop(null);
if (doublePop) {
Navigator.of(context).pop(null);
}
},
child: Text(tr('ok'))),
],
),
),
);
}
}
Future<void> cancel(int id) async {
if (!isInitialized) {
await initialize();
@@ -195,7 +238,8 @@ class NotificationsProvider {
Importance importance,
{bool cancelExisting = false,
int? progPercent,
bool onlyAlertOnce = false}) async {
bool onlyAlertOnce = false,
String? payload}) async {
if (cancelExisting) {
await cancel(id);
}
@@ -216,7 +260,8 @@ class NotificationsProvider {
maxProgress: 100,
showProgress: progPercent != null,
onlyAlertOnce: onlyAlertOnce,
indeterminate: progPercent != null && progPercent < 0)));
indeterminate: progPercent != null && progPercent < 0)),
payload: payload);
}
Future<void> notify(ObtainiumNotification notif,
@@ -225,5 +270,6 @@ class NotificationsProvider {
notif.channelName, notif.channelDescription, notif.importance,
cancelExisting: cancelExisting,
onlyAlertOnce: notif.onlyAlertOnce,
progPercent: notif.progPercent);
progPercent: notif.progPercent,
payload: notif.payload);
}

View File

@@ -14,6 +14,7 @@ import 'package:obtainium/app_sources/apkmirror.dart';
import 'package:obtainium/app_sources/apkpure.dart';
import 'package:obtainium/app_sources/aptoide.dart';
import 'package:obtainium/app_sources/codeberg.dart';
import 'package:obtainium/app_sources/coolapk.dart';
import 'package:obtainium/app_sources/directAPKLink.dart';
import 'package:obtainium/app_sources/fdroid.dart';
import 'package:obtainium/app_sources/fdroidrepo.dart';
@@ -30,6 +31,7 @@ import 'package:obtainium/app_sources/sourcehut.dart';
import 'package:obtainium/app_sources/telegramapp.dart';
import 'package:obtainium/app_sources/tencent.dart';
import 'package:obtainium/app_sources/uptodown.dart';
import 'package:obtainium/app_sources/vivoappstore.dart';
import 'package:obtainium/components/generated_form.dart';
import 'package:obtainium/custom_errors.dart';
import 'package:obtainium/mass_app_sources/githubstars.dart';
@@ -509,6 +511,72 @@ HttpClient createHttpClient(bool insecure) {
return client;
}
Future<MapEntry<HttpClient, HttpClientResponse>> sourceRequestStreamResponse(
String method,
String url,
Map<String, String>? requestHeaders,
Map<String, dynamic> additionalSettings,
{bool followRedirects = true,
Object? postBody}) async {
var currentUrl = Uri.parse(url);
var redirectCount = 0;
const maxRedirects = 10;
List<Cookie> cookies = [];
while (redirectCount < maxRedirects) {
var httpClient =
createHttpClient(additionalSettings['allowInsecure'] == true);
var request = await httpClient.openUrl(method, currentUrl);
if (requestHeaders != null) {
requestHeaders.forEach((key, value) {
request.headers.set(key, value);
});
}
request.cookies.addAll(cookies);
request.followRedirects = false;
if (postBody != null) {
request.headers.contentType = ContentType.json;
request.write(jsonEncode(postBody));
}
final response = await request.close();
if (followRedirects &&
(response.statusCode >= 300 && response.statusCode <= 399)) {
final location = response.headers.value(HttpHeaders.locationHeader);
if (location != null) {
currentUrl = Uri.parse(ensureAbsoluteUrl(location, currentUrl));
redirectCount++;
cookies = response.cookies;
httpClient.close();
continue;
}
}
return MapEntry(httpClient, response);
}
throw ObtainiumError('Too many redirects ($maxRedirects)');
}
Future<Response> httpClientResponseStreamToFinalResponse(HttpClient httpClient,
String method, String url, HttpClientResponse response) async {
final bytes =
(await response.fold<BytesBuilder>(BytesBuilder(), (b, d) => b..add(d)))
.toBytes();
final headers = <String, String>{};
response.headers.forEach((name, values) {
headers[name] = values.join(', ');
});
httpClient.close();
return http.Response.bytes(
bytes,
response.statusCode,
headers: headers,
request: http.Request(method, Uri.parse(url)),
);
}
abstract class AppSource {
List<String> hosts = [];
bool hostChanged = false;
@@ -519,6 +587,7 @@ abstract class AppSource {
bool appIdInferIsOptional = false;
bool allowSubDomains = false;
bool naiveStandardVersionDetection = false;
bool allowOverride = true;
bool neverAutoSelect = false;
bool showReleaseDateAsVersionToggle = false;
bool versionDetectionDisallowed = false;
@@ -566,64 +635,16 @@ abstract class AppSource {
Future<Response> sourceRequest(
String url, Map<String, dynamic> additionalSettings,
{bool followRedirects = true, Object? postBody}) async {
var method = postBody == null ? 'GET' : 'POST';
var requestHeaders = await getRequestHeaders(additionalSettings);
if (requestHeaders != null || followRedirects == false) {
var method = postBody == null ? 'GET' : 'POST';
var currentUrl = url;
var redirectCount = 0;
const maxRedirects = 10;
while (redirectCount < maxRedirects) {
var httpClient =
createHttpClient(additionalSettings['allowInsecure'] == true);
var request = await httpClient.openUrl(method, Uri.parse(currentUrl));
if (requestHeaders != null) {
requestHeaders.forEach((key, value) {
request.headers.set(key, value);
});
}
request.followRedirects = false;
if (postBody != null) {
request.headers.contentType = ContentType.json;
request.write(jsonEncode(postBody));
}
final response = await request.close();
if (followRedirects &&
(response.statusCode == 301 || response.statusCode == 302)) {
final location = response.headers.value(HttpHeaders.locationHeader);
if (location != null) {
currentUrl = location;
redirectCount++;
httpClient.close();
continue;
}
}
final bytes = (await response.fold<BytesBuilder>(
BytesBuilder(), (b, d) => b..add(d)))
.toBytes();
final headers = <String, String>{};
response.headers.forEach((name, values) {
headers[name] = values.join(', ');
});
httpClient.close();
return http.Response.bytes(
bytes,
response.statusCode,
headers: headers,
request: http.Request(method, Uri.parse(url)),
);
}
throw ObtainiumError('Too many redirects ($maxRedirects)');
} else {
return postBody == null
? http.get(Uri.parse(url))
: http.post(Uri.parse(url), body: jsonEncode(postBody));
}
var streamedResponseAndClient = await sourceRequestStreamResponse(
method, url, requestHeaders, additionalSettings,
followRedirects: followRedirects, postBody: postBody);
return await httpClientResponseStreamToFinalResponse(
streamedResponseAndClient.key,
method,
url,
streamedResponseAndClient.value);
}
void runOnAddAppInputChange(String inputUrl) {
@@ -934,6 +955,8 @@ class SourceProvider {
Uptodown(),
HuaweiAppGallery(),
Tencent(),
CoolApk(),
VivoAppStore(),
Jenkins(),
APKMirror(),
RuStore(),

View File

@@ -80,10 +80,10 @@ packages:
dependency: transitive
description:
name: archive
sha256: "7dcbd0f87fe5f61cb28da39a1a8b70dbc106e2fe0516f7836eb7bb2948481a12"
sha256: "2fde1607386ab523f7a36bb3e7edb43bd58e6edaf2ffb29d8a6d578b297fdbbd"
url: "https://pub.dev"
source: hosted
version: "4.0.5"
version: "4.0.7"
args:
dependency: transitive
description:
@@ -124,6 +124,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.0.1"
bcrypt:
dependency: "direct main"
description:
name: bcrypt
sha256: "9dc3f234d5935a76917a6056613e1a6d9b53f7fa56f98e24cd49b8969307764b"
url: "https://pub.dev"
source: hosted
version: "1.1.3"
boolean_selector:
dependency: transitive
description:
@@ -176,10 +184,10 @@ packages:
dependency: "direct main"
description:
name: connectivity_plus
sha256: "04bf81bb0b77de31557b58d052b24b3eee33f09a6e7a8c68a3e247c7df19ec27"
sha256: "051849e2bd7c7b3bc5844ea0d096609ddc3a859890ec3a9ac4a65a2620cc1f99"
url: "https://pub.dev"
source: hosted
version: "6.1.3"
version: "6.1.4"
connectivity_plus_platform_interface:
dependency: transitive
description:
@@ -232,10 +240,10 @@ packages:
dependency: "direct main"
description:
name: device_info_plus
sha256: "306b78788d1bb569edb7c55d622953c2414ca12445b41c9117963e03afc5c513"
sha256: "0c6396126421b590089447154c5f98a5de423b70cfb15b1578fd018843ee6f53"
url: "https://pub.dev"
source: hosted
version: "11.3.3"
version: "11.4.0"
device_info_plus_platform_interface:
dependency: transitive
description:
@@ -304,10 +312,10 @@ packages:
dependency: "direct main"
description:
name: file_picker
sha256: "36a1652d99cb6bf8ccc8b9f43aded1fd60b234d23ce78af422c07f950a436ef7"
sha256: "77f8e81d22d2a07d0dee2c62e1dda71dc1da73bf43bb2d45af09727406167964"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
version: "10.1.9"
fixnum:
dependency: transitive
description:
@@ -320,10 +328,10 @@ packages:
dependency: "direct main"
description:
name: flex_color_picker
sha256: c083b79f1c57eaeed9f464368be376951230b3cb1876323b784626152a86e480
sha256: "8f753a1a026a13ea5cc5eddbae3ceb886f2537569ab2e5208efb1e3bb5af72ff"
url: "https://pub.dev"
source: hosted
version: "3.7.0"
version: "3.7.1"
flex_seed_scheme:
dependency: transitive
description:
@@ -490,18 +498,18 @@ packages:
dependency: "direct main"
description:
name: flutter_markdown
sha256: "634622a3a826d67cb05c0e3e576d1812c430fa98404e95b60b131775c73d76ec"
sha256: "08fb8315236099ff8e90cb87bb2b935e0a724a3af1623000a9cec930468e0f27"
url: "https://pub.dev"
source: hosted
version: "0.7.7"
version: "0.7.7+1"
flutter_plugin_android_lifecycle:
dependency: transitive
description:
name: flutter_plugin_android_lifecycle
sha256: "5a1e6fb2c0561958d7e4c33574674bda7b77caaca7a33b758876956f2902eea3"
sha256: f948e346c12f8d5480d2825e03de228d0eb8c3a737e4cdaa122267b89c022b5e
url: "https://pub.dev"
source: hosted
version: "2.0.27"
version: "2.0.28"
flutter_test:
dependency: "direct dev"
description: flutter
@@ -532,10 +540,10 @@ packages:
dependency: transitive
description:
name: fraction
sha256: "7804c9a73d26bd3d5ccf52b7225eecd0af4e33b310729726dc8f8bb14c217716"
sha256: dd487c01c0bfdcccc44d15250b24b4bee94b6981e01e8c41007a1b02f395ea01
url: "https://pub.dev"
source: hosted
version: "5.0.4"
version: "5.0.5"
gtk:
dependency: transitive
description:
@@ -556,18 +564,18 @@ packages:
dependency: "direct main"
description:
name: html
sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec"
sha256: "6d1264f2dffa1b1101c25a91dff0dc2daee4c18e87cd8538729773c073dbf602"
url: "https://pub.dev"
source: hosted
version: "0.15.5"
version: "0.15.6"
http:
dependency: "direct main"
description:
name: http
sha256: fe7ab022b76f3034adc518fb6ea04a82387620e19977665ea18d30a1cf43442f
sha256: "2c11f3f94c687ee9bad77c171151672986360b2b001d109814ee7140b2cf261b"
url: "https://pub.dev"
source: hosted
version: "1.3.0"
version: "1.4.0"
http_parser:
dependency: transitive
description:
@@ -708,10 +716,10 @@ packages:
dependency: transitive
description:
name: path_provider_android
sha256: "0ca7359dad67fd7063cb2892ab0c0737b2daafd807cf1acecd62374c8fae6c12"
sha256: d0d310befe2c8ab9e7f393288ccbb11b60c019c6b5afc21973eeee4dda2b35e9
url: "https://pub.dev"
source: hosted
version: "2.2.16"
version: "2.2.17"
path_provider_foundation:
dependency: transitive
description:
@@ -748,26 +756,26 @@ packages:
dependency: "direct main"
description:
name: permission_handler
sha256: "59adad729136f01ea9e35a48f5d1395e25cba6cea552249ddbe9cf950f5d7849"
sha256: "2d070d8684b68efb580a5997eb62f675e8a885ef0be6e754fb9ef489c177470f"
url: "https://pub.dev"
source: hosted
version: "11.4.0"
version: "12.0.0+1"
permission_handler_android:
dependency: transitive
description:
name: permission_handler_android
sha256: d3971dcdd76182a0c198c096b5db2f0884b0d4196723d21a866fc4cdea057ebc
sha256: "1e3bc410ca1bf84662104b100eb126e066cb55791b7451307f9708d4007350e6"
url: "https://pub.dev"
source: hosted
version: "12.1.0"
version: "13.0.1"
permission_handler_apple:
dependency: transitive
description:
name: permission_handler_apple
sha256: f84a188e79a35c687c132a0a0556c254747a08561e99ab933f12f6ca71ef3c98
sha256: f000131e755c54cf4d84a5d8bd6e4149e262cc31c5a8b1d698de1ac85fa41023
url: "https://pub.dev"
source: hosted
version: "9.4.6"
version: "9.4.7"
permission_handler_html:
dependency: transitive
description:
@@ -852,34 +860,34 @@ packages:
dependency: transitive
description:
name: posix
sha256: a0117dc2167805aa9125b82eee515cc891819bac2f538c83646d355b16f58b9a
sha256: f0d7856b6ca1887cfa6d1d394056a296ae33489db914e365e2044fdada449e62
url: "https://pub.dev"
source: hosted
version: "6.0.1"
version: "6.0.2"
provider:
dependency: "direct main"
description:
name: provider
sha256: "489024f942069c2920c844ee18bb3d467c69e48955a4f32d1677f71be103e310"
sha256: "4abbd070a04e9ddc287673bf5a030c7ca8b685ff70218720abab8b092f53dd84"
url: "https://pub.dev"
source: hosted
version: "6.1.4"
version: "6.1.5"
share_plus:
dependency: "direct main"
description:
name: share_plus
sha256: fce43200aa03ea87b91ce4c3ac79f0cecd52e2a7a56c7a4185023c271fbfa6da
sha256: b2961506569e28948d75ec346c28775bb111986bb69dc6a20754a457e3d97fa0
url: "https://pub.dev"
source: hosted
version: "10.1.4"
version: "11.0.0"
share_plus_platform_interface:
dependency: transitive
description:
name: share_plus_platform_interface
sha256: cc012a23fc2d479854e6c80150696c4a5f5bb62cb89af4de1c505cf78d0a5d0b
sha256: "1032d392bc5d2095a77447a805aa3f804d2ae6a4d5eef5e6ebb3bd94c1bc19ef"
url: "https://pub.dev"
source: hosted
version: "5.0.2"
version: "6.0.0"
shared_preferences:
dependency: "direct main"
description:
@@ -892,10 +900,10 @@ packages:
dependency: transitive
description:
name: shared_preferences_android
sha256: "3ec7210872c4ba945e3244982918e502fa2bfb5230dff6832459ca0e1879b7ad"
sha256: "20cbd561f743a342c76c151d6ddb93a9ce6005751e7aa458baad3858bfbfb6ac"
url: "https://pub.dev"
source: hosted
version: "2.4.8"
version: "2.4.10"
shared_preferences_foundation:
dependency: transitive
description:
@@ -1067,10 +1075,10 @@ packages:
dependency: transitive
description:
name: timezone
sha256: ffc9d5f4d1193534ef051f9254063fa53d588609418c84299956c3db9383587d
sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1
url: "https://pub.dev"
source: hosted
version: "0.10.0"
version: "0.10.1"
typed_data:
dependency: transitive
description:
@@ -1099,10 +1107,10 @@ packages:
dependency: transitive
description:
name: url_launcher_android
sha256: "1d0eae19bd7606ef60fe69ef3b312a437a16549476c42321d5dc1506c9ca3bf4"
sha256: "8582d7f6fe14d2652b4c45c9b6c14c0b678c2af2d083a11b604caeba51930d79"
url: "https://pub.dev"
source: hosted
version: "6.3.15"
version: "6.3.16"
url_launcher_ios:
dependency: transitive
description:
@@ -1139,10 +1147,10 @@ packages:
dependency: transitive
description:
name: url_launcher_web
sha256: "3ba963161bd0fe395917ba881d320b9c4f6dd3c4a233da62ab18a5025c85f1e9"
sha256: "4bd2b7b4dc4d4d0b94e5babfffbca8eac1a126c7f3d6ecbc1a11013faa3abba2"
url: "https://pub.dev"
source: hosted
version: "2.4.0"
version: "2.4.1"
url_launcher_windows:
dependency: transitive
description:
@@ -1187,42 +1195,42 @@ packages:
dependency: "direct main"
description:
name: webview_flutter
sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec"
sha256: "62d763c27ce7f6cef04b3bec01c85a28d60149bffd155884aa4b8fd4941ea2e4"
url: "https://pub.dev"
source: hosted
version: "4.10.0"
version: "4.12.0"
webview_flutter_android:
dependency: transitive
description:
name: webview_flutter_android
sha256: e09150b28a07933839adef0e4a088bb43e8c8d9e6b93025b01882d4067a58ab0
sha256: "5ece28a317a9f76ad5ee17c78dbacc8a491687cec85ee19c1643761bf8d678ef"
url: "https://pub.dev"
source: hosted
version: "4.3.4"
version: "4.6.0"
webview_flutter_platform_interface:
dependency: transitive
description:
name: webview_flutter_platform_interface
sha256: d937581d6e558908d7ae3dc1989c4f87b786891ab47bb9df7de548a151779d8d
sha256: "7cb32b21825bd65569665c32bb00a34ded5779786d6201f5350979d2d529940d"
url: "https://pub.dev"
source: hosted
version: "2.10.0"
version: "2.13.0"
webview_flutter_wkwebview:
dependency: transitive
description:
name: webview_flutter_wkwebview
sha256: c14455137ce60a68e1ccaf4e8f2dae8cebcb3465ddaa2fcfb57584fb7c5afe4d
sha256: "6af7d1908c9c89311c2dffcc2c9b51b88a6f055ba16fa0aa8a04cbb1c3afc9ce"
url: "https://pub.dev"
source: hosted
version: "3.18.5"
version: "3.21.0"
win32:
dependency: transitive
description:
name: win32
sha256: dc6ecaa00a7c708e5b4d10ee7bec8c270e9276dfcab1783f57e9962d7884305f
sha256: "329edf97fdd893e0f1e3b9e88d6a0e627128cc17cc316a8d67fda8f1451178ba"
url: "https://pub.dev"
source: hosted
version: "5.12.0"
version: "5.13.0"
win32_registry:
dependency: transitive
description:
@@ -1256,5 +1264,5 @@ packages:
source: hosted
version: "3.1.3"
sdks:
dart: ">=3.7.0 <4.0.0"
dart: ">=3.7.2 <4.0.0"
flutter: ">=3.27.0"

View File

@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.1.49+2306
version: 1.1.54+2311
environment:
sdk: ^3.6.0
@@ -44,7 +44,7 @@ dependencies:
html: ^0.15.0
shared_preferences: ^2.0.15
url_launcher: ^6.1.5
permission_handler: ^11.0.0
permission_handler: ^12.0.0+1
fluttertoast: ^8.0.9
device_info_plus: ^11.0.0
file_picker: ^10.0.0
@@ -57,7 +57,7 @@ dependencies:
git:
url: https://github.com/ImranR98/android_package_manager
ref: master
share_plus: ^10.0.0
share_plus: ^11.0.0
sqflite: ^2.2.0+3
easy_localization: ^3.0.1
android_intent_plus: ^5.0.1
@@ -70,6 +70,7 @@ dependencies:
url: https://github.com/AlexBacich/shared-storage
ref: master
crypto: ^3.0.3
bcrypt: ^1.1.3
app_links: ^6.0.1
background_fetch: ^1.2.1
equations: ^5.0.2