android_packages_apps_QcRilAm/src/com/sony/qcrilam/BootReceiver.java
oshmoun d0e1cf6a93 QcRilAm: An app to handle QcRilAudio callbacks
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
2018-11-15 11:30:44 +01:00

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));
}
}
}