// Path: Seraphimdroid/app/src/main/java/org/owasp/seraphimdroid/services/AppLockService.java
// public class AppLockService extends Service {
// 
// 	private Handler handler;
// 	private Context context;
// 	private Thread launchChecker;
// 
// 	@Override
// 	public IBinder onBind(Intent intent) {
// 		return null;
// 	}
// 
// 	@Override
// 	public void onCreate() {
// 		handler = new Handler(getMainLooper());
// 		context = getApplicationContext();
// 		launchChecker = new org.owasp.seraphimdroid.services.CheckAppLaunchThread(handler, context);
// 		super.onCreate();
// 	}
// 
// 	@Override
// 	public int onStartCommand(Intent intent, int flags, int startId) {
// 		while (true) {
// 			if (!launchChecker.isAlive())
// 				launchChecker.start();
// 			return START_STICKY;
// 
// 		}
// 	}
// }


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import org.owasp.seraphimdroid.services.AppLockService;
package org.owasp.seraphimdroid.receiver;



public class LockLauncher extends BroadcastReceiver {

	private static final String TAG = "LockLauncher";
	
	@Override
// Path: Seraphimdroid/app/src/main/java/org/owasp/seraphimdroid/services/AppLockService.java
// public class AppLockService extends Service {
// 
// 	private Handler handler;
// 	private Context context;
// 	private Thread launchChecker;
// 
// 	@Override
// 	public IBinder onBind(Intent intent) {
// 		return null;
// 	}
// 
// 	@Override
// 	public void onCreate() {
// 		handler = new Handler(getMainLooper());
// 		context = getApplicationContext();
// 		launchChecker = new org.owasp.seraphimdroid.services.CheckAppLaunchThread(handler, context);
// 		super.onCreate();
// 	}
// 
// 	@Override
// 	public int onStartCommand(Intent intent, int flags, int startId) {
// 		while (true) {
// 			if (!launchChecker.isAlive())
// 				launchChecker.start();
// 			return START_STICKY;
// 
// 		}
// 	}
// }


// Path: Seraphimdroid/app/src/main/java/org/owasp/seraphimdroid/receiver/LockLauncher.java
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import org.owasp.seraphimdroid.services.AppLockService;

package org.owasp.seraphimdroid.receiver;



public class LockLauncher extends BroadcastReceiver {

	private static final String TAG = "LockLauncher";
	
	@Override
	public void onReceive(Context context, Intent intent) {