yashsingh1/xdaforums huggingface dataset:
[Android Software Development] M94Khaled:
With fix2.3, you just need to reboot your phone.
[Android Software Development] Tecalote:
Hello, could you please look for me in the init.d folder, which permissions the file "99_ExtSD_fix" exactly has?
[Android Software Development] DarkSJ1998:
-rwxr-xr-x
[Android Software Development] Tecalote:
Okay 755, thank you
[Android Software Development] fusionstream:
Doesn't work on Galaxy S7 Edge SM-G935FD 6.0.1 Rooted Xposed
[Android Software Development] hgaaditya:
with the 2.3 , there is no file in the init.d folder. Please help
[Android Software Development] mattiadj:
This is the log of latest version but nothibg in init.d folder
[Android Software Development] aadi50:
Same here..... V2.3 flash successful .... but nothing in init.d... Nothing means the script file mentioned in abv posts...

Using Asus Zenfone 2 Laser Ze550kl with RR 5.6.9 and Xposed v85
[Android Software Development] M94Khaled:
[MENTION=6935794]rufus.wilson[/MENTION] You need to check this out, the script file isn't placed into \init.d during flashing..
[Android Software Development] Faraco80:
My init.d folder after flash...
[Android Software Development] Tecalote:
I think it is because of the different name, the file for the init.d folder is called inside the zip 99_ExtSD_fix.sh but the flashingscript (see screenshot above) named it 99_ExtSD_fix_23.sh Maybe that's why it cannot placed.
[Android Software Development] M94Khaled:
You are right, good point. [emoji108]
[Android Software Development] Tecalote:
Packages.xml with 0 Byte

Huawei p8 - flashing 2.3b successful, but the file was not in the init.d folder. I copied the 99_ExtSD_fix.sh from the zip to the init.d folder, set the permission to 0755 and rebooted my phone. No bootloop. I looked in data/system/ and there is a packages.rw...xml.bak (the renamed original one) and a new packages.xml but this has 0 byte and nothing inside. I am wondering, that my phone boot.
[Android Software Development] CHE1:
thank you, after restoring the file my tablet doesn´t boot again, it keeps trying over and over but nothing
[Android Software Development] Tecalote:
[MENTION=6935794]rufus.wilson[/MENTION] - the same with me, the new packages.xml has 0 Byte, so I deleted the file and renamed the .bak file to packages.xml - after the phone did not boot. But it was just a test - I restored my twrp backup of all, system, data, cache and boot..

---------- Post added at 03:41 AM ---------- Previous post was at 03:23 AM ----------

I tried it today, and it worked on my Huawei p8 phone, whitout problems. The original packages.xml file of mine, renamed with your init.d script to packages.xml.bak has 1,25 mb and the new created file has 1.29 mb, it includes your added lines of the code from rufus.wilson. Next days I test the apps doing of the modified permissions on the external SD. Looking what is different than before...

---------- Post added at 03:46 AM ---------- Previous post was at 03:41 AM ----------

See here: http://xdaforums.com/showpost.php?p=66875227&postcount=232
[Android Software Development] aestivalisakito:
Edit mod please remove
[Android Software Development] Vishal Vignesh:
Guys i am using android marshmallow in resurrection remix ROM on my note 2 gtn7100.

Please clarify my doubts.

What exactly does this zip file do on flashing it. (I can understand that for lollipop and KitKat it provides SD card permission, but what about marshmallow)

Is it still in beta build or will it work for sure

Thank you in advance
[Android Software Development] rufus.wilson:
It is very much in beta for Marshmallow.

v1.9b is the latest proved to work for sure but you will have to flash it at each time an app is installed or updated. The later versions are trying to add a way to automate this process at boot time.

Hope it makes sense.
[Android Software Development] rufus.wilson:
Hi Everybody,

First of all, thank you all for your help to test and debug this thing. Travelling for work at the moment, I can't be as active as I would like. Thanks for your patience.

I have released a new version v2.4b which should be working as a couple of bugs were found thanks to you. The incremental steps that should be checked in order:

Non interrupted flash process

Presence of 99_ExtSD_fix_v23.sh file in init.d folder (supported locations are /system/etc/init.d and /etc/init.d)

99_ExtSD_fix_v23.sh file ownership and permissions same as others scripts

If busybox was not available before:

Presence of /system/xbin/busybox

/system/xbin/busybox ownership and permissions same as other tools

Presence of /data/ExtSD_Fix_RW_initd.log

