How to get back write access to SD-Card on Android 4.4

Support for Android version of Total Commander

Moderators: Hacker, Stefan2, white, sheep

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36354
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

How to get back write access to SD-Card on Android 4.4

Post by *ghisler(Author) » 2014-09-07, 10:04 UTC

Here are the instructions to get back write access to your external SD-Card on Android 4.4 with just tempoary root, and without losing your warranty.

Before you begin, you need to check whether this will work on your device or not:
1. Open device settings
2. Open "About your tablet/phone", or "Device information". It's usually the last option of the settings
3. Check the Kernel version: It will only work if the Kernel build date is June 3, 2014 or older.

If it is, follow these steps:
1. Get Towelroot and run it: towelroot.com
Note: You may get a warning about a virus. This is not true, you get this warning because the tool uses an exploit in Android to get root rights.
If Towelroot worked, it will report it. Otherwise your device may reboot, then it failed. There is no danger in using this tool. All it does it put 3 files on your device:
/system/xbin/su
/system/xbin/daemonsu
/system/etc/install-recovery.sh

2. Get and run SDFix:
https://play.google.com/store/apps/details?id=nextapp.sdfix
On my S4 mini, it complained that it failed to copy the data, but it did work. The app modifies the file
/system/etc/permissions/platform.xml

3. Now all we need to do is unroot the phone by removing the above 3 files. I wrote a little tool which does exactly this:
http://ghisler.fileburst.com/android/simpleunroot1.apk
The tool is open source.

4. Restart your phone/tablet.

Of course you can also decide to keep root access - in this case, you should install SuperSU - otherwise any app can get root rights without warning the user.
Author of Total Commander
http://www.ghisler.com

DimitriJunker
Junior Member
Junior Member
Posts: 5
Joined: 2014-09-11, 16:50 UTC
Location: Aachen

SD-Card Write Access

Post by *DimitriJunker » 2014-09-11, 16:59 UTC

My Android is from July 23rd 2014, so the solution is not applicable for me. According to Samsung the new API allows Apps to write to the SD-Card, but they need to be updated. I quate (in german)
Google hat mit der Android-Version 4.4.2 die Programmierschnittstelle (API) für den Zugriff auf die SD-Karte geändert. Hat der Entwickler die Anpassung nicht für seine App vorgenommen, bekommen Sie die Fehlermeldung, dass auf die SD-Karte nicht zugegriffen werden kann. Auf der Google Developer Seite selbst sind diese Änderungen veröffentlicht und noch einmal detaillierter beschrieben.
So if this is true Total commander could be updated so that it can write to the sd-card. I tried some other apps, one was able to create new folders on the SD-Card but could not copy files there.
Else nice App as the other Versions I use(d) ( Windows and the old Windows mobile)
Dimitri

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36354
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-12, 09:53 UTC

2DimitriJunker
The beta version DOES support the new API to write to its own private SD-Card directory. When you go to the TC home folder, you can see multiple SD-Card links. The one with R/W in the name is the pointer to the private directory where TC is allowed to write.

Unfortunately there is no API to write anywhere on the external SD-Card.
Author of Total Commander
http://www.ghisler.com

DimitriJunker
Junior Member
Junior Member
Posts: 5
Joined: 2014-09-11, 16:50 UTC
Location: Aachen

Post by *DimitriJunker » 2014-09-12, 10:28 UTC

So every app gets a dir where it is aloowed to write, but they can read all dirs. This is rediculous. But that's not your mistake. Can a app change the permission for it's directory so that it becomes writable for every app? So could TC create a subdir public under which every app could write and read? The actual TC can't do it, but woul`d it be possible?
Thanks any way
Dimitri

siealex
Senior Member
Senior Member
Posts: 222
Joined: 2009-03-22, 16:36 UTC

Post by *siealex » 2014-09-13, 14:59 UTC

The best variant is to downgrade to Jelly Bean and stay on it forever.
We are not so S.M.A.R.T. as we imagine...

siealex
Senior Member
Senior Member
Posts: 222
Joined: 2009-03-22, 16:36 UTC

Post by *siealex » 2014-09-13, 15:00 UTC

So every app gets a dir where it is aloowed to write
More, this dir is cleaned up every time you delete, update, freeze or reinstall the app.
We are not so S.M.A.R.T. as we imagine...

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36354
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-15, 13:35 UTC

