新人求助.反编译成功.会编译失败!
apktool吧
全部回复
仅看楼主
level 10
毛主爱 楼主
D:\apktool>apktool b SystemUI
I: Using Apktool 2.1.0
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: D:\apktool\SystemUI\res\values\styles.xml:186: error: Error retrieving parent for item: No resour
ce found that matches the given name '@android:style/TextAppearance.StatusBar'.
W:
W: D:\apktool\SystemUI\res\values\styles.xml:187: error: Error retrieving parent for item: No resour
ce found that matches the given name '@android:style/TextAppearance.StatusBar'.
W:
W: D:\apktool\SystemUI\res\values\styles.xml:192: error: Error retrieving parent for item: No resour
ce found that matches the given name '@android:style/TextAppearance.StatusBar'.
W:
W: D:\apktool\SystemUI\res\values\styles.xml:202: error: Error retrieving parent for item: No resour
ce found that matches the given name '@android:style/TextAppearance.StatusBar'.
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.co
mmon.BrutException: could not exec (exit code = 1): [C:\Users\Mei\AppData\Local\Temp\brut_util_Jar_2
0888789479929090.tmp, p, --forced-package-id, 127, --min-sdk-version, 23, --target-sdk-version, 23,
--version-code, 23, --version-name, 6.0-eng.buildteam.20151127.182219, -F, C:\Users\Mei\AppData\Loca
l\Temp\APKTOOL5820029021937716907.tmp, -0, arsc, -0, arsc, -I, C:\Users\Mei\apktool\framework\1.apk,
-S, D:\apktool\SystemUI\res, -M, D:\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:433)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1
): [C:\Users\Mei\AppData\Local\Temp\brut_util_Jar_20888789479929090.tmp, p, --forced-package-id, 127
, --min-sdk-version, 23, --target-sdk-version, 23, --version-code, 23, --version-name, 6.0-eng.build
team.20151127.182219, -F, C:\Users\Mei\AppData\Local\Temp\APKTOOL5820029021937716907.tmp, -0, arsc,
-0, arsc, -I, C:\Users\Mei\apktool\framework\1.apk, -S, D:\apktool\SystemUI\res, -M, D:\apktool\Syst
emUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:419)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Mei\AppData\Local\Te
mp\brut_util_Jar_20888789479929090.tmp, p, --forced-package-id, 127, --min-sdk-version, 23, --target
-sdk-version, 23, --version-code, 23, --version-name, 6.0-eng.buildteam.20151127.182219, -F, C:\User
s\Mei\AppData\Local\Temp\APKTOOL5820029021937716907.tmp, -0, arsc, -0, arsc, -I, C:\Users\Mei\apktoo
l\framework\1.apk, -S, D:\apktool\SystemUI\res, -M, D:\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:427)
... 6 more
请问什么问题?
2016年04月11日 10点04分 1
level 10
毛主爱 楼主
反汇编SystemUI...没加载framework...Java配置正确了!
2016年04月11日 10点04分 2
level 10
毛主爱 楼主
Usage: java [-options] class [args...]
(to execute a class)
or java [-options] -jar jarfile [args...]
(to execute a jar file)
where options include:
-d32 use a 32-bit data model if available
-d64 use a 64-bit data model if available
-server to select the "server" VM
The default VM is server.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose:[class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
Warning: this feature is deprecated and will be removed
in a future release.
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search
Warning: this feature is deprecated and will be removed
in a future release.
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions with specified granularity
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions with specified granularity
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument
-splash:<imagepath>
show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details.
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files and annotation processors
-cp <path> Specify where to find user class files and annotation processors
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-proc:{none,only} Control whether annotation processing and/or compilation is done.
-processor <class1>[,<class2>,<class3>...] Names of the annotation processors to run; bypasses def
ault discovery process
-processorpath <path> Specify where to find annotation processors
-parameters Generate metadata for reflection on method parameters
-d <directory> Specify where to place generated class files
-s <directory> Specify where to place generated source files
-h <directory> Specify where to place generated native header files
-implicit:{none,class} Specify whether or not to generate class files for implicitly reference
d files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-profile <profile> Check that API used is available in the specified profile
-version Version information
-help Print a synopsis of standard options
-Akey[=value] Options to pass to annotation processors
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
-Werror Terminate compilation if warnings occur
@<filename> Read options and filenames from file
2016年04月11日 11点04分 3
1