綁定 AIDL 服務時,Logcat 輸出警告:Implicit intent used for binding service。
Android 5.0+ 要求服務綁定 Intent 必須顯式(指定包名/組件名),隱式 Intent 存在安全風險。
Intent intent = new Intent();
intent.setAction("com.example.aidl.MY_SERVICE");
intent.setPackage(getPackageName()); // 關鍵:設置當前包名,變為顯式 Intent
bindService(intent, connection, Context.BIND_AUTO_CREATE);
intent.setPackage("com.other.process")