yashsingh1/xdaforums huggingface dataset:
[Galaxy Y GT-S5360 General] :
U can extract the apktool fies anywhere. I prefer and suggest you do it in a local drive in a new folder

Example-c:\apktool\extract files here

The purpose of this is that the apktool binary is basically a jar file so In order to use it from another location u need to know the location of your extracted files

What I personally do is that I place my apk files (to be modded) and apktool in the same folder and use the folder as my work space .
[Galaxy Y GT-S5360 General] AesaD:
java not recognized

Greetings,

My first time attempting to use this tool.

I have all the files in C:\apktool

All the framework files are in C:\apktool\framework

I have added C:\apktool to the Windows PATH

When I type in apktool if c:\apktool\framework\framework-res.apk I get this error message...

'java' is not recognized as an internal or external command, operable program or batch file.

Any help would be greatly appreciated.
[Galaxy Y GT-S5360 General] Toni5830:
Install JRE.. (see first post)

Inviato dal mio N73
[Galaxy Y GT-S5360 General] NikosTom:
Nice tutorial!!! :good:
[Galaxy Y GT-S5360 General] Zephyr!:
For signing the apk, what command I should write ?
[Galaxy Y GT-S5360 General] :
nice guide....

:D
[Galaxy Y GT-S5360 General] fajarfuad:
sir, i want to decompile stock framework-res.apk from deodexed DXLF2 firmware.

do i need to sign its apk after recompiling?

#sorry my bad english
[Galaxy Y GT-S5360 General] Zephyr!:
Yes.

Make.Believe
[Galaxy Y GT-S5360 General] welard:
hi all as anyone solved this problem im having >>>>>>

W: cant find 9patch chunk in file......renaming to *png.

buy the way its unmodified apk from a s4 dump....the apk is (S-Voice_Android_phone_J.apk)....

can anyone pull that apk and give it a try and let me know what results you get thanks..
[Galaxy Y GT-S5360 General] nolinuxnoparty:
Do you think this is S4 section :/
[Galaxy Y GT-S5360 General] rktcool:
It seems you have not installed JRE and/or you have not added java to the PATH.

To add java to the path (on Windows XP), do the following:

1. Right click on My Computer and select Properties.

2. Go to the Advanced tab and click on the button that says 'Environment variables'.

3. You will see a list box titled 'System Variables', containg variable names and values.

4. In the list below, scroll to find a variable by name 'Path'. Select it and click 'Edit'.

5. In the Variable value field, go to the end of the line and put a semi-colon ( ; ).

6. After that, copy and paste the path to where your JRE is installed.

7. Click Ok > Ok > Ok.

7. Done!

For example, if you have installed the Java JRE to C:\path-to\java-jre\, then you will have to add C:\path-to\java-jre\bin to the path.

Also note that you do not need to put a semi-colon after it now. You only do that when you add another program to the path.

Hope this helped :)

---------- Post added at 11:06 PM ---------- Previous post was at 10:45 PM ----------

No, do not sign system APKs. Instead, here is what you do.

What you will need in addition

: A program capable of opening APK files as archives. I recommend 7Zip. Google it if you have not heard of it. Its great, and best of all - free!

I am assuming you have successfully re-compiled the APK with apktool, and you now have your modified APK.

The steps:

1. Open the unmodified stock framework-res.apk in 7Zip.

2. Open the modified framework-res.apk in 7Zip.

3. Now select the META-INF folder and AndroidManifest.xml from the stock APK opened in 7Zip, and drag them into the modified APK. (You can select multiple items by holding the Ctrl key while clicking).

4. When asked for confirmation, click 'Yes'.

5. Done!

NOTE

:

For other system apps, you must ensure that you have properly de-odexed them (using baksmali and smali) and copied the classes.dex into the APK in a similar manner as the one stated above.

If you have no idea what all this is that I am talking about, please do feel free to post here. I'll try my best to answer :)

Good luck. :)

Sorry, but this is how I learned it should be done. Please correct me if I am wrong. Thanks :)
[Galaxy Y GT-S5360 General] Zephyr!:
There is an application which signs apk in just 2 steps. I will post the link , no need to do this much stuffs :)

Make.Believe

If you're good at something

Never Do It For Free - JOkER
[Galaxy Y GT-S5360 General] rktcool:
I know about it. And I use it for non-system apps.

I am not saying that you needn't sign system apps if you do this one - I'm saying that you shouldn't sign system apps and you must do this.

