Tuesday 24 March 2015

Enable whatsapp calls on Android (for root only)


Thanks to a friend, I got to enable whatsapp calling on my phone today :D
Thought I'd take a shot at making it available to all phones without someone having to call you!

THIS IS FOR ROOT ONLY!!


STEPS:

  • Step 1: Download https://raw.githubusercontent.com/amoghbl1/bash-scripts/master/whatsapp_call_enable.sh, I'd like to use wget for this, but, to each his own!
  • Step 2: Open terminal on your rooted phone, every rooted phone has this.
  • Step 3: Run the su command, which is basically typing
    su
    on the terminal app and hitting enter.
  • Step 4: Change the permission of the script, using the command
    chmod 655 whatsapp_call_enable.sh
  • Step 5: Run the script with the command
    sh whatsapp_call_enable.sh
  • Step 6: You're set :D If the output is something like "IF YOU CAN READ THIS, YOU PROBABLY HAVE CALLING PERMISSIONS NOW ON WHATSAPP!! :D". You can now launch whatsapp and call someone :P

 Have fun calling people with whatsapp now :P

Saturday 17 January 2015

Install Android Studio Behind A Proxy

So I've finally got Android Studio installed on my computer, took a bit of an effort cause the setup wizard doesn't quiet let you edit the android studio settings to add your proxy configurations.

Problem:
"Connection failed. Please check your network connection and try again." While trying to install some sdk components that are required for it to work.

Something like "The following SDK components were not installed: extra-android-m2repository, tools, addon-google_apis-google-21, android-21, sys-img-x86-addon-google_apis-google-21, source-21, extra-google-m2repository" can be seen in the expanded log.

The problem is that Android Studio's Proxy settings are not configured and these are the steps you could follow to manually configure them (as it's not possible to configure them through GUI).

  • Step 1: Locate the  .AndroidStudio folder.
  • Step 2: Navigate to .AndroidStudio/config/options
  • Step 3: Edit the other.xml file.
    • Edit 1:  Replace  <option name="USE_HTTP_PROXY" value="false" /> with <option name="USE_HTTP_PROXY" value="true" /> .
    • Edit 2: Enter your proxy host configuration in <option name="PROXY_HOST" value="" /> , it should look something like <option name="PROXY_HOST" value="proxy.iiit.ac.in" /> .
    • Edit 3: Enter your proxy port into <option name="PROXY_PORT" value="" /> , mine looks like <option name="PROXY_PORT" value="8080" /> .
     
That's about it, you might need to enter extra details like login and password if your proxy requires them. Now try running the setup again and this time, it must be able to download all the required components and update the SDK :)

Please let me know if you have other problems, I'd be happy to help!