Browse Source

升级baksmali

yhz 5 years ago
parent
commit
d5f97b9ae2
6 changed files with 9 additions and 8 deletions
  1. 1 1
      file_utils.py
  2. 4 3
      package_utils.py
  3. 2 2
      package_utils_record.py
  4. 2 2
      package_utils_shanshen.py
  5. BIN
      tools/baksmali-2.1.3.jar
  6. BIN
      tools/baksmali-2.3.jar

+ 1 - 1
file_utils.py

@@ -302,7 +302,7 @@ def getBaksmaliPath():
     '''
     获取baksmali.jar
     '''
-    return getFullToolPath('baksmali-2.1.3.jar')
+    return getFullToolPath('baksmali-2.3.jar')
 
 def getApksignerPath():
     '''

+ 4 - 3
package_utils.py

@@ -733,7 +733,8 @@ def generateNewRFile(game, sdk, subChannel, config):
     print('baksmali classes.dex ...')
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 
@@ -805,7 +806,7 @@ def packJar(game, sdk, subChannel, config):
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
     
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 
@@ -858,7 +859,7 @@ def packLogJar(game, sdk, subChannel, config, logSdk):
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
     
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 

+ 2 - 2
package_utils_record.py

@@ -782,7 +782,7 @@ def generateNewRFile(game, sdk, subChannel, config):
     print('baksmali classes.dex ...')
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 
@@ -853,7 +853,7 @@ def packJar(game, sdk, subChannel, config):
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
     
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 

+ 2 - 2
package_utils_shanshen.py

@@ -670,7 +670,7 @@ def generateNewRFile(game, sdk, subChannel, config):
     print('baksmali classes.dex ...')
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 
@@ -741,7 +741,7 @@ def packJar(game, sdk, subChannel, config):
     baksmaliPath = file_utils.getBaksmaliPath()
     outPath = file_utils.getFullPath(decompliePath, 'out')
     
-    ret = file_utils.execJarCmd(baksmaliPath, '-o "%s" "%s"' % (outPath, outDex))
+    ret = file_utils.execJarCmd(baksmaliPath, 'd "%s" -o "%s"' % (outDex, outPath))
     if ret:
         return ret
 

BIN
tools/baksmali-2.1.3.jar


BIN
tools/baksmali-2.3.jar