mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
Merge pull request #636 from alexbakker/libsu-mount-ns
Run libsu commands inside the global mount namespace
This commit is contained in:
commit
39f18b79cb
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@ import com.beemdevelopment.aegis.vault.VaultManager;
|
|||
import com.beemdevelopment.aegis.vault.VaultManagerException;
|
||||
import com.mikepenz.iconics.Iconics;
|
||||
import com.mikepenz.material_design_iconic_typeface_library.MaterialDesignIconic;
|
||||
import com.topjohnwu.superuser.Shell;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -43,6 +44,11 @@ public class AegisApplication extends Application {
|
|||
private static final String CODE_LOCK_STATUS_ID = "lock_status_channel";
|
||||
private static final String CODE_LOCK_VAULT_ACTION = "lock_vault";
|
||||
|
||||
static {
|
||||
// to access other app's internal storage directory, run libsu commands inside the global mount namespace
|
||||
Shell.Config.setFlags(Shell.FLAG_MOUNT_MASTER);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
|
|
Loading…
Add table
Reference in a new issue