手机端反编译吧 关注:8,581贴子:18,204

回复:带着你的apktool问题,我尽力解答

只看楼主收藏回复

楼楼,我用apktool反编译了状态栏,生成了apk,把该替换的asrc和xml文件都替换到了原apk中。接着就替换了状态栏的一些图片,然后为什么状态栏使用就会停止运行啊。怎么办呢?是不是要反编译就不能替换图片呢?小白求教


来自Android客户端116楼2014-10-31 16:15
收起回复
    Input file (/mnt/sdcard2/????9/o?/PCE_emu_v_1_5_12.apk) was not found or was not readable.


    来自Android客户端117楼2014-10-31 17:43
    收起回复
      回编没有文件,但我就在弄这个之前可以回编出文件,

         ——我愿为你等候风的归宿☂


      IP属地:广东来自Android客户端118楼2014-10-31 22:58
      收起回复
        Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: /sdcard/1234/SystemUI_src/smali/com/android/systemui/statusbar/tablet/TabletStatusBarPolicy$1.smali (No such file or directory)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:60)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
        at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:337)
        at brut.androlib.Androlib.buildSources(Androlib.java:298)
        at brut.androlib.Androlib.build(Androlib.java:284)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:233)
        at brut.apktool.Main.main(Main.java:88)
        Caused by: java.io.FileNotFoundException: /sdcard/1234/SystemUI_src/smali/com/android/systemui/statusbar/tablet/TabletStatusBarPolicy$1.smali (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)
        at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:56)
        ... 7 more
        I: Using Apktool 2.0.0-Beta7 on SystemUI_src
        I: Smaling...
           ——我愿为你等候风的归宿☂


        IP属地:广东来自Android客户端119楼2014-11-01 06:47
        收起回复
          /storage/sdcard1/fanbianyi/SystemUI_src/res/layout/status_bar.xml:1: error: Error parsing XML: not well-formed (invalid token)
          Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/lix/aapt4.4, p, --min-sdk-version, 17, --target-sdk-version, 17, --version-code, 17, --version-name, 4.2.2-eng.compiler.1391929466, -F, /data/data/per.pqy.apktool/APKTOOL8811444783258507290.tmp, -0, arsc, -I, ?/apktool/framework/1.apk, -I, ?/apktool/framework/3.apk, -S, /storage/sdcard1/fanbianyi/SystemUI_src/res, -M, /storage/sdcard1/fanbianyi/SystemUI_src/AndroidManifest.xml]
          at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
          at brut.androlib.Androlib.buildResources(Androlib.java:362)
          at brut.androlib.Androlib.build(Androlib.java:285)
          at brut.androlib.Androlib.build(Androlib.java:258)
          at brut.apktool.Main.cmdBuild(Main.java:233)
          at brut.apktool.Main.main(Main.java:88)
          Cau


          来自Android客户端120楼2014-11-01 13:48
          收起回复
            W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001 W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000015 W: Could not decode attr value, using undecoded value instead: ns=android, name=versionCode, value=0x00000001 W: Could not decode attr value, using undecoded value instead: ns=android, name=versionName, value=0x00000015 Exception in thread "main" java.lang.NullPointerException: at java.io.Writer.write(Writer.java:157) at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38) at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673) at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267) at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211) at brut.androlib.res.decoder.XmlPullStreamDecoder$1.event(XmlPullStreamDecoder.java:87) at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:146) at brut.androlib.res.decoder.XmlPullStreamDecoder.decodeManifest(XmlPullStreamDecoder.java:160) at brut.androlib.res.decoder.ResFileDecoder.decodeManifest(ResFileDecoder.java:131) at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:276) at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:116) at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114) at brut.apktool.Main.cmdDecode(Main.java:169) at brut.apktool.Main.main(Main.java:85) I: Using Apktool 2.0.0-Beta9 on Apktool4.6.apk I: Loading resource table... I: Loading resource table... I: Decoding AndroidManifest.xml with resources... 提示这个怎么办?


            IP属地:广东来自手机贴吧121楼2014-11-01 14:09
            收起回复
              I: Framework installed to: ?/apktool/framework/1.apk
              刷机后不能导入框架了,以前也遇到过,好像是root权限的问题
              求解


              IP属地:四川来自Android客户端122楼2014-11-02 09:16
              收起回复
                libpng error: Not a PNG file
                ERROR: Failure processing PNG image /sdcard/AA/SystemUI_src/res/drawable-hdpi/oppo_stat_sys_alarm.png
                /sdcard/AA/SystemUI_src/res/values/public.xml:227: error: Public symbol drawable/app_clear_button declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:289: error: Public symbol drawable/app_clear_normal declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:290: error: Public symbol drawable/app_clear_pressed declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:17: error: Public symbol drawable/app_manage_bg declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:228: error: Public symbol drawable/app_manage_button declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:291: error: Public symbol drawable/app_manage_normal declared here is not defined.
                /sdcard/AA/SystemUI_src/res/values/public.xml:292: error: Public symbol drawable/app_manage_pressed de


                IP属地:广东来自Android客户端123楼2014-11-02 12:16
                收起回复
                  I: Baksmaling...
                  I: Loading resource table...
                  W: Skipping "android" package group
                  I: Loaded.
                  I: Decoding AndroidManifest.xml with resources...
                  I: Loading resource table from file: ?/apktool/framework/1.apk
                  I: Loaded.
                  I: Regular manifest package...
                  I: Decoding file-resources...
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108074c
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawableTop, value=0x01080661
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108074c
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                  W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                  W: Could not decode attr value, using undecoded value instead: ns=android, na


                  IP属地:重庆来自Android客户端124楼2014-11-03 01:25
                  收起回复
                    两个版本都是这样
                    W: Skipping "android" package group
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108074d
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108061f
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108074c
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x0108074c
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawable, value=0x01080689
                    W: Could not decode attr value, using undecoded value instead: ns=android, name=drawableTop, value=


                    IP属地:重庆来自Android客户端125楼2014-11-03 01:28
                    回复
                      反编译状态栏0秒完成,完成后没有文件夹


                      IP属地:湖北来自Android客户端126楼2014-11-03 10:52
                      收起回复
                        I: Baksmaling...
                        I: Loading resource table...
                        W: Config flags size > 36. Exceeding bytes: 0x9C00.
                        W: Invalid config flags detected. Dropping resources: string-ERR0
                        W: Config flags size > 36. Exceeding bytes: 0x11009C00.
                        W: Invalid config flags detected. Dropping resources: string-ERR1
                        W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
                        W: Invalid config flags detected. Dropping resources: string-ERR2
                        W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
                        W: Invalid config flags detected. Dropping resources: string-ERR3
                        W: Config flags size > 36. Exceeding bytes: 0x9C00.
                        W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR4
                        W: Config flags size > 36. Exceeding bytes: 0x11009C00.
                        W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR5
                        W: Config flags size > 36. Exceeding bytes: 0x5C009C00.
                        W: Invalid config flags detected. Dropping resources: string-zh-rHK-ERR6
                        W: Config flags size > 36. Exceeding bytes: 0xE7039C00.
                        W: Invalid config flags detecte


                        来自Android客户端127楼2014-11-03 10:59
                        收起回复
                          就systemui不可以。其它的都可以




                          来自Android客户端128楼2014-11-03 11:39
                          收起回复



                            来自Android客户端129楼2014-11-03 11:40
                            回复
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              W: Config size > 32
                              Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
                              spec=0x01040308 string/lockscreen_carrier_default, config=[DEFAULT]
                              at brut.androlib.res.data.ResConfig.addResource(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.readEntry(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.readConfig(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.readType(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.readPackage(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.readTable(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
                              at brut.androlib.res.decoder.ARSCDecoder.decode(Unknown Source)
                              at brut.androlib.res.AndrolibResources.installFramework(Unknown Source)
                              at brut.androlib.Androlib.installFramework(Unknown Source)
                              at brut.apktool.Main.cmdInstallFramework(Unknown Source)
                              at brut.apktool.Main.main(Unknown Source)
                              导入框架失败,怎么解决?


                              IP属地:浙江130楼2014-11-03 12:43
                              收起回复