While I eagerly await the delivery of my 16Gb iPhone from PriceUSA I am looking at adding Simon Wrights Australian number support, formatting and carrier logo's to a custom iPlus payload. While I realise they can easily be added from Installer, I thought this would streamline the process for future firmware upgrades and make things easier for people unlocking their iPhones without WiFi.
Before anybody tries this out I thought I would get some feedback from people with more coding experience on the iPhone as to whether what I have done is correct and will work.
I have created a small custom_payload.zip containing the necessary do_payload.sh and .zip's with Simon's files in the correct folders for unzipping.
LINKS (remove space)
http://rapid share.com/files/1029158...yload.zip.html
http://www. megaupload.com/?d=38R07ARR
Basically, all I have done is placed Simon's files in their correct folders for unzipping into the right place on the iPhone and used the code from
http://wpool.com/iphone to perform the same steps to install the updates...
Code:
# Aus Number Support
#
if [ -r ${PL_DIR}/${PL}/aus61v106-114.zip ]; then
do_cmd "Installing Aus Number Support..."
rm -fr /System/Library/Frameworks/AppSupport.framework/Support
cp -pfr /System/Library/Frameworks/AppSupport.framework/AppSupport /System/Library/Frameworks/AppSupport.framework/AppSupport.aus61.backup
unzip -q -o -K -X ${PL_DIR}/${PL}/aus61v106-114.zip -d /
chmod 644 /System/Library/Frameworks/AppSupport.framework/AppSupport
chmod 644 /System/Library/Frameworks/AppSupport.framework/Support/PhoneNumber.dylib
chmod 644 /System/Library/Frameworks/AppSupport.framework/Support/PhoneNumberTemplates.txt
fi
# Aus Number Formatting
#
if [ -r ${PL_DIR}/${PL}/auspform.zip ]; then
do_cmd "Installing Aus Number Formatting..."
cp -pfr /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist.auspform.backup
unzip -q -o -K -X ${PL_DIR}/${PL}/auspform.zip -d /
chmod 644 /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist
fi
# Aus Carrier Support
#
if [ -r ${PL_DIR}/${PL}/ausCarrier.zip ]; then
do_cmd "Installing Aus Carrier Support..."
cp -pfr /System/Library/Carrier Bundles/Unknown.bundle/carrier.plist /System/Library/Carrier Bundles/Unknown.bundle/carrier.plist.ausCallForwarding.backup
unzip -q -o -K -X ${PL_DIR}/${PL}/ausCarrier.zip -d /
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/carrier.plist
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/Default_CARRIER_TELSTRA.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/FSO_CARRIER_TELSTRA.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/Default_CARRIER_OPTUS.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/FSO_CARRIER_OPTUS.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/Default_CARRIER_VODAFONE_AU.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/FSO_CARRIER_VODAFONE_AU.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/Default_CARRIER_VIRGIN.png
chmod 755 /System/Library/Carrier Bundles/Unknown.bundle/FSO_CARRIER_VIRGIN.png
fi
Please feel free to leave any feedback. Once everything checks out and this is tested I will write a short How-To Guide if people are interested.