yashsingh1/xdaforums huggingface dataset:
[Android Software Development] MisterKanister:
Flashing the file made my Note 4 N910F on Alexndr v3.31 (MM 6.0.1) not start up any more. Was stuck for 35min now at Boot (flashing Samsung Logo), getting hot and hotter (not in a sexy way).

So to bring my device to life again, I

- reflashed a TWRP system.img backup, but the boot problem persisted afterwards

- So I additionally booted into recovery & replaced packages.xml by the file starting with packages.xml-RW-*, cleaned cache and Dalvik,

and now it's booting again... *phew*

Never ever try this without an actual backup is what I'm saying!
[Android Software Development] FuTChY:
You can click save target as or from File>Save file and then remove the extension.

Please note that this was only tested on Note 2
[Android Software Development] situ1962:
But what should be the exact name of the file?
[Android Software Development] TechNova:
Worked with no issues on ZenFone 5 T00J with CM13.1, RR marshmallow, and the stock 5.0 rom...
[Android Software Development] :No-Frost::
I have a couple of questions...

First of all, the file must be copied to the init.d folder located in the etc folder ?

Second... Do we need to reboot the device after app updates?

Thanks in advance.
[Android Software Development] FuTChY:
11FixPerms

---------- Post added at 03:23 PM ---------- Previous post was at 03:20 PM ----------

Yes for both questions.

reboot is required re-add the write permission again. please note that i only tested it on Note 2 not xperia series.

I wish someone would create an xposed module to do that with every install.
[Android Software Development] J0kker:
Working too on oneplus x running [MENTION=237269]sultan[/MENTION] 's custom cm13.

Thanks !
[Android Software Development] dadaz007:
For me on sultan rom, with the init.d script I have a bootloop.

Works with flashable zip.

Envoyé de mon ONE E1003 en utilisant Tapatalk
[Android Software Development] vhick:
This one work. Better implementation in Redmi 1s running Dirty Unicorns 6.0.1.
[Android Software Development] tonysunshine:
v1.9b is working great on my Xperia Z3TC running stock .570 MM. Can download torrents to SD card directly again. Thanks!
[Android Software Development] :No-Frost::
Tested and didn't work on Sony Xperia Z3 D6653 :(
[Android Software Development] J0kker:
Did you change the permissions ?

The file needs to be able to be run.

On cm 13 its working for me, tried with an app, without the file it says it cannot write on external storage when I select a folder on sd, and with it (and after a reboot) it's working.
[Android Software Development] FuTChY:
Is your packages.xml file location /data/system ?

Make sure you give the file the correct permissions and make sure that busybox is installed (install it from market).
[Android Software Development] :No-Frost::
Packages file is there and I give the permissions according to the ones posted.

I do have busy box but I will try with the one in the market.
[Android Software Development] FuTChY:
Please make a nandroid backup before trying anything related to system.
[Android Software Development] J0kker:
I too had busybox installed, but not in the right location, mine was /su/xbin.

