[HELP] Create .sh to delete select folders. - Android Q&A, Help & Troubleshooting

As the title says, I need a terminal emulator script to quickly delete some folders from the data/data/*appname* partition.
All these folders are named "temp" but they are all subfolders of subfolders of subfolders.
Is there a terminal emulator command to identify all the "temp" subfolders (or subsubsubfolders) in a directory and delete them or do I have to type the location of every single one of them (like -rm data/data/app/sub/sub/temp ?)
Thanks in advance for your help.

Related

[Q] Way to list apks in a folder

I know there has to be a way, I just can not find it.
What I want to do is with the terminal find a way to create a list of only the .apk files in a folder, would also be nice to know how to list other different file extensions.
My goal is to create a text file with a list of all the apks in my /system/app folder, and other folders as needed.
Thanks
Don't know if this works on Android, but in a standard Linux shell you can cd to the directory (which would be /system/app in your case) and then type ls > file.txt (file can be named anything).

[Q] How? -- Write a complete directory listing with filenames, sizes, attributes

In Windows, you can give this command:
Code:
Dir c:\ /s>dir.txt
and it will create a directory listing of the entire file system and write the results to a file named dir.txt.
Is there a way to accomplish the same thing on an Android device?

[Q] how export conntacts, mmssms

I unzipped the file which I was created through this commend 'adb backup'. But I couldn't find two directories which I want.
Code:
/data/data/com.android.providers.telephony
/data/data/com.android.providers.contacts
or
apps/com.android.providers.contacts
apps/com.android.providers.telephony
As the commends, I couldn't find two directories.
HELP ME..

Script to hide WhatsApp galery

Hi.
I need to hide the gallery WhatsApp (I know how to do it by file .nomedia) but each new file downloaded to gallery folder back to be displayed (with the files created after the creation of .nomedia only).
If access to the Media folder delete the WhatsApp .nomedia and create again the files are hidden.
To solve this I created this script:
#!/bin/bash
cd /storage/sdcard0/WhatsApp/Media/WhatsApp\ Video/
rm .nomedia
touch .nomedia
cd ..
cd WhatsApp\ Images/
rm .nomedia
touch .nomedia
But when run it does not hide the images. Apparently the file manager sends a command to "update" the files in that folder.
Someone can explain why this is?
I use a Samsung Galaxy SII i9100 with cyanogen mod v 10.1.3

Simple folder copy script

I'm looking for a script that I can lauch from my media box to copy a folder from a and paste it to b. Is there anything like that about?

Categories

Resources