mirror of
https://github.com/AChep/keyguard-app.git
synced 2025-01-07 20:21:42 +01:00
111 lines
3.4 KiB
Python
111 lines
3.4 KiB
Python
import json
|
|
import requests
|
|
|
|
URL_APPS = "https://www.gstatic.com/gpm-passkeys-privileged-apps/apps.json"
|
|
|
|
EXTRA_APPS = [
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "org.chromium.chrome",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "A8:56:48:50:79:BC:B3:57:BF:BE:69:BA:19:A9:BA:43:CD:0A:D9:AB:22:67:52:C7:80:B6:88:8A:FD:48:21:6B"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "org.cromite.cromite",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "63:3F:A4:1D:82:11:D6:D0:91:6A:81:9B:89:66:8C:6D:E9:2E:64:23:2D:A6:7F:9D:16:FD:81:C3:B7:E9:23:FF"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
# Firefox Nightly for Developers
|
|
# https://play.google.com/store/apps/details?id=org.mozilla.fenix
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "org.mozilla.fenix",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "50:04:77:90:88:E7:F9:88:D5:BC:5C:C5:F8:79:8F:EB:F4:F8:CD:08:4A:1B:2A:46:EF:D4:C8:EE:4A:EA:F2:11"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
# Fennec F-Droid
|
|
# https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "org.mozilla.fennec_fdroid",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "06:66:53:58:EF:D8:BA:05:BE:23:6A:47:A1:2C:B0:95:8D:7D:75:DD:93:9D:77:C2:B3:1F:53:98:53:7E:BD:C5"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
# Mull F-Droid
|
|
# https://f-droid.org/uk/packages/us.spotco.fennec_dos/
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "us.spotco.fennec_dos",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "26:0E:0A:49:67:8C:78:B7:0C:02:D6:53:7A:DD:3B:6D:C0:A1:71:71:BB:DE:8C:E7:5F:D4:02:6A:8A:3E:18:D2"
|
|
},
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "FF:81:F5:BE:56:39:65:94:EE:E7:0F:EF:28:32:25:6E:15:21:41:22:E2:BA:9C:ED:D2:60:05:FF:D4:BC:AA:A8"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
# Iceraven
|
|
# https://github.com/fork-maintainers/iceraven-browser
|
|
{
|
|
"type": "android",
|
|
"info": {
|
|
"package_name": "io.github.forkmaintainers.iceraven",
|
|
"signatures": [
|
|
{
|
|
"build": "release",
|
|
"cert_fingerprint_sha256": "9C:0D:22:37:9F:48:7B:70:A4:F9:F8:BE:C0:17:3C:F9:1A:16:44:F0:8F:93:38:5B:5B:78:2C:E3:76:60:BA:81"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
]
|
|
|
|
response = requests.get(
|
|
URL_APPS,
|
|
)
|
|
|
|
json_obj = response.json()
|
|
# Add extra apps to the resulting privileged
|
|
# apps list.
|
|
for extra in EXTRA_APPS:
|
|
apps = json_obj["apps"]
|
|
for app in apps:
|
|
if app["type"] == extra["type"] and app["info"]["package_name"] == extra["info"]["package_name"]:
|
|
break
|
|
else:
|
|
apps.append(extra)
|
|
json_text = json.dumps(json_obj, indent=2)
|
|
|
|
with open('common/src/commonMain/composeResources/files/gpm_passkeys_privileged_apps.json', 'w') as f:
|
|
f.write(json_text)
|