After installing busybox in /system/xbin (it will clear previous installation, don't worry) it works for me.
[Android Software Development] :No-Frost::
I've updated Busy Box an now it seems to be working :)
[Android Software Development] dadaz007:
If some one is interested, I've modified a zip that flash busybox and add to it the init.d script. So you can flash it after each ROM update.

[MENTION=6935794]rufus.wilson[/MENTION] if you're not agree that I post it there, tell me and I'll remove it.
[Android Software Development] Criton30:
For info, the latest zip working great with rooted (and custom recovery) Galaxy S7 EDGE (sm-g935f), thanks for your work :good:
[Android Software Development] rufus.wilson:
Thanks for the improvement. I'll add the new steps to the description.
[Android Software Development] rufus.wilson:
Thanks, I have integrated your ideas into the zip. There is a unique solution for KK up to MM so far.
[Android Software Development] BustedFly:
New update ends with error 2 [MENTION=1782725]install[/MENTION].

HTC one M8 Aicp from 18.05.2016
[Android Software Development] vhick:
Same here. v2.1b gives me error 2 also.
[Android Software Development] rocker00:
same here, v2.1 installation error sony xperia z2.
[Android Software Development] Andycar:
also v2.1 installation error = 2 on my Note 4 N910G 6.0.1 TouchWiz-based ROM

EDIT: TWRP 3.0.2.0
[Android Software Development] DTS_ManiaC:
Since everyone uses different recoveries, reporters should contain recovery information with firmware details because some TWRP versions are problematic with this fix. For example, older 1.9b version didn't work with my stock Note 4 (N910C variant) with TWRP 3.0.2.0. I will try newer version later and report again.
[Android Software Development] tomaasz:
Test by FlashFire

Wysłane z mojego SM-G900F przy użyciu Tapatalka
[Android Software Development] xfire:
The same error also to me +1 :confused:
[Android Software Development] venomxob:
I can't install the lastest fix. There's a problem with binaries in zip file according to the TEAMWIN recovery 2.8.7.0. Xperia z2 D6503 23.5.A.0.570
[Android Software Development] stonew5082:
don't quote the OP for God's sake man. [MENTION=7059612]venomxob[/MENTION]
[Android Software Development] venomxob:
Sorry. My bad.
[Android Software Development] karrouma:
Any effect with root.

My phone still rooted or i lose root???

I have unlocked bl z5 dual
[Android Software Development] dadda:
Do I delete the package.xml one once I change it to package.xml-RW-?
[Android Software Development] Luckzzz:
v2.1b gives me error 2 also. Moto G 3rd Gen (CM13 6.0.1) here!!!!

What should I do now? My device is not compatible? I tried edit the packages.xml file before and putting the string on the right place and giving the original permissions to the file it won't boot. So I think this MM **** is over protected hahaha.. :laugh:

Maybe I will edit AGAIN manually with the <group gid="media_rw" /> in the beggining of the file that I forgot before..
[Android Software Development] dadaz007:
No effect with root. This zip doesn't root or unroot nor block or unblock.

Envoyé de mon ONE E1003 en utilisant Tapatalk
[Android Software Development] Tecalote:
Hello :) I tried yesterday to flash it, but I have got an error-message through TWRP: 2 errors and it could not be installed. I have a Huawei p8 with marshmallow and a working Xposed Framework. It would be great, if your fix can also work on my phone, maybe with future version of your fix. I find it excellent, to develope such tools like yours. Thank you
[Android Software Development] karrouma:
Z5 dual MM

I installed via recevery in my z5 dual MM

It install successfully but no change in writing with sd all app have the same issue
[Android Software Development] silentvisitor:
I wonder if it compromises security model of Marshmallow (Lollipop too). Any insights [MENTION=6935794]rufus.wilson[/MENTION]

Btw are you developer of Rufus ?
[Android Software Development] dadaz007:
Works well for me on CM13. Your ROM must be compatible with init.d script. for this solution. If not, use rufus.wilson zip.
[Android Software Development] :No-Frost::
Can someone provide the link to download version 1.99b???

Latest version seems to update Busybox which removes the recovery from my device.

Thanks in advance :)
[Android Software Development] edyreena:
2.1b error flashing on twrp..1.9b already good

---------- Post added at 09:58 PM ---------- Previous post was at 09:57 PM ----------

http://xdaforums.com/devdb/project/dl/?id=18224
[Android Software Development] Luix333:
I'm getting this error message:

Updater process ended with ERROR: 2

Error installing zip file'external_sd/ExtSD_Fix_rw-signed-v2.1b.zip

I'm using twrp on a Shield Tablet LTE (android 6.0.1) with root access and xposed 84 enabled

Thank you for your support
[Android Software Development] ggelo10:
error 2

same error on my i9300 MM r30
[Android Software Development] Tecalote:
This was also the error I got... Huawei p8 marshmallow...
[Android Software Development] Tanner1294:
Same here. OnePlus X - CM13 - TWRP 3.x
[Android Software Development] aventurer:
SM-G900T (T-Mobile Galaxy S5):

Just clean flashed CM13 Beta (klte).

TWRP 3.0.2.1

V1.9b - Works perfectly fine.

V2.1b - Gives an error. (Will update what it is, if I end up flashing again) - I'm pretty sure it was Error 2.

You should keep the V1.9b download in the first page as it could still be extremely useful for people.

Thank you so much for making this .zip. This fix has been a savior for using the latest version of Android.
[Android Software Development] amirulzainal10:
error 2 on lenovo k3 note cm12.1
[Android Software Development] nkomp18:
Tried to flash this on my Oppo Find 7 and got:

Error executing updater binary in zip...

Error flashing Zip

Failed.

Before the fail it did this:

Detecting current API version - API v23 detected
[Android Software Development] UppGr4de:
SM-G901F, 6.0.1 Mokee ROM (AOSP/CM)

Tried to flash via TWRP but failed with "ERROR:2"
[Android Software Development] cstk2016:
You should warn that the user shall backup the data partition. After this, all app data are gone.
[Android Software Development] dadda:
I have a question, is it possible to make a flashable zip to revert back to install the new updated ones in the future.
[Android Software Development] Navdeep.RG:
Tested on Moto E XT1022 running CM13 6.0.1 20160504 nightly. Flash was successful but phone stuck on boot animation.
[Android Software Development] :No-Frost::
I didn't experienced that issue
[Android Software Development] Lupin91:
I can not even install it, error:

(status 2)

E: installation aborted

i'm G900F , using philz touch 6 try whit stock rom and other custom rom
[Android Software Development] ahac85:
1.9b Works very well on htc 10, do we have to keep flashing mod if we install additional apps?
[Android Software Development] ahac85:
If i use this zip, will i need to flash 1,9b first or will this one mod do the job. Do we next to reboot phone after apps update from play store
[Android Software Development] dadaz007:
No you don't have to flash v1.9b before, but you must have a ROM with init.d support. And yes you have to restart the phone after app update.
[Android Software Development] nkomp18:
Tried to flash 2.1b on my Oppo Find 7 (X9007) and it failed.

I then tried 1.9 and it seems to work, but then my phone would no longer start so I had to do a nandroid restore.
[Android Software Development] medohatem:
not working here HTC desire 820 Android 6.0.1
[Android Software Development] Athanatos81:
S5 Neo (SM-G903F) at Marshmallow 6.0.1 Stock and rooted; TWRP 3.0.2.0

v1.9b has no error, but it doesn't change anything

v2.1b gives Error 2 while flashing --> no effort
[Android Software Development] pleasetouchmenot:
Why? Cm12.1 JY-s3 5.1 1

Sent from my HANDS

---------- Post added at 08:31 PM ---------- Previous post was at 08:19 PM ----------

On 1.98b, working flawlessly

Sent from my HANDS
[Android Software Development] Killer7Mod:
MOTO E 2015 did not work. probably not to Mount the system correctly.

mount -o remount, /dev/block/bootdevice/by-name/system /system
[Android Software Development] asheg:
Galaxy s5 international unlocked G900F

the newest Marshmalow 6.0.1 France firmware

failed(
[Android Software Development] dhruubo:
Installation failed on xperia m...rom cm13 Resurrection remix v 5.6.8
[Android Software Development] DarkSJ1998:
V1.9B didn't work for me on my Yureka Plus (tomato) with RR 5.6.8... Still wasn't able to get write access to SD Card :(
[Android Software Development] adrenalin100:
samsung s5 exynos - failed
[Android Software Development] Criton30:
installation failed on galaxy s7 edge :crying:
[Android Software Development] olinojephanko:
k we got it m8s, installation of v2.1b fails on various devices with various recoveries
[Android Software Development] galaxyuser15:
g900h failed on 6.0.1
[Android Software Development] crimsonSnow:
Not Working for SM-N910U

Not Working for SM-N910U
[Android Software Development] DarkSJ1998:
Any other workaround dev? Coz I've been away from M only coz of this thing [emoji24]

Device: YU Yureka Plus (tomato)

ROM Tested on: RR 5.6.8
[Android Software Development] lexxm6:
1.9 installing but not working

2.0 can't install error 2

2.1 can't install error 2

Z5c stock MM rom .185 (6.0)
[Android Software Development] Criton30:
there is no development? because the OP since 19.05.2016 was not online...
[Android Software Development] Mayank7795:
Can't flash v2.1b.

Saying "corrupt zip file". Probably because it isn't able to find the ".sh" file that the zip file needs to push to init.d folder. I checked the code and seeems like it is incomplete for Marshmallow builds. Just saying, I can be wrong.
[Android Software Development] pleasetouchmenot:
Mine is fully working now. But to fully set the app fully write in sdcard, i need to first move the app manually on sdcard and with the help of xinternal sd then reboot. Then it its fully working. 2.1b is not working for me showing error on twrp. I'm using 1.9b cm12.1 5.1.1 rom. Please update this tweak into next whole level for best new experience. All the time i'm having trouble that i need to reflash my rom just to be cleaned and refresh my rom. Thankyou for your hardwork.

Sent from my HANDS
[Android Software Development] vhick:
For some have a problem flashing v2.1b, you can try any of these.

Manual copying of script in init.d (the first one) always work on me.

Just back read for the attached file.

OctOS 6.0.1 rom in redmi 1s.
[Android Software Development] pleasetouchmenot:
What will i do if i want to replace mine into latest version? I'm using 1.9b

Sent from my HANDS
[Android Software Development] :No-Frost::
1.9b is almost the same as 2.1, the only difference is that 2.1 was meant to be one time flash and after that, just reboot the device after apps updates, wile 1.9b must be flashed after apps updates.
[Android Software Development] pleasetouchmenot:
Oh. So you mean i need to flash it again after an app or every app updates?

Sent from my HANDS
[Android Software Development] :No-Frost::
1.9b yes... If you manage to flash version 2.1 you will only need a reboot after apps updates, but it's not working for everyone
[Android Software Development] pleasetouchmenot:
Thanks for enlightening me. Facebook, messenger and spotify got an update recently. I will flash it again later ?

Sent from my HANDS
[Android Software Development] pleasetouchmenot:
Btw 2.1b is not working on me. Got an error on flashing. But how to if i cleanflash my rom and i insert it on my phone? What file do i need to put on init.d? Because the file inside the zip is busybox only.

Sent from my HANDS
[Android Software Development] vhick:
As I qouted, you will find the file in the qouted post. Just back read.

Cheers.
[Android Software Development] pleasetouchmenot:
Thankyou ?

Sent from my HANDS
[Android Software Development] bribin4u:
Thankyou so much

Worked for my friend :)
[Android Software Development] WILMANS2M:
Me too

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software Development] pleasetouchmenot:
Is it okay? I'm using 1.9b

Sent from my HANDS
[Android Software Development] FuTChY:
I think that should be fixed. The script creates a new backup with each reboot.
[Android Software Development] pleasetouchmenot:
Is it okay to delete the first backups that had been created? Btw they said in 1.9b, on every app updates, i need to flash again the script.

Sent from my HANDS
[Android Software Development] FuTChY:
As for the backups, you can copy the first backup on your SD and remove all backups.

As for reflashig, I don't follow the thread messages since sometime, instead i'm using a script i have already modified but I extracted it from the fix provided here. In general I believe that the fix works with every boot, which means if you updated an app or many apps, you just want to reboot your device to re-add the permissions.
[Android Software Development] pleasetouchmenot:
Oh. I see. So the first back up is the most important and it's okay to remove other backups? Can you please gave me your modified script? So i don't need to reflash the script on every app updates. I will try to test it. I'm on cm12.1 5.1.1.

Sent from my HANDS
[Android Software Development] FuTChY:
The first backup is the pure one, that has been flashed with the fresh installation of the rom without modification.

Please have a look at this post:

http://xdaforums.com/showpost.php?p=66875227&postcount=232
[Android Software Development] pleasetouchmenot:
Thanks man. ??

Sent from my HANDS

---------- Post added at 02:08 PM ---------- Previous post was at 02:07 PM ----------

Can i use it even i already flashed 1.9b?

Sent from my HANDS
[Android Software Development] FuTChY:
Remove the script created in the init.d folder first. and then add the new file with the correct permissions.

Remember to backup your rom first.
[Android Software Development] pleasetouchmenot:
Thankyou. Will try it later.

Sent from my HANDS
[Android Software Development] FuTChY:
You're welcome and Good luck.
[Android Software Development] pleasetouchmenot:
Hope that this fix was continuously updating for future uses because for me, this fix has a lot to do than other tweaks. Because of this new releasing roms is that they starve every internal storage so this fix will much usable and very helpful. I hope that [MENTION=6935794]rufus.wilson[/MENTION] will continue this fix and also thanks to you man.

Sent from my HANDS
[Android Software Development] FuTChY:
Yeah sure I believe that rufus.wilson will continue enhancing that fix. I wish I could see it suitable for all devices.
[Android Software Development] pleasetouchmenot:
Yeah i hope so. I wish it would be suitable on any platforms even on higher android versions. Much good if this will be set as an xposed module or as like what you did, an init.d script.

Sent from my HANDS
[Android Software Development] FuTChY:
An exposed module would be great for sure.
[Android Software Development] pleasetouchmenot:
Yeah. Will wait for that ?

Sent from my HANDS
[Android Software Development] kushal.arora16:
Is it working on Note 4 N910G rooted stock Marshmallow 6.0.1..??

Plzz someone confirm...
[Android Software Development] :No-Frost::
I think best option is to create a backup and try
[Android Software Development] kushal.arora16:
Okkkk I will..

One more thing how would I know if its working or not..?
[Android Software Development] :No-Frost::
In my case I use this fix in order to enable an xposed module called Xinternalsd, which allows me to move the whatsapp folder over to the external sd.

Not sure how to exactly check if it worked, but try moving files to the external sd with a file manager.
[Android Software Development] venomxob:
Download OPERA browser and try to download something. It'll ask about the directory to save the file and just try to save the file on the sd card.
[Android Software Development] pleasetouchmenot:
I also used xinternalsd to confirm if it's working. I moved facebook, messenger and other apps that create a folder or directory on internal storage. But after the set up and all the user apps that had been manually moved to the sdcard, mine is fully working now. All the directory that is used to be in internal storage just went to sdcard storage.

Sent from my HANDS
[Android Software Development] daniel20bw:
Doesn't work with Galaxy S5 G900F with Cyanogenmod 13 nightly.

When I try too flash it says there is an error :(

Tried flashing via TWRP 3.0
[Android Software Development] nkomp18:
Are there alternative tools to try for all of us who couldn't get this to work?
[Android Software Development] :No-Frost::
Just to confirm, this is a shell / bash script, right?

I want to try to modify the 1.9b version in order to prevent the creation of multiple backup files.
[Android Software Development] batam:
Same here, I have an error 2 while trying to flash the fix with TWRP on CM13 Oneplus X.

Thanks, all.
[Android Software Development] batam:
Hi

Just giving myself a first answer and hope it can help others. This fix in version 1.9b is working with Oneplus X CM13 and TWRP. Later versions do not flash, they give an ERROR : 2 message.

Only caveat is that you have to flash the ZIP everytime you install an app that requires write permission to the SD card.

Xposed module XinternalSD is working too.
[Android Software Development] bnwg:
Thanks for the answer. I have the same error on 6.0.1 when flashing the latest version.

Hope it could be fixed soon.
[Android Software Development] mrpascal:
Thanks mate :good:
[Android Software Development] pleasetouchmenot:
What directory can i find the packages.xml? Is it different from platform.xml?

Sent from my HANDS
[Android Software Development] FuTChY:
its supposed to be in /data/system

and yes this is so different from platform.xml
[Android Software Development] batam:
I would have tried to find a solution but I can't find the meaning of the "Error : 2" message.

If someone has an idea...
[Android Software Development] pleasetouchmenot:
Deleted
[Android Software Development] dimm0k:
this is wonderful! instead of doing it for all of the apps, is it even possible/worth it to have the script only apply this to specific apps?
[Android Software Development] smw6230:
This SDCard fix V1.9b works on an LG G3 (D851) running Fulmics 5.2.

I had a little problem figuring everything out but after some tinkering it worked. Honestly I did so much tinkering that I forgot my steps, but as best as I can recall.

I added the xposed XinternalSD module (per a post here). This might not have been necessary but I also installed Universal init.d from the playstore for init.d support w/fulmics, pasted the 11FixPermsMob file (page 24), changed the permissions, then pasted that file into the system init.d folder that universal init.d created. After flashing V1.9b I did a wipe then reboot. Everything took. Oh I had to redo the permissions and settings for a couple of apps but I could write to my external card (Smart Audiobook Player). Its been about 3 days now and everything remains rock solid even after several reboots and shutdowns.

Thanks so much for the fix.
[Android Software Development] Fragin 11:
So you pasted init.d script to system/etc/init.d and then flashed v1.9b?

LG G3

ROM:Fulmics 5.2

Kernel: Xceed 4h

Recovery: TWRP 3.0.2-0
[Android Software Development] petbede:
Please, can someone share their SDCard fix v1.9b here, thanks

Don't worry, I've found it

---------- Post added at 08:45 AM ---------- Previous post was at 07:51 AM ----------

Please, what is the permission you change in the "11FixPermsMob" file? Is it 777 or 660 or 600? Thanks
[Android Software Development] FuTChY:
Thats not gonna be easy at all. The script uses search and replace technique so its not easy to exclude some apps or include them as you always have to edit it manually everytime.

I wish someone could come up with an app or an exposed module as a replacement for that script.
[Android Software Development] dadda:
I have a question, would it be possible to create a uninstaller zip file to remove the current SDcard fix to install the new SDcard fix.
[Android Software Development] FuTChY:
please clarify what do you mean by the new fix?

Which one did you install and which one do you want to remove?
[Android Software Development] dadda:
I have version 1.9 installed and followed the steps to revert back from the OP but failed and can't get rid of Api 23 being detected. I have 1.9 installed and I want to remove 1.9 so I can install either 2.0 or 2.1.
[Android Software Development] krogoth:
I have noticed, that sometimes after restart with 1.9 flashed, 1-3 apps are disaapering... Like self uninstalling.
[Android Software Development] madhero:
I have the exact same problem. Apps keep uninstalling themselves. And randomly. After every reboot, some apps uninstalled themselves. I even had once SuperSU getting uninstalled, google play services, and even google play store. Wish I could uninstall this, but I do not have the original files backed up. Dang...