problem while recompiling the apk on advanced apktool - Android Q&A, Help & Troubleshooting

I Living problem. Any body can help me?
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex…
I: Building resources…
I: Building apk file…
I: Preparing apk file…
The syntax of the command is incorrect.

simox123 said:
I Living problem. Any body can help me?
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex…
I: Building resources…
I: Building apk file…
I: Preparing apk file…
The syntax of the command is incorrect.
Click to expand...
Click to collapse
Try posting on that thread here:
http://forum.xda-developers.com/showthread.php?t=1755243
Sent from my SCH-I535 using XDA Free mobile app

Related

Issues compiling APK via ApkChanger

I'm attempting to create my first app (specifically, a GOSMS skin).
For the first three attempts or so, everything was honky-dory. I was compiling my .apk with no issues each time.
Now, however, every time I attempt to compile a .apk with Apk Changer, I receive the following error(s):
Code:
--------------------------------------------------------------------------
|Fri 07/13/2012 -- 19:34:56.61|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: G:\Users\Jason\apktool\framework\1-api15.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
The system cannot find the path specified.
Could Not Find G:\Users\Jason\Desktop\apk\other\app\MyApk.conf
Could Not Find G:\Users\Jason\Desktop\apk\out\MyApk\*.bak
Could Not Find G:\Users\Jason\Desktop\apk\out\MyApk\*.rej
Could Not Find G:\Users\Jason\Desktop\apk\out\MyApk\*.orig
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
Odd thing it, I can navigate to \apk\other\app and MyApk.conf does exist. The others (.bak, .reg, .orig) do not exist in \out\MyApk,
I get this every single time - I can decompile any random .apk and immediately re-compile it without making any changes and still receive this error. To my knowledge, I made no changes to my Apk Changer settings. I even attempted to delete and extract a fresh copy of Apk Changer - no dice.
I'm sure I'm missing something blatantly obvious, but can't figure it out for the life of me.
Any ideas?

Please help decompiling ICS APK :(

Please Help
I use windows 7 64-Bit.
I have installed
JDK 7 update 5 (64 Bit)
Android SDK
Java
But I can not decompile anything.
Using autoapktool, apktool, apkmanager, blabla.
I won't make a thread before I search on google. So many threads I follow the steps. But nothing.
Here are the errors when I try to unpack Gmail.apk:
1. I try to decompile with autoapktool2.0.4A, but it stuck on"I: Copying assets and libs..."
2. Errors when decompile with ApkManager5.0.2
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b06)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
Could Not Find E:\Master\Android\PC tools\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedGmail.apk
Could Not Find E:\Master\Android\PC tools\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedGmail.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f090000 integer/dialog_animationDefaultStartOffset, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
3. When I use apkchanger to decompile, it does not have any errors, but when compile it :
Code:
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b22)
Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)
I: Copying raw classes.dex file...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Ridho\apktool\framework\1-api15.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Could Not Find C:\Users\Ridho\Downloads\Compressed\Apk-Changer_alpha9\other\app\Gmail.conf
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
The system cannot find the file specified.
Please help. I am getting sick with this thing.
No one?
Ridho1 said:
No one?
Click to expand...
Click to collapse
Try apk manager
Avilove.Cullen said:
Try apk manager
Click to expand...
Click to collapse
I have tried. As you can see, I have an error when recompile it.
Make sure u dont change any of the apk mamager files from the original foulder leave everythun you extracted together in the same foalder. If you continue having errors you might have to try diffrent versions of apk manager to get it to work.
Sent from my PC36100 using Xparent Blue Tapatalk 2
Ridho1 said:
I have tried. As you can see, I have an error when recompile it.
Click to expand...
Click to collapse
Have you installed the framework?
Avilove.Cullen said:
Have you installed the framework?
Click to expand...
Click to collapse
What framework?
Ridho1 said:
What framework?
Click to expand...
Click to collapse
system framework..
in apk manager . You will see a folder named "other",there open CMD and type "apktool if framework-res.apk"

[SOLVED] Decompiling Fail

xDA, I had an issue when decompiling a stock app for my Sony Ericsson. It's running 4.0.4,
C:\Users\Callison10\Desktop\Programs\Android\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Users\Callison10\apktool\framework\Conversations.apk
C:\Users\Callison10\Desktop\Programs\Android\apktool>apktool d Conversations.apk MMS
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Callison10\apktool\framework\Conversations.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202000d
W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202000d
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.​
I solved this issue,
C:\Users\Callison10\Desktop\Programs\Android\apktool>apktool if SemcGenericUxpRes.apk
I: Framework installed to: C:\Users\Callison10\apktool\framework\2.apk
C:\Users\Callison10\Desktop\Programs\Android\apktool>apktool d Conversations.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Callison10\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Callison10\apktool\framework\2.apk
I: Loaded.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\Callison10\Desktop\Programs\Android\apktool>​
To solve the issue, use SemcGenericUxpRes.apk !
I get the same error when trying to decompile stock Conversations.apk. But I can decompile any other apks without errors. I tried by installing different frameworks. But nothing solved the problem. If you (OP) are successful decompiling Conversations.apk, let me know.
RavinduSha said:
I get the same error when trying to decompile stock Conversations.apk. But I can decompile any other apks without errors. I tried by installing different frameworks. But nothing solved the problem. If you (OP) are successful decompiling Conversations.apk, let me know.
Click to expand...
Click to collapse
I found out how! I'll let you know soon as the needed file is on my computer.
Callison10 said:
I found out how! I'll let you know soon as the needed file is on my computer.
Click to expand...
Click to collapse
Thanks! Waiting for your reply
Solved !
RavinduSha said:
Thanks! Waiting for your reply
Click to expand...
Click to collapse
The answer is to Use SemcGenericUxpRes.apk !
Re: [Q] Decompiling Fail?
Add solved to title if you problem is solved it would save precious time of users and moderators
Sent from my A116 using Tapatalk 2
sak-venom1997 said:
Add solved to title if you problem is solved it would save precious time of users and moderators
Sent from my A116 using Tapatalk 2
Click to expand...
Click to collapse
Your wish is my command.
Callison10 said:
The answer is to Use SemcGenericUxpRes.apk !
Click to expand...
Click to collapse
Thats right!! Successfully decompiled my Conversations.apk

[need help] apktool framework for ID : 4

Hello All, I need little help, i am using apk tool 2.2.1 by ibotpeaches,
and everything is working fine for almose all apks that i decompiled,
but i have created xperia theme now, by xperia theme creator, now i want to decompile that theme to add some more features menually, and when i try to decompile it shows an error ,
i have searched over internet but could not find any solution.
I: Using Apktool 2.2.1 on theme.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Abuzar Shaheen\AppData\Local\apkto
ol\framework\1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Can't find framework resources for package of id: 4. You must install proper fra
mework files, see project website for more info.
Click to expand...
Click to collapse
i am using framework-res from marshmallow as framework id :1
and SemcGenericUxpRes.apk as id:2
but what should i use as id:4 .
Thanks XDA-Community..

Apktool error

