How to Hack Your Nano / Nike+ Run Data When iPod Freezes
March 2, 2008 – 4:28 pm by gabeToday was my weekly Team in Training run — I’m training for and planning to run a marathon to raise money for blood cancer research — and 6.61 miles into the run, my iPod Nano froze on me for the first time in the month that I’ve had it (yes, it let me down after I raved about it in my last post). I was really upset that I was not only going to lose my run data, but that I wouldn’t get the mileage credit for the Articulate miles challenge. I ended up doing another 2+ miles for a total of 8.78 miles.
So on my drive home from the run, aside from being bummed, I started thinking about how to fix this. I thought that there had to be some way to hack into the iPod to recover my lost run data — or at least simulate the run based on similar run data.
Sure enough, I was right: My run data was lost during the iPod crash, but I was given the opportunity to tackle a fun technology challenge.
I got home and started doing some Google searches to research the topic before I just started digging into my iPod’s hard drive. I found a couple resources with the info I needed — “MadeUpName’s” method outlined on runpl.us and WalkBlogRun’s method here — and pieced together my own approach that did the trick beautifully.
Here’s how I did it — proceed with caution and at your own risk to your data and software:
The Setup
Hacking your iPod’s run data requires that you create and edit XML files, so before you can do that, you need to confirm two things (both were already the case for me):
- Make sure iPod is set to be a disk (check the Enable disk use box on your iPod Summary tab in iTunes).
- Make sure you can see hidden system files & folders in Windows (XP how-to | Vista how-to).
The Backup
As is the case whenever you’re editing pretty much anything — especially files that help drive your iPod and iTunes software — always make a backup first since you never know what might happen:
- Connect your iPod to your computer.
- Navigate to this path (yours may vary):
G:\iPod_Control\Device\Trainer\Workouts\Empeds\<unique ID> - Copy the entire contents of that folder to your hard drive (2 folders — latest and synched, and 5 files — best, calibration, settings.plist, lastWorkout.xml, and preferences.xml).

The Hack
Now that you’ve backed up the key files, you’re ready to get down ‘n dirty. It just so happened that, in my case, the run I did today was the same run I did a couple weeks ago (February 16) in terms of location, mileage, and rough pace. So that made copying the run data fairly easy. Along with that, I also wanted to ensure my last workout and workout summary data were correct.
So there are 3 things you need to do:
- Create or copy your new run data (the XML file named after the date & completion time of your run — e.g., 2008-03-02 08;14;25.xml — that’ll begin with the <sportsData> tag inside the file) to your latest folder.
- Update your lastWorkout.xml file.
- Update your preferences.xml file.
Those last two files are used to display your run summary data in both iTunes and in your iPod. Here’s what the screen with that info looks like in iTunes:

So here’s what I did for each of the above steps:
1. Copying run data.
The first thing I needed to do was to re-create today’s lost run data file by duplicating the data for the last time I did the run and update it with today’s date:
- Opened the synched folder and located the data file for the last time I did this run (2008-02-16 08;14;25.xml).
- Copied 2008-02-16 08;14;25.xml to my desktop.
- Opened 2008-02-16 08;14;25.xml with Notepad.
- Located the two references to the date & time of the run — in the <time> and <startTime> tags — and changed the values to today’s date (run start time was the same today and last time I did the run):

