Skip to content

Instantly share code, notes, and snippets.

@d4rken
Created November 19, 2016 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d4rken/bf08bae003faa01ce0755bfcaaa5b2bf to your computer and use it in GitHub Desktop.
Save d4rken/bf08bae003faa01ce0755bfcaaa5b2bf to your computer and use it in GitHub Desktop.
sailfish:/data/data/com.android.documentsui/shared_prefs # cat com.android.documentsui_preferences.xml
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="0|com.commonsware.android.documenttree||Documents" value="-1" />
</map>
@d4rken
Copy link
Author

d4rken commented Nov 19, 2016

Rooted Pixel @ 7.1

@d4rken
Copy link
Author

d4rken commented Nov 19, 2016

Removing the line or changing the value to 1 makes the permission dialog show again. If you don't reinstall the test app you have to kill com.android.documentsui.

  • 1 = denied once, show checkbox
  • -1 = denied permanently.
  • 0 = ??

@d4rken
Copy link
Author

d4rken commented Nov 19, 2016

Clearing data for com.android.documentsui also works as it deleted the preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment