xcode에서 sms db 파일에 액세스하려고 시도했지만 실패합니다. "/private/var/mobile/Library/SMS/sms.db"라는 경로를 알고 있습니다. 액세스하려고 시도합니다. 파일 읽기 권한 오류가 발생합니다.iPhone SMS 파일에 액세스
sms db 파일에 액세스하거나 xcode에서 권한을 변경할 수있는 방법은 없습니다. 미리 감사드립니다. 내가 파일을 call_history.db 할 때 내가 아이폰 탈옥에 시도 코드는 더
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");
입니다. 그것은 접근 가능하다. 그러나 sms.db 아닙니다.
* 운좋게도 * Apple은 귀하가 SMS DB와 같은 개인 데이터에 액세스하지 못하게합니다. 내가 원하는대로 내 개인 데이터에 기웃 거리는 앱을 원하지 않습니다. – DarkDust
하지만 개인용 앱에 유용 할 수 있습니다. – Geoffroy