I try to access sms db file in xcode but fail.
I know its path that is "/private/var/mobile/Library/SMS/sms.db"
When i try to access. the file read no permission error occur.
Is any way to access sms db file or change its permission in xcode. Thanks in advance.
The code which i try on iphone jailbroken is
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *path = @"/var/mobile/Library/SMS/sms.db";
NSError *error;
NSArray *content = [fileManager contentsOfDirectoryAtPath:path error:&error];
NSLog(@"%@", error);
NSLog(@"Content: %@", content);
if ([fileManager isReadableFileAtPath:path]) {
NSLog(@"");
NSLog(@"ReadAble");
}
else {
NSLog(@"Not readable");
}
if ([fileManager fileExistsAtPath:path])
NSLog(@"File Exist");
else
NSLog(@"No");
further when i try to call_history.db file . it is accessible. but sms.db not.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…