And could you please consider putting the quote in your post under a "Click to show Content" so that people viewing it on mobile platforms will not have any trouble? Thanks :)
[Galaxy Y GT-S5360 General] Zephyr!:
Post is creating any sort of problem ?;)

Make.Believe

If you're good at something

Never Do It For Free - JOkER
[Galaxy Y GT-S5360 General] rktcool:
Haha, what I meant was that if you hid it so that it is visible only on the click of a button, then users will be able to view pages faster and neater. And besides, they wiouldn't have to go through the turmoil of reading my post twice over because it was quoted :p :D
[Galaxy Y GT-S5360 General] TONY6669:
vts

how to do turn the akproject into an apk with vts ???
[Galaxy Y GT-S5360 General] HansWurst97:
Dont know whether this is the right place to ask, but I cant recompile my systemui.apk.

I have copied systemui.apk, framework-res.apk, and twframework-res.apk from my phone and installed them (apktool if ...)

Decompiling seems to work fine.

However, whenever I want to recompile the moded or even unmoded systemui.apk I get errors from apktool/cmd.exe:

C:\Users\xyz>apktool b systemui

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'abbrev_wday_abbrev_month_day_no_year' has no default translation in C:\Users\xyz\systemui\res; found: mk

aapt: warning: string 'abbrev_wday_day_abbrev_month_no_year' has no default translation in C:\Users\xyz\systemui\res; found: mk

aapt: warning: string 'abbrev_wday_month_day_no_year' has no default translation in C:\Users\xyz\systemui\res; found: mk

(... many more ...)

I: Building apk file...

Could anybody please help?
[Galaxy Y GT-S5360 General] Toni5830:
Apktool is telling you that some lines have no translation in a language: mk..but I don't know which language "mk" is :/

However it is not an error, it is a warning and apktool will compile your apk;)

Inviato con Tapatalk 2 dal telefono di casa
[Galaxy Y GT-S5360 General] HansWurst97:
Still, when I recompile and copy my systemui.apk to my phone, after a very long boot phase, I am getting a black background and no statusbar at all.

The later is what I try to edit...
[Galaxy Y GT-S5360 General] sudharshancr7:
I edited systemui.apk as mentioned here and i didn't get any error but when i replaced it with the existing file and rebooted the systemui is force closing......plz help
[Galaxy Y GT-S5360 General] azhar.munshi:
when i am going to decompile apk its giving below error can you help me please

C:\APKTool>apktool d systemui.apk

I: Baksmaling...

Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00

at org.jf.dexlib.DexFile.<init>(DexFile.java:377)

at org.jf.dexlib.DexFile.<init>(DexFile.java:274)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)

at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)

at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)

at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)

at brut.apktool.Main.cmdDecode(Main.java:128)

at brut.apktool.Main.main(Main.java:65)

folder get blank created

please revert
[Galaxy Y GT-S5360 General] Toni5830:
I'm quite sure this error is caused by an old version of apktool.. in fact that problem was solved time ago.. download latest apktool version

Inviato con Tapatalk 2 dal telefono di casa
[Galaxy Y GT-S5360 General] RealPetChicken:
so i put one of my playerpro themes on the playstore, but it crashes, when the themes is used. When i compiled and signed it to my phone, it wouldn't crash, only when you download it from the play store? anyone know what the problem could be?
[Galaxy Y GT-S5360 General] bayustev:
hi.. can you help me solve problems with recompile systemui.apk..?

always failed like this

i was trying to edit systemui gt-s6310 running JB decompile work fine..as i ready to recompile..it stuck on error like the attachment..

im using win 7 x64..

thanks in advance :)

btw i only edit res/layout

tw_status_bar_expanded.xml

android:id="@id/notification_panel" android:background= [MENTION=3944923]drawab[/MENTION]le/notification_panel_bg".

i replace [MENTION=3944923]drawab[/MENTION]le/etc...bg to 75% transparent #3F000000

like this

android:id="@id/notification_panel" android:background="#3F000000"
[Galaxy Y GT-S5360 General] rktcool:
Try Deodexing

Some errors are caused because the apks are not deodexed. I am guessing that this should help.
[Galaxy Y GT-S5360 General] bayustev:
i already deodex using kitchen :)
[Galaxy Y GT-S5360 General] pritesh1996:
error//

cant install framewok-res.apk in apktool folder...

installed java runtime..

