yashsingh1/xdaforums huggingface dataset:
[Android Software Development] miksontije:
afther i install framework.apk and when i chose apk file form files meny,and try to decompile i have eror. program cant find that apk. but if i rename apk,change original name to any other,then program decompile it fine. why? i have w7/64
[Android Software Development] bovirus:
The file cannot have space in the filename....
[Android Software Development] Rom:
Hello,

i have a persistant problem, i would like to modify apk file (theme) for add a compatibility with an icon for my ROM so i have decompiling the original apk and modify the name of icon package, replace it with the package name of stock icon in my phone and replace the old name package with the new and the "id" memory adress with an other from other theme that full work on my phone..

After my changes, i try to recompile the apk but i have this error:

Anyone have an idea please ? :confused:

Thanks :good:
[Android Software Development] mathan7:
Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Mathan\Desktop\AndroidMultitool>cd C:\Users\Mathan\Desktop\AndroidMultitool\Program_Files

C:\Users\Mathan\Desktop\AndroidMultitool\Program_Files>apktool d C:\Users\Mathan\Desktop\AndroidMultitool\Files\way.apk -o C:\Users\Mathan\Desktop\AndroidMultitool\Decompiled_apk\way\

I: Using Apktool 2.0.0-Beta9 on way.apk

I: Loading resource table...

C:\Users\Mathan\Desktop\AndroidMultitool\Program_Files>Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -29

at java.lang.String.substring(Unknown Source)

at brut.androlib.res.decoder.StringBlock.outputStyleTag(StringBlock.java:204)

at brut.androlib.res.decoder.StringBlock.getHTML(StringBlock.java:182)

at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:219)

at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:174)

at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:162)

at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:128)

at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:103)

at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:81)

at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)

at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:604)

at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)

at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)

at brut.androlib.Androlib.getResTable(Androlib.java:49)

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

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

at brut.apktool.Main.main(Main.java:85)
[Android Software Development] vladmir:
Can I decompile/recompile framework-res.apk with this tool?
[Android Software Development] Rajeev:
Yes. U can
[Android Software Development] LasVegasRomeo:
So your not wanting to replace an icon but to add it into a theme? Did you add it into the XML?
[Android Software Development] Rom:
I want to replace the "ID" memory adress of icons in the theme, its possible ?
[Android Software Development] lacoursiere18:
What do you mean by "ID" memory address?

This not a common term..

Can you show us a screen shot of what it is your talking about..
[Android Software Development] Rom:
:)

Its in public folder in xml files, i will take screenshoot more later in the day :)
[Android Software Development] lacoursiere18:
Ok so you mean public ids.. so if want to replace icons/pngs you need to add them to the drawables folders.. change the ones in there or even add new ones.. but adding new ones required you to know how they are being used. You would have to search for what you are wanting to change.

Public ids are generated each time you decompile and recompile an app..they get added when something new is added, like a drawable for instance.

You can not/should no just go through publics and change them. This would result in a MAJOR mess.. the app would not compile until you changed every instance where that id is called.

Hope this helps you understand a little clearer ;)
[Android Software Development] Rom:
So, since I want to change 2 to begin, so I have to add the same input but what I must make for the ID ?

I recall that I only want to run two icons (icon for "Calls" and for the "Opera Browser") except that comparing with another thème with which these icons work, IDs (the second theme) are so different in end how do I go about the ID?

Thanks for your help :laugh::good:
[Android Software Development] krazie1:
Love this Tool, thanks man this is very useful
[Android Software Development] Rom:
[MENTION=5056266]lacoursiere18[/MENTION]: Can you answer to my questions please ? :cool:
[Android Software Development] Josehg:
If you are just replacing icons, they're is no need to touch their I'ds. Just replace their png's and all will be OK.

If you're adding new png's, when you compile the apk, the id's will be added automatically into the ids. xml. No need of change anything.
[Android Software Development] Rom:
The problem is that 2 icons (at minimal) won't work on phone (the theme package name is different that my package name in the phone) so how make working it ? :)
[Android Software Development] Josehg:
OK, Are you trying to modify a Xposed Theme or an apk?
[Android Software Development] Rom:
I want to modify an apk, if you have the solution you are welcome :laugh::good:
[Android Software Development] Josehg:
I'm trying to help but first I need to know what's the problem. You're talking about theme packages, no apk's.