Errors in /data/ExtSD_Fix_RW_initd.log

Thanks again for your help,

RW
[Android Software Development] Vishal Vignesh:
Hey, i took a full backup and flash the latest zip. Now how is it any use, can I move apps to SD card or can I only save app data in SD card
[Android Software Development] rufus.wilson:
I am not sure about this sentence "now how is it any use". Could you report according to my last post?

Regarding your query, this should allow apps to write on SD cards outside of their data folder.
[Android Software Development] aadi50:
I flashed v2.4b on ky ASUS ZOOLD.... on RR 5.6.9 using twrp 3.0.2

*Flashing successful.. As in screenshot

* script file pushed to init.d folder with permission 755 while others hv permission 777 on my phone.

* busybox installed in /system/xbin/ with permission 755, others also have 755 - rwxr xr x

No log file in /data/ folder

No xml file changes.... Or. Bak file of todays date created....

And yes i flashed it over V1.9b... Without undoing it...
[Android Software Development] ggelo10:
make copy before install this zip

i installed it and i have 0byte packages.xml file in data/system

if someone broke system use this cwm/twrp explorer app and rename packages.bak to .xml

http://xdaforums.com/showthread.php?t=1646108&page=2

edit

initd script make package.xml 0byte lol

and make wrong permissions rwrw?
[Android Software Development] ankushkushal:
Means for each app I gotta flash it or once I install all apps, I flash it once after their installation and it works???m kindda confused
[Android Software Development] Vishal Vignesh:
Yes

NOT Sent from my GT-N7100 using the XDA-developers mobile app
[Android Software Development] mattiadj:
File is in init.d but not works. The only script which works is 1.9
[Android Software Development] Yudh:
Hey man i flashed the v2.3 the script was not placed in init.d folder as expected.

So i placed it and gave the proper permissions 0755 .

Rebooted and my phone again went into bootloop.

Now i want to test v2.4

But please provide a revert zip for marshmallow i am fedup of the bootloops.

I am currently on resurrection remix ROM 5.6.9 based on cm 13 r43

On my Samsung Galaxy note 2(GT-N7100).

✌
[Android Software Development] WILMANS2M:
Just a stupid question: Why not using su.d folder instead of init.d folder ? Thanks

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software Development] DarkSJ1998:
Thanks for the scripts first of all... and, if I understood correctly, this v2.4b is same as v2.3b but solves the init.d files issues.. right? BTW, will report back soon ;)
[Android Software Development] Vildanoff:
Installed on my Z3 Dual ExtSD Fix (v2.4b), lost all the data on a flash drive, well at least 2 days ago backup and data successfully restored. ExtSD Fix v1.9b works perfectly on MoonWalker Amaluna v3.5.0, but it is necessary each time to stitch a patch after you install new applications
[Android Software Development] aadi50:
v1.9 ... Install all apps and then flash it... It will work.... But U have to reflash it, whenever u install new apps or update....

V2.* ... Install all apps and then flash it... It will work.... & whenever u install new apps or update just reboot your phone, U dont hv to reflash it...

---------- Post added at 02:18 AM ---------- Previous post was at 02:01 AM ----------

I have a doubt.. Seems like my phone is not able to run script file... Bcoz evn if the script is in init.d....

No .bak file was created ever..

Not even 0byte Xml or smthing... Even i tried by putting script file from previous versions manually in init.d... But no changes in packages.xml...

Can anyone help me out with this... ?? How to Clearify or solve it
[Android Software Development] rufus.wilson:
Thanks, that is helpful. For busybox and the script could you tell me the owners and groups?
[Android Software Development] rufus.wilson:
I did not know it existed.

What does it do?

Is it present on all ROMs?

What permissions should the script have and which group should it belong to?

Where is it exactly?
[Android Software Development] M94Khaled:
I think he mean this.. But don't know what it does

---------- Post added at 01:43 AM ---------- Previous post was at 01:33 AM ----------

Found this on SU official site,
[Android Software Development] aadi50:
Busybox - Owner is root, group is root

Script file in init.d - Owner is root, group is blank

Other file in init.d - Owner is root, group is root
[Android Software Development] jaydee316:
Working on H60-L04

Works great on my Huawei Honor 6 running on B820! Thanks! :D
[Android Software Development] WHOAMI.V:
good jod,thanks your hardwork
[Android Software Development] Tecalote:
Hello, could you please have a look in /data/system how much MB your file packages.xml has? I wont to know before testing again, because I had 0 byte after flashing the previous version 2.3. If this would solved in the new version 2.4, this would be great (i have Huawei p8)
[Android Software Development] WILMANS2M:
Hi rufus,

Well su.d in fact is created by SuperSU so your phone needs to be rooted unfortunately. Su.d folder bypass selinux policy ;) (it is patched)

So all scripts in this folder run fine without having a permissive kernel (ex: Viper)
[Android Software Development] saulotas:
E:Error executing updater binary in zip '/sdcard/Download/ExtSD_Fix_rw-signed-v2.1b.zip'

On Samsung Note 2 running cm13
[Android Software Development] lukanz:
v.2.4b works on LG PAD 7 (v400) CM13....thx!!!
[Android Software Development] vhick:
Please install the new version sir and give feedback. I think the title already in version 2.4b.
[Android Software Development] saulotas:
Confirmation that 2.4b works on Note 2 with cm13
[Android Software Development] Yudh:
On which app did you tested.

✌
[Android Software Development] Vishal Vignesh:
Did you test it?

NOT Sent from my GT-N7100 using the XDA-developers mobile app
[Android Software Development] Lokeshchanana:
Should it work with mi3

I flashed this on my mi3 after cm13 update.. I am still seeing the problem..

Even my screenshots r not saving.. Someone please help..
[Android Software Development] ankushkushal:
+1for that.using rr5.6.9 n script isn't working

---------- Post added at 05:35 PM ---------- Previous post was at 05:33 PM ----------

This yes is confusing. You said yes to what query... Each time or once n for all.btw thnx for helping me out.
[Android Software Development] Twenga:
I have the same problem with titanium Backup. How did you solved this?
[Android Software Development] DarkSJ1998:
V2.4b gave me boot loops :(

Just now recovered (apps optimizing)... I just deleted the init.d file & placed the old platform.xml in /data/system to get it working back...

BTW, I'm on CM13 Nightly on YUREKA PLUS (tomato)

---------- Post added at 06:24 AM ---------- Previous post was at 06:20 AM ----------

BTW, one query... Does flashing the zip wipe Dalvik Cache/Cache?
[Android Software Development] Yudh:
[MENTION=6935794]rufus.wilson[/MENTION]

I flashed the zip v2.4 on my own risk lucky it didn't went into bootloop but the zip had no changes whatsoever.

No script file was placed in the init.d folder.

I am providing the recovery.log please have a look at it.

I am running Resurrection Remix ROM marshmallow on my Samsung Galaxy Note 2(GT-N7100)

https://drive.google.com/file/d/0B88l7mH6vhN4R1EyNkpZQ0FPcFE/view?usp=drivesdk

✌
[Android Software Development] rufus.wilson:
It looks like your unzip function does not work the same than the others...

I don't really know how to fix this.
[Android Software Development] rufus.wilson:
No it does not wipe cache nor dalvik.
[Android Software Development] Yudh:
So what should i do now.

✌

---------- Post added at 10:10 AM ---------- Previous post was at 09:40 AM ----------

I installed latest version of twrp and reinstalled the busy box but even then the same result.

Again a new logcat

https://drive.google.com/file/d/0B88l7mH6vhN4YTVBay0wUHlMa00/view?usp=drivesdk

✌
[Android Software Development] rufus.wilson:
Could you try to run the following?

unzip -o "ExtSD_Fix_rw-signed-v2.5b.zip" "99_ExtSD_fix_v23.sh" -d "./"
[Android Software Development] Yudh:
Where should i do this in recovery terminal or my mobiles inbuilt cm terminal app?

And before doing so ineed to locate the file yes or no?

✌
[Android Software Development] rufus.wilson:
It would be better in recovery and yes please navigate the terminal where the zip file is stored.
[Android Software Development] Yudh:
Tested in terminal app(successfully extracted but not executed) and recovery terminal(not extracted) both.

And also remember that even though i copied the extracted .sh file into init.d folder and gave 0755 permissions after reboot my mobile went into bootloop.

Just a piece of advice either always use underscore or always use hiphen (combination of both resulted into typing many times)

Error= zip file with flag 1 and 8 not supported

✌
[Android Software Development] rufus.wilson:
I am sorry to hear that but I don't see any way to solve this problem.
[Android Software Development] M94Khaled:
Hey rufus, i think i solved the problem that the fixes after 1.9 are not working.

For example the latest fix 2.5, many people said that there is no effect after installing it. I also was facing this problem, the problem here is the script file copied to /init.d is copied with the wrong permissions "666", so it just set to rw permissions but not x so the script will never be executed. I fixed the permissions and set it to 777 and installed some apps and rebooted and everything was ok and SDcard was well detected by the apps.
[Android Software Development] rufus.wilson:
What happens if you set permissions 755 to the script?
[Android Software Development] WILMANS2M:
On sgs5 neo it does not work at all unfortunately. Hope one day this security stuff will be bypassed.

Envoyé de mon GT-I9505 en utilisant Tapatalk
[Android Software Development] Tecalote:
This is very interesting, I will try it also with the v2. 5 and chanching the permissions to 777. May be, it works after on my Huawei p8 phone. I flashed the Version 2.4 yesterday, but after I had a 0 Byte Packages.xml
[Android Software Development] DarkSJ1998:
Okay! And, I can confirm v1.9b is working flawlessly on tomato running CM13.0 NIGHTLIES... ;)

