[Q] Android OS and App Localizations - Android Software/Hacking General [Developers Only]

I did a search for static strings localization in Android and found the development documents talking about res/values/strings.xml for default values. The documents also talk about res/values-<qualifiers>/strings.xml for localized text. The strange thing is that non of the 2.1 apps I have use these files for text! They do have 'res' folder, but non of them have 'values' or 'values-xx'!
On the other hand, some sources talk about localizing the Android OS itself through classes.dex file in system/framework folder. When I decompiled this file, I only found long list of .smali files with no indication of string values. So, the question is how Android and its apps can be localized?

values*/*.xml files are compiled into binary resources.arsc file. Use apktool or Apk Manager to decompile them.

Thanks Brut.all! I got them
What about the localization of the Android OS itself? Any idea how can it be done?

<html> said:
Thanks Brut.all! I got them
What about the localization of the Android OS itself? Any idea how can it be done?
Click to expand...
Click to collapse
You can change the Android localization under Language & Keyboard Settings.

The localization strings for the Android OS itself reside in framework-res.apk file. I successfully edited the strings there but still having great difficulties pushing the the revised framework-res.apk back to the file system. I rooted the device and tried to replace the old one with a new one from SD card. The device halted and refused to boot again! The same behaviour with adb push command. Any help please?

Related

resources.arsc file - how to get info about icon from compiled application?

Hello,
How cen I get information about icon of compiled application??
I have downloaded example.apk on my PC.
Unziped it. Found binary AndroidManifest.xml. OK I decoded it and I get:
<application
android:theme="@7F0C0017"
android:label="@7F0B0000"
android:icon="@7F0200A4"
>
And I would like to know the name of the resources the is icon of this application. What means the number: @7F0200A4 . I tried as an offset in resoirces.arcs file but I missed It's not that.
Maybe it's wrong way?? Maybe there is other way to get knowledge about the icon???
BR.
Damien
Not sure if the app icon can be programatically determined without decompiling the whole apk, but it's usually app_icon.png, icon.png or ic_launcher_appname.png in /res/drawable
/Mats
Just open the .apk with a file manager and hunt around for the png, it's not in any xmls.

[Help] Compile .smali files with APK Manager 4.9

Hi all,
I have a problem, im trying to modify an apk with APK Manager 4.9, i descompile it, i go to projects, i modify the .smali files, i go to the script i select the project with the option 22 and i compile (option 11) and sign (option 12). But the .smali files dont changed. i try to delete de classes.dex in the keep folder, but the changes dont saved in the .smali files. Help please. This .apk is for run on bluestacks.
And sorry for my bad english.

[Help] Compile .smali files with APK Manager

Hi all,
I have a problem, im trying to modify an apk with APK Manager 4.9, i descompile it, i go to projects, i modify the .smali files, i go to the script i select the project with the option 22 and i compile (option 11) and sign (option 12). But the .smali files dont changed. i try to delete de classes.dex in the keep folder, but the changes dont saved in the .smali files. Help please. This .apk is for run on bluestacks.
And sorry for my bad english.

[Q] How to modify any android apk file?

I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.

[Q] Problem Modding APK

Hello guys,
I am modding an apk to bypass an update check.
I have this outdated APK that functions fine since the URL and query and site address remains same but whenever it checks for and update it crashes. The thing is the developer made it topnotch but since then left and his site was recently taken down so check update query crashes it totally. What I need to do is update just the one function where it brings up the GUI after start. Otherwise it keeps saying download update or crashes randomly at time of starting up.
Now I have been browsing for a day or two for all the tutorials and right now I`m hell lot of confused. I have downloaded many tools and dependencies but I dont know how to proceed. I will tell you guys what I have and what I need.
I have de-compiled the APK using "dex2jar", I had a .JAR file which I decomplied using JD-GUI-Windows now after saving source I have .ZIP file in which I made the necessary editing. Next I downlaoded APKTool.JAR and extracted resource files and XML files that can be read in text editor. Along with some .SMALI files.
Now I am not familier with SMALI language at all and editing in it seems rather complicated and on the other side I have the .JAR file that decomlied all the classes just fine.
MY QUESTION IS:
How do I recompile the files I have ? I have the main coding extraced using dex2jar so in java format and JD-Gui to in .ZIP files, and resources/XML files also decoded using APKTools. What do I do next to recompile the APK ?
In short I have plain text based java source code and plain text XML and other resource file. How do I recompile it ?

Categories

Resources