What are you trying to modify?
[Android Software Development] Rom:
I will re-explain :p :

I have a theme that make for CM10.1 and me i am on CM10.2, the theme is Crystal2, after apply this theme many icons (Calls, Opera and others) won't to be show so do you know how modify the apk theme ?
[Android Software Development] Josehg:
Ok, it replaces the full apk's, or it's a vrtheme based theme.

Better, upload the theme and i'll take a look into it.
[Android Software Development] Rom:
Take :)

http://xdaforums.com/showthread.php?t=1951690
[Android Software Development] Atlas7:
Hi. Can someone please help with this? I try Vegas fix. but not working for me. Do I need Android SDK for use this tool??
[Android Software Development] lacoursiere18:
Looks to be a apk.. ok so there are some icons that are not working is that the problem..

If so find out which ones they are.. and why they are not wroking.. most likely the name will be different or the folder or xml they were originally in has moved or changed.
[Android Software Development] Rom:
I was already almost on that this would be mofications to do in the xml files against instructions, so I do not know, do you have any idea?
[Android Software Development] Josehg:
Ok, it´s like a Xposed Theme.

Then I need a few details.

The package of the apk or your rom, just to see if they match within the redirections.xml.

And Second the exact name of the icons your are trying to modify.
[Android Software Development] Rom:
The package name of the apk: com.darkdog.theme.crystal2

My ROM: http://xdaforums.com/showthread.php?t=2478972

And the icons that won't working:

Opera: https://play.google.com/store/apps/details?id=com.opera.browser

Calls (com.android.dialer)

Calculator (com.android.calculator2)

Youtube (com.google.android.youtube)

Apparently, these only this icons that won't work.. I have put the package name on my phone (with App Settings (xposed app)).
[Android Software Development] lacoursiere18:
Looking through the theme now.. I don't think it will have a icon for Opera unless otherwise stated.. A lot of themes do NOT include playstore apps..(Just saw it is included)

Also can you upload those apps that are not working for you so I can see their package name.. Thanks
[Android Software Development] Josehg:
All information needed is from your rom apk´s not from the crystal2.apk itself.

Let´s start with Calculator ( It only changes 5 png´s). If you have already decompiled it, I guess "com.android.calculator2" is the correct package, and it´s ok on the redirections.xml. If you haven´t decompiled it yet, please do it and comfirm this is the right package.

These are the 5 png´s for calculator on this theme.

Which of these 5 png´s are not changing? You must compare them with the original one´s in your rom apk.

ic_launcher_calculator

calculator_down_handle

calculator_down_handle_press

calculator_up_handle

calculator_up_handle_press

---------- Post added at 07:47 PM ---------- Previous post was at 07:23 PM ----------

But in the XML for opera (3 different apk´s, mini, beta...), it´s calling for "icon" in two of them and "ic_launcher" into the other. We´ll need to look into the Opera.apk to see which is the correct one.
[Android Software Development] lacoursiere18:
Exactly.. I'll let you help sense your on top of it already..no need for two dictators..
[Android Software Development] Rom:
[MENTION=5056266]lacoursiere18[/MENTION] [MENTION=4765626]Josehg[/MENTION]

OK, on the other hand what I have to make now? :p

And i have decompile the theme :cowboy:
[Android Software Development] Josehg:
Now you must decompile the calculator.apk, and check it´s package name.
[Android Software Development] Rom:
I can have package name of my calculator app with App Settings :P

You prefere that i decompile ? :p
[Android Software Development] Josehg:
No, if you can confirm that it´s name is "com.android.calculator2", that´s enough.

Once you applied the theme, which of the png´s (see previous post) are changing?, or none of them.
[Android Software Development] Rom:
Ok no problem, just i make it tomorrow :)
[Android Software Development] Josehg:
OK :good:
[Android Software Development] Rom:
I have decompiling Calculator app of my ROM and i have see that the name package is true:

com.android.calculator2

Not find in the xml:

calculator_down_handle

calculator_down_handle_press

calculator_up_handle

calculator_up_handle_press
[Android Software Development] Josehg:
What about the png's?

Are they the same as the list a made a few posts back?
[Android Software Development] Rom:
I have edit my answer, its this ?
[Android Software Development] Josehg:
No, they should be into drawables folders (from your calculator.apk)
[Android Software Development] Rom:
Ok but i don't find same words :(
[Android Software Development] Josehg:
I need more details. What png's have you found?

