Get files from no_backup folder - android

I need get files from no_backup folder in my production app - I can't lose these files.
In Android Studio (file explorer) that folder has path:
data/data/com.package.name/no_backup/my_files_list
Is there way to do this?
Phone is OnePlus 8 Pro - I have that device and I can do everything, but any file explorer from google play cannot find this folder, android studio can see that folder when my app is in debbug, but I can't run debugg app because my installed app will be uninstaled and "no_backup" folder will be lost.

this path is pointing on system partition. if you want to copy these files programmatically you have to get root access (or at least use privileged/preinstalled system app). if your device isn't rooted (rooting most oftenly wipes data/factory reset) and there is no default/system file explorer with viewing OS partition feature (never seen installed by default, thats would be very insecure) then you won't get access to these files

Related

Is it possible to search for a file in the Android Emulator file system (within my computer)?

I have an Android Emulator I'm trying to use to debug an app I'm developing.
I know in Android Studio they have the Device File Explorer which is helpful but I may not know the exact subfolder where the file I'm looking for lives:
Is there a way either in the Device File Explorer or another tool that can search the file system of an Android Emulator by file name? (My computer's OS is Windows.)

Android Studio - File Explorer doesnt show all my folders

I am using Android Studio to emulate a basic android 4.3 device. Using the Android Device Monitor - file explorer function I am looking through the emulated file system and not all of the folders which I know exist are being shown. For instance under an installed application (on my rooted test device using a file explorer, I know folders exist in a particular location), but when I check on the emulation, I cnt see these folders.
Does the emulator not offer complete access to the file system?
another example is that the downloads folder has an image in it, but on the emulator, the file path shows the downloads folder to be empty - or it wont show me the content.
Is there away round this?
Thanks

Why does not mnt/sdcard/Android/data folder exist on my emulated devices?

My app stores its private data in mnt/sdcard/Android/data/com.example.myapp folder. I see that many other apps have their folder there, it was a suggested location.
I am testing my app on a 7" tablet running 4.0.3 Android version and it works; it is compiled against Api level 12 (Android 3.1). It issues a mkdir command with complete path (Environment.getExternalStorageDirectory().getAbsolutePath()+"/"+APP_DATA_FOLDER_PATH).
My question is about why I cannot see that folder on various emulated devices (with Eclipse DDMS view), and in fact my app fails to access those data after writing them (it writes a JSON text file). I get no error from mkdir call.
Maybe emulated filesystem is read-only; but my emulated devices do have sdcard space. Maybe I should create Android and then data folders first? It is weird, I thought that folder was created by the system.
"mnt/sdcard/Android/data/com.example.myapp" is the path that context.getCacheDir() returns, not for Environment.getExternalStorageDirectory(), which should return /mnt/sdcard-ext/...

How to copy file from PC to android tablet?

When I connect the android tablet to windows 7 I get 2 external devices, one of them (H) doesn't open.
When I open G:, I get this
If I want to copy an app (adobe reader) to the tablet, to which folder should I copy it?
This is the screen of the tablet:
Where should I access the folders and files from?
Any? Copy it over, navigate to the folder on your phone, and click on the APK and it'll install. Make sure you allow your phone to install apps from unknown sources first.
That folder looks like the Android SD Card. If you copy it to any folder, just browse to it using a File Manager and click it to install it. You could also copy it to Downloads, and then open the Downloads app to install the APK. Make sure you also have enabled Unknown Sources.

How to push a file on a phone running Android 4.0.3?

I've created an app on Android 2.2 and used emulator to to test the app. Also the app needs two files to be pushed, file A.xml onto data/data/com.android.myApp/files/A.xml and a sqlite database B.db onto data/data/com.android.myApp/databases/B.db.
Now I'm trying to test the app on a Galaxy S2 running Android 4.0.3 where I can't find any of those familiar folders. There are four folders: data, mnt, system, tmp. The data folder is empty and to add to my problem I can't find my application on the File explorer.
How can I find my app and push these files?
You don't have read permission on data folder.
you can follow this
First, put A.xml and B.db to assets folder
then open by
InputStream is = c.getAssets().open("A.xml");
The folder structure is no different than on earlier emulator versions. It might be that you need to be root in order to be allowed to list the contents of the /data directory.
One cannot see the contents of the /data directory of an actual device due to security reasons. Maybe you could use the PackageManager to seek more details on the packages installed.

Categories

Resources