When the micro-channel micro-channel sharing verify client installation, some models reported JavaBinder: !!! FAILED BINDER TRANSACTION !!! (parcel size = 124)
Verification method
try { mContext.getPackageManager().getPackageInfo("com.tencent.mm", PackageManager.GET_ACTIVITIES); return true; } catch (Exception e) { return false; }
Conjecture: Get data packet is too large
Correction method is two-way authentication
if (api.isWXAppInstalled() && api.isWXAppSupportAPI()) { return true; } The else { Final the PackageManager PackageManager = mContext .getPackageManager (); // Get PackageManager List <PackageInfo> pInfo = packageManager.getInstalledPackages ( 0 ); // get all programs installed package information IF (pInfo =! Null ) { for ( int I = 0 ; I <pinfo.size (); I ++) { String pn = pinfo.get(i).packageName; if (pn.equalsIgnoreCase("com.tencent.mm")) { return true; } } } return false; }