yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] xguntherc:
Dane, When Compiling it asks is this a system file.. for something like NFL Mobile, or a game or something I just say no right. or do I say yes.. Only important system files I'd say yes to, like if I was changing something in Launcher Pro or something. right?
[G1 Android Development] Daneshm90:
Depends, like in this situation with xml's screwing up.

You'd want to take the "System apps" method cuz it allows you to make use of the "keep" folder method (it transfers over original files unless specified).

But yes most apps its fine to decompile and use the compile/sign/install option.

Good idea though, perhaps i can add the "keep" folder method to regular apps. I use it a lot lol.
[G1 Android Development] ssakuma:
small bug.

here is a screen shot of "22 Set current project".

10th is missing, but i can select it. :D
[G1 Android Development] xguntherc:
Yea.. Cool, Thanks for the quick reply and help. It's working great. Already pushed out 2 apk's with your manager.. very nice!
[G1 Android Development] Daneshm90:
Awesome thanks. K here i setup a easier way to report errors/bugs

Error report here

Thnx guys.
[G1 Android Development] nukedukem:
Are there plans to update the linux version? I was spoiled with ver 4.9 on XP, and running the linux version makes modding my APK's a whole lot less of a "breeze" :p
[G1 Android Development] Daneshm90:
I know, i can't do much. Not really a linux person. :(

Is there ANYONE who can port this to linux ? farmatito, u still around ? :p
[G1 Android Development] owen.chen:
apk need *.dll ?
[G1 Android Development] ocuj:
This solved my problem! Thanks for the solution! I also like to thank everyone who was helping me for their patience and time.
[G1 Android Development] ocuj:
EDIT: Problem is solved already. I didn't delete the xml I modified in the keepfolder. For complete solution, see post 719, thanks to Daneshm90.

So, unfortunataly I have a new problem. I'm trying to change the language in TAJM. I did this:

1. Decompile

2. Make changes

3. Compile (say yes to system)(yes to keep folder)

4. Delete resources.arsc

5. Sign

6. Install

It installed fine, widget worked, and my translations also showed. I also tried to change the fontsize in \res\layout\time_layout.xml. This didn't work. As a test I decompiled my newly adjusted apk again, and it showed the old fontsizes in the layoutfile. Anybody have a clue?
[G1 Android Development] Daneshm90:
try deleting that xml+ respurces.arsc from keep folder.
[G1 Android Development] frostthejack:
so when will there be an update to the linux version i realy liked the windows version.
[G1 Android Development] Daneshm90:
When you find me a person who's good with linux scripts :P

Frankly i can't, farmitito was the guy who ported it to linux. Try to convince him
[G1 Android Development] Daneshm90:
jim_panse Here try it
[G1 Android Development] yani2000:
Very good app! Thx Daneshm90!

But there is no "zipalign" file in the linux version!

To fix this copy "zipalign" from Android SDK tools folder into "other" folder and don't forget to "sudo chmod 0755 zipalign" after you copy the file. (OP update 1st post!)
[G1 Android Development] theimpaler747:
Any chance of a version for mac?
[G1 Android Development] Ste11a:
Awesome! Thanks.
[G1 Android Development] HTC_HDD:
Everytime i want to start apk manager i get this message:

"Java was not found, you will not be able to sign apks or use apktool"

I have reinstalled Java, but i still get this message.. I am searchin now for a long time for a solution but cant find it.

Can someone help please?
[G1 Android Development] theimpaler747:
Are you using Windows or Linux?

Sent from my hero running froyo... take that Sprint!
[G1 Android Development] HTC_HDD:
Hi,

i am using windows 7

Also i've tried to start apk manager on my notebook with windows 7 too, its the same problem there :/
[G1 Android Development] theimpaler747:
Do you have Java in your class-path? Try that if it's not already there, I can provide a guide for you if needed :D
[G1 Android Development] HTC_HDD:
I think i will need your guide :rolleyes:

Thank you for your help :)
[G1 Android Development] theimpaler747:
Not a problem, here you go :)
[G1 Android Development] Daneshm90:
Ok thats it, have enough "java not in path" comments.

So next version will definitely have a auto-add java to path.
[G1 Android Development] theimpaler747:
Cool :) that should help out a lot

