[Q] Android is Linux or Java based for Scripts? - Android Software/Hacking General [Developers Only]

MODS READ THIS: Im not posting a ROM but im posting a question about Android development and the way it works. If it still does not comply with rules, please move
Okay, so i really dont know what to decide. I heard Android is BASED on the Linux system so many of us think its runs off Linux but now im hearing the system is BASED on Java (which can explain all the lawsuits against Google)
Im trying to learn how to write a script that, when the script opens, it runs automatically but i have no idea which language to learn on how to make it work. The only think I heard Android was Linux related is the KERNAL (which i still dont know what is a KERNAL but i know the word must be capitalized according to Wikipedia)
So tell me guys, is Android based off Linux or Java? And if its based on Java, do JavaScripts count as scripts that will run off Java or thats browser only? Remember, its not something I want to post on my site, its a script that, when ran, will download and run something or do something for me.
Also, if you have the time, you may atleast post where i can learn how to write Linux/Java (whatever it is) scripts but if you choose not to, then that will be fine.
Thanks!

Kernel - not kernal. Use wikipedia fot further info. It's basically a layer which co-ordinates the info between the HW & SW.
More info about android:
http://developer.android.com/guide/basics/what-is-android.html
http://en.wikipedia.org/wiki/Android_(operating_system)

Related

General instruction on how to build firmware for Android devices?

Is there any source/ help/ instruction that I can check out to learn how to design/build Android OS for any supported devices? I would like to learn to see if I can build the firmware for my Eken M0001 using the latest Android version.
i think theunlockr.com has a guide of some sort. i would look there!
Code:
android-dls.com/wiki/index.php?title=Compiling_for_Android
This should get you up and running if you are somewhat familiar with the whole Linux thing. If not I would start out by learning how to compile the kernel and some standard libraries for a regular X86(_64) distro. The approach is pretty much the same, only compiling for android requires a lot more work with cross-compiling and getting a working set of standard libraries for arm.
Oh, and sorry about the link thingie. The administrators of this forum are obviously weak minded and have come up with some totally brain-dead limitations for new users. (A new user is not allowed post links , a good RP system would beat that hands down anytime)
Thanks for the info. I will check those links out.

[Q] Help?

So I have an old account on here, but I never used it for what it is intended to be. And quite honestly, I didn't like the account name. But what I'm really asking for here is help. I want to be a developer, but I dont know where to start. I want to learn how to make and/or port roms, how to theme other roms, and even make my own apps. If anybody would care to help a noob out, I would appreciate it greatly. Thank you in advance for your time, and any help that I recieve.
I would suggest learning java language which the source code is wrote in if you want to be a developer. But if you want the easy root look for the guides on cooking roms using kitchens then you can create roms with little programming knowledge.
anarchyuk said:
I would suggest learning java language which the source code is wrote in if you want to be a developer. But if you want the easy root look for the guides on cooking roms using kitchens then you can create roms with little programming knowledge.
Click to expand...
Click to collapse
Thanks for the tip on java language. And I know about the kitchens and such, its just that I don't have a mac or a linux based computer, and from what i read, you have to have one of those for a kitchen to work.
ubuntu is always free for download from their website (you can run it from a flash drive or dual boot it alongside windows)
ubuntu will install within the windows file system also and let you dual boot. might be a bit of a learning curve but its by far the best os to use when just getting started and even for more advanced usage..
once you are done with ubuntu as long as you installed it using the wubi installer you can remove it from add remove program etc...
First step on the journy to becoming a developer would be the most important one:
Learning to use search functions.
Your question has already been covered multiple times in this subforum.
anarchyuk said:
ubuntu will install within the windows file system also and let you dual boot. might be a bit of a learning curve but its by far the best os to use when just getting started and even for more advanced usage..
once you are done with ubuntu as long as you installed it using the wubi installer you can remove it from add remove program etc...
Click to expand...
Click to collapse
I did not know that, so thank you guys for all your help.

ROOT...

Hello everyone,iam new in forum.
Can anyone tell how to root "karbonn A3".Iam trying to use z4root,gingerbreak,universal androot.
But no one work.pls tel how to root my phone.
Thanks in advance...
Purity sure you'll want to post in the Q&A section for your device, or ask a mod to do it for you. Otherwise you'll get helpfully natured people like me that don't know a direct answer.
To help answer your question though; try adding the word 'solved' to the beginning of your search quarry and adding 'similar:website.com' but replace the website with sites like this one. Put the issue or thing you want to know more about between and you'll likely have a good start to your answer. Example:
Solved root epic 4g similar:forum.xda-developers.com
Hope it helps with your task. You can also replace the "similar" part with "site" to search only one site with google. And certainly replace the "epic 4g" part of the example with your device. This is the format I use to learn most new and old things on the web and then I refine it from there. Hit me up if you need more examples and I'll try to help in my free time
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Or
https://docs.google.com/document/d/1ssVeIhdBuuy8CtpBP1lWgUkG6fR6oHxP20ToYPPw6zI/edit?usp=drive_web
Hi again, its been a little wile and figured I'd check up on ya
Did you happen to root your device?
If so can you post links to the guides you used?
I ask because I'm currently starting a project within the main guide I'm writing on XDA (link in signature) to hack and root Android with another Android and a USB cable, no PC required style.
Sent from either my SPH-D700 or myTouch3Gs
Debian Kit/QEMU Linux Install guide for all android devices that I'm writing:
http://forum.xda-developers.com/showthread.php?t=2240397
Now working on Scripting installers and tutorials for beginner scripting for; Bash, Python, and Java for Android and Linux
Also working on porting; Crazyflie-Quadcopter, Andoid-Casual, Maptools-MMO table top game maker and hoaster, jMonkey JDK, and Openstack-cloud services to run on Android.

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

[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