New gapps

This commit is contained in:
ctso 2010-06-30 05:42:12 +00:00
parent c587d5137c
commit 042f09fa0f

View File

@ -2,8 +2,8 @@
import sys, random, urllib2, zipfile, StringIO, os import sys, random, urllib2, zipfile, StringIO, os
from optparse import OptionParser from optparse import OptionParser
FILENAME="gapps-passion-FRF83-signed.zip" FILENAME="gapps-passion-FRF85B-signed.zip"
MIRRORS=["http://www.kanged.net/up/files/1/",] MIRRORS=["http://www.kanged.net/mirror/gapps/",]
def device(): def device():
print "usage: extract-google-files -m [method]" print "usage: extract-google-files -m [method]"
@ -29,11 +29,14 @@ def download():
for filename in zip.namelist(): for filename in zip.namelist():
if filename.split("/")[0] == "system": if filename.split("/")[0] == "system":
print "Extracting %s" % filename print "Extracting %s" % filename
try:
zip.extract(filename) zip.extract(filename)
except:
pass
def main(): def main():
parser = OptionParser(usage="usage: %prog [options]") parser = OptionParser(usage="usage: %prog [options]")
parser.add_option("-m", "--method", dest='method', default="device", help="Extraction Method: device, download [default: device]") parser.add_option("-m", "--method", dest='method', default="download", help="Extraction Method: device, download [default: device]")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if options.method == "device": if options.method == "device":