mirror of
https://github.com/broodplank/APKtoJava.git
synced 2026-01-11 07:28:16 -05:00
Initial commit
Initial release (v0.5 beta) of APK to Java
This commit is contained in:
22
.gitattributes
vendored
Normal file
22
.gitattributes
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
163
.gitignore
vendored
Normal file
163
.gitignore
vendored
Normal file
@@ -0,0 +1,163 @@
|
||||
#################
|
||||
## Eclipse
|
||||
#################
|
||||
|
||||
*.pydevproject
|
||||
.project
|
||||
.metadata
|
||||
bin/
|
||||
tmp/
|
||||
*.tmp
|
||||
*.bak
|
||||
*.swp
|
||||
*~.nib
|
||||
local.properties
|
||||
.classpath
|
||||
.settings/
|
||||
.loadpath
|
||||
|
||||
# External tool builders
|
||||
.externalToolBuilders/
|
||||
|
||||
# Locally stored "Eclipse launch configurations"
|
||||
*.launch
|
||||
|
||||
# CDT-specific
|
||||
.cproject
|
||||
|
||||
# PDT-specific
|
||||
.buildpath
|
||||
|
||||
|
||||
#################
|
||||
## Visual Studio
|
||||
#################
|
||||
|
||||
## Ignore Visual Studio temporary files, build results, and
|
||||
## files generated by popular Visual Studio add-ons.
|
||||
|
||||
# User-specific files
|
||||
*.suo
|
||||
*.user
|
||||
*.sln.docstates
|
||||
|
||||
# Build results
|
||||
[Dd]ebug/
|
||||
[Rr]elease/
|
||||
*_i.c
|
||||
*_p.c
|
||||
*.ilk
|
||||
*.meta
|
||||
*.obj
|
||||
*.pch
|
||||
*.pdb
|
||||
*.pgc
|
||||
*.pgd
|
||||
*.rsp
|
||||
*.sbr
|
||||
*.tlb
|
||||
*.tli
|
||||
*.tlh
|
||||
*.tmp
|
||||
*.vspscc
|
||||
.builds
|
||||
*.dotCover
|
||||
|
||||
## TODO: If you have NuGet Package Restore enabled, uncomment this
|
||||
#packages/
|
||||
|
||||
# Visual C++ cache files
|
||||
ipch/
|
||||
*.aps
|
||||
*.ncb
|
||||
*.opensdf
|
||||
*.sdf
|
||||
|
||||
# Visual Studio profiler
|
||||
*.psess
|
||||
*.vsp
|
||||
|
||||
# ReSharper is a .NET coding add-in
|
||||
_ReSharper*
|
||||
|
||||
# Installshield output folder
|
||||
[Ee]xpress
|
||||
|
||||
# DocProject is a documentation generator add-in
|
||||
DocProject/buildhelp/
|
||||
DocProject/Help/*.HxT
|
||||
DocProject/Help/*.HxC
|
||||
DocProject/Help/*.hhc
|
||||
DocProject/Help/*.hhk
|
||||
DocProject/Help/*.hhp
|
||||
DocProject/Help/Html2
|
||||
DocProject/Help/html
|
||||
|
||||
# Click-Once directory
|
||||
publish
|
||||
|
||||
# Others
|
||||
[Bb]in
|
||||
[Oo]bj
|
||||
sql
|
||||
TestResults
|
||||
*.Cache
|
||||
ClientBin
|
||||
stylecop.*
|
||||
~$*
|
||||
*.dbmdl
|
||||
Generated_Code #added for RIA/Silverlight projects
|
||||
|
||||
# Backup & report files from converting an old project file to a newer
|
||||
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||
_UpgradeReport_Files/
|
||||
Backup*/
|
||||
UpgradeLog*.XML
|
||||
|
||||
|
||||
|
||||
############
|
||||
## Windows
|
||||
############
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
|
||||
#############
|
||||
## Python
|
||||
#############
|
||||
|
||||
*.py[co]
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
.tox
|
||||
|
||||
#Translations
|
||||
*.mo
|
||||
|
||||
#Mr Developer
|
||||
.mr.developer.cfg
|
||||
|
||||
# Mac crap
|
||||
.DS_Store
|
||||
381
APKtoJava.au3
Normal file
381
APKtoJava.au3
Normal file
@@ -0,0 +1,381 @@
|
||||
#region ;**** Directives created by AutoIt3Wrapper_GUI ****
|
||||
#AutoIt3Wrapper_Outfile=APKtoJava.exe
|
||||
#AutoIt3Wrapper_Compression=0
|
||||
#AutoIt3Wrapper_UseUpx=n
|
||||
#AutoIt3Wrapper_Res_Description=©2012 broodplank.net
|
||||
#AutoIt3Wrapper_Res_Fileversion=0.0.0.5
|
||||
#AutoIt3Wrapper_Run_Tidy=y
|
||||
#AutoIt3Wrapper_Run_Obfuscator=y
|
||||
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
|
||||
#include <Process.au3>
|
||||
#include <File.au3>
|
||||
#include <WindowsConstants.au3>
|
||||
#include <GuiConstantsEx.au3>
|
||||
#include <ExtProp.au3>
|
||||
#include <WinAPI.au3>
|
||||
#include <EditConstants.au3>
|
||||
|
||||
#OnAutoItStartRegister "FixConfig"
|
||||
|
||||
Sleep(1000)
|
||||
|
||||
Func FixConfig()
|
||||
If FileExists(@ScriptDir & "\tools\jd-gui.cfg") Then FileDelete(@ScriptDir & "\tools\jd-gui.cfg")
|
||||
;~ IniWriteSection("
|
||||
IniWrite(@ScriptDir & "\tools\jd-gui.cfg", "Manifest", "Version", "2")
|
||||
IniWrite(@ScriptDir & "\tools\jd-gui.cfg", "Update", "CurrentVersion", "0.3.3")
|
||||
IniWrite(@ScriptDir & "\tools\jd-gui.cfg", "RecentDirectories", "LoadPath", @ScriptDir & "\tools\")
|
||||
IniWrite(@ScriptDir & "\tools\jd-gui.cfg", "RecentDirectories", "SavePath", @ScriptDir & "\tools\")
|
||||
EndFunc ;==>FixConfig
|
||||
|
||||
|
||||
Opt("WinTitleMatchMode", 2)
|
||||
|
||||
Global $getpath_apkjar, $getpath_classes, $getpath_outputdir, $log, $decompile_eclipse, $decompile_resource, $decompile_source_java, $decompile_source_smali
|
||||
|
||||
|
||||
GUICreate("APK to Java v0.5 BETA (by broodplank)", 550, 450)
|
||||
|
||||
GUISetFont(8, 8, 0, "Verdana")
|
||||
|
||||
GUICtrlCreateLabel("Log:", 305, 5)
|
||||
$log = GUICtrlCreateEdit("APK to Java v0.5 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF, 305, 22, 240, 420, BitOR($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_MULTILINE, $ES_READONLY))
|
||||
|
||||
GUICtrlCreateGroup("Step 1: Selecting the file", 5, 5, 290, 140)
|
||||
GUICtrlCreateLabel("Please choose the apk/jar file that you want to " & @CRLF & "decompile to java sources: ", 15, 25)
|
||||
$file = GUICtrlCreateInput("", 15, 55, 195, 20)
|
||||
GUICtrlSetState($file, $GUI_DISABLE)
|
||||
$filebrowse = GUICtrlCreateButton("Browse..", 215, 55, 70, 20)
|
||||
|
||||
GUICtrlCreateLabel("Or select a classes.dex file to decompile:", 15, 85)
|
||||
|
||||
$filedex = GUICtrlCreateInput("", 15, 110, 195, 20)
|
||||
GUICtrlSetState($filedex, $GUI_DISABLE)
|
||||
$filebrowsedex = GUICtrlCreateButton("Browse..", 215, 110, 70, 20)
|
||||
|
||||
GUICtrlCreateGroup("Step 2: Selecting the output dir", 5, 150, 290, 85)
|
||||
GUICtrlCreateLabel("Please choose the destination directory for the" & @CRLF & "decompiled java sources: ", 15, 170)
|
||||
$destination = GUICtrlCreateInput("", 15, 205, 195, 20)
|
||||
GUICtrlSetState($destination, $GUI_DISABLE)
|
||||
$destdirbrowse = GUICtrlCreateButton("Browse..", 215, 205, 70, 20)
|
||||
|
||||
GUICtrlCreateGroup("Step 3: Choosing decompilation preferences", 5, 240, 290, 155)
|
||||
GUICtrlCreateLabel("Please choose the parts to decompile:", 15, 260)
|
||||
$decompile_source_java = GUICtrlCreateCheckbox("Sources (generate java code)", 15, 280)
|
||||
$decompile_source_smali = GUICtrlCreateCheckbox("Sources (generate smali code)", 15, 300)
|
||||
$decompile_resource = GUICtrlCreateCheckbox("Resources (the images/layouts/etc)", 15, 320)
|
||||
|
||||
GUICtrlCreateLabel("Additional options:", 15, 350)
|
||||
$decompile_eclipse = GUICtrlCreateCheckbox("Convert the output to an Eclipse project", 15, 370)
|
||||
GUICtrlSetState($decompile_eclipse, $GUI_DISABLE)
|
||||
|
||||
$start_process = GUICtrlCreateButton("Start Process!", 5, 400, 105, 25)
|
||||
$about_button = GUICtrlCreateButton("Help / About", 115, 400, 105, 25)
|
||||
$exit_button = GUICtrlCreateButton("Exit", 225, 400, 70, 25)
|
||||
|
||||
$copyright = GUICtrlCreateLabel("©2012 broodplank.net", 5, 435)
|
||||
GUICtrlSetStyle($copyright, $WS_DISABLED)
|
||||
|
||||
|
||||
|
||||
Func _ExtractAPK($apkfile)
|
||||
GUICtrlSetData($log, "APK to Java v0.5 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF)
|
||||
FileDelete(@ScriptDir & "\tools\classes.dex")
|
||||
_AddLog("- Extracting APK...")
|
||||
FileCopy($getpath_apkjar, @ScriptDir & "\tools\" & _GetExtProperty($getpath_apkjar, 0))
|
||||
RunWait(@ScriptDir & "\tools\extractapk.bat " & _GetExtProperty($getpath_apkjar, 0), "", @SW_HIDE)
|
||||
If GUICtrlRead($decompile_resource) = 1 Then _DecompileResource()
|
||||
If FileExists(@ScriptDir & "\tools\classes.dex") Then
|
||||
_AddLog("- Extracting APK Done!")
|
||||
Sleep(250)
|
||||
If GUICtrlRead($decompile_source_smali) = 1 Then _DecompileSmali()
|
||||
If GUICtrlRead($decompile_source_java) = 1 Then _DecompileJava()
|
||||
If GUICtrlRead($decompile_eclipse) = 1 Then _MakeEclipse()
|
||||
Else
|
||||
_AddLog("No classes.dex file found! Aborting!")
|
||||
EndIf
|
||||
EndFunc ;==>_ExtractAPK
|
||||
|
||||
Func _DecompileSmali()
|
||||
If FileExists(@ScriptDir & "\tools\smalicode") Then DirRemove(@ScriptDir & "\tools\smalicode", 1)
|
||||
_AddLog("- Decompiling to Smali code...")
|
||||
RunWait(@ScriptDir & "\tools\deosmali.bat", "", @SW_HIDE)
|
||||
_AddLog("- Decompiling to Smali Done!")
|
||||
; if FileExists($getpath_outputdir&"\smalicode") Then DirRemove($getpath_outputdir&"\smalicode", 1)
|
||||
_AddLog("- Copying to output dir...")
|
||||
DirCopy(@ScriptDir & "\tools\smalicode", $getpath_outputdir & "\smalicode", 1)
|
||||
Sleep(250)
|
||||
_AddLog("- Copying to output dir Done!")
|
||||
EndFunc ;==>_DecompileSmali
|
||||
|
||||
Func _DecompileJava()
|
||||
_AddLog("- Converting to Java Code...")
|
||||
Sleep(500)
|
||||
;if FileExists(@ScriptDir&"\tools\classes-dex2jar.jar") then FileDelete(@ScriptDir&"\tools\classes-dex2jar.jar")
|
||||
_AddLog("- Converting classes.dex to classes-dex2jar.jar...")
|
||||
If FileExists(@ScriptDir & "\tools\classes-dex2jar.src.zip") Then FileDelete(@ScriptDir & "\tools\classes-dex2jar.src.zip")
|
||||
RunWait(@ScriptDir & "\tools\dex2jar.bat classes.dex", "", @SW_HIDE)
|
||||
Sleep(250)
|
||||
MsgBox(0, "APK To Java", "Because controlling JD-GUI trough this application didn't work" & @CRLF & "You have to perform the manual action listed below to continue" & @CRLF & @CRLF & "In JD-GUI, press Control + Alt + S to open the save dialog" & @CRLF & "The script will take it from there.")
|
||||
;~ if FileExists(@ScriptDir&"\tools\classes-dex2jar.jar") Then
|
||||
Run(@ScriptDir & "\tools\jd-gui.exe " & Chr(34) & @ScriptDir & "\tools\classes-dex2jar.jar" & Chr(34))
|
||||
;~ sleep(250)
|
||||
;~ Local $guititle = WinGetTitle("Java Decompiler", "")
|
||||
;~ MsgBox(0, "Full title read was:", $guititle)
|
||||
|
||||
|
||||
|
||||
;~ WinWait($guititle)
|
||||
|
||||
;~ ControlFocus($guititle, "", "wxWindowClassNR")
|
||||
|
||||
|
||||
;~ sleep(250)
|
||||
;~ ;WinSetOnTop($guititle, "", 1)
|
||||
;~ ControlSend($guititle, "", "", "^!a")
|
||||
|
||||
|
||||
;WinSetOnTop("Save", "", 1)
|
||||
WinWaitActive("Save")
|
||||
Sleep(100)
|
||||
ControlSend("Save", "", "", "classes-dex2jar.src.zip")
|
||||
Sleep(200)
|
||||
ControlSend("Save", "", "", "{enter}")
|
||||
Sleep(200)
|
||||
|
||||
WinWaitClose("Save All Sources", "")
|
||||
|
||||
ProcessClose("jd-gui.exe")
|
||||
|
||||
Sleep(250)
|
||||
_AddLog("- Generating Java Code Done!")
|
||||
Sleep(250)
|
||||
_AddLog("- Extracting Java Code....")
|
||||
RunWait(@ScriptDir & "\tools\extractjava.bat", "", @SW_HIDE)
|
||||
_AddLog("- Extracting Java Code Done!")
|
||||
Sleep(250)
|
||||
_AddLog("- Copying Java Code to output dir....")
|
||||
DirCopy(@ScriptDir & "\tools\javacode", $getpath_outputdir & "\javacode", 1)
|
||||
_AddLog("- Copying Java Code Done!")
|
||||
;~ Else
|
||||
;~ MsgBox(16, "APK to Java", "An error has occured, the classes.dex file could not be converted to a jar file...")
|
||||
;~ EndIf
|
||||
|
||||
|
||||
EndFunc ;==>_DecompileJava
|
||||
|
||||
|
||||
;~ Func _CleanUp()
|
||||
;~ _AddLog("- Cleaning Up...")
|
||||
;~ DirRemove(@ScriptDir&"\tools\smalicode")
|
||||
;~ DirRemove(@ScriptDir&"\tools\javacode")
|
||||
;~ DirRemove(@ScriptDir&"\tools\resources")
|
||||
;~ FileDelete(@ScriptDir&"\tools\"&_GetExtProperty($getpath_apkjar, 0)&".zip")
|
||||
;~ FileDelete(@ScriptDir&"\tools\classes-dex2jar.jar")
|
||||
;~ FileDelete(@ScriptDir&"\tools\classes-dex2jar.src.zip")
|
||||
;~ FileDelete(@ScriptDir&"\tools\classes.dex")
|
||||
;~ _AddLog("- Cleaning Done!"&@CRLF)
|
||||
;~ _AddLog("The decompilation process is completed!")
|
||||
|
||||
;~ EndFunc
|
||||
|
||||
Func _DecompileResource()
|
||||
If FileExists(@ScriptDir & "\tools\resource") Then DirRemove(@ScriptDir & "\tools\resource")
|
||||
_AddLog("- Decompiling Resources...")
|
||||
ConsoleWrite(@ScriptDir & "\tools\extractres.bat " & Chr(34) & @ScriptDir & "\tools\" & _GetExtProperty($getpath_apkjar, 0) & Chr(34))
|
||||
RunWait(@ScriptDir & "\tools\extractres.bat " & Chr(34) & @ScriptDir & "\tools\" & _GetExtProperty($getpath_apkjar, 0) & Chr(34), "", @SW_HIDE)
|
||||
_AddLog("- Decompiling Resources Done!")
|
||||
; if FileExists($getpath_outputdir&"\resource") Then DirRemove($getpath_outputdir&"\resource")
|
||||
_AddLog("- Copying to output dir...")
|
||||
DirCopy(@ScriptDir & "\tools\resource", $getpath_outputdir & "\resource", 1)
|
||||
Sleep(250)
|
||||
_AddLog("- Copying to output dir Done!")
|
||||
EndFunc ;==>_DecompileResource
|
||||
|
||||
Func _MakeEclipse()
|
||||
|
||||
TrayTip("APK to Java", "Making Eclipse Project Done!", 2)
|
||||
Sleep(1000)
|
||||
EndFunc ;==>_MakeEclipse
|
||||
|
||||
Func _AddLog($string)
|
||||
$CurrentLog = GUICtrlRead($log)
|
||||
$NewLog = $CurrentLog & @CRLF & $string
|
||||
GUICtrlSetData($log, $NewLog)
|
||||
EndFunc ;==>_AddLog
|
||||
|
||||
|
||||
|
||||
|
||||
GUISetState()
|
||||
|
||||
While 1
|
||||
|
||||
$msg = GUIGetMsg()
|
||||
|
||||
Select
|
||||
|
||||
Case $msg = $gui_event_close Or $msg = $exit_button
|
||||
Exit
|
||||
|
||||
Case $msg = $filebrowse
|
||||
; if GUICtrlGetState($filebrowsedex) = 144 Then GUICtrlSetState($filebrowsedex, $GUI_ENABLE)
|
||||
|
||||
$getpath_apkjar = FileOpenDialog("APK to Java, please select an apk/jar file", "", "APK Files (*.apk)|JAR Files (*.jar)", 1, "")
|
||||
If $getpath_apkjar = "" Then
|
||||
;
|
||||
Else
|
||||
GUICtrlSetData($file, _GetExtProperty($getpath_apkjar, 0))
|
||||
If GUICtrlRead($filedex) <> "" Then GUICtrlSetData($filedex, "")
|
||||
;GUICtrlSetState($filebrowsedex, $GUI_DISABLE)
|
||||
EndIf
|
||||
|
||||
Case $msg = $filebrowsedex
|
||||
; if GUICtrlGetState($filebrowse) = 144 Then GUICtrlSetState($filebrowse, $GUI_ENABLE)
|
||||
$getpath_classes = FileOpenDialog("APK to Java, please select a classes.dex file", "", "DEX Files (*.dex)", 1, "classes.dex")
|
||||
If $getpath_classes = "" Then
|
||||
;
|
||||
Else
|
||||
GUICtrlSetData($filedex, _GetExtProperty($getpath_classes, 0))
|
||||
If GUICtrlRead($file) <> "" Then GUICtrlSetData($file, "")
|
||||
; GUICtrlSetState($filebrowse, $GUI_DISABLE)
|
||||
EndIf
|
||||
|
||||
Case $msg = $destdirbrowse
|
||||
$getpath_outputdir = FileSelectFolder("APK to Java, please select the output directory", "", 7, "")
|
||||
If $getpath_outputdir = "" Then
|
||||
;
|
||||
Else
|
||||
GUICtrlSetData($destination, $getpath_outputdir)
|
||||
EndIf
|
||||
|
||||
Case $msg = $start_process
|
||||
If $file = "" Or $filedex = "" Then
|
||||
MsgBox(0, "APK to Java", "You haven't selected an apk/jar or dex file!")
|
||||
ElseIf $destination = "" Then
|
||||
MsgBox(0, "APK to Java", "You haven't selected an output directory!")
|
||||
Else
|
||||
_ExtractAPK(_GetExtProperty($getpath_apkjar, 0))
|
||||
_RunDos("explorer " & $getpath_outputdir)
|
||||
|
||||
|
||||
;CLEANING
|
||||
|
||||
_AddLog("- Cleaning Up...")
|
||||
DirRemove(@ScriptDir & "\tools\smalicode", 1)
|
||||
DirRemove(@ScriptDir & "\tools\javacode", 1)
|
||||
DirRemove(@ScriptDir & "\tools\resource", 1)
|
||||
FileDelete(@ScriptDir & "\tools\" & _GetExtProperty($getpath_apkjar, 0) & ".zip")
|
||||
FileDelete(@ScriptDir & "\tools\classes-dex2jar.jar")
|
||||
FileDelete(@ScriptDir & "\tools\classes-dex2jar.src.zip")
|
||||
FileDelete(@ScriptDir & "\tools\classes.dex")
|
||||
_AddLog("- Cleaning Done!" & @CRLF)
|
||||
_AddLog("The decompilation process is completed!")
|
||||
|
||||
EndIf
|
||||
|
||||
|
||||
|
||||
EndSelect
|
||||
|
||||
WEnd
|
||||
|
||||
|
||||
|
||||
;~ $openfile = FileOpenDialog("Charged Notifcation Remover - Please choose a Samsung based SystemUI.apk", @WorkingDir, "APK Files (*.apk)", 1, "SystemUI.apk")
|
||||
;~ If @error Then
|
||||
;~ MsgBox(16, "Charged Notifcation Remover", "Aborted..")
|
||||
;~ Exit
|
||||
;~ Else
|
||||
;~ If FileExists(@ScriptDir & "\classes.dex") Then FileDelete(@ScriptDir & "\classes.dex")
|
||||
;~ If FileExists(@ScriptDir & "\out.dex") Then FileDelete(@ScriptDir & "\out.dex")
|
||||
;~ If FileExists(@ScriptDir & "\SystemUI.apk") Then FileDelete(@ScriptDir & "\SystemUI.apk")
|
||||
;~ If FileExists(@ScriptDir & "\SystemUI.zip") Then FileDelete(@ScriptDir & "\SystemUI.zip")
|
||||
;~ If FileExists(@ScriptDir & "\finished_apks\SystemUI.apk") Then FileDelete(@ScriptDir & "\finished_apks\SystemUI.apk")
|
||||
;~ If FileExists(@ScriptDir & "\finished_apks\SystemUI.zip") Then FileDelete(@ScriptDir & "\finished_apks\SystemUI.zip")
|
||||
;~ FileCopy($openfile, @ScriptDir & "\SystemUI.apk")
|
||||
;~ EndIf
|
||||
|
||||
;~ DirRemove(@ScriptDir & "\dexout", 1)
|
||||
;~ If FileExists(@ScriptDir & "\finished_apks\SystemUI.apk.backup") Then FileDelete(@ScriptDir & "\finished_apks\SystemUI.apk.backup")
|
||||
;~ FileCopy(@ScriptDir & "\SystemUI.apk", @ScriptDir & "\finished_apks\SystemUI.apk.backup")
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Making backup...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ Sleep(100)
|
||||
|
||||
;~ FileDelete(@TempDir & "\results.txt")
|
||||
|
||||
;~ Func _StringSearchInFile($file, $qry)
|
||||
;~ _RunDos("find /n /i """ & $qry & """ " & $file & " >> " & @TempDir & "\results.txt")
|
||||
;~ If Not @error Then
|
||||
;~ FileSetAttrib(@TempDir & "\results.txt", "-N+H+T", 0)
|
||||
;~ $CHARS = FileGetSize(@TempDir & "\results.txt")
|
||||
;~ Return FileRead(@TempDir & "\results.txt", $CHARS) & @CRLF
|
||||
;~ EndIf
|
||||
;~ EndFunc ;==>_StringSearchInFile
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Extracting...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ Sleep(100)
|
||||
;~ RunWait(@ScriptDir & "\extract.bat", "", @SW_HIDE)
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Deodexing...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ RunWait(@ScriptDir & "\deodex.bat", "", @SW_HIDE)
|
||||
|
||||
;~ FileDelete(@TempDir & "\results.txt")
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Determine lines...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
|
||||
;~ $search1 = _StringSearchInFile(@ScriptDir & "\dexout\com\android\systemui\statusbar\policy\StatusBarPolicy.smali", "Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V")
|
||||
;~ $readfirst = FileReadLine(@TempDir & "\results.txt", 3)
|
||||
;~ $readchars1 = StringLeft($readfirst, 5)
|
||||
;~ $startline = StringRight($readchars1, 4)
|
||||
|
||||
;~ ConsoleWrite($startline & @CRLF)
|
||||
;~ FileDelete(@TempDir & "\results.txt")
|
||||
|
||||
;~ $search2 = _StringSearchInFile(@ScriptDir & "\dexout\com\android\systemui\statusbar\policy\StatusBarPolicy.smali", "Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->turnOnScreenWithForce()V")
|
||||
;~ $readsecond = FileReadLine(@TempDir & "\results.txt", 3)
|
||||
;~ $readchars2 = StringLeft($readsecond, 5)
|
||||
;~ $endline = StringRight($readchars2, 4)
|
||||
|
||||
;~ $linecount = $endline - $startline
|
||||
|
||||
|
||||
;~ FileDelete(@TempDir&"\results.txt")
|
||||
|
||||
;~ $linecount = $endline - $startline
|
||||
;~ ConsoleWrite($linecount)
|
||||
|
||||
;~ If $linecount > 12 Or $linecount < 8 Then
|
||||
;~ MsgBox(16, "Error", "Charged Notification lines are not found" & @CRLF & @CRLF & "Possible Reasons:" & @CRLF & "- No Samsung SystemUI.apk" & @CRLF & "- Already removed the charged notification")
|
||||
;~ Exit
|
||||
;~ Else
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Deleting Line: " & $startline & "...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ _FileWriteToLine(@ScriptDir & "\dexout\com\android\systemui\statusbar\policy\StatusBarPolicy.smali", $startline, " ", 1)
|
||||
;~ Sleep(500)
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Deleting Line: " & $endline - 3 & "...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ _FileWriteToLine(@ScriptDir & "\dexout\com\android\systemui\statusbar\policy\StatusBarPolicy.smali", $endline - 3, " ", 1)
|
||||
;~ Sleep(500)
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Deleting Line: " & $endline & "...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ _FileWriteToLine(@ScriptDir & "\dexout\com\android\systemui\statusbar\policy\StatusBarPolicy.smali", $endline, " ", 1)
|
||||
;~ Sleep(500)
|
||||
;~ EndIf
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Compiling classes.dex...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ RunWait(@ScriptDir & "\compile.bat", "", @SW_HIDE)
|
||||
;~ Sleep(100)
|
||||
;~ DirRemove(@ScriptDir & "\dexout", 1)
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Updating SystemUI.apk...", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ RunWait(@ScriptDir & "\addfiles.bat", "", @SW_HIDE)
|
||||
;~ Sleep(100)
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Moving..", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ Sleep(100)
|
||||
|
||||
;~ SplashTextOn("Charged Notifcation Remover", "Status: Done!", 250, 40, -1, -1, 4, "Verdana", 10, 400)
|
||||
;~ Sleep(500)
|
||||
;~ SplashOff()
|
||||
;~ ShellExecute(@ScriptDir & "\finished_apks", "", "", "open", @SW_SHOW)
|
||||
;~ MsgBox(0, "Removed Charged Notification", "Thanks for using this tool, coded by: broodplank1337 @ XDA")
|
||||
|
||||
;~ Exit
|
||||
|
||||
1
APKtoJava.au3.tbl
Normal file
1
APKtoJava.au3.tbl
Normal file
File diff suppressed because one or more lines are too long
4513
APKtoJava_Obfuscated.au3
Normal file
4513
APKtoJava_Obfuscated.au3
Normal file
File diff suppressed because it is too large
Load Diff
28
ExtProp.au3
Normal file
28
ExtProp.au3
Normal file
@@ -0,0 +1,28 @@
|
||||
Func _GetExtProperty($sPath, $iProp)
|
||||
Local $iExist, $sFile, $sDir, $oShellApp, $oDir, $oFile, $aProperty, $sProperty
|
||||
$iExist = FileExists($sPath)
|
||||
If $iExist = 0 Then
|
||||
SetError(1)
|
||||
Return 0
|
||||
Else
|
||||
$sFile = StringTrimLeft($sPath, StringInStr($sPath, "\", 0, -1))
|
||||
$sDir = StringTrimRight($sPath, (StringLen($sPath) - StringInStr($sPath, "\", 0, -1)))
|
||||
$oShellApp = ObjCreate ("shell.application")
|
||||
$oDir = $oShellApp.NameSpace ($sDir)
|
||||
$oFile = $oDir.Parsename ($sFile)
|
||||
If $iProp = -1 Then
|
||||
Local $aProperty[35]
|
||||
For $i = 0 To 34
|
||||
$aProperty[$i] = $oDir.GetDetailsOf ($oFile, $i)
|
||||
Next
|
||||
Return $aProperty
|
||||
Else
|
||||
$sProperty = $oDir.GetDetailsOf ($oFile, $iProp)
|
||||
If $sProperty = "" Then
|
||||
Return 0
|
||||
Else
|
||||
Return $sProperty
|
||||
EndIf
|
||||
EndIf
|
||||
EndIf
|
||||
EndFunc ;==>_GetExtProperty
|
||||
11
Readme.txt
Normal file
11
Readme.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
-- APK To Java BETA
|
||||
-- v0.0.0.5
|
||||
-- by broodplank
|
||||
|
||||
-- www.broodplank.net
|
||||
|
||||
|
||||
How to compile:
|
||||
1. Download and install AutoIT (http://www.autoitscript.com/site/autoit/downloads/)
|
||||
2. Right click script file > Compile
|
||||
|
||||
BIN
tools/7za.exe
Normal file
BIN
tools/7za.exe
Normal file
Binary file not shown.
3
tools/apktool.bat
Normal file
3
tools/apktool.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
java -jar "%~dp0\apktool.jar" %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
BIN
tools/apktool.jar
Normal file
BIN
tools/apktool.jar
Normal file
Binary file not shown.
BIN
tools/baksmali-1.3.2.jar
Normal file
BIN
tools/baksmali-1.3.2.jar
Normal file
Binary file not shown.
3
tools/deosmali.bat
Normal file
3
tools/deosmali.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
java -jar baksmali-1.3.2.jar -o smalicode/ classes.dex
|
||||
23
tools/dex2jar.bat
Normal file
23
tools/dex2jar.bat
Normal file
@@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
REM
|
||||
REM dex2jar - Tools to work with android .dex and java .class files
|
||||
REM Copyright (c) 2009-2012 Panxiaobo
|
||||
REM
|
||||
REM Licensed under the Apache License, Version 2.0 (the "License");
|
||||
REM you may not use this file except in compliance with the License.
|
||||
REM You may obtain a copy of the License at
|
||||
REM
|
||||
REM http://www.apache.org/licenses/LICENSE-2.0
|
||||
REM
|
||||
REM Unless required by applicable law or agreed to in writing, software
|
||||
REM distributed under the License is distributed on an "AS IS" BASIS,
|
||||
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
REM See the License for the specific language governing permissions and
|
||||
REM limitations under the License.
|
||||
REM
|
||||
|
||||
set CLASSPATH=
|
||||
FOR %%i IN ("%~dp0lib\*.jar") DO CALL "%~dp0setclasspath.bat" %%i
|
||||
|
||||
java -Xms512m -Xmx1024m -cp "%CLASSPATH%" "com.googlecode.dex2jar.tools.Dex2jarCmd" %*
|
||||
5
tools/extract.bat
Normal file
5
tools/extract.bat
Normal file
@@ -0,0 +1,5 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
move %1 %1.zip
|
||||
7za.exe x -y %1 *.dex
|
||||
pause
|
||||
4
tools/extractapk.bat
Normal file
4
tools/extractapk.bat
Normal file
@@ -0,0 +1,4 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
copy %1 %1.zip
|
||||
7za.exe x -y %1.zip *.dex
|
||||
3
tools/extractjava.bat
Normal file
3
tools/extractjava.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
7za.exe x -y classes-dex2jar.src.zip -ojavacode
|
||||
2
tools/extractres.bat
Normal file
2
tools/extractres.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
java -jar "%~dp0\apktool.jar" d -s -f %1 "%~dp0resource"
|
||||
BIN
tools/jd-gui.exe
Normal file
BIN
tools/jd-gui.exe
Normal file
Binary file not shown.
28
tools/lib/asm-LICENSE.txt
Normal file
28
tools/lib/asm-LICENSE.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
ASM: a very small and fast Java bytecode manipulation framework
|
||||
Copyright (c) 2000-2005 INRIA, France Telecom
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. Neither the name of the copyright holders nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
|
||||
THE POSSIBILITY OF SUCH DAMAGE.
|
||||
BIN
tools/lib/asm-all-3.3.1.jar
Normal file
BIN
tools/lib/asm-all-3.3.1.jar
Normal file
Binary file not shown.
BIN
tools/lib/commons-cli-1.2.jar
Normal file
BIN
tools/lib/commons-cli-1.2.jar
Normal file
Binary file not shown.
203
tools/lib/commons-io-LICENSE.txt
Normal file
203
tools/lib/commons-io-LICENSE.txt
Normal file
@@ -0,0 +1,203 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
6
tools/lib/commons-io-NOTICE.txt
Normal file
6
tools/lib/commons-io-NOTICE.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
Apache Commons IO
|
||||
Copyright 2002-2010 The Apache Software Foundation
|
||||
|
||||
This product includes software developed by
|
||||
The Apache Software Foundation (http://www.apache.org/).
|
||||
|
||||
BIN
tools/lib/commons-lite-1.10.jar
Normal file
BIN
tools/lib/commons-lite-1.10.jar
Normal file
Binary file not shown.
BIN
tools/lib/dex-ir-1.7.jar
Normal file
BIN
tools/lib/dex-ir-1.7.jar
Normal file
Binary file not shown.
BIN
tools/lib/dex-reader-1.10.jar
Normal file
BIN
tools/lib/dex-reader-1.10.jar
Normal file
Binary file not shown.
BIN
tools/lib/dex-tools-0.0.0.5.jar
Normal file
BIN
tools/lib/dex-tools-0.0.0.5.jar
Normal file
Binary file not shown.
BIN
tools/lib/dex-translator-0.0.9.9.jar
Normal file
BIN
tools/lib/dex-translator-0.0.9.9.jar
Normal file
Binary file not shown.
190
tools/lib/dx-NOTICE
Normal file
190
tools/lib/dx-NOTICE
Normal file
@@ -0,0 +1,190 @@
|
||||
|
||||
Copyright (c) 2005-2008, The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
BIN
tools/lib/dx.jar
Normal file
BIN
tools/lib/dx.jar
Normal file
Binary file not shown.
BIN
tools/lib/jasmin-p2.5.jar
Normal file
BIN
tools/lib/jasmin-p2.5.jar
Normal file
Binary file not shown.
30
tools/lib/license-jasmin.txt
Normal file
30
tools/lib/license-jasmin.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* Copyright (c) 1996-2004, Jon Meyer
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
* that the following conditions are met:
|
||||
*
|
||||
* Redistributions of source code must retain the above copyright notice, this list of conditions
|
||||
* and the following disclaimer.
|
||||
*
|
||||
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions
|
||||
* and the following disclaimer in the documentation and/or other materials provided with the
|
||||
* distribution.
|
||||
*
|
||||
* Neither the name of the Jon Meyer nor the names of its contributors may be used to
|
||||
* endorse or promote products derived from this software without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
* PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
|
||||
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* Jasmin was written by Jon Meyer, www.cybergrain.com
|
||||
* The Jasmin website is jasmin.sourceforge.net.
|
||||
*/
|
||||
|
||||
BIN
tools/lib/p-rename-1.1.jar
Normal file
BIN
tools/lib/p-rename-1.1.jar
Normal file
Binary file not shown.
8
tools/setclasspath.bat
Normal file
8
tools/setclasspath.bat
Normal file
@@ -0,0 +1,8 @@
|
||||
SET _CLASSPATHCOMPONENT=%1
|
||||
:argCheck
|
||||
IF %2a==a GOTO gotAllArgs
|
||||
SHIFT
|
||||
SET _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1
|
||||
GOTO argCheck
|
||||
:gotAllArgs
|
||||
SET CLASSPATH=%_CLASSPATHCOMPONENT%;%CLASSPATH%
|
||||
Reference in New Issue
Block a user