Is it possible to access the files inside
file:///android_assets/
of an installed android application(in emulator or actual device) through DDMS or any other tool?
If yes, how?
That folder is inside the .APK, therefore you need to find it, download it into your computer and unzip it.
Yes, you can do it trough DDMS or trough adb, but you probably need to have the device rooted first.
Related
I have installed Laravel on my Android mobile phone using Termux. The problem is that I do not know where it is installed and therefore I can't put the project files into a text editor on the mobile phone. Also, I can't find the project folder when I connect the mobile to my laptop and use search(through hidden files as well). I have tried to go up in folder structure using $cd .. in terminux, up to a point where the permission was restricted, so I didn't figured out where those folders would possibly be. Any suggestion would be appreciated :).
OK, so I found the answer. You need to change the current folder in which Termux is installed(data/data/com.termux/files/) to a folder where you can access your files with a file explorer(in my case I used sdcard) like so:
$cd /sdcard
Then, if u run Android 6 or higher, you need to allow termux to create new directories using the command:
$termux-setup-storage
After that you are able to create a new directory in sdcard with
$mkdir YourDirectory
and you are able to access it. Good luck!
I have an "Android Backup" folder with some data inside. Is it possible to emulate this data on a virtual android/ AVD and if so will I be able to access the data?
Are you looking for Using the Emulator?
You can add any file to the sdcard of your emulated device using the terminal.
Edit: Actually the usage of the terminal can be found in the Android Debug Bride description.
I love using Genymotion emulator with such brilliant speed to load Android. It has very wonderful speed but still have some instability performance.
How I can access file in /data/data/ in Genymotion emulator from file explorer in Eclipse? I know that in this device has also installed Superuser permission so I can use this application in root condition. But how I can access this from file explorer?
I know such operation using adb-shell and then basic terminal command also. I have successfully with this method but I want access this through file explorer from eclipse so I can easily pull from emulator.
As of now the only way to access data/data folder on the GenyMotion emulator is by using adb shell commands.
Since the emulator is running inside Oracle VirtualBox, direct access to the storage is a security issue and therefore you wont be able to find it through explorer or eclipse.
The VM saves the storage in .vmdk file format. Which is a virtual machine disk format. The data/data folder is somewhere deep inside that file.
Click here!
To learn more about .vmdk file format.
How can I copy a file from some Android app's assets folder, to somewhere off the device?
Alternatively, how can I move or copy an app so that it is installed on the sd card, not the main rom?
Peter
Easiest way is to learn about the adb push and pull commands: adb
I do not believe there is any straightforward way to copy a file out of an installed app's asset folder without either rooting the device, or the cooperation of the app itself.
As well, files can be copied using DDMS
am almost done with my project in android, now I want to make the executable version of the application.
I need to demonstrate it in .exe form as soft app as on emulator, not by built and debug process from eclipse.
what the op is asking for is simple - he wants to create a MS Windows program file that runs just like the APK he's made.
Unfortunately this cannot be done. The only way to 'show off' your program is as people have stated:
Through the emulator on Windows
On an acual device (Once installed, you can disconnect the device from the computer and use it like a normal app)
You can't convert an APK file into a .exe file. APK files hold Android apps as self-installable files already - opening an APK file on a phone or the emulator will start the installation process. It sounds like you just want to sign the app with a 'proper' key rather than using a debug key. To do that, read the official page on signing apps.
You don't need to create a .EXE file for doing what you want. You can just create a bat file that executes adb commands that will: install and start your application in the emulator. I guess, the problem here is that you don't understand how the APK files work... I'm just saying.
OK... in order to install an Android application using adb (which is basically what Eclipse does in the background) you need to do this:
adb install path/name_app.apk
Then, you can start the application by using adb shell am command. You can find info here: http://pdk.android.com/online-pdk/guide/instrumentation_testing.html
Another thing you have to take in account is that you will have to run the AVD before installing and executing your application: http://developer.android.com/guide/developing/tools/avd.html
All those commands you have to execute (may be using a .bat file as I mentioned before) are executables that you can find in the android-sdk\tools directory.
When I have a client that want's to show an app, at conference for example, I always use Bluestacks it's not perfect but it allows you to run android apps on your computer without doing all the technical stuff (like installing an emulator etc).
To install an app on your you computer using the Bluestacks device/emulator you simply click on the apk.
http://bluestacks.com/
Once you create a project/application in Eclipse then along with this you also have created the .apk file. Android can run .apk files, so go to the place where your project have been saved and open it, like this Open Project -->bin-->.apk.
Now send the .apk file to your android phone through Bluetooth or copy it.