yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] auberry05:
Im trying to mod the /system/framework/framework-res.apk/res/xml/eri.xml to change the carriers name to Cricket Wireless on Htc Droid Incredible 2 running ICS/CM9 rom.Well after i change the xml file and complie the apk its 100 kb less then the original Apk...And when i go to add it to the system files it bootloops and sits there not booting on.
[G1 Android Development] npcd92:
When I finish my editing and compiled it again then zip it to .apk, i tried to install but i had 'parse error'. Anybody helps? :(
[G1 Android Development] stanlin salu:
Brothers, when I open the apk manager, I get adb not found, brothers how to get adb??
[G1 Android Development] Brut.all:
Ahh, smart one ;-)
[G1 Android Development] tnpapadakos:
this utility rules! thanx again
[G1 Android Development] dsMA:
need help "error: can not find framework resources..."

Hey Guys

I am trying to decomplie Rosie.apk. I have placed the unzipped Rosie.apk file in the "for-modding" folder. When I run the script and chose option 9 the script reports the following:

Decompiling Apk

Can't find framework resournces for package of id: 2. You must install proper framework files, see project website for more info.

An Error Occured, Please Check The Log <option 20​

I am including the log file too.

Note:

1. path and classpath variables for java are set properly

2. i added to the path variable a path to the adb command

c:\android-sdk-windows\tools​

3. the script is located in the following folder

c:\Users\x\Downloads\android_stuff\phone_dev\apk manager 4.7​
[G1 Android Development] Daneshm90:
Ah, thats wht i was gonna incorporate into the next update. Basically, as i understood from Brut's google-code page, all builds have framework dependencies. He has embedded stock dependencies into his tool hence we dont need to include framework-res, but when it comes to htc's sense ui, u gotta include com.htc.resources.apk.

So this is wht u gotta do to make it work. (For now w/o apk manager :()

apktool if <drag com.htc.resources.apk here>
apktool d -f <drag rosie.apk here>
Make ur modifications
apktool b <drag Rosie folder here>
[G1 Android Development] Brut.all:
After first step you should be able to use Apk Manager normally, I think.
[G1 Android Development] dsMA:
Not to sound dumb but I don't really understand what you are telling me to do in the above :-( Could you please elaborate more?
[G1 Android Development] Daneshm90:
Ah k cool. Thnx. Gonna find an interesting way to incorporate this into apk manager.

Those are instructions. So do them one by one. Heres an example of how i would do it on my pc

Open command prompt

cd "C:\Users\Danesh\Android\Apk Manager 4.0"

other\apktool.jar if place-apk-here-for-modding\com.htc.resources.apk

other\apktool.jar d place-apk-here-for-modding\Rosie.apk out

Make any changes u want to inside the out folder

Run apk manager

Select compile.

If u cant follow, wait till i incorporate this into apk manager.
[G1 Android Development] dsMA:
I look forward to the upcoming update :-)

Thanks for providing the example steps. That was all I needed. When I read it the first time I didn't realize those were commands. I saw the stuff in brackets as was like I am suppose to drag rosie where lol

I am curious though as to what the apktool.jar if ... command does. I only did the apktool.jar d place-apk-here-for-modding\Rosie.apk out command and it was able to decomplie fine. If I wanted to decompile com.htc.resournces.apk wouldn't I do the same as above just replace \Rosie.apk with \com.htc.resources.apk
[G1 Android Development] Daneshm90:
Wait so now it decompiles fine w/o doing the if statement ? Did u do the if statement even once ? cuz if u did it even once its effect will carry on to the next time i believe. Anyway, the if statement as i see it is when an apk has dependencies from another file. So com.htc.resources has something needed to decompile/compile Rosie.apk correctly. If u've ever deodexed, its similar to how u specify classpaths in order to deodex as sometimes apks use shared classes and u need all of them in order to do anything.

*As for the dragging thing, the cool thing about consoles are that if u drag a file from lets say C:\a\b\c.apk to the console, itll automatically type its path for u.

So if u do

adb push <drag c.apk here> /system/app

it'll do

adb push C:\a\b\c.apk /system/app
[G1 Android Development] dsMA:
I did:

aptool.jar if place-apk-here-for-modding\Rosie.apk​

But when I did that I got an error saying "The system cannot find the path specified.

When I typed in the other command it created the files in out and I was able to read the xml files just fine. Now some of them xml files have numbers after the @ symbol in place of variable names, now I don't know if that is suppose to be like that or if maybe I needed to do the first step properly for those numbers to resolve correctly.
[G1 Android Development] Daneshm90:
K hold up. Ur mixing/matching all the commands :D

Im uploading 4.8 which should take care of this. (Option 10). And using brut.all's commands, i inserted a check to see whether the apk u said is the dependee is the right one.
[G1 Android Development] Daneshm90:
K i uploaded 4.8. Try it out and let me know if u have any issues now.

Basically this is wht i did and it works fine.

Place Rosie.apk in modding folder

Option 10.

Drag com.htc.resources.apk in the window

Press enter

Make any changes u want

Compile

Good luck.
[G1 Android Development] jdm627:
Edit

Sorry very noob and stupid for thinks like this.

What means with: Edit files inside the out folder

I installed Java and SDK I supposed the ADB it's included and tried with one apk but nothing happen.

I drag the apk to the script and only flashed a screen but nothing happen!
[G1 Android Development] Daneshm90:
Ok. the purpose of this script is to decompile apks so u can edit its contents.

Watch the video in the OP i posted. Also refer to this video i previously posted. Those should guide u as to how the script works, hopefully.

[YOUTUBE]<<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/yus2eMvA760&hl=en_US&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/yus2eMvA760&hl=en_US&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>[/YOUTUBE]

As for the dragging into the script. I hope u didnt drag the apk into the script when it was running, u should drag it to its icon, not the window. Also is ur device connected to ur pc when u are doing this ?
[G1 Android Development] jdm627:
Thank you for your help I will se the video and I dragged it to the icon.

Yes, I conected my device. It will be in regular or in USB mode?
[G1 Android Development] Brut.all:
http://code.google.com/p/android-apktool/wiki/FrameworkFiles

"apktool" or "apktool.bat", not "apktool.jar" :-)

When apktool can't decode resources in XML files, then it throws warnings, but decodes these files in similar way as AXMLPrinter - without attributes decoding, etc. After that you could open XML files, but you can't rebuild apk file.
[G1 Android Development] Daneshm90:
Wait, what ? :confused:

this is how i implemented it in apk manager. Its wrong ? its working though. Cuz i dont understand how apktool.bat if <something> is any different than wht im doing cuz ur batch file just does java -jar apktool.jar with a bunch of arguments.

cd other
DEL /Q "../place-apk-here-for-modding/repackaged.apk"
DEL /Q "../place-apk-here-for-modding/repackaged-signed.apk"
DEL /Q "../place-apk-here-for-modding/repackaged-unsigned.apk"
rmdir /S /Q "../out"
:temr
echo Drag the dependee apk in this window or type its path
echo Example to decompile Rosie.apk, drag com.htc.resources.apk in this window
set /P INPUT=Type input: %=%
java -jar apktool.jar if %INPUT%
if NOT EXIST %userprofile%\apktool\framework\2.apk (
echo.
echo "Sorry thats not the dependee apk, try again"
goto temr
)
echo Decompiling Apk
java -Xmx%heapy%m -jar apktool.jar d ../place-apk-here-for-modding/*.apk ../out
if errorlevel 1 (
echo "An Error Occured, Please Check The Log (option 21)"
PAUSE
)
cd ..
goto restart
[G1 Android Development] Daneshm90:
Doesnt matter, either way it should work.

Ok try this, go in command prompt and do

adb install anything.apk (when i say anything, i mean use a sample apk to test. U cud even drag in a apk into the window)

does that work for u ? if it doesnt let me know the error.
[G1 Android Development] Brut.all:
No. I meant jdm627 ran it as "apktool.jar" instead of "java -jar apktool.jar". And this is the reason, why he got "The system cannot find the path specified.".

But now I see I was probably wrong, because then he should get "Command not found" or something like that.
[G1 Android Development] Daneshm90:
Yea, i need to play around with it some more. I assume when u do <something>.jar windows i smart enough to add the java -jar before it.

So when i do apktool.jar d <something.apk> im getting the same results as

when i do java -jar apktool.jar d <something.apk>

Only difference i notice is i dont get the output i normally expect, such as

decompiling...loading resources....
[G1 Android Development] Ajthescot:
You need to set Adb into your class paths ,.

Right click my computer .

properties

Environment variables

Advanced options

Edit path

add the directory of your SDK platform tools folder to the end of the path, separated with ;
[G1 Android Development] stanlin salu:
After taking properties, where wil I find environment variables option?
[G1 Android Development] Ajthescot:
https://www.dropbox.com/s/t64oxuxqh6of14j/Untitled.mp4
[G1 Android Development] 640k:
******* links aren't working for me in any browser. getting "enable cookie" errors.
[G1 Android Development] kendallc123:
Same here. Any working links?
[G1 Android Development] Ajthescot:
http://virtuous-ten-studio.com

Check out that .it's by far the best tool out there .
[G1 Android Development] santacruzdz:
Have you found any solution for decompiling yet? I have the same problem decompiling Jelly bean system apk on HTC DNA. anyone could help? Im using apk manager 5.0
[G1 Android Development] stanlin salu:
NOPE !
[G1 Android Development] santacruzdz:
Does it has something to do with the "size" xxhdpi? I get errors decompiling the com.htc.ressources.apk but I can decompile all others..

hmmm htc sense sucks...always hard to mod it..
[G1 Android Development] santacruzdz:
PLEASE anyone was able to DECOMPILE the resources.apk of htc sense 4.1 with apktool????
[G1 Android Development] V!KR@M:
I'm just trying to decompile the homerun battle3d(tried 1.7.6, 1.8.0, 1.6.4). But it doesn't decompile. As soon as i press 9(decompile) and enter, the window just closes. Can someone guide me? Using the apk manager 5.0.2

Edit:

log says this

java version "1.6.0_31"
Java(TM) SE Runtime Environment (build 1.6.0_31-b05)
Java HotSpot(TM) Client VM (build 20.6-b01, mixed mode, sharing)
Battle was unexpected at this time.
[G1 Android Development] FlorisNL:
Im having problems while decompiling Gmail.apk.. I want to use apkmanager to change the icon of the gmail app. Since it doesnt work by just dragging the modified icon file to the right folder I tried this.. anyone got an alternative?

log:

java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
Could Not Find C:\Users\Floris\Desktop\ApkManage\place-apk-here-for-modding\../p
lace-apk-here-for-modding/signedcom.google.android.gm-1_copy_1.apk
Could Not Find C:\Users\Floris\Desktop\ApkManage\place-apk-here-for-modding\../p
lace-apk-here-for-modding/unsignedcom.google.android.gm-1_copy_1.apk
I: Baksmaling...
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -17FD0000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR0
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x7f0a0019 integer/folder_list_weight, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
[G1 Android Development] jakTomas:
when i choose the project nth happens ,, why is that ?

i choose 22-set current project , and then i choose the apk file

and then nth happen
[G1 Android Development] Nbsss:
--------------------------------------------------------------------------

|Wed 02/01/2013 -- 17:34:42.35|

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

java version "1.7.0_02"

Java(TM) SE Runtime Environment (build 1.7.0_02-b13)

Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

Could Not Find C:\Users\Mate\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/signedde.devisnik.android.mine-1.apk

Could Not Find C:\Users\Mate\Apk_Manager_5.0.2\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedde.devisnik.android.mine-1.apk

I: Baksmaling...

I: Loading resource table...

I: Loaded.

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

W: Config flags size > 32. Exceeding bytes: 0000D002.

W: Invalid config flags detected: dimen-v13-ERR0

W: Config flags size > 32. Exceeding bytes: -3FFD0000.

W: Invalid config flags detected: dimen-v13-ERR1

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

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

W: Config flags size > 32. Exceeding bytes: 0000D002.

W: Invalid config flags detected: dimen-v13-ERR2

W: Config flags size > 32. Exceeding bytes: -3FFD0000.

W: Invalid config flags detected: dimen-v13-ERR3

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

Exception in thread "main" java.lang.NullPointerException

at java.io.Writer.write(Unknown Source)

at brut.androlib.res.util.ExtMXSerializer.writeAttributeValue(ExtMXSerializer.java:38)

at org.xmlpull.mxp1_serializer.MXSerializer.attribute(MXSerializer.java:673)

at org.xmlpull.v1.wrapper.classic.XmlSerializerDelegate.attribute(XmlSerializerDelegate.java:106)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)

at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)

at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)

at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)

at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)

at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)

at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)

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

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

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

Help please!! Thanks :)
[G1 Android Development] onebluemidnight:
Reply To Thread

Is there a clear documentation/instruction regarding this software??
[G1 Android Development] xxsicknessxx:
the download won't unzip am I doing something wrong it says errors and only half uninstalles
[G1 Android Development] LBTaylor1984:
please choose a project to work on (option #23)

Option 23 is is a log with nothing in it.

I have no idea what this program is going on about, I just want to edit a few images :(
[G1 Android Development] Ajthescot:
http://xdaforums.com/showthread.php?t=1619473

Try this tool
[G1 Android Development] ernadr:
Can somebody help me, I got this error when I want to signed moded apk.

'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)
java.io.FileNotFoundException: ..\place-apk-here-for-modding\unsignedunsignedDCikonZTheme-14.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:214)
at java.util.zip.ZipFile.<init>(ZipFile.java:144)
at java.util.jar.JarFile.<init>(JarFile.java:153)
at java.util.jar.JarFile.<init>(JarFile.java:132)
at com.android.signapk.SignApk.main(SignApk.java:454)
Could Not Find C:\Documents and Settings\User\Desktop\apk_manager_5.1_SNAPSHOT_windows\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedunsignedDCikonZTheme-14.apk
[G1 Android Development] officiallyme:
AW: Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)

ok, newest apk manager manages to decompile and re-compile "chatON" but chatON will not install or function if copied to /data/app/

decompiled it as a non-system apk, compiled it using option "2" and then signed it.

any ideas what is wrong?

i was unable to compile it until I updated apk manager but i cannot remember which version i was running before.

is there maybe still a bug in apk manager that prevents "chatON" from being properly decompiled or compiled or signed?

chatON is an app like whatsapp, googletalk, facebook messenger etc. and i am trying to theme it.

hope someone can help me out :)

edit:

when i try to install the unedited recompiled version it says it cannot install because there is another version installed but with conflicting signature.

is there maybe something wrong with the signing process?
[G1 Android Development] officiallyme:
getting the following error when trying to decompile the secMms.apk from sammy jb lsd stock rom:

any ideas anyone?
[G1 Android Development] h311sdr0id:
I don't mean to be "hijacking" anyone's thread, but the last OP update was some time ago. I would also agree that the Virtuous Tool is a great way to go. I purchased the pro version, and it is one of my favorite tools I own. I don't know any other tools that compare. It is the only reason I use Windows. It would be nice if they had a Linux version, but if I have to use Windows just to use this tool, I am still happy. Check it out!
[G1 Android Development] NunoPitbull:
Hey guys, im new in here, and I didnt find the guide quite clear at all. Since it was my first time I have no idea what i did. I seem to sucessfully installed framworks and decompiled it, edit the SecMms.apk -> res/xml/mms_config.xml i edit that i needed and then to recompile and apply it to a ODEX ROM(stock jellybean) ,i have NO IDEA on how to do it.

Also this step:

STEP 2

Once your done enabling the bools, now you have to go into:

Quote:

smali/com/android/mms/ui/MessagingPreferenceActivity.smali

Now open up "MessagingPreferenceActivity.smali" with your notepad++ for editing.

For this part of the guide what i have highlighted in "GREEN" text is what you have to find using Notepad++ which all should be almost towards the bottom of the file, So what you see in "RED" is the line you have to remove/delete completely which is the "invoke-direct" line which has "removePreference" in it:

I cant find it when decompiled the app.

Anyone can help me out and loose 10minutes of their time pls?:)
[G1 Android Development] raziel23x:
This project has been dead for nearly 3 years and has been completely rewritten from the ground up and is located here

http://xdaforums.com/showthread.php?t=1310151
[G1 Android Development] S♥NE:
Thanks

Nice work
[G1 Android Development] sourcex:
even i am getting the Same Error with System Ui.apk and framework-res.apk !!

Any help?
[G1 Android Development] raziel23x:
this project been dead for 3 years now and no longer even support anything beyond froyo 2.1
[G1 Android Development] sourcex:
i had the Same problem while Compiling the modded whatsapp.apk

while compiling it gives errors !!
[G1 Android Development] raziel23x:
THIS PROJECT HAS BEEN DEAD FOR A FEW YEAR NOW BEEN REPLACED BY APK MULTI-TOOLS SINCE THIS SCRIPT WRITER HAS LONG SINCE ABANDONED THIS AND HAS BEEN REWRITEN FROM THE GROWND UP THE NEW THREAD AND DOWNLOADS CAN BE FOUND HERE
[G1 Android Development] justinfavila:
cant decompile settings.apk

i search many time in google about this error.

i want to decompile settings.apk but error occured.

i have frame-res.apk but but its not seem to be work plzz help me thanks
[G1 Android Development] raziel23x:
Please read post above your post
[G1 Android Development] mhashim6:
Download page says :

This Account Has Been Suspended :confused:
[G1 Android Development] raziel23x:
Fixed
[G1 Android Development] ibshar:
Download Link is dead... Gives this message:

This Account Has Been Suspended
[G1 Android Development] Hakim Rahman:
links in this post are still working! check....http://xdaforums.com/showpost.php?p=25213889&postcount=2495
[G1 Android Development] ibshar:
Thanks but i got it from here: http://xdaforums.com/showthread.php?t=1310151
[G1 Android Development] dany_danay:
I know its very old, but how can i solve this?
[G1 Android Development] iamteachme:
hey guys i am wondering SecPhone.apk ifi just extract it and zip it it goes from 18.7mb to 13.3 mb why is that . no editing just extract and rezip. also should SecPhone apk be signed ? thanks
[G1 Android Development] kentgoh88:
i try to modify candy crush saga by just editing file in assets/res/levels,so i just go through step 1,3,4.after that can install on my phone but after loading a while the app quit itself.any steps i missed make such problem occurred?
[G1 Android Development] AayushPathak:
The links on the website don't work. They're all redirected from ******* (which also isn't working nowadays). :(