[Updated] A request for the devs (include already existing RTL support fix) - HD2 Android Q&A, Help & Troubleshooting and Genera

NOTE: This is a thread for the build devs.
Users who want to try this solution themselves should head over to TheAgent1982's thread: RTL Support Project, or go to the Hebrew guide at htcaddicts.com.
Update: Hey devs. Just so you'd know, we're even willing to do the framework.jar patching for you!
All we ask from you is to deodex your builds, and include the patched framework.jar (which appears to be almost the same for all builds, barring sense/non-sense differences).
PM if you're willing to let us help
Hey devs
First of all, thanks to all the devs who are doing a great work with everything!
There's one thing though that's a pox on all Android builds (even native android devices), and that is full-on right-to-left support. What do I mean?
Sure, there are Hebrew (and I assume Arabic) fonts in Android, and MOST applications work just fine, with the notable exceptions of Gmail, Google maps, and most native Google-apps, who all display Hebrew backwards.
A far more stressing issue, however, is that ALL android applications without exception display numbers backwards in right-to-left texts (so 10 becomes 01, 12 becomes 21, etc. It can get really confusing really fast).
Any way, there exists a solution for both these problems that can USUALLY be fixed with a medium amount of experience on native Android devices, but requires a bit of a hassle for HD2 owners.
Hopefully, you devs can incorporate this fix to future releases, once the fixed files are obtained it shouldn't be too hard to spread in the future.
Here's the process:
BTW, This only works on completely deodexed builds!
First, you have to download this zip file. It basically contains the fixed files and some other stuff you devs probably won't need.
The fix then involves extracting 'framework.jar' from the phone, and extracting the 'classes' file thusly:
Code:
java -jar baksmali-1.2.2.jar -o classes classes.dex
Then, in the subsequently created "classes" folder, you need to replace the files in "/classes/android/graphics/" and "classes/android/text" with the relevant files in the aforementioned zip file (from the corresponding folders, of course, under "files/froyo/")
After that is done, you need to re-create 'classes.dex' using:
Code:
java -Xmx512M -jar smali-1.2.2.jar classes -o classes_new.dex
Then, replace the old 'classes.dex' in 'framework.jar' with the new one (after renaming it back to 'classes.dex', of course), and push the new and fixed 'framework.jar' back to the phone.
Reboot, and voila: full-on Left-to-Right support!
I'm sure you devs have far better ways of including these fixed files without having to edit the entire thing every time, but what would I know?
We would be extremely appreciative to all you builds devs if you could incorporate those fixed 'classes' files in future builds, it'll save us a ton of work.
Also, if any of you guys also need volunteers for beta-testing this solution (as I'm sure you don't have Hebrew content to test it with), feel free to PM me.
Thank you for listening, and keep up the great work!
((PS, thanks to member silverbluem who helped simplify the process))

+1
i use the htc sense to read sms so
the msg wont appear word4 word3 word2 word1

+1 for that. although i am using bifbif ver 1.2 with CM6 and its OK here.

i've test it on Mdj Evolution 2.3 and it work perfect:
i never copied the files to /graphic only to /text folder
to put the Framework.jar in the device because we dont have recovery mode
use this commands:
to pull the file:
adb pull system/framework/framework.jar
install the attached files
adb push (your file location/framework.jar) system/framework/framework.jar
after putting the file restart the device
restart might take 5-10 min first run after applying the file
thanks

silverbluem said:
i've test it on Mdj Evolution 2.3 and it work perfect:
i never copied the files to /graphic only to /text folder
to put the Framework.jar in the device because we dont have recovery mode
use this commands:
to pull the file:
adb pull system/framework/framework.jar
install the attached files
adb push (your file location/framework.jar) system/framework/framework.jar
after putting the file restart the device
restart might take 5-10 min first run after applying the file
thanks
Click to expand...
Click to collapse
This sure does absolve us of needing to use Linux and needing all that messy system.ext2 stuff. I'll give it a try.
Still, it'd be nice to have these updated files already incorporated into future builds.

Ambious said:
This sure does absolve us of needing to use Linux and needing all that messy system.ext2 stuff. I'll give it a try.
Still, it'd be nice to have these updated files already incorporated into future builds.
Click to expand...
Click to collapse
still need to figure out how to replace the graphic file
cause the view is not perfect without it...

Ambious said:
Edit: I tried this method, and while it DID boot, the solution didn't work - numbers still backwards, Google applications still reverse.
Click to expand...
Click to collapse
what rom are you using?
EDIT: the only thing that need to change to you is the phone book is now need to be RTL and the number backwards
Gmail need the Graphic file

silverbluem said:
what rom are you using?
EDIT: the only thing that need to change to you is the phone book is now need to be RTL and the number backwards
Gmail need the Graphic file
Click to expand...
Click to collapse
My WM rom is OzDROID2.0, my Android rom is MDJ FroyoHD 3.7
Well, the phone book was never a problem for me, only hybrid text/numbers like in text messages etc.
Anyway, turns out I didn't modify framework.jar correctly, so I tried again using the script, and this time the phone just won't boot (like when I used Linux, it just hangs at boot screen).
Edit: Tried all day, all combinations of 'texts' files and with or w/o the 'graphics' file, and it always either just didn't fix anything (when I did the fix manually), or didn't boot at all (when I tried the script). This got me to conclude that I must not be doing it right, or else it would fail to boot for me as well (at least, I'm not even considering me being able to totally fix it myself )

Not a week ago, i was referred to the Samsung Galaxy S's newest ROM which came from Orange..
The rom includes (to my understanding) all the latest fixes regarding left to right text and even a hebrew version of Swype
It is easily retrievable. Obviously, it isn't legal to extract their work and use it to manutfacture a widespread ROM... but you can use it for personal use if you want to check how to fix that annoying hebrew thing.

+1000
Thanks

nir36 said:
Not a week ago, i was referred to the Samsung Galaxy S's newest ROM which came from Orange..
The rom includes (to my understanding) all the latest fixes regarding left to right text and even a hebrew version of Swype
It is easily retrievable. Obviously, it isn't legal to extract their work and use it to manutfacture a widespread ROM... but you can use it for personal use if you want to check how to fix that annoying hebrew thing.
Click to expand...
Click to collapse
It COULD be used to reverse engineer some of the stuff, but I doubt it's similar enough to the HD2 builds to use it.

+1
Thanks

Hebrew RTL Support
For those who are asking, i have made a working framework.jar , time ago.
It is working for most FROYO Sence, CM6.+ does not need it...
BUT NOT Desire HD Sence ( Because is is odex files, not only *.jar).
If needed i will upload it, and put a tutorial how to make it work...
Good Day!

RTL HEbrew
Please do that !
Thanks

Framework.jar
Tomorrow i will post the file with short tut how to put it, i must say that Ambious bring a good tut directly from iAndroid
Any way, Ambious, if i will upload the file please stick it to 1st page.
For now, good night...

This fix is a must for all RTL language users.
As mentioned, CM6+ already includes the fix and is working pretty good!
Problem is, for some reason, CM6 builds are rare...
I tried a few Sense builds but eventually i came back to a CM6 based build
because of it's support for RTL languages.
Devs, please include this fix in you builds, to make them as much accessible
as possible.
Thanks.

TheAgent1982 said:
Tomorrow i will post the file with short tut how to put it, i must say that Ambious bring a good tut directly from iAndroid
Any way, Ambious, if i will upload the file please stick it to 1st page.
For now, good night...
Click to expand...
Click to collapse
I sure will!
Thank you
However, as a Sense user myself, I'm pretty anxious to see if a fix can be applied to any of the Sense builds (especially DesireHD, which is my current build).

Well Organized Post
I have made well organized post for it:
RTL Support Post.
I must say, it will NOT Work for Desire HD for now, because it is ODEX and jar combined, and as you have read at iAndroid, for now there is NO solution for it,
and i do not have the experience and time to learn and convert it, since i am a student.
But i will give it a try between the semesters...

Hey,
The HD2 Desire HD builds are fully deodexed.
Froyo HD 3.7 for example: http://forum.xda-developers.com/showthread.php?t=795914
Maybe you could use them for preparing a RTL fix for when the deodexed desire HD ROMS come and for us HD2 android users.
Cheers.

It may be my semi-n00bness, but all my attempts to create a fix for DesireHD 3.7 failed.
Also, trying the supplied fix in the thread above on MDJ Sense Clean (non HD based) failed, wouldn't boot.
Hopefully someone can get it to work, and better yet - that the devs will incorporate those fixes in their builds.

Related

Creating Custom ROM for nexus one

To save me "re-inventing the wheel" can any one advise me on the propriety files needed from the N1 to build a custom ROM for it? e.g. libhtc_acustic.so and libhtc_ril.so
I am trying build a ROM from the open source project, so if anyone has advice for me please let me know.
Before you ask, the only reason i am doing this is because i have system apps i want to try on it and they need to be signed with the same key as the shared system uid. If you no a way i can build a ROM from the Nexus to do this please let me know.
Ne0
I don't believe the 2.1 source has hit the AOSP repos yet. So you won't be able to build a complete framework/kernel until that is released.
You could dump your N1 and then just unarchive and resign everything, but it would be a hell of a job I think
I realise 2.1 is not a public resource yet, but i am attempting to roll back to Eclair, just for the purpose of testing my system apps.
I want to resign everything and i dont mind if its a hell of a job!! What do you mean by unarchive? and whats the best way to get a complete dump?
Thanks for your help.
Ne0
Roll back to eclair won't work. The binary blob drivers are tied to a kernel and the kernels are (kinda) tied to the platform releases. So the N1 can only house 2.1 right now (IIRC)
What I was alluding to is that each APK/JAR contains a signature that you want to replace with a sig made by the test keys right?
So if you pulled /system from you're N1 and re-signed each apk and the framework with test keys and pushed that back or made and update.zip holding the re-signed apks (like the theme-makers) you should then be able to test your platform app that is also signed with test keys and a shared UID.
I too would like to know the answer to this.
SilentMobius said:
Roll back to eclair won't work. The binary blob drivers are tied to a kernel and the kernels are (kinda) tied to the platform releases. So the N1 can only house 2.1 right now (IIRC)
What I was alluding to is that each APK/JAR contains a signature that you want to replace with a sig made by the test keys right?
So if you pulled /system from you're N1 and re-signed each apk and the framework with test keys and pushed that back or made and update.zip holding the re-signed apks (like the theme-makers) you should then be able to test your platform app that is also signed with test keys and a shared UID.
Click to expand...
Click to collapse
SilentMobius said:
I don't believe the 2.1 source has hit the AOSP repos yet. So you won't be able to build a complete framework/kernel until that is released.
You could dump your N1 and then just unarchive and resign everything, but it would be a hell of a job I think
Click to expand...
Click to collapse
Correct ... resigning everything with test keys would enable some1 to test out said system apps (also signed with testkeys) ... but only as a test, as it would not be suitable for everyday ROM use.
Resigning with test keys is trivial (search for it) ... but I'd recommend you use the de-odex'd system (see the nexus1 theme templates in my sig).
The reason this is not a everyday solution is b/c resigning everything with testkeys will break the google checkin process, meaning signing into google and using the market will largely break.
But if this is truly just for some sorta system app test, that shouldn't matter.
Other than that, the OP's question is fairly broad in scope. A question like "how to create a custom ROM for nexus1" ... implies many things and many answers.
~enom~
enomther said:
Resigning with test keys is trivial (search for it) ... but I'd recommend you use the de-odex'd system (see the nexus1 theme templates in my sig).
The reason this is not a everyday solution is b/c resigning everything with testkeys will break the google checkin process, meaning signing into google and using the market will largely break.
~enom~
Click to expand...
Click to collapse
Thanks enom, great work. My system apps are just for testing, though it would be handy to make it into a complete ROM so i dont have to keep reflashing when i need to use them. Are you saying that it is not possible to get google checkin working this way? or just that no one has done it yet?
Ne0
Just resigned, sync'd with google, market works and i can install my system apps. All thanks to ~enom~, thanks for posting the deodexed system, saved me a bit of time!

[Application] Eris Master Application [R00T] - 6/20/10

This is NOT for those on 2.1 leak. It is ONLY for those on 1.5 Stock or 2.1 OTA OS version.
This is a Windows Only version. We are porting it to JAVA now for cross platform compatibility.
Major update - Re Uploaded the App
We have brought back the Eris Master App as the Android Master App. It has a new name in preparation for support for more Android devices. We are working on fixing the XP bug where files wont download. Until we get a full fix working, DO NOT USE IF YOUR ON WINDOWS XP Stay tuned for updates. We have also included an Error Log handling feature. If there are any errors, it will try to automatically send us an email with the log file. If it cannot send us the email, the log file will pop up for you so you can get in contact with us and send us the log so we can fix the issue.
Again, if you are on Windows XP, DO NOT USE. We have been getting a lot of email logs from those on XP, and we know its not working, so dont bother wasting your time trying to see if it works.
Download the application from here: http://tinyurl.com/2doknnb then run the self extracting .exe zip file, and let it extract to its default location, which is c:\AMA\ then go into the folder there and run the application. Select a ROM to download, and the Root Image, and Recovery Image, then start the downloads.
If you need any support, it is always available on the IRC server.
You can also follow us on Twitter: www.twitter.com/THE_ECLIPS3
Check the thread and the IRC server for updates.
ECLIPS3 and Jamezelle
- Fixed files not downloading in windows XP a little bit more, full fix in works
- Fixes a few minor bug fixes
- Streamlined the code more
This App is being worked on by ECLIPS3 and Jamezelle
We are now on Google Code. Please visit the page here to let us know of any bugs / errors you get while using the app. It is not meant to help you solve your problem there. That is what this thread or our IRC server is for. The IRC server login info is at the bottom of my signature. A web based IRC server is available through this link.
On step 2, when you get to the part of doing the update. our app will tell you to push volume up to start update. you might also have to push the trackball in as well. the link will say <action> YES. push trackball in to start update.
- Market updates for apps. (coming soon)
We have figured out how to restore apps, and restore market update links, need to roll it into the app, but it is possible. We might even have a way to restore links for those non root. Any other app that does market update links requires root first to backup the links.
UPDATE 5/5/2010
Version 2.1 (released 5/5/2010)
Files are now hosted on http://android.grdlock.net
-Fixed where app wont upload custom rom to phone
-New download links for files
-Ability to download roms via app, instead of including them
-Choose what rom to install easier
-Download of ROOT Image instead of including it
-Progress bar for downloads
-Splash Image install
-Cleaned up a lot of the code
-Many bug fixes
-Made user interaction a lot more friendly
-Fix device not found in app.
-Check if phone is connected to PC. If not, setup will not continue.
-Fixed spelling issue.
We have now finished the core of the Application. What it consists of is a GUI (Graphical User Interface) to make going from 1.5 stock to 2.1 root with a custom ROM installed. There is also an easy way to reboot your phone, enter the recovery mode, and enter the bootloader mode. Finally the third part available in this release is a way to backup all of your applications along with restoring all of them. Currently this is root only. We do have an update coming to backup apps for non root.
For rooting there is a 4 step process. Just go through the steps, one at a time and make sure you read and pay attention to the instructions.
We will be adding more functionality and options to this application. Stay tuned for future updates. If there is an update, just re download the whole app.
Please let us know of any bugs or options you would like to see in the application and we will do what we can to add those in or fix those bugs.
Prereq's for using the application:
You must have Microsoft .NET version 4. Direct Download Link
Then also download the drivers file. Unzip it to your desktop. Follow these instructions on how to install a driver. Select have disc, then navigate to your desktop, inside the corresponding folder, and continue the prompts.
Requests
- Support for other android phones.
- Save Layout and Scenes. (Working on now)
- backup apps for those NOT ROOTED (Have it working. need to roll it into an update)
- Restore email settings for Gmail and HTC Mail (Working on now)
- Download speed for file downloads
- Boot andimations (new name for animations)
- Progress bar for copying files to sdcard
So i tried this out and it works great. It is a really nice addition to the anyones android tool set.
I did notice that once i reinstalled all apps it did take quite a long time to load all of them again... 5 minutes. That was ok though because it saved me alot more time from having to download and install all of them again. I did i reboot too just to make sure.
Thanks a lot for this script!
note: put the scripts in your sdk\tools section on your computer.
ch4sethe5un said:
So i tried this out and it works great. It is a really nice addition to the anyones android tool set.
I did notice that once i reinstalled all apps it did take quite a long time to load all of them again... 5 minutes. That was ok thought because it saved me alot more time from having to download and install all of them again. I did i reboot too just to make sure.
Thanks a lot for this script!
note: put the scripts in your sdk\tools section on your computer.
Click to expand...
Click to collapse
Thanks for your feedback. I am working on creating a standalone application for backing up the apps, reinstalling, rebooting, rebooting into bootloader and recovery. It will also be able to install the bootanimation files amongst other things. hopefully i will be able to have it do the rooting process as well. though im not sure how often that will be used considering most have already rooted their phones. if some people would like to vote on those options and let me know what they want as well as requests for other features that would be great.
bootanimation is good and boot image logo like in here, maybe?
http://forum.xda-developers.com/showthread.php?t=654042
though im not sure how often that will be used considering most have already rooted their phones.
Click to expand...
Click to collapse
Thats not necessarily true, because 'all people' aren't trolling the internet like we are all the time.
So im sure there are people that dont even know we have root access on the eris. I bet there are also a ton of people that dont know what root is and even how to go about it, so an automated system would be a great addition.
Most of the world is not technology oriented. Think of (most)Best Buy shoppers.. hahah (i used to sell computers there) They look for someone to 'deal' with the tech for them.
i may just be a ritard but i plug my phone in to computer with debugged mode on, i have the skd driver thing updated and my sd card is mounted and it says error device not found any idea wat im doing wrong like i said im a ritard lol thanks guys yall do amazing work keep it up!!!!!!
I use these scripts whenever I flash! I will be glad to test your app!
iamgodnkg said:
i may just be a ritard but i plug my phone in to computer with debugged mode on, i have the skd driver thing updated and my sd card is mounted and it says error device not found any idea wat im doing wrong like i said im a ritard lol thanks guys yall do amazing work keep it up!!!!!!
Click to expand...
Click to collapse
dont mount your sd just leave it ur phone on charge. And follow the instructions that are mentioned in the script before you start it.
I the core of the app done which is going from stock 1.5 to 2.1 root, with recovery image and new rom installing. i have a few people beta testing it for me. once i make sure it is stable for the XDA community i will release that with periodic update of new features.
ECLIPS3 said:
I the core of the app done which is going from stock 1.5 to 2.1 root, with recovery image and new rom installing. i have a few people beta testing it for me. once i make sure it is stable for the XDA community i will release that with periodic update of new features.
Click to expand...
Click to collapse
I was having issues using the scripts to backup on aloysius 2.0 port I did yesterday. It refused to backup; I'm not sure why..
Spencer_Moore said:
I was having issues using the scripts to backup on aloysius 2.0 port I did yesterday. It refused to backup; I'm not sure why..
Click to expand...
Click to collapse
the rom you ported, its a hero rom? thats probably why because i have found that roms that have been ported from other devices have issues with my scripts, which is because of how the rom and its core are built. will try and add that functionality at some point.
for everyone else. these scripts only are verified to work on eris based roms and legend based roms.
Great job! saves so much time and work!
UPDATE: Application is now released. please view first post for more info.
Nice work!
ch4sethe5un said:
So i tried this out and it works great. It is a really nice addition to the anyones android tool set.
I did notice that once i reinstalled all apps it did take quite a long time to load all of them again... 5 minutes. That was ok though because it saved me alot more time from having to download and install all of them again. I did i reboot too just to make sure.
Thanks a lot for this script!
note: put the scripts in your sdk\tools section on your computer.
Click to expand...
Click to collapse
On fresh installs, or after wiping, it takes some time to build up the cache again.
Eris Master App update file
The update file can not be found.
he requested URL /Eris_Master_App_By_ECLIPS3.exe was not found on this server.
Re: [Application] Eris Master Application
The update file can not be found.
he requested URL /Eris_Master_App_By_ECLIPS3.exe was not found on this server.
Click to expand...
Click to collapse
that is because I don't have an update for it yet.
Sent from my Eris using the XDA mobile application powered by Tapatalk
Eris Master App update file
ECLIPS3,
Ok....Well my Eris now has the latest 2.1 ROM and when I ran the program it told me that the ROM installed is older that the one being installed. So if I replace the newer rom in the upload/root folder should I be ok?
-Tony
Re: [Application] Eris Master Application
Are you on 2.1 leak, 1.5, or 2.1 root? This only works on 2.1. The file in the root folder is the 2.1 root image. In rom folder is custom roms to install. An update will be released today.
Sent from my Eris using the XDA mobile application powered by Tapatalk
Eris Master App update file
ECLIPS3,
I am on the 2nd 2.1 leak unrooted.
-Tony
Re: [Application] Eris Master Application
I hate to say it but please read first post again. It will be answered for you.
Sent from my Eris using the XDA mobile application powered by Tapatalk
Eris Master App update file
Ok..sorry Sir!

[2011 DISCONTINUED] Android Theming & Tweaking [NEW PROJECT WANTED]

DISCONTINUED DUE TO GINGERBREAD RELEASE AND NO TIME TO REWRITE ENTIRE SCRIPT
WILLING TO START NEW PROJECT WITH SOMEONE ELSE
INBOX ME IF YOU WANT MY HELP FOR A PROJECT
This application will allow you to:
Do everything to theme froyo
And More!!!
Android Theming & Tweaking v2 Alpha
Download below
2.0 Development - Enhancements Finished:
Work Directory can be placed anywhere
Work Directory Move & Update
Animated Splash Screen
Phone tools by Che123 & Me
using windows 7, it is not working for me! I click on 'click me' file and nothing happen
Edit: Click me.bat doesn't open menu.bat automatically, after I click 'click me.bat' I had to click 'menu.bat' to get the options to appear.
works like a charm~
good to see you're porting this over
i'll include the windows version in the original thread and have every OS in one place
all thanks for the windows version go to you
i'll also try and fix any bugs as i know better what the scripts are doing
blackfox888 said:
using windows 7, it is not working for me! I click on 'click me' file and nothing happen
Edit: Click me.bat doesn't open menu.bat automatically, after I click 'click me.bat' I had to click 'menu.bat' to get the options to appear.
Click to expand...
Click to collapse
Sorry for that, I'll have a look tomorrow and see what's wrong
I'll post a new update with lots of fixes tomorrow
(Strict parents - spent so long on computer they nagged me to turn it off, I'm 16 and they still boss me around lol)
I'll make sure all menus work (including click me) and most of scripts work properly
//edit
The only reason I know of for it not working is because you have a space in your username for Windows. Fix will be up today
//edit
The reason I didn't post it in yours because its too buggy to display in your thread, I wanted to keep a high standard in your thread. Once its finished I'll post it in yours
Sent from my HTC Desire using XDA App
shoey-n said:
The reason I didn't post it in yours because its too buggy to display in your thread, I wanted to keep a high standard in your thread. Once its finished I'll post it in yours
Click to expand...
Click to collapse
Would greatly appreciate that
Thanks again for your porting work
Regards
Alpha 2 Released!
Fixed all visible bugs, all menus (including CLICK-ME) should now all work
Most scripts should work properly
Report all bugs to thread (either post up error shown or name of script)
Any suggestions for extra features are welcome as well (I'll tell cgrec92 about them for his version as well)
shoey-n said:
Alpha 2 Released!
Fixed all visible bugs, all menus (including CLICK-ME) should now all work
Most scripts should work properly
Report all bugs to thread (either post up error shown or name of script)
Any suggestions for extra features are welcome as well (I'll tell cgrec92 about them for his version as well)
Click to expand...
Click to collapse
the click-me still not working for me on windows 7 x64
To get the patch work in windows 7 all you need to do
is place the "ThemePro" folder on you desktop!!
mine wasn't working either until i did that
nope still not working
then also try to enter the
"properties" of both the '.bat' files in the directory and play with the "compatibility" options.
hmmm, I don't see why it doesn't work, I'll do some research about x64 because it works fine x32
Can you post up the path to your desktop please (if you don't want to show username, replace with ** but if there's a space in your username include it clearly)
Found a better way of calling the other files, it will work with everyone
(sorry for issues VeeDubZ)
You will be able to run Theme-Pro from anywhere you want, no need to place on Desktop
The Work Directory will still be placed to Desktop by default, I'm adding an option to let you specify the directory you wish to put it
(e.g Where would you like to place your Work Directory?: C:\Users\shoey-n\My Documents)
The update will be up today, and I hope to merge most of Theme-Pro 3.0 features by tomorrow
Hi shoey-n,
Why do you use this command line in CLICK-ME.bat :
call "%homedrive%%homepath%\Desktop\ThemePro\menu.bat"
Click to expand...
Click to collapse
instead of this one :
call "menu.bat"
Click to expand...
Click to collapse
?
I had the same issue than VeeDubZ with the original click-me.bat and by using this command line, it solved it.
Cheers
Thanks for the suggestion, I just noticed that when I was testing out my new way of doing it. That way will be much easier. I'm updating it with that now
New version should be up tonight
//edit
Sorry guys, I've updated the script but haven't had time to upload ( internet is really slow, so it'll take about 15 minutes )
So I'll do a major update for the release tomorrow, just for you lot
thanks for the fix, no worries about the problems with it, i started using the linux version for now, your version will just save me rebooting to use that one.
my path is the standard path that a user would use without any spaces C:\Users\vaughn\
Thanks for the progress update, looking forward to the release.
V.
Alpha 3 is out, few changes and enhancements to this version
Been tested outside of ThemePro but not inside. Hopefully new method works (hopefully uploaded right one )
Added transparent notification drawer mod (uploading for themepro 3.1 Mac/Linux in 5mins, compiling it and adding to scripts right now)
Changelog is up on first post
alpha 3 broke it all for me... none of the options work, Cmd spits out an error about "er" not being a system variable, and not being able to find the directory...
That means I made a typo somewhere, the way I done it means I only have to check 2 files so should be easy to fix, thanks for reporting the bug, fix will be up in the morning
Sent from my HTC Desire using XDA App
Beaverman20 said:
alpha 3 broke it all for me... none of the options work, Cmd spits out an error about "er" not being a system variable, and not being able to find the directory...
Click to expand...
Click to collapse
Thanks for your bug reporting, it's all fixed now
I've tested it and can confirm working

[Q] A call out to the Galaxy S ROM delevopers, help needed!

Well hello everyone.
I am an application development student from Belgium.
I am proficient in Java, VB.NET, some c/c++ and also PHP/JS/HTML/CSS
Anyways, my recent interest has been going out to creating custom roms for the galaxy S!
The problem now is though, I was able to find some guides and such, but most were incomplete, and for HTC(and other) devices.
I have no idea what is different between making a ROM for galaxy S or a ROM for an HTC device.
If anyone would like to link me to some good resources that can help me on my way, or would like to collaborate (and in the meanwhile teach me a bit) I would be more than happy! (I am open for collaboration as I am pretty proficient in Java and I'm always happy to code and learn more about coding!)
I think the question is really want you want to do!
Custom ROMs for Android are as simple as using recovery console to replace files on the system with your own versions.
ie. Replace the framework.apk which contains all theme images with your own modified one, which you can use to skin the device. Same for replacing other system apps.
Unfortunately, most of these apps are closed source, so modifying them is difficult. The stock android system has open source versions of most of them though, and you can modify those and build them, and then replace the ones on the device. I'm not entirely sure how to build them up though, but it probably isn't too hard.
Then there are custom kernels, which let you actually change the underlying linux system underneath android - Samsung has an open source version of the kernel available that you can compile, and then flash to your phone using Odin or other tools. Compiling the kernel is pretty tricky though.
Well i'm really talking about stuff like SamSet, MoDaCo, Doc's ROM and others.
I'm not saying I want to create a pro ROM in a day or anything, but i'd really love to learn more to get better (always looking for more stuff to put on the resume, I guess?!)
Thanks a lot,
Kenny
Bump for some help
(sorry for the double post but i'm really eager to learn)
I don't have time to give a detailed response right now. However you will want to read up on yaffs (file system) and odexing/deodexing ROMs.
Thank you I will definately do that,
I am following a guide now to start out creating custom ROMs for android, however it was written for Motorola Droid and I have no idea what you have to do different for a samsung galaxy s.
I am a good coder, even though I say so myself, with a lot of experience. I also have a lot of linux experience, you name it
Only the problem is the old, and much known "where do I get started?"
So if anyone can point me out in the right direction on that, tell me how/where you started out, I would appreciate it greatly!
Thanks!
Very sorry to bump again
I set up my environment in ubuntu today to get started (just gotta fix a few errors, didn't know android wouldn't compile on java 1.6, only on 1.5)
Anyways, still need some help here! thanks!
Again I am awefully sorry for the bump here but i'd really like some help.
Note that i'm not a newbie at coding whatsoever and i'm not unfamiliar with some hardcore java, c/c++ and other languages, I'm just having trouble getting started when it comes to modding an existing android release (there are tutorials on HTC and other devices but some methods do not apply to the galaxy S)
If you're trying to create a ROM from scratch then unfortunately you're out of luck at the moment. No one has really managed to do so yet. By "from scratch" I mean the Android Open Source Project (i.e. official Android git repository).
What you can do is grab an existing firmware. Extract the contents, de-odex the apks, modify them or add new apks, optionally you can also compile a custom SGS kernel using Samsung's kernel source. Then you can re-odex the ROM, pack it back up and distribute it.
There's no real "starting place" as such and you won't yet find any tutorials about how to create SGS ROMs. Just give it a go and see where you get.
Yes, I do mean creating a ROM from stock samsung firmware, of course.
So my next logical question would be now:
How do I go over extracting contents from the existing samsung firmware, de-odexing and so on?
Any links/guides/tips are greatly appreciated, as long as they are applicable to this cell phone and not totally crap, thanks!
Samsung uses rfs, I think you should know. There is a thread somewhere in this forum regarding extracting .rfs file. Understood you need Debian though.
For some readup, go search for a famous guy named JesusFreke. Tons of materials...
Hope that from here onwards, this can lead you on, and to find out more. Google is your friend too...
I'm afraid my biggest problems already occur in setting up the environment, so it's really the very beginning that gets me stuck, i'm sure coding would be a bikeride compared to setting up the environment for me (i'm no hero in linux,not at all, i'm afraid)
How the hell do I get from point A (being downloading the full source) to point B (starting to create a custom ROM?)
thanks
of course if anyone has the time, and wants to, you can PM me your msn or something, if anyone is up to it
Raykoid666 said:
I'm afraid my biggest problems already occur in setting up the environment, so it's really the very beginning that gets me stuck, i'm sure coding would be a bikeride compared to setting up the environment for me (i'm no hero in linux,not at all, i'm afraid)
How the hell do I get from point A (being downloading the full source) to point B (starting to create a custom ROM?)
thanks
of course if anyone has the time, and wants to, you can PM me your msn or something, if anyone is up to it
Click to expand...
Click to collapse
Agreed completely! Getting a full cross-compilation to Samsung's Android going is seriously difficult! There have been some promises for tutorials and guides for setting things up though, but none have appeared yet. Probably because it's hard!
Well thank you for agreeing with me on that.
I am really hoping for anyone that can help me out here, either on here or in private, and give some detailed instructions on how to get started.
Hell there is enough information on creating roms alread, deodexing, adding/removing apps etc etc etc... The real problem lies in setting everything up properly.
I think I have gotten to the point where I'm compiling the android source (without samsung specific files)
note i'm saying "i think i am compiling" because i'm hoping it won't error out on me again after an hour of compiling!
But once that is done... I have no idea where to go next, where to get the samsung specific files, or what to do with them whatsoever once i have them
thanks!
Android generic source won't actually help you much. Samsung has made a huge number of changes to it, and while it is all open source, backporting their changes to get your stock source running on the phone is a major undertaking. I believe cyanogenmod was actually working on this, but it seems without much success so far.
What the other rom makers you see are doing is taking a snapshot of a running rom, copying over all of the APKs and the files on a running device, and then tweaking those. ie. Opening up framework-res.apk and changing the image files inside.
The update.zip roms that are what most people are doing are really just using the Android recovery to replace files on the phone with their own versions. Since the underlying system is linux, and everything is a file, this actually works pretty well.
The kernel development effort is completely separate from the rest of the system though, and Samsung has provided the entire source tree that just has to be compiled. I'm a bit stumped myself on all the details of setting it up, but I have seen some threads on this forum about it, and it didn't seem too bad to set up. Apparently you shouldn't use the codesourcery toolchain though, or something. Not too clued up on it, sorry. Hopefully someone with the details can chime in, or give us a link to the old post on it (I'm failing to find it using the search function! )
Alright sounds good!
So these recovery files you are talking about (the contents of /system) how do i retrieve those from a base ROM such as JM7 or the likes after a clean flash?)
Raykoid666 said:
Alright sounds good!
So these recovery files you are talking about (the contents of /system) how do i retrieve those from a base ROM such as JM7 or the likes after a clean flash?)
Click to expand...
Click to collapse
Root your phone, zip them up onto the sdcard, and then copy them off.
There are probably better methods, but this works fine.
Also, with credits to Unhelpful, he has told me that the correct toolchain to be using is 'uClibc or eglibc toolchain with ct-ng'. I have no idea what to do with that yet, but it's a start.
RyanZA said:
Root your phone, zip them up onto the sdcard, and then copy them off.
There are probably better methods, but this works fine.
Also, with credits to Unhelpful, he has told me that the correct toolchain to be using is 'uClibc or eglibc toolchain with ct-ng'. I have no idea what to do with that yet, but it's a start.
Click to expand...
Click to collapse
You don't even need to root your phone to pull /system Ryan
adb pull /system <random folder>
is all you need ^^
Alright thank you, I managed to get all the /system files using abd pull /system
now next thing up would be de-odexing right, before I go editing stuff?
Now before I go de-odexing. Can anyone tell me what exactly de-odexing is and why I need it?
and what do I need to do to create an update.zip again?
thanks a lot all!
Tayutama said:
You don't even need to root your phone to pull /system Ryan
adb pull /system <random folder>
is all you need ^^
Click to expand...
Click to collapse
Haha cool, didn't know you could pull whole folders!
Raykoid666 said:
Alright thank you, I managed to get all the /system files using abd pull /system
now next thing up would be de-odexing right, before I go editing stuff?
Now before I go de-odexing. Can anyone tell me what exactly de-odexing is and why I need it?
and what do I need to do to create an update.zip again?
thanks a lot all!
Click to expand...
Click to collapse
The apk files in Android are odexed - that means they have a special index applied for dalvik that speeds them up somehow! I don't know how, I haven't checked how it actually works.
The important point is though:
odexed is faster, but you can't edit it because of signatures or something technical
deodexed means you can change it however you want
More useful info can be found from google - lots of it!
update.zip is easy - it's a zip file in a special format that can be understood by Android's recovery console. The easiest way to do it is to grab an existing update.zip and modify it as needed. Tayutama has millions of em around, so use his!
Then you need to sign it once you're finished with it so that the SGS will accept it. Samsung made a boo-boo and didn't disable the test keys for the 2.1 SGS firmwares. That makes it easy!
http://www.londatiga.net/it/how-to-sign-apk-zip-files/
Just use the test keys to sign it, and then copy it to /sdcard/update.zip and reboot into recovery and it'll work.

Kernals, Nand, full functioning Android?

I gave my Dad my old blackstone when my Desore turned up.
He has winged that he can't get the marketplace and about all those general WinMo issues that people have (it dead etc)
I can't find a clear message on the status of NANDROID for blackstone.
TIAD8s site has NAND versions that are missing bluetooth or other funcitons
It appears there are basic functions that are lost according which kernal is being run.
I'm willing to do one completely convoluted install just to get Froyo style on my dads phone but only once. I never have trouble with new flashing procedures (slow and steady wins the race) but I don't want to hand him back the phone broken especially as he uses hands free in the car
So - can anyone say categorically that a NAND version work fully?
Categorically: Not yet. Wondering if ever...
Forget it...
Think Tiad8 only has test team working on a NAND build anyway?
Not seen it in action yet
Kernals?! ....
I find deliberate typos (NOT TEXT SPEAK) can get people to engage.
olly230 said:
I find deliberate typos (NOT TEXT SPEAK) can get people to engage.
Click to expand...
Click to collapse
Is that also why you called it a "Desore" instead of Desire?
lol, you made a typo or you just didn't know. No need to try and rationalize it .
t8 let people wait and wait.
though it's good to try, we don't know whether he really works on it as he start many threads to other device besieds HD.
arrrghhh said:
Is that also why you called it a "Desore" instead of Desire?
lol, you made a typo or you just didn't know. No need to try and rationalize it .
Click to expand...
Click to collapse
Desore was a proper typo, I'll put my hands up to that
Tiad8's just kidding us, it will send to test team files from NVIDIA Tegra device. Only RUU_signed is working, but I think it's my modded LK Bootloader from Rhodium (with modified mtype). Something's wrong with this nand.
I have runned this but touchscreen not working properly and I don't have GSM.
MietasSR said:
Tiad8's just kidding us, it will send to test team files from NVIDIA Tegra device. Only RUU_signed is working, but I think it's my modded LK Bootloader from Rhodium (with modified mtype). Something's wrong with this nand.
I have runned this but touchscreen not working properly and I don't have GSM.
Click to expand...
Click to collapse
I thought you were part of his developer team because he now give credits to you for your ruu and recovery.img (at last he ist starting to do this: giving credits) in the NAND download post.
With your post here I had to smile a little: now your name is connected to the "null nands" for many consumers in tiad8's forum. Even I thought you're part of it now and that's why I tried the build yesterday again: Boot partition to small and Kernel not working.
I think now it's getting to the critical point in the NAND experiments: correct or good partition sizes for NAND (some members there startet to change partition values in the image files with a hex editor) and more important: building a working kernel with modules for Blackstone NAND.
Until now all experiments reached a few preparing goals: getting a working .nbh for starting into fastboot, getting a recovery.img for a working CWM etc.
But now (if I am completely wrong please correct me, I really want to know) you have to change partition and ram parameters in clk and hope you will spare the protected parts.
And after that: Kernel and Modules for Blackstone on Nand. I am starting to believe here would be the real point for developers.
I started to build Kernel and Modules, a Boot Environment (initrdgz) from git and packed them with changed parameters in a Tinboot-Package. I can flash with the .nbh, I can boot, I got a lot of errors in init first, but I succeeded in running and loading the kernel, I get access to the changed mtd partitions etc. Debugging on Blackstone with Echo "" ist quite funny.
I got stuck when I tried to cp files from SD card to the /system partition (which is mounted r/w) - I can cp files from / to /system anyway. Big ?? for me. But I like to play with it a little more, because I learned a lot.
ThaiDai said:
I thought you were part of his developer team because he now give credits to you for your ruu and recovery.img (at last he ist starting to do this: giving credits) in the NAND download post..
Click to expand...
Click to collapse
Me Too!! Does this mean you are working on different things?

Categories

Resources