[Q] Can I add lang to an application? - Android Software Development

Hi
How I can add lang to an application and What is the tool
I use an apkmanager 4.9
but it didn't do great work with app like whatsapp that has a 3.8 MB
What is the right to do with that?!
I have the app files but I can't Building apk file!!!
Any help?! by the way I'm new to Android world and I just gate my great Galaxy s 2
Thanks.

Import java.lang;
I kid... what are you talking about?
From something awesome

killersnowman said:
Import java.lang;
I kid... what are you talking about?
From something awesome
Click to expand...
Click to collapse
lool
I talk about edit lang in an app and then building up apk file for it
it's something wanted to add lang without been supported from app Author.
just that simple!

Look for strings.xml.

yes but how to re build the apk files?!
I have every thing I want except that!!

Well, I only know this approach:
1 - recover the source code from the apk; it should be a lot of sw doing it. Hope the code is not cripted;
2 - import the project in Eclipse;
3 - find out the strings.xml
4 - change the strings in your language; I suggest you to create a new folder to put a copy of the strings.xml file that will become your language file so the new strings.xml will be used with your own language without delete the old one;
5 - rebuild the app
6 - you could find the new .apk in the bin folder of the project
If you want to do all of that using only the phone, without a PC, I'm not able to help you sorry.

Related

[Q] How to decompile/recompile binary XML from .apk file?

I have an .apk file which containing the new HTC keyboard, and I tried to translate the Russian layout to Hebrew so I'll be able to use any ROM which use this keyboard (I can't find the original Android SK on the ROM).
There is no problem to find the Russian XML files, but it's all compiled to a strange binary XML.. can someone help me with it? is there any way to decompile it to a normal XML again and then recompile it so i'll be able to override the original on my system?
thanks in advance
Avi
You would have to use a hex editor. More helpful information may be found here:
http://forum.xda-developers.com/showthread.php?t=479019
AXMLPrinter2:
http://forum.xda-developers.com/showthread.php?t=514412
Stericson's hex editing tutorial:
http://forum.xda-developers.com/showthread.php?t=479019
Thanks you two
I wish we'll have an app in the future (maybe i'll write one ) that can easly decompile/recompile - just like we have for mode9 files etc.
A problem, I can only decode it to a normal txt file - but I can't recode it back to that binary xml format...
How can I do that?
avimak said:
A problem, I can only decode it to a normal txt file - but I can't recode it back to that binary xml format...
How can I do that?
Click to expand...
Click to collapse
There's a converter in the Android SDK.
jashsu said:
There's a converter in the Android SDK.
Click to expand...
Click to collapse
Which one? there's a lot of them there...
avimak said:
Which one? there's a lot of them there...
Click to expand...
Click to collapse
"aapt dump xmltree" will show the contents but not in actual xml.
cyanogen said:
"aapt dump xmltree" will show the contents but not in actual xml.
Click to expand...
Click to collapse
Hi man, I'm already using AXMLPrinter2.jar to decode the xml file, that's not the problem. I'm looking for a way to recode it back to binary - and jashsu says it's in the SDK, but we have there about 100 different tools so I asked him which one is to recode a simply xml to binary xml that's fits Android
do you know?
Hey Avi,
why don't you use the hebrew keyboard that already published in iandroid.co.il forums?
zrubi said:
Hey Avi,
why don't you use the hebrew keyboard that already published in iandroid.co.il forums?
Click to expand...
Click to collapse
Well, first of all I'm using it now and it's great.. but still the HTC official keyboard looks bigger and wider for me, plus there is a space there (in the Russian layout) for question mark etc...

New To theming

I am new to theming, and was just going to reach a kind hand out for some help... i can get into the framework and all but just missing some steps on how to put it all back together. any help would be appreciated, and if i am posting in the wrong location feel free to delete or move the post. thank you
Use winrar to open the framework-Res and mess with those files then just put them back in framework-Res with winrar.
Rel500 has a great themeing guide. Thats how I got started check it out and if you have any questions ill be glad to answer it for you
Hope that helped.....
Sent from my SGH-T959 using XDA App
Search for a program called "Apk Manager"
Play around with your frameworks...
Soon you'll get the hang of it...and don't be afraid to ask around
Great thread. I'm in the exact same position. Looking forward to creating MY theme.
Anyone know what program to use to view/edit the xml files?
buru898 said:
Anyone know what program to use to view/edit the xml files?
Click to expand...
Click to collapse
the apk must be de-compiled first (use Apk Manager for that)...then use Notepad++ to view/edit xml's..the re-compile using Apk Manager
Im still fairly new to the theming scene, but ive found a good place to start is by porting a theme, find a theme you like on another theme and port it to the vibrant teaches you quite a bit about theming minus creating images from scratch.
some essential apps i have found are:
gimp (for image editing)
apk manager
notepad++
of course android sdk for draw9patch and other android utilities
other programs i may be forgetting.
Ive heard cs5 and corel are really good for creating icons and the like but im a college student and dont have the cash for those kinda programs
shreddintyres said:
Im still fairly new to the theming scene, but ive found a good place to start is by porting a theme, find a theme you like on another theme and port it to the vibrant teaches you quite a bit about theming minus creating images from scratch.
some essential apps i have found are:
gimp (for image editing)
apk manager
notepad++
of course android sdk for draw9patch and other android utilities
other programs i may be forgetting.
Ive heard cs5 and corel are really good for creating icons and the like but im a college student and dont have the cash for those kinda programs
Click to expand...
Click to collapse
Neither do i
when using notepad++ I get alot of jiberish, how do I edit when the things the guides on xda tell you to search for arent in the xml code?
sorry about duplicate post but heres a pic
aamir123 said:
when using notepad++ I get alot of jiberish, how do I edit when the things the guides on xda tell you to search for arent in the xml code?
Click to expand...
Click to collapse
You need to decompile the apk using Apkmanager or apktool in order to view the xml in a readable format.
Ginger Clones of the World Unite!!! via the XDA App
aamir123 said:
when using notepad++ I get alot of jiberish, how do I edit when the things the guides on xda tell you to search for arent in the xml code?
Click to expand...
Click to collapse
You have to decompile the apk to edit the xmls.
Sent from my SGH-T959 using XDA Premium App

[Q] rebuild .apk after using dex2jar and jd-gui

Hello,
I'm trying to learn how to edit .apk files,
So after a bit of reading I got dex2jar working, and now I can see the actual code with jd-gui.
1. How can I edit the classes that are in jd-gui?
2. How can I repack everything to a .apk file?
Thanks.
I would suggest you learn to do basic stuff with the android ask, any questions pm me and ill be glad to help. Does dex2jar realty work, think I might take a look at that.
leoon said:
Hello,
I'm trying to learn how to edit .apk files,
So after a bit of reading I got dex2jar working, and now I can see the actual code with jd-gui.
1. How can I edit the classes that are in jd-gui?
2. How can I repack everything to a .apk file?
Thanks.
Click to expand...
Click to collapse
That's impossible. Only reading, no reassembling. For editing you need to learn Smali.
Sent from my GT-I9100 using XDA App

Is There Any Windows app to decompile APK files ?

Is There Any Windows app to decompile APK files ?
apktool, apkmanager.
I think just renaming the file extension from .apk to .zip will do it for you.
1. Wrong section to post this. There is a Q/A section for a reason
2. Depends on level of modifying you want done
a) Image editing (unzip/rezip)
b) Xml/smali editing (smali/baksmali/apktool/apkmanager)
c) Read "close to original" java code (dex2jar -> jd-gui)
i need to find ads code from a app and remove it
dadyal said:
i need to find ads code from a app and remove it
Click to expand...
Click to collapse
That's not really good for the developer considering quite often its his only source of mobile income and only motivation to keep improving the application.
Anyway, there is already an app that does so called Adfree i believe.
app is of my own website news feed but person who made this put a admob ads on the end of it and i need to repalce it with my own as i am going to upload it to market
ur chance do that almost 0%, forget it, get the original source code
ur questions tell us you are not pro coder, only waste ur time
i need a code example of ad mob ads

Creating a modded apk

Hello everyone.
I'm trying to start to make some mods in some applications but I'm not sure where to start, mainly because i'm in Linux.
For Windows I know about dnSpy which allow us to decompile, edit, compile etc etc apk files!
Is there any applications for Linux to do the same job?
HorusEyE said:
Hello everyone.
I'm trying to start to make some mods in some applications but I'm not sure where to start, mainly because i'm in Linux.
For Windows I know about dnSpy which allow us to decompile, edit, compile etc etc apk files!
Is there any applications for Linux to do the same job?
Click to expand...
Click to collapse
APK Studio :good:
guitardedhero said:
APK Studio :good:
Click to expand...
Click to collapse
Ok, I have already that application installed, but it keeps telling me that I should have some 3rd party applications in my "vendor" folder. What applications are those? I already tried to copy into that folde "adb" and also the applications that comes with APK Tool, but it still shows the same warning. And I cannot edit dll modules with APK Studio as I can with dnSpy!
HorusEyE said:
Ok, I have already that application installed, but it keeps telling me that I should have some 3rd party applications in my "vendor" folder. What applications are those? I already tried to copy into that folde "adb" and also the applications that comes with APK Tool, but it still shows the same warning. And I cannot edit dll modules with APK Studio as I can with dnSpy!
Click to expand...
Click to collapse
I use apktool and smali/baksmali...no studio needed. It is also a good idea to have old and new versions of smali/baksmali (I use 1.3.3 and 2.1.3) because some mods you download the smali files will be in old code format. So I smali them into classes.dex with the 1.3.3 and then baksmali with 2.1.3 to convert old code to new before merging with your apk.
Sent from my SM-T210 using Tapatalk
RealWelder said:
I use apktool and smali/baksmali...no studio needed. It is also a good idea to have old and new versions of smali/baksmali (I use 1.3.3 and 2.1.3) because some mods you download the smali files will be in old code format. So I smali them into classes.dex with the 1.3.3 and then baksmali with 2.1.3 to convert old code to new before merging with your apk.
Sent from my SM-T210 using Tapatalk
Click to expand...
Click to collapse
Ok, thanks
I have downloaded version 2.2.0 of smali and baksmali and also a zip containing (i hope, smali and balsmali) version 1.3.3 of the same application! Is there any basic tutorials to teach how to start with these applications?
apktool
https://youtu.be/1t5n8rR5hTE
Smali/baksmali
https://forum.xda-developers.com/showthread.php?t=1296802
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
apktool
https://youtu.be/1t5n8rR5hTE
Smali/baksmali
https://forum.xda-developers.com/showthread.php?t=1296802
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Ok, after I have decompressed/decompiled/whatever the apk file I need to edit a file that is a dll module! It has some like c# or so code. How can I edit these files, change them and compile the file again???? Some use dnSpy and when the dll file is opened, we can see a lot of code, functions and stuff. How can I do that without dnSpy because looks like there is no linux version of dnSpy.
HorusEyE said:
Ok, after I have decompressed/decompiled/whatever the apk file I need to edit a file that is a dll module! It has some like c# or so code. How can I edit these files, change them and compile the file again???? Some use dnSpy and when the dll file is opened, we can see a lot of code, functions and stuff. How can I do that without dnSpy because looks like there is no linux version of dnSpy.
Click to expand...
Click to collapse
I've never had to edit dlls. Are you trying to hack a game? Anyways, on windows I use Notepad++, but on Ubuntu I use Notepadqq.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
I've never had to edit dlls. Are you trying to hack a game? Anyways, on windows I use Notepad++, but on Ubuntu I use Notepadqq.
Sent from my KYOCERA-C6745 using Tapatalk
Click to expand...
Click to collapse
Yes, I was trying to create my own modded version of a game! I usually use Atom, but I already tried to open DLL files with Atom and it doesn't work!
Do I have that Notepadqq for Debian?
HorusEyE said:
Yes, I was trying to create my own modded version of a game! I usually use Atom, but I already tried to open DLL files with Atom and it doesn't work!
Do I have that Notepadqq for Debian?
Click to expand...
Click to collapse
I`ve been trying to figure out why do you want to "create a modded apk" and according to your last post , you`re trying to bypass functionalities of an original game
This kind of thread / discussion isn`t allowed on XDA according to rule 6
6. Do not post or request warez.
If a piece of software requires you to pay to use it, then pay for it. We do not accept warez nor do we permit members to request, post, promote or describe ways in which warez, cracks, serial codes or other means of avoiding payment, can be obtained or used. This is a site of developers, i.e. the sort of people who create such software. When you cheat a software developer, you cheat us as a community.
Thanks for understanding
Thread closed

Categories

Resources