Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FM Radio: do not try to change thread priority

The FM Radio services try to change the current thread when
instantiated, for unknown reason. This actually ends up changing the
priority of SystemServer's main thread. Probably a bad idea. This is
the cause of the various glitch fallout after the FM Radio merges.

Change-Id: I292aff3380c717ff1bc7d45f6303c0d330ef642d
  • Loading branch information...
commit 0429b4c558882ad0bb3aaf5809b0c33af818c556 1 parent a6ab992
@grigorig grigorig authored Gerrit Code Review committed
View
3  fmradio/java/com/stericsson/hardware/fm/FmReceiverService.java
@@ -26,7 +26,6 @@
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.IBinder;
-import android.os.Process;
import android.os.RemoteException;
import android.provider.Settings;
import android.util.Log;
@@ -552,8 +551,6 @@ public FmReceiverService(Context context) {
filter.addAction(Intent.ACTION_DOCK_EVENT);
mContext.registerReceiver(mReceiver, filter);
-
- Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
}
public void start(FmBand band) {
View
3  fmradio/java/com/stericsson/hardware/fm/FmTransmitterService.java
@@ -26,7 +26,6 @@
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.IBinder;
-import android.os.Process;
import android.os.RemoteException;
import android.provider.Settings;
import android.util.Log;
@@ -372,8 +371,6 @@ public FmTransmitterService(Context context) {
filter.addAction(Intent.ACTION_DOCK_EVENT);
mContext.registerReceiver(mReceiver, filter);
-
- Process.setThreadPriority(Process.THREAD_PRIORITY_BACKGROUND);
}
public void start(FmBand band) {
Please sign in to comment.
Something went wrong with that request. Please try again.