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 .

Sentry blog image

The Visual Studio App Center’s retiring

But sadly….you’re not. See how to make the switch to Sentry for all your crash reporting needs.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs