Trying to develop bare-metal on a smartphone - Introductions

Hi there!
Glad to be here. I have been reading your forums for years now, but at this point I need a bit of wisdom and guidance that I'm hopeful to find here.
I'm interested into doing some bare-metal development on some phones. Basically I want to port a particular virtual machine to this ecosystem, so I "think" what I want to ask right now is:
- where can I get some info/guides for assembly/c++ development that would allow me to write an exclusive application for an Allview P8 eMagic (for now that's a test phone I have). That device has a Cortex A53, but I think I'd be needing more information about how to set-up a build system, or at least the understanding of how I need to set up files to the internal memory to get it to boot and run what I want.
I have zero experience with developing bare-metal on smartphones.
Thank you!

Related

This n00b wants to help!

I'm a pretty much clueless when it comes to Linux or Android. I want to help the community as much as possible and want some advice on good literature for learning Linux and ultimately Android developing.
I have no previous experience with programming but am a well above average windows user. (kinda pathetic, I know.)
I thought this might be a good topic to start since alot of us seem to be pretty useless seem to want to contribute.
beyondinferno said:
I'm a pretty much clueless when it comes to Linux or Android. I want to help the community as much as possible and want some advice on good literature for learning Linux and ultimately Android developing.
I have no previous experience with programming but am a well above average windows user. (kinda pathetic, I know.)
I thought this might be a good topic to start since alot of us seem to be pretty useless seem to want to contribute.
Click to expand...
Click to collapse
Developer.Android.com is a good place to start out if you are looking at the "how stuff works" - though if you don't have a clue how to program it will be over your head. Take a look over at geekfor.me - this site is hosted by Flipz one of the ROM devs here(Fresh Rom).
If you want to learn Linux, grab an Ubuntu or Mint ISO from their websites and burn it to a disk. then boot into the disk and run it "live". It's a little slow running off a CD rom drive, but better than isntalling on to a drive if you don't know what you are doing.
Most important thing to learn about this phone: HAVE FUN!
I installed Unbuntu 9.1 last week and have been messing around a bit, but not too much.
I'll have to take a look on android's dev site and Flipz page aswell.
Thanks for the advice!
I would like this thread to end up as a good reference for others so keep it coming!
Books wise, I would recommend:
Running Linux
Understanding the Linux Kernel
Hello, Android: Introducing Google's Mobile Development Platform
Android Application Development: Programming with the Google SDK
Professional Android Application Development
Unlocking Android: A Developer's Guide
gu1dry, that's exactly what I'm looking for.
Again, thanks folks.
beyondinferno said:
gu1dry, that's exactly what I'm looking for.
Again, thanks folks.
Click to expand...
Click to collapse
I'm in the process of working through Hello Android. Pretty good book so far, im enjoying it and learning alot.
Good to see you've installed a Linux OS on your computer... that will help the most with learning how it works.
Experiment with it. Don't be afraid to break it and when you do break it (you will break it) learn how to fix it.
That's how you'll learn the most.
My favourite resources when first learning Linux were:
- to google "<topic name or what I want to accomplish> linux howto"
- irc.freenode.net #linux (you will probably get flamed a bit but it's a great channel to just read and watch/listen in)
Connect with very active and very focused Linux communities (and Android communities... like XDA ) and you'll be able to glean a ton of good information, even if it doesn't make sense at first.

Any advice on where to start if interested in ROM Development?

Although I appreciate the work that the developers have put into their GTab 8.9 ROMs, I am a little disappointed in the lack of selction to choose from.
Lets just say I was interested in trying this myself...
Where would I begin?
Do you need to know a lot of coding to do this? (I am a mechanical engineer by training, but have a great deal of computer know-how.)
I don't have massive amounts of free time available (I have 2 kids aged 2 and 4), so family time occupies the majority of my time.
This is probably never going to happen, but I was just wondering what was involved in doing this work.
Thanks in advance!
PS: I am a Mac user - not sure if this hinders me or not, but I can dual boot into windows 7 when needed.
just a noob answer..
first.. What kind of interest you choose?
If you choose performance or overclocking you can start from kernel development..
You need windows or linux/unix Environment to do that..
If you want to build the ROM from the start, you can choose AOSP,ask developer if you want to help them..
Or maybe you can start from Odex and deodex stock ROM, zipalining, tweaking some buildprop, theming with framework..
Most of the tools for that is build for Linux and Windows, i dont know for MAC user..
Hope this help a little for you..
Edit: by the way this not QA section, you post in wrong section Moderator will move this..
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Moving to Q&A

How to brew up an android rom for htc hd7

Hello all! I jump from phone to phone when ever I can catch a broken one to fix for nearly free. I recently ran into an HTC HD 7 and am not really vibing to the windows mobile 7, and from what I read there is not currently a pre made rom available for installing android on this device. I am pretty technologically advanced and feel confident given the right direction on how to accomplish this I would be capable of creating one. I have read a lot of information but am some what lost mainly because of some of the lingo terminology, being that I haven't hacked/developed outside of the ios platform. I can program in just about any c based language. Any one got ne thing that can help me out here? If I build one how would I install it or go about uploading it to the device? Thanks in advance for any replies I do greatly appreciate all your time! I apologize about the noobness like I said ios is whats been available to me for the past few years, and now I want android like a kid wants candy!!!
rbrownvalid said:
Hello all! I jump from phone to phone when ever I can catch a broken one to fix for nearly free. I recently ran into an HTC HD 7 and am not really vibing to the windows mobile 7, and from what I read there is not currently a pre made rom available for installing android on this device. I am pretty technologically advanced and feel confident given the right direction on how to accomplish this I would be capable of creating one. I have read a lot of information but am some what lost mainly because of some of the lingo terminology, being that I haven't hacked/developed outside of the ios platform. I can program in just about any c based language. Any one got ne thing that can help me out here? If I build one how would I install it or go about uploading it to the device? Thanks in advance for any replies I do greatly appreciate all your time! I apologize about the noobness like I said ios is whats been available to me for the past few years, and now I want android like a kid wants candy!!!
Click to expand...
Click to collapse
Developers/programmers have been trying to figure out how to dual boot the HD7 (like the HD2) since it came out. The main problem seems to be how WP7 is compiled .NET and C#. WP7 securitys still aren't fully unlocked.
Take a look at the Project Haret thread, they seem to be making some progress at it and if you have the know how, maybe you can contribute.
http://forum.xda-developers.com/showthread.php?t=1483377
xdrc45 said:
Developers/programmers have been trying to figure out how to dual boot the HD7 (like the HD2) since it came out. The main problem seems to be how WP7 is compiled .NET and C#. WP7 securitys still aren't fully unlocked.
Take a look at the Project Haret thread, they seem to be making some progress at it and if you have the know how, maybe you can contribute.
http://forum.xda-developers.com/showthread.php?t=1483377
Click to expand...
Click to collapse
Thanks for the heads up, appreciate the reply, btw where is the thanks button? sorry this is my second post here. I started to do some research into it. I believe the answer is in the coredll.dll file which may be stating the obvious. I think the way to go about accessing this or at least what I am going to try is an attempt to gain root access with my device tethered to my comp from terminal.
rbrownvalid said:
Thanks for the heads up, appreciate the reply, btw where is the thanks button? sorry this is my second post here. I started to do some research into it. I believe the answer is in the coredll.dll file which may be stating the obvious. I think the way to go about accessing this or at least what I am going to try is an attempt to gain root access with my device tethered to my comp from terminal.
Click to expand...
Click to collapse
Your welcome! I've read through the whole Project Haret thread and there is alot of information, (some way to complicated for me) trial and error and it looks like as of recent there has been some good progress towards getting Haret to perform and (hopefully) run kernel mode and actually boot the kernel. You might be right, give it a shot or maybe put it on the thread and see what kind of feed back you get on it!
Is your device unlocked yet so that you can gain access to it and try it out?
Personally I would love to see the HD7 dual boot WP7 and Android. Don't get me wrong... I thoroughly enjoy WP7 and love my HD7it's very smooth, fast, stable and not once has it crashed on me. I believe that it would bring a longer life experience to the device and make it that much more versatile, especially since we're nearing the end of official support.
The thanks button should be there now, under the posts.
xdrc45 said:
Your welcome! I've read through the whole Project Haret thread and there is alot of information, (some way to complicated for me) trial and error and it looks like as of recent there has been some good progress towards getting Haret to perform and (hopefully) run kernel mode and actually boot the kernel. You might be right, give it a shot or maybe put it on the thread and see what kind of feed back you get on it!
Is your device unlocked yet so that you can gain access to it and try it out?
Personally I would love to see the HD7 dual boot WP7 and Android. Don't get me wrong... I thoroughly enjoy WP7 and love my HD7it's very smooth, fast, stable and not once has it crashed on me. I believe that it would bring a longer life experience to the device and make it that much more versatile, especially since we're nearing the end of official support.
The thanks button should be there now, under the posts.
Click to expand...
Click to collapse
Ok so I realize I might sound like an idiot considering everything I said can be found within the haret documentation. I originally read something found on google with inaccurate information after you told me about the project, come to find out the information I read was in no way affiliated with the the actual project haha. Forgive my stupidy, I began to read and follow along the documaton for it at htc-linux.org, the only thing I am having issue with is obtaining haretconsole to explore the device. The link on the documentation I believe no longer exists, and I can't find a source anywhere! This is pretty good stuff though thanks for linking me up with it! Have you installed the development tools or haretconsole on a linux OS by chance? I was successful with the developement tools, just need to figure out this haretconsole problem. BTW which desktop OS do you prefer?
Sadly I can't tell if my device is unlocked yet haha. I work at a university doing LAN Administration currently and used my .edu e-mail to register as a developer. I then registered my device but don't see a single difference or maybe I just am doing something wrong. How do you suggest going about that(unlocking it that is, I don't care about it being official, just figured official would be easlier)? Also for the iPhone there is a desktop application which allows you to access the filesystem called iFunBox, is there anything similar for the wp7?
I would just love android lol, I like the HTC HD7 and have always been a fan of HTC products, It definately is pretty smooth and compared to my previous device a 3gs it's lightening fast! 3g isn't supported with the 3gs on t-mobile either. My biggest issue with wp7 is the fact it doesn't do anything I want to be done in a device, I use my mobile browser ALOT and I have never seen a browser period with this many bugs, I installed safari but it's not even the same lol! For the most part I strongly strongly dislike anything related to microsoft, but unfortunately I have to work with the windows platform quite often because of my job. There just such a dirty/shady/grimmy company period, I saw a commercial yesterday advertising bing where they claimed 2 out of three people choose bing over google in a blind study............how can they advertise that when they stole googles code! lol. Also it was a pretty dirty business move of microsoft to do what your talking about with the wp8. They claim there going to continue support on 7 but we both know they all say that and do put the effort towards the legacy system for a short period of time before cutting it. Screwing Nokia out of major growth potential within the U.S. while going back on the promise made to them regarding free upgrades to 8 for 7 devices. I think they feel like there invincible just because they currently run the desktop OS market share. I think their will likely be a major change in the preferred OS within the next 10 years, just because I work in an 30,000 user enterprise that refuses to upgrade their liscensing with microsoft because of windows 8's inability to meet our needs.
Sorry if this message way to long haha
rbrownvalid said:
Ok so I realize I might sound like an idiot considering everything I said can be found within the haret documentation. I originally read something found on google with inaccurate information after you told me about the project, come to find out the information I read was in no way affiliated with the the actual project haha. Forgive my stupidy, I began to read and follow along the documaton for it at htc-linux.org, the only thing I am having issue with is obtaining haretconsole to explore the device. The link on the documentation I believe no longer exists, and I can't find a source anywhere! This is pretty good stuff though thanks for linking me up with it! Have you installed the development tools or haretconsole on a linux OS by chance? I was successful with the developement tools, just need to figure out this haretconsole problem. BTW which desktop OS do you prefer?
Sadly I can't tell if my device is unlocked yet haha. I work at a university doing LAN Administration currently and used my .edu e-mail to register as a developer. I then registered my device but don't see a single difference or maybe I just am doing something wrong. How do you suggest going about that(unlocking it that is, I don't care about it being official, just figured official would be easlier)? Also for the iPhone there is a desktop application which allows you to access the filesystem called iFunBox, is there anything similar for the wp7?
I would just love android lol, I like the HTC HD7 and have always been a fan of HTC products, It definately is pretty smooth and compared to my previous device a 3gs it's lightening fast! 3g isn't supported with the 3gs on t-mobile either. My biggest issue with wp7 is the fact it doesn't do anything I want to be done in a device, I use my mobile browser ALOT and I have never seen a browser period with this many bugs, I installed safari but it's not even the same lol! For the most part I strongly strongly dislike anything related to microsoft, but unfortunately I have to work with the windows platform quite often because of my job. There just such a dirty/shady/grimmy company period, I saw a commercial yesterday advertising bing where they claimed 2 out of three people choose bing over google in a blind study............how can they advertise that when they stole googles code! lol. Also it was a pretty dirty business move of microsoft to do what your talking about with the wp8. They claim there going to continue support on 7 but we both know they all say that and do put the effort towards the legacy system for a short period of time before cutting it. Screwing Nokia out of major growth potential within the U.S. while going back on the promise made to them regarding free upgrades to 8 for 7 devices. I think they feel like there invincible just because they currently run the desktop OS market share. I think their will likely be a major change in the preferred OS within the next 10 years, just because I work in an 30,000 user enterprise that refuses to upgrade their liscensing with microsoft because of windows 8's inability to meet our needs.
Sorry if this message way to long haha
Click to expand...
Click to collapse
Sorry its taken me so long to get back with you... Been crazy busy!
Unfortunetly I only have Windows OS, PC and Laptop. Funny enough though, I just got my laptop back from the shop a couple weeks ago and I had to have the harddrive replaced. Last week my PC got the BSOD (blue screen of death) and I had to completly wipe and restore it.
My next computer will be a Linux OS forsure. I wish I had one currently to install Haret and play around with it!
The student registration is limited and you can only sideload a max of 3 unasigned apps. You would be better off to fully unlock your device and install a custom rom, this will give you more options to sideload as many unasighned apps as you want in the form of XAP's through IE. Access to the registry/file system and to apply hack and tweaks. you can then familurize yourself with the OS and file system.
I can help walk you through the unlock process, it's pretty easy.
Go to settings, about, more info. post back all the information from that screen. Enter your device into bootloader mode - Power device off, hold down the volume down button and power the device back on, while continuing to hold down the volume down button, this will bring you into BL mode a tri-colored screen. Post back the information from that screen also.We can go from there. The proccess to unlock it basicially is to downgrade the SPL to 3.xxx or lower to install RSPL/HSPL wich will allow flashing of a custom rom.
My IE works excellent. It might be due to what build version that your device is running on. Either way once we get it unlocked there's custom roms running on Tango 8779 build with nice features and the device runs buttery smooth. there's also more mobile browsers available to install once it's unlocked, Opera Mobile,UC browser and a bunch more. There's all kinds of XAP's you can install to cusromize the device and enhance the user experience.
Totaly agree with you on the Android development for WP7 and the above statement regarding MS
Check out this link for Haret -
http://www.pedersen-web.com/linuxhandheld/index.php?h=2&p=11
Good Luck
I can't wait to install android to my HD7
rbrownvalid said:
Hello all! I jump from phone to phone when ever I can catch a broken one to fix for nearly free. I recently ran into an HTC HD 7 and am not really vibing to the windows mobile 7, and from what I read there is not currently a pre made rom available for installing android on this device. I am pretty technologically advanced and feel confident given the right direction on how to accomplish this I would be capable of creating one. I have read a lot of information but am some what lost mainly because of some of the lingo terminology, being that I haven't hacked/developed outside of the ios platform. I can program in just about any c based language. Any one got ne thing that can help me out here? If I build one how would I install it or go about uploading it to the device? Thanks in advance for any replies I do greatly appreciate all your time! I apologize about the noobness like I said ios is whats been available to me for the past few years, and now I want android like a kid wants candy!!!
Click to expand...
Click to collapse
i've htc hd7
i want to install android OS on it please help me
android
no run

[Q] Hi, I'm new on XDA Forum

Hi, Myself Amol Baikar.
I'm from India.
Im new on this forum. today i hacked windows phone 8.1
and want to submit post in achievement section.
so plz guide me as soon as possible, i'm waiting. and very excited to post Windows Phone ethical Hacking for Nokia Devices.
i'm first in the wolrd who hacked wp 8.1 lumia device.
Unless you have some reason to avoid sharing it, you should let us know what you did so we can properly appreciate it and ideally give us a tool/app to do it ourselves and start making use of it! Explaining *how* you did it is not required, although I personally nearly always do so; it's a good way to build trust.
Having 10 posts will let you create a thread in the Development & Hacking forums, which is really the proper place for announcing a successful hack, but there's nothing terribly wrong with posting it here instead.
Depending on how good your hack is (interop-unlock? full-unlock? bootloader-unlock? arbitrary code execution with full trust?), whether it's specific to Nokia phones or not, and what it requires (special hardware? a particular regional ROM? hard-resetting your phone?) we may start using the hack immediately; any time you sit on it is time we can't even get started. So, let us know what you've got!

Hello XDA-World!

Hi everyone I am interested in:
Electronics
PC building
Almost all topics in computer science
Currently I want to make an old S5360L (Do not know if the "L" is important ) usable again by upgrading it to a more recent version of Android or another reliable custom ROM, that works well given the limited specs of this device.
Hope to learn lots from the community, I have already read several post before deciding to join.
IcariumLS said:
Hi everyone I am interested in:
Electronics
PC building
Almost all topics in computer science
Currently I want to make an old S5360L (Do not know if the "L" is important ) usable again by upgrading it to a more recent version of Android or another reliable custom ROM, that works well given the limited specs of this device.
Hope to learn lots from the community, I have already read several post before deciding to join.
Click to expand...
Click to collapse
Welcome aboard!
You might wanna check our new Computing section.
Thanks orb_selektor, checking the computing section was actually the very first thing I did after joining

Categories

Resources