From 47acf13773bfe1bccd58a2d37ed4846dacfde99e Mon Sep 17 00:00:00 2001 From: Marco Nelissen Date: Tue, 5 May 2009 14:54:14 -0700 Subject: [PATCH] Make the simulator handle paths like '//data/data/...' the same way the device does. --- simulator/wrapsim/Intercept.c | 1 + 1 file changed, 1 insertion(+) diff --git a/simulator/wrapsim/Intercept.c b/simulator/wrapsim/Intercept.c index 29b0e0074..49d77ee17 100644 --- a/simulator/wrapsim/Intercept.c +++ b/simulator/wrapsim/Intercept.c @@ -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;