- Saved the file & renamed it to match today’s date and run finish time (2008-03-02 08;14;25.xml).
- Copied this new file to the latest folder on my iPod — the staging area for runs that have yet to be snyched with iTunes.
Note: I left all other run data the same in my run data file, but you’ll see that you can update all kinds of data to match your estimated values for your run, including these:
- <duration>
- <distance> (in both km and miles)
- <calories>
- <pace>
You’ll also notice in the middle of your run data file that your iPod records your run distance every 10 seconds. Pretty cool stuff.
2. Updating lastWorkout.xml.
Next, I needed to copy key portions of today’s run data to the lastWorkout.xml file, so here’s what I did:
- Opened up both 2008-03-02 08;14;25.xml and lastWorkout.xml in Notepad.
- In my run data file, copied from the beginning of the <time> tag to the end of the <lifetime> tag; this includes all the relevant data you need to paste into lastWorkout.xml.
- Pasted this data into lastWorkout.xml, overwriting the existing values, of course.
- Referred to my last run data XML file to update lifetime stats in this section to include this latest run data.
- Saved lastWorkout.xml.
3. Updating preferences.xml.
Finally, I needed to do some basic math to update my total run data to reflect today’s run:
- Opened both 2008-03-02 08;14;25.xml and preferences.xml in Notepad.
- Incremented my <TotalWorkouts> value by 1 (from 11 to 12).
- Updated the <TotalCalories> value by adding the <calories> value from today’s new run data file.
- Updated the <TotalSeconds> value by taking the <duration> value from my run data file, minus the last 3 digits since your run data files measure to the thousandth of a second (in my case, the <duration> value was 4236763, so I took 4236 and added it to 30529 to get 34765, which, when converted to hours, checks out to be my correct total: 9.6 hours).
- Updated the <TotalDistanceMiles> to include today’s mileage.
- Updated the <TotalWeightWorkouts> value to 12.
- Left everything else — like <FarthestMile> and <TotalMarathon> — the same since my longest distance still stands at 10.02 miles (last Sunday) and since I haven’t yet run a marathon.
- Saved the file.
So that’s it! You’re done with the hard part.
The Confirmation
The only thing left to do is to confirm that your hacks worked as expected (you did back up your original files, right?). Here’s what I did to confirm:
- In iTunes, ejected my iPod.
- Unplugged my iPod and went to the Nike+ screen to confirm my latest run and new totals were reflected.*
- Plugged my iPod back into my computer & confirmed latest run & summary data were reflected.
- Synchronized my data and uploaded the run to my Nike+ site (I had to login to my nikeplus site again).
* At first, my summary data was showing up in iTunes, but not in my iPod, so I did a force reset using the method suggested by Apple, and after that, the new summary data appeared as expected.
Success! I learned a fun hack and can now rest assured that my run data — at least the mileage totals — remains (mostly) accurate.
Have fun and remember: If you use this method to fabricate run data, you’re cheating no one but yourself.
Hi, I'm Gabe Anderson. I've published more than 2,000 personal and professional blog entries on my other blogs since 2000.
33 Responses to “How to Hack Your Nano / Nike+ Run Data When iPod Freezes”
Hi this is great info! I’ve had many instances of ipod/nike transmitter lock up then losing valuable run data. As a matter of fact, theres lot of other users who posted the same dilemma to the nike website. One would hope its not a bug or worst a hw issue on the nano… Thanks for the valuable info again!
By Czarina Spieler on May 8, 2008
Glad you found this helpful, Czarina! I’ve had to follow my own steps more than once.
I’ve also used this site to supplement my instructions — it makes the part about creating your own run data file a bit easier.
By gabe on May 8, 2008
you are a legend…..thanks very much!!
no idea why it happened in the first place but now know what to do if it ever happens again
By Nick Carpanini on May 11, 2008
Could you do a video of how to do this? I am lost with the xml.
By Jason on May 26, 2008
While attempting this I accidentally deleted the run I need to sync. I did however show up in iTunes, but it didn’t share over to N+. Any idea what I can do to rescue my lost run?
By Jason on May 26, 2008
Jason, it may still be in your history folder. If its there, just move it to the latest folder and resynch your ipod. Otherwise, if its simply gone, just recreate the xml file by following Gabe’s step he has graciously enumerated and you should be good to go. Goodluck!
By Czarina Spieler on Jun 11, 2008
Is there anyway to alter the font size of the status screen? I would prefer to see the distance in large font vs. the time. nike says it’s on the wishlist… Thanks, JB
By JB on Jul 25, 2008
Thank you SO MUCH! I lost my run data yesterday and was of course more than a little irritated. Really happy that it turns out that that run wasn’t lost after all.
By Curtis on Sep 23, 2008
I do have one question. My miles are now showing up in iTunes and the Nike+ website is showing that I did my run yesterday and miles have updated, but it’s not updating the number of runs from 28 to 29. Did I do something wrong or will this resolve itself later? Thanks again.
By Curtis on Sep 23, 2008
No problem, Curtis! Glad this was helpful for you. As for the run count on the Nike+ site, I think sometimes some of the data gets cached, so it may eventually be correct… although you may have also missed one of the updates. If you search for the number of old runs (28) in your XML files, do you find that value anywhere?
By gabe on Sep 23, 2008
Hi JB- Sorry for the delay in response… but I don’t think it’s possible to change the font display size.
By gabe on Sep 23, 2008
This is a great thing here, but how could I use this with my Nike+ sportsband? I would love to recover some lost runs
By Melissa on Nov 3, 2008
I just ran the Las Vegas marathon (12/7/08) and my iPod froze up at 20.40 miles, the very time I need my playlist the most! This was the 2nd time it froze, the other on a 15-mile training run, it’s weird because when it freezes your music stops and the display stops updating but you will get 1 or 2 more Nike+ voice notices that you’re at the next mile. It’ll only do that 1 or 2 times then completely freezes (no additional “announcements”). I’ll definately have to try this out. I’m hoping the vendor (I’m assuming this is an Apple problem) is aware of this. Anyone know if it’s been fixed?
By Todd on Dec 12, 2008
Congrats on the marathon, Todd! How’d you do (despite your iPod freezing)?
I actually ran the California International Marathon that same day and my Garmin Forerunner 305 didn’t let me down (yup, I upgraded earlier in the year). I’d highly recommend a Garmin… much more accurate and reliable than Nike+.
And sorry, don’t know any more about the freezing issue…
By gabe on Dec 12, 2008
Are these the only folders used by Nike+ on ht Ipod Nano? I’m trying to make my Ipod Nanao to think it has Nike+ installed as I would like to use it as a pass trough for my Garmin data to the Nike+ website…
Would it be possible to send me a copy of the files in the iPod_Control\Device\Trainer\Workouts\Empeds\ so I can tweek them for my purpose…
greetings
Wim
By Wim on Dec 21, 2008
Great idea, Wim! I’ve actually moved from the Nike+ to Garmin Forerunner 305 and would be interested in doing this, too. Make any progress?
I’m away from my Nike+/iPod now, but can look into this for you if you haven’t made any progress yet.
By gabe on Dec 28, 2008
I have this xml data that I quickly did to see if I could use it as a template to upload different data:
2
2009-01-15T15:38:01-05:00
75726
1:15
0.1718
0.10 mi
11:49 min/mi
9
15104
15146
29014
29126
8D495DCE
4H820FVSVSX
51.3
iPod
000000004170000001fe00230000000041f0000004a100000000280000000000
2009-01-15T15:38:01-05:00
66073
0.168
600289
73676
0.172
0
75695
0.172
0
0.0, 0.0256, 0.0494, 0.0727, 0.1005, 0.1289, 0.157, 0.1718
for some reason every time I attempt to upload just this data it gives me a “nike plus server validation error”…do you know why this would be happening?
I’m simply opening the xml data in notepad, editing various things, and then saving as 2009-01-15_05.xml…even if I change none of the data, when I open the file and just resave and try to re-sync it, it gives me the same error. any help would be greatly appreciated…thank you
By Melissa on Jan 15, 2009
I’ve been using Nike+ with my 1st gen Nano for 1.5 years. No problems until I got a new sensor a couple of weeks ago. Ever since then my distances & times have been wonky. I was going to dive into editing the XML files this weekend, and I’m glad to see someone had already tested this and it works!
I’d love to upgrade to a Garmin, but can’t justify the expense since I run on the treadmill for all but my weekend long run.
Happy running!
By Jessika on Jan 22, 2009
you are my hero!
By Robin on Jan 31, 2009
Hi,
This guide is just the job
However, can you elaborate when you say in 2. above “Referred to my last run data XML file to update lifetime stats in this section to include this latest run data. ”
is there further editing to be done in the LastWorkout.xml other than the paste of the data from the other xml?
thanks
Pete
By Pete on Feb 17, 2009
Hi Pete- Glad to hear this helped you out!
What I meant by that part, as I recall, was that I just added the values (time, distance, etc.) from the lost workout to the total, so that the lifetime stats total in the summary would be accurate.
Hope you got it figured out!
By gabe on Mar 1, 2009
I couldn’t believe how depressed I was when my transmitter froze, and my 5 mile run yesterday became 3. I am in a challenge and showed poorly. great info!
By aj on Apr 6, 2009
Hey this seems like good info but how do I do this with a MAC computer and not a PC?
By Julie on Apr 21, 2009
Hi Julie- I haven’t tested on a Mac, but I’d imagine it would be pretty similar. Maybe someone who finds this can share Mac-specific steps. Good luck!
By gabe on Apr 25, 2009
Hi Gabe. Your hack is great and I’ve used it once before when I lost a run. However, this time, I don’t appear to have a lastWorkout.xml file at all to update. Any ideas what I can do about that?
By Clare on Jun 5, 2009
Don’t worry, I copied it back in from my backup data (phew,thank goodness for backups!!!)
By Clare on Jun 5, 2009
Hi Clare- Glad this has been helpful for you, and good news about your backup! Glad you recovered it after all.
By gabe on Jun 5, 2009
I ran 14.10 miles today and at 13.77, my IPOD froze (music stopped and time and mileage did not change). I found your website and was able to recover my run; however, my confidence in Nike+ is a bit shaken! Can you tell me about the Garmin? Why is it a good next step?
Thanks a million for the info!
T
By Tina on Jun 13, 2009
Hi Tina- Sorry you lost your run data. That’s one of the really annoying things about Nike+. I also found that it wasn’t too accurate and that I was always tweaking with the calibration.
With a Garmin Forerunner (I have the 305 - wrote about it here), you just don’t have to worry about either of those things. It’s a GPS watch, so it’s a lot more accurate (typically within 20 feet), there’s no calibration, and it’s incredibly reliable (disclaimer: my original did crap out at one point - kept turning off when I pressed any button - but it was still under warranty so I got it replaced for free).
You also get access to the really cool Garmin Connect site (I wrote about it here).
The FR 305, 405, and others also come with a heart rate monitor, and monitoring your heart rate is a really good way to measure your training effectiveness for different types of workouts (based on % of maximal HR).
By gabe on Jun 24, 2009
A lot of people have run into the problem that their first sync after their first run doesn’t work and that their first run data never makes it up on to the Nike website. Well just by moving the data file from the “synced” directory to the “latest” directory on the iPod you solve the problem. The only issue I had is that the date of the run that I did this with was off by a month. But at least I kept the basic data.
By Bruce on Jun 24, 2009