Skip to content

Commit

Permalink
Updating Android.bp files (#53)
Browse files Browse the repository at this point in the history
* Adding device target to the Android.bp file

* Changing Android.bp files of baksmali, smali and dexlib2 to match the current AOSP targets
  • Loading branch information
melcz authored Aug 5, 2024
1 parent d09ec39 commit 5320adf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
7 changes: 4 additions & 3 deletions baksmali/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* limitations under the License.
*/

// Create a new baksmali.properties file using the correct version
// Create a new baksmali.properties file using the correct version
genrule {
name: "android-baksmali_version",
defaults : ["android-smali_version_defaults"],
defaults: ["android-smali_version_defaults"],
out: ["android-baksmali.properties"],
}

Expand All @@ -35,6 +35,7 @@ java_binary_host {
manifest: "manifest.txt",

static_libs: [
"guava",
"smali-dexlib2",
"android-smali-util",
"jcommander",
Expand All @@ -43,4 +44,4 @@ java_binary_host {
java_resources: [":android-baksmali_version"],

wrapper: ":android-baksmali_script",
}
}
31 changes: 27 additions & 4 deletions dexlib2/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

java_library_host {
java_library_host {
name: "smali-dexlib2",

srcs: [
Expand All @@ -25,6 +25,12 @@
static_libs: [
"jsr305",
],

errorprone: {
javacflags: [
"-Xep:ComparableType:WARN",
],
},
}

java_library_host {
Expand All @@ -38,6 +44,12 @@ java_library_host {
static_libs: [
"jsr305",
],

errorprone: {
javacflags: [
"-Xep:ComparableType:WARN",
],
},
}

java_library {
Expand All @@ -47,14 +59,25 @@ java_library {
"src/main/java/**/*.java",
":third_party-smali-dexlib2",
],

static_libs: [
"jsr305",
],

sdk_version: "system_server_current",
min_sdk_version: "33",

static_libs: [
"jsr305",
],
optimize: {
enabled: true,
shrink: true,
},

errorprone: {
javacflags: [
"-Xep:ComparableType:WARN",
],
},

apex_available: [
"//apex_available:anyapex",
],
Expand Down
3 changes: 2 additions & 1 deletion smali/Android.bp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ java_binary_host {
manifest: "manifest.txt",

static_libs: [
"guava",
"antlr-runtime",
"jcommander",
"smali-dexlib2",
Expand All @@ -43,4 +44,4 @@ java_binary_host {
java_resources: [":android-smali_version"],

wrapper: ":android-smali_script",
}
}

0 comments on commit 5320adf

Please sign in to comment.