CH34XUARTDriver.jar 這個(gè)jar包在sdk 34平臺(tái)運(yùn)行會(huì)有runtime異常crash
Caused by: java.lang.SecurityException:
One of RECEIVER_EXPORTED or RECEIVER_NOT_EXPORTED should be specified when a receiver isn't being registered exclusively for system broadcasts
拋出點(diǎn)在WCHUARTManager.getInstance()實(shí)例的init方法
查了下原因,應(yīng)該是android.content.ContextWrapper.registerReceiver的方法調(diào)用時(shí)需要加上參數(shù)Context.RECEIVER_EXPORTED
版主確認(rèn)下,看能否修復(fù)下這個(gè)問(wèn)題