Payload create Termux terminal using android - android

I am using termux terminal in my android.I have create on Payload APK file.It's created but the APK file size 0KB.
Any one Suggestion...??

First declare that you have installed metasploit and then change your active directory to metasploit by writing cd metasploit-framework.
And then type this command:

Related

How to use the terminal in Android Studio?

I'm trying to integrate Google Sign-in into my app, and I'm following this tutorial. However, I'm trying to add the configuration file to my project, and the tutorial says that I should use this command:
$ move path-to-download/google-services.json app/
When I open the terminal in Android Studio and write the command it says:
'$' is not recognized as an internal or external command
I've also noticed that it's similar to Command prompt (I'm using Windows). Can I just copy the .json file and paste it in my app folder?
I believe $ (dollar sign) is indicating a start of new line in Unix based OS terminal. In Windows OS, the command should be
MOVE [Source] [Target]
For more information, check this link.
Or you can just copy and paste it in your app folder. That will be suffice as well as.
'$' is the user prompt, You should omit the '$' and the command should work

Automate copy Mobile App Builds from DropBox and install to Device

Existing procedure to install iOS:-
Download binary from Dropbox
Open the application with iTunes
Click Install
Existing procedure to install Android:-
Download binary from Dropbox
Copy apk into device via USB.
Go to My Files and a appropriate folder.
Click on the apk and install it.
I want to transfer .apk (android app) or .ipa (iOS app) file to multiple devices and install it simultaneously. How would I do that?
For Android - Assuming you sync the APKs folder to your PC/Laptop this should be easy.
You can use ADB install -r apk-file-path command to push and install the APK from the dropbox folder to your device(s).
If you have multiple devices connected, you need to add a -s paramter to the command and specify the device serial id.
To list all the connected devices, use ADB devices command.
Muzikant's answer looks like it would work for Android. For iOS you should check out the Configurator. If that's too bulky for you, PhoneGap is pretty useful as well.
This would change your current iOS procedure to be:
Ensure that Dropbox is synced to a folder on your PC
You could add a daemon to watch for changes to the folder which would then launch a script that calls
$ ios-deploy -r -b your.app
You can find all iOS devices on your system by following the steps found here

Compile signed APK and install it directly from IDE?

Does anyone know the way or the trick to make signed APK and install it on device from inside the IDE? Just like when we sign the app via debug key and then automatically install it on the device from the IDE.
When I test in-app and have to make multiple changes, it's slowing me down the fact that each time I have to install the APK by coping it onto the device or via console.
You can have an artifact that will build a signed APK.
Then create an External Tool (batch file) that will upload the artifact to the device using adb install command. Optionally add the code to start the main activity. My install.bat looks like this:
adb install -r bin\ClockSync.apk
adb shell am start -n "ru.org.amip.ClockSync/ru.org.amip.ClockSync.view.Main"
Modify the commands if you want to deploy to the specific emulator/device.
External tool configuration is pretty straightforward, just run the bat file.
Now you can create a Run configuration with Before Launch section set to build the signed APK artifact and start the external tool to deploy and run it.
EDITED by sandalone
This approach is for IntelliJ IDEA users. After you set it all up, just launch the app as usual Shift + F10 and the app will be built as signed APK, installed on the device and started.
Since I am on Linux, I made the script install.sh with the following content
adb -s DEVICE_ID install -r ./com.package.name.apk
adb shell am start -n "com.package.name/com.package.name.MainActivity"
made it executable and this was it. Of course, the script should be located in the same place as APK - otherwise fix the path accordingly.

how can i get apk file path from java application?

how can i get apk file path from my java application?
I have apk file in android device and i want to find the path for same apk using java application.Is it possible to get using ADB command?
thank you.
By default android has an app called dev tools.
Launch the dev tools . so It is as follows..
Dev Tools --> Package Browser --> Click on the app
Thats all u will get path of apk
or Install apk on the emulator.And Android Emulator has an app called dev tools.
and do in the same manner as mentioned above ..
Try the following from the adb shell
$ adb shell pm list packages -f

Creating war file in Windows 7

I am trying to set up a GCM Demo Application. http://developer.android.com/guide/google/gcm/demo.html
I am stuck trying to create a war file:
In a shell window, go to the gcm-demo-server directory.
Generate the server's WAR file by running ant war:
I am using Windows 7 how exactly can I create this war file?
Create a batch program called build.bat, containing the following content:
call ant war
pause
This will launch a shell window within which you'll see the ANT output.
Notes:
This assumes that ANT has been installed correctly, with the "ant" executable available on the user's PATH

Categories

Resources