mirror of
				https://github.com/opa334/TrollStore.git
				synced 2025-11-04 15:42:35 +08:00 
			
		
		
		
	Very late bugfix: Also wipe data container when uninstalling an app
This commit is contained in:
		
							parent
							
								
									27534fb48d
								
							
						
					
					
						commit
						3d89c079a2
					
				@ -775,6 +775,11 @@ int uninstallApp(NSString* appPath, NSString* appId, BOOL useCustomMethod)
 | 
			
		||||
	{
 | 
			
		||||
		LSApplicationProxy* appProxy = [LSApplicationProxy applicationProxyForIdentifier:appId];
 | 
			
		||||
 | 
			
		||||
		// delete data container
 | 
			
		||||
		if (appProxy.dataContainerURL) {
 | 
			
		||||
			[[NSFileManager defaultManager] removeItemAtURL:appProxy.dataContainerURL error:nil];
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		// delete group container paths
 | 
			
		||||
		[[appProxy groupContainerURLs] enumerateKeysAndObjectsUsingBlock:^(NSString* groupId, NSURL* groupURL, BOOL* stop)
 | 
			
		||||
		{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user