yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Vizone-:
When I follow the steps in order to re-assemble a non-system app; step 5 (ZIPALIGN) gets an error.

The system cannot find the path specified.

'adb' is not recognized as an internal or external command,

operable program or batch file.

'adb' is not recognized as an internal or external command,

operable program or batch file.

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN

otExist: 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

java version "1.6.0_25"

Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode, sharing)

'adb' is not recognized as an internal or external command,

operable program or batch file.

The system cannot find the path specified.

'zipalign' is not recognized as an internal or external command,

operable program or batch file.

Could Not Find C:\apk_manager\place-apk-here-for-modding\unsignedcom.taskos-1.ap

k

The system cannot find the file specified.

The system cannot find the file specified.

Press any key to continue . . .

And then the SIGNED taskos.apk I had in there disappears. All I am trying to do is recompile the apk with the edited backgrounds.

On a side note, I'm having a real hard time try'n to figure out with "adb" is. I'm aware of the search button too btw, just nobody actually says anything about....they just talk about it. What am I doing wrong? and do you have to move the apk around to certain folders....? IDK, I think I need instructions, or at least a couple of PMs with someone who help me.

Thanx in advance.

Vizone
[G1 Android Development] silverxbv2:
ADB

http://developer.android.com/guide/developing/tools/adb.html
[G1 Android Development] Vizone-:
Helpful, read it. Didn't tell me anything lol. I run an on-site PC repair business....so i get all that tech. My current problem is why the apk manager says "adb" is not installed. I came across another XDA thread on the HTC, guy posted a link too.....some DL that some executables titled ADB. I installed what I could and re-booted. I figured since my PC ins't smoking I'm fine; and if it was...cheers!

So is adb absolutely important and is this the root of my problem? I also read somewhere on XDA that sometimes 3rd party cables can have issues with real specific communication between the device and the PC; however that may not be evident with simple file transfer abilities. The cable I'm using IS NOT the OEM Samsung cable, bc the douchebag I bought the phone from broke the tip off and then super-glued it like a reject and at any rate...it sucked.

RECAP from wall of txt:

Is "adb" my issue? and How do I fix it?

Is my 3rd party data cable the problem? I kno how to fix that if it is...just FYI =)

Am I just ridiculously stupid when it comes to a 5 step process?

Vizone
[G1 Android Development] silverxbv2:
I personally don't use adb to pull and push apps, so is it necessary, no. I get the same message every time. But I'm not plugged in to my pc either.

It sounds like your question is more about setting up sdk in your variables.
[G1 Android Development] Vizone-:
The only variables are the opacity changes of two .png files for the widget. There is 1 other variable...actually. The .png files are initially a color "indexed" and I had to change them to color RGB to even touch it. I saved them as .png but left it as RGB bc when reverting back to "indexed" it flattens the image thus ignoring any opacity changes. Thats the only thing that I can think of but I don't think it applies to my current problem. Or maybe it does and I'm a n00b; Is that it, do ya think? Or can you elaborate about setting up sdk variables?

Yah, I get the same response errors whether I'm plugged into my PC or not. --Regarding adb..
[G1 Android Development] silverxbv2:
By setting up sdk in your variables, I meant in your environment variables, as in path to your directory. This is to get rid of the adb warnings. I don't know what the other errors refer to. I usually decompile with option 9, make my edits, then recompile with 11. I've never tried to zipalign.

Steps 8 thru 16 here.http://www.droidforums.net/forum/te...dit-xmls-more-adb-apk-manager-how-basics.html

Edit: After rereading your post, are you just making changes to pngs? You dont need to decompile for that. Just use 7zip. Put tge apk on your desktop, right click and open archive. Drag the pngs you want to mod to your desktop, edit them, then drop them back in the location you took them from. Click yes when promoted to update the archive. Should be good to go.
[G1 Android Development] DJ Carpenter:
Okay, this is the first time I've used this for decompiling an APK and I'm having some issues.

I'm putting it in the mod folder, selecting it in the script, all that good stuff. But when I decompile it, it does it for a bit and then tells me there's an error and to look at the log in option 21 but I'm not sure what the issue is.
[G1 Android Development] affmalg:
Edit: I should read better...
[G1 Android Development] DJ Carpenter:
Haha it's cool. But, I don't know what the deal is.
[G1 Android Development] jimbush3:
There is something fishy in the apk you're trying to decompile. Close out of apk Manager, delete the log.txt file and then open up apk Manager and try to decompile again. After you do that post the contents of log.txt here - or attach the log if it is really long.
[G1 Android Development] DJ Carpenter:
Thanks for the help! Log.txt attached.
[G1 Android Development] jimbush3:
Multiple resources: spec=0x7f03002f layout/media_picker_grid_activity, config=-finger

The excerpt above is what's causing your errors. It's not something I've run into while using apk Manager so I don't know exactly what you need to do. If you don't mind PM me the apk and I'll see if I have any luck decompiling.
[G1 Android Development] neo4uo:
Declared here is not defined

I recently was trying to add more options to the power button, so I decompiled my framework-res and edited the public.xml...when compiling getting these error. I have searched all over with not clue, I understand having all the errors when adding png's to drawable, so I keep a clean framework-res file and use 7zip to add files, but when editing something in values it compresses to where it is unaccessible, so the 7zip trick won't work :(

Error code:

C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:2705: error: Public symbol string/reboot declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:2704: error: Public symbol string/reboot_download declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:2703: error: Public symbol string/reboot_recovery declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3894: error: Public symbol drawable/download declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3892: error: Public symbol drawable/reboot declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3893: error: Public symbol drawable/recovery declared here is not defined.

-Thanks
[G1 Android Development] neo4uo:
I forgot to add the items to the strings.xml, now I am getting another error

C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3894: error: Public symbol drawable/download declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3892: error: Public symbol drawable/reboot declared here is not defined.
C:\Users\Leroy\Desktop\AndroidDev\Programs\apk_manager\other\..\projects\framework-res.apk\res\values\public.xml:3893: error: Public symbol drawable/recovery declared here is not defined.
[G1 Android Development] neo4uo:
I had a panic attack...lol Just stood back and added the drawable and bam sorry to clutter the forum.
[G1 Android Development] jimbush3:
Yeah it looked like you were calling a PNG that didn't exist. At least now everyone will know what that error means.

Sent from my Cool Blued 1.83 Atrix
[G1 Android Development] Alganon:
Hi,

I wanted to use the 'batch optimze apk' (zp) for all my /sdext/apps. but after copying them to sd (using root eyxplorer) then to pc and using the skript, all those apps FC after putting them back (again using root explorer)...

Does anyone know why?
[G1 Android Development] ebguilbert:
Activities title bar dissapeared

Hello guys,

Ive search through the thread and havent found my problem.

Ive been trying to edit the bools.xml file inside the framework-res.apk. The process I do is:

-Decompile

-Change the xml

-Compile

-Say yes to system apk

-Say yes to the other question

-Delete the resources.arsc file in the keep folder

I do no get any compilation errors and the new framework-res.apk seems to be ok. I can flash without problems and everything works, except the title bar of some apps looks transparent or blank, especifically when the loading gear appears.

Anyone has the same problem?

With the original apk, the title bars of activities are perfect. I have not modified activity_title_bar.9.png or any image, I just changed the property config_sip_wifi_only in bools.xml

Im using version 4.9 on windows 7 and windows xp, java 1.6
[G1 Android Development] absorbers:
ACER A500 framework-res.apk

Hi all!

Need some help.

Try to decompile framework-res.apk from ACER A500.

Then i make "apktool if framework-res.apk" it's say:

And then i try to decompile framework-res.apk i see in log:

Help me please!
[G1 Android Development] klquicksall:
over in the apk tool thread there is a guy named pendo. He knows his stuff. I would send him a pm and ask for help. He has helped me like crazy.
[G1 Android Development] tommytomatoe:
Pendo is the man.
[G1 Android Development] klquicksall:
Indeed. Very patient and knowledgeable
[G1 Android Development] absorbers:
THANKS!!! :)
[G1 Android Development] Yorzua:
Apk manager rocks

Using Apk manager instead of apktool would avoid any issue like those examples..

Modding apk's since a while and never had a single issue, however i advice you to work always step by step and keep your "place-apk-here-for-modding" and "projects" folders always clean as possible.

Hope it helps you buddy :rolleyes:
[G1 Android Development] jimbush3:
I've run into errors like those through apk manager but only a few times. Try using option 20 in apk manager to set the heap size to 512.

Sent from my Cool Blued 1.83 Atrix
[G1 Android Development] Johnsondr80:
Thanks,

Got a new one for yall

java version "1.6.0_24"

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

Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

I: Checking whether sources has changed...

I: Checking whether resources has changed...

I: Building resources...

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1918: error: Public entry identifier 0x7f09063a entry index is larger than available symbols (index 1594, total symbols 1590).

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1918: error: Public symbol string/date_time_hide_clock declared here is not defined.

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1919: error: Public entry identifier 0x7f09063b entry index is larger than available symbols (index 1595, total symbols 1590).

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1919: error: Public symbol string/date_time_show_clock declared here is not defined.

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1917: error: Public entry identifier 0x7f090639 entry index is larger than available symbols (index 1593, total symbols 1590).

C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res\values\public.xml:1917: error: Public symbol string/hide_clock declared here is not defined.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Johnson\AppData\Local\Temp\APKTOOL7258722682081269195.tmp, -I, C:\Users\Johnson\apktool\framework\1.apk, -I, C:\Users\Johnson\apktool\framework\2.apk, -S, C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res, -M, C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\AndroidManifest.xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

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

at brut.androlib.Androlib.buildResources(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.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Johnson\AppData\Local\Temp\APKTOOL7258722682081269195.tmp, -I, C:\Users\Johnson\apktool\framework\1.apk, -I, C:\Users\Johnson\apktool\framework\2.apk, -S, C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\res, -M, C:\Users\Johnson\Andriod\apk_manager_4.9\other\..\projects\Settings.apk\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)

... 7 more

how do i build up the symbols to accomidate??
[G1 Android Development] absorbers:
Hi. Any response from pendo?
[G1 Android Development] Johnsondr80:
Any one?
[G1 Android Development] dewide:
Awesome, thanks! :D
[G1 Android Development] mike1986.:
New APK tool is out - http://code.google.com/p/android-apktool/

Issue 100 is fixed. Will there be any update of Apk manager?
[G1 Android Development] tommytomatoe:
If you want, you can just replace the apktool.jar in the other directory with the new one.
[G1 Android Development] Daneshm90:
If ur on 5.0, a mere "Update tools" shud give u the latest one now.

Let me know
[G1 Android Development] mike1986.:
5.0? There is 4.9 available as the latest...
[G1 Android Development] Daneshm90:
I shud really keep my op up 2 date :P

https://github.com/Danesh/ApkManager
[G1 Android Development] klquicksall:
thanks for the tool
[G1 Android Development] mike1986.:
Thanks mate :) Well, that would be helpful for most users to see in the fp when new version is out ;)
[G1 Android Development] kgill7:
how do get this in my path:

The program adb is missing or is not in your PATH,

please install it or fix your PATH variable

The program sox is missing or is not in your PATH,

please install it or fix your PATH variable
[G1 Android Development] klquicksall:
Extract in your tools folder of the sdk
[G1 Android Development] kgill7:
yea i did that but in platform-tools because adb was in there then when i tried to execute ./Script.sh it said no path for adb or sock

i did chmod 755 adb

and would i have to do the same thing for windows???
[G1 Android Development] klquicksall:
I use windows 7 try

Adb devices

If it comes back with your device id your good.
[G1 Android Development] Droidzone:
Minor mod

Hi Daneshm90,

This is a minor mod of ApkManager 5 that I use personally., and would like ApkManager to have as feature.. :)

It adds all three recent versions of apktool and the ability to toggle between them via the menu..It also displays the current version number of Apktool in the menu. Whenever a new version of apktool is released, Apkmanager can be updated by simply dropping the new file into other/apktool folder

If you have a problem with this post, let me know and I'll remove it asap..

Cheers, for making this excellent wrapper..

Any plans to add Batch Processing support? :)
[G1 Android Development] fernando sor:
Brut.all did a great job on 1.4.1 apktool. it's awesome
[G1 Android Development] icematrix:
With new update i Have problem to decompile with dependendies like MMS.apk with com.htc.resources.apk :(

This is the log
[G1 Android Development] cyber_pete:
I am having a lot of trouble modifying my framework-res.apk. I keep getting th same erros when trying to recompile. I even tried decompiling and recompiling without making any changes but get the same errors. HAs anyone seen this before? I have tried option 9 and option 10 to decompile with the same results. I am sure I am making a simple mistake, just not sure what it is. This is part od the error:

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3439: error: Public symbol drawable/zzz_stat_sys_headphone

s declared here is not defined.

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3440: error: Public symbol drawable/zzz_stat_sys_tty decla

red here is not defined.

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3441: error: Public symbol drawable/zzz_textfield_search d

eclared here is not defined.

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3442: error: Public symbol drawable/zzz_textfield_search_d

efault declared here is not defined.

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3443: error: Public symbol drawable/zzz_textfield_search_p

ressed declared here is not defined.

C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\

res\values\public.xml:3444: error: Public symbol drawable/zzz_textfield_search_s

elected declared here is not defined.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce

ption: could not exec command: [aapt, p, -F, C:\Users\PETER~1.FEI\AppData\Local\

Temp\APKTOOL6701524411730953364.tmp, -x, -0, arsc, -S, C:\Users\peter.feinberg\D

esktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\peter.f

einberg\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.

xml]

at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)

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

at brut.androlib.Androlib.buildResources(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.common.BrutException: could not exec command: [aapt, p, -F, C:\U

sers\PETER~1.FEI\AppData\Local\Temp\APKTOOL6701524411730953364.tmp, -x, -0, arsc

, -S, C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\framework-re

s.apk\res, -M, C:\Users\peter.feinberg\Desktop\Apk Manager\other\..\projects\fra

mework-res.apk\AndroidManifest.xml]

at brut.util.OS.exec(Unknown Source)
[G1 Android Development] lippol94:
No way for a 4.9 linux update? I do love this tool but Microsoft OS is a crap!

Why we're stucked on 4.3 release? :\
[G1 Android Development] Brut.all:
Try to use this version of apktool: http://www.multiupload.com/BPJW0WGTBG

If it doesn't work then upload MMS.apk and com.htc.resources.apk somewhere, preferably multiupload.com .
[G1 Android Development] icematrix:
Thanks :)

10 chars
[G1 Android Development] sdoppke:
Deleting files when smali is edited.

I have modified a little xml and have modified smali as well. I know to delete the resources.arsc file when editing xml, but what do I delete after editing smali files (in the the keep folder)? The smali folder is not there.

Thanks everyone

Sd
[G1 Android Development] tommytomatoe:
Smali gets compiled up into classes.dex

:-)
[G1 Android Development] mikeew83:
keep getting error

java not installed but it is.
[G1 Android Development] CleveRuse:
I'm having a similar problem, mate. Only mine says that I'm missing the following from path: 'optipng,' '7za' and 'sox.' Doesn't say anything bout adb. Adb works fine.

Any chance u (or anyone) have figured it out.

I also extracted to /platform-tools, cuz that's where adb is. My SDK is set as PATH variable. JAVA is not, cuz I don't know where its at (both jre6 n jdk installed) so maybe that's my problem but I was waiting to see wut the script said (like .bat in windows says wut u won't be able to do without java found)

Obviously I'm on Linux (as of yesterday)

I ran everything fine in windows ...after I set java in my path.

(On Linux; Ubuntu 11.04) how can I find where java (jre6 or jdk) were installed to? I looked in "installed" inside 'ubuntu software center,' but its no longer listed there, tho it was yesterday...
[G1 Android Development] dreamsforgotten:
Those files should be in the other folder inside of apk manager could be wrong tho
[G1 Android Development] froli13:
Does the linux version will be updated someday?
[G1 Android Development] CleveRuse:
Yeah, they are, but I'm pointing to the 'apkmanager' file (in terminal) b4 running the script.sh. the script is inside the "apkmanager" file along with the other folder (tho separated) and the script IS recognized ...so they should be too, right? Idk

I'm typing (pasting 1st part):

" cd '/home/Aaron/sdk/platform-tools/apkmanager'

chmod 755 Script.sh

./Script.sh"

N that's where it goes south

Edit: jdk is now in path ...still says 'optipng, 7za, sox' not in path
[G1 Android Development] tommytomatoe:
Unix does not look at files in a directory like windows does. For example, I have blue.sh in a folder called color on my desktop. Even if I "cd /User/tommytomatoe/Desktop/color" first, I cannot run blue.sh.

It must be in your path. You can do this by creating a .bash_profile or modifying your existing one if you already have one. This goes in your hone directory, ie for me it is User/tommytomatoe/

Or...you can place all the missing files in usr/local/bin/ and call it a day. That directory is in your path already by default for most people.

Or...you can place said missing files inside your sdk directory if it is also in your path.

That's what I would recommend doing. Let me know if you need help. :-)
[G1 Android Development] CleveRuse:
I'll try the other two options, Thnx ...as for the last one, its all in my SDK. Which is in my path ...or u mean take said files out of folder, and place directly inside SDK, rather than; inside folder, inside SDK? I'll try that first.

Thnx again
[G1 Android Development] CleveRuse:
Oh, wait, where is the "sox" file? I don't see it inside my apkmanager file. How would I put sox in path?