Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean isrootallowed(File bp)
- {
- ArrayList<File> l = new ArrayList<File>();
- l.add( new File("/"));
- l.add( new File("/sdcard"));
- l.add( new File("/mnt/sdcard"));
- l.addAll( Arrays.asList( new File("/").listFiles()) );
- for (int i = 0; i < l.size(); i++) {
- if (l.get(i).equals(bp)) {
- return false;
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement