Jump to content

[How To] Enable "Find My Mac" with a FAKE Recovery HD *UPDATED*


  • Please log in to reply
49 replies to this topic

#1
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
Hi,
I have made some experiments on "Find My Mac" and i found some interesting results:

1) to get Fmm working -> Guid + recovery hd partition are needed
2) i was able to reduce recovery hd partition to 50 mb ( deleting SystemBase.dmg)
3) when Find My Mac option is checked are created some files on hdd
4) UUID of recovery hd partition is used to identify Pc. ( apple uses This because primary OS partition can be deleted and reinstalled, but Recovery Hd was supposed to be untouched ...)
5) i found the file which apple use to enable find my mac is under /user/library/preferences
6) find my mac relies on location service and location service relies on wifi ...
7) so simply on desktop computer without wifi find my mac is switched off on reboot process ...
8) i write a script which turn on automatically FMM when we boot on desktop pc
9) when we switch on Fmm pc connect to some ip on the net
10) i was able to send messages alerts from icloud.com to my hackintosh
11) because i test on desktop pc location service wasn't start and i wasn't able to see where was my pc ( hmmm.. In front of me on my table ?? May be ???) http://www.insanelym...IR#/biggrin.png

And Now How to use a Fake "RecoveryHD" and how to solve disabling "Find My Mac" option after a reboot ...

Pre-requisites:
Hackintosh with OSX Lion 10.7.2 installed on
GUID partition
my FAKE Recovery HD partition ( 50 Mb - used only 17 mb - so you can shrink more even to 20Mb)

HOW TO use a Fake "RecoveryHD" :
Create a partition with Disk utility and name it Recovery HD ( 50 Mb HFS+ journaled) after
OSX Lion primary partition.
Result should be:
GUID Scheme
- EFI
- OSX LION
- Recovery HD

Using Disk utility restore my RecoveryHD.dmg into Recovery Hd partition

Using terminal insert these commands:
sudo -i
diskutil list (find what disk is recovery HD .. disk0s3 ..)
diskutil unmount disk0s3
asr adjust --target /dev/disk0s3 -settype "Apple_Boot" --> very important

Go into iCloud Prefpannel and select "Find My Mac" now can be checked ...



HOWTO Reset "Find my Mac" on after reboot [UPDATED]

There is file MobileMeAccounts.plist in /Users/username/Library/Preferences/
this is the right file .. Eh Eh ( I found it after a little search on HDD) http://www.insanelym...O_DIR#/wink.png
inside look at

<key>Name</key>
<string>Find My Mac</string>
<key>ServiceID</key>
<string>com.apple.Dataclass.DeviceLocator</string>
<key>Enabled</key>
<false/> -> must be set to true

So or we turn on every time we boot from iCloud PrefPannel or


We use a script to do this at boot time ... Thanks to Lebowski1970 http://www.insanelym...umbsup_anim.gif -see his later post

1) Copy the Script plist file named com.nvram.root.plist on /Library/LaunchDaemons
and them change permissions by terminal with

sudo chown root:wheel /Library/LaunchDaemons/com.nvram.root.plist

2) Go to iCloud preferences panel and active FMM.

3) Verify nvram state by terminal... look for 2 keys named fmm-mobileme-token-FMM and fmm-computer-name.
If both keys are present and populated is OK
nvram -p

4) Dump nvram content to a file named nvram.log with

sudo nvram -p > nvram.log
and copy to /var/log


Now ... Find my Mac works after Reboot or shutdown!!!!

Tips : if you wanna stop the FindMyMac service you have to delete /var/log/mvram.log file and /library/LaunchDaemons/com.nvram.root.plist file . !
Otherwise if you simply deselect it from iCloud control panel, on reboot FindMyMac starts again ...

Cheers

PippoX0

-------------------

Fake Recovery HD OSX Lion
Attached File  RecoveryHD.zip   6.23MB   1424 downloads

com.nvram.root.plist
Attached File  com.nvram.root.zip   385bytes   882 downloads

For :
Fake Recovery HD OSX Montain Lion -> see my other post on page 3
Fake Recovery HD OSX Mavericks -> see my other post on page 3

#2
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
Great! now it all works! I wouldnt NOT use a script to enable it. Thats not very Vanilla.

And I would really sugest making this Apple_Recovery partion the correct way. Using the terminal.

http://dmitry-dulepo...-revisited.html

I also sugest you make the Apple_Recovery HD 650mbs! Apple will update the Recovery Software at somepoint and if you only have 50mbs like you sugested there wont be enough room for anything to be honest.

Real Macs have this partition at 650mbs I would do the same.



Happy iClouding!

#3
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
Are you sure that its the mobilemeaccounts.plist that you are editing?

I don't have

<key>Name</key>
<string>Find My Mac</string>
<key>ServiceID</key>
<string>com.apple.Dataclass.DeviceLocator</string>
<key>Enabled</key>
<false/> -> must be set to true

#4
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
Yes, i'm sure ...
Use showHidden Files

Look inside at that file (MobileMeAccounts.plist) with Property List Editor
Root ->Accounts -> Services->7-> Find My Mac

