NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
Ubuntu 14.04
.Secure Group Inbound Rules
, add a SSH Rule(TCP, Port 22, 0.0.0.0/0)
and a Custom TCP Rule(TCP, Port 1723, 0.0.0.0/0)
.sudo apt-get install pptpd
.sudo vim /etc/pptpd.conf
. Uncomment localip 192.168.0.1
and remoteip 192.168.0.234-238,192.168.0.245
.sudo vim /etc/ppp/pptpd-options
. Uncomment ms-dns
and ms-wins
. Change the IP to Google's DNS like this:
Let's say you want to access the application shared preferences in /data/data/com.mypackage.
You could try to run adb shell
and then run-as com.mypackage
( or adb shell run-as com.mypackge ls /data/data/com.mypackage/shared_prefs
),
but on a production release app downloaded from an app store you're most likely to see:
run-as: Package 'com.mypackage' is not debuggable