Masquerade: Allow for specific uninstalls without removing caches
diff --git a/app/src/main/java/projekt/substratum/helper/services/Helper.java b/app/src/main/java/projekt/substratum/helper/services/Helper.java
index 9d08538..5662e19 100644
--- a/app/src/main/java/projekt/substratum/helper/services/Helper.java
+++ b/app/src/main/java/projekt/substratum/helper/services/Helper.java
@@ -27,7 +27,11 @@
         Root.requestRootAccess();
 
         if (intent.getStringArrayListExtra("pm-uninstall") != null) {
-            uninstall_handler(intent);
+            uninstall_handler(intent, false);
+        }
+
+        if (intent.getStringArrayListExtra("pm-uninstall-specific") != null) {
+            uninstall_handler(intent, true);
         }
 
         if (intent.getStringExtra("om-commands") != null) {
@@ -41,7 +45,7 @@
         return (state5overlays.contains(package_name));
     }
 
-    private void uninstall_handler(Intent intent) {
+    private void uninstall_handler(Intent intent, boolean specific) {
         String final_commands_disable = "";
         String final_commands_uninstall = "";
 
@@ -94,11 +98,13 @@
             }
         }
 
-        // Clear the resource idmapping files generated by OMS
-        Log.d("SubstratumHelper", "Cleaning up resource-cache directory...");
-        Root.runCommand("rm /data/resource-cache/*");
-        // Now clear the persistent overlays database
-        Log.d("SubstratumHelper", "Finalizing clean up of persistent overlays database...");
-        Root.runCommand("rm -rf /data/system/overlays.xml");
+        if (!specific) {
+            // Clear the resource idmapping files generated by OMS
+            Log.d("SubstratumHelper", "Cleaning up resource-cache directory...");
+            Root.runCommand("rm /data/resource-cache/*");
+            // Now clear the persistent overlays database
+            Log.d("SubstratumHelper", "Finalizing clean up of persistent overlays database...");
+            Root.runCommand("rm -rf /data/system/overlays.xml");
+        }
     }
 }
\ No newline at end of file