Skip to content

client.openProcStat(serial[, callback]) Android 7 #66

Open
@anaraquelazevedo

Description

@anaraquelazevedo

I´m having a problem accessing the data in some mobiles models, with android 7 (for instance, nexus 6). With android 7 i cannot access the system files, proc/stat for example, and since adbkit´s method client.openProcStat(serial[, callback]) tries to read that data. I can´t garantee an appropriate error handling while acessing that data and i get this error:

Unhandled rejection FailError: Failure: open failed: Permission denied'
at /stf/node_modules/adbkit/lib/adb/sync.js:305:33
at tryCatcher (/stf/node_modules/adbkit/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/stf/node_modules/adbkit/node_modules/bluebird/js/main/promise.js:503:31)
at Promise._settlePromiseAt (/stf/node_modules/adbkit/node_modules/bluebird/js/main/promise.js:577:18)
at Promise._settlePromises (/stf/node_modules/adbkit/node_modules/bluebird/js/main/promise.js:693:14)
at Async._drainQueue (/stf/node_modules/adbkit/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/stf/node_modules/adbkit/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (/stf/node_modules/adbkit/node_modules/bluebird/js/main/async.js:15:14)
at runCallback (timers.js:637:20)
at tryOnImmediate (timers.js:610:5)
at processImmediate [as _immediateCallback] (timers.js:582:5)

Can anyone shoot any ideas? or new aproaches to this problem!? Thanx in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions