Nexus 9 support. Home button doesn't work, presumably due to auto-unlocking.

This commit is contained in:
Simo Kinnunen
2014-11-08 13:15:30 +09:00
committed by Kinnunen Simo
parent 28adf6fd96
commit 6b5ecf3afb
7 changed files with 77 additions and 11 deletions

View File

@@ -11,26 +11,31 @@ var streamutil = require('../../../util/streamutil')
module.exports = syrup.serial()
.dependency(require('../support/adb'))
.dependency(require('../support/properties'))
.define(function(options, adb, properties) {
.dependency(require('../support/abi'))
.define(function(options, adb, properties, abi) {
var log = logger.createLogger('device:resources:remote')
var resources = {
bin: {
src: pathutil.vendor(util.format(
'remote/libs/%s/remote%s'
, properties['ro.product.cpu.abi']
, properties['ro.build.version.sdk'] < 16 ? '-nopie' : ''
))
src: pathutil.requiredMatch(abi.b32.map(function(supportedAbi) {
return pathutil.vendor(util.format(
'remote/libs/%s/remote%s'
, supportedAbi
, abi.pie ? '' : '-nopie'
))
}))
, dest: '/data/local/tmp/remote'
, comm: 'remote'
, mode: 0755
}
, lib: {
src: pathutil.vendor(util.format(
'remote/external/android-%d/%s/remote_external.so'
, properties['ro.build.version.sdk']
, properties['ro.product.cpu.abi']
))
src: pathutil.requiredMatch(abi.b32.map(function(supportedAbi) {
return pathutil.vendor(util.format(
'remote/external/android-%d/%s/remote_external.so'
, properties['ro.build.version.sdk']
, supportedAbi
))
}))
, dest: '/data/local/tmp/remote_external.so'
, mode: 0755
}