Sent from my hero running froyo... take that Sprint!
[G1 Android Development] HTC_HDD:
I have read your guide.

I start cmd and enter set CLASSPATH=path1

Which path should path1 be?

Sorry for this newbie questions, i just need WidgetLocker Mods :)
[G1 Android Development] Daneshm90:
This should help.

Link
[G1 Android Development] zibiksior:
Hi I have problem with decompiling .apk file. I'm putting log, you could see what's happening

Exactly I want to do this: http://xdaforums.com/showpost.php?p=9118888&postcount=108 and if you could tell me how to do it with your tool I would be really greatful.
[G1 Android Development] theimpaler747:
Anybody?

Sent from my hero running froyo... take that Sprint!
[G1 Android Development] skiddhard:
After decompiling an APK, it creates a "smali" folder instead of the "src" folder. Is that normal??

How do i get access to the "src" folder or edit the java files in eclipse? I am learning theming for the galaxy s, and the lack of the "src" folder and java files has got me stumped :(

Any help people??
[G1 Android Development] RubiconX:
version 4.9 seems to be bugget, as iy uses APKtool v.1.3.2, which is bugged.
[G1 Android Development] TmobileDash12:
=X

I did a batch optimize apk. Zipalign and optimize pngs.

i get this in the log:

http://cyanogenmod.pastebin.com/95yMg6TA

is that supposed to happen?
[G1 Android Development] dsimages:
little help..thanks

ok, still getting the Java was not found, you will not be able to sign apks or use apktool error upon start up.

Variables are:

PATH - C:\android-sdk-windows\tools

QTJAVA - C:\Program Files\Java\jre6\bin

I have reinstalled java twice, still getting the same error. Im assuming my variables are wrong??

WTF???? help please

EDIT: Log:
[G1 Android Development] camalot:
I'm trying to change an xml file that has multiple "&" or "<" in it. After i install the app, i see "&amp;amp;" or "&lt;". ive tried using the numeric codes like "&#038" but it still does the same thing. """ shows up just fine in the app...
[G1 Android Development] ecsnead69:
New Market Gmail ??

I decompiled the new market gmail apk then tried to compile with no changes and I get this error in the log.txt...

--------------------------------------------------------------------------

|Sun 11/21/2010 -- 16:45:00.98|

--------------------------------------------------------------------------

The system cannot find the file specified.

The system cannot find the file specified.

The system cannot find the file specified.

The system cannot find the file specified.

The system cannot find the path specified.

java version "1.6.0_22"

Java(TM) SE Runtime Environment (build 1.6.0_22-b04)

Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

1876 KB/s (0 bytes in 1621393.000s)

Could Not Find C:\Droid\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged.apk

Could Not Find C:\Droid\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-signed.apk

Could Not Find C:\Droid\Apk_Manager_4.8\place-apk-here-for-modding\../place-apk-here-for-modding/repackaged-unsigned.apk

The system cannot find the file specified.

I: Baksmaling...

I: Loading resource table...

I: Decoding resources...

I: Loading resource table from file: C:\Documents and Settings\SNEAD\apktool\framework\1.apk

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

C:\Droid\Apk_Manager_4.8\other\..\out\smali\com\google\common\base\Functions.smali[0,0] null

Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@8523a0

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.src.SmaliBuilder.build(Unknown Source)

at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)

at brut.androlib.Androlib.buildSources(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Can someone help? I tried decompiling and compiling a themed gmail I have in /system and it worked fine??? Thanks
[G1 Android Development] camalot:
For anyone that tries to edit/ compile an xml file that has an "&" or a "
[G1 Android Development] Patriot Virus:
Can anyone help me? When I open APKManager I get "adb not found, you will not be able to manipulate the files on your phone" I use to get something about java on it but fixed that. Now it's giving me this adb problem.

figured it out!
[G1 Android Development] fernando sor:
what was the issue?
[G1 Android Development] ramiroquay:
Ok, thanks a lot for responses.

I am trying to compile a modified x10 framework. I have read several post searching my problem but i haven´t found it. When i try to compile the app, apk manager show me some problems.

The log file reported me is:

"java version "1.6.0_21"

Java(TM) SE Runtime Environment (build 1.6.0_21-b07)

Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

"adb" no se reconoce como un comando interno o externo,

programa o archivo por lotes ejecutable.

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(Unknown Source)

... 5 more

El sistema no puede hallar el archivo especificado."

The file created for apk manager is smaller than the original file. Exactly is 5.331mb. I think that it isn´t possible, right?

I don´t know what is the problem. Please someone can help me? Thanks you very much!!!!:o
[G1 Android Development] ponpalani2001:
I have edited my colours.xml file using the following process

Place framework-res.apk in modding folder

decomplile it

Edit the colours.xml file

Recompile it

Say yes to System app and Yes to

Delete resources.src from keep folder

wen i try to sign the unsigned file i get the following error

The system cannot find the file specified.

--------------------------------------------------------------------------

|25/11/2010 -- 0:13:48.32|

--------------------------------------------------------------------------

java version "1.6.0"

Java(TM) SE Runtime Environment (build pwi3260sr8fp1ifix-20100903_02(SR8 FP1+IZ8

3654))

IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr8-201004

01_55940 (JIT enabled, AOT enabled)

J9VM - 20100401_055940

JIT - r9_20100401_15339

GC - 20100308_AA)

JCL - 20100903_02

java.io.FileNotFoundException: ..\place-apk-here-for-modding\unsignedunsignedfra

mework-res.apk (The system cannot find the file specified.)

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:115)

at java.util.jar.JarFile.<init>(JarFile.java:138)

at java.util.jar.JarFile.<init>(JarFile.java:117)

at com.android.signapk.SignApk.main(SignApk.java:437)

Could Not Find C:\Documents and Settings\Administrator\Desktop\Samsung\Backup\AP

K\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedunsignedframe

work-res.apk

Press any key to continue . . .

Please help!!!!!
[G1 Android Development] d0cx:
i suggest that you put the apk folder in "c:\apk" with no spaces in the file or folder names. i had a similar issue and i solved it by doing that.

also, this app worked for me to recompile swype to reduce it's size by deleting languages i don't need.
[G1 Android Development] czerdrill:
how do i get past the could not decode attr value error? happens when i try to decompile an apk....
[G1 Android Development] Whosdaman:
where do you get SoX from?
[G1 Android Development] pardus:
FWIW, don't know if this was ever noted ever but may account for some of the problems people are having.

In the Script.bat code:
[G1 Android Development] Sage:
what exactly is a system apk? and how do i know if what i am modding is one? :)

so far when i try to mod this app it now just crashes almost straight away.

even if i make no mods and just simply decompile, recompile, sign and install it still crashes it.

wierd.
[G1 Android Development] theimpaler747:
A system app is one that usually goes/belongs in system/app in Android :)
[G1 Android Development] Daneshm90:
Farmatito, i just realized my batch apk optimize option doesnt take out the .9 png's. This is wht the new apkopt file looks like

@echo off
if (%1)==() GOTO END
@echo Optimizing %1...
md "%~dp0apkopt_temp_%~n1"
md "%~dp0original"
md "%~dp0optimized"
7za x -o"%~dp0apkopt_temp_%~n1" "../place-apk-here-to-batch-optimize/%1"
[COLOR="Red"][B]mkdir temp
xcopy "%~dp0apkopt_temp_%~n1\res\*.9.png" "%~dp0temp" /S /Y[/B][/COLOR]
::
:: -o99 specifies how much the PNG is optimized. Lower numbers will make the optimization process faster, higher numbers will result in smaller PNGs.
::
roptipng -o99 "%~dp0apkopt_temp_%~n1\**\*.png"
copy "..\place-apk-here-to-batch-optimize\%1" "%~dp0original"
del /q "..\place-apk-here-to-batch-optimize\%1"

::
:: -mx5 indicates the ZIP's compression level. Set this from -mx0 to -mx9, higher compression levels may not work!
::
[COLOR="red"][B]xcopy "%~dp0temp" "%~dp0apkopt_temp_%~n1\res" /S /Y
rmdir "%~dp0temp" /S /Q[/B][/COLOR]
7za a -tzip "%~dp0optimized\%~n1.unaligned.apk" "%~dp0apkopt_temp_%~n1\*" -mx9

rd /s /q "%~dp0apkopt_temp_%~n1"

::
:: runs zipalign
::
zipalign -v 4 "%~dp0optimized\%~n1.unaligned.apk" "%~dp0optimized\%~n1.apk"
del /q "%~dp0optimized\%~n1.unaligned.apk"
@echo Optimization complete for %1
:END
call apkopt_all
[G1 Android Development] BolecDST:
OK, I know this app is for total noobs, but I'm probably more than that. I wanted to edit an apk for fun and test whether it's working or not. What I did.

1. Copied the apk for xda application from /system/sd/app/ and put it on "place apk here for modding" folder. Uninstalled the app from my phone.

2. Opened the application for editing apks.

3. Clicked "extract apk".

4. Opened folder out/drawable and modified the "appicon" file, added small polish flag in paint there.

5. Clicked "zip apk", chosen normal apk.

6. Deleted the original "xda.apk" and left only the "unsigned" file.

7. Clicked "sign apk".

8. Put the apk on my mobile and tried to install it. It says it can't install, altough it shows me the modified icon.

What am I doing wrong? Do I have to put the folder with the APK Manager where my SDK/ADB is?
[G1 Android Development] Daneshm90:
Hmm you have followed the steps correctly. Fyi u dont have to delete the original unmodified app u are editing. Can u try installing it through adb ? im interested as to what error u are getting. The only thing i can think of is the compression level im using for making the apk's which is 9 (highest possible) perhaps lowering will allow compatibility.

Adb install is one of the options in the script and works if adb is in ur path.

Fyi, the app aint for noobs, i use it all the time since it makes the process of compiling/signing/installing easy as pie :)
[G1 Android Development] BolecDST:
I'll try to do it later. Now I'm studying for the final exams session. Studying at the university in Poland. Second year...

edit: what you mean in your path?

edit2: nevermind, just found the answer.
[G1 Android Development] farmatito:
Will check when at home.

Enjoy
[G1 Android Development] farmatito:
You have to uninstall the original apk and then install or push the resigned

as the certificates don't match
[G1 Android Development] BolecDST:
But anyway thanks.. gonna try to do this with pushing the file and report back.
[G1 Android Development] farmatito:
I checked and its ok.

if [ `echo "$PNG_FILE" | grep -c "\.9\.png$"` -eq 0 ] ; then
optipng -o99 $PNG_FILE
[G1 Android Development] Daneshm90:
Ah cool, so ur set already :D
[G1 Android Development] farmatito:
Attached V0.5

# Changelog for linux version:

# v 0.1 Initial version

# v 0.2 added "other" dir to PATH

# v 0.3 removed "function" bashism

# v 0.4 removed more bashisms

# v 0.5 added ogg batch optimization and quoted some vars

Enjoy.
[G1 Android Development] Daneshm90:
Lol BolecDST, atleast ur persistence paid off ;)

But that brings up an important point, i will try to add a check for java/adb in the script just like farmatito did for the linux version :)
[G1 Android Development] BolecDST:
Just one more thing. Do you think it is possible to edit the arsc file which contains the language/texts? I would like to localise some apps for my own use.
[G1 Android Development] Daneshm90:
Im not sure, try using option 9, which will use apktool to decompile the apk. You should be able to edit the xml's and other resources.
[G1 Android Development] Daneshm90:
Nice. Here is apk manager 4.3 (Windows) :

- Checks if adb/java are in ur path

- added ogg batch optimization

- fixed batch apk optimize to avoid .9.pngs
[G1 Android Development] oMszKikiIzWavyo:
Okay Thanks For Bearing With Me Daneshm90, But One More Question, How Or Where Can I Download Java Since Its Saying "Java Not Found"?
[G1 Android Development] Daneshm90:
Here

Click the free java download button. :)
[G1 Android Development] BolecDST:
Hey dude :)

Thanks for the update, but there's just one thing. Maybe it's just me, but the new version cleans the history. After making any operation "clean" menu pops up. There's no way to scroll up and see if everything went fine or there was some error. Could you check on that? Thanks.
[G1 Android Development] Daneshm90:
I mostly did that to keep it clean otherwise the menu comes to the bottom half of the screen and the top half has previous processes :)

Yea i could do that or create a log file. I think ill create a log file then, cool thnx for the tip.
[G1 Android Development] Daneshm90:
Regardless lol, i put up a slightly updated apk manager with your request in it. Now you can toggle *output* on/off with option 17.
[G1 Android Development] Sage:
ahh thanks.

Just another thing i have noticed while using this.

It seems you use apktool.jar to decompile rather than baksmali.

I have checked and baksmali actually decodes differently than apktool on certain files.

Is there a reason why your not using baksmali?
[G1 Android Development] SkilletDesire:
How do you integrate a jar file into an existing project? Would you just create a lib directory and drop it in?
[G1 Android Development] icematrix:
I Love this tool but I have problemi with Mms.apk and Mail.apk (from my DesireHD with Original Rom) when decompile give me an error :(
[G1 Android Development] ramiroquay:
Ok, thanks a lot for responses.

I am trying to compile a modified x10 framework. I have read several post searching my problem but i haven´t found it. When i try to compile the app, apk manager show me some problems.

The log file reported me is:

"java version "1.6.0_21"

Java(TM) SE Runtime Environment (build 1.6.0_21-b07)

Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

"adb" no se reconoce como un comando interno o externo,

programa o archivo por lotes ejecutable.

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.androlib.Androlib.build(Unknown Source)

at brut.apktool.Main.cmdBuild(Unknown Source)

at brut.apktool.Main.main(Unknown Source)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(Unkn own Source)

... 5 more

El sistema no puede hallar el archivo especificado."

The file created for apk manager is smaller than the original file. Exactly is 5.331mb. I think that it isn´t possible, right?

I don´t know what is the problem. Please someone can help me? Thanks you very much!!!!
[G1 Android Development] Daneshm90:
Proprietary roms's apk's quite often have dependencies.

Use option 10 when decompiling and drag com.htc.resource into the window.
[G1 Android Development] icematrix:
but what i must write drag com.htc.resources.com when ask me type input?

because this doesn't work said me "Sorry thats no dependee apk, try again"

Where i can find the dependee apk?
[G1 Android Development] Daneshm90:
Is your build deodexed ?

Try then the framework-res that comes with your rom :S

Also post the error you get with the script (log.txt).
[G1 Android Development] icematrix:
I Have the original HTC Rom but my DesireHD is rooted and S-off

In attachments log.txt

Thanks
[G1 Android Development] ramiroquay:
Why can´t anyone help me??Please i need help!!
[G1 Android Development] mskip:
Please be patient as all help is offered freely and since you only asked your question yesterday afternoon there isnt always a user available who can give you an answer. Im sure as soon as help can be given it will be :)

Mark.
[G1 Android Development] ramiroquay:
I asked before yesterday but it no matter. I have repeated my question because i have seen a lot of responses but not mine, it`s only for this. Excuse me and thanks a lot for responses. Excuse my language too!!!
[G1 Android Development] dully79:
Click system>administration>synaptic package manager

Goto the search bar and type in "sox"

Right click on "sox" and select "mark for install"

Click apply.

Hope this helps.:)
[G1 Android Development] risq:
having issues editing a launcherpro Notification Bubble in APK Manager...

Can someone tell me the set process for it, rather than me list what I've done. I'm not a stupid person so I've tried a few different methods, however I'm not doing something right.

Even If I decompile a working app and recompile it, it FC's on the handset.

Can someone advise me at all? Much appreciated.
[G1 Android Development] LX.SF:
I'm having problems signing my APKs, the manager isn't detecting my Java. I'm on Windows 7, 64-bit, does anyone have any ideas as to what I should do?

Thanks!
[G1 Android Development] roscoenr:
Make she your Java is in you're path
[G1 Android Development] DrftJnkies:
How do I make sure Java is in my path?
[G1 Android Development] Rittzy:
I am having exact same problem! With this and other tools
[G1 Android Development] theimpaler747:
From XDA user ASimmonds:
[G1 Android Development] Rittzy:
Yea when i type in "java -version" as soon as i open command promt, it says it isnt a speficied program and i know for a fact i have it installed