Repository navigation
AppManager_v4.0.5-DEBUG#155
Pre-releaseDebug Build MuntashirAkon#155
Version: v4.0.5
Commit: b349596
Changes:
safety: Add comprehensive error handling to IPC operations
Add exception handling around all expensive IPC operations to ensure
that if any individual operation fails, the app list loading continues
instead of crashing or hanging.
Changes:
-
ComponentsBlocker.getInstance() - Wrap in try-catch
- If it fails, log warning and continue with rulesCount=0
- Prevents app list load failure due to components blocker issues
-
PackageUtils.getPackageSizeInfo() - Wrap in try-catch
- If it fails, log warning and continue with size=0
- Prevents app list load failure due to StorageStats IPC issues
-
KeyStoreUtils.hasKeyStore() - Wrap in try-catch
- If it fails, log warning and continue with hasKeystore=false
- Prevents app list load failure due to su command failures
Why This Matters:
Without error handling, a single failing app (corrupted package,
permission issues, etc.) could crash the entire app list loading
process. With this change, problematic apps are logged and skipped,
allowing the rest of the list to load successfully.
This is especially important for the KeyStoreUtils call which runs
su commands that could fail for various reasons (no root, su timeout,
SELinux denials, etc.).
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 4.5 noreply@anthropic.com
🤖 Automatically generated debug build