Folder can't be deleted?

Beach_Head

Senior Member
Aug 25, 2010
593
75
0
I installed the Galaxy S3 Retail Mode found in Google Play but had problems setting it up so I uninstalled it.

Now, I have a folder in /sdcard/ named RetailMode that contains photos used by the RetailMode application. But no matter what I do, I can't delete it. Can't delete any of the photos either.

I tried changing owners and changing permissions but failed. I even tried via adb shell.

Any ideas of how I can delete it?

Thanks in advance!
 

Lennyuk

Inactive Recognized Developer
Jan 26, 2010
6,273
1,743
0
Essex, England
www.villainrom.co.uk
I installed the Galaxy S3 Retail Mode found in Google Play but had problems setting it up so I uninstalled it.

Now, I have a folder in /sdcard/ named RetailMode that contains photos used by the RetailMode application. But no matter what I do, I can't delete it. Can't delete any of the photos either.

I tried changing owners and changing permissions but failed. I even tried via adb shell.

Any ideas of how I can delete it?

Thanks in advance!
Could try running a KIES update or one of the Jellybean OTA's that will wipe the internal sd card
 

Beach_Head

Senior Member
Aug 25, 2010
593
75
0
Yes. Tried via ConnectBot on the phone and adb. Issued the exact same command you posted.

The reply was: rm failed for -rf, No such file or directory

I wonder what the problem is...

Are you trying to do so as root? If you open a terminal (download Android Terminal from the market) and run:

Code:
su
rm -rf /sdcard/RetailMode
(upper/lower case is important!) what is the output?
 

Beach_Head

Senior Member
Aug 25, 2010
593
75
0
Tried that first. No go.

Since Retail Mode is installed and activated as a Device Administrator, I think it modified some settings. I just don't know what those settings are.

I don't want to re-flash so hopefully someone can help me with this...

 

knuckle03

Senior Member
Dec 8, 2010
417
104
0
Had this one before but the app was smart app protector. Deleted it but it left a folder and cant delete it even in the pc. But iwas able to delete it using root explorer.

Sent from my GT-I9300 using Tapatalk 2
 

Steve_max

Senior Member
Nov 20, 2011
348
210
0
Rio de Janeiro
Yes. Tried via ConnectBot on the phone and adb. Issued the exact same command you posted.

The reply was: rm failed for -rf, No such file or directory

I wonder what the problem is...
Install a BusyBox from the market (if you already have it, reinstall). if "rm" is trying to remove "-rf", it's NOT a standard "rm", which can explain your problems. Then try again.
 

d4fseeker

Senior Member
Oct 16, 2010
1,300
437
0
After having followed the above: Should you get a "permission denied" as root (execute 'whoami' on the console to make sure you're root!)
then the file(s) is most probably flagged as immutable.
Executing the following will then resolve the issue: chattr -iR /sdcard/RetailMode
 

Beach_Head

Senior Member
Aug 25, 2010
593
75
0
This is what I get when I issue that command: reading flags on /sdcard/RetailMedia: innapropriate ioctl for device

After having followed the above: Should you get a "permission denied" as root (execute 'whoami' on the console to make sure you're root!)
then the file(s) is most probably flagged as immutable.
Executing the following will then resolve the issue: chattr -iR /sdcard/RetailMode