d0e1cf6a93
This app simply communicates with the vendor.qti.hardware.radio.am hal and sets the callbacks required for functional incall audio. The interface definition of the hal was taken from: https://github.com/phhusson/treble_experimentations/tree/master/interfaces/vendor/qti/hardware/radio/am/1.0
25 lines
756 B
Java
25 lines
756 B
Java
package com.sony.qcrilam;
|
|
|
|
import android.content.BroadcastReceiver;
|
|
import android.content.Context;
|
|
import android.content.Intent;
|
|
import android.util.Log;
|
|
|
|
public class BootReceiver extends BroadcastReceiver {
|
|
private static final String TAG = "QcRilAm-BootReceiver";
|
|
|
|
@Override
|
|
public void onReceive(Context context, Intent intent) {
|
|
if (context == null || intent == null) {
|
|
Log.w(TAG, "BOOT_COMPLETE NULL intent");
|
|
return;
|
|
}
|
|
if (QcRilAmService.isServiceRunning()) {
|
|
Log.d(TAG, "Service is already running");
|
|
} else {
|
|
intent.setClass(context, QcRilAmService.class);
|
|
context.startService(new Intent(context, QcRilAmService.class));
|
|
}
|
|
}
|
|
}
|