Skip to content

Commit

Permalink
support legacy ota
Browse files Browse the repository at this point in the history
  • Loading branch information
cfig committed Jan 18, 2024
1 parent 374aab8 commit 657b2d4
Show file tree
Hide file tree
Showing 665 changed files with 111,757 additions and 7 deletions.
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
.idea
.gradle
build/
local.properties
.classpath
.project
.settings
__pycache__
aosp/bouncycastle/bcpkix/bin/
aosp/bouncycastle/bcprov/bin/
aosp/bouncycastle/bcpkix/build/
aosp/bouncycastle/bcprov/build/
aosp/apksigner/build/
aosp/boot_signer/build/
aosp/libavb1.1/build/
aosp/libavb1.2/build/
helper/build/
lazybox/build/
avbImpl/build/
bbootimg/build/
38 changes: 38 additions & 0 deletions aosp/apksigner/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
plugins {
java
application
}

version = "1.0"

repositories {
mavenCentral()
}

application {
mainClass.set("com.android.signapk.SignApk")
}

dependencies {
implementation(project(":aosp:bouncycastle:bcpkix"))
implementation(project(":aosp:bouncycastle:bcprov"))
}

tasks {
jar {
manifest {
attributes["Implementation-Title"] = "AOSP ApkSigner"
attributes["Main-Class"] = "com.android.signapk.SignApk"
}
from(configurations.runtimeClasspath.get().map({ if (it.isDirectory) it else zipTree(it) }))
excludes.addAll(mutableSetOf("META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"))
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
dependsOn(":aosp:bouncycastle:bcpkix:jar")
}
test {
testLogging {
showExceptions = true
showStackTraces = true
}
}
}
Loading

0 comments on commit 657b2d4

Please sign in to comment.