[HELP] JAVA problem - Nexus 5 Q&A, Help & Troubleshooting

Hello everyone,
I have some problems with the tool to decompile the apk. I wanted to apply these two guides:
http://forum.xda-developers.com/goo.../how-to-add-ambient-display-settings-t2942838
http://forum.xda-developers.com/goo.../mod-3-power-menu-stock-5-0-1-deodex-t2997128
But I get this when I start decompilation:
http://pastebin.com/eNrejMCh
Some help / suggestions?

Which apk decompiler do you use ? The output said the decompiler could not read / decompile the arsc file from your apk

F4uzan said:
Which apk decompiler do you use ? The output said the decompiler could not read / decompile the arsc file from your apk
Click to expand...
Click to collapse
I use apkstudio-2.0.3b-windows, systemUI.apk and framework-res.apk come from Android M

ZenPluS said:
I use apkstudio-2.0.3b-windows, systemUI.apk and framework-res.apk come from Android M
Click to expand...
Click to collapse
As far as I know, Android M is still unsupported for such operation (decompiling apk, etc) so you might want to wait until the decompiler become compatible with M releases

F4uzan said:
As far as I know, Android M is still unsupported for such operation (decompiling apk, etc) so you might want to wait until the decompiler become compatible with M releases
Click to expand...
Click to collapse
uhh okay, thanks for your help! :good:

ZenPluS said:
uhh okay, thanks for your help!
Click to expand...
Click to collapse
Happy to help ! Do post again if you encounter another issue

Related

[Q][OffTopic] Basic requirements for decompiling and recompiling apks

Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Annoying Bee said:
Hey guys what are the basic things we need to decompile and recompile apk? And which is the best tool for this task?
Please tell in detain
Thanks annoying bee
Sent from my HTC powered with Minimilised ROM
Click to expand...
Click to collapse
Check this:
http://stackoverflow.com/questions/1249973/decompiling-dex-into-java-sourcecode
akshat.shenoy said:
Hi..
Best tool will be apktool.. on windows or on linux..
Apktool for it.. Check details on the original thread for it..
Its pretty simple..
with latest apktool you can not only decompile and recompile apks but also jar files using apktool ... by
Code:
apktool d <nameofile>
or
Code:
apktool b <nameoffile>
Click to expand...
Click to collapse
Yeah i used it but problems in recompiling apks! So i modded apktool on my own.

[Q] How to edit the source of an Apk file?

I do these works :
1-unzip the apk file
2-convert classes.dex to classes.jar with dex2jar
3-read source of jar file with java De compiler
Now I want to edit the .class file.
Can anyone help me ?
resettailor said:
I do these works :
1-unzip the apk file
2-convert classes.dex to classes.jar with dex2jar
3-read source of jar file with java De compiler
Now I want to edit the .class file.
Can anyone help me ?
Click to expand...
Click to collapse
Better use apktool or apk multi tool it's amazing in terms for apk decompiliation and compilation.
Try you can find most of it
Press thanks button if Helped!
It really helped!
Thanks!
nightwalker said:
Better use apktool or apk multi tool it's amazing in terms for apk decompiliation and compilation.
Try you can find most of it
Press thanks button if Helped!
Click to expand...
Click to collapse
resettailor said:
It really helped!
Thanks!
Click to expand...
Click to collapse
Really happy to know that

[REQ][XPERIA E][ICS] Need patched services.jar (superuser mod) for xe ics

hey guys,
can anyone please provide me patched services.jar (superuser mod) for xperia e ics
thanks..

			
				
