[core] Remove special handling for com.sygic.aura

* Was introduced in original Xposed because this app implemented
   low-level resource class replacements iteself and would crash with
   resource hook enabled, which is not the case anymore.
This commit is contained in:
Wang Han 2021-03-20 15:33:37 +08:00
parent 2d8a9932f2
commit 9b081dac37
1 changed files with 1 additions and 5 deletions

View File

@ -21,7 +21,6 @@
package de.robv.android.xposed;
import android.annotation.SuppressLint;
import android.app.AndroidAppHelper;
import android.content.pm.ApplicationInfo;
import android.content.res.Resources;
import android.content.res.ResourcesImpl;
@ -43,7 +42,6 @@ import java.io.InputStreamReader;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
@ -79,7 +77,6 @@ public final class XposedInit {
private static final String startClassName = ""; // ed: no support for tool process anymore
public static volatile boolean disableResources = false;
private static final String[] XRESOURCES_CONFLICTING_PACKAGES = {"com.sygic.aura"};
private XposedInit() {
}
@ -208,8 +205,7 @@ public final class XposedInit {
private static XResources cloneToXResources(XC_MethodHook.MethodHookParam param, String resDir) {
Object result = param.getResult();
if (result == null || result instanceof XResources ||
Arrays.binarySearch(XRESOURCES_CONFLICTING_PACKAGES, AndroidAppHelper.currentPackageName()) == 0) {
if (result == null || result instanceof XResources) {
return null;
}