Example #1
0
    def genOptions(inZip):
        """ Generate options.
            Only format framework.
        """

        options = Options()
        options.inZip = inZip
        options.outZip = inZip + ".std.zip"
        options.formatFrw = True

        return options
Example #2
0
Deodex
TODO
"""

__author__ = '*****@*****.**'

import os
import tempfile
import commands
import shutil

from common import Options, Log

# Global
TAG = "reverse-deodex"
OPTIONS = Options()


class OdexZip:

    CLASSPATH = "core.jar:ext.jar:framework.jar:android.policy.jar:services.jar"

    def __init__(self, unzipRoot):
        self.mRoot = unzipRoot

        self.mFrwDir = os.path.join(self.mRoot, "system/framework")
        self.mAppDir = os.path.join(self.mRoot, "system/app")
        self.mPrivAppDir = os.path.join(self.mRoot, "system/priv-app")

        if OPTIONS.classpath == None:
            OPTIONS.classpath = OdexZip.CLASSPATH