Skip to main content

Posts

Showing posts with the label Android

Protect your Android app from reverse engineering & plagiarism

Few years back, we faced a hard technical problem while working in IoT project. We were having a mobile app to control smart electronic appliances that consumes our web-service. A third party somehow managed to use our mobile app with their service. We assume that they had reverse engineered to crack the services. So we had to protect our mobile app which was cordova based cross platform app I have been allocated to analyse this issue and propose a solution. So during my initial analysis I found that first we should secure the mobile application installer because Android's .apk installation file usually packaged together all the resource files used in the hybrid project. Crackers could reverse engineer it to get those files. I know that we can ensure protection only by increasing the level of security. So I minified all the files, bundled together and applied obfuscation over it; which made hybrid portion bit more secure. After this I used Arxan to protect the mobile app at b...

Android: How to install Adobe AIR on Android emulator?

To install Adobe AIR run-time on Android emulator, follow this format for creating the batch file: Format: $ [drive-name]: $ cd "[path-to-android-sdk]\android-sdk-windows\platform-tools" $ adb -e install -r "[path-to-AIR-runtime-apk-file]" Sample for Adobe Flash CS5.5 : $ d: $ cd "D:\Programs\android-sdk_r15-windows\android-sdk-windows\platform-tools" $ adb -e install -r "C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\runtimes\air\android\emulator\Runtime.apk" Sample for Adobe Flash Builder 4.5 : $ d: $ cd "D:\Programs\android-sdk_r15-windows\android-sdk-windows\platform-tools" $ adb -e install -r "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4.5\sdks\4.5.0\runtimes\air\android\emulator\Runtime.apk" Note : The system should have Adobe Flash CS5.5 installed prior to running this batch file.

Android: How to install application on Emulator via command-line?

To install an Android application file (*.apk) on Emulator, follow these steps: Step-1 : Create a blank batch file. Step-2 : Open the file in editor. Step-3 : Copy the format: $ [drive-name]: $ cd "[actual-path-to-android-sdk-folder]\android-sdk-windows\platform-tools" $ adb -e install -r "[actual-path-to-apk-file]" Step-4 : Paste it in the file. Step-5 : Replace the instruction-text inside square-bracket with the actual paths. Step-6 : Verify it, if it looks similar to the sample given below: $ d: $ cd "D:\Programs\android-sdk_r15-windows\android-sdk-windows\platform-tools" $ adb -e install -r "D:\Workshop\Flash\ANDROID\test1\test1.apk" Step-7 : Save the file. Now double-click the batch file to install the app in android emulator. Note : This method can be used while development when the developer need to install the *.apk file again and again.

Android: How to start Emulator from command-line?

To create the batch file to open the emulator via command-line, follow the steps given below: Step-1 : Create a blank batch file. Step-2 : Copy this format: $ [drive-name]: $ cd [path-to-android-sdk]\android-sdk-windows\tools $ emulator -avd [android-emulator-name] Step-3 : Paste it in the batch file. Step-4 : Edit the instruction-text inside square-bracket accordingly. Step-5 : Verify the modified text, if it looks similar to the one given below: $ d: $ cd D:\Programs\android-sdk_r15-windows\android-sdk-windows\tools $ emulator -avd AndroidSimulator Step-6 : Save the file. Now the batch file is ready to be used. Just double-click on the batch-file to run the emulator.

Android: Country's ISD Code

Recently, I got a very short missed call from an unknown foreign number. I traced back the location of that number via ISD code. From this, I got the idea of creating a program to detect this on the go (offline). So I'd created the application in flex for android platform. Below is the snapshot of that application: Here is a link to download the file: Link:  CountryISDCode.apk Download it either directly on your mobile-device or transfer it from computer to the device. Then, install it via Application Installer of the device.