So you may add it to the working list... however, v2.4b gave me boot loops & v2.3b didn't show any effect... will take a Nandroid & try v2.5b & will report ;)

And, one more thing... Ti Backup doesn't get Write permissions onto Ext SD Card even after flashing zip... It still requires Document Provider to get access to SD Card... is it me only or same for everyone? :)
[Android Software Development] rufus.wilson:
I did a bit of digging and the permissions need to be 777. I have added a new version v2.6b with correct permissions
[Android Software Development] rufus.wilson:
OK thanks.

I think it is a common problem.
[Android Software Development] DarkSJ1998:
And, that recovery log also captures cause of bootloop? Or is there any other way of finding out the cause behind the boot loop? I'll try my best to help you figuring this out! :D
[Android Software Development] rufus.wilson:
I am not sure about ways to understand bootloops.

Maybe the permissions have a role or the owners or something else. Does the file have 0B size?
[Android Software Development] rufus.wilson:
Could someone execute the init.d script manually from normal terminal and report?

I am wondering if the script is actually working...
[Android Software Development] M94Khaled:
Whats is the command i can use, where to find the log file?
[Android Software Development] rufus.wilson:
You should open a terminal once android has booted normally.

Then login to sudo account:

$ su

Navigate to your init.d folder (/system/etc/init.d, /system/init.d or /etc/init.d depending on your ROM). And then run the following

You might have some info in the terminal but the main log is in /data/ExtSD_Fix_RW_initd.log.
[Android Software Development] DarkSJ1998:
That I didn't check really...
[Android Software Development] aadi50:
Ya i tried it .... I had to change the permission from 755 to 777

Size increased to 896kb from 888kb... It seems working for me.... See In attachment the xml file.... If the changes by script are there or not....

I also tried rebooting.. And checked file modified time... Its working... Seems Now script is running on boot... :confused: :svetius:
[Android Software Development] M94Khaled:
Deleted
[Android Software Development] aadi50:
Lol.. file size in ES explorer is 896kb , while on xda its showing 917kb... :pq
[Android Software Development] M94Khaled:
It's working ok..

---------- Post added at 12:23 PM ---------- Previous post was at 11:33 AM ----------

Well!! Something gone wrong!!

I went ti check my xml file found that it became 0kb so i restored a backup and flashed fix 1.9 + 2.5 and checked the log and this what is inside?!!!
[Android Software Development] mattiadj:
It's the latest build stable?
[Android Software Development] Tecalote:
Hello again, I like your work and I am still waiting for a successful version. I flashed your v2. 6 - same problem. The init.d script has just permission 0666 - look at screenshot. And I got a 0 Byte Packages.xml again. I renamed it to packages.xml.pkb and the RW file to packages.xml. I went to the init.d folder and set the permissions to 777 (before, with the version 2.5 I tried it with 755) and reboot. There were with 0777 no more RW File and the Packages.xml got 0 Byte again...

I am wondering, because one man of this forum used your code with some modification see here: http://xdaforums.com/showpost.php?p=66875227&postcount=232

And I tried this also.. Just put the File without .txt to the init.d Folder and change permission to 0755, reboot and there is a modified .xml with more bytes (original 1,25 mb renamed to something .bak and the modified one 1,29 MB)... Maybe you can use this point for further development of your good work.
[Android Software Development] hurray:
Thank you very much for your work! I used the script in version 2.6b today to make "obb to sd" work under marshmallow 6.01 at my Galaxy Tab S2 T810. :)

I have a slightly modified rom with init.d-support and so far everything runs fine.
[Android Software Development] oberworld:
Version 1.9 doesn't work for me, i have tried 2.6b and still not working at boot even changing permissions to 777 (was 666 before).

It's so strange that script doesn't run at boot even with 777 permissions so i did remove the file extension like the other scripts doesn't have file extension and now it's loads at boot and i can see the log in data folder on every boot.

So the thing is to set permissions to 777 because permissions are set to 666 and rename 99_ExtSD_fix_v23.sh to 99_ExtSD_fix_v23

But still having problems, even if the file runs at boot it's not working.

See my log:

********* start 20160607222247 **********

Detecting busybox

found in /system/xbin

Mount system RW

finished

Add permissions to apps

finished

Write changes back to file

cat: can't open '/tmp/packages-RW.xml': No such file or directory

finished

Remove temporary file

finished

Adjust permissions

finished

********* end 20160607222247 **********

On every boot i have the same error and i have a pop up windows that says that are a problem with system and recommend to do a factory reset.

Thanks for your work. Regards.
[Android Software Development] rufus.wilson:
Nothing has changed I think.
[Android Software Development] rufus.wilson:
Thank you. I finally have the explanation of why does the file have 0b size.

Could you try the latest v2.7b?
[Android Software Development] oberworld:
Of course, i'll try and comment.

Thanks again for your quick reply and your hard work.

Edit: Tested, now i have permission denied error:

********* start 20160608041217 **********

Detecting busybox

found in /system/xbin

Mount system RW

finished

Add permissions to apps

/system/etc/init.d/99_ExtSD_fix_v23[68]: /data/system/packages.xml: can't execute: Permission denied

finished

Write changes back to file

finished

Remove temporary file

finished

Adjust permissions

finished

********* end 20160608041217 **********

I hope this can help you.

Regards.
[Android Software Development] venomxob:
When I flashed 2.6b, I got a bootloop. Xperia z2 D6503, the latest stock build 575.
[Android Software Development] hurray:
I have to restore my backup after a reboot. :D

But not from /system alone, I have to restore /data as well.

Something went wrong if the script try to modify /data/system/packages.xml.

If I have a little bit time I will see if I can modify the script so that I am able to make "dry runs" from the script with a copy from /data/system/packages.xml, so it does not have an impact on the installation if something goes wrong.

One little thing: The script asks for two different places for busybox:

/system/xbin and /system/bin

My busybox is default installed (installed automatically with TWRP due to UPDATE-Busybox.Installer.v1.24.2-ALL-signed.zip) in /sbin. So it is possible that the folder /sbin matches for more people. :)

I have changed my busybox-installation folder to /system/xbin easily with Busybox Pro.

Keep up the good work!
[Android Software Development] Tecalote:
Hello, if the file 99_ExtSD_fix_v23 is without the extension .sh, then the script produce no packages.xml-RW.bak, only a 0b Packages.xml... If the file has the extension .sh it produce the RW.bak file, but the packages.xml has even 0b... Thanks for your hard work, I am sure the secret became nearly to solving.
[Android Software Development] Mahoro.san:
For the latest 23b, it goes into startup animation forever for the Redmi Note 3 Pro - with Coffee twrp 3.0.0 and unoficial cm 13.0 Satesh M 6/4/2016 built (w/ FP support)

even delete the package.xml and replacing with packages.xml-RW.bak, it still has problem. I need to flash it all over again.
[Android Software Development] Tecalote:
Similar as me... After testing all versions until 2.6 it is not enough to replace the modified xml with the original one (which is renamed to RW...) and give the original name packages xml... Even not, if wiping cache and Dalvik after. In my case, the system boot, but after I got several problems. Got message, the external SD Card had an error... The Mails are crazy and the contacts, they have a different content, as they should have. And things like that. So I could all the times just restore my Nandroid Backup (System and Data)
[Android Software Development] sufie cruise:
works on redmi note 3[SD] 32 gb variant? I'm on unofficial cm 13...i want the write permissions
[Android Software Development] oberworld:
For me, v2.7b creates the packages.xml-RW.bak file without any problem.
[Android Software Development] Tecalote:
Hello, if I understand it right, you flashed it and got only the permissions error... After you change the permission of the init.d file to 0777 or 0755? And after it works whitout problems? The RW-bak file is created and the packages.xml is ok (no 0byte file)? Did you change the permission in the recovery before first boot after flashing? Thank you, it would very kind, if you answering me. Because I also tried a lot times and like this work of rufus wilson.