Modifying Android stock applications - Android Software/Hacking General [Developers Only]

Hello all,
I am quite new so please pardon my ignorance.
I am new to Android and trying to develop some applications with some success.
What I want to know is, if I want to extend/change a system application, for example, Phone.apk file) how can I do so without downloading the whole ROM source from GIT repositories. Also I will like to know is there a way to debug the same without building the whole source every time?
All the questions I searched were related to Java or general Android application development. I could not find anything related to extending/changing system applications. Maybe I didn't searched well enough. If yes, please point me to the right thread.
Any help will be hugely appreciated.
Regards,
Yogesh.

Related

How to create a ROM...

Hi all, i'm new to this forum so i will first give an introduction of my Android experience.
I have been developing apps and android for the ADP1 (g1) phone, these are mainly for gaining access to telephony data and displaying it for Telecom engineers. I would like to port this code into the Magic/Sapphire, though (please correct me if i am wrong) there is no support for building the android code for a magic and it appears you cannot flash system.img onto the magic.
I have been looking at the ROM's that are about and was wondering how you managed to make them?
If there is already a thread for this can someone point me in the right direction as i have been unable to find it, otherwise can someone post a guide on how to approach this. Thanks.
Liam

Dont know where to start

Hi every one I dont know where to start i want to make my own rom from source,build it,modify it etc.But i dont know where to start.I know how to build rom from source(learned it from the tutorial on source.android) but i dont know what do those codes mean.i searched on google but cant find an easy tutorial.If i build rom from source how do i make it work on my phone.How do i FIX bugs on my roms,modify it Help please
Check out the chef central section under android. There are a lot of great people working on making development accessible.
For a pure AOSP ROM you are going to have a bit more work, but be rewarded in the end. There is also cyanogenmod and other custom distributions you can build from source and modify.
If you are familiar with C and Java programming you can dig into the actual development more by writing apps or changing source code. If you don't you may want to start on that road. Other wise you will be basically cutting and pasting from everyone else, which doesn't get you any credit.
Themes are also a good place to start. There are lots of good guides in the theme section and people are willing to help if you ask nicely and appropriately.
I have done a bit of this foot work and come to the conclusion, I need to learn programming then come back to source. It is overwhelming to take on an entire operating system in a foreign language, especially when that language has to be perfect to function!
Good luck in your endeavors. Feel free to hit me up for the little knowledge I have!
Sent from my PC36100 using xda premium
But! where to learn
First i want to learn the basics of Rom
are you familiar with Java, C and C++? These are going to be very useful in understanding the "codes" as that is what they are written in. You are also going to have to build AOSP specific for your device, which will require adding your device to the device tree and extracting the necessary drivers and files that are specific to your device. Cyanogenmod has many devices already added to their github and you would simply clone the folder for your device, then build AOSP source and issue make using the device specific folder.
THIS is a helpful tool, and yes it will compile pure AOSP as well.
THIS is also a very helpful tutorial, and you can modify instructions to work for Gingerbread.
If you just want to learn to build and modify the source start with Cyanogenmod build from their source first. You can also build the kernel if you choose but that is a bit more complicated. After you have both of those building without errors then start making changes that you want to see.
The CM Wiki has some good info http://wiki.cyanogenmod.com/wiki/Building_from_source
http://wiki.cyanogenmod.com/wiki/Building_Kernel_from_source

Creating a rom based off CM(Galaxy S4), How ?

A bit of infos before starting this thread. I'm using a Samsung Galaxy S4 Canadian, I have a high end computer(maybe that helps for coding,stuff like that) and I have "medium" knowledge on rooting/flashing,etc. I am a great designer, well for myself, I think i'm good. So I can edit or create icons and themes for new rom!
I say medium, because the only thing I really know about this kind of stuff,is rooting,flashing,installing roms and pretty much that honestly.
I already downloading the Android SDK to test those custom roms i'd like to create. I thought of doing like a couple of guys on here, using the CM Source? and just adding stuff,etc.
--
What i'm looking to do, is creating a rom based of CM for the Galaxy S4 and just in general a little side project for myself and adding some infos in my head; Some may laugh because of the lack of knowledge, but hey! we all started somewhere
I'm asking the community of dev's or just users, do you have some threads or some stuff to download to "Start" this project ?
Some things I should read before, I won't test rom's on my phone as it's a daily phone, i'll use the emulator instead(AVD or SDK) and i'm already searching on how to run it.
If you have any useful youtube videos i'll gladly accept them
I found a tutorial on how to build a rom but for the Nexus 4, I guess it's the same process but different sources ?
I'll search for the sources of Cm for the Galaxy s4 but if anyone reads this thread and knows where to get it, please link me!
Thanks to the community, this may also be useful for other users. Thanks!
Okay, I will help
1st off, let me teach you some basics.
1.) You cannot test roms on the android sdk, the android sdk has nothing to do with roms, its for building apps and java programming. It will not help you with anything if an issue goes wrong in a rom, well only the adb (android debugging bridge) for taking locats.
2.) You cannot compile a rom on windows, only linux, preferably ubuntu. So you need to just download cm11 for your device and extract the rom zip.
I will tell you more later, but its like 1pm here Goodnight

converting android app to windows phone app ! help

Hi everbody! My Question is a bit obvious from title.But it not a Question about that project( project astoria i guess, i dont remember the name now). My Question is that we are able to extract source code from an android application. Can we use that source code to compile a windows application( with some little changes in coding) ? If we can , then please tell me the process or just tell me basic topic that i should google to achieve this thank you ?

[Completed] Getting into android.

Hi,
So I've been getting into android the past month and really started liking it. I have however some questions about how an android (or Linux) operating system works. I also have some questions about how the Kernel and the OS work together and what I need to know about it before I start learning more about and getting into developing.
1. Does the Kernel command the OS or the other way around?
2. Can I create a custom Kernel specifically for an OS?
3. How much experience do I need to create a custom Kernel and is it phone specific in the sense that if I make Kernel A for phone A will it be easier to create Kernel B for phone B?
I'm not native speaking, so please ignore any grammar issues.
I'd love to hear something from you all!
Kind regards,
Pinnekeshaar
pinnekeshaar said:
Hi,
So I've been getting into android the past month and really started liking it. I have however some questions about how an android (or Linux) operating system works. I also have some questions about how the Kernel and the OS work together and what I need to know about it before I start learning more about and getting into developing.
1. Does the Kernel command the OS or the other way around?
2. Can I create a custom Kernel specifically for an OS?
3. How much experience do I need to create a custom Kernel and is it phone specific in the sense that if I make Kernel A for phone A will it be easier to create Kernel B for phone B?
I'm not native speaking, so please ignore any grammar issues.
I'd love to hear something from you all!
Kind regards,
Pinnekeshaar
Click to expand...
Click to collapse
Hello,
1) Yes
2) Yes
3) You really need to have an in depth knowledge of your device, linux kernel and you should know how to use git. Depending on how you want to get started, you can add more governors, hotplugs, upstream updates and more..
Regards
Vatsal,
Forum Moderator.
Thanks for your reply and also aswering my questions. I have no more questions.

Categories

Resources