-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.openProcStat(serial[, callback]) Android 7 #66
Comments
Run |
with adb shell cat /proc/stat i have permission to access file! |
Hmmm that's weird... what's the model? Run |
List of devices attached |
Hi, XXXXXXXXXXX device usb:336592896X product:LON-L29 model:LON_L29 device:HWLON (Huawei Mate 9 Pro) |
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!
The text was updated successfully, but these errors were encountered: