For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check device's app package + Signature + Domain handler | |
adb shell dumpsys package d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#create ssh key with specified location and name | |
ssh-keygen -t ed25519 -f ~/.ssh/key_name -C "[email protected]" | |
eval "$(ssh-agent -s)" | |
open ~/.ssh/config | |
#in case config file does not exist | |
touch ~/.ssh/config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afterEvaluate { | |
if (project.hasProperty("android.injected.signing.store.file")) { | |
println "key store path: ${project.property("android.injected.signing.store.file")}" | |
} | |
if (project.hasProperty("android.injected.signing.store.password")) { | |
println "key store password: ${project.property("android.injected.signing.store.password")}" | |
} | |
if (project.hasProperty("android.injected.signing.key.alias")) { | |
println "key alias: ${project.property("android.injected.signing.key.alias")}" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//delegate | |
class DistanceCalculator() { | |
fun calculate(vihecle: Vihecle, time: Float): Float { | |
return vihecle.speed * time | |
} | |
} | |
abstract class Vihecle(open val speed: Float, val model: String) { | |
//use the delegate instead of override travel function in each subclass | |
val distanceCalculator = DistanceCalculator() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -storepass abcdxyzt1234 -keystore my-key.keystore app-release.aab alias_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmd /c "jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -storepass abcdxyzt1234 -keystore my-key.keystore app-release.aab alias_name" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
signingConfigs { | |
release { | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null | |
storePassword keystoreProperties['storePassword'] | |
} | |
} | |
buildTypes { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ex: adb shell input keyevent 22 | |
usage: input [text|keyevent] | |
input text <string> | |
input keyevent <event_code> | |
0 --> "KEYCODE_UNKNOWN" | |
1 --> "KEYCODE_MENU" | |
2 --> "KEYCODE_SOFT_RIGHT" | |
3 --> "KEYCODE_HOME" |
NewerOlder