Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,137 Members 49,476 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Understanding System Structure, SGH-I257M

Tip us?
 
mdawdy
Old
#1  
Member - OP
Thanks Meter 13
Posts: 60
Join Date: Jan 2014
Location: London

 
DONATE TO ME
Question [Q] Understanding System Structure, SGH-I257M

I am wanting to get a clear understanding of the structure of the Android phone - hardware, firmware and software - in particular, relating to the Samsung Galaxy S4 mini, Canadian edition SGH-I257M.

I have been a computer bum since the mid-60s. I have extensive experience with machine and assembly languages, microcomputers and microcontrollers, programming "to the metal" [as we used to say], as well as C and high level languages, and a little UNIX knowledge via QNX from the century gone by. But i have been retired from all that for 15+ years and am entirely new to smartphones and Android.

So i have some questions.

But first, i have read and read and read. Too much hi-tech info the "get it" all at once. In particular i have found these threads specific to the SGH-I257M ...

Galaxy S4 Mini Archive
http://www.s4miniarchive.com/2013/12...SGH-I257M.html

Root new S4 mini model SGH-I257M
http://forum.xda-developers.com/show....php?t=2470173

STOCK and ROOTED SGH-I257M
http://forum.xda-developers.com/show....php?t=2520299

and several others on rooting various specific-only versions of the S4 mini, CyanogenMod, flashing firmwares, etc. But no complete, tested process for rooting this specific model, or for installing CyanogenMod on it, etc.

And a little history ...

Back in the mid 60s a visiting professor at the University gave a talk entitled "Hardware, Software and Underwear". The title was of course, intentionally provocative. It was a bit mysterious to us at the time, but the idea was to encode low level software in hardware to make it run faster, among other reasons. The term underwear did not stick. Instead we have firmware, and in particular on microcomputers, the BIOS - Basic Input Output System.

Question #1: with regard to Android, my guess is the the BIOS is the interface between the physical hardware and the Linux Kernel. Is this concept of the system structure correct? ...

hardware <-> BIOS <-> Linux Kernel <-> Android System

Question #2: I am not clear on the various categories of memory. The S4 mini has a SIM card, either 8 or 16 gb memory [mine has 16], and may optionally have up to an additional 64 gb memory via a microSD card installed by the owner. Is the BIOS on a separate chip like in microcomputers? Any other memory types? [I have a feeling that i am missing something].

Question #3: Which physical memory contains each of the BIOS, the Linux Kernel and the Android system?

Question #4: I am thinking that CyanogenMod is a replacement for what i have labelled Android System in my simple structure diagram in question #1 above. Is this correct?

Question #5: The idea of rooting the phone is clear to me. I know what is the root directory on a computer hard drive and that the rooting process gives the user access to both that directory and permissions to do anything [delete, rename, replace, install, uninstall, whatever]. And that doing this voids the warranty.

When spring/summer comes along [and they will, even in this cold and frozen Canada!] i expect to be off on my motorcycle [vintage IronHead] for extended periods. I will want to do whatever to extend the battery life of my phone. So i am anticipating rooting the phone by then and perhaps installing CyanogenMod. I have not yet seen a clear process for rooting for the Canadian S4 mini SGH-I257M including making appropriate backups of the system software, or for installing CyanogenMod, but i am looking. Any pointers to this i would appreciate.

Question #5: Any books on this topic of Android system structure, especially wrt Samsung smart phones? I know, books are so last century; so maybe a website, forum thread, or whatever.

TIA! More ?s later.

Mick
 
mdawdy
Old
#2  
Member - OP
Thanks Meter 13
Posts: 60
Join Date: Jan 2014
Location: London

 
DONATE TO ME
OK, i got some answers on another forum, and these answers have been very helpful. So as i understand things now, ...
  • The BootLoader is in a rewriteable ROM, an actual physical chip
  • The 1.5 gb RAM is what i have been missing. This is where currently running programs are stored, temporarily, until both they are no longer running and the system needs the RAM to run another process
  • The 16 gb storage is equivalent to the hard drive on a PC. All software - Android system and apps - are stored here, and are loaded into the RAM when they need to run. The storage is divided into partitions.
  • I can see what programs are currently in RAM by Settings | more | app manager | running
  • I can see what programs are in storage by Settings | more | storage
As mentioned, the common use of the word ROM does not refer to an actual physical ROM chip or to software that might be loaded into one. Rather is is a generally accepted but misused term for replacing the whole [or perhaps part of the] operating system.

So now i have two more questions/thoughts ...
  1. What about these partitions? Are these really partitions like on a PC hard drive? or are these really sub-directories of the root? There would be certain partitions, standard with the Android setup, each with a specific purpose. It would be helpful to know at least a few of these.
  2. In my running apps list i see S Voice. Hhmmmm, i thought i deleted this app. I know i did. I do not need it to be in there, taking up space and CPU cycles. I expect that it is OK to Stop it, and that it will re-start itself next time i power off/up. I'll have to go down that list and see what else i can "put a stop to".
TIA. More ?s later.

Mick
 
mdawdy
Old
(Last edited by mdawdy; 15th February 2014 at 07:31 PM.)
#3  
Member - OP
Thanks Meter 13
Posts: 60
Join Date: Jan 2014
Location: London

 
DONATE TO ME
Got some more info from the other forum, including this excellent link to an explanation of the partitions, so things are moving along ....
http://www.addictivetips.com/mobile/android-partitions-explained-boot-system-recovery-data-cache-misc/

Looks like the "partitions" are "directories", using the old MS-DOS and UNIX terminology. So once rooted, ...
cd / goes the the root directory, or
cd /recovery goes to the recovery directory

and ...
ls
would list the contents of whatever is the current directory.

Mick
Tags
android system structure, sgh-i257m
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes