Sunday, May 24, 2015

Keystore vs Truststore

Essentially, the keystore in is meant to contain your private keys and certificates, whereas the is meant to contain the CA certificates you're willing to trust when a remote party presents its certificate

Saturday, March 21, 2015

How to symbolicate ios crash reports ?

It is the process of  resolving(convert,translate) hexadecimal codes to apt function names and line numbers
Crash report:
It describes the condition of iOS which led to crashing of the app

  1. Connect the device to a PC which has iTunes installed
  2. Then sync the device with iTunes(iPad should be unlocked)
  3. Navigate to the following path
          Windows 7 & vista:
           C:\Users\USER\AppData\Roaming\Apple computer\Logs\CrashReporter\MobileDevice\
          Windows XP:
          C:\Documents and Settings\USER\Application Data\Apple computer\Logs\CrashReporter\

     4.  Search for the appropriate device name, then look for the file by app name and time stamp 

     5.  Copy that then we can easily symbolicate the crash log which is in hexadecimal format using the .dysm file           with the iPad binary.we can find the .dysm file and iPA using organiser by making it to show in finder

    6. Launch xcode then open organiser click devices and then drop the crash log in that and it will get symbolicated.

The organiser should be once we used to create the build.

Apple IAP ( In-App Purchase ) Bundle Id

Bundle Id is case sensitive 
If it is com.test.myapp in the iTunes Connect but com.test.Myapp in App-Info.plist — that is default Bundle ID set in your app if you named your Xcode project “Myapp” — IAP will not work.

Localhost location in OSX

There are actually two place where where OSx serves website by default:

/Library/WebServer/Documents --> http://localhost

Wednesday, March 18, 2015

Find routing table of android

  • Open the command prompt(windows) or terminal(mac & linux)
  • Do a cd(change directory) to platform-tools directory which is inside android sdk directory
  • Windows
    adb shell cat /proc/net/route
    Mac & Linux
    .\adb shell cat /proc/net/route

error: more than one device and emulator

To Target a particular emulator
adb -s adbdeviceid shell 

you can find it using the following command 
./adb devices 

To Target an USB attached device
adb -d shell

To Target an emulator
adb -e shell

adb commad to find out if VPN tunnel is established in Android

If there is any VPN tunnel established the following command will show

adb shell netcfg | grep tun0

./adb shell netcfg | grep tun0

If VPN is established the result would be something like this

  tun0     UP                          0x00000051 00:00:00:00:00:00

else the result would be something like this

  error: protocol fault (no status)