yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] vocaltreat:
Ok i give up

I hate asking because i try to look and find out problems for my self......ive read ALLL the posts and still....so......when decompiling the mms.apk for my epic i get this error cant find framework resource package for package of id 2

Now in the log it saysjava 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)

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

operable program or batch file.

this is my path C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\EgisTec MyWinLocker\x86;C:\Program Files (x86)\EgisTec MyWinLocker\x64;C:\Program Files (x86)\Windows Live\Shared;C:\Android\android-sdk\platform-tools;C:\Program Files\Java\jdk1.6.0_24\bin;C:\Program Files\Java\jre6\bin

soooo im scratching my head as to what the heck????.....ITs probably something simple im not seeing. Thanks in advance!!!!
[G1 Android Development] Daneshm90:
Can u retry above steps on a clean system ?

Because pushing the apk and not seeing anything in the log is plain wierd.
[G1 Android Development] tommytomatoe:
I know! Very weird. Im doing a couple mods for the current rom I am on by request. Thank you for your help. Ill clean install tonight and see. It is just plan weird. By log, you mean logcat, right? Nothing else I am missing?
[G1 Android Development] Daneshm90:
Yea logcat is what im referring to.
[G1 Android Development] tommytomatoe:
Cool. I just wanted to cover the bases. Pendo helped me with a hacked services.jar. I have several options to try out.
[G1 Android Development] VibrantThemer:
Hello everyone,

I need help to remove some wallpapers from the launcher.apk. I need someone to tell me what I need to do after the following 3 steps:

1. Decompile the apk

2. Delete the unwanted wallpaper

3. Remove all wallpaper elements, except one of them, in the [C:\Android\apk\projects\Launcher.apk\res\values-hdpi\Arrays]

Thanks in advance
[G1 Android Development] Daneshm90:
If its a /system/app then compile say yes then say no.

If its not, then just use the compile,sign,install option.
[G1 Android Development] VibrantThemer:
Thanks for a quick respond, Dane.

I got an error. Please tell me what I did wrong.

Error Log:

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

I: Copying assets and libs...

I: Checking whether sources has changed...

I: Smaling...

I: Checking whether resources has changed...

I: Building resources...

(skipping index file 'C:\Android\apk\other\..\projects\Launcher.apk\res\drawable-hdpi\Thumbs.db')

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:105: error: Public symbol drawable/wallpaper_brown declared here is not defined.

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:106: error: Public symbol drawable/wallpaper_brown_small declared here is not defined.

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:167: error: Public entry identifier 0x7f02008f entry index is larger than available symbols (index 143, total symbols 143).

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:167: error: Public symbol drawable/wallpaper_zanzibar declared here is not defined.

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:168: error: Public entry identifier 0x7f020090 entry index is larger than available symbols (index 144, total symbols 143).

C:\Android\apk\other\..\projects\Launcher.apk\res\values\public.xml:168: error: Public symbol drawable/wallpaper_zanzibar_small declared here is not defined.

Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\xxxx\LOCALS~1\Temp\APKTOOL3893876214738595272.tmp, -I, C:\Documents and Settings\xxxx\apktool\framework\1.apk, -S, C:\Android\apk\other\..\projects\Launcher.apk\res, -M, C:\Android\apk\other\..\projects\Launcher.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:\DOCUME~1\xxxx\LOCALS~1\Temp\APKTOOL3893876214738595272.tmp, -I, C:\Documents and Settings\xxxx\apktool\framework\1.apk, -S, C:\Android\apk\other\..\projects\Launcher.apk\res, -M, C:\Android\apk\other\..\projects\Launcher.apk\AndroidManifest.xml]

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

... 7 more
[G1 Android Development] Dino.:
I cant get the script to find my Java, then when I went to go reinstall Java I get "the missing DLL error" and can't seem to find the misc pieces by manually deleting everything.

I had JRE SE Developers Kit 6 update 21, but it is installed on the C drive.

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

|Sun 03/27/2011 -- 12:03:19.53|

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

Error: could not open `D:\Program Files\Java\lib\amd64\jvm.cfg'

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

|Sun 03/27/2011 -- 14:48:27.85|

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

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

operable program or batch file.

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

|Sun 03/27/2011 -- 14:50:36.95|

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

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

operable program or batch file.

I then tried installing update 24 on top, and it completes but says the same DLL error. (then ran the program again, which is the 2nd and 3rd entry)

Im confused, am I missing anything? ADB is still fully functional. Thanks
[G1 Android Development] Daneshm90:
Try decompiling/recompiling w/o any changes....see if u get any errors.
[G1 Android Development] VibrantThemer:
If I put the deleted files back, it's fine.
[G1 Android Development] Daneshm90:
Yea so u need to properly edit the apk.

You can't just delete the png's, u need to trace all its dependancy and safely remove them.
[G1 Android Development] VibrantThemer:
How do I edit the apk without using the sdk environment?

Thanks
[G1 Android Development] Daneshm90:
For one, u cud use a txt search program and look through all the smali/xml files for traces of tht png....

I remember a guide somewhere on xda for this exact purpose, but the vastness of this site makes it quite impossible to find.
[G1 Android Development] VibrantThemer:
Thanks for your help, Dane.
[G1 Android Development] fernando sor:
You open the entire apk in notepad++ and search for whatever file reference your looking for
[G1 Android Development] dansta34:
Hey guys can anyone help i had posted a few posts back that i had dramas with modding the dialer.apk got it all sorted with the help from ojkin he showed me to decompile edit compile it copy over the resource.arsc from unsigned to original apk that i started with delete unsigned apk make a copy of original apk rename the copy one to unsigned and then option 12 to sign it drag of to desktop rename to original name then flashed and it works fine doing it that way.Now im stuck with editing xml files in the framework and getting boot loop i have edited xml files in the layout folder the status_bar.xml and status_bar_expanded.xml and status_bar_latest_event_content.xml just changed the color's and am getting boot loops i have read through the post about people with similar problems that i could find it is stock framework from sense 1.84 base i have read that i need to decompile it with dependencies option 10 edit then compile then because it is framework y then y again so in the keep folder do i delete just the resource.arsc or do i also delete the layout then what do i do after that i read not to sign it so do i open up the unsigned framework and the original framework and drag the resource.arsc from the unsignedframework over to the original framework then delete the unsinedframework and make a copy of the original framework place it on my desktop then rename it and put it in my theme zip and flash.Where am i going wrong.Im stuck i have tried everything even y then n after the decompile and tried reading up on it for a day to try work it out myself but have no choice to ask for help please anyone
[G1 Android Development] dully79:
Edit your xml's then option 11 to compile.

Answer yes yes.

Delete resources arsc from the keep folder and any other xml you edited don't worry about xmls in the value folder.

Now adb push unsignedframework-res.apk /system/framework/

Hope this helps :)
[G1 Android Development] fernando sor:
apktool 1.3.2 will bork anything you edit in the layout folder. drop in apktool 1.3.1 to the other folder. also if your decompiling any htc app you need com.htc.resources handy. i use straight apktool now for this as the dependencies just need to be present in the apktool folder.
[G1 Android Development] dansta34:
i am using apk manager as i have not used apktool before how should i do it with apk manager

edit.Sorry if im not understanding this right now just bit sick
[G1 Android Development] fernando sor:
Pm me and ill write up a method for you. Traveling tomorrow so give me a little time
[G1 Android Development] MaliciousKen:
I am trying to modify a stock framework-res.apk from a rom that is not odex with the following steps but keep getting bootloops.

1) decompile

2) edited xmls and pngs to get percentage battery mod

3) compile (yes, yes)

4) Delete edited xmls, those png modified and resources.arsc in keep folder

5) press enter and get the unsignedframework-res

6) rename and push

There is a big difference is filesize ompared to original framework-res.apk (about 1mb+)

my logs indicates:

java version "1.6.0_23"

Java(TM) SE Runtime Environment (build 1.6.0_23-b05)

Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)

Could Not Find C:\Users\xxx\Desktop\New folder (5)\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk

Could Not Find C:\Users\xxx\Desktop\New folder (5)\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk

I: Loading resource table...

I: Decoding resources...

I: Copying assets and libs...

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

I: Building apk file...

The system cannot find the file specified.

Anyhelp is much appreciated.
[G1 Android Development] fernando sor:
Are you getting duplicate folders in your res folder?
[G1 Android Development] MaliciousKen:
Below are the list of files in my \projects\framework-res.apk\res after decompiling

anim
color
drawable
drawable-en-hdpi
drawable-hdpi
drawable-land-hdpi
drawable-nodpi
layout
layout-land
layout-port
raw
raw-cs
raw-da
raw-de
raw-en-rGB
raw-es
raw-fi
raw-fr
raw-hu
raw-it
raw-ko
raw-nl
raw-pl
raw-pt-rBR
raw-ru
raw-tr
raw-zh-rCN
raw-zh-rTW
values
values-bg
values-bg-rBG
values-cs
values-cs-rCZ
values-da
values-da-rDK
values-de
values-de-rCH
values-de-rDE
values-el
values-el-rGR
values-en
values-en-rAU
values-en-rCA
values-en-rGB
values-en-rIE
values-en-rUS
values-es
values-es-rES
values-es-rMX
values-fi
values-fi-rFI
values-fr
values-fr-rBE
values-fr-rCA
values-fr-rCH
values-fr-rFR
values-hr
values-hr-rHR
values-hu
values-hu-rHU
values-is
values-it
values-it-rCH
values-it-rIT
values-ko
values-ko-rKR
values-land
values-mcc204
values-mcc204-cs
values-mcc204-da
values-mcc204-de
values-mcc204-el
values-mcc204-es
values-mcc204-fr
values-mcc204-it
values-mcc204-ko
values-mcc204-nl
values-mcc204-pl
values-mcc204-pt
values-mcc204-pt-rPT
values-mcc204-ru
values-mcc204-sv
values-mcc204-tr
values-mcc204-zh-rCN
values-mcc204-zh-rTW
values-mcc230
values-mcc230-cs
values-mcc230-da
values-mcc230-de
values-mcc230-el
values-mcc230-es
values-mcc230-fr
values-mcc230-it
values-mcc230-ko
values-mcc230-nl
values-mcc230-pl
values-mcc230-pt
values-mcc230-pt-rPT
values-mcc230-ru
values-mcc230-sv
values-mcc230-tr
values-mcc230-zh-rCN
values-mcc230-zh-rTW
values-mcc232
values-mcc232-cs
values-mcc232-da
values-mcc232-de
values-mcc232-el
values-mcc232-es
values-mcc232-fr
values-mcc232-it
values-mcc232-ko
values-mcc232-nl
values-mcc232-pl
values-mcc232-pt
values-mcc232-pt-rPT
values-mcc232-ru
values-mcc232-sv
values-mcc232-tr
values-mcc232-zh-rCN
values-mcc232-zh-rTW
values-mcc234
values-mcc234-cs
values-mcc234-da
values-mcc234-de
values-mcc234-el
values-mcc234-es
values-mcc234-fr
values-mcc234-it
values-mcc234-ko
values-mcc234-nl
values-mcc234-pl
values-mcc234-pt
values-mcc234-pt-rPT
values-mcc234-ru
values-mcc234-sv
values-mcc234-tr
values-mcc234-zh-rCN
values-mcc234-zh-rTW
values-mcc260
values-mcc260-cs
values-mcc260-da
values-mcc260-de
values-mcc260-el
values-mcc260-es
values-mcc260-fr
values-mcc260-it
values-mcc260-ko
values-mcc260-nl
values-mcc260-pl
values-mcc260-pt
values-mcc260-pt-rPT
values-mcc260-ru
values-mcc260-sv
values-mcc260-tr
values-mcc260-zh-rCN
values-mcc260-zh-rTW
values-mcc262
values-mcc262-cs
values-mcc262-da
values-mcc262-de
values-mcc262-el
values-mcc262-es
values-mcc262-fr
values-mcc262-it
values-mcc262-ko
values-mcc262-nl
values-mcc262-pl
values-mcc262-pt
values-mcc262-pt-rPT
values-mcc262-ru
values-mcc262-sv
values-mcc262-tr
values-mcc262-zh-rCN
values-mcc262-zh-rTW
values-mk
values-nl
values-nl-rNL
values-no
values-pl
values-pl-rPL
values-pt
values-pt-rBR
values-pt-rPT
values-ro
values-ro-rRO
values-ru
values-ru-rIL
values-ru-rRU
values-sk
values-sk-rSK
values-sl
values-sr
values-sv
values-sv-rSE
values-tr
values-tr-rTR
values-zh-rCN
values-zh-rTW
xml
xml-en
xml-land
[G1 Android Development] fernando sor:
I'm not familiar with the values string with mmc IR whatever follows it. Usually are strings in different languages.

After you recompile do you have duplicate drawables folders?
[G1 Android Development] MaliciousKen:
I do not have duplicate drawable folders in the unsignedframework-res.apk after compiling.
[G1 Android Development] fernando sor:
Are you modifying the layout folder?
[G1 Android Development] MaliciousKen:
Yes. I modfied status_bar_expanded.xml
[G1 Android Development] fernando sor:
That's the issue. Download apktool 1.3.1 and put it in the other folder. 1.3.2 has parsing issues
[G1 Android Development] MaliciousKen:
It finally worked! So i was using the wrong apktool all the while.

Had been trying the whole of yesterday!

Thank you so much! You saved me.
[G1 Android Development] fernando sor:
Cool
[G1 Android Development] dansta34:
Hey guys does anyone on this thread happen to no where the location of the file is to edit to change the color of the clock in the status bar on sense 2.2 i have searched for days its the only thing i cant find i no where all the other files are for the status bar and notification drop down but cant find the clock.I have even looked in the service.jar but i might have missed something in there?any help would be appreciated...!
[G1 Android Development] dully79:
Look in the sticky "how to theme" on android themes, or click the link in my sig.

Hope this helps :)
[G1 Android Development] Daneshm90:
Sorry if updates seem slow. Its exam week.

So far i think the update checker is now done. Now i will start going through and clean the code n then release 5.0. Any feature requests are welcome.

Out of curiosity. Those on 5.0 are u getting updates as im posting them ? Thnx
[G1 Android Development] fernando sor:
yes that feature is working fine.

so the source code for apktool has been out for a bit. you know you cant mod anything in the layout folder with apktool 1.3.2. do you know if brut is planning an update?
[G1 Android Development] Daneshm90:
What version is the source code ?
[G1 Android Development] fernando sor:
i believe its the most recent, 1.3.2 but im not 100% on that
[G1 Android Development] hitman_dreams:
I was hoping to avoid this, but i'm having issues with apkm in ubuntu. It works ok for extracting the apk and everything, but when I try to decompile I can't seem to find it. There are no errors. I'm using v4.7.

I'm putting the apk in the "place here to modding" folder, go to the terminal and choose 9(decompile), and then...nothing. If there was an out folder, it's now gone. Am I missing something? Thanks.
[G1 Android Development] dimitri407:
I am trying to decompile the framework-res.apk file from a Xoom but it keeps erroring out. the error is below. Can someone please help?
[G1 Android Development] dryvali:
I am running Windows 7 and when I run the Script, i receive the following error...

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

I have installed and reinstalled Java too many times to count, any guidance would be greatly appreciated.
[G1 Android Development] dimitri407:
Are you running Windows 7 64 bit? If so you need to install the Java 64 bit as well as the 32 bit. I had this eact problem.
[G1 Android Development] dryvali:
Yes, where do I find that?
[G1 Android Development] dimitri407:
java.com and select downloads. You can find it there. Just make sure you install the 64 bit.
[G1 Android Development] hitman_dreams:
so figured it out, turns out there is a bug in the linux package. If you decompile, change nothing, and recompile then push to the phone, it is missing the meta-inf folder and androidmanifest.xml file. At least for framework-res.apk, I assume it won't compile anything else correctly either, but I haven't gotten there yet. If your recompile doesn't work when changing nothing, look to see if it's missing anything from the original you decompiled from.
[G1 Android Development] rufiely:
hi i start and only become

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

... and then i can only close

i check this thread and restalled java 3 times

C:\Program Files\Java

C:\Program Files (x86)\Java

Win7 - german - 64bit - download from java.com -> "jre-6u24-windows-i586-s.exe"

what do i wrong?
[G1 Android Development] alfa156v:
do not create resources.arsc file on compiling

Someone knows that problem?

I am decompile apk, making changes compile, during compile i deleting resources.arsc file, then sign the apk, but at instalation i get this Failure [INSTALL_PARSE_FAILED_BAD_SHARED_USER_ID]

error and i see that there are no resources.arsc file inside of apk.
[G1 Android Development] rufiely:
i copied javas in project\java and edit path all is gone ^^
[G1 Android Development] silverxbv2:
Can someone post a link to 5.0? I've searched exhaustively and can't find it.
[G1 Android Development] fernando sor:
Page 135
[G1 Android Development] silverxbv2:
So I just replace whats in 4.9 with these?
[G1 Android Development] fernando sor:
You replace the other folder and the script Tho I would keep apktool 1.3.1
[G1 Android Development] Artic King:
What do you all mean with: 3. Java/adb are in your path

An error occurred and I'm guessing java and/or adb might be the problem.
[G1 Android Development] JokerAce:
I really really want to thank you for this excellent application. Really, thank you so much!!
[G1 Android Development] starof:
Could someone help please

I get no errors or warnings through the whole process

I'm only using a Stock Deodexed framework-res.apk

My steps:

Decompile apk

Compile apk

Hit y/y

Remove all the V-4 folders

Change name from unsignedframework-res.apk to framework-res.apk

ADB push the file

Now i get stuck in boot screen

I have even tried removing the normal folders and leaving the v-4 ones
[G1 Android Development] Daneshm90:
How are you pushing the framework-res ?

Remove the androidmanifest from the keep folder before recompiling. And try again.
[G1 Android Development] starof:
Thank you i will try that. I push using ADB, not APK Manager
[G1 Android Development] starof:
I just get errors trying it like this.

Also boot loop again
[G1 Android Development] Daneshm90:
Do this.

First push back the original framework and boot. Once successfull proceed :

1. Decompile

2. Compile

3. Yes

4. Yes

5. Delete androidmanifest.xml

6. Continue.

Then adb push and reboot.
[G1 Android Development] starof:
Thank you for your time. It's working fine now
[G1 Android Development] klquicksall:
forgive me for being a noob at this sutff but I have a few questions.

My goal is to modify the rosie launcher to make it transparent. I decompiled the rosie.apk changed the values for transparentcy. Now my questions are

1. Do you recompile the rosie now or do I pull the framework in first.

2. Do I sign the apk?

3. Will this install like a zip or do I put it back into the zip it came out of?

Thanks for all of your help.

Im using windows 7.
[G1 Android Development] roscoenr:
I have what may be a bug with 5.0 if I decompile an apk (framework-res.apk) with 5.0 then I decompile, make no changes, recompile I get an error. I'm using apktool 1.3.1. Now if I use 4.9 follow the same steps with the same apk it recompiles with no problem. I have looked through the thread and not found this error. here are the log.txt, with the errors, and the framework-res.apk that i am using. I may be doing something wrong but I don't know what if I am please let me know.

log.txt
[G1 Android Development] tommytomatoe:
Well, the Rosie dock does not deal with xml edits. All it is png that control what it looks like. To make it transparent, make a png that is so it use one already made. It goes into res/drawable-hdpi. Name it common_mainnav_scroller3.png. Replace the old one. You do not need to decompile apks to edit it swap out png. Just use 7zip or betterzip to pull out the res folder from within the apk. Make changes. And put the new res folder back into the apk. Both 7zip and betterzip will treat the apk as zip files. Do not extract. Just take out what you need and replace what you change.

Never sign system apks. These need to keep their old keys so that it matches the keys to other framework files. A new signature makes Android question the apks integrity and thus it will not work.
[G1 Android Development] fernando sor:
He may be talking about the app drawer and add to home transparency.
[G1 Android Development] Daneshm90:
Try swapping the aapt's. I think its those.
[G1 Android Development] roscoenr:
that did the job
[G1 Android Development] Daneshm90:
Yea will try and implement a version selector or something for such situations...
[G1 Android Development] tommytomatoe:
Mmm. I didn't even think of that. Thanks.
[G1 Android Development] klquicksall:
Im trying to edit the rosie. The grey launcher on the bottom of htc phones.
[G1 Android Development] fernando sor:
Lol. Yeah we know. It sounds like you were right Tommy!

It sounds like you may need to read up a little before you attempt this. If you just want to make image changes you don't need to decompile. Also there are shared images in com.htc.resources you would need to mod
[G1 Android Development] kirbnite:
Help with BlurHome.apk on Gingerbread with Droid X

I install framework-res.apk, moto-res.apk, and blur-res.apk. they install as 1.apk, 2.apk, 3.apk.

Java -jar apktool.jar if framework-res.apk

Java -jar apktool.jar if moto-res.apk

Java -jar apktool.jar if blur-res.apk

Then I can successfully decompile BlurHome.apk. I am using apktool 1.3.1 as I read the problems 1.3.2 was causing.

But when I recompile, I get errors.

I tried decompile, recompile with no changes and still get errors. Any ideas?
[G1 Android Development] LfcFan1977:
Thank you Daneshm90

v5.0 working brilliantly after I replaced the apktool.jar and aapt.exe in the "other" folder with the ones from v4.7

v5.0 can be found here --> postcount=1342

Now able to achieve just one set of files in framework-res.apk/res folder which dramatically reduces the size.

[9] - edit "res" folder - [11] - [y] - [y] - edit "keep" folder - [enter] - [22] - [2]unsignedframework-res.apk - [1] - [3].

Going to test on other apk's now.