return resolveAppName but wrap it in try/catch to be able to fallback
@@ -1048,6 +1048,14 @@ public class RhodesService extends Service {
Context ctx = RhodesService.getContext();
Intent intent = service.getPackageManager().getLaunchIntentForPackage(appName);
+
+ try {
+ service.resolveAppName(appName, intent);
+ } catch ( Throwable e ) {
+ Logger.W(TAG, "Can't resolve app name, will run with default intent: " + appName);
+ Logger.W(TAG, e);
+ }
+
service.parseAppParams(params, intent);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
