yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] Mko979:
OK, then I immediately hit 11 to compile and i get error check log and this is what it says. But I dont see any reference to any .9png

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publre iException in thread "main" brut.androlib.AndrolibException: brut.common.Brut

Exception: could not exec command: [aapt, p, -F, C:\DOCUME~1\ASHLEY~1\LOCALS~1\T

emp\APKTOOL2316987219854433575.tmp, -x, -0, arsc, -S, C:\Danesh-ApkManager-482b4

5a\other\..\projects\framework-res.apk\res, -M, C:\Danesh-ApkManager-482b45a\oth

er\..\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:\D

OCUME~1\ASHLEY~1\LOCALS~1\Temp\APKTOOL2316987219854433575.tmp, -x, -0, arsc, -S,

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res, -M, C:\Da

nesh-ApkManager-482b45a\other\..\projects\framework-res.apk\AndroidManifest.xml]

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

... 7 more

s not defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3244: error: Public symbol drawable/sym_keyboard_num1 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3245: error: Public symbol drawable/sym_keyboard_num2 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3246: error: Public symbol drawable/sym_keyboard_num3 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3247: error: Public symbol drawable/sym_keyboard_num4 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3248: error: Public symbol drawable/sym_keyboard_num5 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3249: error: Public symbol drawable/sym_keyboard_num6 declared here is no

t defined.

C:\Danesh-ApkManager-482b45a\other\..\projects\framework-res.apk\res\values\publ

ic.xml:3250: error: Public symbol drawable/sym_keyboard_num7 declared here is no

t defined.
[G1 Android Development] fernando sor:
5.0 rocks

Badseeds custom y'all
[G1 Android Development] xkape:
those are 9png errors... they may not be the cluprit but once you have one bad apple, it sours the bunch.

Tell me more about what you are trying to do to the keyboard?
[G1 Android Development] Mko979:
I'm not trying to do anything to keyboard just decompile and then trying to compile immediately after it.
[G1 Android Development] xkape:
well, one of the guides on the 9pngs is jacked up so its tossing your entire apk off. You can either go thru and reguide the 9's or find a stock GB keyboard.

I'm a nice enough guy, I am about to go to bed but if you feel like posting your apk file I can take a look at it tomorrow.
[G1 Android Development] draco_ag:
Finally i compiled framework and it working. But still first boot takes around 11 minutes. Are we able to do something with it? Or it is normal?

Other framework mods have shorten boot time, around 2-3 minutes.
[G1 Android Development] Daneshm90:
Im not sure. Ive noticed it goes through n recreates the dex's for all apps since it thinks they mismatch. I think it depends on the edit
[G1 Android Development] Daneshm90:
Glad u think so :)
[G1 Android Development] Daneshm90:
Ok so u said u make changes, it works fine but in layout u make changes it fc's. Now try directly making only the layout changes to the original apk n see if it fc's and.if log is different
[G1 Android Development] draco_ag:
What You mean?
[G1 Android Development] Mko979:
Awesome xkape thanks a lot. I will post the framework-res.apk exactly as I pulled from the original Rom.
[G1 Android Development] draco_ag:
Daneshm90 , when i trying to compile apk file i get error message:

backupandrestore.apk has not been extracted, please do so before doing this step...

Press any key to continue...

Where i need to extract file?
[G1 Android Development] Mko979:
I just saw this and wonder if this is related to the issue I'm having. I am running a sense Rom and the framework-res.apk is also from a sense Rom. I didn't think it was dependant but maybe. Also j wonder which com.htc apk he's referring to.
[G1 Android Development] xkape:
Dane...

Went back to the original app and edited one xml in the layout folder only. I then installed it and went directly to where that xml would be. App Force CLosed on me. I tried doing a log but it doesn't say anything other than that the daemon is running. not actually logging anything.

You know, it compiles fine other than what i stated awhile back about not finding the specified file (which it seems everyone gets that). That edit I did was nothing more than a hex color change. No code editing or adding. Then it tosses an error in the log about the ID for an xml file in the layout folder I never even touched. Which is probably throwing everything off. Is there maybe something in the signing of the app its not liking? I mean, I've tried it signed and unsigned but maybe it just doesnt do it properly enough? I don't know.
[G1 Android Development] draco_ag:
Already fixed the problem. my apk manager directory seems to have to much directory innidation. I moved it to main partition and it works.
[G1 Android Development] thatguythatdid:
@Daneshm90 I think that's the best thing since sliced bread
[G1 Android Development] Daneshm90:
Lol so u cud see urself using it ? ill polish it up more and make it more user-friendly, but i've been using it for a while n it make certain tasks a lot easier. I did this cuz ppl in most forums r like can u create a update.zip for this n im like why cant u do it urself lol n they're like its 2 complicated :rolleyes:
[G1 Android Development] thatguythatdid:
To be honest I just copy and paste from other update scripts :)
[G1 Android Development] idroid84:
Done this, however no joy. I am unsure of why it only happens when I use the decompiler/compiler. Anyone else shed light?
[G1 Android Development] Daneshm90:
Re: Apk Manager 4.4 - Makes Modifying Ur Apk A Breeze (Windows/Linux)

can u plz upload the launcher.apk ur trying to edit? ill get back to u.

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

Sent via the XDA Tapatalk App
[G1 Android Development] idroid84:
Launcher.apk untouched... attached. Many thanks, you may want to send me a pm if you come across something. I really do appreciate your help. :)
[G1 Android Development] Brut.all:
I doubt he has problems with apktool/Apk Manager:

http://xdaforums.com/showthread.php?t=707189

He has signing issues, but claims that he hasn't when installing not apktool'd file. This is ridiculous, apktool can't affect signing procedure.
[G1 Android Development] idroid84:
Thanks, I am not claiming I don't have signing issues. I actually don't know what the issue is. If it is singing issues where is the problem because I have used both APKTOOL/APKMANAGER. I have watched video guides, tutorials e.t.c and following them exactly how they are and it still doesn't work. I have also tried different ROMS so I am unsure of where the issue lies.
[G1 Android Development] Brut.all:
Ok, sorry.

As I told you in the other thread, I think you have to install it through update.zip method, because it's system app and it must be signed with the same keys as rest of the system (update.zip workarounds this problem). But I'm not sure.

That test with removing META-INF dir negates this theory, so... could you redo it and recheck, that you didn't mistake somewhere (for example you have installed original file, not resigned one)?

Also could you post your current logcat? I say "current" because logcat from another thread says that you can't run your launcher, because previous version of it wasn't properly uninstalled. Then someone suggested you uninstalling it, so I think now you get different errors - probably still something about certs, but not about previous installation - about "android.uid.shared" shared user.
[G1 Android Development] idroid84:
Current Logcat Attached. (I think it's a signature issue as you said)

E/PackageManager( 93): Package com.android.launcher signatures do not match the previously installed version; ignoring!

I removed META-INF dir tried with and without and resign. Tried uninstalling it - Reinstalling it e.t.c.
[G1 Android Development] Brut.all:
Hmm... this error means exactly: "you have tried to reinstall one version of an app with another, which has different certs.". But you said earlier that you do "adb uninstall" (and get "Success" message?), so I don't really know. How do you install it? "adb install" or just push it?
[G1 Android Development] idroid84:
I push it using android commander, I will try adb install this time.
[G1 Android Development] Daneshm90:
Yea try tht, are u modifying a standard launcher or one of those alternate launchers ?
[G1 Android Development] idroid84:
I try this and I get

adb install Launcher.
apk
1014 KB/s (782155 bytes in 0.753s)
pkg: /data/local/tmp/Launcher.apk
Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

C:\Users\desktopadmin\Desktop\HTC Hero G2\EXTRAS\SDK\tools>

Modifying a standard launcher directly from a working ROM.
[G1 Android Development] idroid84:
Give me a moment will pull a logcat and attach it here. :D
[G1 Android Development] Daneshm90:
This seems to be the important bit

W/PackageManager( 87): Package com.android.launcher codePath changed from /system/app/Launcher.apk to /data/app/com.android.launcher.apk; replacing with new

E/PackageManager( 87): Package com.android.launcher has no signatures that match those in shared user android.uid.shared; ignoring!

W/PackageManager( 87): Package couldn't be installed in /data/app/com.android.launcher.apk

D/AndroidRuntime( 617): Shutting down VM

Still looks like u havent properly uninstalled launcher from ur system.

Are u sure u removed the dex and apk and then did

adb uninstall com.android.launcher ?
[G1 Android Development] idroid84:
Will do it again :rolleyes::eek:
[G1 Android Development] Brut.all:
Yeah and now you get that error I was talking about earlier: you try to install system app signed using different keys than whole system.

So we are at the very beginning: go for update.zip method.
[G1 Android Development] Daneshm90:
I found a solution for u :)

