Application Images


Question

So I am creating this website for an app from Google Play and I am currently trying to find where it's storing the image files on my phone. I've tried to search it with FX file explorer and searched in /data/data and found the app but I'm not sure where to find the images. I know that some apps hide them as another file type so if anyone can help me with trying to get the images, the app is called PC Creator if you would like to try it yourself.


Answer

Images are contained in the app



If the images are not downloaded they are contained in the app respectively it's APK file. You can download the APK file from your device (some file explorers allow to do so) or you can download it from an external source like ApkMirror, ApkPure, ...



Once you have downloaded the APK file you can simply unzip the APK file and then manually browser the directory structure or use your favorite file serach to to identify images and other useful files.



If you want to "dig deeper" (e.g. for extracting some string resources or other resources that are not directly accessible as a file within the APK file) you can decompile the APK using a tool like ApkTool (note Apktool is a Java tool and there requires an installed Java-runtime - JRE):



apktool d <path to the exported APK file>


You will get a directory containing thousands of files, containing the code, XML resources and images contained in the app.



Alternatively you can use a GUI program like Jadx (also needs Java, there is a version available that has an integrated JRE, hence does not require to download and install a Java run-time).



Using Jadx you can browse the path Resources/res/drawable* to view and save a contained image of the app.



Images are downloaded



If the images are downloaded while the app is running the are usually stored in the private app-data directory in /data/data/<app packagename>.
For more details on this topic see this question: Where Android apps store data?



To access this directory you need root permissions.



Searching for a specific file on-device especially if the file uses a wrong file extension or a different measure to hide it can be quite tedious. Therefore I would recommend to tar (tar is available on all Android devices by default) the whole directory, export it to a PC and there examine the content:



tar cvf /sdcard/app_data.tar /data/data/<app packagename>


Afterwards you can download the created tar file via adb (execute the command on your connected PC):



adb pull /sdcard/app_data.tar


As you are searching for images you may try to directly run photorecon the tar file. photorec does not care about file extensions it directly operates on the data, if the image is in a known format and not obfuscated on data level it will be able to find and extract it.


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes