-
Notifications
You must be signed in to change notification settings - Fork 1
/
__packages__.py
61 lines (55 loc) · 3.79 KB
/
__packages__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# Copyright (C) 2024 chickendrop89
# Sourced from the official NikGApps project (GPLv3)
# https://github.com/nikgapps/project/blob/main/NikGapps/build/PackageConstants.py
def getPackageReplacement(package_name: str):
"""Throws a list of directories to replace if there is a conflicting GApp"""
package_replacement = {
"com.google.android.gms": ["PrebuiltGmsCoreQt", "PrebuiltGmsCoreRvc", "GmsCore"],
"com.google.android.dialer": ["Dialer"],
"com.google.android.contacts": ["Contacts"],
"com.google.android.tts": ["PicoTts"],
"com.google.android.inputmethod.latin": ["LatinIME"],
"com.google.android.calendar": ["Calendar", "Etar", "SimpleCalendar"],
"com.google.android.apps.messaging": ["RevengeMessages", "messaging", "Messaging", "QKSMS", "Mms"],
"com.google.android.apps.photos": ["Gallery", "SimpleGallery", "Gallery2", "MotGallery", "MediaShortcuts",
"SimpleGallery", "FineOSGallery", "GalleryX", "MiuiGallery",
"SnapdragonGallery", "DotGallery", "Glimpse"],
"com.google.android.keep": ["Notepad"],
"com.google.android.apps.recorder": ["Recorder", "QtiSoundRecorder"],
"com.google.android.gm": ["Email", "PrebuiltEmailGoogle"],
"com.google.android.apps.wallpaper": ["Wallpapers", "ThemePicker"],
"com.android.chrome": ["Bolt", "Browser", "Browser2", "BrowserIntl", "BrowserProviderProxy", "Chromium",
"DuckDuckGo", "Fluxion", "Gello", "Jelly", "PA_Browser", "PABrowser", "YuBrowser",
"BLUOpera", "BLUOperaPreinstall", "ViaBrowser", "Duckduckgo"],
"com.google.android.youtube.music": ["SnapdragonMusic", "GooglePlayMusic", "Eleven", "CrDroidMusic"],
"com.google.android.setupwizard": ["Provision", "SetupWizard", "LineageSetupWizard"],
"com.google.android.pixel.setupwizard": ["Provision", "SetupWizard", "LineageSetupWizard"],
"com.google.android.calculator": ["ExactCalculator", "MotoCalculator", "RevengeOSCalculator"],
"com.google.android.apps.maps": ["Maps"],
"com.google.android.apps.turbo": ["TurboPrebuilt"],
"com.google.android.soundpicker": ["SoundPicker"],
"com.google.android.storagemanager": ["StorageManager"],
"com.google.android.documentsui": ["DocumentsUI"],
"com.google.android.webview": ["webview"],
"com.google.android.apps.restore": ["Seedvault"],
"com.google.android.deskclock": ["DeskClock"],
"org.lineageos.snap": ["GoogleCameraGo", "ScreenRecorder"],
"com.google.android.as": ["DevicePersonalizationPrebuiltPixel4"],
"com.google.android.apps.nexuslauncher": ["TrebuchetQuickStep", "Launcher3QuickStep", "ArrowLauncher",
"Lawnchair"],
"com.android.systemui.plugin.globalactions.wallet": ["QuickAccessWallet"],
"com.google.android.apps.youtube.music": ["SnapdragonMusic", "GooglePlayMusic", "Eleven", "CrDroidMusic"],
"com.mixplorer.silver": ["MixPlorer"],
"app.lawnchair": ["Lawnchair"]
}
return package_replacement.get(package_name, [])