Directories with write permission - Android Software/Hacking General [Developers Only]

Are there any directories in the Android system where am allowed to store files other than /sdcard? I see a folder called sqlite_stmt_journals which appears to have permissions but the folder I make in it keeps getting deleted and sometimes when I put files in there the process fails...

Related

[Q] What are these folders?

BTW: I know this folder has nothing to do with dropbox.com, so don't ask.
I been going through my system looking for logs and stuff and so far I found.
/data/system/dropbox
/data/system/usagestats
/data/tombstones
/data/adb
/data/dalvik-cache
After deleting the stuff inside these folders I was able to regain 100MB's.
Now my data partition reads 22% instead of 91%
What are these folders and why do they take up soo much space?
In the meantime, I'm making symlinks from those folders and placeing them on /dev/log
Ummmm /data/dalvik-cache? U deleted it!?
Do any apps work?
Yeah they all work, I only deleted the contents inside not the folder.
Then I made a symlink of the folder to /dev/graphics so the files still exist, but they will all get deleted at power-off.
All the other folders I made a symlink to /dev/log.
There was 49.5MB's in that folder so I'm glad I deleted its contents.

[Q] File recovery in root folders? (/data/)

I just lost one off my app's data (settings, etc, ...) and I'd like to try undeleting them. I know they were in the /data/data folder.
I found some file recovery apps on the store but it seems like they only scan the /sdcard/ folder.
I looked into mounting the sdcard on my PC and running a recovery software there, but mounting the root folder doesn't seem possible.
Any idea that might make this possible?

There is no empty space in the root directory

For some reason I have no space in the root directory. When I try to edit or copy any file in the system folder a message appears saying that there is no space to paste the file. I tried to delete the dalvik cache but still nothing helped. I need help to free some space in my root folder so that I can edit some files.

Empty directories

Hi. I need to find all empty dirs in the specific dirs, so I started google that question and found following:
1. "find" on android doesn't work with "-empty" arg.
2. Google shows me some play store apps, which should find empty dirs, but they delete ALL of them right away on the whole system (or Android dir) and some of them can't even see SD card, but in my case I only need found them only, not auto delete.
So how one can find all empty dirs on android ?
Xda801 said:
Hi. I need to find all empty dirs in the specific dirs, so I started google that question and found following:
1. "find" on android doesn't work with "-empty" arg.
2. Google shows me some play store apps, which should find empty dirs, but they delete ALL of them right away on the whole system (or Android dir) and some of them can't even see SD card, but in my case I only need found them only, not auto delete.
So how one can find all empty dirs on android ?
Click to expand...
Click to collapse
I use an app called "Empty Folder Cleaner" on Google Play store. It's never deleted a folder that couldn't easily be re-written by a seldom used app. Been using for over a year now with no problems. Ad-Free, too.
Only catch, is you can't do your SD card w/o root access. Internal storage works fine though, (non-root)
Description by the app publisher;
Annoyed with loads of empty folders in your file manager? Use this app.
Key Features
1)Multiple options to delete empty folders
2)Delete empty folders from internal storage(No root required)
3)Delete empty folders from external storage/memory card(Root required for this feature only)
4)No advertisement
With a single click all the empty folders will be deleted.
Options to delete empty folders
1)Show progress - get the progress of which file is being checked for empty folders
2)Log deleted empty folders - get the list of all the empty folders deleted
3)Scan ANDROID created folders - will not delete empty folders from the directories /Android/data, /LOST.DIR, /DCIM
Note: folders with ".nomedia" and other hidden files will not be deleted as they might be required by the system or the app which has created it. Developer is not responsible for any problem created by the app. You use the application at your own risk
Sent from my SM-N950U using Tapatalk
darth_vapor said:
I use an app called "Empty Folder Cleaner" on Google Play store. It's never deleted a folder that couldn't easily be re-written by a seldom used app. Been using for over a year now with no problems. Ad-Free, too.
Only catch, is you can't do your SD card w/o root access. Internal storage works fine though, (non-root)
Description by the app publisher;
Annoyed with loads of empty folders in your file manager? Use this app.
Key Features
1)Multiple options to delete empty folders
2)Delete empty folders from internal storage(No root required)
3)Delete empty folders from external storage/memory card(Root required for this feature only)
4)No advertisement
With a single click all the empty folders will be deleted.
Options to delete empty folders
1)Show progress - get the progress of which file is being checked for empty folders
2)Log deleted empty folders - get the list of all the empty folders deleted
3)Scan ANDROID created folders - will not delete empty folders from the directories /Android/data, /LOST.DIR, /DCIM
Note: folders with ".nomedia" and other hidden files will not be deleted as they might be required by the system or the app which has created it. Developer is not responsible for any problem created by the app. You use the application at your own risk
Click to expand...
Click to collapse
Yes, this is one of the apps I found, but it is not what I need, as I said in the first post.
Sent from my santoni using XDA Labs

How to reinstall /data/app

I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?
This should help
https://forum.xda-developers.com/t/how-to-get-install-back-uninstalled-apps-apks-with-adb.3894235/
hmm, no, sadly doesn't work. The folder still gets deleted and the app not installed
You better mention your phone manufacture and model.
And then go to the specific forum to ask for help.
Different phones have different encrypting methods to restore, and not always success.
PalanixYT said:
I have read that /data/app is where all apps are stored. So, I copied /data/app but when i try to copy the folder over, after a restart, it is gone, even if I try the same inside TWRP. I can see the directory in the TWRP file manager but after a reboot it is gone as well. Can I somehow install those /data/app directories I have saved on my PC?
Click to expand...
Click to collapse
Unless you have your device's Android rooted, you cannot see the contents of this directory and it will appear to be empty. This is because Android does not allow access to this location within the file system. Android uses the /data/app directory for managing app data, and any tampering with files in this location could cause problems.
Therefore: To access directory /data/app you must mount it as RW what requires Android is got rooted.
Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually
PalanixYT said:
Yes, I do have root, it's just that I can't put any apps there, because they will get deleted after reboot. That's all there is. I just ended up installing the apps manually
Click to expand...
Click to collapse
Try migrate app.
https://forum.xda-developers.com/t/3862763/
It will generate a zip file to restore.
You can try manually alter the zip file with your data you backup and hope it restores.

Categories

Resources