Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16265] Android: Got EPERM, app crashing while trying to access protected folder with Genymotion emulator

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2014-01-21T07:34:35.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sn/a
ComponentsAndroid
Labelsandroid, triage
ReporterIvan Grunev
AssigneeChris Barber
Created2014-01-15T08:38:16.000+0000
Updated2017-03-20T22:18:59.000+0000

Description

Comments

  1. Ivan Grunev 2014-01-15

    Okay, seems I found solution. I found that it stops on seeking Oracle VirtualBox executable in my program files folders. And once it gets to protected folder it crashing. Conflict is in Titanium\mobilesdk\win32\3.2.0.GA\node_modules\titanium-sdk\lib\emulators\genymotion.js file So, here is patch: 138,153c138,151 < try { < var files = fs.readdirSync(parent), < i = 0, < l = files.length, < name, file, stat, result; < for (; i < l; i++) { < name = files[i]; < file = path.join(parent, name); < if (fs.existsSync(file)) { < stat = fs.statSync(file); < if (stat.isFile() && name == executableName) { < return file; < } else if (stat.isDirectory() && depth) { < if (result = scan(file, depth - 1)) { < return result; < } --- > var files = fs.readdirSync(parent), > i = 0, > l = files.length, > name, file, stat, result; > for (; i < l; i++) { > name = files[i]; > file = path.join(parent, name); > if (fs.existsSync(file)) { > stat = fs.statSync(file); > if (stat.isFile() && name == executableName) { > return file; > } else if (stat.isDirectory() && depth) { > if (result = scan(file, depth - 1)) { > return result; 157,158d154 < } catch(EPERM) { < console.log("Bad permittions");
  2. Ritu Agrawal 2014-01-21

    [~cbarber] Reporter has suggested to put some code for Genymotion emulator inside try / catch block so I am moving this request to you for further evaluation.
  3. Chris Barber 2014-01-21

    Dupe of TIMOB-16074.
  4. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source