From d25bba10b0ff7e636fd878638b66487c7e608b5c Mon Sep 17 00:00:00 2001 From: gdlbo <41114720+gdlbo@users.noreply.github.com> Date: Thu, 25 May 2023 17:06:48 +0300 Subject: [PATCH] fixed profiles crash --- app/src/main/java/ru/vtosters/hooks/other/Preferences.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/ru/vtosters/hooks/other/Preferences.java b/app/src/main/java/ru/vtosters/hooks/other/Preferences.java index d8587bc3a..14e9ac6d5 100644 --- a/app/src/main/java/ru/vtosters/hooks/other/Preferences.java +++ b/app/src/main/java/ru/vtosters/hooks/other/Preferences.java @@ -21,6 +21,9 @@ import java.security.NoSuchAlgorithmException; public class Preferences { public static void init(Application application) throws Exception { + StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build(); + StrictMode.setThreadPolicy(policy); // fix profiles hide hook + GmsHook.fixGapps(); ProxyUtils.setProxy(); NewsFeedFiltersUtils.setupFilters();