在我的崩溃报告中获取这个奇怪的例外。
Fatal Exception: java.lang.SecurityException
Permission Denial: starting Intent { act=android.intent.action.PICK_ACTIVITY cmp=com.android.settings/.ActivityPicker (has extras) } from ProcessRecord{41bc95c0 6397:com.sampleapp.sample/u0a10087} (pid=6397, uid=10087) requires android.permission.SECURITY_ACTIVITY
受影响的功能
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_TEXT, "Text to share");
Intent intentPick = new Intent();
intentPick.setAction(Intent.ACTION_PICK_ACTIVITY);
intentPick.putExtra(Intent.EXTRA_TITLE, "Share link");
intentPick.putExtra(Intent.EXTRA_INTENT, sendIntent);
this.startActivityForResult(intentPick, REQUEST_CODE_MY_PICK);
它似乎只影响运行And 4.2.2和4.4.2的特定华为设备。