ModMyMotoModMyiModMyGphone





Unlocked iPhones


  Apple Forums | ModMyi.com | iPhone, iPod, Mac, OS X, Mods, More > Computer Modding Software > OS Apps and Development
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 09:57 AM
Developer
 
Join Date: Mar 2008
Posts: 10
Thanks: 0
Thanked 2 Times in 1 Post
Editing com.apple.springboard.plist without reloading springboard SCPreferences

'm currently building a tool - daemon that will dynamically edit springboard settings depending on what you have loaded on your phone.For that reason im using plutil from Erica's ported utilities to edit ~/Library/Preferences/com.apple.springboard.plist.The main problem lies that no matter what modification I do in that file in order for it to work it needs a springboard restart.

To test it try altering any value with SSH and you will see that even though it shows it changed it will still do what the initial value does till the time you respring.Use autolock time or dim time for easy testing.

Since the prefferences.app manages to load any change on the fly without the need for restart im currenlty in dire need on any idea of how can this be achieved

I do suspect that all I need to do is call SCPreferences or CFPreferences to apply the changes but i have no idea how to do that on the iphone

Any idea is greatly appreciated....
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 04:32 PM
What's Jailbreak?
 
Join Date: Jan 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

theres a tool out there currently that will allow the phone to respring without restarting...
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #3 (permalink)  
Old 07-29-2008, 05:13 PM
What's Jailbreak?
 
Join Date: Jun 2007
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts

I am also looking to build this functionality in my app. I started looking at MakeItMine by Erica Sadun which can apply SBFakeTime SBFakeTimeString and SBFakeCarrier without restarting. I did a little bit of reverse engineering and found this.
Quote:
iPhone:/Applications/MakeItMine.app root# strings MakeItMine
.......
/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
GSSendAppPreferencesChanged
com.apple.springboard
.......
/private/var/mobile/Library/Preferences/com.apple.springboard.plist
SBFakeTime
SBFakeTimeString
SBFakeCarrier
Banner
Carrier
.......
And a hex dump shows this
Quote:
3470 66756e63 73000000 2f537973 74656d2f funcs.../System/
3480 4c696272 6172792f 50726976 61746546 Library/PrivateF
3490 72616d65 776f726b 732f4772 61706869 rameworks/Graphi
34a0 63735365 72766963 65732e66 72616d65 csServices.frame
34b0 776f726b 2f477261 70686963 73536572 work/GraphicsSer
34c0 76696365 73000000 00000000 47535365 vices.......GSSe
34d0 6e644170 70507265 66657265 6e636573 ndAppPreferences
34e0 4368616e 67656400 636f6d2e 6170706c Changed.com.appl
34f0 652e7370 72696e67 626f6172 64000000 e.springboard...
But when i try to do a class dump of GraphicsServices i get an error.
Quote:
iPhone:/System/Library/Frameworks/GraphicsServices.framework root# class-dump -H GraphicsServices
2008-07-29 16:10:39.190 class-dump[1309:10b] Warning: This file does not contain any Objective-C runtime information.
As I am fairly new to Objective-C it would be great if someone could post some sample code or figure out how to get a class dump or something to point me in the right direction!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #4 (permalink)  
Old 07-30-2008, 06:08 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,144
Thanks: 40
Thanked 187 Times in 151 Posts

GS is GraphicsServices, so what if you do a strings dump on the GraphicsServices.framework? Can you find a reference to GSSendAppPreferencesChanges?

Based on what else we see, I'd be tempted to try a
extern void GSSendAppPreferencesChanged(CFString*);
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #5 (permalink)  
Old 07-30-2008, 07:41 PM
What's Jailbreak?
 
Join Date: Jun 2007
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts

a quick srings and grep with MobileTerminal shows nothing. But we all know that MakeItMine works and that is the only likely result so it's likely that apple obfuscated it as it is a private function. The CFString you are refering to would be com.apple.springboard bundle identifier right?

Sent from my iPhone 3G!
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #6 (permalink)  
Old 07-30-2008, 11:33 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,144
Thanks: 40
Thanked 187 Times in 151 Posts

Yes, looking at my strings and disassembly from GraphicsServices that appears to be one of the parameters.

Unfortunately it also looks like it takes another parameter NamedPurplePort? Not sure on this one...
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #7 (permalink)  
Old 07-31-2008, 12:41 AM
What's Jailbreak?
 
Join Date: Jun 2007
Posts: 4
Thanks: 3
Thanked 0 Times in 0 Posts

What tool are you using to disassemble the framework? I've tried otool otx and a few others I don't remember but they all gave me an error like no objective c header or something.

Perhaps we could try looking at something that uses CGSendAppPreferencesChanged? I think preferences.app uses it. What about activation? It sets the carrier logo and settings without a restart (I think) maybe that could help.
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
  #8 (permalink)  
Old 07-31-2008, 05:31 PM
NetMage's Avatar
Developer
 
Join Date: Aug 2007
Device + Firmware: iPhone 1.1.3
Operating System: Windows XP / OS X
Location: Virginia
Posts: 1,144
Thanks: 40
Thanked 187 Times in 151 Posts

I use otool -tv to disassemble files
__________________
Starlight Computer Wizardry
Pocket-sized Development
Digg StumbleUpon Delicious Reddit Newsvine Google Yahoo Thanks Reply With Quote
Reply

  Apple Forums | ModMyi.com | iPhone, iPod, Mac, OS X, Mods, More > Computer Modding Software > OS Apps and Development

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
Forum Jump


Go to Top
ModMyI

All times are GMT -6. The time now is 06:00 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 | Dedicated Server Hosting by SingleHop | Copyright © 2007-08 by ModMy, LLC. All rights reserved.

RSS - Contact Us / ModMyi Home / Archive / Privacy Statement - Top
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110