@bakshish007 here only for deodexed rom
H3LL said:
@bakshish007 here only for deodexed rom
Click to expand...
Click to collapse
yes I'm using deodex rom
I was having some issues while compiling back services.jar that's why I asked
thanks bro
and im really having issue will decompiling and recompiling ics apks [eg: settings] any solutions like any suggested framework~res for that?????
keep calm and call J.A.R.V.I.S
bakshish007 said:
yes I'm using deodex rom
I was having some issues while compiling back services.jar that's why I asked
thanks bro
and im really having issue will decompiling and recompiling ics apks [eg: settings] any solutions like any suggested framework~res for that?????
keep calm and call J.A.R.V.I.S
Click to expand...
Click to collapse
What problem??
DanielFlorin said:
What problem??
Click to expand...
Click to collapse
error while decompileing and compiling both
while decompileing apktool gives an error. after that I found some xmls blank
and also auto apktool says no success
keep calm and call J.A.R.V.I.S
bakshish007 said:
error while decompileing and compiling both
while decompileing apktool gives an error. after that I found some xmls blank
and also auto apktool says no success
keep calm and call J.A.R.V.I.S
Click to expand...
Click to collapse
post error log.....then we can say what causing problem
H3LL said:
post error log.....then we can say what causing problem
Click to expand...
Click to collapse
it gives framework-res error checked the logs of auto aoktool
Code:
W: Skipping "android" package group
W: Skipping "android" package group
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
i get this error while decompiling ics settings and i have already installed ics framework-res before decompiling @DanielFlorin please suggest something
keep calm and call J.A.R.V.I.S
bakshish007 said:
it gives framework-res error checked the logs of auto aoktool
Code:
W: Skipping "android" package group
W: Skipping "android" package group
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
i get this error while decompiling ics settings and i have already installed ics framework-res before decompiling @DanielFlorin please suggest something
keep calm and call J.A.R.V.I.S
Click to expand...
Click to collapse
SemcGenericUxpRes.apk...?
bakshish007 said:
it gives framework-res error checked the logs of auto aoktool
Code:
W: Skipping "android" package group
W: Skipping "android" package group
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Click to expand...
Click to collapse
JAVA installed? here the solution - see project website for more info!
TiVON said:
SemcGenericUxpRes.apk...?
Click to expand...
Click to collapse
didn't tried SemvGenericUxpRes.apk (i will try today)
and @sportik555 I've installed the latest JDK, JRE, and I have latest ADT bundle.....
keep calm and call J.A.R.V.I.S
bakshish007 said:
didn't tried SemvGenericUxpRes.apk (i will try today)
and @sportik555 I've installed the latest JDK, JRE, and I have latest ADT bundle.....
keep calm and call J.A.R.V.I.S
Click to expand...
Click to collapse
My dear friend: you have to install both framework-res.apk and SemcGenericUxpRes.apk.
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d services.jar
--do mods--
apktool b services.jar.out
Go to dist folder and open .jar. Open original .jar and copy META-INF from original to modded .jar.
TiVON said:
My dear friend: you have to install both framework-res.apk and SemcGenericUxpRes.apk.
apktool if framework-res.apk
apktool if SemcGenericUxpRes.apk
apktool d services.jar
--do mods--
apktool b services.jar.out
Go to dist folder and open .jar. Open original .jar and copy META-INF from original to modded .jar.
Click to expand...
Click to collapse
thanks bro setting.apk success wit semcgenericuxpres.apk
keep calm and call J.A.R.V.I.S
Test this:
Click me
Could you upload the deodex package as well please?
thanks
NeoTrix said:
Test this:
Click me
Could you upload the deodex package as well please?
thanks
Click to expand...
Click to collapse
Thanx neo but H3LL already provided a services.jar and install xboost it's a kind of stock deodex ics
keep calm and call J.A.R.V.I.S

smali help

hello everyone
i searched a lot but couldnt find anything so postiong here
i was trying to add some featues to home.apk and i got some errors while recompiling
so i tried decompile and recompile without editing anything...i didnt even open the decompiled home apk folder LOL
but i am getting lots of smali errors only in styles.xml
i think that apktool removes some templates from styles.xml i dont know what it means i just got it from my search
so can someone help me in fixing that error....
@serajr
 @SpaceCaker
 @marcussmith2626
 @iSiddharth
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
marcussmith2626 said:
Either wrong framework loaded or using wrong apktool version
And please stop abusing the mention system - I won't reply to anymore mentions
Click to expand...
Click to collapse
Ah sorry
But what do u mean by WRONG apktool version??
abhishekr700 said:
Ah sorry
But what do u mean by WRONG apktool version??
Click to expand...
Click to collapse
use
gingerbread/ics/jb 1.5.2
https://code.google.com/p/android-apktool/downloads/list
jb/kitkat/lolipop apktool rc3
https://bitbucket.org/iBotPeaches/apktool/downloads
use correct framework-res
plus any other framework eg tw-framework
Use Advanced APK Tools for decompiling the APK files and you can also use the Attached Dex Editor to edit classes.dex files.....
Advanced APK tools is specially made for Xperia devicex. (use your "framework-res.apk" to install firmware in Advanced APK Tools)
(Drag and drop classes.dex in "Quick-Baksmali.cmd" to decompile and drag and drop the output folder is "Quick-Smali.cmd" to recompile.
Advanced APK Tools : http://forum.xda-developers.com/showthread.php?t=2639400

Need Help --> Modifying SystemUI?

Hey guys,
so I tried to modify the SystemUI.apk to get a stock Nougat feeling but it does not work for me.
I used APKTOOL (java -jar apktool.jar d SystemUI.apk for decompiling and b SystemUI/ for compiling).
But when I flashed it, there is no Statusbar anymore, the SystemUI.apk is broken. I only changed a few colors in res/values/colors.xml.
Don't know what I did wrong.
Maybe someone can give me a simple Guide to make it.
Thank you!
greetz
Did you sign it correctly?
kornelkahh said:
Did you sign it correctly?
Click to expand...
Click to collapse
I thought so. Can you tell me how you do it correctly?
Hatary said:
I thought so. Can you tell me how you do it correctly?
Click to expand...
Click to collapse
Well, I'm not an expert, and the last time I modified a SystemUI was on a Sony device, months ago, so it might be different for Samsung/new devices, I don't know, really.
But if I remember correctly you need the framework-res apk too, somewhere from the /system/framework.
Here is a thread that might help.
Also, you need to set the right permission for system apps.
Best regards.

Categories

Resources