Yea this might seem like a noob question, but how do you open .apk files? I can't get to open using the AVD manager. Thanks.
APK files are meant to be used by the Android OS to install an application. If you want to use one on an android phone/simulator, use "adb install something.apk" from the terminal/command line. Alternatively, you could email the apk to yourself, then open your email on the device and open the attachment.
APK files are basically just a wrapper around an app, you can also open one in a program like WinRAR or some other unzipping/decompression program on your computer to view their contents.
On Windows you have to rename it to ZIP and extract.
On Linux just right click on APK and extract it. Linux recognizes it as an archive file by default.
On Mac, I had issues with renaming so I extract file via Terminal by using the command unzip xyz.apk -d apkDir (it will extract into apkDir directory)
You will then see encrypted Java and XML files which you cannot open (without some extra effort). But you will be able to see and open files from /assets.
Rename your .apk file to .zip file.. and try to extract the file... If you are using windows,mac,ubuntu you can follow this method
NOTE: Extracting an .apk will help you to find the images used in their app.
You can use Bluestack or Geny motion as APK Simulator
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'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 have tried and searched for days and was unable to come up with any solution for my problem:
I am trying to install a .kl file in /system/usr/keylayout to remap some keyboard keys for my app. I have the proper .kl file in the right format: Vender_XXXX_Product_XXXX.kl and it works if i copy it by using root explorer.
But I want it to be install (without root) by installing my app. Which means it has to be include in the .apk file and copied during installation!?
My approach so far was either with using a receiver and the QUERY_KEYBOARD_LAYOUTS intent.
For that a .kcm file is needed. That did not work with my phone (Galaxy S3). I do not know why but it does not show the PHYSICAL_KEYBOARD settings item in settings :(
Anyways i think/hope the better way is by NDK:
I tried using the ndk and was able to integrate some native c into my application but no "source" files like my .kl file.
I was hoping that a device.mk file would somehow be able to copy my .kl file to /system like so:
device.mk
PRODUCT_COPY_FILES +=
$(LOCAL_PATH)/Vendor_XXXX_Product_XXXX.kl:system/usr/keylayout/Vendor_XXXX_Product_XXXX.kl
Is that at all possible? To use the NDK to "install" a file to /system automatically while installing the actual apk?
And if so how do you do that? I am confused about the whole makefile thing and NDK. Never use that before and I am quite bad with c.
If any of you guys know how to do what I am asking ... please let me know. It would be greatly appreciated!
It's not impossible to install a .kcm file with an apk package. In fact that is just how layout apps do it. You are on the right track with the QUERY_KEYBOARD_LAYOUT.
I wanted to install a .kl file, just like you, but I couldn't find any good info on it. So instead I just used the map keyword in my .kcm file, it has the exact same effect.
Check out my source here, where I allow the user to add the se_sv_dvorak layout kcm without rooting the phone: https://github.com/innsmouthrain/se_sv_dvorak
But I want it to be install (without root) by installing my app.
That is not possible. Apps do not have write access to /system/usr/, unless they are running as root.
To use the NDK to "install" a file to /system automatically while installing the actual apk?
It is doubly impossible:
Your app does not get control when installing
Code written using the NDK does not gain any additional OS rights, and so such code cannot write to /system/usr/, except when running as root
I have a game I built in eclipse and now want to install on my phone.
I downloaded ASTRO per an example in YouTube, then copied the .apk file to the SD Card, went to the phone, found it try to install it but it seems like it doesn't recognize it because it does not give me the option to install although I can browse through my assets, drawables etc...
Am I missing something? I just want to download it to the phone ... but all I see is a black list under summary with no description and no button to click on for "Install".
try installing it via adb. Type
'the path to your adb on the pc - it's located in the platform-tools directory of the sdk' install 'the path to your apk on the pc'
in the shell. i.e
adb install myapp.apk in case the path to your adb installation is in the system path and your current directory is the one with the apk.
If you develop i think you got android sdk set up, try to fire up install from the command line by using : adb install
Make sure adb is in your path and your phone has development settings turned on.
you can also open it using the webrowser
using file:///sdcard/bla.apk
If you can browse your assets etc then it sounds like you used long-press in Astro and then told it to 'Extract'. This doesn't install the app, it simply unpacks the apk into its component parts.
Do a 'short-press' (click) on the apk file with Astro and it should give you the option to 'Open App Manager'. This should allow you to install it.
I had this happen to me and this is what I had to do to fix it. Since the option to install is grayed out you need to edit your AndroidManifest.xml and tell Android what sdk version it targets. The version on your phone is probably 2.1 and you have been developing on 2.2. This is what you need to insert into the manifest file.
<uses-sdk
android:minSdkVersion="7" android:targetSdkVersion="8" android:maxSdkVersion="8">
</uses-sdk>
Renaming the .apk to some other extension is not enough to enable beaming. Android will look into the file. You must rename the file then zip it. After that a beam will work and just reverse the process before installing on the device.
This is quite a pain because I beam my apk hundreds of times while testing. On my desire with froyo it was allowed but now on my nexus s with gingerbread it is blocked.
Just figured out you can email the apk to your gmail account as an attatchment and you can install the apk straight from the email. When you open up the email scroll to the very botton and you will see a "Install" button. it's a quick and easy solution.
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.