how to make custom android.jar library? - Android Software Development

I want to modify android.jar library and use it in my device.
How do I install custom-made android.jar library to my device?
Do I need to get entire android source code and compile with
my modified android.jar? (create my own ROM)
Or is there simpler way?
Thank you.

Related

making roms

Hello All,
Firstly, I would like to say how great this website is and tip my hat off to all the people involved in maintaining this site.
I am very new to the whole XDA modification scene and have a ton of newbie questions. I know some of these questions have been asked before; however I still have not grasped the concepts fully. I have tried to restate the questions asked before so that I (and hopefully other newbie’s ) can fully understand how to modify XDA’s.
Any help anyone can provide will be greatly appreciated.
So here goes the questions:
When creating a customized ROM (using mkrom) my understanding is that one has re-create the initobj.txt and the Default.reg. Is it possible just to install all the applications you want, and then download the initobj.txt and the Default.reg and place them in the cfg directory for the custom ROM?
If this does not work, how does one know what to edit in these files?
When mkrom request a Rom image, is it requesting the backup ROM IMAGE? Will any image do?
When backing up a ROM, what option does one have to select to backup the operating system, settings and programs inside the ROM? Does CE do all of this?
What is CE, Boot, GSM stand for in the boot menu?
If one wants to just create a new boot image, what is the simplest way? Does one have to create a whole new ROM?
If one wants to just have the unlocking software, what is the simplest way? Does one have to create a whole new ROM?
When creating a Rom using RomKitchen, it asks you add Add your own ROM files? Is this your backup rom?
In RomKitchen one of the readme files asks for:
bootimage.bmp,_initobj.txt,_initdb.ini,_default.reg,xipchain
Is the default.reg and the initobj.txt in this directory have to be pre altered for the new programs one wants in the Rom like the way the mkrom wants them? Does the setup program create them for you?
Is the bootloader.nb0 file specific to the boot loader you have?
Very confused what is exactly needed in the /CFG directory.
In the CFG directory do you place your backup Rom dump?
Some ideas.
The most important issue is to know that you have to put the files you want to add int the folder files2 (up to 5 MB minus the amount in the folder directory) or in files1 (up to 900 KB).
The key is to manage default.reg (the registry of windows CE), you have to register the .exe's and dll's you want to use. It can be very useful for you the ssnap.exe (to show registry modifications by autoinstallabe programs) and a registry editor.
In initobj.txt, there are only links, but you should put links if you want to access to your programs in Start Menu-> Programs or in the Start Menu.
I suggest you to make different posts for each question, it would make easier to answer.
Regards.

Modify apk resources programmatically

I have tried to modify an apk with ZipFile and ZipOutputStream classes but I don´t find the way to replace files with these classes.
I want to modify apk resources from Java.
Any ideas?
Thanks in advance.

[Q] Help needed adding a Language to LatinIME

OK, so in looking at the source code, it seems that all I need to do is add a folder called /xml-az/ to /platform/packages/inputmethods/LatinIME.git/java/res/ that contains the custom kbd_qwerty.xml and kbd_qwerty_black.xml files for the language (in this case Azerbaijani which is a language very very similar to Turkish).
Eventually what I would like to do is create an APK to insert that code, but I need some help. I can write Java code so editing the source is not so much the problem. I need more help in creating the apk patch for testing and then the process in submitting the code. Anyone wanna help?

Compiling my own Support library into JAR

(This is a repost from Stack Overflow, so if you prefer to earn points there see this question: http://stackoverflow.com/questions/17218475/build-android-support-library-into-jar )
We all know Android Support Library has bugs. Some of them trivial and not fixed for years. I need to fix a few of them, but... how do I compile ASL source into usable JAR? What I did until now - in Eclipse created a directory in which I've put all classes from support library source. I added android.jar to the project and it doesn't show any errors after this. Then I used "Export..." into jar, which finished with some warnings and a size very close to ariginal android-support-v13.jar. Unfortunately my Android application with this self-built library fails with lots of missing classes reported at runtime (meaning it compiles without a problem).

Help - Adding org.jboss.netty to my application?

I'm trying to write server-sent event protocol and I want to use the org.jboss.netty to my app.
1. Is it a good practice to use this folder in android application?
2. How can I add this package?
Thanks,
Dudu
you can add netty jar file in libs folder of you android project

Categories

Resources