Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studios: Android Device Manager shows no files for Nougat 7.0 in File Explorer

I'm learning how to integrate databases (SQLite) into my app.

I checked out this tutorial and at the 10m mark, OP enters the FileExplorer in Android Device Manager in Android Studio.

Can't see ANY files in the File Explorer. Using the File Explorer is the desired result. Last Night, I've Rooted my Nexus 6p (7.0) and reinstalled Studio 2.2.2 after reading these stackoverflow dialogues with no desired result, the issue has a long history:

1) Android Device Monitor "data" folder is empty
How to Find my App's /data/data using Android Device Monitor's File Explorer

-Rooted phone (6p) doesn't show any files in FileExplorer (Verfied with Root Checker)
-Emulator doesn't show anything in FileExplorer

2) How to access data/data folder in Android device?
How do I view the SQLite database on an Android device?
SQLite database cannot be accessed although device is rooted
Android Studio - Android Device Monitor's File explorer not working
Android: No files appearing in File Explorer

a) adb shell
run-as com.your.packagename
Has corrupt installation - maybe it's me

b) adb shell
su
chmod /data /data/data /data/data/com.application.package
bad mode '/data'
Nothing, doesn't show any files in FileExplorer

c) adb shell
su
chmod 777 /data /data/data /data/data/
Nothing, doesn't show any files in FileExplorer

d) adb shell
su
chmod -R 777 data/
Nothing, doesn't show any files in FileExplorer

3) How can I see the contents of a sqlite db of my app in a real device?
Nothing, doesn't show any files in FileExplorer

4) http://forum.xda-developers.com/nexus-6p/help/android-device-manager-7-0-nougat-t3454419
Maybe it's not just me, and something is wrong with Nougat 7.0, but there seems to be a continuous stream of the same issue.

Any help would be greatly appreciated. I'm tempted to restart my application and try IntelliJ or Eclipse but I'm not sure if that would solve my problem.

like image 910
Martin Sing Avatar asked Oct 18 '16 21:10

Martin Sing


1 Answers

There's nothing wrong with me (good sign of validation) but a problem with the emulators targeting Android 24 or 25.

Issue re-reported back in Oct '16: https://code.google.com/p/android/issues/detail?id=225049. Faith that Google will resolve this issue as soon as possible.

For now, the solution is to run your emulator using API 23 and there should be no problem accessing the File Explorer with the data using Android Device Manager.

Hurray!

like image 71
Martin Sing Avatar answered Oct 23 '22 05:10

Martin Sing