The png's from the list must match exactly with the png's into your calculator.apk.
[Android Software Development] Rom:
Not one, checks by yourself if you want:

https://www.mediafire.com/?v91yc1qxfhur29r
[Android Software Development] lacoursiere18:
That's why they don't work..lol bc they are named something else.. so searching for the same name is pointless..need to compare inages..
[Android Software Development] Josehg:
Ok, it will be later, not in the laptop now. I'll compare the png's and tell you the changes needed on Crystal theme.
[Android Software Development] Rom:
Hehe I was sure: D

Do you need another package names ? :cowboy:

Ok no problems :good:
[Android Software Development] Josehg:
Well, checked and as you said there is no coincidence between png´s on the theme and the calculator, so nothing will be changed except for the apk icon.

Now, if you still want to modify this apk, you can choose the icons you want to change into the calculator.apk, and the new icon png´s (that will be shown later once you applied the theme). Once you got it (choose one to start) I´ll show you the way to change the theme. It´s really easy once you know how to do it, so later you can modify any application.
[Android Software Development] Rom:
You can not imagine how I can not wait to find out the solution, there is only to see the number of theme that I could make them compatible: D

Anyway, I'm listening you :good: :laugh:
[Android Software Development] Josehg:
Ok, post here a screen-shot of the calculator.
[Android Software Development] Rom:
Heu... I don't want to replace it, i would like that the custom image (from theme) work :)
[Android Software Development] Josehg:
You mean the application icon only? Isn't it working?

It's the only image that matches
[Android Software Development] Rom:
What do you need more for the remanufacture chemains icons? :)
[Android Software Development] Josehg:
Sorry, but can't understand "chemains icons".

Anyway, to replace any icon I need:

1.- It's exact name in the original apk. (Also it's location folder in the apk, though most of them are into a drawables folder).

2.- The new png.

That's all
[Android Software Development] Rom:
About "chemains icons" => sorry :p => "icons directory"

"It's exact name in the original apk" => On the phone true ? :)

Again thank you for your help :cowboy:
[Android Software Development] Josehg:
Right, on the phone.
[Android Software Development] Rom:
I have already upload the folder of calculator decompilate app :)
[Android Software Development] Josehg:
Yes I know, I got it. But you must say me which image(s) you want to change, and i'll need also the new png(s) to add it into the Crystal theme apk.
[Android Software Development] Rom:
No new image to change, just directory of the main image of the Calculator :cool:
[Android Software Development] Josehg:
Ok, show me the icon of the calculator you have now (screen shot)
[Android Software Development] Rom:
Take, its the original calculator icon of my ROM :)
[Android Software Development] Josehg:
Ok,

Go to the decompiled Crystal2_v1.3.0.apk.

Open res/xml/com_android_calculator2.xml file.

And add this item.

<item name="mipmap/ic_launcher_calculator_light">@drawable/com_android_calculator2_ic_launcher_calculator</item>

Or simply add "_light" at line 3 of the xml file, so it looks like the previous line of code.

Compile the apk, push and install on your phone.
[Android Software Development] Rom:
I have make changes but i have this error at the step of compilation:
[Android Software Development] Atlas7:
Anyone?
[Android Software Development] Josehg:
Bad edit of the xml. Check line 5 for errors, like missing > at the end or similar, compare with the other lines from de file.

EDIT:

Wait a moment, the error is in line 5 of the public.xml. Did yo add the line, or modified the existing one.
[Android Software Development] Rom:
Sorry but i do not know what else I need to change..
[Android Software Development] bovirus:
Please make question just about the thread object (APndroid Multitool).

Any other question not realted Multitool (ex. ho to edit teh source coede) here is OT.
[Android Software Development] Josehg:
You are completely right, sorry. A simple question has degenerated in complete OT.
[Android Software Development] elxufas:
excellente, excellent, excellent, program.
[Android Software Development] Rom:
[MENTION=4765626]Josehg[/MENTION]: Can you answer to my MP please ? :D :angel:
[Android Software Development] Josehg:
MP answered a couple of times, but I can not see them in SENT ITEMS, will you please check your inbox?. I´m not sure if they are really sent or not.
[Android Software Development] Rom:
I have your answers , thank you :)
[Android Software Development] Rom:
@Moderators: can you delete this message please ?

Thanks.
[Android Software Development] hanspampel:
First it is a PM not MP

and 2nd, this thread isnt a theming tutorial. So clear your questions via pm or open an other thread.:rolleyes: It is very OT here!!!
[Android Software Development] skorpioneMM:
Any way to run this great app with apktool v1.5.2?

Tried to change the .jar for the 1.5.2 version but that doesn't work :S
[Android Software Development] Flextrick:
what's the problem? you should be able to replace it.
[Android Software Development] bovirus:
[MENTION=1212652]skop[/MENTION]rpèioneMM

I replace the apktool with 2.0.0.RC1 and now with the latest apktool-IbotPeaches and MMultuitool works fine.
[Android Software Development] Rom:
Hello,

i have a new problem, after a problem with my java install, i have re-install it, so i have install it:

- Java 7 Update 67 (64 bits) (i am on 64 bits OS)

- Java 8 Update 20

- Java SE Development Kit 7 Update 67 (64 bits)

I have add the directory of my jdk folder at the end of line (http://java-buddy.blogspot.fr/2012/01/set-path-for-jdk-7-on-windows-8.html?m=1)

After it, when i put java -version in my cmd i have an error message:

System can't found the file C:\ProgramData\Oracle\Java\javapath\java.exe

(I have no Java Folder in my ProgramData folder :( )

Anyone have a solution ?

Thanks :)

I have find how to fix my problem:

go to your "C:\ProgramData\Oracle\Java\javapath" (in explorer), you must recreate your 3 links, so delete and recreate new link for:

- java.exe

- javaw.exe

- javaws.exe

These 3 files are located in this folder:

C:\Program Files\Java\jre7\bin

=>jre7 depend of the version that you have install and be carefull if you are on 64 bits OS) ;)

If you want screenshoots or more better explain, tell me :)
[Android Software Development] sobri46:
Hi I use your apk multitool 3.0 complete with java installed to add some language files and strings on secsettings.apk for my s5 verizon 4.4.2

first I install the framework.apk and twframework.apk then decompile the settings.apk

after adding the language folder value I install the framework.apk and twframework.apk then compile the apk.

then I see that I should add the two files after compile which is android manifest.xml and meta folder . I added the two files to the secsettings.apk using 7 zip.

I upload a photo clearing what is inside the new secsetting.apk . it also has (classes.dex and resources.arsc) I dont know if I should delete them or not .

I check the log there is not any error when decompile and compile.

first time I replace the secsettings.apk in my mobile system without sign it and I replace it using root explorer after changing the permission.

I have done before using rootexplorer many times without any error

but today when I replace the secsettings.apk . the mobile stuck on verizon boot.

I restore my back up and then trying sign the secsetting.apk then replace it in my mobile system but again I got stuck.

can someone please help me how to solve this problem, I think there is something wrong in my procedure or the apk multi tool has a problem.
[Android Software Development] bovirus:
[MENTION=5202773]sobri46[/MENTION]

Please remove the quote from your post. Is unsefull.

Just post teh request and if you need just quote the paragraph (not the entiore post).

Thanks.
[Android Software Development] 3to4:
Thank you. I have been trying this tool from OP, but I had problems installing framework-res. (I use Windows XP, and I followed the instructions in post 680 to set up environmental variables, etc.)

Then, I arrived at this post. The AMT-XP-batch allowed me to install framework-res, but how can I install twframework-res? Can you help?
[Android Software Development] bovirus:
If you like I will make an addition to XP batch to install tw-framework.res
[Android Software Development] 3to4:
Yes, please. I would like to try to use this tool. Thank you.
[Android Software Development] TheNathranielB:
First of all, thank you for the developer who made this awesome tool.

I really appreciate that but I encountered a problem when I compiling framework-res.apk.

Here's what the log said:

W: Could not find sources
aapt: warning: string 'Roaming_Auto_Dialing' has no default translation in C:\AndroidMultitool\Decompiled_apk\framework-res\res; found:
ar az bg ca cs da de el en_PH es_ES es_US et eu fa fi fr fr_CA ga gl hr hu hy in is it iw ja ka kk ko lt lv mk ms nb nl pl pt_BR pt_PT ro ru sk sl sr sv th tr uk ur uz vi zh_CN zh_HK zh_SG zh_TW

Hoping for your reply. Thanks. :good:
[Android Software Development] Flextrick:
Hey, this is a warning.. just ignore it and continue work. :)
[Android Software Development] TheNathranielB:
OK, thanks for the reply. I'm a newbie for this kind of things. :D :good:
[Android Software Development] Mythdroid:
Hey i need help :rolleyes: i get Path not specified error on recompiling while i can decompile easily :rolleyes: plss help
[Android Software Development] bovirus:
Please edit your post and remove the quote of first post.

It's unsefull. Your post is just one line.

The problem is already discussed. Pelase read first post and last posts.
[Android Software Development] Cookie Ninja:
Sorry wrong post. DELETED!

Dead Cookies leave no trails...
[Android Software Development] Morningstar:
I've been using this tool on Windows 7 for ages, and it's always worked flawlessly. Now I'm trying to use it on an old laptop running Windows XP, and I'm running into some strange issues. I've got the Java SDK Eclipse, .NET Framework, and the powerpacks all installed, and all work fine. I downloaded the latest Android Multitool zip, and have tried placing just the AndroidMultitool folder under C:\ and the AndroidMultitool_3.5.2, and either way the problem persists....

What's happening, is I go to install my Framework-Res, it runs for what seems like about the right amount of time, and finishes, with the last line of the log being ''The system cannot find the path specified.'' That's it. So, assuming it installed, I try to decompile an apk (doesn't matter what apk, as I've tried several), and again it runs for about the right amount of time, the log shows everything just as it should be, except the last line is again ''The system cannot find the path specified.''

So I look in the Decompiled_apk folder, and sure enough, it's empty, but it's creating a new Decompiled_apk folder inside the Files folder, and it seems like the apks are decompiling just fine into there, though I haven't tried recompiling from that new Decompiled_apk folder yet....

Any idea what the issue might be?

Edit to add: I just tried recompiling an apk from the new ...\Files\Decompiled_apk folder, and it finishes with the following log:

"The system cannot find the path specified.

Cleaning up unclosed ZipFile for archive C:\DOCUME~1\Admin\LOCALS~1\Temp\APKTOOL7942675922214152711.tmp

The system cannot find the path specified.

The system cannot find the path specified."

So I look, and nothing in the Compiled_apk folder, but in Files\Decompiled_apk\<apk name>\ there's two new folders, 'build' and 'dist'. The 'dist' folder contains the recompiled apk, and I pushed it to my phone, and it seems to work (tested with SystemUI.apk), though I just decompiled and recompiled it without making any changes.

I should mention I've tried this with the apktool.jar/apktool.bat that came bundled with the tool, and with my own apktool.jar/.bat and either way the result is the same.

As I said, I've used this tool on Windows 7 for a long time, and it always put everything in the expected, pre-designated folders, so is this just how it works on XP? Should I even be concerned, since ultimately it appears to be working despite the odd folders?
[Android Software Development] D-dy:
Someone.. Please reupload old version v3.4

Thx
[Android Software Development] bovirus:
I didn't understand why you need version 3.4.

Version 3.5.2 works fine.
[Android Software Development] :
When I compile my apk as it says in guide I have to copy androidmanifest.XML and the META-INF from old apk to new one. I can't open the old or new apks. I'm stuck on this part. Please help :(
[Android Software Development] porkyhontas:
Open the apk like a zip file with win rar or 7 Zip and then copy your META INF and Android Manifest from your old apk to the new one.

Sent from my Wicked SGS3 using AnaKonda Tapatalk
[Android Software Development] :
OK cool ty

---------- Post added at 05:48 PM ---------- Previous post was at 05:41 PM ----------

OK so I moved the files and signed it. Can I install now ? (I'm trying to clone apps)
[Android Software Development] porkyhontas:
You're signed now.

Sent from my Wicked SGS3 using AnaKonda Tapatalk
[Android Software Development] :
Yes I signed. So now I can clone now ?
[Android Software Development] porkyhontas:
I'm unsure of what you mean by "clone." You decompile an app, made whatever changes you wanted, recompiled and then signed the new apk with your changes to it. Now you should be able to install your new app.

Sent from my Wicked SGS3 using AnaKonda Tapatalk