Remove android:sharedUserId="android.uid.shared" from androidmanifest.xml
[G1 Android Development] Mko979:
@xkape I really appreciate your willingness to help and was about to post the framework-res.apk but first I went ahead and tried to decompile and compile it using apk manager 4.9 and whala.....it worked. So somehow using the newer version of apk manager it causes the problem. I thought maybe its apktool 1.3.2 so switched it to apktool 1.3.1 but it still failed.

@Danemsh90 I think something in your new version of apk manager is conflicting with the compiling of the framework apk. BTW I tried both mine and a stock framework apk and they bothed worked on apk manager 4.9 but both failed on apk manager 5.0. Let me know what other information you might need to troubleshoot the problem.

Thanks again
[G1 Android Development] Daneshm90:
Only thing new in 5.0 is apk tool is 1.32....try replacing the one in 5.0 with that off 4.9 :)
[G1 Android Development] Mko979:
I thought I did I drag the old 1 from 4.9 into the 1 from 5. no but maybe I didn't do it right I'll try it again maybe this time I'll delete the 1 in 5.0 first and then bring the old in.
[G1 Android Development] Mko979:
yea, I tried switching to the apktool 1.3.1 from apk manager 4.9 and it still will not compile. Its completley stock with no themes. If you dont mind I will attack the framework-res.apk and maybe you can break it down and see where its messing up. But like I said it works fine with apk manager 4.9 so it seems like it might be something else.

Thanks for all your help
[G1 Android Development] xkape:
Dane.. I have solved my issue thanks to the master.. Xeudeous.

If you want to know what the issue is so you can upgrade your apk manager PM me... I will tell all.
[G1 Android Development] blahbl4hblah:
I was noticing in the compression levels that max is 9, what happens if I go over that?
[G1 Android Development] JustJAck1235:
So i have a random question..... I changed the GoogleVoice widget text color using APK manager.... and it workd great! But while signing in the spinner now looks weird~ Pics below to show what im talking about. the first one is the before and the seccond is the after. Does anyone know why that happened?
[G1 Android Development] Daneshm90:
Try using the keep method.
[G1 Android Development] JustJAck1235:
What is the Keep Method? I just learned how to use apk manager 5 mins ago~
[G1 Android Development] Daneshm90:
Compile. (11)

Say yes twice n follow through.

Then sign and install
[G1 Android Development] JustJAck1235:
Thank you.... That worked! Just compile the apk and pull out what i modded and put it into a stock apk... Worked like a charm!
[G1 Android Development] Daneshm90:
Yup that's essentially what the keep method does.

Decompiling/recompiling w/o edits does not ensure that original == recompiled.

Always a safe bet to restore everything you did not modify from original apk.
[G1 Android Development] JustJAck1235:
Gracias ! Is there a list of "mods" or a "HeX" list of what means what?? by anychance LOL
[G1 Android Development] user7618:
Ah, this would explain why on the keyboard I modded text color on the & key now says &amp. I'll remember that! Thanks! :D

-----

Sent from my CDMA Hero. I got some hot Gingerbread-on-Hero action here!
[G1 Android Development] Daneshm90:
Yea i think the "Is this a system app" throws ppl off.

Will modify it.
[G1 Android Development] user7618:
Question, though. Say I mod png files in the latinime.apk that is part of a theme zip, when I do the keep method, I would just chuck out the whole latinime.apk in the keep folder, right?

-----

Sent from my CDMA Hero. I got some hot Gingerbread-on-Hero action here!
[G1 Android Development] Devildog8791:
--------------------------------------------------------------------------

|Fri 03/11/2011 -- 19:06:38.14|

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

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)

- was unexpected at this time.

What does this message mean? I was trying to decompile an apk and the command window just closes.
[G1 Android Development] Daneshm90:
Hmm not sure, never come across it.

Do you get that every time or just once ?
[G1 Android Development] tom62015:
this is me

|Sat 03/12/2011 -- 12:36:44.50|

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

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)

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

operable program or batch file.

- was unexpected at this time.

trying to decompile the new leaked flash apk with option 9 or 10 set as project went fine then as soon as I hit enter after selecting any option the terminal closes recreated every time. Im running version 4.9 (just upgraded off OP an hour or so ago) with the folder placed on the desktop if there is a post number with a fix please refer me iI did some googleing but no dice. thank you this is really a great tool edit:just tried another apk with thee same result
[G1 Android Development] Mko979:
Hey guys, this is mike I was the one having problems compiling framework res.apk. Ok this is what I did to get it to work, I replaced the "other" file in apk manager 5.0 with that of 4.9 and copied over some other files that were in the new version. After I do this I now have everything working with the new script.

Thanks for all your help in figuring this out.
[G1 Android Development] intronauta:
@Daneshm90, wonderfull app, but is there any plan to update the linux version? There is many problems compiling framewrok-res.apk with actual version, no meta-inf, resources wrong,....

Anyway, have to work with framework-res.apk with virtualbox it's a minor problem :)
[G1 Android Development] Spz0:
Hello all.

I have searched this thread as much as I could but the sheer length is staggering.

Im having a problem with my pushed framework-res.apk fc'ing everything upon reboot.

Im editing a stock 2.2 ROM (already deodexed from Mfg -- went to manually deodex files and there were no odex files).

I am pulling the stock framework-res.apk, decompiling it, then immediately recompiling it (I had edited a bunch of xmls but started w/this fc problem, so I just de/re-compiled to see if apk mgr was suspect). Signed it (I've tried all signing options in apk mgr), then pushed it back to my phone -- rebooted and here come the fc's.

Im not sure what Im doing wrong here, but Im completely clueless now -- been mulling over this for hours.

The only other thing I have not tried was to decompile with dependencies.

Can anyone shed some insight to this?

Heres a fresh log.txt of a un/re-compile.
[G1 Android Development] Daneshm90:
Hehe actually a lot of wrongs :) Never sign

Do this :

1. Pull

2. Decompile

3. Compile (say yes, then yes again and follow through)

4. Push to phone.

Done
[G1 Android Development] Spz0:
hmm. Even if I edit xml files as well as change/add icons?

I remember not signing once, and it boot looped me.

o.0
[G1 Android Development] Daneshm90:
Yup even then.

For regular apks u can.

Regular = /data apks -> Sign

System = /system apks -> Don't Sign
[G1 Android Development] Spz0:
Ok. That was it. :) Thanks!!

Now another question before I go further:

Do I have to do the image editing via extracting the apk (option 1)? Or can I decompile it (option9), edit my xml files AND replace/add png's and .9.png's?
[G1 Android Development] Daneshm90:
For non .9 png editing do extract

For code/.9 png do decompile
[G1 Android Development] Spz0:
Wicked m8 :) Thanks for the clarification.

Working like a charm. :)
[G1 Android Development] mssmison:
My apologies. This script had nothing to do with my issues. After reading a little further I found that apktool was the issue.

Great work on this!
[G1 Android Development] traumahawk:
i have adb installed and apkmanager keeps telling me it isnt. i just checked and its there. how do i put it in "path"??
[G1 Android Development] KotDroid:
Nwmd ;) Already resolved.
[G1 Android Development] Ajthescot:
could any one help out here .

i had previously been creating themes for my old desire and running gingerbread roms.

i had to swap the resourses.arsc file inside apktool.jar to be able to decompile the systemui.apk .

now on the dhd im trying to do the same thing but i cant decompile it .

i have swapped the resourse file but still throwing out the same errors .

.

dont have no problems with none system apps .

: Decoding resources...

I: Loading resource table from file: C:\Users\Aj\apktool\framework\1.apk

W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x010300a3

Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x010300a3

at brut.androlib.res.data.ResPackage.getResSpec(Unknown Source)
[G1 Android Development] :
Very nice but pls update the linux version ;)
[G1 Android Development] wdl1908:
I second that.
[G1 Android Development] :
I third that.. sox binary is missing!! I can't do anything..

EDIT: I just did everything manually with apktool but I hope somebody can complete the linux-apkmanager by adding the "sox" binary..
[G1 Android Development] dully79:
Look at post 792 for sox.

Hope this helps :)
[G1 Android Development] dansta34:
Hey guys i am a real noob at this i have only experimented with this for a day!i have managed to decompile the HtcDialer.apk then edit the xml file in the styles folder then compile it then sign it then flash the apk to my phone but none of the changes i done are showing trying to change the color of the letters on the dialer buttons has anyone with experience no what i need to do? I had put y for system app opyion and done the option to add back files that had not been modded and deleted the resource.arsc.Where did i go wrong?Please help me just trying to learn how to edit xml files for the first time any help will seriously be appreciated!
[G1 Android Development] zelendel:
If I am not mistaken the last time I looked at the dialer apk for an HTC the letters on the dialer buttons were png files and not controled by the xml. But I could be wrong, been known to happen a time or two:D
[G1 Android Development] fernando sor:
I did that a while ago and it is a code change. The most sure fire way would be to change it in a hex edited program . If the color is green search for that color in resources.arsc then change it. It does take a little research to learn to hex edit but you don't have to decompile
[G1 Android Development] dansta34:
Thanks heaps for the reply guys i appreciate it!@zelendel yea its not png's mate!

@furnando sor love your work mate! You might be right but i had Oijkn who originally made the dialer with the blue letters in the dialer buttons who made carbon ara theme try help me through team viewer using apkmanager and he tried editing the xml's in the styles file man what a mission he had major dramas but because of the .9png's had to go back to stock .9png's end up getting as far as getting the incoming call keypad/phone.apk to show the blue letters but had to go on lunch break.That guy is incredible he is that fast i mist allot of what he was doing when i blinked lol.Let use no how he does the HtcDialer.apk when he gets time next.But i will look into that resource.arcs fernando sor
[G1 Android Development] fernando sor:
Good luck and thanks. Like I said its Been a while. I did it for a friend whose letters were green. Im on a Flight to San Diego but ill look at it tonight. Its not a difficult mod to do
[G1 Android Development] zelendel:
Thanks, like I said it has been a while sense I ripped apart an HTC system apk. Sorry.
[G1 Android Development] tommytomatoe:
This is a double post. I apologize for that.
[G1 Android Development] Daneshm90:
Do me a favour. Ensure all of this apk's traces are removed. I.e if u do pm list packages. No instances of its package is found.

Then restore the original apk in /system/app

Then modify and replace in /system/app

Post your log when pushing.
[G1 Android Development] tommytomatoe:
Thanks for the super fast response! Okay, there are no more instances of this package. So should I place it in system/app/ even if it originally belonged in data/app?
[G1 Android Development] fernando sor:
That shouldn't matter. You can make it a system app
[G1 Android Development] Daneshm90:
Making it a system app preserves the shared uid compared to putting it in /data which requires resigning and ur's will not match those associated with that uid.
[G1 Android Development] tommytomatoe:
That's what I thought. I wasn't sure where you heading..but it's clear now. Thanks. I'm doing so edits to htc_ime and it's a doozy. Let me try what you suggested now.

Edit: Okay. I made sure it was completely cleared from the phone. I pushed the stock, non-edited file into system/app/. Nothing happens. Then I push the modified version. Once again, nothing happens. I rebooted but no go. I ran the log, but as I pushed the app both times, nothing changes. Literally nothing. I've attached the stock and modded. Maybe this app needs a special htc key. I don't know. Don't spend too much time on it guys. The modded one fits a 4x5 workspace. I just changed the spanY.