Hi all i have been troubleshooting why meterpreter command dump_contacts doesn't work. it shows no contacts found. I have contacts on my internal storage could this be a bug or is it only possible if the device is rooted?
meterpreter > dump_contacts
[*] No contacts were found!
/system/bin/sh: <stdin>[4]: cd: /data/data/com.Android.providers.contacts: No such file or directory
Related
From few days Device File Explorer of Android Studio shows me this message:
Error executing shell command pm list packages
And can't see files and apps from data folder, for example gets database from my Flutter app. Any ideas to solve this problem? Thanks in advance!
UPDATE 29/11/2022
After searching a little I found way to execute adb shell commands from windows CMD, when executes 'adb shell pm list packages' command the CMD throws this Exception:
Exception occurred while executing 'list':
java.lang.SecurityException: Shell does not have permission to access user 150
com.android.server.am.ActivityManagerService.handleIncomingUser:14872 android.app.ActivityManager.handleIncomingUser:4802 com.android.server.pm.PackageManagerShellCommand.translateUserId:3499
at com.android.server.am.UserController.handleIncomingUser(UserController.java:2672)
at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14872)
at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:4802)
at com.android.server.pm.PackageManagerShellCommand.translateUserId(PackageManagerShellCommand.java:3499)
at com.android.server.pm.PackageManagerShellCommand.runListPackages(PackageManagerShellCommand.java:965)
at com.android.server.pm.PackageManagerShellCommand.runListPackages(PackageManagerShellCommand.java:861)
at com.android.server.pm.PackageManagerShellCommand.runList(PackageManagerShellCommand.java:720)
at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:222)
at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
at android.os.ShellCommand.exec(ShellCommand.java:38)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6922)
at android.os.Binder.shellCommand(Binder.java:1085)
at android.os.Binder.onTransact(Binder.java:903)
at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4909)
at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6906)
at android.os.Binder.execTransactInternal(Binder.java:1321)
at android.os.Binder.execTransact(Binder.java:1280)
According forums and other websites this code 150 signify that android studio try to open device file explorer in Samsung Secure Folder when my Flutter app it's installed in normal device storage, this error apparently appairing in Samsung devices with Secure folder. How we execute Device File Explorer in normal device storage, any idea?
I've this problem too. I've uninstalled the Secure Folder to use the Device File Explorer still somebody get the solution
Android Studio Error: One UI 5 upgrade (Android 13) Adb error executing shell command pm list on data/data/ folder
I am having a mobile with following configurations:
Model Name: Samsung S22 Ultra
Model Number: SM-S908E
Android Version: 12
I enabled developer options and USB debugging and I am able to execute adb devices, adb install filename.apk.
I need to push some bin and python files into the location /sdcard/Android/data/com.company.lc.us.lm/files/.
I am using this command:
adb push MyFolder /sdcard/Android/data/com.company.lc.us.lm/files/
Following is the error I am getting:
remote secure_mkdirs failed: Operation not permitted adb: error: failed to read copy response
I had gone through multiple threads with this error. Most of the solutions needs to root the mobile phone. I actually dont want to root my phone as in my remaining samsung phones I am able to adb push successfully without any error without root.
Had anyone faced this issue? If so please let me know the solution. Thanks in advance.
I have a pretty simple problem, I need to find out where the database file created by Ionic Native SQLite plugin exists by default.
I've tried using Windows search, which resulted in rendering the whole file system inaccessible. A desktop search application I use refused to search the storage of my mobile phone.
I was able to access the database with adb, as explained in this post:
copy db file with adb pull results in 'permission denied' error
So the command was:
adb -d shell "run-as my.package.name cat ./databases/database.db" > database.db
It's my first database app and I am testing the application on a real non rooted device. The application is working perfectly and saving the data. However when I try to copy the contents to the SD card for checking the result, an error shows up.
The command : cp MyDatabase.db /sdcard/MyDatabase.db
Error: sh: cp: not found.
Have you installed BusyBox on that system? If not, that's why. It's saying that the cp command isn't found, not that the file isn't found. After a quick search I found this, but I've never personally installed busybox on a non-rooted phone. http://forum.xda-developers.com/showthread.php?t=2195692. At least if you have trouble, xda is usually a good place to get help.
I am developing an android app in which I am developing an content observer for Audio.Media.EXTERNAL_CONTENT_URI.
I am using Fedora 17 with Eclipse and API level 17 Android Jelly Bean.
Now the problem is that for debugging purposes when while the application is running on emulator I am pushing some mp3 files in /mnt/sdcard. So here it is giving problem mentioned below.
I know this problem is related to file permissions, but how to target it? I am not understanding it.
[2013-04-11 23:14:06 - Unexpected error while launching logcat. Try reselecting the device.] device not found
com.android.ddmlib.AdbCommandRejectedException: device not found
at com.android.ddmlib.AdbHelper.setDevice(AdbHelper.java:752)
at com.android.ddmlib.AdbHelper.executeRemoteCommand(AdbHelper.java:373)
at com.android.ddmlib.Device.executeShellCommand(Device.java:462)
at com.android.ddmuilib.logcat.LogCatReceiver$1.run(LogCatReceiver.java:110)
at java.lang.Thread.run(Thread.java:722)
[2013-04-11 23:18:46 - ddms] transfer error: Read-only file system
[2013-04-11 23:18:46] Failed to push selection: Read-only file system
[2013-04-11 23:25:43 - ddms] transfer error: Read-only file system
[2013-04-11 23:25:43] Failed to push selection: Read-only file system
[2013-04-11 23:26:26 - ddms] transfer error: Read-only file system
[2013-04-11 23:26:26] Failed to push selection: Read-only file system
Try to do an adb remount.
In case it does not work, the ro.secure property might be the problem, in this case try :
adb shell
su
# In root user mode
mount -o rw,remount /mnt/sdcard