About Editing Android Roms - Android Q&A, Help & Troubleshooting

Im on 5.0.2 rooted stock firmware SM-G920V , i just want to know if someone can show us how can we add more languages . (french and arabic ).
or how can we build a rom with this languages on it .
Tnx in advance mates

Jalil-GsM said:
Im on 5.0.2 rooted stock firmware SM-G920V , i just want to know if someone can show us how can we add more languages . (french and arabic ).
or how can we build a rom with this languages on it .
Tnx in advance mates
Click to expand...
Click to collapse
This is how I add languages to my ROM. It might look confusing but it really isn't:
- Download a deodexed firmware that already has French and Arabic languages.
- Extract those APK files: SecSettings, SystemUI, framework-res, SecPhone, SecContacts and SecLauncher.
- Decompile those APK files using apktool.
- Inside res folder, look for values-fr, values-fr-nokeys and xml-fr folders for French language files.
- Similarly, look for values-ar, values-ar-nokeys, layout-ar and xml-ar for Arabic language files.
- Copy and keep all those folders.
- You see, "ar" and "fr"are called Language codes. All the codes for all the different languages can be found here.
- Now, download your firmware (make sure its also deodexed). If you already have it, then skip this step.
- Extract those APK files: SecSettings, SystemUI, framework-res, SecPhone, SecContacts and SecLauncher.
- Decompile those APK files using apktool.
- Inside res folder, paste (add) all those folders (language files) that you copied earlier.
- Recompile the APK files using apktool.
- Sign and Zipalign the APK files.
- Install those modified APK files (using a file browser with root access) and restart your phone. Before doing this, keep a backup of your system partition (instead some problems occur).
- In Settings, go to Language menu and see if those languages are available or not.
I cannot guarantee that this will definitely work, but it works for me. Please note that I'm using Jellybean - so the names of folders and APK files may vary. Or maybe some folders may not even exist.
Good luck. :good:

tnx
Tnx a lot for trying to help me sir
the part that i dont understand is "- Download a deodexed firmware that already has French and Arabic languages."
how can i get it if my phone is a verizon phone all the stock firmware come with the same languages pack

lolipop
i doubt thats its the same methode using on lolipop 5.0.2 .
if someone can guide us through this , concerning lolipop roms and how to add more languages on them

Jalil-GsM said:
Tnx a lot for trying to help me sir
the part that i dont understand is "- Download a deodexed firmware that already has French and Arabic languages."
how can i get it if my phone is a verizon phone all the stock firmware come with the same languages pack
Click to expand...
Click to collapse
You're welcome..
Hmm, that is a problem. I suppose you can download any unlocked, deodexed firmware for the Galaxy S6 (SM-G920) that you think has French and Arabic languages. Since you will only use the language files, it should work on your Verizon phone. I wonder why Verizon did not add those languages.
Jalil-GsM said:
i doubt thats its the same methode using on lolipop 5.0.2 .
if someone can guide us through this , concerning lolipop roms and how to add more languages on them
Click to expand...
Click to collapse
+1
But at least give my method a try - if you can. Then let me know if it works or not .

tnxxx
i did everything you told me bro
here is the problem im facing
1 didnt find the launcher apk
and when i decompiled the apk of Secsettings2.apk and add ar and fr res folders , when trying to compile it again i have this errors
C:\>apktool b SecSettings2.apk
I: Using Apktool 2.0.1
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:251)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:246)
... 4 more

Jalil-GsM said:
i did everything you told me bro
here is the problem im facing
1 didnt find the launcher apk
and when i decompiled the apk of Secsettings2.apk and add ar and fr res folders , when trying to compile it again i have this errors
C:\>apktool b SecSettings2.apk
I: Using Apktool 2.0.1
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:251)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:246)
... 4 more
Click to expand...
Click to collapse
This is the error you're getting:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
This means that apktool can't find the apktool.yml file inside the SecSettings2 (decompiled APK) folder. This happens when the APK file was not decompiled properly or completely. Did you see any errors while decompiling SecSettings2.apk?
If you are using apktool for the first time, then did you install framework-res.apk?

Related

[Q] How can we add new languages to our custom rom??

Hello everybody...
I want to know that, Is there any way to add a new language support ( just for characters not for UI ) to a rom that we want to customize it???
I tried to add fonts of the new language to the rom, but it just showed the characters disconnected;
Then I tried to replace the LIBSKIA, LIBSKIAGL and LIBSWEBCORE from n rom that supports the language to my rom, and then added fonts , but this time, after flashing the rom did not log in and just freezed in at the HTC logo..
I want to add Arabic - Persian support to my rom, can anyone help???
--------------------
How if I want to add the language to UI ..?? ( How can we change the UI.??)
mercury700ir said:
Hello everybody...
I want to know that, Is there any way to add a new language support ( just for characters not for UI ) to a rom that we want to customize it???
I tried to add fonts of the new language to the rom, but it just showed the characters disconnected;
Then I tried to replace the LIBSKIA, LIBSKIAGL and LIBSWEBCORE from n rom that supports the language to my rom, and then added fonts , but this time, after flashing the rom did not log in and just freezed in at the HTC logo..
I want to add Arabic - Persian support to my rom, can anyone help???
--------------------
How if I want to add the language to UI ..?? ( How can we change the UI.??)
Click to expand...
Click to collapse
well the best way is to room arabic supporting rom, I am currently working on HTC Legend Stock Rom, I will root it, add market and upload it.
If you need other roms maybe you can check this: http://ardoid.com/
add new language
I have Samsung Galaxy Tab (SPH-P100) which it is special America
I try to do my full Arabization device (add arabic language)
I copied system files framework-res.apk, Settings.apk, TouchWiz30Launcher.apk and twframework-res.apk from the device and decompiled it by APk tools
And modified files strings and other
but I can't recompile them again
And now upload modified files and original files
I want from any developer recompile them and upload again
original files
mediafire.com/?uxi9s74ackc4p8f
new modified files only
mediafire.com/?2p7600e9a6sepzj
I ask anyone who has comments or tips be so kind to me if there are important steps or other files must be modified, because may help many others people
xx979xx said:
I have Samsung Galaxy Tab (SPH-P100) which it is special America
I try to do my full Arabization device (add arabic language)
I copied system files framework-res.apk, Settings.apk, TouchWiz30Launcher.apk and twframework-res.apk from the device and decompiled it by APk tools
And modified files strings and other
but I can't recompile them again
And now upload modified files and original files
I want from any developer recompile them and upload again
original files
mediafire.com/?uxi9s74ackc4p8f
new modified files only
mediafire.com/?2p7600e9a6sepzj
I ask anyone who has comments or tips be so kind to me if there are important steps or other files must be modified, because may help many others people
Click to expand...
Click to collapse
If I understand you correctly, you are taking files from the framework of one device and putting them into the framework of a different device?
If that's the case, you can't do that. Apks (even framework apks) rely heavily on things like resource ids, which very greatly from device to device, or from rom to rom.
Unfortunately Im nit sure how to do what you are seeking to do, just offering some advice on your apk compiling problem. Also, if I've completely misunderstood what you were doing, I apologize and disregard what I said.
In any case, post the compiling error your getting.
Sent from my ADR6400L using xda premium

How to Decompile/Recompile System Apps from MTK Phones

