用户删除我的 iOS 应用程序后如何存储本地数据?
我认为这是不可能的,因为所有数据都存储在沙箱中,当用户删除应用程序时,所有数据都应该从设备中删除。
但不知何故,这种情况发生了:
我从应用商店下载了一个壁纸应用程序。
这是一个免费的应用程序,如果你不付费,你可以下载有限的壁纸,最多105张。
- 我下载壁纸并保存到我的相册中。现在是 1/105。
- 我删除了应用程序,并删除了相册中的壁纸。
我关闭了iCloud备份功能。 好的,它已经从我的设备中完全删除了,对吗?
我再次下载。
- 我进入飞行模式,因此没有互联网连接。
- 我打开应用程序,无法从互联网下载壁纸预览。
但保存次数显示为1/105!
我不是想偷他们的壁纸,我已经四个月没有换壁纸了。我只是想知道,这个应用程序怎么知道我已经保存了 1 张壁纸?
- 我删除了该应用程序。所以它不存储在应用程序文档或 tmp 文件夹中。
- 我删除了我相册中的壁纸,所以它无法从我相册的 MD5 中获取它。
- 我处于飞行模式,因此无法从他们的服务器或互联网上的任何地方获取它。
有人知道这个应用程序在哪里存储保存/下载计数吗?
I thought it's impossible, because all the data store in a sandbox, when user delete the app, all the data should be removed from the device.
But somehow, this happened:
I downloaded a wallpaper app from the appstore.
It's a free app, if you don't pay, you can download limited wallpapers, up to 105.
- I download a wallpaper and save to my album. it's now 1/105.
- I delete the app, and delete the wallpaper in my album.
I turn off the iCloud backup function.
OK, It's totally removed from my device, right?I download it again.
- I enter flight mode, so there is no internet connection.
- I open the app, no wallpaper preview can be download from internet.
But the save count shows 1/105!
I'm not trying to steal their wallpapers, I did not change my wallpaper for 4 months. I just wanna know, how can this app know I saved 1 wallpaper already?
- I delete the app. so it's not store in the app documents or tmp folder.
- I delete the wallpaper in my album, SO it can't get it from an MD5 of my album.
- I am in flight mode, so it can't get it from their server or anywhere on the internet.
Anyone knows where this app stored the save/download count?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这很可能是使用 iOS 上的钥匙串完成的。
在这里阅读:
https://developer.apple.com/library/mac/documentation/安全/参考/keychainservices/Reference/reference.html
This is done using the keychain on iOS most likely.
Read up on it here:
https://developer.apple.com/library/mac/documentation/security/Reference/keychainservices/Reference/reference.html