No, actually the best solution is Towelroot with SDFix. If your firmware is too new, downgrade to 4.4.2 and use Towelroot.
Author of Total Commander
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 8007
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2014-09-15, 18:21 UTC

I have a HTC One (M8) with Android 4.4.3 KitKat

Under Settings -> About -> Software information -> More -> Kernel version - it shows this info:

3.4.0-ge224610
and@ABM102 #1
SMP PREEMPT

But no info about the build date. any othe idea where to find the build date?
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b4 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

widmannw
New Member
New Member
Posts: 1
Joined: 2014-09-16, 14:18 UTC
Location: Deutschland

Post by *widmannw » 2014-09-16, 14:26 UTC

I have a Samsung TAB S 10.5 (SM-T805) with Android 4.4.2

3.4.39-2085187
dpi@SWDD5908 #1
Mon Jun 30 21:12:29 KST 2014

No write, create and delete acess on extSD (SD-Karte (2))
Towelroot does not work: This phone isn't currently supported

User avatar
petermad
Power Member
Power Member
Posts: 8007
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2014-09-16, 18:29 UTC

Hmm, I tried running towelroot, and it did run through (no rebooting) and told me that I should now have root access.

But when I then run SDFix it tells me that I don't have root access, and so does TC if I try to enable the "Root functions everywhere" feature.

Afterwards when running simpleunroot1.apk - it just says "This tool is only meant to remove Towelroot!" - so apparantly the towelroot files were not installed.
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b4 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36354
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-18, 09:43 UTC

2petermad
4.4.3 is probably too new.

2widmannw
June 30 is too new for Towelroot.

2petermad
Try checking in /system/xbin whether there is a file "su". If yes, it should have worked - try restarting the phone. if not, it failed.
Author of Total Commander
http://www.ghisler.com

User avatar
petermad
Power Member
Power Member
Posts: 8007
Joined: 2003-02-05, 20:24 UTC
Location: Valsted, Denmark
Contact:

Post by *petermad » 2014-09-18, 15:36 UTC

Try checking in /system/xbin whether there is a file "su"
I don't have a su file - I don't see any of the files mentioned in the first post. So even though towelroot says it did succeed, it obviously didn't. Today it did reboot the first time I tried, but not the 4 following tries. Also the first time I saw a system tray message after the reboot, that a recovery had been made by the system after a shutdown.
Last edited by petermad on 2014-09-25, 14:03 UTC, edited 3 times in total.
License #524
Danish Total Commander Translator
TC 9.21a 32+64bit on Win XP 32bit, Win 7, 8.1 & 10 64bit and TC 2.91b4 on Android 6.0
Get Extended Total Commander Menus | PHSM-Calendar

franc
Senior Member
Senior Member
Posts: 234
Joined: 2005-10-27, 14:09 UTC

Post by *franc » 2014-09-24, 21:25 UTC

I (my girl-friend) have a CAT B15Q, after installing and running towelroot it says: this phone isn't supported.
Kernel is from 15 May though, but no way to root this phone I read.

What now?

I cannot write even the folder:

/storage/sdcard1/Android/data/com.ghisler.android.TotalCommander

at least this should be possible isnt it?

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36354
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2014-09-25, 13:41 UTC

I (my girl-friend) have a CAT B15Q, after installing and running towelroot it says: this phone isn't supported.
Kernel is from 15 May though, but no way to root this phone I read.
What now?
This should work - you can try to use parameters with towelroot:
https://towelroot.com/modstrings.html
I cannot write even the folder:

/storage/sdcard1/Android/data/com.ghisler.android.TotalCommander

at least this should be possible isnt it?
Yes, it should work, unless the phone is configured to not allow any writes at all.
Author of Total Commander
http://www.ghisler.com

franc
Senior Member
Senior Member
Posts: 234
Joined: 2005-10-27, 14:09 UTC

Post by *franc » 2014-09-25, 13:53 UTC

ghisler(Author) wrote:...This should work - you can try to use parameters with towelroot:
https://towelroot.com/modstrings.html...
I will try..
To fix, align and method are probably your best bet(4*2=8 values), hit_iov maybe, limit_offset if you are desperate.
I see me yet trying limit_offset ;)
(4*2*2048=16384 values)

Post Reply