Make the simulator handle paths like '//data/data/...' the same way the device does.

This commit is contained in:
Marco Nelissen
2009-05-05 14:54:14 -07:00
parent 816ba073c6
commit 47acf13773

View File

@@ -127,6 +127,7 @@ static const char* rewritePath(const char* func, char* pathBuf,
*/
if (origPath[0] != '/')
goto skip_rewrite;
while (origPath[1] == '/') origPath++; // some apps like to use paths like '//data/data/....'
if (memcmp(origPath+1, "system", 6) == 0 &&
(origPath[7] == '/' || origPath[7] == '\0'))
goto do_rewrite;