RTL languages support - Galaxy Ace S5830 Android Development

hi
how can i make android supports RTL reading (and writing)
i've copied this files from samsung official firmware that fully supports RTL , via recovery... (i tested wiping data and factory restart)
but still characters are seperated and showing as left to right
for example اندروید shows as د ی و ر د ن ا
/system/fonts/ALL
/system/framework/framework.jar
/system/framework/framework-res.apk
/system/framework/framework.odex
/system/lib/libandroid_runtime.so
/system/lib/libskia.so
/system/lib/libwebcore.so
i cant find any source about android file structures and keyboard layouts... can anyone plz help?
thx

a result of search button
http://forum.xda-developers.com/showthread.php?t=907635
http://forum.xda-developers.com/showthread.php?t=1086632

i tried some patches (like first link) , and they replace this files!
second link , installs software keyboard!

obviously it'll replace the file, thats why its called "patch" in the first place. sure u can edit manually by hands one by one, byte by byte, but that needs coding experience. those automated tools/patch/script were created to make our life easier u know

http://blog.devasque.com/?page_id=11
here what you need.

i dont need patch! im coping basically compiled official files!
patches are changing this files to support rtl !
in the mean time , this patch doesnt work for me

the patch worked , it was a problem in my script
thank u Behzad

Related

[How-To] Make custom bootscreen/bootlogo (image to rle)/(rle to image)

hey guys since i was getting so many requests to make custom bootscreens/bootlogo, and lots of ppl asking me how to do this i am making this how to...
it took some time for me to get all this info and tools in one place and make it easy to use...
[ INTRO ]
this little how-to/tutorial will cover points on how to convert between image files and (static) bootscreen/bootlogo files (initlogo.rle/logo.rle)
THIS WILL NOT COVER INFO ON HOW TO INTEGRATE IT IN CUSTOM boot.img, i will add this later cause it requires different tools
initlogo.rle/logo.rle are image files which are in the integrated ramdisk in custom kernel boot.img
these .rle files are shown during booting of the custom kernel (boot.img)
if u want to remove showing of these images then just delete the initlogo.rle/logo.rle from the ramdisk
if u want to change it to the image that u want then follow this tutorial
after creating the .rle files u will need to rename the files to initlogo.rle / logo.rle and place it within extracted ramdisk folder then repack the ramdisk and then repack it with kernel (zimage) using proper boot address and specific command line parameters
[ CREDITS ]
makers of 5652rgb, to565 for freely providing the sources!
ImageMagick for the brilliant convert.exe tool
me for creating the cygwin binaries and batch files & making it little simple to use
[ REQUIREMENTS ]
windows PC (u can find compatible linux tools if u search online)
this package
correct resolution images (check post #2 for details)
[ WHATS INSIDE? ]
the package i have provided has:
precompiled cygwin binaries for
5652rgb
to565
convert.exe from ImageMagick-6.7.0-Q16-windows
all required dlls for standalone installations
easy to use batch files i made
convert_image_to_rle.bat
convert_rle_to_image.bat
[ HOW TO USE? ]
Converting any image to rle file
open command prompt and browse to folder with those bat files
execute:
Code:
convert_image_to_rle.bat <path_to_image_file>
the <path_to_image_file>.raw file and <path_to_image_file>.rle file will be created at the same location as <path_to_image_file>
Converting any rle to image file
open command prompt and browse to folder with those bat files
execute:
Code:
convert_rle_to_image.bat <path_to_rle_file>
the <path_to_rle_file>.raw file and <path_to_rle_file>.png file will be created at the same location as <path_to_rle_file>
[ ADDITIONAL INFO ]
the batch files i have made are specific to X10 screen resolution (480x854) if u need to use it for another device just edit the convert_rle_to_image.bat file and changed this like
Code:
[user=220077]@bin[/user]\convert -depth 8 -size 480x854 rgb:%1.raw %1.png
[ DOWNLOAD LINK ]
boot_screen_logo_creation_package.rar
[ REFERENCES ]
http://forum.xda-developers.com/showpost.php?p=6775233&postcount=5
http://www.androidtablets.net/forum...-before-animated-boot-animation.html#post1895
http://android.git.kernel.org/?p=platform/build.git;a=tree;f=tools/rgb2565
http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images <<< has info on how to pack/unpack boot.img files
aZuZu has uploaded newer tools!!!
Chumby_666 said:
new version of custom boot image toolkit is up!
minor fixes ...
added image to android logo & android logo to image ( external tools ) ( cygwin again! god damn! )
working on new ramdisk handle procedure ... soon will be fixed
thanks DooMLoRD for finding tools
Click to expand...
Click to collapse
get them here: http://forum.xda-developers.com/showthread.php?t=1090217
[ INFO ON SCREEN RESOLUTIONS ]
the resolution of the image to use depends on ur the capabilities of ur device
following is a list of the resolutions
QVGA (320×240)
WQVGA (432×240)
HVGA (480×320)
VGA (640×480)
WVGA (800×480)
FWVGA (854×480)
Very useful!
Thank a lot.
& this is WHAT i want!
Great work bro!
Cheers
SX,
Just what I needed..
Many thanks, no need to pester you any more for bootscreens, but many thanks for the ones you provided t me
For some reason it isn't working on my computer, I have no clue why .Running everything exact ,but it could be my phone .Does any one have some spare time to whip one up for me? Any help would be greatly appriciated
Does not work it creates a rle file on 0.00kb
Sent from my X8 using XDA App
getting a bit farther but it tries to take my image to rle but it says it can't find the file
any chance there could be a bit more noobish instructions to follow or is there any way to set it up like the moto devices could with a logo.bin file
pouxonu said:
getting a bit farther but it tries to take my image to rle but it says it can't find the file
any chance there could be a bit more noobish instructions to follow or is there any way to set it up like the moto devices could with a logo.bin file
Click to expand...
Click to collapse
make sure that there are no spaces in the path to the image file... best way is to place the image file in the same folder as the batch files
for exapmle how should this be typed. I have the set up in my c drive near my sdk
convert_image_to_rle.bat
Program Files_Android_boot_screen_logo_creation_package
does all that need to be together with underscores? And do I need the name of the image?
i found draging and droping the logo.rle on top of "convert_rle_to_image.bat" did the trick for me. before it was giving some errors.
jus shared my find.
i'm making a bootscreen, anyone know what's the name of xda developer's font or can share it, please?
ayyu3m said:
i found draging and droping the logo.rle on top of "convert_rle_to_image.bat" did the trick for me. before it was giving some errors.
jus shared my find.
Click to expand...
Click to collapse
i did a drag and drop and it seems to have worked, now i'm totally lost in what to do next
Doomlord... you are a miracle worker XD even when I'm not looking for something for my X10 you seem to solve all my problems XD
Hi DooM bro,
How to cpio.gz the ramdisk folder after editing it?
I tried the azuzu tool but i get error.
Any other way?
Linux, windows, anything any other script? Or can u gz the ramdisk for me?
weaponXandroid said:
Hi Doom bro,
How to cpio.gz the ramdisk folder after editing it?
I tried the azuzu tool but i get error.
Any other way?
Linux, windows, anything any other script? Or can u gz the ramdisk for me?
Click to expand...
Click to collapse
u need to use linux
go to the folder which has the ramdisk files (init,etc)
give this command:
Code:
find . | cpio -o -H newc | gzip > ../ramdisk.cpio.gz
can you please divert me a link how to import this rle file into phone/tablet ?
thanks
indigo_blue said:
can you please divert me a link how to import this rle file into phone/tablet ?
thanks
Click to expand...
Click to collapse
it depends from device to device...
some devices have bootlogo in boot.img (ramdisk) other have a seperate partition to dump this splash image
DooMLoRD said:
it depends from device to device...
some devices have bootlogo in boot.img (ramdisk) other have a seperate partition to dump this splash image
Click to expand...
Click to collapse
Well, I managed to make .rle file... So, how can I add it into DooMLoRD kernel?
I am using ARC S...
Ninolina said:
Well, I managed to make .rle file... So, how can I add it into DooMLoRD kernel?
I am using ARC S...
Click to expand...
Click to collapse
u need to repack ramdisk and then repack it zImage to get boot.img (using correct mkbootimg arguments)
there was a thread somewhere by SE on how to make kernels for Xperia 2011 devices... they have provided info on how to repack ramdisk and the correct mkbootimg arguments...
DooMLoRD said:
u need to repack ramdisk and then repack it zImage to get boot.img (using correct mkbootimg arguments)
there was a thread somewhere by SE on how to make kernels for Xperia 2011 devices... they have provided info on how to repack ramdisk and the correct mkbootimg arguments...
Click to expand...
Click to collapse
Thank you very much for answering me, but I am afraid it wont help me much... I dont want to make a Kernel, I only want to change the SplashScreen... On HTC Desire it was easy to do that (there is a Tool for that) and with ARC this and everything else is so much complicated... I also see that there is not much support for this device and so little number of people is willing to help...
Thank you one more time... I hope there will be easier ways to do this and other stuff which are standard on other devices...
Just one more question... Is it easier just to remove the SplashScreen that is now in DooMKrenel? I will be satisfied with that too...

[TUTORIAL] How to Fix RTL (Arabic, Ardu, Farsi & Hebrew) Stock & Custom ROMs GT-S5830

[TUTORIAL] How to Fix RTL (Arabic, Ardu, Farsi & Hebrew) Stock & Custom ROMs GT-S5830
This Patch will only fix RTL (Right to left Languages) and connect letters So you can read correctly.
This Patch Wont Add Arabic or other language to your rom Settings.​Please make a nandroid backup of your system before attempting to apply this patch.​
Requirements:
1- Your device needs to be rooted.
2- Your Android version is 2.1 or newer
3- Your ROM needs to be deodexed.
4- Your rom is not based on MIUI.
Steps to apply the patch:
1- Download the patch arabic_script_0.907_windows.zip from Attachments and extract it to a folder on your computer.
2- Pull these 3 files from your phone /system using any explorer and place it in the subfolder "input" that you extracted in step 1
a) /system/framework/framework.jar
b) /system/lib/libandroid_runtime.so
c) /system/lib/libwebcore.so
3- Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a flashable file in subfolder "output".
4- Go into recovery mod, mount system and flash the file.
If flashing through recovery didn’t work for some reason, you’ll need to do the following manually:
Put /framework.jar in your phone at /system/framework/
Put /libandroid_runtime.so in your phone at /system/lib/
Put /libicuuc-arabic.so in your phone at /system/lib/
Put /libwebcore.so in your phone at /system/lib/
Put /lib__bcore.so in your phone at /system/lib/
5- Downlod & Extract DroidSansArabic.zip from attachments and replace DroidSansArabic.ttf with the arabic font located in /system/fonts and reboot
Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
Credits:
- Madmack Original Thread
Ahmed hamouda said:
This Patch will only fix RTL (Right to left Languages) and connect letters So you can read correctly.
This Patch Wont Add Arabic or other language to your rom Settings.​Please make a nandroid backup of your system before attempting to apply this patch.​
Requirements:
1- Your device needs to be rooted.
2- Your Android version is 2.1 or newer
3- Your ROM needs to be deodexed.
4- Your rom is not based on MIUI.
Steps to apply the patch:
1- Download the patch arabic_script_0.907_windows.zip from Attachments and extract it to a folder on your computer.
2- Pull these 3 files from your phone /system using any explorer and place it in the subfolder "input" that you extracted in step 1
a) /system/framework/framework.jar
b) /system/lib/libandroid_runtime.so
c) /system/lib/libwebcore.so
3- Double click on commands.exe. Do not close the black cmd screens that will pop up. Once the patch is done, you should get a flashable file in subfolder "output".
4- Go into recovery mod, mount system and flash the file.
If flashing through recovery didn’t work for some reason, you’ll need to do the following manually:
Put /framework.jar in your phone at /system/framework/
Put /libandroid_runtime.so in your phone at /system/lib/
Put /libicuuc-arabic.so in your phone at /system/lib/
Put /libwebcore.so in your phone at /system/lib/
Put /lib__bcore.so in your phone at /system/lib/
5- Downlod & Extract DroidSansArabic.zip from attachments and replace DroidSansArabic.ttf with the arabic font located in /system/fonts and reboot
Sometimes permissions and xml data doesn’t get updated correctly resulting in corrupted data entries. If you receive a bunch of Force Closes after a reboot, you’ll need to Factory Reset.
Credits:
- Madmack Original Thread
Click to expand...
Click to collapse
thank you ahmad ^_^
Sent from my GT-S5830 using Tapatalk 2
Now its working sory
Sent from my GT-S5830 using xda app-developers app
mother abdulsamad said:
thank you ahmad ^_^
Sent from my GT-S5830 using Tapatalk 2
Click to expand...
Click to collapse
Please don't quote the whole post
Thanks a lot Sir,
It was hard for me becuase the zip didn't flashed, but yeah I did it. You always supported the world base on RTL
flash file not work for me
and while replacing libandroid_runtime.so my mobile hanged
Ramyelbadry said:
flash file not work for me
and while replacing libandroid_runtime.so my mobile hanged
Click to expand...
Click to collapse
حط الملفات في ملف الروم قبل ما تفلشه وبعدها فلش الروم
الطريقه جربتها على Stocklite V8 والحين شغال عليه
Sent from my GT-S5830 using xda app-developers app
Did you restart i mean pull battery and restart again then fix permessions i was having the same after restart it works
i have a problem with the webbrowser
otherwise all good .. expect i can't make arabic my phone language which is fine by me i use it in english
but anytime i open the web it crash without even give me the force close message ...
also this happens with both the 3rd party web browsers and the main one
MiZoSpaDe said:
i have a problem with the webbrowser
otherwise all good .. expect i can't make arabic my phone language which is fine by me i use it in english
but anytime i open the web it crash without even give me the force close message ...
also this happens with both the 3rd party web browsers and the main one
Click to expand...
Click to collapse
Browser language is related to /libwebcore.so So try to replace this file from any other rom and run the patch again. it should be fine :fingers-crossed:
try it on lg e400 deodexed rom ... ang get flashable zip .. and replace the files .. then flash zip file ,,, get bootloops .. so many time
Napst3r88 said:
try it on lg e400 deodexed rom ... ang get flashable zip .. and replace the files .. then flash zip file ,,, get bootloops .. so many time
Click to expand...
Click to collapse
Replace files from the flashable.zip with the rom.zip and flash the whole rom again. this is the safest method to avoid any bootloops
I've been looking for this long time ago...
I'll give it a try...
Sent from my GT-S5830 using Tapatalk 2
How can see iPhone or others emo. I means font.
Sent from my GT-S5830 using Tapatalk 2

[Q] Implementing features from other sources

I have the PAC source downloaded and now I want to figure out how to add other features from either github or wherever to it. There's some things from the xposed framework that I'd like to implement in the ROM but I'm not sure how to go about doing it. I'm new to android programming, just been porting PAC to my phones that don't have support. Any help is greatly appreciated.
Help injecting features or settings
I use file manager pro from cheeta mobile to open the rom.zip then copy and paste the system/file context/meta inf /and any other files in the zipped folder to the ExtSdcard1 root directory, then open the copied files which will be opened for modifications, then add the mods directly to the appropriate locations ( use this method(very slow) or use an apk decompiler to make your changes to apps. There are instructions for that on xda forums. But since the update to lollipop we have seen the new compression format change to system.new.dat file compression so if you want to modify lollipop roms you have to find (Optimized) version or use the dat file decompiler to translate the system.dat.new file or others in that format to readable/writable or understandable format. Let us know if this gets you on track or if you have solved this issue, thanks.

[Q] Issues with generated APK file on Eclipse

Hi All
I'm working on a new widget for Zooper Pro , using Eclipse . I followed the guide thread appearing in the forum but still have some issues
I have specific fonts and iconsets which I'm using . After generating the APK file and install it on my device (Nexus 5) , Instead of the actual iconsets I'm getting latters (D ,A etc...) . As for the fonts , sometimes they work and sometimes don't . Before generating the APK file I made sure I deleted the JET extension for all the files and also made sure I didn't have any errors prior creating the package . ( Just had some grammar DTD but as much as I know it should not arm the APK file .
Any idea what could be the issues ?
I'm using the latest Zooper pro version ,and Nexus 5 with 5.0
Thx in advance !

[HELP] [Blade L2] Need these files

I am trying to port Firefox OS in order to run under ZTE BLADE L2 (P182A10) , In order to start the project I need some files , I would like to get a ZIP containing the following files ...
AndroidBoard.mk
AndroidProducts.mk
BoardConfig.mk
extract-files.sh
full_<device_id>.mk
idc files for touchscreen
init files (init.rc, init.<target>.rc, uevent.rc, ...)
Thanks in advice , Best regards !

Categories

Resources