squashed update

1.enable shell in debug mode
 2.upgrade gradle to 4.4
pull/11/head
cfig 8 years ago
parent 7c617c810b
commit 86eeb8d6cb
No known key found for this signature in database
GPG Key ID: B104C307F0FDABB7

@ -1,5 +1,6 @@
apply plugin: 'c' apply plugin: 'c'
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'groovy' apply plugin: 'groovy'
import java.io.FileInputStream; import java.io.FileInputStream;
@ -43,8 +44,8 @@ project.ext.rootWorkDir = new File(workdir).getAbsolutePath()
def defaultRootDir = workdir + "/root" def defaultRootDir = workdir + "/root"
def sdkVersion = 7; def sdkVersion = 7;
boolean gDebug=true boolean gDebug=true
String activeImg = null String activeImg = "boot.img"
String activePath = null String activePath = "/boot"
if (new File("boot.img").exists()) { if (new File("boot.img").exists()) {
activeImg = "boot.img"; activeImg = "boot.img";
activePath = "/boot" activePath = "/boot"
@ -409,5 +410,5 @@ void verifyClearImages(String... inFiles) {
} }
task wrapper(type: Wrapper) { task wrapper(type: Wrapper) {
gradleVersion = '4.0' gradleVersion = '4.4'
} }

@ -59,3 +59,11 @@ initrcFiles.forEach { it ->
Files.deleteIfExists(File(binTgt).toPath()) Files.deleteIfExists(File(binTgt).toPath())
File(bin).copyTo(File(binTgt), true) File(bin).copyTo(File(binTgt), true)
} }
fun enableShell() {
val bin = "src/resources/console.rc"
val binTgt = workdir + "/root/system/etc/init/" + "console.rc"
Files.deleteIfExists(File(binTgt).toPath())
File(bin).copyTo(File(binTgt), true)
}
enableShell()

Binary file not shown.

@ -1,6 +1,5 @@
#Wed Jul 26 13:02:15 CST 2017
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-bin.zip

@ -0,0 +1,12 @@
service console /system/bin/sh
console
disabled
user root
group root shell log readproc
seclabel u:r:shell:s0
on property:ro.debuggable=*
# Give writes to anyone for the trace folder on debug builds.
# The folder is used to store method traces.
chmod 0773 /data/misc/trace
start console
Loading…
Cancel
Save