Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

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
  • Environment
         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 

adbdeviceid
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

Windows:
adb shell netcfg | grep tun0


Mac:
./adb shell netcfg | grep tun0


If VPN is established the result would be something like this

  tun0     UP                                  172.17.0.4/24  0x00000051 00:00:00:00:00:00

else the result would be something like this

  error: protocol fault (no status)

Tuesday, February 3, 2015

Can we submit an app to playstore that is signed by debug.keystore ?

No..
You can't you have to create a keystore and sign the app using that key.
Make sure the key is safe..or else you can push the update (it will cause signature error) 

how to get the our andoird app signed by debug.keystore ?

1)Make sure you have built the app atleast one time
2)Go to the bin folder and copy the .apk file that's enough.

How to create debug.keystore ?


Your debug keystore gets created automatically for us the first time we build an Android app