You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I installed and uninstalled some apps after I inserted in the scope of a module.
When I uninstalled the app I expected it to disappear from the database (table scope), but I found that ConfigManager cacheScopes does not update the cache because it thinks it is already up to date.
Is it an issue?
In my LSPosed_mod I fixed with this patch
diff --git a/daemon/src/main/java/org/lsposed/lspd/service/ConfigManager.java b/daemon/src/main/java/org/lsposed/lspd/service/ConfigManager.java
index fde44d52..875cfef0 100644
--- a/daemon/src/main/java/org/lsposed/lspd/service/ConfigManager.java
+++ b/daemon/src/main/java/org/lsposed/lspd/service/ConfigManager.java
@@ -877,6 +877,7 @@ public class ConfigManager {
}
public void updateAppCache() {
+ lastScopeCacheTime = 0; // force update app cache
// Called by oneway binder
cacheScopes();
}
I don't know if that's the correct way, but solve my issue. updateAppCache is executed only when an app is installed/uninstalled, so I think update cache must be forced.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I installed and uninstalled some apps after I inserted in the scope of a module.
When I uninstalled the app I expected it to disappear from the database (table scope), but I found that ConfigManager cacheScopes does not update the cache because it thinks it is already up to date.
Is it an issue?
In my LSPosed_mod I fixed with this patch
I don't know if that's the correct way, but solve my issue. updateAppCache is executed only when an app is installed/uninstalled, so I think update cache must be forced.
Beta Was this translation helpful? Give feedback.
All reactions