Remove duplicated classes with framework.jar from updatable-media.jar

Bug: 111107855
Test: Sucessfully build with aosp/884112
Change-Id: Ic3c93ab395ccfae6150297bf6447043f928a01c5
This commit is contained in:
Insun Kang
2019-01-30 17:28:47 +09:00
parent 2134893486
commit 291318d5f4
4 changed files with 13 additions and 5 deletions

View File

@@ -744,7 +744,6 @@ java_defaults {
"networkstack-aidl-interfaces-java",
"framework-protos",
"game-driver-protos",
"mediaplayer2-protos",
"android.hidl.base-V1.0-java",
"android.hardware.cas-V1.1-java",
"android.hardware.cas-V1.0-java",

View File

@@ -3,7 +3,6 @@ java_library {
srcs: [
":updatable-media-srcs",
":framework-media-annotation-srcs",
],
aidl: {
@@ -28,7 +27,12 @@ java_library {
installable: true,
// Make sure that the implementaion only relies on SDK or system APIs.
sdk_version: "system_current",
no_framework_libs: true,
libs: [
// The order matters. android_system_* library should come later.
"framework_media_annotation",
"android_system_stubs_current",
],
}
filegroup {
@@ -125,3 +129,8 @@ java_library {
sdk_version: "28",
}
java_library {
name: "framework_media_annotation",
srcs: [":framework-media-annotation-srcs"],
installable: false,
}

View File

@@ -45,8 +45,8 @@ import android.util.Size;
import android.view.Surface;
import android.view.SurfaceHolder;
import com.android.framework.protobuf.InvalidProtocolBufferException;
import com.android.internal.annotations.GuardedBy;
import com.android.media.protobuf.InvalidProtocolBufferException;
import java.io.ByteArrayOutputStream;
import java.io.File;

View File

@@ -1,2 +1,2 @@
rule com.google.protobuf.** com.android.framework.protobuf.@1
rule com.google.protobuf.** com.android.media.protobuf.@1