[TIMOB-16265] Android: Got EPERM, app crashing while trying to access protected folder with Genymotion emulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2014-01-21T07:34:35.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | android, triage |
Reporter | Ivan Grunev |
Assignee | Chris Barber |
Created | 2014-01-15T08:38:16.000+0000 |
Updated | 2017-03-20T22:18:59.000+0000 |
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");
[~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.
Dupe of TIMOB-16074.
Closing ticket as duplicate.