[Mods plz delete this thread] - Galaxy Ace S5830 General

I just bought a new pc. Now i tried apktool 1.4.3 to decompile and compile apks. But whenever i decompile or try to build them again, it gives an error message. I am using aapt.exe that came with apktool. Will using aapt.exe from sdk solve the problem?I never had that prob in my earlier computer.(windows xp 32 bit)
2)what tool do u guys use?
Sent from my GT-S5830 using XDA

Have you tried 'running (aapt) as administrator'?

U need sp3 to work....
Sent from my GT-S5830 using xda premium

What is APKTOOL???
Sent from my GT-S5830 using xda premium

thespb said:
What is APKTOOL???
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
It is a tool that allows you to decompile an app into its basic code format for you to edit or change, then recompile.
http://code.google.com/p/android-apktool/

Bakuron said:
Have you tried 'running (aapt) as administrator'?
Click to expand...
Click to collapse
Yes i have
Sent from my GT-S5830 using XDA

AashayS said:
Yes i have
Sent from my GT-S5830 using XDA
Click to expand...
Click to collapse
Are you using any external jar files? http://forum.xda-developers.com/archive/index.php/t-1021207.html

I replaced the aapt.exe with the sdk one.
now wen i decompile my fsystemui.apk, i get this code,
Code:
I: Baksmaling...
I: Loading resource table...
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
sharedUserId, value=0x0000001c
Exception in thread "main" java.lang.NullPointerException
at java.io.Writer.write(Unknown Source)
at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSeria
lizer.java:38)
at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:
673)
at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSer
ializerDelegate.java:106)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
ty in advance

Ok it sounds like it could be a) incomplete decompile due to incorrect placement of apktool files and/or b) issue with whatever you recoded. http://forum.xda-developers.com/showthread.php?t=1511730&page=5
Are you using Eclipse?

Bakuron said:
Ok it sounds like it could be a) incomplete decompile due to incorrect placement of apktool files and/or b) issue with whatever you recoded. http://forum.xda-developers.com/showthread.php?t=1511730&page=5
Are you using Eclipse?
Click to expand...
Click to collapse
I am not using eclipse. And i hav placed the files correctly i.e:- C:/windows
Sent from my GT-S5830 using XDA

Hey guys. I got it working . I had made a stupid mistake . Sorry for trouble. MODS , plz delete this thread
Sent from my GT-S5830 using Tapatalk 2 Beta-5

asd

Related

Error during decompile

I have 4 files in c drive:
apktool.jar
baksmali
smali
***.apk
I write this in cmd: apktool d ***.apk edit
but it error that : apktool doesn't regonzid an internal command....
what should I do?
Amin` said:
I have 4 files in c drive:
apktool.jar
baksmali
smali
***.apk
I write this in cmd: apktool d ***.apk edit
but it error that : apktool doesn't regonzid an internal command....
what should I do?
Click to expand...
Click to collapse
You will need the resource apks
Command example for dhd
apktool if com.htc.resources.apk
apktool if framework-res.apk
The above is required for dhd for some system apps these or not required for all makes and models
Then apktool d ****. Apk
Sent from my HTC Desire HD using XDA App
I thought everything had to be in c:windows/ and the .apk to work with had to be in the 'user' folder(the one with my documents and blah).
That's how I do it on windows.
Still no luck!
I haven't any problem in win7...but now with xp....
I found the problem!
it's from my windows...my win is damaged so I install a new one

[Q] problem with de-compile framework-res.apk with apk multi tool

Hello
i had a problem in apk tool + apk multi tool
when decompile framework-res.apk
framework-res.apk was unexpected at this time =========thats the message thats appear
whats the soultion ?
Try to install the framework-res or tw-framework(optional) if you have
In apk tool type:
apktool if framework-res
Sent from my GT-S5300 using xda app-developers app
janreytuazon15 said:
Try to install the framework-res or tw-framework(optional) if you have
In apk tool type:
apktool if framework-res
Sent from my GT-S5300 using xda app-developers app
Click to expand...
Click to collapse
see the log
Exception: framework-res (■■و╩┌╨╤ ┌طه ╟طغ┘╟ع ╟ط┌╦µ╤ ┌طه ╟طعط▌ ╟طع═╧╧)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:633)
at brut.androlib.Androlib.installFramework(Androlib.java:469)
at brut.apktool.Main.cmdInstallFramework(Main.java:260)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.FileNotFoundException: framework-res (■■و╩┌╨╤ ┌طه ╟طغ┘╟ع ╟ط┌╦
µ╤ ┌طه ╟طعط▌ ╟طع═╧╧)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:601)
... 3 more
the akwared letters are arabic so dont mind of it its not the fault for that
Arabic latters.
So yeah do you installed a Java JDK?
If you do then try to update in latest version
If not then install a Java JDK
Java JDK is required in apktool or multiapktool to work properly.
Sent from my GT-S5300 using xda app-developers app

[Q] adding languages in JB keyboard

Hi! At first, I apologise if some thread about this already exists, I hadn't found any.
I have android 4.3 AOSP keyboard, which works nice, but I want to add my language dictionary to it.
Main problem is that I have some brut.Androlib errors when compiling this one (when decompiling, no issues appear), and when I check if the APKTool added my wanted files to the apk I can only see that it almost recompiled the original file ('almost' because when I push it to the system/app dir, my system doesn't see this keyboard).
Another, less important question, can I use dictionary from another keyboard app (I guess I can, but just want to be sure)?
Any help will be appreciated.
Screen os from ics decompiler, and this is what came in cmd using apktool, when I try to install framework-res:
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-nodpi-v8-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected: drawable-v8-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x010800d3 drawable/btn_cab_done_default_holo_dark, config=-hdpi
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.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Click to expand...
Click to collapse
I have no idea what you are doing but I would like to suggest a keyboard which is just like jb keyboard with many languages: try Google Keyboard
Sent from my GT-I9082 using XDA Premium 4 mobile app
Screenshot:
Sent from my GT-I9082 using XDA Premium 4 mobile app
adi160699 said:
Screenshot:
Sent from my GT-I9082 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Seems nice, but I want an independent android keyboard developed just by Google which i think is just best for me. So if someone can help me with recompiling this little thing, I'd be really happy
mololol303 said:
Seems nice, but I want an independent android keyboard developed just by Google which i think is just best for me. So if someone can help me with recompiling this little thing, I'd be really happy
Click to expand...
Click to collapse
It is developed just by Google
Please Don't Forget To Press The Thanks Button!! :thumbup:
adi160699 said:
It is developed just by Google
Please Don't Forget To Press The Thanks Button!! :thumbup:
Click to expand...
Click to collapse
Unavalible in my country...
I really need to recompile my file, and I can't

(Q) Apktool for Android decompile error

I'm using Apktool for Android v'4.1.1 on a Verizon SGS3 4.4.2...I'm trying to decompile Systemui.apk in hopes that I can port the card stack view in the recents panel, like in lollipop or the Note 4.
I keep getting an error while decoding the resource files. It's says that it can't decode attr value: using undecoded value instead for numerous things.
I have SELinux set to permissive, apktool if framework, etc...I can decompile AOSPA Systemui.apk no problem. It even creates .yml file as well. But I can't recompile directly after decompile without editing anything either. This is driving me nuts!
HELP!!!!

How do I edit the SDK number of an APK file?

A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Hyoretsu said:
A game I really liked only worked on old phones, not on "new" ones (from 2014). I made a thread asking how to make them work and they said to edit the apk's SDK number.
Click to expand...
Click to collapse
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Hi...
In order to do this, u need to decompile the app with apktool, then edit the line "min sdk version" in Android Manifest file with notepad++ and just recompile the apk.
Note: If the line is not found in Android Manifest file, it would be in apktool.yml file of same directory.
Check this tool to easily decompile and recompile APK file.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Hyoretsu said:
Somehow it's missing a classes.dex, so apktool gives
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
when trying to decompile it and http://www.javadecompilers.com gives
"Job Outputcode: -1
Job Output:
File not found: com.vpet_source_from_JADX/classes.dexcom.vpet_source_from_JADX/classes.dex"
Click to expand...
Click to collapse
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Brandon Indar said:
Can u send me the APK file.
I will check it out.
There must be a classes.dex file in the APK.
Sent from my ONE A2005 using Tapatalk
Click to expand...
Click to collapse
This is the one I'm using: https://www.apk20.com/apk/4553/
Hey, did you solve your problem?

Categories

Resources