Hi all guys
I read all the guides I found
And I can't find why I got an error
D:\>D:\apktool d -f D:\SecSettings.apk
I: Using Apktool 2.4.1 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\office\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files.
D:\>D:\apktool b D:\SecSettings
I: Using Apktool 2.4.1
W: Could not find sources
I: Checking whether resources has changed...
I: Copying raw resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
in fact . The app does not work. Even without changing anything.
phone : samsung Young android 4.1.2
app : SecSettings.apk
dvash01 said:
Hi all guys
I read all the guides I found
And I can't find why I got an error
D:\>D:\apktool d -f D:\SecSettings.apk
I: Using Apktool 2.4.1 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\office\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files.
D:\>D:\apktool b D:\SecSettings
I: Using Apktool 2.4.1
W: Could not find sources
I: Checking whether resources has changed...
I: Copying raw resources...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
in fact . The app does not work. Even without changing anything.
phone : samsung Young android 4.1.2
app : SecSettings.apk
Click to expand...
Click to collapse
You need to install your framework-res.apk into apktool first.
Code:
apktool if framework-res.apk
Then try to decompile your settings app. After you've made your changes and recompiled the app, open the original apk and your new apk in WinRAR or 7zip, and copy meta-info folder & AndroidManifest.xml from the original apk to your new one. Drag it from one apk to the other, don't extract them at all. This will resign your app with the original system signature. This is usually needed if you're working on system apps or you'll get a bootloop and/or force closes. Hope this helps!
Spaceminer said:
You need to install your framework-res.apk into apktool first.
Code:
apktool if framework-res.apk
Then try to decompile your settings app. After you've made your changes and recompiled the app, open the original apk and your new apk in WinRAR or 7zip, and copy meta-info folder & AndroidManifest.xml from the original apk to your new one. Drag it from one apk to the other, don't extract them at all. This will resign your app with the original system signature. This is usually needed if you're working on system apps or you'll get a bootloop and/or force closes. Hope this helps!
Click to expand...
Click to collapse
Thanks my friend for the answer
I did
And if I do as you say. I get more errors See:
D:\>D:\apktool b D:\SecSettings
I: Using Apktool 2.4.1
W: Could not find sources
[Fatal Error] :1:1: Content is not allowed in prolog.
I: Checking whether resources has changed...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
That's why I also took the resources.arsc file from the original
And so I only get this error
dvash01 said:
You need to install your framework-res.apk into apktool first.
Thanks my friend for the answer
I did
And if I do as you say. I get more errors See:
D:\>D:\apktool b D:\SecSettings
I: Using Apktool 2.4.1
W: Could not find sources
[Fatal Error] :1:1: Content is not allowed in prolog.
I: Checking whether resources has changed...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
That's why I also took the resources.arsc file from the original
And so I only get this error
Click to expand...
Click to collapse
So if I understand you try to decompile and APK and it doesn't work ?
Usually it means that you've made an error modifying your APK.
You already tried to decompile-recompile your APK without modifying anything, but I'll ask you to do it once again, just enter those commands:
apktool d [name of the app].apk
apktool b [name of the app].apk -c
(-c allows to keep the original signature when recompiling)
Tell me if you go an error.
Also, when doing that, don't move any other file in the the decompiled apk, I need to know what happens when the only thing you do is decompile-recompile.
Thanks !
Raiz said:
So if I understand you try to decompile and APK and it doesn't work ?
Usually it means that you've made an error modifying your APK.
You already tried to decompile-recompile your APK without modifying anything, but I'll ask you to do it once again, just enter those commands:
apktool d [name of the app].apk
apktool b [name of the app].apk -c
(-c allows to keep the original signature when recompiling)
Tell me if you go an error.
Also, when doing that, don't move any other file in the the decompiled apk, I need to know what happens when the only thing you do is decompile-recompile.
Thanks !
Click to expand...
Click to collapse
First of all thank you very much for your patience
I tried to disassemble without changing anything
Now I added C as you said
That's what came out
D:\>D:\apktool d -f D:\SecSettings.apk
I: Using Apktool 2.4.1 on SecSettings.apk
I: Loading resource table...
W: Skipping "android" package group
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\משרד\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
D:\>D:\apktool b D:\SecSetting -c
-c/--copy-original has been deprecated. Removal planned for v2.5.0 (#2129)
I: Using Apktool 2.4.1
brut.directory.DirectoryException: java.io.FileNotFoundException: D:\SecSetting (The system cannot find the file specified)
And if I add the two original files,
AndroidManifest.xml resources.arsc
that's what came out
D:\>D:\apktool b D:\SecSettings -c
-c/--copy-original has been deprecated. Removal planned for v2.5.0 (#2129)
I: Using Apktool 2.4.1
W: Could not find sources
I: Checking whether resources has changed...
I: Copying raw resources...
I: Copy original files...
I: Copy AndroidManifest.xml...
I: Copy META-INF...
I: Building apk file...
I: Copying unknown files/dir...
I: Built apk...
But please explain to me
Opening Is Not An Error
W: Skipping "android" package group

Categories

Resources