Git Product home page Git Product logo

com.github.dan.nostoragerestrict's Introduction

NoStorageRestrict

Removes the restriction when selecting folders (Sdcard, Download, data and obb) through the file manager on Android 11 and higher

Disclaimer

  • This module WILL NOT let any app access /data or /obb folders directly, my module only gets around file selection limitations in the stock files app (and any app using the storage access framework to access files), fully getting around /data /obb limitation is currently out of the scope of this module
  • In most cases DO NOT enable the module for the files app (only keep it enabled for the External Storage app), only enable it for the Files app when you want an app to be able to access something on /Android/data through the files app, otherwise keep it only enabled for the External Storage app

Donation/Paypal

com.github.dan.nostoragerestrict's People

Contributors

dangles3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

com.github.dan.nostoragerestrict's Issues

Android 14 (February security )doesn't work correctly

Android 14 (February security )doesn't work
After Google updated the security patch for February, third-party applications were unable to access data from other applications,So I tried this moduleAlthough the authorization button of SAF has become an optional button,I found that the authorization for this data is fake.
Although it shows that the authorization was successful, the application still accesses the authorized application's data for lunch, which is displayed as a blank folder.
The following LSPosed logs
LSPosed_2024-02-08T03_28_28.924751.zip

Cannot Access Other SAF Providers

After migrating to the Xposed version, I can no longer access other SAF providers (example: OneDrive and Goggle Drive) with other apps (it's notmal when accessed via Files app directly) when the module is active. It just shows "Can't load content at the moment" message.
Screenshot_20230611-221116
Screenshot_20230611-221123

Hope this can be fixed.
Thank you.

Can't download Whatsapp images

Thanks a lot for this useful module. It is working fine on other apps which requires folder access.

However, WhatsApp cannot download an image or load a story etc. I have also tried enabling only files app in lsposed module scope as u mentioned in the description. Please see the screenshot for it
Screenshot_20231031-182752_Shell

Please let me know if this is a known issue or some mistake from my side

Looking forward to your kind support.

Android 13 custom rom Derpfest

Doesn't work after latest update of /e/OS (based on LineageOS for microG Android 13).

Hello,
this Xposed module worked flawlessly on my phone with Android 13 (Shiftphone 6mq (axolotl), /e/OS-T-dev (based on LineageOS for microG, Android 13).
Since the last system update it doesn't work any more. The folder permission screen looks as without the module, so I cannot grant access to those folders any more that this module should make possible. Apps that had this access before had lost it.
It doesn't make a difference whether I enable the module for the files app or not.

signing issues

Looks like you've changed the signing keys. Signing certificate for the previous release:

Signer #1 certificate DN: C=an, ST=an, L=an, O=an, OU=an, CN=an
Signer #1 certificate SHA-256 digest: f6964f5776ca4124d606b3acdb25be3748deebb60625d7127ab14e7c7e21bd37
Signer #1 certificate SHA-1 digest: c434cfddda4365ca4f6f10cc45548d50eb24db92
Signer #1 certificate MD5 digest: 3f205b841becebb94a8673777d66de78
Signer #1 key algorithm: RSA
Signer #1 key size (bits): 2048

Signing cert for the current release:

Signer #1 certificate DN: C=dn, ST=dn, L=dn, O=dn, OU=dn, CN=dn
Signer #1 certificate SHA-256 digest: 551353d4e096d5d117fc322dbfed42c5ae7c8f26ac1009a13edc0f39f80b4c8c
Signer #1 certificate SHA-1 digest: c0776bfa84f548004e06223b5e64ffb77e29f5dd
Signer #1 certificate MD5 digest: 3ed0eb8b62e9b0ceea8092372b180f81
Signer #1 key algorithm: RSA
Signer #1 key size (bits): 2048

Note that the hashes differ. Due to that, updates from a previous release are not possible, Android will reject the APK.

I couldn't find any note for this in the release notes. Could you please check what happened, and fix this issue? Thanks in advance!

Unzip error

When I download the module, it says copying zip to temp directory, then it says unzip error.

[BUG]Unable to authorize certain applications

I found that I am unable to authorize some software, such as Discord and Twitch.
I used MT Manager to authorize data through SAF, and then I found that the application package name displayed on the authorization interface was not the one I selected, but the name of the previous successfully authorized application package. As shown in the picture, I chose Discord but it displayed Twitter.
Screenshot_2024-03-28-13-08-28-247_com google android documentsui
LSPosed log has been uploaded, requesting assistance
LSPosed_2024-03-28T12_59_27.736206.zip

Bypass the LOCAL_ONLY restriction

some apps se the Intent.EXTRA_LOCAL_ONLY that forces non-local storage providers to be hidden. An option to strip this flag would be awesome, It's a storage restriction after all ;). If you need an app to test with you can use obsidian

here is the code they are using (decompiled):

@PluginMethod
    public void choose(PluginCall pluginCall) {
        try {
            Intent intent = new Intent("android.intent.action.OPEN_DOCUMENT_TREE");
            if (Build.VERSION.SDK_INT >= 26) {
                try {
                    Uri parse = Uri.parse("content://com.android.externalstorage.documents/tree/primary%3ADocuments");
                    intent.putExtra("android.provider.extra.INITIAL_URI", DocumentsContract.buildDocumentUriUsingTree(parse, DocumentsContract.getTreeDocumentId(parse)));
                } catch (Exception unused) {
                }
            }
            if (Build.VERSION.SDK_INT >= 23) {
                intent.putExtra("android.provider.extra.PROMPT", "Allow Write Permission");
            }
            intent.putExtra("android.content.extra.SHOW_ADVANCED", true);
            intent.putExtra("android.intent.extra.LOCAL_ONLY", true);
            intent.addFlags(195);
            startActivityForResult(pluginCall, intent, "onOpenDocumentTree");
        } catch (Exception e) {
            pluginCall.reject("Failed to choose folder: " + e.getLocalizedMessage());
        }
    }

Urge to update

Android 13, Use this folder button is accessible,but i can't see the data folder(it's not hidden
Screenshot_20221126213514
)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.