Ok this is driving me nuts. I've tried every file manager, script manager, file deleter and everything else I could come up with. And before anyone asks yes I've connected my phone to my computer and tried getting rid of them that way with no luck. They seem to get deleted but when I look on my phone there still there. I've been successful at making copies of the folders which now resulted in me having 2 folders I can't erase.
Here's the folder named "tmp" that's on my sd card.
https://www.dropbox.com/sh/m9l4ur7txma5aby/9Wx7p9KF9W
The folder consists of a cleanup.sh file that is written like this
#!/sbin/sh
rm -rf /sdcard/theme/
echo "Cleanup complete"
And another file named
"This folder can be deleted after the theme has been installed"
I have no clue as to what theme it's referring to nor do I recall what theme installed this but all I want to do is get rid of it. When I try to delete it all I get is uninstall fail, or not enough memory, which makes no sense. I've tried changing permissions with no luck and I'm stumped. I don't think these folders are causing any harm to my phone but still I want them erased. If anyone may know of another way maybe through terminal command or something I can erase these files I would be greatly appreciated.
sent from my DNA
What is the path to the file?
Localhost798 said:
What is the path to the file?
Click to expand...
Click to collapse
There's many different paths but the most direct path is /sdcard/tmp/cleanup.sh
Or u could go /storage/emulated/0/tmp/cleanup.sh
sent from my DNA
Related
Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
UPEngineer said:
Hello all,
I have written a script to push as file to my TB and it works kind of...I just want to know why it is not functioning as it should.
Here is what I am attempting to do.
Since my HTC weather does not have my city listed and my weather is always way off, I hacked the HTC weather database to add my city. And it works great.
So I wanted to create a weather_update.zip to install using CWM to do all of this for me if I changed roms and to allow others to use it as well.
the file goes into the /data/data/com.htc.provider.weather/files directory.
My script mounts data, pushes the file, changes the appropriate permissions, then unmounts.
It works as intended because I can see the file using adb prior to reboot.
However, after a reboot, the file is overwritten by the original. I can even delete the file completely, reboot and it is rebuilt. So my modified file does not stick.
BUT, if I use root explorer and copy the file to the correct directory and change permissions, my modified file works even after a reboot.
I don't understand why it works one way but not another.
Is there a step I am missing in the updater-script?
Any help would be appreciated....
Thanks,
Scott
Click to expand...
Click to collapse
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
dbu said:
I could be way off base here but wouldn't you have to recursively delete the original to keep it from rebuilding?
Click to expand...
Click to collapse
LOL, what I was thinking too, but it doesn't seem to work, unless I am doing it wrong.
If I replace the file and reboot, the original rebuilds.
If I delete the file completely and reboot, the original rebuilds.
If I replace the file using root explorer after phone has booted and then reboot, my modified file sticks.
That is what I can't figure out. Why it sticks after OS has loaded but rebuilds if the same file is placed before reboot.
And I can't figure out where the file is being rebuilt from.
Uggggg.
ok.... I have Samsung Fascinate.
PWGB2.0 beta3 ROM
I found the zip containing on here(XDA) somewhere containing the BuddiesNow app for my phone and installed it. I then found the BuddiesNow for Vibrant tweaked for the Fascinate. I went to /system/app and located my BuddiesNow I had placed in there 1st and renamed it .bak
I then placed the Vibrant BuddiesNow app in the /system/app folder.
It worked great. I discovered I liked the Vibrant BuddiesNow app much better.
*************
ok... now my issue. I picked my phone up ealier this week and went to use my Vibrant BuddiesNow app and it was gone. I then long pressed the blank screen and pressed Widgets from the list that popped up. I scroll thru the list and BuddiesNow does not show up in the list.
I then open my file manager and navigate to /system/app folder and BuddiesNow is not in there. Not even the .bak file version.
I then go to my SDcard and find the copy of the Vibrant BuddiesNow app I had originally stored in a folder there and tried to copy it to the /system/app folder. The error message pops up saying that the file already exist and cant paste the file here.
I then booted into recovery, tried wiping partition cache and dalvik cache.
That did not help any. Got same result when I tried to move the file to /system/app folder again.
I then thought I would be cleaver and rename the Vibrant BuddiesNow in my SDcard folder to [BuddiesNow.apk.grid] and then move it to the /system/app folder. AND THEN AFTER PLACING IN THE /system/app FOLDER, RENAME IT TO .APK
That did not work either! It also diappeared.... now I have BuddiesNow.apk,
BuddiesNow.apk.bak, BuddiesNow.apk.grid, all in the /system/app folder and all invisible.
I had the file manager settings to SHOW HIDDEN FILES from the beginning.
I also have tried the SEARCH function in the file manager but it shows no results. I have tried installing many file manager apps and attempting to see if a different file manager would show the files but none did.....
I tried to write this episode as short as possible.. this is the best I could do to cover al the bases...
what could be a fix????????? PLEASE ADVISE! I LOVE MY BUDDIESNOW!
Come one...anyone? I love my buddiesnow app. Please help me out here
hard to belive
hard to believe someone has not seen this before and has an idea how to fix it...
I love this forum anyways
File exists, How about overwrite the file?
Accidentally sent from my Google Nexus S using XDA Premium
melvinchng said:
File exists, How about overwrite the file?
Accidentally sent from my Google Nexus S using XDA Premium
Click to expand...
Click to collapse
OVERWRITE FILE is not an option to choose... in this particular problem with this
particular apk disappearance, the option to overwrite is not there.
I have had the overwrite option at other times but not now with this issue fo who know what reason.
I am going to factory reset I guess and start over.
hasn't anyone else had the same issue?
Not sure if this would be helpful but when I had a similar issue I just used titanium backup and found the file that "already existed" and removed it. Also, you can use any file manager that allows you to sort by date modified and look for any buddynow files that may be in a folder that you didn't think about looking in
did you maybe moved the app to your sdcard ? sometimes app's widgets wont show if you move them to sdcard.If you did so move it back to the phone's memory
YoungSinema said:
Not sure if this would be helpful but when I had a similar issue I just used titanium backup and found the file that "already existed" and removed it. Also, you can use any file manager that allows you to sort by date modified and look for any buddynow files that may be in a folder that you didn't think about looking in
Click to expand...
Click to collapse
I used the search function in the various file managers I have tried & even searched the entire phone (and also the /system/app )for he disappeared files and got no results...when I get some time next week I am going to sit down and factory reset my phone and start all over.
if it works I will not try the vibrant version of buddiesnow on my phone again,
I will just use the fascinate version of buddiesnow. (the vibrant version sure was nicer tho)....
I want to add a feature to my app so i can backup so that the user can backup certain shared_prefs files of other apps (located in data/data/package,name/shared_prefs). I dont want to modify them, just backup and overwrite.
My app has root privileges.
Ive tried this a few times but i cant get it to work, im just getting a file not found error when uploading. I realised that its because the files dont have read permission to just anybody.
So what can i do to get around this?
Ive tried mounting data/ as read/write but that didnt work or i did it wrong.
Thanks
You have to chown the files properly. Apps owners are usually number like app_100, app_101, etc. Some files in data/data are system owned so its easy, when you copy files to your sdcard they lose ownership so it has to be fixed when they get put back in data/data.
smokin1337 said:
You have to chown the files properly. Apps owners are usually number like app_100, app_101, etc. Some files in data/data are system owned so its easy, when you copy files to your sdcard they lose ownership so it has to be fixed when they get put back in data/data.
Click to expand...
Click to collapse
But i can copy other files from the data/data/package/name/files directory. Are you sure i cant link to it like that?
And i dont know what chown is :/ little help please?
edit: just looked into chown a bit, i know a little of what it does but have no idea how to use it. Cant i get what i would write using an example file?
tl;dr `rm -rf <directory>` returns "Directory not empty"
I noticed that the old folder for Google Currents [/storage/sdcard0/Android/data/com.google.android.apps.currents] kept showing up regardless of how many times I 'cleaned it' with the app SD Maid. ES File Explorer returns that it contains 7 folders and contains 0 bytes and cannot be deleted.
Instead of letting an app handle it, I just mounted my phone with go-mptfs and decided to `rm -rf` from there. That returns "Directory not empty". There's two folders each with the same amount of sub-folders with similar names. Both contain files that are registered as 4GB with crazy characters as their name [according to my file manager]. `ls -al` won't list anything in any of the directories, but it will spit out that it can't find anything.
`rm -rf` through adb shell spits out the same error as before and Windows Explorer shows the same files with 4GB sizes. Despite the files appearing to be deleted through a file manager they still appear on the phone.
I'm completely stumped here. The only idea I've come across that makes a little sense is fsck, but I'd like to hear other ideas before I venture into unknown territories.
Ideas?
I have had I think the same issue with fders in a few occasions. For a while what I was doing was just renaming them BAD. Since it would not let me delete them. I had the same kind of issues where something in the folder would just refuse to be deleted. I THINK some part of the file got corrupted between doing something on a windows machine and my phone.
After I had a few BAD, BAD1, Etc files I finally decided to back up all my WANTED/NEEDED files and apps or whatever I had on my sdcard (internal) to a PC. This took a while with almost the whole sdcard filled. Once it was done I was then able to go into recovery and format my sdcard (internal) via cwm recovery. Then I restored all my files/folders I wanted/needed back to phone. It is the ONLY WAY I was able to get rid of it. Hope this helps ya.
Sent from My SGH-I777 Running Spiderman Themed AOKP or Spiderman Themed CM10
Thanks for the idea! I forgot about CWM's ability to format the storage it detects. I feel that may be the way I have to go, but I'd like someone to comment on the fsck idea first.
SquidLord said:
Thanks for the idea! I forgot about CWM's ability to format the storage it detects. I feel that may be the way I have to go, but I'd like someone to comment on the fsck idea first.
Click to expand...
Click to collapse
Hi… I also experiencing same problem like you.
Do you manage to delete those file without going through format feature via CWM Recovery?
You can also try the file manager from mrrobinson aroma.
It loads from recovery...so, could work.
Sent from my SGH-I777 using xda app-developers app
I installed Easy Unrar, Unzip & Zip from Goolge play to unzip a zip folder on my phone. It didn't work at all, besides, it created a folder (with strange character name) which can not be deleted. It's 0 byte, can be opened but is empty. Can not create anything inside. I tried deleting with Astro file manager, nothing happened, the folder still there. I tried deleting from my PC, it said the 'Cannot delete the folder. Storage is protected. Remove the write-protection and try again'. The strange folder is on my internal memory. I don't have a memory card installed. Please help.
I can delete any other things on my phone. The file name of the zip I tried to unzip is not English, which I suspect might be the problem?
Ian
help
ive encountered this too. can someone help us or did you already fix this? I think it has a chinese character like.apk but when you open. it opens as if it was a folder. but you cannot delete, rename, move or copy. even through desktop operations failed. and also its shows the date accessed in a year 1970. i tried to edit my date settings hoping that I might delete it but this note 2 has a minimum of year 2000. help thanks
Try to install clean master and open it. Press junk file and standard. Allow it to scan. It shld have a residual folders place. Just scan it with standard and advanced. See if it is still thr. Btw. U can unzip zip files with File Expert.
Sent from my GT-I9300