Skip to content

Instantly share code, notes, and snippets.

@samerserhan91
Forked from mkuron/Makefile
Last active December 7, 2018 19:27
Show Gist options
  • Save samerserhan91/54415fcb01e33afbc20894339627c84d to your computer and use it in GitHub Desktop.
Save samerserhan91/54415fcb01e33afbc20894339627c84d to your computer and use it in GitHub Desktop.
Flash Player Update Script for Mac OS X
This is a script that updates Adobe Flash Player on Mac OS X.
It is based on the one provided at https://jamfnation.jamfsoftware.com/discussion.html?id=7658.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>de.kuron-germany.flash-update</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/flash_check.sh</string>
</array>
<key>StandardOutPath</key>
<string>/Library/Logs/FlashUpdate.log</string>
<key>StandardErrorPath</key>
<string>/Library/Logs/FlashUpdate.log</string>
<key>StartInterval</key>
<integer>86400</integer>
</dict>
</plist>
<?xml version="1.0" ?>
<flashing>
<header>
<phone_model model="aljeter"/>
<software_version version="aljeter-user 8.0.0 OPP27.91-87 89 release-keysM8937_19.22.05.62R"/>
<subsidy_lock_config MD5="d41d8cd98f00b204e9800998ecf8427e" name="slcf_rev_d_default_v1.0.nvm"/>
<regulatory_config SHA1="ee80c08628ae93e672f3eb0f7a85298d459a4541" name="regulatory_info_xt1922_5.png"/>
<sparsing enabled="true" max-sparse-size="535822336"/>
<interfaces>
<interface name="AP"/>
</interfaces>
</header>
<steps interface="AP">
<step operation="getvar" var="max-sparse-size"/>
<step operation="oem" var="fb_mode_set"/>
<step MD5="7eca26b5ce1a4c9391b2db1649fe024c" filename="gpt.bin" operation="flash" partition="partition"/>
<step MD5="0d607162296ddcfefc04d49ce57e08d6" filename="bootloader.img" operation="flash" partition="bootloader"/>
<step MD5="a096eb3924f059808e73500f2b2ecb1d" filename="NON-HLOS.bin" operation="flash" partition="modem"/>
<step MD5="1a6109b94bdddd79b056f62775a5f67b" filename="fsg.mbn" operation="flash" partition="fsg"/>
<step operation="erase" partition="modemst1"/>
<step operation="erase" partition="modemst2"/>
<step MD5="bcde8ec69dc65fa9e215906dbbaba873" filename="adspso.bin" operation="flash" partition="dsp"/>
<step MD5="c6814e021c4e5b4b12e4fadf36347b26" filename="logo.bin" operation="flash" partition="logo"/>
<step MD5="740bc357cc62b5b91d7d251a716befa5" filename="boot.img" operation="flash" partition="boot"/>
<step MD5="ff7ad0aa029e8c015029ac1926fb5289" filename="recovery.img" operation="flash" partition="recovery"/>
<step MD5="6dd495640ab35d6fe5e78ad0a05062ec" filename="system.img_sparsechunk.0" operation="flash" partition="system"/>
<step MD5="975f6501ac0d5c4293b8d567a772f8c0" filename="system.img_sparsechunk.1" operation="flash" partition="system"/>
<step MD5="d90203c96c8c09736be3579e2d5ffbb4" filename="system.img_sparsechunk.2" operation="flash" partition="system"/>
<step MD5="244569e41952dbdf76275f62d63bf0b4" filename="system.img_sparsechunk.3" operation="flash" partition="system"/>
<step MD5="ce409bd9147f9e0111b09a0fbdbcd31a" filename="system.img_sparsechunk.4" operation="flash" partition="system"/>
<step MD5="abbd347c45ba549f842149259ef5f998" filename="vendor.img" operation="flash" partition="vendor"/>
<step MD5="c6e6be68c5d8a21a698f95b878754902" filename="oem.img" operation="flash" partition="oem"/>
<step operation="erase" partition="cache"/>
<step operation="erase" partition="userdata"/>
<step operation="erase" partition="DDR"/>
<step operation="oem" var="fb_mode_clear"/>
</steps>
</flashing>
#!/bin/bash
cd $(dirname $0)
cp /Library/LaunchDaemons/de.kuron-germany.flash-update.plist .
cp /usr/local/bin/flash_check.sh .
install:
cp de.kuron-germany.flash-update.plist /Library/LaunchDaemons/
mkdir -p /usr/local/bin
cp flash_check.sh /usr/local/bin/
launchctl load /Library/LaunchDaemons/de.kuron-germany.flash-update.plist
@samerserhan91
Copy link
Author

@samerserhan91
Copy link
Author

`

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment