Hi All,
I'm a noob ROM developer and I want to create a new Rom based on
one of the great Roms here on this forum and add it support for RTL languages so it can support correct display of numbers when displaying an RTL lang.
As I understand I need to somehow decompile the "classes.dex" so I can edit the code in it and compile it again.
How can I achieve this? Maybe I can the original source code of it so I don't need to decompile?
I'm experienced with c++ and Java Android apps development but don't have a clue from where to start roms development.
Appreciated your help,
Thanks,
Oren
Related
Answer on POST #3 by Enomther
Hi,
I'm the author of LeoFroYo, an android 2.2 ROM.
I'm currently trying to integrate read and write arabic support into it and would like to include additional languages into my ROM.
Note: this topic is not about arabic support, but about additional languages.
I know Enomther's TheOfficial has more locales than the stock AOSP.
So I opened this thread to:
Get help to include more languages into the Android system
Make a guide on HowTo do so
So here are my questions:
But how to I include new languages into the system?
Do I only add strings.xml into frameworks_base?
What files do I need?
Simple XML or do I need to madify Makefiles?
How to compile with new languages?
I want those added languages to be listed into the SetupWizard
I think it's Enomther who told me this requiered to change things in vendor/.
But don't know quite what to do nor how.
Thanks everyone to help this community
PS: I will update this first post when a solution/steps will be found so it will be a guide for devs
Am I the only one who's concerned about languages support?
maybe all are satistied with the stock languages
btw, I also want to know how
Sent from my Nexus One using XDA App
how-to
leonnib4 said:
Hi,
I'm the author of LeoFroYo, an android 2.2 ROM.
I'm currently trying to integrate read and write arabic support into it and would like to include additional languages into my ROM.
Note: this topic is not about arabic support, but about additional languages.
I know Enomther's TheOfficial has more locales than the stock AOSP.
So I opened this thread to:
Get help to include more languages into the Android system
Make a guide on HowTo do so
So here are my questions:
But how to I include new languages into the system?
Do I only add strings.xml into frameworks_base?
What files do I need?
Simple XML or do I need to madify Makefiles?
How to compile with new languages?
I want those added languages to be listed into the SetupWizard
I think it's Enomther who told me this requiered to change things in vendor/.
But don't know quite what to do nor how.
Thanks everyone to help this community
PS: I will update this first post when a solution/steps will be found so it will be a guide for devs
Click to expand...
Click to collapse
Yea that was me ...
1) Do not modify and/or add strings.xml to framework
2) Do not modify other xml or any Makefiles
3) Like any other compilation, type "make"
So here's the answer to your real question ...
What I was referring to previously is the need to create a device/htc/passion/(vendor-custom).mk file. To include more languages. (This is what I do)
However..........
Here's another method that may be clearer for you to implement the first go around ...
Apply this patch here ...
Code:
http://github.com/CyanogenMod/android_build/commit/a5c3cb5e5bb243234815159bf63c95ad7327a7ca
Then ... make sure your buildspec.mk includes this line ...
Code:
TARGET_PRODUCT:=full_passion
That's it.
~enom~
Thanks Leo for taking this initiative for Arabic language, lots of people will appreciate your work. Thanks again.
Samy
Sent from my Nexus One using XDA App
What an answer Enomther!
Thank you
I know I could have re-PM you but I also wanted others to have that easy explaination from your words
Thanks, I think this thread is solved
PS: worked for me
just want u to know that we all appreciate ur work
n' i cant wait for your arabic supported rom
Good luck
denteno said:
just want u to know that we all appreciate ur work
n' i cant wait for your arabic supported rom
Good luck
Click to expand...
Click to collapse
BETA2 is released.
I need beta testers for the Arabic support.
Go grab it
it's fully arabic or just read and write ?
See my thread.
This thread is closed.
Sent from my Nexus One
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
Hi All,
I'm a noob ROM developer and I want to create a new Rom based on
one of the great Roms here on this forum and add it support for RTL languages so it can support correct display of numbers when displaying an RTL lang.
As I understand I need to somehow decompile the "classes.dex" so I can edit the code in it and compile it again.
How can I achieve this? Maybe I can the original source code of it so I don't need to decompile?
I'm experienced with c++ and Java Android apps development but don't have a clue from where to start roms development.
Appreciated your help,
Thanks,
Oren
Please ask in the Q&A section, its much more suitable for your post.
Moved of: Samsung Vibrant > Vibrant Android Development
To: Samsung Vibrant > Vibrant Q&A
Please put your questions to: Vibrant Q&A
Search for info about Baksmali andor smali. Those are the tools you'll need.
Hello everyone
I have a question, first look at what I did.
I want to edit code of apk.
First, I use dex2jar. I can convert from APK to JAR file.
Second, I use JD. I can convert from JAR to Java source code.
Then I am trying to import these code into eclipse (or other editors) but it is not working.
Is there any possible way to edit the code?
I know we can edit smali but I think it is so much difficult.
I would be easier if I can edit in java source code and compile again to APK.
Thanks
Please use the Q&A Forum for questions Thanks
Moving to Q&A
It's not that easy. You can decompile (dex2jar & jd) the code to read it, do some research, etc. but this is a one way trip. If you want to modify something you will have to learn smali.
so, you mean the only way to modify code is smali?
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?