Skip to content

Instantly share code, notes, and snippets.

@SAPikachu
Created July 29, 2011 05:35
Show Gist options
  • Save SAPikachu/1113190 to your computer and use it in GitHub Desktop.
Save SAPikachu/1113190 to your computer and use it in GitHub Desktop.
Enable market in android
#!/bin/sh
code='310260'
if [ `getprop gsm.sim.operator.numeric` != "$code" ]
then
echo "$0: Setting GSM operator to $code ..."
setprop gsm.sim.operator.numeric $code
killall com.android.vending
rm -rf /data/data/com.android.vending/cache/*
else
echo "$0: GSM operator is already $code"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment