mirror of
https://github.com/broodplank/APKtoJava.git
synced 2026-04-25 03:00:02 -04:00
RC Release of v0.9
Updated the way of getting the eclipse project, it now extracts from a zip, updated the help file.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
#AutoIt3Wrapper_Compression=4
|
||||
#AutoIt3Wrapper_UseUpx=n
|
||||
#AutoIt3Wrapper_Res_Description=©2012 broodplank.net
|
||||
#AutoIt3Wrapper_Res_Fileversion=0.0.0.8
|
||||
#AutoIt3Wrapper_Res_Fileversion=0.0.0.9
|
||||
#AutoIt3Wrapper_Run_Tidy=y
|
||||
#AutoIt3Wrapper_Run_Obfuscator=y
|
||||
#endregion ;**** Directives created by AutoIt3Wrapper_GUI ****
|
||||
@@ -110,12 +110,12 @@ EndFunc ;==>FixConfig
|
||||
Global $getpath_apkjar, $getpath_classes, $getpath_outputdir, $log, $decompile_eclipse, $decompile_resource, $decompile_source_java, $decompile_source_smali, $failparam
|
||||
|
||||
|
||||
GUICreate("APK to Java v0.8 BETA (by broodplank)", 550, 450)
|
||||
GUICreate("APK to Java v0.9 BETA (by broodplank)", 550, 450)
|
||||
|
||||
GUISetFont(8, 8, 0, "Verdana")
|
||||
|
||||
GUICtrlCreateLabel("Log:", 305, 5)
|
||||
$log = GUICtrlCreateEdit("APK to Java v0.8 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF, 305, 22, 240, 420, BitOR($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_MULTILINE, $ES_WANTRETURN, $ES_READONLY));, $ES_READONLY))
|
||||
$log = GUICtrlCreateEdit("APK to Java v0.9 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF, 305, 22, 240, 420, BitOR($WS_VSCROLL, $ES_AUTOVSCROLL, $ES_MULTILINE, $ES_WANTRETURN, $ES_READONLY));, $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)
|
||||
@@ -163,7 +163,7 @@ EndFunc ;==>_StringSearchInFile
|
||||
|
||||
|
||||
Func _ExtractAPK($apkfile)
|
||||
GUICtrlSetData($log, "APK to Java v0.8 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF)
|
||||
GUICtrlSetData($log, "APK to Java v0.9 BETA Initialized...." & @CRLF & "------------------------------------------" & @CRLF)
|
||||
FileDelete(@ScriptDir & "\tools\classes.dex")
|
||||
_AddLog("- Extracting APK...")
|
||||
FileCopy($getpath_apkjar, @ScriptDir & "\tools\" & _GetExtProperty($getpath_apkjar, 0))
|
||||
@@ -236,8 +236,8 @@ EndFunc ;==>_DecompileResource
|
||||
Func _MakeEclipse()
|
||||
_AddLog(@CRLF & "- Making Eclipse Project...")
|
||||
If FileExists($getpath_outputdir & "\eclipseproject") Then DirRemove($getpath_outputdir & "\eclipseproject", 1)
|
||||
_AddLog("- Copying example project..")
|
||||
DirCopy(@ScriptDir & "\tools\exampleproject", $getpath_outputdir & "\eclipseproject", 1)
|
||||
_AddLog("- Extracting Example Project..")
|
||||
RunWait(@ScriptDir & "\tools\extracteclipse.bat " & $getpath_outputdir, "", @SW_HIDE)
|
||||
_AddLog("- Importing AndroidManifest.xml...")
|
||||
FileCopy($getpath_outputdir & "\resource\AndroidManifest.xml", $getpath_outputdir & "\eclipseproject\AndroidManifest.xml", 1)
|
||||
_AddLog("- Importing Resources...")
|
||||
@@ -251,9 +251,7 @@ Func _MakeEclipse()
|
||||
_AddLog("- Setting Target SDK...")
|
||||
;Read targetsdk value from Manifest
|
||||
$tarsdkarray = StringRegExp(_StringSearchInFile($getpath_outputdir & "\eclipseproject\AndroidManifest.xml", "android:targetSdkVersion"), "android:targetSdkVersion=" & Chr(34) & "(.*?)" & Chr(34), 1, 1)
|
||||
ConsoleWrite($tarsdkarray[0])
|
||||
$write = _FileWriteToLine($getpath_outputdir & "\eclipseproject\project.properties", 14, "target=android-" & $tarsdkarray[0], 1)
|
||||
ConsoleWrite($write)
|
||||
|
||||
_AddLog("- Importing Java Sources...")
|
||||
DirCopy($getpath_outputdir & "\javacode\com", $getpath_outputdir & "\eclipseproject\src\com", 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
BIN
tools/eclipseproject.zip
Normal file
BIN
tools/eclipseproject.zip
Normal file
Binary file not shown.
@@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
||||
@@ -1,32 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -1,4 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
||||
@@ -1,20 +0,0 @@
|
||||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
@@ -1,13 +0,0 @@
|
||||
# This file is automatically generated by Android Tools.
|
||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||
#
|
||||
# This file must be checked in Version Control Systems.
|
||||
#
|
||||
# To customize properties used by the Ant build system edit
|
||||
# "ant.properties", and override values to adapt the script to your
|
||||
# project structure.
|
||||
#
|
||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
3
tools/extracteclipse.bat
Normal file
3
tools/extracteclipse.bat
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
cd /d %~dp0
|
||||
7za.exe x -y -o%1\eclipseproject eclipseproject.zip *
|
||||
Reference in New Issue
Block a user