Android Setup

Pre-requisite:

JDK 6 or higher (JRE alone is not sufficient)

Download and install JDK 6 or above

======

Android : Install ADB and FastBoot

Android studio :

Download and install the android studio

Open the tool and run it

Go to following folder files:

C:\Users\t_ramiv2\AppData\Local\Android\sdk\platform-tools

C:\Users\t_ramiv2\AppData\Local\Android\sdk\tools

Add these to PATH variable :

Start >Computer>System Properties tab

Advanced Settings>Advanced Tab>Environment Variables

Under System Variables> click on ‘New’. In ‘New System Variable’ pop-up add the following:

Variable Name: ANDROID_SDK

Variable Value: C:\Users\t_ramiv2\AppData\Local\Android\sdk

Under ‘System variables’ select ‘PATH’, click on édit’ and add the following path at the end, each separated by a semicolon

C:\Users\t_ramiv2\AppData\Local\Android\sdk\platform-tools

C:\Users\t_ramiv2\AppData\Local\Android\sdk\tools

Click ‘OK’ in all windows.

Install ADB driver

Note, you need to connect a Carbon device with a USB cable to your laptop before taking next steps.

Unzip and run the .exe file

Choose Automated installation (Universal)

ADB Driver Installer ((9.22 MB). The file ADBDriverInstaller.exe shall be downloaded..

Click on it, the following screen is presented

Click on install

Set Path for ADB: ADB have to set the path to the location of adb.exe. Right Click on 'Computer'Go to Control Panel -> Advanced system settings -> Advanced - > Environment Variables.-< System Variables > Path
Add "to path the following string without the quotes ";C:\Users\Money2020Hackathon\AppData\Local\Android\sdk\platform-tools"

======

Open cmd prompt, and run adb command/s to verify that computer is able to communicate to the device:

C:\Users\t_ramiv2>adb devices

List of devices attached

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

260129760137 device

type: adb.

This should give some response back without throwing error or command not found error

======

Android application installation:

Download .apk to local drive. Run cmd prompt from that dir.

Run this cmd to install the .apk file:

$ adb install <apk name> (NOTE: if you have to overwrite a previous build, use –r option in the parameter list)

$adb install –r <apkname>

======

If you get an error [INSTALL_FAILED_UPDATE_INCOMPATIBLE], then un-install the existing app and install the new build:

Use the same cmd prompt window:

First get hold of the package name from your android device.

$ adb root

$ adb shell

root@swordfish:/# pm list packages > this cmd will list out all the app packages on the device

now, come out of root and uninstall the desired package:

$ adb uninstall com.verifone.swordfish.manualtransaction

NOTE: Another way to un-install apps on the device:

Hold down the app, move it to recycle bin and say OK at the prompt