Edited by Gringo Vermelho, 22 March 2012 - 04:30 PM.
Please don't quote entire posts when replying directly below them.


#5
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
weird, I don't have the

<key>Name</key>
<string>Find My Mac</string>
<key>ServiceID</key>
<string>com.apple.Dataclass.DeviceLocator</string>
<key>Enabled</key>
<false/> -> must be set to true

Can you upload your mobilemeaccount.plist file?

Attached File  Screen_Shot_2011_10_29_at_14.16.26.png   27.7KB   269 downloads

#6
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
Are you kidding me ??
From the pic you have posted, you are there where you should be ...

Set Enabled to Yes and you have finished your work

p.s i used .plist converted to plain text because is more readable, but binary .plist is the same ..

Cheers

PippoX0

#7
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
I am not kidding! Your guide says:

<key>Name</key>
<string>Find My Mac</string>
<key>ServiceID</key>
<string>com.apple.Dataclass.DeviceLocator</string>
<key>Enabled</key>
<false/> -> must be set to true

But mobilemeaccounts.plist doesn't have any of that in it.

Where did you get this information from? My mobilemeaccounts.plist docent have 'False' or 'True' it has 'yes' and 'no'

Anyway when you select it to YES and reboot Find My Mac is still un ticked..

#8
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
Hi,
I have pasted in my previous post the plain text of MobileMeAccounts.plist.
As i just said i found the "flag" that enable the Find My Mac service ...
The flag is turn automatically off on rebooting so or you use script to automatically trun on or you turn on manually ...

If you change Enabled to Yes = boolean to true and you go to iCloud PrefPannel you see that the service is enabled ..
If you reboot you loose the flag ... I explained that ...

So i said i found where put our hands on ...

PippoX0

#9
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
Ahh! all we need now is to get it to stay to YES! wonder how we could do that? Bootloader?

#10
Onixs

Onixs

    Since 2007

  • Members
  • PipPipPipPipPipPipPip
  • 808 posts
  • Gender:Male
Default write perhaps ?

#11
iStigPL

iStigPL

    InsanelyMac Protégé

  • Members
  • Pip
  • 26 posts
it's not working for me... when I'm changing Enabled value in plist for True and want to see iCloud settings it automatically changing it for False.... Also please noticed when I'm changing iCloud setting then value in plist is also changing.

#12
Logicpro9_user

Logicpro9_user

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 193 posts
  • Gender:Male
same for me, wonder if we could change permissions on this file so it won't change?

#13
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
[Update]
Hi All,
the process to enable Find my Mac, after reboot, seems harder than i supposed it to be ...

I found out some others info which i share :

These deamons are needed to be running to be sure FindMayMac works properly

- locationd
- FindMyMacd
- aosnotifyd
- applepushserviced

(These daemons start when we check iCloud PrefPannel FindMyMac option )

the relatives .plist are located on folder /System/Library/LaunchDaemons/

- com.apple.locationd.plist
- com.apple.FindMyMac.plist
- com.apple.FindMyMacMessanger.plist
- com.apple.AOSNotificaionFMM.plist
- com.apple.applepushservice.plist

Other interesting .plist are on /Library/Preferences/ folder

- com.apple.FindMyMac.plist -> this only reports FMMStatus -> Boolean -> Yes/No

I'm trying some tricks to start manually the daemons .... by terminal ..

sudo launchctl load /System/Library/LaunchDaemons/com.apple.FindMyMac.plist ...

Until now i don't have found yet the right solution ... :D


Cheers

PippoX0

#14
D-an-W

D-an-W

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 452 posts
I take it from reading this that you folks have the same problem as me, "Find My Mac" won't stay ticked after a reboot?

I have created the Recovery HD and once ticked after a reboot Find My Mac correctly locates my iPhone 4, iPad, iPad 2 and Mac Pro (Hack).

I'll have a look at the file PippoX0 mentioned to see if I have the entries...

#15
telepati

telepati

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 139 posts
  • Gender:Male
  • Location:istanbul
How to Enable Location Services Im using internet with Wi-Fi adaptor but still looking unactivate and grey uncheck. How to activate it?

#16
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
From System Preferences -> Privacy

#17
telepati

telepati

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 139 posts
  • Gender:Male
  • Location:istanbul
Man I know where it is. Its looking grey and uncheck I cant check it. How to opening this and add thick.
Please dont say Lock and write admin password. I tried that already. All the time looking grey and close.

#18
pippox0

pippox0

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
Sorry, I misunderstood.
I will look to reproduce your problem and find out a Fix

#19
telepati

telepati

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 139 posts
  • Gender:Male
  • Location:istanbul
Thank you.

#20
telepati

telepati

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 139 posts
  • Gender:Male
  • Location:istanbul
By the way did you find any solution for after booting. Cause this is not working!

<key>Name</key>
<string>Find My Mac</string>
<key>ServiceID</key>
<string>com.apple.Dataclass.DeviceLocator</string>
<key>Enabled</key>
<false/> -> must be set to true





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy