|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
package com.forcetech; |
|
|
|
|
|
|
|
|
|
import android.content.ComponentName; |
|
|
|
|
import android.content.Context; |
|
|
|
|
import android.content.Intent; |
|
|
|
|
import android.net.Uri; |
|
|
|
|
@ -38,6 +39,14 @@ public class Util { |
|
|
|
|
return "lib" + scheme(url) + ".so"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static String trans(ComponentName o) { |
|
|
|
|
String name = o.getClassName(); |
|
|
|
|
name = name.substring(name.lastIndexOf(".") + 1); |
|
|
|
|
name = name.replace("Service", ""); |
|
|
|
|
name = name.replace("MainActivity", "mitv"); |
|
|
|
|
return name.toLowerCase(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static Intent intent(Context context, String url, File file) { |
|
|
|
|
Intent intent = new Intent(context, clz(url)); |
|
|
|
|
intent.putExtra("path", file.getAbsolutePath()); |
|
|
|
|
|