how can i fix this problem?
[Galaxy Y GT-S5360 General] MufcTK:
Error

After editing some xml files and recompiling the apk, On installing we get Apk not Installed. We did not sign the apk. Could that be the problem? (Wasn't a system app).
[Galaxy Y GT-S5360 General] N.Y.Gazz:
Hi! I can not touch the framework, whenever there is a lot of mistakes! even if I do not change anything in the apktool framework detects many errors! Can anyone help me?

envoyé depuis là ou je suis
[Galaxy Y GT-S5360 General] rktcool:
Yes

Yep. If it is not a system app, then you have to sign it. Searching the forums should let you know how to do it... If not, ask here again :)
[Galaxy Y GT-S5360 General] MufcTK:
Thanks i was able to do it after a few tries :)
[Galaxy Y GT-S5360 General] VAIPAR:
Trouble Recompiling

Hey guys, I have trouble recompiling Settings.apk. Can anyone hep me please?
[Galaxy Y GT-S5360 General] shadman0:
Nice veryyyy useful thread for newbie:)

Shadman0 If I help U Pls Give Thanks
[Galaxy Y GT-S5360 General] TheFixItMan:
why are you putting java - in your command promps? no need for that long as you have java development tools and apktool installed correctly you just need to put apktool b nameoffolder nameofoutput.apk (assuming you are in the correct directory or include c:\nameofdirectory\nameoffolder)

it also looks like you are using the wrong framework-res for compiling and getting a manifest error - it says the sdk level is 15 - well galaxy y is gingerbread and that is level 10 so im guessing your trying ics or something or taking a settings from someplace else that is ics whilst having a gb framework installed maybe or its another error in the manifest
[Galaxy Y GT-S5360 General] VAIPAR:
Thanks for your help but without putting java in the command, it says ''apktool' is not recognized as an iternal or external command, operable program or batch file.'. When I input 'apktool.jar' it opens a new command line (like when you just press enter?). I'm running CM9.1 on a galaxy ace. The framework and the settings are both ICS, because I was able to decompile. However, I did have to flash CM7 first then CM9. Also if it was an error in the manifest, is there a way to fix it?

Thanks again for your help, I really appreciate it.
[Galaxy Y GT-S5360 General] TheFixItMan:
You don't have to put apktool.jar - just run cmd as administrator & type apktool command

look at my apktool guide - link in my thread in my signature - different pictures & iv wrote it slightly different to this one - gives you an alternative view

Can you Decompile the apk & Recompile it without any errors if no changes are made - if yes it's your changes that are incorrect

if no than its either wrong framework-res.apk used or apktool is not installed properly/improper use
[Galaxy Y GT-S5360 General] VAIPAR:
Alright, I'll try again tomorrow, thanks.
[Galaxy Y GT-S5360 General] nhozbay:
thank you, very helpful:good:
[Galaxy Y GT-S5360 General] shadman0:
How to Make Cert of Meta inf using Apktool

Shadman0 If I help U Pls Give Thanks

My Work http://xdaforums.com/showthread.php?t=2521867
[Galaxy Y GT-S5360 General] TheFixItMan:
Apktool is just a compiler decompiler

It only checks for correct syntax & references and will compile if all correct - doesn't mean it will work or function as intended
[Galaxy Y GT-S5360 General] trizioPucci:
decompilig lib(.so)

I have developed an Android Application with some data crunching inside a C library (NDK).

In order to protect

the library code

:

- I have obfuscated the code with ProGuard and exported it in signed release version.

- I have replaced the functions and variables names inside the C Library with random sequence of letters to let it unreadable.

- I verified the library with "readelf -a" command.

- I verify the apk with ApkTool

How can I decoded/verified that the library in the apk is correctly obfuscated?

Is there any way to explore and reverse the library (.so)?

Thank you!
[Galaxy Y GT-S5360 General] normanx:
This what I get when trying to recompile, any ideas? Ive tried everything I can think of to correct it.

c:\>apktool b c:\folder_of_the_decompiled_files c:\newfilename.apk

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

aapt: warning: string 'Roaming_Auto_Dialing' has no default translation in c:\fo

lder_of_the_decompiled_files\res; found: de es_ES fr it ko

aapt: warning: string 'stms_version' has no default translation in c:\folder_of_

the_decompiled_files\res; found: de es_ES fr it ko

I: Building apk file...

c:\>
[Galaxy Y GT-S5360 General] N.Y.Gazz:
I tried several times of decompiled framework res apk and system IU fxp 246 without changing inside but the recompilation me reports always Errors!! someone would have an idea??

Envoyé de mon Xperia S en utilisant Tapatalk
[Galaxy Y GT-S5360 General] normanx:
Want to help me? My command window says that it created the apk but I can't find it...
[Galaxy Y GT-S5360 General] N.Y.Gazz:
Someone to help us here?

Envoyé de mon Xperia S en utilisant Tapatalk
[Galaxy Y GT-S5360 General] bryan_mmx:
Good day

I'm also experiencing the 'java' is not recognized as an internal or external command. I followed this instruction and still getting the same problem. I've installed both JRE and JDK. Added the bin address of both to Path's variable value (with the semicolons). Am I missing something? New to this whole apktool thing.
[Galaxy Y GT-S5360 General] normanx:
Here is what mine looks like when decompiling, Baksmaling is missing or does that matter?

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Regular manifest package...

I: Decoding file-resources...

I: Decoding values */* XMLs...

I: Done.

I: Copying assets and libs...
[Galaxy Y GT-S5360 General] mathan7:
settings.apk unpack ok bur repack error .public.xml error
[Galaxy Y GT-S5360 General] mitky82:
And i have that problem on Windows 7 x64. With my old laptop x86 i dont have any problem with same files and same version. But i buy new and now i can use anymore that tool :( decompiling is work bur recompiling no, and bacsmaling is missing from progress info while apktool work
[Galaxy Y GT-S5360 General] TheFixItMan:
All that is totally normal

It doesn't say bacsmaling when decompiling framework-res.apk

You get those errors because there are no translation in the framework for other languages - if English is your language or you wrote a mod in your own language for your own use it doesn't matter

As long as it builds the apk there are no syntax errors

as long as changes were done correctly and it builds it will work
[Galaxy Y GT-S5360 General] mitky82:
Thanks for the answer. Now i completely remove files in windows and switch to android multi toool and all is fine now. Sorry for bad eng :)
[Galaxy Y GT-S5360 General] N.Y.Gazz:
it's good, I found the solution alone! thank you

Envoyé de mon Xperia S en utilisant Tapatalk
[Galaxy Y GT-S5360 General] linckandrea:
nice guide:good:
[Galaxy Y GT-S5360 General] Hackerpunk1:
Error Occured!

C:\apktool>apktool b C:\apktool\SystemUI C:\apktool\SystemUI-new.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\SystemUI\res\values\styles.xml:29: error: Error parsing XML: not well
-formed (invalid token)
C:\apktool\SystemUI\res\values\public.xml:235: error: Public symbol style/Clear.
Buttons declared here is not defined.
C:\apktool\SystemUI\res\values\public.xml:232: error: Public symbol style/TextAp
pearance.StatusBar.Expanded declared here is not defined.
C:\apktool\SystemUI\res\values\public.xml:234: error: Public symbol style/TextAp
pearance.StatusBar.Expanded.Clock declared here is not defined.
C:\apktool\SystemUI\res\values\public.xml:233: error: Public symbol style/TextAp
pearance.StatusBar.Expanded.Date declared here is not defined.
C:\apktool\SystemUI\res\values\public.xml:231: error: Public symbol style/TextAp
pearance.StatusBar.IntruderAlert declared here is not defined.
C:\apktool\SystemUI\res\values\public.xml:230: error: Public symbol style/TextAp
pearance.StatusBar.Title declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 10, --target-sdk-version, 10, -F, C:\Users\ADMINI~1\AppData\Local\T
emp\APKTOOL1039389813671776225.tmp, -I, C:\Users\Administrator\apktool\framework
\1.apk, -S, C:\apktool\SystemUI\res, -M, C:\apktool\SystemUI\AndroidManifest.xml
]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-version, 10, -F, C:
\Users\ADMINI~1\AppData\Local\Temp\APKTOOL1039389813671776225.tmp, -I, C:\Users\
Administrator\apktool\framework\1.apk, -S, C:\apktool\SystemUI\res, -M, C:\apkto
ol\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 10, --target-sdk-version, 10, -F, C:\Users\ADMINI~1\AppData\Local\Tem
p\APKTOOL1039389813671776225.tmp, -I, C:\Users\Administrator\apktool\framework\1
.apk, -S, C:\apktool\SystemUI\res, -M, C:\apktool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

I've got the following. Can somebody help me out?
[Galaxy Y GT-S5360 General] TheFixItMan:
what ever you edited in styles.xml is wrong - check line 29

and you have also put things in probably in status_bar_expanded which you have not definded correctly in the values
[Galaxy Y GT-S5360 General] normanx:
That is for sure... Same thing happened to me when I was editing the arrays.xml. You have to be exact or you get this issue. Mine was a simple / out of place and did the same thing.
[Galaxy Y GT-S5360 General] shadman0:
a problem

A Problem was being the problem is unable to acess C:/WINDOWS//apktool.jar

​
[Galaxy Y GT-S5360 General] TheFixItMan:
can you deompile and recompile the apk with no errors?

if the answer is yes then its your changes that caused the error

if the answer is no then you are using the wrong framework - try using jb framework - -this means entering

apktool if framework-res.apk

but with a jb framework-res.apk and not a gb one in your apktool folder
[Galaxy Y GT-S5360 General] medoooooo:
Tried to decompile without changing anything and still got the same error i used framework-res.apk and systemUI.apk from nexus 5 4.4 because the Google keyboard 2 is built on 4.4 no luck and also removed the google from the manifest it recompiled and the size was 5 mb less without changing anything
[Galaxy Y GT-S5360 General] TheFixItMan:
try using cm10 or cm11 framework - you just have to find the right framework that can decompile and recompile it
[Galaxy Y GT-S5360 General] rynbuddy:
Error in decompiling with apktool

I'm getting an error like this while decompiling. It however gets decompiled, but then doesn't recompile. Please help. I tried apk multi tool, I get an error in that too.
[Galaxy Y GT-S5360 General] TheFixItMan:
your picture contains an error and cant be fully viewed but from what I did see of it its only half of the iinfo

im guessing you are not using the correct framework-res for what you are trying to decompiile

some apps are compiled with jb framework even though they are for gb use
[Galaxy Y GT-S5360 General] Tony_GPR:
Thanks, this tool is great!
[Galaxy Y GT-S5360 General] Ezzam_Itachi:
THANKS !!!!!!!!!

I make this account just to thank you & to tell you that your guide is awesome !!!!:victory:
[Galaxy Y GT-S5360 General] kho_oqin:
Thanks for this tutorial
[Galaxy Y GT-S5360 General] fireballoon:
Thanks
[Galaxy Y GT-S5360 General] shankarsj:
can somebody help me please..

i have been trying from last 4-5 days .. afrer recompiling apks system apps if i install they are not installing ,app not installed any expert can say why am i getting like this ..
[Galaxy Y GT-S5360 General] TheFixItMan:
either

1 - you edited the android manifest so the apk needs to be resigned

2 - you need to resign the apk anyway

3 - the apk is for a higher android version than that you are trying to install it on

4 - the apk is for armv7 only

5 - the apk can only be installed as a system app and you are trying to install it normally (use system app installer from the play store or edit the manifest or push the apk to systetm/app and set permission to rw-r-r and move any lib file if there is one to system/lib and again set permissions)

6 - the apk cannot overwrite a previous version - uninstall previous version first
[Galaxy Y GT-S5360 General] shankarsj:
But sir.

1.i used systemui.apk to decompile it and recompile and instlld but i didnot and not edited androidmanifest file cz it is a system app right??

2.And sir system app not need to b signed but also i tried but not able to sign apk ..

3.The apks are compatible sir itz a cm7 rom of galaxy mini ported by me for galaxy pocket v2.3.7

4.i think galaxy pocket is arm11 and dont know about arm7

5. I will try to install system app installer sir ..

so i installed the modified apk directly on previous one ?? i didnt delete the one sir ..any pblm with this
[Galaxy Y GT-S5360 General] TheFixItMan:
if you are modding systemui.apk you dont install it as a normal apk

you can either

1 -put it in a flashable zip and flash it in cwm with system mounted (prefered way)

2 - push to system/app and set perm to rw-w-w

you do need to sign system apps else in some cases your status bar may vanish due to a miss match of signatures although if you didnt edit the manifest you dont have to but I usually do anyway

You can sign the apk with a platform key using zip signer from the playstore - I would do this especially if using a cyanogenmod based rom
[Galaxy Y GT-S5360 General] shankarsj:
Hmmm okay sir ..at last oneperson helping

i will try sir ... but in some cases i faced system apps like axt9ime and calculatr apks are also not installed whn i installed on the previous orignl apk with modified onee ???