refactor: improve microg-support
reference patches
This commit is contained in:
parent
5bf310dfee
commit
8e86d9e6cb
|
@ -65,13 +65,11 @@ class MicroGBytecodePatch : BytecodePatch(
|
||||||
|
|
||||||
val replaceMode = if (stringValue.equalsAny(
|
val replaceMode = if (stringValue.equalsAny(
|
||||||
"com.google.android.gms",
|
"com.google.android.gms",
|
||||||
"com.google.android.youtube.fileprovider",
|
|
||||||
"com.google.android.c2dm.intent.REGISTER",
|
"com.google.android.c2dm.intent.REGISTER",
|
||||||
"com.google.android.c2dm.permission.SEND",
|
"com.google.android.c2dm.permission.SEND",
|
||||||
"com.google.iid.TOKEN_REQUEST",
|
"com.google.iid.TOKEN_REQUEST",
|
||||||
"com.google",
|
"com.google",
|
||||||
"com.google.android.gms.auth.accounts",
|
"com.google.android.gms.auth.accounts",
|
||||||
"com.google.android.youtube.SuggestionProvider",
|
|
||||||
"com.google.android.c2dm.intent.REGISTRATION",
|
"com.google.android.c2dm.intent.REGISTRATION",
|
||||||
"com.google.android.gsf.action.GET_GLS",
|
"com.google.android.gsf.action.GET_GLS",
|
||||||
"com.google.android.gsf.login",
|
"com.google.android.gsf.login",
|
||||||
|
|
|
@ -39,10 +39,6 @@ class MicroGResourcePatch : ResourcePatch() {
|
||||||
"android:label=\"@string/application_name", "android:label=\"$REVANCED_APP_NAME"
|
"android:label=\"@string/application_name", "android:label=\"$REVANCED_APP_NAME"
|
||||||
).replace(
|
).replace(
|
||||||
"android:authorities=\"com.google.android.youtube", "android:authorities=\"$REVANCED_PACKAGE_NAME"
|
"android:authorities=\"com.google.android.youtube", "android:authorities=\"$REVANCED_PACKAGE_NAME"
|
||||||
).replace(
|
|
||||||
"com.google.android.youtube.fileprovider", "$REVANCED_PACKAGE_NAME.fileprovider"
|
|
||||||
).replace(
|
|
||||||
"com.google.android.youtube.SuggestionProvider", "$REVANCED_PACKAGE_NAME.SuggestionProvider"
|
|
||||||
).replace(
|
).replace(
|
||||||
"com.google.android.youtube.permission.C2D_MESSAGE", "$REVANCED_PACKAGE_NAME.permission.C2D_MESSAGE"
|
"com.google.android.youtube.permission.C2D_MESSAGE", "$REVANCED_PACKAGE_NAME.permission.C2D_MESSAGE"
|
||||||
).replace( // TODO: might not be needed
|
).replace( // TODO: might not be needed
|
||||||
|
|
Loading…
Reference in a new issue