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!
Related
I'm trying to release an android app with system privileges using the following link:
http://paulononaka.wordpress.com/2011/10/19/apk-with-system-privileges/
my OS knowlage is somewhat poor and i cant get my system to recognize "keytool-importkeypair" as a command.
I'm using Win ex.
added the folder to the system PATH.
started cmd as Admin.
changed the keytool-importkeypair file to: exe,com and bat files, the system could recognize the file then, but still didnt do the right oporation.
May it be a file for linux only? i really don't know much about system command files, so any help would be great.
Thanks.
keytool-importkeypair is a Linux file. It will not work on Windows. To use this as a command on Linux:
1) Download the keytool-importkeypair from following location and save it to the same folder where platform certs are present
https://github.com/getfatday/keytool-importkeypair
2) Once the file is there, you can simply use it by typing
$./keytool-importkeypair "rest of the command"
Well, it seems to be a linux file.. just need to know how to add it to the linux path now.
I know there are many questions regarding font installation on android emulator. I'm sharing the method that worked for me as an answer, if anyone have a better way please share it.
Whenever android fails to find a specific character it looks to DroidSansFallback.ttf, so what you need to do is replace the DroidSansFallback.ttf of the emulator by renaming a ttf font of your required language to DroidSansFallback.ttf. Do the following steps.
1.Get a market enabled rooted android emulator. You can find one here: Rooted Market Enabled AVD
2.Then grab an explorer app, I prefer root explorer.
3.Rename a free ttf font(which you want to install) to DroidSansFallback.ttf.
4.Create an AVD from the image you downloaded in step 1.
Push DroidSansFallback.ttf to the sdcard of emulator via file explorer in DDMS (I'm using Eclipse Indigo IDE).
Install root explorer (you can use another explorer downloaded via market).
Open root explorer, click mount r/w.
Then go to sd card and copy DroidSansFallback.ttf, then go to system, click mount r/w.
9.Then go to fonts and overwrite the existing DroidSansFallback.ttf.
Then give all permissions to the new DroidSansFallback.ttf from permissions option.
That's it.
I used this method to answer a question about Bangla Font Insatallation
I've created an app on Android 2.2 and used emulator to to test the app. Also the app needs two files to be pushed, file A.xml onto data/data/com.android.myApp/files/A.xml and a sqlite database B.db onto data/data/com.android.myApp/databases/B.db.
Now I'm trying to test the app on a Galaxy S2 running Android 4.0.3 where I can't find any of those familiar folders. There are four folders: data, mnt, system, tmp. The data folder is empty and to add to my problem I can't find my application on the File explorer.
How can I find my app and push these files?
You don't have read permission on data folder.
you can follow this
First, put A.xml and B.db to assets folder
then open by
InputStream is = c.getAssets().open("A.xml");
The folder structure is no different than on earlier emulator versions. It might be that you need to be root in order to be allowed to list the contents of the /data directory.
One cannot see the contents of the /data directory of an actual device due to security reasons. Maybe you could use the PackageManager to seek more details on the packages installed.
I am working on Android application which needs to play audio present in cal folder i.e sfdk folder. My doubt is wehere can I find SDK folder in File/Explorer option of
ddms.I find data and system folders in File/Explorer, but didnot find SDK folder.Can I be helped to sove this issue .
Thanks N Regards
Did you mean the Android APIs which are available with the sdk?
It is present in the project folder in Eclipse.(Couldnt post picture because of low reputation :-))
If you want to see the system files inside the emulator, go the command prompt and type
host $>adb shell
#>ls
You can see all the system files.
If you want to see the Android sdk, you should download the source code from the Android site.http://source.android.com/source/download.html
Thanks,
Sen
DDMS displays the content of your phone's internal disk space. There should be a folder named /sdcard that represents the sdcard, if you have one mounted on your phone or emulator.
If by "SDK folder" you mean the SDK that you installed on your PC, it's not going to be shown my DDMS. Feel free to clarify your question.
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