增加签名,优化数据倒灌

This commit is contained in:
2026-02-27 09:53:24 +08:00
parent 8e973eb2e2
commit 67c80de5a3
15 changed files with 263 additions and 54 deletions

View File

@@ -9,6 +9,7 @@ import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.text.TextUtils;
import android.util.Log;
@@ -176,4 +177,15 @@ public class ApkUtils {
return isSystemApp;
}
public static void openAppStore(Context context, String pkg) {
Uri uri = Uri.parse("market://details?id=" + pkg);
Intent storeIntent = new Intent(Intent.ACTION_VIEW, uri);
storeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
try {
context.startActivity(storeIntent);
} catch (Exception e1) {
Log.e(TAG, "openWeixin storeIntent: " + e1.getMessage());
}
}
}