Internal Storage Permission issues - G3 Q&A, Help & Troubleshooting

Hello there,
I got a problem with my internal sdcard... I dont have access to certain directorys...
I am trying to delete a file from a folder (Downloads) and it works.
I am trying to delete a file from a folder (one which a app created on a other rom (ressurection)) and it doesent work, even as root i get permission denied.
Some Infos:
Old ROM: Ressurection Remix
ROM: Bumped Lollipop, Stock
Model: D-855
Carrier: None
All Commands as root:
Output of "#ls -la /sdcard/":
Code:
Downloads: drwxrwx--- root sdcard_r some-date some-time Downloads
Other Folder: drwxrwx--- root sdcard_r some-date some-time Folder
Output of "#ls -la /sdcard/Folder/":
Code:
-rw-rw---- root sdcard_r some-size some-date some-time File-to-delete
Output of "#rm -f /sdcard/Folder/File-to-delete":
Code:
rm: File-to-delete: Permission denied
Any Ideas?
EDIT:
Could someone send me the output of "ls -la /sdcard/" and "ls -la /storage/external_SD" of his G3, I wanna try to set Owner and Group and permissions of the folders

Related

[Request] Lost MOUNT backup after rooting

Can someone please type the following line inside the Terminal Emulator or an ADB Shell and post the results.
Code:
ls -l /system/bin/mount-
After rooting my A100 for the second time (after an ICS Over The Air Update) the backup created by the next line, which is part of the getroot.sh script got over-written
Code:
mv /system/bin/mount /system/bin/mount-
Right now this is what I am getting (If I type: ls -l /system/bin/mount-):
Code:
lrwxrwxrwx root root 2012-06-30 18:43 mount- -> /system/sbin/mount
I just want to check if the original mount command was a symlink to the Toolbox multi-function program, like many commands inside the /system/bin/ directory.
The Build number is: Acer_AV041_A100_1.037.00_WW_GEN1
Thanks.
PS: I did not post in the corresponding thread (http://forum.xda-developers.com/showthread.php?t=1531646) because I don't have the required 10 posts, sorry about that.
If you did not root your A100 using the method described in: http://forum.xda-developers.com/showthread.php?t=1531646 you will get:
Code:
/system/bin/mount-: No such file or directory
But I could also use the output of:
Code:
ls -l /system/bin/mount
I tried it with my other Android devices and I get different outputs.
In my Motorola Atrix 4G I get:
Code:
lrwxrwxrwx root root 2012-06-24 18:39 mount -> /data/local/toolbox
And in my LG-P500h I get:
Code:
lrwxr-xr-x root root 2010-06-30 21:04 mount -> toolbox
They both are symlinks to the Toolbox multi-function program in the Android system, but in the Atrix 4G I have two different Toolbox files, one in the /data/local/ directory and one in /system/bin/ directory.
Thanks again for any help.

Undeletable folder

Hello,
After flashing the most recent TuchMi ROM on my galaxy s3, trying it out and restoring to my nandroid backup of kyanrom I have a TuchMi folder I cannot delete. I have tried ES Fileexplorer and Root Explorer both. There are three zip files in the TuchMi folder that cannot be deleted, tells me file permissions cannot be changed.
That said, the timestamp on the /TuchMi folder is 8 March 1970. I am wondering if this is causing something to fail in deleting or being able to change permissions. I don't know if this is right place to ask this question but I can't ask in the TuchMi thread because I am too new. Anyone have an idea on what I can do to fix this?
Thanks
JMD
rezin44 said:
Hello,
After flashing the most recent TuchMi ROM on my galaxy s3, trying it out and restoring to my nandroid backup of kyanrom I have a TuchMi folder I cannot delete. I have tried ES Fileexplorer and Root Explorer both. There are three zip files in the TuchMi folder that cannot be deleted, tells me file permissions cannot be changed.
That said, the timestamp on the /TuchMi folder is 8 March 1970. I am wondering if this is causing something to fail in deleting or being able to change permissions. I don't know if this is right place to ask this question but I can't ask in the TuchMi thread because I am too new. Anyone have an idea on what I can do to fix this?
Thanks
JMD
Click to expand...
Click to collapse
Run "fix permissions" from recovery, and then try again.
(One of the most common reasons you can't delete something, even as root, is that its file attributes are set to "immutable" (which under linux often means you've been hacked, but no worries here))
Thanks for the quick reply but that didn't seem to fix it. I am at a loss, the folder is only 32meg so I am not too concerned but it is a little annoying. If there's another thing you can think of I'd appreciate it.
Sent from my SGH-I747M using Tapatalk 2
rezin44 said:
Thanks for the quick reply but that didn't seem to fix it. I am at a loss, the folder is only 32meg so I am not too concerned but it is a little annoying. If there's another thing you can think of I'd appreciate it.
Sent from my SGH-I747M using Tapatalk 2
Click to expand...
Click to collapse
Nuke it (rm -rf somedir) from an adb shell, so you can see the actual error.
zmore said:
Nuke it (rm -rf somedir) from an adb shell, so you can see the actual error.
Click to expand...
Click to collapse
Here's what it says.
Code:
[email protected]:/ $ cd sdcard
cd sdcard
[email protected]:/sdcard $ ls
ls
Alarms
Albums
Android
Application
DCIM
Download
EVA
Evernote
GOLauncherEX
GoStore
Library
Movies
Music
Notifications
Pictures
PlayerPro
Podcasts
Ringtones
SpeedSoftware
TuchMi
ba-superkeyboard
backups
data
ivona
mdm
media
rootz
svox
temp
[email protected]:/sdcard $ rm -rf TuchMi
rm -rf TuchMi
rm failed for -rf, No such file or directory
255|[email protected]:/sdcard $ rm TuchMi
rm TuchMi
rm failed for TuchMi, Is a directory
255|[email protected]:/sdcard $ cd TuchMi
cd TuchMi
[email protected]:/sdcard/TuchMi $ ls
ls
Stock_SystemUI.zip
Voice_Reinstall.zip
XXBLG1_AndroidGX-MOD_NexusBattery.zip
[email protected]:/sdcard/TuchMi $ rm Stock_SystemUI.zip
rm Stock_SystemUI.zip
rm failed for Stock_SystemUI.zip, Permission denied
255|[email protected]:/sdcard/TuchMi $ ls -l
ls -l
-rw-rw-r-- root sdcard_rw 1280043 2008-08-01 07:00 Stock_SystemUI.zip
-rw-rw-r-- root sdcard_rw 29694315 2008-08-01 07:00 Voice_Reinstall.zip
-rw-rw-r-- root sdcard_rw 2582686 2008-08-01 07:00 XXBLG1_AndroidGX-MOD_Nex
usBattery.zip
[email protected]:/sdcard/TuchMi $
and these are the permissions of the subject directory.
drwxrwxr-x root sdcard_rw 1970-03-08 01:48 TuchMi
Thank you for taking the time to respond to this.
JMD
I had to delete it while plugged into my pc. Was just driving me crazy that I couldn't get rid of it.
Well, I've resigned myself to failure deleting these three files and the folder they're in. I've tried 8 or 9 different file managers. I downloaded and installed adb, learned enough to really screw up my phone, but that didn't work either. I tried deleting them through windows and debian too.
That said, I'm just going to live with things as they are now. In the future when a more mature JB rom comes out I'll try that but my question is this, can I just format (wipe) my sdcard partition and restore the stock at&t/Samsung rom using Odin?
Sent from my SGH-I747M using Tapatalk 2
rezin44 said:
Well, I've resigned myself to failure deleting these three files and the folder they're in. I've tried 8 or 9 different file managers. I downloaded and installed adb, learned enough to really screw up my phone, but that didn't work either. I tried deleting them through windows and debian too.
That said, I'm just going to live with things as they are now. In the future when a more mature JB rom comes out I'll try that but my question is this, can I just format (wipe) my sdcard partition and restore the stock at&t/Samsung rom using Odin?
Sent from my SGH-I747M using Tapatalk 2
Click to expand...
Click to collapse
I noticed in your terminal output, that you weren't root (# vs $). "su" to root, and try again.
zmore said:
I noticed in your terminal output, that you weren't root (# vs $). "su" to root, and try again.
Click to expand...
Click to collapse
Yeah, I caught that before you mentioned it yesterday but I thought I'd try it again as this is very new to me and I am using cheat sheets with adb common commands to navigate through this. Here is the output though. Still no bueno..
Code:
drwxrwxr-x root sdcard_rw 1970-03-08 01:48 TuchMi
drwxrwxr-x root sdcard_rw 2012-09-04 08:05 ba-superkeyboard
drwxrwxr-x root sdcard_rw 2012-09-04 09:45 backups
drwxrwxr-x root sdcard_rw 2012-09-05 02:05 clockworkmod
drwxrwxr-x root sdcard_rw 2012-09-03 20:09 data
drwxrwxr-x root sdcard_rw 2012-09-04 14:24 ivona
drwxrwxr-x root sdcard_rw 2012-08-31 09:00 mdm
drwxrwxr-x root sdcard_rw 2012-08-14 17:39 media
drwxrwxr-x root sdcard_rw 2012-09-03 21:31 rootz
drwxrwxr-x root sdcard_rw 2012-09-04 23:14 temp
[email protected]:/sdcard # rm -rf TuchMi
rm -rf TuchMi
rm failed for -rf, No such file or directory
255|[email protected]:/sdcard # cd TuchMi
cd TuchMi
[email protected]:/sdcard/TuchMi # ls -l
ls -l
-rw-rw-r-- root sdcard_rw 1280043 2008-08-01 07:00 Stock_SystemUI.zip
-rw-rw-r-- root sdcard_rw 29694315 2008-08-01 07:00 Voice_Reinstall.zip
-rw-rw-r-- root sdcard_rw 2582686 2008-08-01 07:00 XXBLG1_AndroidGX-MOD_Nex
usBattery.zip
[email protected]:/sdcard/TuchMi # rm Stock_SystemUI.zip
rm Stock_SystemUI.zip
rm failed for Stock_SystemUI.zip, Permission denied
255|[email protected]:/sdcard/TuchMi # rm Stock_SystemUI.zip
rezin44 said:
Yeah, I caught that before you mentioned it yesterday but I thought I'd try it again as this is very new to me and I am using cheat sheets with adb common commands to navigate through this. Here is the output though. Still no bueno..
Code:
...snip...
[email protected]:/sdcard/TuchMi # ls -l
ls -l
-rw-rw-r-- root sdcard_rw 1280043 2008-08-01 07:00 Stock_SystemUI.zip
-rw-rw-r-- root sdcard_rw 29694315 2008-08-01 07:00 Voice_Reinstall.zip
-rw-rw-r-- root sdcard_rw 2582686 2008-08-01 07:00 XXBLG1_AndroidGX-MOD_Nex
usBattery.zip
[email protected]:/sdcard/TuchMi # rm Stock_SystemUI.zip
rm Stock_SystemUI.zip
rm failed for Stock_SystemUI.zip, Permission denied
255|[email protected]:/sdcard/TuchMi # rm Stock_SystemUI.zip
Click to expand...
Click to collapse
Weird. As root, you normally only see that for immutable files, so, try:
lsattr foo.zip
and if you see an "i" flag for immutable, do a:
chattr -i file.zip
zmore said:
Weird. As root, you normally only see that for immutable files, so, try:
lsattr foo.zip
and if you see an "i" flag for immutable, do a:
chattr -i file.zip
Click to expand...
Click to collapse
Code:
D:\android-sdk\platform-tools>adb devices
List of devices attached
b41c0497 device
D:\android-sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # cd sdcard/TuchMi
cd sdcard/TuchMi
[email protected]:/sdcard/TuchMi # ls -l
ls -l
-rw-rw-r-- root sdcard_rw 1280043 2008-08-01 07:00 Stock_SystemUI.zip
-rw-rw-r-- root sdcard_rw 29694315 2008-08-01 07:00 Voice_Reinstall.zip
-rw-rw-r-- root sdcard_rw 2582686 2008-08-01 07:00 XXBLG1_AndroidGX-MOD_Ne
usBattery.zip
[email protected]d:/sdcard/TuchMi # lsattr Stock_SystemUI.zip
lsattr Stock_SystemUI.zip
lsattr: reading Stock_SystemUI.zip: Function not implemented
[email protected]:/sdcard/TuchMi # lsattr Voice_Reinstall.zip
lsattr Voice_Reinstall.zip
lsattr: reading Voice_Reinstall.zip: Function not implemented
[email protected]:/sdcard/TuchMi #
It kicked out those "Function not implemented" errors, I did some searching and some of the sites that popped up were fedora and ubuntu and they hinted at maybe I have the wrong file system for lsattr to work? In windows it shows the file system on both sdcards, int and ext, as 'generic hierarchical'.
I have had this issue with a couple of folder where I could NOT delete them on my i777 no matter what/how I tried. The files/folders I had were some that I extracted. Then when I was done with it I couldn't delete it. After I had two folders I couldn't delete as it too was bugging me was I connected up my phone via ums to my PC and transfered everything I wanted/needed from my sdcard (internal unremovable). Then when I had it all backed up I went into recovery and formatted my internal sdcard (I removed my external sdcard first to be safe). Then I booted up phone and saw it was all clean. Then I reconnected to PC and transferred all my needed files/folders back onto phone.
I THINK what happened was somehow it was a corrupted file and caused my issues. Completely wiping my sdcard fixed it though. Good luck to you.
Sent from My SGH-I777 Running Red Reaper Rom
RockRatt said:
I have had this issue with a couple of folder where I could NOT delete them on my i777 no matter what/how I tried. The files/folders I had were some that I extracted. Then when I was done with it I couldn't delete it. After I had two folders I couldn't delete as it too was bugging me was I connected up my phone via ums to my PC and transfered everything I wanted/needed from my sdcard (internal unremovable). Then when I had it all backed up I went into recovery and formatted my internal sdcard (I removed my external sdcard first to be safe). Then I booted up phone and saw it was all clean. Then I reconnected to PC and transferred all my needed files/folders back onto phone.
I THINK what happened was somehow it was a corrupted file and caused my issues. Completely wiping my sdcard fixed it though. Good luck to you.
Sent from My SGH-I777 Running Red Reaper Rom
Click to expand...
Click to collapse
Thanks, Im gonna give this a try
Well, it's beat me. After trying all the above things I still cannot delete the TuchMi folder. I tried formatting the sdcard partition from windows, CWM, and fedora. All three did format and manage to wipe everything from that partition except the TuchMi folder.
All I can say is be wary of that ROM.
Sent from my SGH-I747M using Tapatalk 2

[Solved] How to make changes to /system stick? (rooted HTC One)

How can I change files in the /system partition on a rooted HTC One? I...
1. Mount /system as read-write
2. Rename a file and confirm that it has changed
3. Remount /system as read only
The changes I made in step 2 have been forgotten. How can I get around this?
C:\Program Files (x86)\HTC\HTC Sync Manager\HTC Sync>adb shell
[email protected]:/ $ su
su
[email protected]:/ # cd system/app
cd system/app
1|[email protected]:/system/app # ls -l GM*
ls -l GM*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app # mv GMS_Maps.apk GMS_Maps.apk.old
255|[email protected]:/system/app # mount -o rw,remount /system
mount -o rw,remount /system
[email protected]:/system/app # mv GMS_Maps.apk GMS_Maps.apk.old
mv GMS_Maps.apk GMS_Maps.apk.old
[email protected]:/system/app # ls -l GM*
ls -l GM*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk.old
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app # mount -o ro,remount /system
mount -o ro,remount /system
[email protected]:/system/app # ls -l GMS*
ls -l GMS*
-rw-r--r-- root root 5215731 2014-01-17 11:15 GMS_Maps.apk
-rw-r--r-- root root 6884656 2008-08-01 22:00 GMS_Maps.odex
[email protected]:/system/app #
Solved... the stock kernel is write protected. You have to install a non-protected kernel, such as BulletProof. Make sure you choose the one that matches your Android and Sense versions. Copy the ZIP to your HTC One, boot into recovery, install zip and reboot... then use Root Explorer or ES File Explorer to delete /system/app/GMS_Maps.apk and /system/app/GMS_Maps.odex. No more Maps 7.x! Thanks nkk71 for the tip.

[Q] NO Root when installing TWRP to T989

I installed everything perfectly, boot into TWRP but I was never given a prompt to install supersu. So my phone isn't rooted. I'm running Android 4.1.2 and TWRP V.2.5.0.0.
Root Access is not properly configured or was not granted.
Super User Application Status:
SuperSU application - version 2.00 - is installed!
System File Properties for Root Access:
Standard Location
Check Command: ls -l /system/bin/su:
Result: lrwxrwxrwx root root 2014-06-29 14:30 su -> /system/xbin/su
Analysis: File: su is a symbolic link pointing to another file: /system/xbin/su
Standard Location
Check Command: ls -l /system/xbin/su:
Result: -rwsr-sr-x root root 348160 2014-06-29 14:30 su
Analysis: Setuid attribute is present and root user ownership is present. Root access is correctly configured for this file! Executing this file can grant root access!
Alternative Location
Check Command: ls -l /sbin/su:
Result: /sbin/su: Permission denied
Analysis: File system permissions restricted and denied access.
Alternative Location
Check Command: ls -l /system/xbin/sudo:
Result: /system/xbin/sudo: No such file or directory
Analysis: File /system/xbin/sudo does not exist.
Root User ID and Group ID Status:
SU binary not found or not operating properly
System Environment PATH: /sbin /vendor/bin /system/sbin /system/bin /system/xbin
ADB Shell Default User:
ADB shell setting for standard access, stored in default.prop, is configured as: shell (non root) user - ro.secure=1
Results provided on your SGH-T989 device by Root Checker Pro version 1.3.6 from joeykrim in the Android Market - http://goo.gl/NcnHn
Wrong forum, US variants have their own fora. Your thread belongs here, I've asked mods to move it. Sit tight until they do.
Karetus said:
I installed everything perfectly, boot into TWRP but I was never given a prompt to install supersu. So my phone isn't rooted. I'm running Android 4.1.2 and TWRP V.2.5.0.0.
Click to expand...
Click to collapse
You need to download the su zip and flash it in recovery.
Lokke9191 said:
You need to download the su zip and flash it in recovery.
Click to expand...
Click to collapse
This ^^^^^
Twrp never installed SU for me....always had to flash the zip.
KJ said:
This ^^^^^
Twrp never installed SU for me....always had to flash the zip.
Click to expand...
Click to collapse
Would you happen to have a link available? Or will any version do the trick?
Karetus said:
Would you happen to have a link available? Or will any version do the trick?
Click to expand...
Click to collapse
You should not use any version. Use the one I attached.

[Q] Root messed up?

So I rooted my phone used it for a bit then for some reason it messed up so I bought root checker pro and it said Root access not properly configured or granted.
Superuser Application Status
NOT installed: Superuser by ChainsDD, SuperSU by Chainfire, or Superuser by Koush
System Files Status
Standard Location
Command: ls -l /system/bin/su:
Result: /system/bin/su: No such file or directory
Analysis: File /system/bin/su does not exist.
Standard Location
Command: ls -l /system/xbin/su:
Result: -rwxr-xr-x root root 66916 2015-01-23 18:48 su
Analysis: Root access IS correctly configured for this file! Executing this file can grant root access! Root user ownership is present and setuid attribute is not present.
Alternative Location
Command: ls -l /sbin/su:
Result: /sbin/su: Permission denied
Analysis: File system permissions restricted and denied access.
Alternative Location
Command: ls -l /system/xbin/sudo:
Result: /system/xbin/sudo: No such file or directory
Analysis: File /system/xbin/sudo does not exist.
User and Group ID Status
Error: stderr: [-] connect ui: Timer expired, stdout: null, exit_value: 1
ADB Shell User Status
ADB setting for shell access, stored in default.prop, is configured as: shell (non root) user - ro.secure=1
System Environment PATH Status
System Environment PATH: /sbin /vendor/bin /system/sbin /system/bin /system/xbin
Results provided for your SGH-I747M - Android 4.3 device by Root Checker Pro version 1.4.2 from joeykrim in the Android Market - my device is an android Galaxy s3 version is 4.3 and I'm not running a Rom and I used towel root please help I can't find the solution anywhere
Hi there,
Please wait until mods will move this thread to the device specific forum.
Stand by
The simplest way to get root in my opinion is to flash Philz Touch recovery for the d2lte using Odin. Then flash super su from recovery, boot phone, let supersu and disble knox, reboot phone, done.
I have an Alcatel ideal 4060a and it's does the exact same thing an says the same when I do my root checker. What do I do to get my root back?
If you have an older kernel, made on or before May 2014, then you can use towel root to gain root.

Categories

Resources