Trying to decompile lidroid-res.apk - Galaxy Ace II Q&A, Help & Troubleshooting

I'm trying to decompile lidroid-res.apk using apktool. I just want to add translation for my native language. I know it is usually quite easy, you just have to add a /res/value-fr/ folder with a strings.xml file inside and then you translate the string contained in the strings.xml file. Unfortunately, I have trouble decompiling it, I get multiple errors. I already had framework-res.apk and twframework-res.apk installed using "apktool if" command so it can't be the cause of my problem. Also, please take note that the lidroid-res.apk file come from this ModPack, in case it could be us find the solution.
Here's a screenshot showing the errors:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Nico3d3 said:
I'm trying to decompile lidroid-res.apk using apktool. I just want to add translation for my native language. I know it is usually quite easy, you just have to add a /res/value-fr/ folder with a strings.xml file inside and then you translate the string contained in the strings.xml file. Unfortunately, I have trouble decompiling it, I get multiple errors. I already had framework-res.apk and twframework-res.apk installed using "apktool if" command so it can't be the cause of my problem. Also, please take note that the lidroid-res.apk file come from this ModPack, in case it could be us find the solution.
Here's a screenshot showing the errors:
Click to expand...
Click to collapse
Got it to decompile. Turns out it was because I had switched some .png files (I had made the quickpanel background dark blue instead of the default grey), so I just took the original unmodified lidroid-res.apk, and it decompiled perfectly! Attached is the original lidroid-res.apk, decompiled (and compressed into a .rar archive). Translate it to French, and upload the changes here so I can incorporate them into the next version of Mod Pack II X please

Related

[Q] Changing color of icons in settings.

Recently used the ..ICS COMPLETE PACKAGE 2.1 w/ Juggernaut 4.1. Enjoy it alot but not a fan of settings color
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How would i change the color of these icons from the blue to a white?
KrisHilbun said:
Recently used the ..ICS COMPLETE PACKAGE 2.1 w/ Juggernaut 4.1. Enjoy it alot but not a fan of settings color
How would i change the color of these icons from the blue to a white?
Click to expand...
Click to collapse
Easy way, which is not easy, is to learn how to edit the systemUI.apk and framework-res.apk ..
There is no "simple" way to change these without flashing a new theme ...
Which apk/'s would i need to decompile and edit?
Sent from my SGH-T989 using xda premium
Update;
Android ApkTool Tutorial Extremely helpful..
Setup apktool on linux
installed frameworks with apktool, since was changing settings.apk required both frameworks to be installed..
Code:
apktool if framework-res.apk
apktool if twframework-res.apk
Once framework installed decompile the settings.apk (case sensitive)
Code:
apktool d Settings.apk out
apktool d (decompile) Settings.apk (/locaation/apk/) out (folder name for after decompiled)
Once decompiled go to folder.. mine which is named out in home directory..
/res/drawable-hdpi/ location of the pngs (pictures seem blown up but i think thats flickr)
ic_settings_icon_juggernaut.png
ic_settings_applications.png
now to change colors of png and recompile...
TO BE CONTINUED!

Windows Phone 7 dll decompile finished aids

Original Chinese:
http://www.wj86.net/thread-3469-1-3.html
Google Traslated:
Runtime environment:
. NetFrameWork 3.5 Instructions for use:
Chinese Dll resources drag it to the top left of the picture, the program will automatically decompile dll files, the result file is located in the the dll same directory under the text box below displays il file path. Net editor and a text editor, you can use the finished, finished. Direct Click on the picture to repackage, or drag il files to Image, the program will back up the original dll file, and rebuild the dll file with the same name can be used directly, then this package dll file back xap can be installed!
If you check the "Click on the picture to continue to run, after the first drag will only show path operate without the need to you manually click picture to decompile or repackaged! 12/15/2011 update: Add a working directory button, the operation is more convenient to increase the the il file dictionary function fixes some small BUG
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
View attachment 1388958
View attachment Resourcer.zip
Hi, can you please explain me step by step how to translate an app and what files i can rewritte when i decompile .dll ?? i don't understand many step... lol
Big thankx for the tools man,
Poloche,
First, decompile the app's main .dll file, you fill get the couple of files extracted. In some cases (especially when the app has more than 1 language supported), you will get a .resources file. Use .NET Resource to edit it's content. Otherwise, if there is no .resources file, you will have to do the work by Hex Editor.
Take a look at the screenshot for more details.

How can I edit system-ui.apk properly in jellybean?

I know it can be done by 7-zip but i get some errors. Look at the screen shots here
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In the first picture look at the notification bar.
I just edited the swagger toggle. It's resolution is the same as the resolution of the original file.
As I've spotted also original apk image in file manager changed from the smiling bean to the clock...
Sent from my R800i using xda premium
You can't use 7-zip. You need to decompile the APK with APKTool because the PNG's are encoded as 9-patch PNG's. Google these terms for more info, there are heaps of guides out there for editing APK resources.
Odp: How can I edit system-ui.apk properly in jellybean?
So all i have to change is to add black lines on the top and on the left on the image + rename the file to toggle swagger.9.png right?
Or I don't have to do this at all and I just have to use the apktool?
Sent from my R800i using xda premium
olokos said:
So all i have to change is to add black lines on the top and on the left on the image + rename the file to toggle swagger.9.png right?
Or I don't have to do this at all and I just have to use the apktool?
Sent from my R800i using xda premium
Click to expand...
Click to collapse
No, that won't work. The black lines are a decoded PNG file, but the .9.png's in the APK are encoded. APKTool encodes and decodes the PNG's as needed.
If the filename is called swagger.png inside APK then it's not a .9.png and doesn't need it. But the .9.png isn't needed in filename, it's just an easy indication for hackers/source builders that it's a 9-patch PNG. The graphics I see in the screenshot are a classic symptomn of an encoded .9.png losing it's hidden 9-patch layer from modification.
Just decompile the original APK with APKTool, make your mods and preserve the already existing 1px border that might be on any PNG files, then recompile the APK and resign if needed.

Error Recompiling SemcPhone JB.200

hello,
I'm doing a black theme for Xperia S JB ...200
After dozens of attempts, I can not recompile the SemcPhone.apk
If anyone can help me by explaining the error
(The same error occurs even if I recompile without changing anything)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
stef67000 said:
hello,
I'm doing a black theme for Xperia S JB ...200
After dozens of attempts, I can not recompile the SemcPhone.apk
If anyone can help me by explaining the error
(The same error occurs even if I recompile without changing anything)
Click to expand...
Click to collapse
Delete the following folders and then try -
1.All folder starting with "values-mcc454".
2.values-pt-rpt
Then it will recompile properly. These folders are translations for some other language. I am not sure if the apk will work properly but no harm in trying
abcdjdj said:
Delete the following folders and then try -
1.All folder starting with "values-mcc454".
2.values-pt-rpt
Then it will recompile properly. These folders are translations for some other language. I am not sure if the apk will work properly but no harm in trying
Click to expand...
Click to collapse
it works!
Thank you very much for your help :good::good::good:
abcdjdj said:
Delete the following folders and then try -
1.All folder starting with "values-mcc454".
2.values-pt-rpt
Then it will recompile properly. These folders are translations for some other language. I am not sure if the apk will work properly but no harm in trying
Click to expand...
Click to collapse
Same thing here after doing as you said same error come up when recompiling

How do I remove entries in secsettings.apk

I own a Galaxy Ace IIx and I would like to remove two menu entries in secsettings.apk (my ROM is deodexed). I already know how to decompile it with apktool and I know how to edit XML files once the app is decompiled but I don't know where to look (in which XML file), in order to remove these two two entries.
Here's a screenshot, I circled in white what I want to remove:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Does anyone know where to look? It's just that those two menu entries requires SamsungApp to be installed in order to work but I removed SamsungApp because I wanted to debloat my phone. Now the SecSettings app crash each time I select one of those entries. I know it's just a minor hassle but anyway, maybe someone can help me..
Nico3d3 said:
I own a Galaxy Ace IIx and I would like to remove two menu entries in secsettings.apk (my ROM is deodexed). I already know how to decompile it with apktool and I know how to edit XML files once the app is decompiled but I don't know where to look (in which XML file), in order to remove these two two entries.
[ยท] Now the SecSettings app crash each time I select one of those entries. I know it's just a minor hassle but anyway, maybe someone can help me..
Click to expand...
Click to collapse
Whoa, I failed trying to address the same issue (in Gingerbread though)...
Apparently, the security section isn't generated from a single file but from a sequence of them... and I haven't found the Samsung part either...
For now, the stock ROM isn't so bad after removing all bloatware but I really hope the CM11 version will be completed soon. There's already someone doing great work on it, but bluetooth isn't working yet.

Categories

Resources