am 8597204: Merge change 1015 into donut
Merge commit '85972041d04b24f26000c5504c1afe9d824b6c9a' * commit '85972041d04b24f26000c5504c1afe9d824b6c9a': Make the simulator handle paths like '//data/data/...' the same way the device does.
This commit is contained in:
committed by
The Android Open Source Project
commit
230a15e397
@@ -127,6 +127,7 @@ static const char* rewritePath(const char* func, char* pathBuf,
|
|||||||
*/
|
*/
|
||||||
if (origPath[0] != '/')
|
if (origPath[0] != '/')
|
||||||
goto skip_rewrite;
|
goto skip_rewrite;
|
||||||
|
while (origPath[1] == '/') origPath++; // some apps like to use paths like '//data/data/....'
|
||||||
if (memcmp(origPath+1, "system", 6) == 0 &&
|
if (memcmp(origPath+1, "system", 6) == 0 &&
|
||||||
(origPath[7] == '/' || origPath[7] == '\0'))
|
(origPath[7] == '/' || origPath[7] == '\0'))
|
||||||
goto do_rewrite;
|
goto do_rewrite;
|
||||||
|
|||||||
Reference in New Issue
Block a user