DEV Community

r_tanaka
r_tanaka

Posted on

note: android command line

this is note of android command line stuff for me.

Gradle

after booting your linux you should run below once.

./gradlew --daemon

assembleDebug is my task name so you should change it by your gradle task name

 ./gradlew cleanBuildCache clean assembleDebug --configure-on-demand -x test

Volley

adb shell setprop log.tag.Volley VERBOSE

reset

rm -fr .idea
rm -fr ~/.gradle

then build

jarsigner

jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore /path/to/keystore -signedjar app/build/outputs/apk/release/app-release-signed.apk app/build/outputs/apk/release/app-release-unsigned.apk keystorealias

How to pick up realm file

$ adb shell
$$ run-as ${package.name}
$$ ls -laF files/
$$ cat files/default.realm > /sdcard/Download/default.realm
$$ exit
$$ exit
$ adb pull /sdcard/Download/default.realm .

Top comments (0)