Anyone knows how to Decompile/Recompile System apps from MTK phones?
I'm using apktool 1.5.2.
I can decompile like "SystemUI.apk"
But I can't recompile. Even I didn't edit anything yet.
Hope guys you help me. Specially those who have MTK phones. :crying:
EDIT: Problem solved! I just install mediatek-res.apk as resources too
WinchyHanepp said:
Anyone knows how to Decompile/Recompile System apps from MTK phones?
I'm using apktool 1.5.2.
I can decompile like "SystemUI.apk"
But I can't recompile. Even I didn't edit anything yet.
Hope guys you help me. Specially those who have MTK phones. :crying:
EDIT: Problem solved! I just install mediatek-res.apk as resources too
Click to expand...
Click to collapse
hey can you please help me in decompiling and recompiling systemui.apk ...I Have MTK device plz can you explain with steps.Thanks
mhp1995 said:
hey can you please help me in decompiling and recompiling systemui.apk ...I Have MTK device plz can you explain with steps.Thanks
Click to expand...
Click to collapse
Me also faced problem for decompile and compiling but this apktool solved
Just Google " Decompiling_Resources_21.3.2013 " and download it
extract it anywhere . open the folder containing apktool.jar then shift+ rightclick u wil get command promt window then type Install framework-res.apk using apktool if framework-res.apk
then decompile any apps . I hope this would help u .
is it possible SystemUI can NOT be recompiled due to some omitted frameworks/files?
Hi.
I hope somebody experienced in MTK modding can shed some light on my problems, cause I'm out of ideas..
I can't find a way to successfully recompile either framework-res or System UI in a "no-name" ROM on a MTK device (6572). I'm not an expert in modding, but I know my way around this subject and have successfully disassembled, modded and reassembled many MTK (and other) ROMs so far.. however - this one I just can't recompile w/o errors like this:
systemUI.mod/SystemUI/res/layout/system_bar_notification_panel_title.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/SystemBarNotificationText').
Click to expand...
Click to collapse
Ofc I installed all available (?) frameworks (in my case 2 apks in /system/frameworks: framework-res.apk and mediatek-res.apk, tried as many available tools as I could find here on XDA (automated, manual, different apktool versions, etc), but nothing "works". I've also scouted the whole file system for any additional, hidden, resources, but could locate nothing.
So - I can decompile anything, but can not successfully recompile none of the "system resources" (systemui, framework-res, mediatek-res).. my question is this - is it possible that these resources, that aapt is reporting missing, are actually omitted (missing) from the ROM?
Edit:
http://forum.xda-developers.com/showthread.php?t=2264380
search HARDER.

[TRICK] eror recompile setting.apk or other apk

Hi guys , have you ever try to editing some apk's like setting.apk with apktool mobile ? (I'm using apktool 4.4.1 ) , after editing that you think already right but when you recompile it you face some eror ?
Here I gave you some trick that maybe you can try to recompile some apk like setting.apk or other.
Locate the apktool.yml in your decompile'd apk's and open with text editor like aide or other , next see the "ids:" . Below that you will find some number . It usualy - 1 , now add - 2 below that . It will look like this
Ids :
- 1
- 2
Than save and recompile , done.
I already try that methode with other apk's and it work great . That's it hope it help you but if not and you still got some eror try to read the full log and find what you miss , I will not help you for that so try by your own
I'm using mtk 6582 running jb 4.2.2
Apktool 4.4.1 (aapt ver 1.5.2 / apktool 4.2)
Be kind enough to report if it work for you

[Q] Modifying Smali Code and recompile it.

I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
decompilerr said:
I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
Click to expand...
Click to collapse
It can be done with smali also ....
Only thing is you need to be tricky ....[emoji6]
Am not writing the procedure here coz changing package name doesn't sounds good for me [emoji1] I always respect efforts of original developers (some kangers always do change name and remove some features and claim the apk as theirs in generally am saying don't get hurted )
So I just want to confirm that changing package name and removing some features is possible via smali editing no need to convert the apk to java source .......
Press Thanks Button If You like My Work & Posts?

[Q] Ask Apktool Theming Stock Apps Lil confusing

hello everyone!
i just wanna ask...
i flash a deodexed stock rom (deodexed,pre-rooted)
and i start theming using apktool for android.
After modifying(e.g. Settings.apk signed with apktool for android) . it didn't shown up on my drawer
then i tried another method (Copying both orig META-INF and android manifest) then it shown up
I want to have tabbed settings.. but how can i make it if the modded app needs the original files (meta-inf and android manifest)..
some of my app are not working after recompiling and signing it with apktool for android...
it always need those files
i wonder how the devs makes changes on some system app
pls reply...
i need answers..

Categories

Resources