G'evening. I've installed an app from Google Play Market. Once I discovered that I can find pakages of installed apps in the "Android" folder via "explorer". I have Xiaomi Redmi 7. I checked how the pakage is named (it can be checked in the list of apps at the settings of my smartphone). Then I looked for the pakage in the "Android" folder but didn't find it. I didn't find it when searched by it's name either. I have a question: why can't I find the pakage searching by it's name?
P.S. I use built-in file manager (I named it "explorer")
I use android of "9 PKQ1.181021.001" version
The Android folder on your virtual SD card which you can see with an unrooted explorer only houses data for some application that require additional external storage.
Most data for most applications is kept under:
/data/data/<package.name>
Which is a folder you can not view unless you have root permission.
Even ADB is unable to access files in this folder.
If the specific app you are using does not have allowBackup flag set to false (by the developer), it may be possible to run:
adb backup package.name
Then unpack the backup file as explained here: https://android.stackexchange.com/questions/28481/how-do-you-extract-an-apps-data-from-a-full-backup-made-through-adb-backup/78183#78183
Related
So I have this old-ish Android app running on my Pixel Android 12 phone, the app was last updated on 2018 and it clearly uses old API or whatever and the built-in backup functions are obsolete.
It offers option to export its DB to a folder but it can only access /data/user/0/com/cooly.OilChangeSchedulePro/ folder (yes, im giving out the app name, who cars)
My question is how the heck I can take that file out of my phone? I do not have it rooted (and rooting will make it wipe, so no sense)..
tried using adb run-as package but then the package is not debuggable.
tried to make the package debuggable by changing Manifest and repacking, but i cannot upgrade the app with my custom package.
tried adb backup com.cooloy.OilChangeSchedulePro and it gets an empty backup, nothing inside.
Any other way I can access that folder on my phone and copy out my DB to be restored on other phone?
Regards
I have a file Sharing app on the Play Store. The app can transfer selected apps and .OBB files associated with them. I am testing my app for android 11 but am unable to get obb files for apps even with ALL_FILES_ACCESS.
The android documentation states the following:-
Write access to all internal storage directoriesâ , except for /Android/data/, /sdcard/Android, and most subdirectories of /sdcard/Android. This write access includes file path access.
Apps that are granted this permission still cannot access the app-specific directories that belong to other apps because these directories appear as subdirectories of Android/data/ on a storage volume.
So, in theory, I should have been able to read any file except for /Android/data directory and write to any directory outside of /Android directory except for /Android/media.
Please correct me if I am wrong. If, access to obb is not possible this way, is there any other way or is my app's feature just ruined and user cannot transfer obb files at all?
If your app holds REQUEST_INSTALL_PACKAGES permission it can access Android/obb directory.
Yes there is a fix
In Play Store download Google Files.
If already installed.
Hold the app and goto app info,
In last allow both "modify system" And "install unknown app" and you can easily copy and move from and to obb and data folder from Google files.
Sorry for my bad English but I hope u can understand.
You just need to enable "install unknown apps" permission for any file manager app AFAIK, and you will have access. Worked on my Samsung device with Samsung my files app.
I don't know where to find <root-of-android-source-tree>/build/target/product/security
How can I find out ? I want to get file platform.pk8 + platform.x509.pem
I've tried to check in rom android and my phone on the app root explorer, but couldn't find it there.
These files are not stored on the phone, they are certificates located on the machine that builds the Android system image used on your phone. Each phone vendor signs its system images with its own version of these keys and they are not public.
I know that the location for system apps is '/system/app' and the location for user apps is '/data/app'.
But I can't find the location of apk for the ones that I moved to/installed on sdcard.
Apps installed on the SD-Card are stored within the directory ".android_secure".
If I remember correctly you won't find the APK files directly in that folder because the content is encrypted. This is for preventing direct access to the APK file of paid apps.
The encrypted part is mounted somewhere else into the file system.
For me at least using cyanogenmod9 on a Samsung galaxy s 2 i777 I found them in /mnt/asec/
This location works differently than /system/app/ and /data/app/ because the system is actually creating a mount for each app rather than just stuffing them in a folder.
Make sure you take note of symbolic links.
You will not be able to add to here like you can the other two, but you can extract an apk. A better solution would be MyAppSharer from the market.
It will be in mnt -> asec -> -> pkg.apk
On Android 5.0+ (Lollipop, Marshmallow) almost every installed non-system app will be placed in:
/data/app/
Access to /data requires root.
Use su when you are working with adb shell to gain root access, this of course requires your phone to be rooted in the first place.
The directory contains a sub directory for every app.
Each sub directory is named by his package, following Androids app naming convention:
tld.author.appname-N
Where N represents a number greater or equal to 1
e.g. for Firefox it will look something like:
org.mozilla.firefox-1
Inside every app directory you will find a base.apk which is representing the installed app.
So if you want Firefox simply download:
/data/app/org.mozilla.firefox-1/base.apk
using adb pull/scp or copy it to your sdcard and download it using MTP.
Cheers
it is in
File Explorer--> mnt/sdcard
Install ES file explorer. Go to Home Page there will be link App...under that you will find all the apps installed on sd card or phone memory.. select app and share...enjoy...
On lineage 14, Android 7 , all sdcard apps are stored in /mnt/expand/
And apk in folder "app"
I'm trying to copy some apk's of installed apps from my Milestone with FroyoMod installed.
While some apk's are in /system/data after installation, others are not there and I couldn't find any other directory where they are.
How to find out?
Sure the above is true but sounds difficult. FX Files manager with the root addin installed correctly, will allow you to brows and delele/rename.
I guess I solved it:
The Astro file manager I used to look for the apk's shows me empty /data/app directory.
However after connecting through adb, I see the apk's there and can also copy them with the shell.