!752 import android.content.*; // Intent import android.app.*; // Activity static S serviceProgID = "#1002655"; p { Class serviceClass = Class.forName("de.tinybrain.javax_allperms.PermanentService"); print("serviceClass: " + serviceClass); if (serviceClass == null) ret; Activity context = getAndroidContext(); print("Context: " + context); context.startService(new Intent(context, serviceClass)); print("Service should be started, looking for instance."); O service = null; for (int i = 0; i < 20*60; i++) { // 60 seconds sleep(50); service = get(serviceClass, "instance"); if (service != null) break; } if (service == null) { print("woot no service?"); ret; } SharedPreferences prefs = cast call(service, "getSharedPreferences"); S id = prefs.getString("serviceprogid", null); if (id == null) { print("No boot program registered."); return; } print("Boot program is " + id); print("Trying to boot it."); call(service, "boot"); }