This file contains 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
#_deviceId is lazy variable in the AnalyticsUtils class | |
private fun restoreLazy(execute: () -> Unit) { | |
AnalyticsUtils::class.java.declaredFields | |
.first { it.name.contains("_deviceId") }!! | |
.let { field -> | |
field.isAccessible = true | |
val lazy = field.get(field) | |
val initializer = lazy::class.java.getDeclaredField("initializer").apply { |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am brozikcz on github. | |
* I am brozikcz (https://keybase.io/brozikcz) on keybase. | |
* I have a public key ASD6WqdZO8q-Vk0jU649Wra8KkQIPw2BeOrATftp5uNFAgo | |
To claim this, I am signing this object: |
This file contains 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 | |
adb shell dumpsys deviceidle |grep "mScreenOn=true" > /dev/null | |
if [ "$?" -eq "0" ]; then | |
adb shell input keyevent POWER | |
sleep 2 | |
fi | |
adb shell dumpsys battery |grep "USB powered: true" > /dev/null | |
if [ "$?" -eq "0" ]; then |