Annotate MediaCommunicationService for only >= S
Bug: 183737580 Test: build, boot Change-Id: I9479d05a739ef8070bdeeeda5f819f51c2704afe
This commit is contained in:
@@ -40,7 +40,10 @@ java_sdk_library {
|
||||
],
|
||||
libs: [
|
||||
"updatable-media",
|
||||
"modules-annotation-minsdk",
|
||||
"modules-utils-build",
|
||||
],
|
||||
jarjar_rules: "jarjar_rules.txt",
|
||||
sdk_version: "system_server_current",
|
||||
min_sdk_version: "29", // TODO: We may need to bump this at some point.
|
||||
apex_available: [
|
||||
|
||||
1
apex/media/service/jarjar_rules.txt
Normal file
1
apex/media/service/jarjar_rules.txt
Normal file
@@ -0,0 +1 @@
|
||||
rule com.android.modules.** android.media.internal.@1
|
||||
@@ -32,6 +32,7 @@ import android.media.MediaParceledListSlice;
|
||||
import android.media.Session2CommandGroup;
|
||||
import android.media.Session2Token;
|
||||
import android.os.Binder;
|
||||
import android.os.Build;
|
||||
import android.os.Handler;
|
||||
import android.os.IBinder;
|
||||
import android.os.Looper;
|
||||
@@ -44,6 +45,7 @@ import android.util.SparseArray;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import com.android.internal.annotations.GuardedBy;
|
||||
import com.android.modules.annotation.MinSdk;
|
||||
import com.android.server.SystemService;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
@@ -59,6 +61,7 @@ import java.util.stream.Collectors;
|
||||
* and their ongoing media playback state.
|
||||
* @hide
|
||||
*/
|
||||
@MinSdk(Build.VERSION_CODES.S)
|
||||
public class MediaCommunicationService extends SystemService {
|
||||
private static final String TAG = "MediaCommunicationService";
|
||||
private static final boolean DEBUG = Log.isLoggable(TAG, Log.DEBUG);
|
||||
|
||||
Reference in New Issue
Block a user