Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 02-07-2012, 06:16 PM   #1 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 15
eggerr is on a distinguished road
Default How to store local data after user delete my iOS app?

* NOTICE *
IT IS NOT AN AD! I'm in China, I don't know the developers!

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. < HD Wallpapers Stand > ( AGAIN, NOT AN AD )

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?

Last edited by eggerr; 02-07-2012 at 06:19 PM.
eggerr is offline   Reply With Quote
Old 02-07-2012, 08:30 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,002
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by eggerr View Post
* NOTICE *
IT IS NOT AN AD! I'm in China, I don't know the developers!

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. < HD Wallpapers Stand > ( AGAIN, NOT AN AD )

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?

It probably creates a shared keychain entry.

If your company has 2 apps, with the bundle name

com.companyname.appfamily.app1

and

com.companyname.appfamily.app1

You can save entries in your keychain under

com.companyname.appfamily

That will be readable from either app. I don't think such keychain entries are deleted, even if you delete all the apps in that app family.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 02-07-2012, 10:15 PM   #3 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 15
eggerr is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
It probably creates a shared keychain entry.

If your company has 2 apps, with the bundle name

com.companyname.appfamily.app1

and

com.companyname.appfamily.app1

You can save entries in your keychain under

com.companyname.appfamily

That will be readable from either app. I don't think such keychain entries are deleted, even if you delete all the apps in that app family.
This is possible, but it's the only one I install on my iPhone, I don't have any other app from this developer.

So, it still unsolved
eggerr is offline   Reply With Quote
Old 02-08-2012, 01:59 PM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,002
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by eggerr View Post
This is possible, but it's the only one I install on my iPhone, I don't have any other app from this developer.

So, it still unsolved
I believe the that shared keychain Id works even when there's only one app.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 02-08-2012, 07:40 PM   #5 (permalink)
Registered Member
 
Join Date: Nov 2010
Posts: 15
eggerr is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
I believe the that shared keychain Id works even when there's only one app.
Thank you Duncan C, problem solved!

Quote:
Uninstalling an application will not remove the items from the keychain. If you run the demo application on your device, and uninstall the app, the username and password will remain in the keychain (a firmware reset will, of course, remove the keychain values).
eggerr is offline   Reply With Quote
Old 02-11-2012, 09:07 PM   #6 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,002
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by eggerr View Post
Thank you Duncan C, problem solved!
Care to explain? It might help others.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is online now   Reply With Quote
Old 03-15-2012, 09:51 PM   #7 (permalink)
Registered Member
 
Join Date: Mar 2012
Posts: 1
foobar205 is on a distinguished road
Default

I think that I have another question connected with topic but that can't be explained by shared keychain Id.

Some apps remember theirs notifications, location and twitter settings (or permissions) after reinstall. For example, I reinstalled Instagram app, and it remember all these settings (permissions). At the same time, another apps do not remember those stuff.
foobar205 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 420
15 members and 405 guests
AReality, bignoggins, BSH, djqbert, Duncan C, epaga, flamingliquid, jbro, jcdevelopments, leighec68, markolo, nobstudio, revg, Rudy, taylor202
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,645
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, leighec68
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:07 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0