Skip to content

Instantly share code, notes, and snippets.

View stoyicker's full-sized avatar

Jorge Antonio Díaz-Benito Soriano stoyicker

View GitHub Profile
@stoyicker
stoyicker / release-android-debuggable.md
Last active July 7, 2020 16:19 — forked from nstarke/release-android-debuggable.md
How to make a Release Android App debuggable

How to make a Release Android App debuggable

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
@stoyicker
stoyicker / generate_keystore.sh
Created January 2, 2016 16:12
Generating a keystore
if [ "$#" -ne 3 ]; then
echo "Usage: $0 aliasName desiredKeystorePassword desiredKeyPassword" >&2
exit 1
fi
keytool -genkey -v -keystore $1.keystore -alias $1 -keyalg RSA -keysize 2048 -validity 10000 -storepass $2 -keypass $3
echo $2 > keystore.pwd
echo $3 > key.pwd
echo "storeFile new File(\"$1.keystore\")