yashsingh1/xdaforums huggingface dataset:
[Xposed Framework Modules] marcdw:
[MENTION=4784771]Zeuszoos[/MENTION], I'm in agreement there regarding MM, and by extension Nougat.

I flash ROMs like crazy and have liked and praised some of the MMs but the annoyances introduced meant I couldn't adopt any as my main.

I multiboot so I run KK and LP also. The change in storage paths on MM really screwed things up.

Some apps like Titanium Backup use shared/synced settings. When TiBu is installed on a new KK/LP ROM the settings are already there on first run, ready to go. Backup location, cloud settings, backup settings, etc. When installed on MM TiBu starts up as new because it can't find existing settings.

A few other apps are hit by that.

Apps have to be reconfigured for the new paths also. That would make backup and restoring data among ROMs a problem for some apps. Constantly having to make changes.

Plus, if you put in a new SD card or reformat the UUID changes and apps have to be reconfigured once again.

Then there's USB OTG. Instead of good ole /storage/usbdisk0 we get /storage/UUID-UUID with permissions of 700 (rwx------). Favorite file manager can't do anything there. Need to either use the ROM's DocumentsUI or traverse to the flash drive via /mnt.

Google has added inconvenience for me, not features.

Bah.

LG G3 D851, Mahdi KitKat ROM, microG Project (NoGapps), MultiROM, Tapatalk 4.9.5
[Xposed Framework Modules] Zeuszoos:
And I don't get their thinking. "Hey, I have an idea. Let's make it difficult for users to access their own storage!"
[Xposed Framework Modules] p107r0:
"... then they'll be more willing to switch to our cloud storage" ?
[Xposed Framework Modules] pandadai00:
Thanks for this! Works well for me. My downloads are now directed to my sd card. I'm running SlimRom 6 btw if that helps anyone.
[Xposed Framework Modules] Zeuszoos:
Hahahahaha! Yea, right? <lol>

TTYL
[Xposed Framework Modules] Norimael:
Hello,

I have a Samsung A5 2016 root with Apex launcher without Touchwizz and with xposed v87 sdk23 arm the phone does not reboot after wipe dalvik cachee.

I have to reinstall rom original and root again ..

I do not know what to do.

Titanium backup still does not want to save my backups on my SDcart

Thanks for your help...
[Xposed Framework Modules] nicodemouse:
[MENTION=4040932]balamu96m[/MENTION] Excuse me. When I download an app from the play store, while I'm downloading, it informs me how many MB is the app. All these MB will end up in the internal memory of the phone?

I take this opportunity to ask a question relevant to the subject. I wish I could use my sd card, half as internal memory (for apps) and half as external memory. Currently there is not a compromise in order to fully use a SD card in Android.
[Xposed Framework Modules] cRaWnEr:
Try this: http://blog.sam.liddicott.com/2016/02/android-6-semi-adopted-storage.html
[Xposed Framework Modules] itandy:
[MENTION=4040932]balamu96m[/MENTION], I just installed this module but got repeated errors like the following in the Xposed log.

02-02 11:39:50.795 E/Xposed ( 5338): java.io.FileNotFoundException: /data/user/0/com.balamurugan.marshmallowsdfix/files/NewFile.xml: open failed: ENOENT (No such file or directory)
02-02 11:39:50.795 E/Xposed ( 5338):	at libcore.io.IoBridge.open(IoBridge.java:452)
02-02 11:39:50.795 E/Xposed ( 5338):	at java.io.FileInputStream.<init>(FileInputStream.java:76)
02-02 11:39:50.795 E/Xposed ( 5338):	at java.io.FileInputStream.<init>(FileInputStream.java:103)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.balamurugan.marshmallowsdfix.MediaGranter$1.afterHookedMethod(MediaGranter.java:66)
02-02 11:39:50.795 E/Xposed ( 5338):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:348)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.pm.PackageManagerService.grantPermissionsLPw(<Xposed>)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.pm.PackageManagerService.updatePermissionsLPw(PackageManagerService.java:8592)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:2388)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:1819)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:401)
02-02 11:39:50.795 E/Xposed ( 5338):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
02-02 11:39:50.795 E/Xposed ( 5338):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:334)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.SystemServer.startBootstrapServices(<Xposed>)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.SystemServer.run(SystemServer.java:278)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.server.SystemServer.main(SystemServer.java:178)
02-02 11:39:50.795 E/Xposed ( 5338):	at java.lang.reflect.Method.invoke(Native Method)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
02-02 11:39:50.795 E/Xposed ( 5338):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
02-02 11:39:50.795 E/Xposed ( 5338):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
02-02 11:39:50.795 E/Xposed ( 5338): Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
02-02 11:39:50.795 E/Xposed ( 5338):	at libcore.io.Posix.open(Native Method)
02-02 11:39:50.795 E/Xposed ( 5338):	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
02-02 11:39:50.795 E/Xposed ( 5338):	at libcore.io.IoBridge.open(IoBridge.java:438)
02-02 11:39:50.795 E/Xposed ( 5338):	... 18 more
[Xposed Framework Modules] omkar17:
i installed this app as said here but still no luck in any app, a better camera app doest work , gettube videos saving also odesnt work along with other apps....uninstalled and did the whole process twice still no luck.....I wonder what is wrong here
[Xposed Framework Modules] avalicia:
i am installed this app, install xposed framework and obb to sd.

i do what i can do, but its not working.

i still cant write file on sd card, even if i can, only es file explorer can do that but with my permission first.

can some one help me?

and thank you
[Xposed Framework Modules] krekis:
this is the module that I always searching so far...

thanks,bro...
[Xposed Framework Modules] elphamale:
It seems to me that this 'Marshmallow SD fix' doesn't work with apps that don't have a functionality in them to ask for external sd access - not the dialog window 'please give permission to access files on the device' but when the app redirects you to android window that asks you to select SD card to give it permission.

For example FBReader doesn't ask to allow it full external sd access and even enabling it in 'Marshmallow SD fix' won't give it access.

And if you give app the permission by selecting SD card in android window selecting it i 'Marshmallow SD fix' is redundant.

Therefore this 'Marshmallow SD fix' is useless.
[Xposed Framework Modules] TiagoJSilva:
That's my experience as well. This module is doing nothing for me. Any app where I try to navigate to my SD card, fails to write. Apps that follow Lollipop method of calling a side panel to select the SD card have always worked, even without this module.
[Xposed Framework Modules] elphamale:
This method worked for me really well. Works in marshmallow and lollipop both.
[Xposed Framework Modules] extrahelper88:
tried it on Google Browser, i want to save the downloads in External SD Card but ut doesnt let me even though I alread activated it, enable it and reboot
[Xposed Framework Modules] anuarls:
I have rooted my Samsung J2 Prime SM-G532G :

1) First, i download and flash image firmware at http://www.androlite.com/2016/12/do...samsung-android-marshmallow-dan-lollipop.html (1.4 GB from googledrive for Android EN US or EN UK). if you use latest updated firmware, it will hangup or ask password - it happened to me - stuck 2 days like hell – suck Samsung. This firmware version October 2016.

Choose this file for flash using Odin : AP_G532GDXU1APJ7_CL9387420_QB11347255_REV00_user_low_ship_MULTI_CERT.tar.md5 (around 2.4 GB size)

2) Run root tool from ROOT-G532M.zip download at https://xdaforums.com/android/development/root-samsung-galaxy-j2-prime-g532m-t3523090

3) If you have rooted (successfully enter gui android), then install SuperSu apk for rooting permission. You may also install busybox apk for cmd line - maybe optional

4) Then install Marshmallow SD Fix - Root apk : https://play.google.com/store/apps/details?id=com.balamurugan.marshmallowsdfix (allow all apps to write to sd including built-in tool that you use to format sdcard)

5) Turn off you handphone and open casing. remove sdcard. then turn on again.

6) When entered gui android, try to put in sdcard into microsd slot. Then android will detect new sdcard and you must give root permission to format sd card - must do this step or repeated until detected (ask root permission). Then format the sdcard and pray to god to save your soul and your smartphone from this painful problem in using Samsung HP.

* be careful not to damage your hp during insert/remove sd card. You may turn off or on if not working.

7) It work on my Samsung J2 Prime SM-G532G. Then all folder tool such as FX apk can access sd card.

I have skipped on Odin tutorial detail for 2.4 gb firmware flash - you may google it.

If you found I have missing steps in this short tutorial, please share and save others from this Samsung DRM sucking hell – void warranty for root. God bless Trump, USA, World. Tq.

M. Anuar Mat Isa, PhD

anuarlsATyahoo.com
[Xposed Framework Modules] thalesbraga:
[MENTION=4040932]balamu96m[/MENTION], the for this mod. Any way to get an update for nougat? Xposed still not working só Maybe through magisk?
[Xposed Framework Modules] Azzameano:
thanks man it works with my lenovo tab 2 a7-30hc

my custom Rom cm 13 marshmallow :good:
[Xposed Framework Modules] ka81:
Author, can you implement such a function: by default any new installed app (added to the list in your module) would be with fix turned on??
[Xposed Framework Modules] ThemGo:
Maybe you try module named XInternalSD instead.

In there only necessary to specify path to external sd (2nd row) and to tick 2nd last row ("voller Zugriff auf externe SD Karte").
[Xposed Framework Modules] leoanirudh:
i tried it on es file explorer but i'm still not able to copy or delete anything in sd card
[Xposed Framework Modules] Sunny Ahmed:
maga really works in sd to internal increaiser likw engneering mood>>>

\
[Xposed Framework Modules] louiscar:
Simply doesn't work on Samsungs. I have a Tab s 8.4 and Note 4 and titanium backup doesn't get access to sd card on either device.

I'm guessing something to do with the fact that we had to use a modified version of the xposed framework to get over Samsungs ART changes.

Oh well have to think again I guess.
[Xposed Framework Modules] 白い熊:
[MENTION=4040932]balamu96m[/MENTION], could you share with me the source of the script to dynamically edit /data/system/packages.xml

I'd like to add this possibility to Magisk Magic Folder Binder, came up with a dumb sed script that allows me to edit the “perms” section per app, however since it first has to convert the whole file to one line, then run the sed substitution, and then reconvert it back, it's too heavy and doesn't run on the phone.

You've obviously done it elegantly, so that you edit it to a temp file and then bindmount on boot. Can you share the source for the dynamic edit? I assume it's an awk, or a perl script. Or did you do it in C or Java?
[Xposed Framework Modules] balamu96m:
Hello!

I initially tried modifying the packages.xml and it needs a reboot for changes to take effect.

Unfortunately, packages.xml gets overwritten during every boot and thus all those changes are lost. That's where Xposed comes into play.

Xposed removes the need to modify packages.xml file.

Using Xposed I hooked up the method "grantPermissionsLPw()" in the class "com.android.server.pm.PackageManagerService". This is the method that gets executed during boot and gets executed for each installed package during boot.

So when this method gets called for a package that the user has selected in my app, I grant the necessary permission for this app in "afterHookedMethod()" (using Xposed) and this gets reflected in the packages.xml that gets created eventually. (Inspired from GravityBox Xposed module)

The app's source is here:

https://github.com/balamurugan15/Marshmallow_SD_fix

com.android.server.pm.PackageManagerService in Google source for reference.

I thought of looking into making Magisk modules but didn't find time. I dunno if it's as powerful as Xposed to intercept function calls. Let me know if that's possible.

PS: If you're trying to edit xml files in app, you can use DocumentBuilder class to parse it into a Document object which can be easily modified/edited.

Cheers.
[Xposed Framework Modules] 白い熊:
Magisk cannot intercept function calls - it's all bash, mostly bindmounting stuff.

I'm engaged in improving https://xdaforums.com/apps/magisk/module-magic-folder-binder-t3621814

That's why I thought of it the other way - calls can't be intercepted, but if a list of app names is provided, early on during boot the /data/system/packages.xml file can be dynamically edited and the “perms” addition added for each file from the list - it's to be seen if the system would then read the xml and accept that these apps have the permission to access the card.

So I need to come up with a bash script to dynamically edit the xml and then bindmount it over the original xml.
[Xposed Framework Modules] 白い熊:
So /data/system/packages.xml is recreated on boot, right? So remounting later might not work, as the system will not see it - or I will have to kill SystemUI to make it reread the file?
[Xposed Framework Modules] 白い熊:
[MENTION=4040932]balamu96m[/MENTION], are you sure the module works correctly once you disable an app's SD access? I've noticed the added permissions line persists in the packages.xml file after reboot, even though I've disabled the app in the module.

This shouldn't be. Or is it working with you and there is a problem with my setup?
[Xposed Framework Modules] hobie99:
Nougat 7.1.x support ??
[Xposed Framework Modules] b8drf:
Doesn't work for me on Xperia Z3C Tablet SGP621. Rooted stock MM 6.0.1.

Tested both FX Explorer and Titanium Backup neither can write to SD card.
[Xposed Framework Modules] Conan179:
Works very fine on my Samsung S7 witch Android 7.0 and Xposed v88.
[Xposed Framework Modules] balamu96m:
The app seems to be working fine for Nougat too. Let me know if causes an issue.

Anyway I'll see if changes have to be made and release a new version coz the name can cause doubts for Nougat users.
[Xposed Framework Modules] ^I'm_With_Stupid:
Something I think people would enjoy would be enabling fast scroll.
[Xposed Framework Modules] VigneshS007:
Not working in 7.1.2 bro... Try to release a new version bro.
[Xposed Framework Modules] DigiR00tz:
Yea, I've tried as well and can't seem to get this or any other sd fix to work on nougat. Will keep checking back, hopefully can get it to work. again.
[Xposed Framework Modules] Mikee19:
I've been wanting to put this here for months since i first tired this mod out, i was on marshmallow at the time on a Chinese makeof phone, and was trying hard to get it to work! I simply couldn't, no matter what i tried at that time !

However since i was using the systemless xposed with magisk i thought of trying a magisk module to set selinux as permissive rather than enforcing before xposed itself is loaded up, and then this module worked a treat! Trying to set selinux as permissive via an app after booting wasn't successful in this regard !

Now I'm on nougat with the LG v20 and tested this module out again after setting selinux as permissive with that magisk module and it again worked! I honestly believe that that is the simple fix for a lot of people who complained about various issues with this module. Here is the magisk module:

https://xdaforums.com/apps/magisk/module-magisk-selinux-permissive-script-t3577549
[Xposed Framework Modules] Alfa2205:
Whats the difference between this module and XInternalSD?
[Xposed Framework Modules] Mikee19:
They both grant you access to the sd card, but xinternalsd is mainly to help change the path of your internal storage to that of your sd card so that apps with no ability to choose to save to it (e.g. Whatsapp) would be tricked to see it as your internal storage and save to it instead. This only grants writable access to the sd card. One module may work for your where the other one fails in this regard
[Xposed Framework Modules] Chamelleon:
Hi, it's not working on stock LG G6. Last time I tested this module also on stock 7.0, on Doogee S60 and it was working fine. On LG I can mark apps but it's useless because thay still can't get write access to SD card.
[Xposed Framework Modules] Mikee19:
Works perfectly for me on LG v20 nougat! It didn't work for me at first, but I used a magisk module. Do you use magisk for root or xposed? Even if you don't try installing magisk and using the following module, I believe it would work after that, the module sets selinux as permissive and it was the only way I got this module to work. Here's the link to it:

https://xdaforums.com/apps/magisk/module-magisk-selinux-permissive-script-t3577549
[Xposed Framework Modules] klantee:
Tried it on Samsung Galaxy S4-I9505 running Nougat 7.1.2 No joy at all!
[Xposed Framework Modules] Mikee19:
It works perfectly! It ALWAYS works! Just apply the fix!
[Xposed Framework Modules] unkash:
Dont works in my phone android 7.0. :(
[Xposed Framework Modules] Mikee19:
Pardon my asking... But did you try as well the magisk module fix? Unless selinux is permissive some phones can never write to sd card! Did you apply the fix given?
[Xposed Framework Modules] unkash:
I've downloader selinux fix Zip bit i dont know if i have to flash It by recovery or magisk.

By magisk i get this error

"- Copying zip to temp directory

- Installing magisk-permissive-script_v1.1.zip

- Mounting /system, /vendor, /data, /cache

Archive: /data/user/0/com.topjohnwu.magisk/cache/install.zip

creating: common/

inflating: common/post-fs-data.sh

inflating: config.sh

inflating: module.prop

*****************************************

Magisk SELinux Permissive Script

*****************************************

******************************

Powered by Magisk (@topjohnwu)

******************************

- Found /data/magisk_merge.img

- Mounting /data/magisk_merge.img to /dev/magisk_merge

! /data/magisk_merge.img mount failed...

Failed!

! Installation failed"
[Xposed Framework Modules] Mikee19:
try flashing it through recovery then. If that doesn't work then try updating magisk manager
[Xposed Framework Modules] unkash:
I've tried flash it by recovery but get error
[Xposed Framework Modules] Mikee19:
Do you per chance use magisk for root? And can you generally install modules? Have you found a fix for this yet?

I've had to temporarily switch to SuperSu from Magisk tho, so I had to find a way to set selinux permissive in order to get this module to work without Magisk. I did this by configuring SuperSu to install in selinux permissive. If anyone is using SuperSu for root instead of Magisk, he can try this too and the module would work:

Flash SuperSu config in twrp from here: https://xdaforums.com/apps/supersu/2017-08-13-supersu-config-t3655754 and accept the defaults, but make sure to select selinux permissive in the options when you see it. And immediately reflash SuperSu again (whilst still in recovery, without yet booting to system). Now the module should work... Worked for me!
[Xposed Framework Modules] unkash:
I use magisk for root and i always get same error when try install some module.
[Xposed Framework Modules] Artieza:
Doesn't work on 7.1 Lineage.

java.io.FileNotFoundException: /data/user/0/com.balamurugan.marshmallowsdfix/files/NewFile.xml (Permission denied)

12-17 21:36:04.182 E/Xposed ( 1260):	at java.io.FileInputStream.open(Native Method)

12-17 21:36:04.182 E/Xposed ( 1260):	at java.io.FileInputStream.<init>(FileInputStream.java:146)

12-17 21:36:04.182 E/Xposed ( 1260):	at java.io.FileInputStream.<init>(FileInputStream.java:99)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.balamurugan.marshmallowsdfix.MediaGranter$1.afterHookedMethod(MediaGranter.java:66)

12-17 21:36:04.182 E/Xposed ( 1260):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:374)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.pm.PackageManagerService.grantPermissionsLPw(<Xposed>)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.pm.PackageManagerService.updatePermissionsLPw(PackageManagerService.java:10092)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:2630)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:2014)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.SystemServer.startBootstrapServices(SystemServer.java:506)

12-17 21:36:04.182 E/Xposed ( 1260):	at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)

12-17 21:36:04.182 E/Xposed ( 1260):	at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:360)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.SystemServer.startBootstrapServices(<Xposed>)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.SystemServer.run(SystemServer.java:366)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.server.SystemServer.main(SystemServer.java:237)

12-17 21:36:04.182 E/Xposed ( 1260):	at java.lang.reflect.Method.invoke(Native Method)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)

12-17 21:36:04.182 E/Xposed ( 1260):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)

12-17 21:36:04.182 E/Xposed ( 1260):	at de.robv.android.xposed.XposedBridge.main
[Xposed Framework Modules] Mikee19:
If you will read just a few posts before yours, you will see that when it doesn't work you'll have to do something about selinux, and you'll also see how! It will surely work after that! It always works!

---------- Post added at 07:02 AM ---------- Previous post was at 06:57 AM ----------

Then that's an issue with your Magisk installation! looks like you'll have to reflash Magisk, maybe with the latest version, and update magisk manager
[Xposed Framework Modules] Artieza:
If creator will be more skilled, he could use /data/system/ dir at the end. ? I can create much better module with SELinux support and search in app chooser within few days...
[Xposed Framework Modules] Mikee19:
In his defense it works for some just the way it is
[Xposed Framework Modules] Artieza:
Forget. It was implemented in Midnight Murmur module few hours ago. No ads. Works with SELinux Enforcing. ?
[Xposed Framework Modules] Mikee19:
:laugh:

---------- Post added at 11:48 PM ---------- Previous post was at 11:26 PM ----------

I cannot find the module?
[Xposed Framework Modules] papasmurf879:
You think there would be a select all button.
[Xposed Framework Modules] Artieza:
Are you sure that you tried to search it in Google? It isn't distributed through Google Play Store or Xposed Repository.
[Xposed Framework Modules] Mikee19:
Midnight Murmur 0.5.5 alpha didn't work for sd card access at all over here!
[Xposed Framework Modules] Artieza:
Try to reboot device after settings change. Successfully tested with Snap Camera. Btw, it isn't a right place to debug other app.
[Xposed Framework Modules] papasmurf879:
Post a link 2 that module I can't find it. Midnight murmur