(UPDATED)Adding Bluetooth Menu to the Main Settings Page

Discussion in 'Jailbreaks and iOS Hacks' started by The LPT, May 16, 2011.

  1. The LPT, May 16, 2011
    Last edited: May 16, 2011

    The LPT macrumors regular

    Joined:
    Mar 8, 2010
    #1
    I recently tried modifying the settings.plist inside the preferences.app to see if I could get the bluetooth menu on the first page of Settings mainly for quicker access. Not needing to drill down 2 levels.

    If you add the following to the settings.plist :

    <dict>
    <key>bundle</key>
    <string>BluetoothSettings</string>
    <key>isController</key>
    <false/>
    <key>requiredCapabilities</key>
    <array>
    <string>bluetooth</string>
    </array>
    </dict>


    I normally put the code just below the AirPortSettings (Wifi). Where you place it in the file will determine how far down the list it is on the main page.

    Respring/reboot the phone and you're good to go.

    If you are like me who doesn't use SBSettings for anything other than those 2 toggles, this will at least reduce the number of mobile substrate addons by at least 1 :D

    edit : I got a little carried away and did some more editing.
    I put the battery percentage in the main screen
    Put location services and notifications under the general page
    put the carrier info in the network page

    I cant figure out how to show the wifi without an icon though. If anyone has any thoughts let me know.
     

    Attached Files:

  2. WhatAmI macrumors 6502a

    WhatAmI

    Joined:
    Sep 2, 2009
  3. The LPT thread starter macrumors regular

    Joined:
    Mar 8, 2010
    #3
    Here are my modded plists : :D
    settings
    general
    Usage Statistics
    network
     

    Attached Files:

  4. Armeniandave macrumors 6502

    Joined:
    Jun 12, 2010
    Location:
    San Diego
    #4
    Any chance you could tell me the exact path in iFile to the
    correct settings file?

    Also could you screenshot the modified part of the file so I can see
    exactly what it looks like?

    Thanks this is pretty much what I have been looking for.
    Any negatives so far?
     
  5. The LPT thread starter macrumors regular

    Joined:
    Mar 8, 2010
    #5
    I haven't run into any issues so far.

    The actual path to the folder is root/private/var/stash/Applications/

    look in the Preferences.app folder and modify those files. Always make a back up of them first.

    I've uploaded a couple screenshots to give a basic idea of where things go. The plist files I uploaded previously have all the edits shown in my first batch of screen shots.
     

    Attached Files:

  6. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #6
    Maybe I missed it, but could you list what device and iOS you did this on?
     
  7. The LPT thread starter macrumors regular

    Joined:
    Mar 8, 2010
    #7
    I have an GSM iPhone 4, on 4.3.3 But I'm assuming the same principles for modding the plist files would work on all the versions of the phone.

    I'm basically taking the code from one file and putting it into another.

    eg.

    Taking the code for the bluetooth menu from the General.plist and putting it into the Settings.plist.
     
  8. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #8
    Just took your plists and am rebooting now. I've always wanted to bring certain options forward in the menu system. This is great!
     
  9. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #9
    Hopefully you can figure this out. How can you make the Bluetooth setting a toggle right on the settings screen rather than a dive into another menu level? That would be even better!
     
  10. The LPT thread starter macrumors regular

    Joined:
    Mar 8, 2010
    #10
    That was my original plan to move the actual toggle to the main menu, but I couldn't find the code that runs that specific page.
     
  11. scirica macrumors 68020

    scirica

    Joined:
    May 13, 2008
    Location:
    Dallas, TX
    #11
    Don't give up! :) Thanks for the tweak!
     

Share This Page