DEV Community

r_tanaka
r_tanaka

Posted on

2 2

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 .

AWS Industries LIVE! Stream

Business benefits of the cloud

Join AWS experts and tech leaders as they discuss the business impact of the cloud on Industries LIVE!

Learn More

Top comments (0)

👋 Kindness is contagious

If this post resonated with you, feel free to hit ❤️ or leave a quick comment to share your thoughts!

Okay