Results 1 to 8 of 8
Discuss [2.0][Vibrate] Multiple Vibration Patterns? at the General - Hackint0sh.org; I'm opening this as a new thread as I've been advised it doesn't really fit ...
  1. #1
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [2.0][Vibrate] Multiple Vibration Patterns?

    I'm opening this as a new thread as I've been advised it doesn't really fit in the old thread. For reference, please see

    http://www.hackint0sh.org/forum/showthread.php?t=10220

    for details on changing the pattern and duration of the vibrate feature of the iphone.

    The DEFAULT vibration pattern can be changed by editing /System/Library/PrivateFrameworks/Celestial.framework/SystemSoundVibrationPatterns.plist which is great, but let's say you want your phone to vibrate once for mail, twice for SMS, and three times for a calender alert.

    Also found in /System/Library/PrivateFrameworks/Celestial.framework/ is a file called SystemSoundBehaviour.plist which seems to contain the reference to vibrate as <string>Vibrate</string> that is mapping to the Default behavior in SystemSoundVibrationPatterns.plist

    I've tried editing the number of Vibrate strings that the array SMS_Received has in it, but this doesn't double the number of vibrates. The question is, how is the phone parsing the string info in SystemSoundBehaviour.plist and is there a way to make it 'call' the vibrate string/function more than one time?

    Any advice on working with SystemSoundBehaviour.plist or how the phone deals with arrays and parsing strings would be helpful.

    Thanks!

    P.S. Running a Gen 1 phone with Pwnd 2.0 Firmware



  2. #2
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    bumpity bump.

    anyone? anyone?

  3. #3
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    bump. again :-(

  4. #4
    Newbie Array

    Join Date
    Aug 2008
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Ok, so I was trying out the SMS alert mods tonight and after playing around for a while, I found a way to do what you asked.

    DISCLAIMER => I'm relatively new to jailbreaking and I've only started messing with stuff like this. I just messed around and the following works on my 3g 16gb black iphone running 2.0.2 firmware jailbroken with quickpwn using 2.0.1 firmware file. Try at your own risk, I'm not promising anything!

    Anyway...

    The idea is pretty simple... just add a new key to your SystemSoundVibrationPatterns.plist file for MailReceived. By doing this you can enter different values for your intensity, offduration, onduration, and totalduration, and it seems that the phone is smart enough to reference these values when you get a new mail.

    It looks like the way the phone works, just from what I can tell messing around, is that in your SystemSoundBehaviour.plist file you can choose what the phone will do for each condition of the settings such as ring or ring + vibe and the silent switch on the phone. These only seem to reference "Beep" or "Vibrate." What it looks like happens is that if you choose "Vibrate" in one of the modes, it will head over to the SystemSoundVibrationPatterns.plist and try to look up the key for what event just happened. If it's not found, it will instead use the Default. Since it never finds anything for SMS received or mail received (because they aren't there by default), it will use Default for both. But if you add in the new keys, it will reference those instead of Default. I've only tried this for MailReceived, because, frankly, I'm really tired and need to get to bed, lol. Plus, now I have what I wanted which is 3 vibes for SMS and 1 vibe for email. But I'm guessing it would work for anything, so you could probably add in Voicemail with "<key>VoicemailReceived</key>" etc etc. To find the proper keys, I looked in SystemSoundBehaviour.plist. I'm guessing those are probably the right keys for whatever you want to add. If apple did what I think they did, then you can probably use any key you find there... actually you can add vibration to stuff that doesn't normally vibrate by editing the SystemSoundBehaviour.plist file and adding "<string>Vibrate</string>" under the approriate section, then you could add the key to SystemSoundVibrationPatterns.plist and make the vibrate be whatever you want using the same editing method you already know.

    Anyway, I hope this makes sense, because I'm really tired and it's hard to put together sentences

    For reference, here is the contents of my SystemSoundVibrationPatterns.plist:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>ConnectedToPower</key>
    	<dict>
    		<key>Intensity</key>
    		<real>1</real>
    		<key>OffDuration</key>
    		<real>0.10000000000000001</real>
    		<key>OnDuration</key>
    		<real>0.40000000000000002</real>
    		<key>TotalDuration</key>
    		<real>1</real>
    	</dict>
    	<key>MailReceived</key>
    	<dict>
    		<key>Intensity</key>
    		<real>1</real>
    		<key>OffDuration</key>
    		<real>0.20000000000000001</real>
    		<key>OnDuration</key>
    		<real>0.30000000000000002</real>
    		<key>TotalDuration</key>
    		<real>0.5</real>
    	</dict>
    	<key>Default</key>
    	<dict>
    		<key>Intensity</key>
    		<real>1</real>
    		<key>OffDuration</key>
    		<real>0.20000000000000001</real>
    		<key>OnDuration</key>
    		<real>0.50000000000000002</real>
    		<key>TotalDuration</key>
    		<real>2.1</real>
    	</dict>
    	<key>RingerSwitchIndication</key>
    	<dict>
    		<key>Intensity</key>
    		<real>1</real>
    		<key>OffDuration</key>
    		<real>0.10000000000000001</real>
    		<key>OnDuration</key>
    		<real>0.29999999999999999</real>
    		<key>TotalDuration</key>
    		<real>0.40000000000000002</real>
    	</dict>
    </dict>
    </plist>
    You can see how I've added the
    Code:
    <key>MailReceived</key>
    <dict>
    	<key>Intensity</key>
    	<real>1</real>
    	<key>OffDuration</key>
    	<real>0.20000000000000001</real>
    	<key>OnDuration</key>
    	<real>0.30000000000000002</real>
    	<key>TotalDuration</key>
    	<real>0.5</real>
    </dict>
    portion in there.

  5. #5
    Newbie Array

    Join Date
    Oct 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I have been looking for this for awhile now.
    I have wanted my phone keypad to vibrate when a number is pressed.

    Code:
    <key>MailReceived</key>
    <dict>
    	<key>Intensity</key>
    	<real>1</real>
    	<key>OffDuration</key>
    	<real>0.20000000000000001</real>
    	<key>OnDuration</key>
    	<real>0.30000000000000002</real>
    	<key>TotalDuration</key>
    	<real>0.5</real>   This value is how long it cycles for. With these settings it will cycle once. If the value was 1 it would cycle twice, and so on. 
    </dict>
    Last edited by Kurt West; 08-27-2008 at 06:31 AM.


  6. #6
    Rookie Array

    Join Date
    Jul 2008
    Posts
    11
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    pj_rage

    this worked flawlessly! Thanks for the info, I guess it seems like an obvious solution when you think about it, great work!

    I've tried this on a 2G in both 1.1.4 and 2G in 2.0.2 and it works like a charm. Good solution. (Yeah, I stayed up all night too trying it out. Name of the game)

    Thx

  7. #7
    Respected Professional Array

    Join Date
    Dec 2007
    Posts
    550
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    38

    Default

    any way to integrate into a ipsw (family plan with 5 phones.... too lazy to do it one by one.)
    • iPhone 3G: 16GB Black Yellowsn0wed.
    • Model: MB496LA/A
    • SMS IN/OUT: YES/YES
    • 3G/Edge: YES/YES
    • Calls IN/OUT: YES/YES
    • Carrier: TIGO


    How to Unlock the iPhone 3G
    Solve Low signal on iPhone 2G - May help with greyed out WiFi issue.
    if post helped...rep up please. ... thanks

  8. #8
    iPhone Moderator Array

    Join Date
    Aug 2007
    Posts
    3,620
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    220

    Default

    Quote Originally Posted by IphoneEntusiast. View Post
    any way to integrate into a ipsw (family plan with 5 phones.... too lazy to do it one by one.)
    You'd have to build a custom payload and apply it to PwnageTool - thats it

    Check out this thread
    http://www.hackint0sh.org/forum/showthread.php?t=38149
    on how to.
    You'd simply create that .plist, the info file and make it a bundle. It goes to the Pwnage package and you are set.
    Read the stickies and search the forum before posting!
    If you want to become a Hackint0sh supporter click here
    ----------
    iPhone 4 factory unlocked, iOS 4.3.1, jailbroken
    iPad Wi-Fi + 3G (1G), iOS 4.3.1, jailbroken
    iPad 2

 

 

Similar Threads

  1. vibrate issue
    By sipher in forum General
    Replies: 0
    Last Post: 10-27-2010, 04:03 AM
  2. Replies: 0
    Last Post: 09-23-2009, 08:10 PM
  3. MacNN: LivePresets; edit patterns, swatches in Illustrator
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 07-15-2008, 03:30 AM
  4. Replies: 22
    Last Post: 01-21-2008, 05:50 PM
  5. iPhone Short Code: Any Patterns?
    By Snowbird in forum General
    Replies: 1
    Last Post: 10-08-2007, 11:02 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:01 PM.
twitter, follow us!