Forum Génération mobiles
Le Staff et tous les membres de Génération mobiles sont heureux de vous accueillir.

Toutefois, afin de pouvoir en profiter pleinement, il est fortement conseillé de vous inscrire ou de vous identifier

[INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Page 1 sur 2 1, 2  Suivant

Voir le sujet précédent Voir le sujet suivant Aller en bas

[INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Primokorn le Mer 14 Aoû 2013 - 11:08

Les partitions Android expliquées


TOUTE COPIE PARTIELLE OU TOTALE EST INTERDITE SANS AUTORISATION

Présentation

Sauf si vous utilisez votre appareil Android que pour les appels et sms, vous savez probablement que l'OS Android utilise plusieurs partitions pour organiser les fichiers et dossiers sur votre appareil.
Chacune de ces partitions joue un rôle bien particulier dans le fonctionnement du téléphone (ou tablette).

Dans ce guide, on va faire le tour de ces partitions pour voir ce qu'elles contiennent et quelles sont les conséquences en cas de modifications... Suspens Very Happy 
 
Voilà la liste des partitions standard d'une mémoire interne :

  • /boot
  • /system
  • /recovery
  • /data
  • /cache
  • /misc

On verra aussi les partitions d'une carte SD avec :

  • /sdcard
  • /sdc-ext

Note : seule la partition /sdcard est présente dans TOUS les appareils Android. Pour les autres, ça dépend des appareils.


/boot

C'est la partition qui permet au téléphone de démarrer. Elle inclut le kernel et le ramdisk. Sans cette partition, le téléphone ne sert à rien vu qu'il ne peut pas démarrer. Le fait d'effacer cette partition depuis le recovery doit uniquement être fait dans des situations bien précises et une fois que c'est effacé, il ne faut PAS redémarrer avant d'en avoir installer une nouvelle. Le fait de flasher une ROM installe cette partition /boot par exemple.

/system

Elle contient le système d'exploitation en entier, sauf le kernel et le ramdisk. On a donc l'interface utilisateur Android ainsi que toutes les applications système qui sont préinstallées sur l'appareil ou une rom. Le fait d'effacer cette partition va supprimer Android de l'appareil sans le rendre "non démarrable". Vous pourrez toujours passer le téléphone en mode recovery ou bootloader pour flasher une ROM.

/recovery

Cette partition peut être considérée comme une partition alternative de démarrage qui vous permet de démarrer l'appareil dans la console recovery pour procéder à des opérations avancées.
Plus d'informations sur le TWRP Recovery ou le CWM Recovery.

/data

Egalement appelée "données utilisateurs" ou "userdata", cette partition contient les données de l'utilisateur. C'est à cet endroit que vos contacts, messages, paramètres et applications téléchargées sont stockés. Le fait de supprimer cette partition correspond à un "factory reset", autrement dit une reinitialisation usine. Toutes les données personnelles ne seront pas effacées mais une grande partie. Par exemple, si vous avez stocké des photos dans /sdcard/DCIM, elles ne seront pas effacées.
C'est donc bien cette partition qui est impactée lorsque vous faites un Wipe data / Factory reset depuis votre recovery.

/cache

C'est là que Android stocke les données fréquemment utilisées et des éléments liés aux applications. Effacer le cache n'affecte pas vos données personnelles.
Dès le premier redémarrage, le cache se reconstruit.

/misc

On retrouve ici des paramètres système divers qui sont actifs ou pas. On a par exemple le CID (ID Opérateur/Région), la configuration USB et certains paramètres matériels. Elle représente une partition importante alors si elle vient à être manquante ou corrompue, plusieurs fonctionnalités de votre téléphone ne marcheront plus ou de manière anormale.

/sdcard

Ce n'est pas une partition de la mémoire interne de l'appareil mais de la carte SD. En d'autres termes, c'est un espace de stockage libre que vous pouvez utiliser pour vos fichiers média, documents, fichiers .zip.... Le fait d'effacer cette partition ne risque rien à partir du moment où vous avez préalablement sauvegardé ces données sur une carte SD externe ou sur un PC par exemple.
Des applications viennent stocker des données et des paramètres dans /sdcard pour info.

Sur les appareils ayant une carte SD interne et externe, la partition /sdcard est toujours utilisée comme référence à la carte SD interne. Pour la carte SD externe, une autre partition existe et elle diffère selon les appareils et les versions Android.
Contrairement à /sdcard, on ne retrouve aucune donnée système ou d'application dans la carte SD externe (par défaut), vous pouvez donc l'effacer sans problème après avoir sauvegardé vos propres données personnelles bien sûr.

/sd-ext

Ceci n'est pas une partition Android standard mais elle est devenue populaire via les ROMs Custom. C'est globablement une partition additionnelle sur votre carte SD qui fonctionne comme la partition /data lorsqu'utilisée par certaines ROMs ayant des fonctionnalités particulières comme App2SD ou Mount2SD activées. Elle est particulièrement utile sur les appareils dôtés d'une petite mémoire interne allouée à la partition /data.
Par conséquent, les utilisateurs - qui veulent installer plus de programmes que la mémoire interne ne le permet - peuvent utiliser cette partition /sd-ext avec leur ROM Custom (qui doit être compatible) pour avoir un espace de stockage complémentaire.
Le fait de supprimer cette partition aura les mêmes effets que /data, vous perdrez donc contacts, messages, applications téléchargées et paramètres.


Notre petit tour est terminé. La prochaine fois qu'un tuto vous demande de faire des wipes, pensez à moi. Very Happy 


Autres infos

Source




Dernière édition par Primokorn le Mer 18 Sep 2013 - 11:41, édité 3 fois

Primokorn
Expert

Expert

Appareil principal : Nexus 5
ROMs : Dirty Unicorns + blu_spark
Appareil secondaire : microG framework
Messages : 10141

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

partition, tuto, tutoriel, lexique, informations, infos, structure, organisation, Android

Message par Primokorn le Mer 14 Aoû 2013 - 11:08

Encore de belles explications détaillées (anglais) :
Spoiler:

Basic terminology and definitions
This section is for reference and will probably only confuse you if you don’t read the terms in some sort of context. So go read the guide and if you run into a term you’re not familiar with, come back here and see if it’s explained here.
 
Partition - A section of a storage drive (such as a hard drive or sd card) that is divided so that it functions as an entirely separate storage drive. This is usually used in order to differentiate parts of a drive as if they are physically separate. For the sake of software, there is usually no difference between a hard drive and a partition.
Format/wipe - To completely erase all data on a partition (or drive) and reset the file system (which is the mechanism with which files are stored to and read from a partition).
Image - One file which usually contains an entire partition (or drive). It is called an image because it is as if one would simply take a picture of the partition as it is in its entirety and saved it as an image. Usually done for making backups.
Flashing - Copying an image onto a partition and thus setting the entire partition as  defined by the image. Usually done for restoring backups or installing entire operating systems.
ROM (Read Only Memory) - This term is a little tricky, because it’s almost always used incorrectly. ROM is a form of storage that can’t be changed. Since ROM would historically store the operating system, many people use the word “ROM” like it means “operating system”. However, almost anything you’ll ever touch on your Android device is actually not ROM. Many simple (primitive) electronics used to store the operating system (which was usually very simple and didn’t ever need to change) on ROM - it was “printed” on the hardware in the factory, shipped, and it never needed to be changed. Time went along and the ROM was used only to store tools meant to install the operating system, so that even if the operating system was damaged or needed an update, the tools in the ROM could do that. Nowadays, more and more things are stored in volatile memory because technology moves so quickly and most things need to be able to be updated - even the tools used to install the operating system need to be updated (like the recovery in Android).
RAM (Random Access Memory) - The type of memory used for quick access to data which is frequently used. It has smaller capacity and is more expensive than other mass storage (such as hard drives) but it performs much faster.
Binaries - The executable files (usually of applications). These files contain actual instructions for what the application does and how it does it. It mostly does not include data the application is using or making. In Android, binary files end with ‘.apk’ (while in Windows binaries end with ‘.exe’).
Read-Write, Read-Only (R/W, R/O) - Software permissions for reading and/or writing to a partition. Read-Write (rw) permissions allow the software to see what’s in the partition and to modify it. Read-Only (ro) permissions only allow the software to see what’s in the partition without being able to modify it.
Stock/vanilla - A term used for the plain, unmodified form of software, usually meaning what the software is “supposed” to be like. In the case of Android, it would usually be the Android that Google distributes (that which the source can be found in the AOSP).
AOSP - Android Open Source Project. This is the actual project Google is working on called Android. After they complete a new version and release it, the source code is released. Hence, this source code is colloquially known as AOSP.
Source Code - The source code is the actual programming code that software engineers (programmers) write to make software. This code alone does nothing, it’s just the “instructions” for software, and for it to work, you need to take the code and “compile” or “build” it so that when you put it on a machine or in an operating system it will actually work.
Open Source - Open source is a way of saying that someone took their code and opened it up to the world, so that anyone can copy that code and use it for whatever they wish (depending on the license). Many times open source software allows anyone to contribute to it and add their own code. Open sourcing is also a philosophy that basically says that software can or should be “open” in such a way that people can contribute, reuse and build upon existing code.
 
Details needed
Baseband / Modem / Phone / Radio - The driver software for the actual cell radio - the chipset that actually connects to the cellular network and deals with calls, texts and cellular data.
 
The partitions
Download Mode (specific to Samsung)
s - including baseband and system, even when partitions are not intact (can be used as last resort recovery). Done with a Samsung PC application straight to the phone’s memory via USB.
 
Recovery
Alternative boot for updating system. May also include diagnostic, flashing, and other miscellaneous tools. All custom ROMs and mods are based on using the (usually modified) recovery to “update” the operating system (in the system partition).
 
Kernel (sometimes known as Boot)
The kernel is, as implied, the kernel of the operating system, which includes the most basic instructions for the operating system on how to interact with hardware, such as how to read and write files or how much power to draw from the battery. Such critical instructions must be loaded first, before anything else is to take place.
 
/system
This is the actual operating system. This is what is called “Android” or “CyanogenMod” or “MIUI” (or on   parallel systems, “iOS” or “Windows”). “Updating your phone” or “Updating Android” literally means flashing an image on top of the system (flashing = writing on to the entire partition).
 
Android on a phone is like Windows on a PC. Just like you can differentiate between programs, files, etc. and Windows itself - that is essentially the distinction with Android.
 
Because the system software is very critical, the entire system partition is read-only - meaning that it can’t be modified or changed without “root” permissions. This read-only attribute is a well established security measure present in all *nix OSs, and allows the user to rest assured that (theoretically) no matter what, the system itself is safe and cannot be compromised (but just so you know, as a rule of thumb: nothing is uncompromisable).
 
What is actually in this partition?

  • Drivers

The operating system includes the drivers, each of which is the specific language with which the apps speak with the hardware of the phone (the screen, memory, camera, speaker, microphone, gps, wifi, etc). The drivers are different with every device because every device uses a specific make of hardware. That is to say, the processor on the HTC Nexus One is different than that of the Samsung Galaxy S II. The GPS of the HTC Sensation is different than that of the Motorola RAZR.
 

  • User Interface framework

The operating system includes the framework for most of the UI elements. Basically, that means that an app can tell the OS to show a sliding bar, and the OS will show the sliding bar from the UI framework. That’s usually why almost all sliding bars, checkboxes, buttons, fonts, etc. almost all look the same - they’re all taken from the system’s UI framework. Each and every app may or may not use the built-in framework, and most fullscreen apps (such as games) have their own dedicated UI. In Android, the status/notification bar is part of the system’s UI framework, which is why it’s not as easy to customize.
 

  • System apps (and bloatware)

There are a few permanent applications that are installed on the phone by default, such as the launcher (“homescreen app”), the phone app, the messaging app, etc. Bloatware are apps that are pre-installed on the phone as system apps that the user doesn’t feel s/he needs. They can’t be uninstalled without root permissions (because they are in a read-only partition). In Android 4.x system apps (including bloatware) can be disabled by the user (making them virtually non-existent on the phone and is usually just as good as uninstalling).
System apps can be found in /system/app/.
 

  • Media

The system media is the folder that includes ringtones, notification ringtones, alarm rings, and UI interaction sound effects - all (usually) stored in .ogg audio format (an open source format). This folder includes the boot animation as well (the animation that appears as the phone is booting).
System media can be found in /system/media/
 
Manufacturer skins
Manufacturer skins (such as HTC’s Sense, Samsung’s TouchWiz, Motorola’s Blur, etc.) is an umbrella term for all the modifications a manufacturer has done to change the UI, Media, and sometimes also referring to the system apps installed in the system. Since Android is open source, manufacturers may do whatever they wish to it before selling it, and they believe they add functionality and value to Android by doing so.
Skins are very controversial, because they modify the read-only partition which cannot be undone by the user without root permissions. Many people dislike the modifications and find it makes the phone lose value, or simply find it a drag to have to modify the system in order to revert what the manufacturers have done
.
That being said, I’ve heard many people praise skins for actually making phones better than stock android. It is simply a matter of taste - and that is the reason there are so many custom ROMs out there - because different people like different modifications to the operating system.
 
/data
The system partition includes all functionality and it is read-only, which means it supposedly never changes after it comes out of the factory. However, the phone does get new things written to it (such as apps, saved data, etc.) and every user’s phone is different than another. There needs to be a place where the user can store everything done to the phone. That’s the data partition - it stores everything that has been added on top of the system after it left the factory and the user begins using it.
 
What is actually in this partition?

  • Apps

Apps (such as those downloaded from the market, or sideloaded from the sd card) are the executable binaries (.apk’s) that the system recognizes as applications the user can run. These can usually be seen in the app drawer.
Apps can be found in /data/app/.
 

  • App data

App data includes all data saved by apps. Apps need to save data; games need to save campaign saves and high scores, the contacts app needs to save contacts’ info and the call log, chat apps save logs of chats, email apps save emails, etc. Everything the app needs to remember - is saved as app data. The data partition is read-only, however each app gets its own folder and can only read and write to that folder (so that apps can’t snoop around what you’re doing in other apps).
Frequently asked, app data includes: SMSs and MMSs (Messaging app’s data), saved wifi networks and their passwords (not sure which app’s data), call logs and phone contacts (Contacts app’s data), and the phone’s settings (Settings app’s data). When you wipe data (factory reset), all these will be lost if you don’t back them up.
App data can be found in /data/data/.
 
When one does a “factory reset”, the data partition (along with the cache partition) is wiped. This ensures the operating system is intact, however, anything and everything the user installed or added or changed while using the installation will be erased, including all apps and their data, all settings - basically everything except for Android itself. It is important to note that a factory reset does not erase files and data that are saved on the SD cards (see /mnt below).
 
/cache
The cache partit is designated for storing files meant for easy, quick access. Files such as thumbnails that keep being called up are copied to cache. Cache has a similar role as RAM, however it is not stored in RAM - ionit is more akin to virtual memory (such as in Windows). Apps don’t actually write to cache, the OS determines which files are being asked for frequently, and decides which files are worth being copied to cache.
 
What is actually in this partition?
 

  • Thumbnails

Thumbnails are the little preview pictures for images in the gallery. These are created so that you can see the images without opening them, however they are much smaller and are only stored for the sake of convenience to the user (to get a preview of the images) and for the sake of convenience to the system (so that it doesn’t have to make a preview every time you glance at the gallery).

  • Cached apps

Apps that have been loaded into RAM and are used frequently are not cleared after the user closes them (see memory management below). If RAM is full and space needs to be made, loaded apps and data (such as a paused game) are copied over to the cache so that they can be loaded later on without having to restart the application from the data partition.
 
Sometimes issues occur when cache files are corrupt or misplaced - such that applications may be calling the wrong files or bad cache files. In such cases, wiping cache is a good thing - it clears up any files that may be cause issues. Cache files are not critical - they can be deleted without causing any issues, and therefore the cache can be wiped safely at any time (thumbnails will be erased, however the gallery will simply create them again).
 
Wiping the cache will most likely slow the system down temporarily (as it can no longer rely on files stored for quick access); but as it re-creates cache files, the system will return to its normal performance.
 
Cache files are obviously related to data, and therefore when wiping data, cache must be wiped as well (a “factory reset” does this automatically). For example, if an app (in data) is using thumbnails (in cache), wiping the app requires wiping the thumbnails as well.
 
/mnt (SD card and mass storage, also known as storage)
The SD cards are meant for storage. Usually, the internal storage is small and limited, and an internal or external SD card can be added to the phone to allow storage of very large files (such as photos and music). For the sake of proportion, normally the internal storage is no larger than several GBs (which are divided up between /system, /data, /cache, etc.), while storage is minimally several GBs, and are usually as large as several dozen GBs (most SD cards sold today are 8 to 64 GBs). Storing music and photos in internal storage is not realistic, hence the ability to mount SD cards. Newer versions of Android (Honeycomb and ICS) allow for mounting USB storage (such as hard drives), which expands the potential storage size to terabytes.
 
The difference between an internal and external SD card is simply its physical location. Many phones today are sold with internal SD cards that are actually SD cards built into the phone and cannot be physically removed, however, it is identical in function to an external SD card placed in an SD card slot.
 
When doing a “factory reset” (wiping /data and /cache), files on storage are not erased. When wanting to remove all personal information on a phone, one must do a factory reset and also remove (or wipe) all storage media.
 
Storage can be found in /mnt/ or /removeable/ (e.g. /mnt/sdcard/, /mnt/emmc/, /mnt/USBDisk1/, etc.)
Apps, root permissions and SU
 
The root (sometimes also known as root folder) is, as implied, the root of the file system, the root of all folders. It is the “folder of all folders”. Sometimes this can be hard to grasp, so here’s an example: if I have one single file on my entire hard drive called File.ext, then it is in the root of the hard drive. If it were in a folder called Folder, that folder would have to be in the root of the hard drive. Root is usually symbolized simply as /. So the file would be in /File.ext, or in /Folder/File.ext. In Windows, the root of the local disk would usually be C:/. The file in the root of the local disk in Windows would be in C:/File.ext.
 
System apps are installed in the folder /system/app/. They are usually not given root permissions. Data apps are stored in /data/app/, and do not have root permissions. Both /data/app apps and /system/app apps have a folder which they can use to read and write files in /data/data/. Without root permissions, this is the only place on the system they may read and write files to. They may also read and write files to storage (for pictures, music, and other large files that wouldn’t fit into /data/data/.
 
This concept is the basis for *nix OSs theoretically being more secure: if apps are sandboxed (are given limited place to work with), they can do less damage. Without being able to access anything other than it’s own folder, an app cannot do any harm: it cannot tamper with critical system files, it cannot read personal data from other apps, and it cannot make the phone unusable. Theoretically, the worst an app can do is either damage itself (such as with a bug), or read unencrypted files from an SD card (that’s why personal information on an SD card should always be encrypted!).
 
Having root permissions means you have permission to read and write anywhere in the file system - as far deep as the root itself (that’s why it’s called root permissions). Theoretically with root permissions, one can modify everything in the system and (if the intentions are evil) take complete control of the operating system. Root permissions is therefore normally a sensitive concept, and it is carefully guarded and not given to just any app. Bad apps with root permissions can cause great damage and potentially misuse these permissions. That’s why in stock Android, root permissions are reserved and the user is never allowed to mess with it.
 
“Getting root” (colloquially known in iOS as “jailbreaking”) is usually considered the ability of a user to manually allow specific apps to get root permissions. This is usually done in Android by the user with an app called Superuser (or just SU for short). With Superuser no permissions change, however if an app request root permissions the user may grant them to the app. The Superuser app has root permissions, and all it does, with the user’s consent, is modify permissions of other apps (such as changing their permissions from read-only to read-write). Getting root is usually done by attacking and exploiting a bug in the operating system (different with every device) and installing SU, or by flashing an operating system with SU pre-installed (also different with every device).
 
The reasons for getting root is to install apps that can do things normally not allowed by the operating system. Such examples may be internet tethering on devices from some networks, using the camera’s flash, etc. It also allows one to manually modify files of the system (usually with a file manager), such configuration files, scripts, or adding and removing system ringtones.
 
Many “Force Closes” in Android (when an app crashes) occur due to inappropriate permissions. If an app expects to have permissions to write to a certain folder and the OS denies it because it doesn’t have those permissions, it may crash and Force Close. To fix this, a function called Fix Permissions is used to reassign all apps the permissions they are supposed to have (including giving apps root permissions if they’ve already been given by the user).
 
Custom operating systems (custom ROMs) and Recovery
Custom ROMs are modified operating systems that can be installed instead of the “stock” operating system installed on the phone when it leaves the manufacturing factory. Virtually all Android phones sold today are carrying already modified operating systems that are different from “vanilla Android” (the Android developed and released by Google). Since Android is open source, manufacturers (such as Samsung and HTC) can take the code, modify it to their taste and then install that on their phones before selling them. Google’s Nexus line is an example of vanilla Android - the “pure Google experience” - because there are no modifications on AOSP (Android Open Source Project).
 
Another type of modified operating system is CyanogenMod and MIUI, which are both based on AOSP and are developed and maintained by independent developers, usually with no interest in profit (though donations are always welcome). CyanogenMod is an example of a more vanilla approach (where the UI is relatively similar to AOSP) while MIUI takes a more modified UI experience (where the UI is known to draw inspiration from iOS). These modified operating systems usually offer extended functionality and are “pre-rooted” (meaning they have SU pre-installed in /system/app/).
 
These operating systems are usually distributed as images (one file containing everything needed to flash onto the intended partition). These images are usually flashed via recovery, which itself is modified for being able to manually flash new images.
 
The recovery is usually meant for updating the operating system, such that when Samsung distributes a new update for their phones, the operating system images can be downloaded to the phone’s storage (SD card) and booted into recovery. When the phone is running the operating system, it can’t rewrite the whole /system partition becaus
e it is in use. Once in recovery, the phone can simply flash the whole image straight on to the /system partition. Therefore, the phone’s operating system is updated and the user’s data and apps and storage are left untouched.
 
Usually, the recovery has no interface or dialog, and the process is automated. This allows for an easy update process and customers do not have to get involved. A custom recovery will present an interface and allow many functions such as:

  • backing up the partitions as images
  • wiping partitions (including factory reset)
  • flashing images to any of the different partitions
  • other miscellaneous functions (such as wiping battery stats, fixing permissions, etc.)

 
Nandroid
Since the recovery can read and write entire partitions as images, this gives recovery the ability to backup entire partitions as images. A nandroid is a backup composed of a few images for each of the /system, /data, /cache and /boot partitions. Once these are backed up, the phone can be entirely restored (including the exact state of the operating system, apps, settings, data and everything except for storage) no matter what happens to the system installed. If a critical bug occurs because something terribly irreversible happens, you can restore to a nandroid backup you made before this happened.
 
Simplified installation process for (custom) operating systems
The usual process for installing custom OSs:

  • root is obtained
  • a custom recovery image is flashed on to the recovery partition (with root permissions)

Once in recovery:

  • a nandroid backup is made for safe measure
  • data and cache are wiped (if the operating system installed is different than the one previously installed)
  • a custom operating system image is flashed to /system

 
ROM manager
Koushik Dutta is a well known developer in the world of Android independent development. He is best known for developing ROM manager, the most comprehensive custom OS management app available, as well as the well known ClockworkMod (CWM) Recovery, one of the most widely used custom recoveries. He also happens to be the first person to root the first Android phone. Without praising enough, it is suffice to say that ROM manager and CWM recovery are some of the most important elements needed to know when getting started with custom OSs on Android.
 
Although gaining root is different with every device and every version of the operating system on the device (depending on the exploit found for that device), the rest of the process is similar across most devices. ROM manager requires root and can install CWM (if there is a version compatible with that particular device) and then do most of its functions straight from the app (such as telling it to wipe and then install a custom OS) as it reboots into recovery and does it automagically.
 
Bricked devices
A “bricked” device is a device that, by either software or hardware, has become as valuable as (or less valuable than) a brick. This is a very broad definition, however the idea is simple: if the device won’t boot into Android, and it can’t be fixed - it’s bricked. Sometimes, the device won’t boot into Android, however that does not mean it can’t be fixed. From my personal experience, everything can be fixed. This is thanks to the fact that even if the operating system is broken, recovery can be used to reflash the operating system. Even if recovery is broken, HBoot or Download Mode can be used to reflash the entire memory.
 
The exceptions for this are:

  • the nand memory itself (the actual memory stick inside the device) is damaged
  • the IPL or SPL are broken and therefore neither HBoot or Download Mode are unavailable (Samsung devices can even be restored from such situations with a hardware JIG)
  • I’ve heard (not verified) that mismatching SPL and baseband can cause a brick, but haven’t ever had an issue with this.

 
I have personally reached situations very close to both of these cases on several devices, however I was always able to fix the device, and have never actually run into a brick. That being said, always read the full instructions given, and remember that you are taking the risk, not the person writing the instructions. If you’re in doubt, don’t do it. If you want to double-check, read forum threads and comments until you feel sure about going for it or not.
 
If that scared you, you should know that generally any person feeling confident with computer skills can manage to deal with this stuff, thanks to a great dev community revolving around Android working hard to make (usually free) solutions for everyone. If you know how to Google and someone has gone through it before (and someone has gone through it before), chances are you and your phone will be fine.
 
Why not use task killers
Although this is not strictly related to Android modding, I felt it is important to stress how memory management works after explaining the different roles of each partition.
 
So first, a little bit about storage. Storage has two important properties (not including price): how much data can be stored on it (capacity/density), and how quick it is to write and read data to and from it (performance).


All data on a system that is meant to be stored, is usually stored on mass storage; high capacity, non-volatile storage. However, this type of storage is usually very slow and it wouldn’t make sense for the computer to run applications straight from mass storage, to keep reading and writing calculations it’s doing to the mass storage and to rely on such storage for second-to-second tasks. So when a user runs an application, operating system copies the binary and the data it is using to RAM, where it can quickly write and read what it’s doing. HoweveAM available (at a cost of performance).
 
However, when many applications are open, there may not r, when something needs to be saved in the long term, it is copied back to mass storage. This is the difference between working with an open file, and actually saving the file after you changed it. When it is “open”, it is in RAM, where you can quickly read and write it. When it is  “saved”, it is copied back to the hard disk (in the case of a desktop computer). Virtual memory is basically a part of the mass storage that is used as an extension of RAM. Although it is as slow as mass storage, it functionally extends the amount of Rbe enough RAM to go around. Hence, you must manage your memory. Things you can do to manage your memory are:

  • close applications that haven’t been used in a long time - and thus clearing RAM space for more frequently used applications (at the cost of losing potentially important data)
  • copying the memory an application is using to virtual memory - and thus clearing the faster RAM space for more frequently used applications (at the cost of performance)

 
Every operating system has its own strategy and implementation of memory management. Linux is known for being particularly good at this, while Windows is known for being particularly not good at this. Linux manages to keep as many things in memory as possible for as long as possible, hence allowing applications to not close, open quickly and not lose data.
 
Applications in memory open faster because they don’t have to be loaded from the slow mass storage, they are already in memory. You can test this on your Android phone if you want: open an app and then press the back button until it closes, then open it again. Then open an app and press the home button until it is hidden, then open it again. You’ll see that after closing an app, opening it again takes much longer than loading it again without closing it. Makes sense, huh? Generally, used memory is good memory.
 
Used memory got a bad rap from Windows. For some reason, Windows works better the more free RAM there is. And it works terribly slow if there is no free RAM available. Why? Nobody knows. That is - I don’t know. Maybe it’s because Windows doesn’t know how to clear memory when more frequently used apps request it. Whatever.
 
Then came along task killers to clear your memory to speed your system. A task killer is a tool that pretty much closes applications in order to clear up free RAM. All you need to know is that on Linux used RAM is good RAM. Task killers on Linux will simply make loading applications take longer and won’t really help. A task killer is only good if you want to forcefully close an app for some reason (it’s misbehaving). This is possible within Android (Settings > Manage Apps > App > Force close, if you’re intertested). A task killer is mostly bad if there are apps that are supposed to run in the background in order to automatically update things, download stuff, etc. etc.
 
People believe that because of true, real multitasking in Android, apps are constantly open in the background hogging your data connection and battery life, doing crazy stuff and causing mayhem. But the engineers at Google are obviously smarter than that. Apps need to specifically request to run in the background, or run certain tasks in the background. That’s good! Because that lets you listen to music in the background while you browse the internet. It lets you download stuff in the background without having to stay on the download page like an idiot. It lets file managers finish copying large files without having to keep the file manager open. Assuming the application developer made sure to program the app properly. Sometimes you will end up with a developer who stupidly allowed an app to download stuff in the background non stop until you close the app. But let’s face it, the vast majority of your apps’ developers know how to program properly. Just leave the task killer alone.
 
Ending note
Although there can be drastic differences between devices from different manufacturers, the fact is that all Android distributions are *nix, and therefore share many traits, especially when dealing with such low-level processes. Understanding the underlying foundation under all Android devices is valuable knowledge for anyone interested in customizing the software on their device.


 Source


Dernière édition par Primokorn le Mer 14 Aoû 2013 - 14:03, édité 2 fois

Primokorn
Expert

Expert

Appareil principal : Nexus 5
ROMs : Dirty Unicorns + blu_spark
Appareil secondaire : microG framework
Messages : 10141

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Sccip le Mer 14 Aoû 2013 - 11:38

Merci à toi cheers 

Sccip
VIP

VIP

Appareil principal : LG G3
ROMs : Stock (Android 4.4.2)
Appareil secondaire : HUAWEI Ascend P7
: : Stock (Android 4.4.2)

Messages : 21794
Age : 45

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par HTCBatMan le Mer 14 Aoû 2013 - 17:49

Cool Cool, on devrait mettre ce sujet dans un post_it ou le rapatrier sur Un LEXIQUE lisible par tous!!!

HTCBatMan
Modo

Modo

Appareil principal : HTC ONE m7
ROMs : Stock-7.19.401.30
Appareil secondaire : HTC SENSATION XE
: : HD2,DESIREHD,HD7

Messages : 8702
Age : 36

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par tahitien14 le Mer 14 Aoû 2013 - 21:08

ça c'est franchement une idée au top ton petit topic! et c'est marrant qu'on y pense que maintenant! cheers 

tahitien14
Habitué

Habitué

: : sensation Aldric V3

Messages : 100
Age : 35

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Invité le Mer 14 Aoû 2013 - 23:26

Super guide !!!

Merci Primo !

Invité
Invité


Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par HTCBatMan le Jeu 15 Aoû 2013 - 9:20

Post-it, post-it bounce bounce bounce 

HTCBatMan
Modo

Modo

Appareil principal : HTC ONE m7
ROMs : Stock-7.19.401.30
Appareil secondaire : HTC SENSATION XE
: : HD2,DESIREHD,HD7

Messages : 8702
Age : 36

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Sleakerz le Jeu 15 Aoû 2013 - 12:00

Merci, ça m'a bien servi smile

Sleakerz
Fidèle

Fidèle

ROMs : ICS - IceColdSandwich
Messages : 397

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par VM54 le Jeu 15 Aoû 2013 - 15:10

Post-ité
Wink

VM54
Modo

Modo

Appareil principal : HTC One M8
ROMs : stock 4.19.118.9 S-Off
Appareil secondaire : HTC One X , HTC HD2, HTC One S
Messages : 12464
Age : 42

Voir le profil de l'utilisateur http://generationmobiles.net/

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Primokorn le Jeu 15 Aoû 2013 - 15:24

Merci à vous smile

Primokorn
Expert

Expert

Appareil principal : Nexus 5
ROMs : Dirty Unicorns + blu_spark
Appareil secondaire : microG framework
Messages : 10141

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Caramel le Jeu 15 Aoû 2013 - 17:58

C'est clair et net, super taf  

Caramel
VIP++

VIP++

Appareil principal : NOKIA Lumia 1520
ROMs : WM10 10.0.14367.0
Appareil secondaire : iPhone 6+
: : iOS 9.3.1

Messages : 29217
Age : 40

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par HTCBatMan le Jeu 15 Aoû 2013 - 18:18

Super VM54

HTCBatMan
Modo

Modo

Appareil principal : HTC ONE m7
ROMs : Stock-7.19.401.30
Appareil secondaire : HTC SENSATION XE
: : HD2,DESIREHD,HD7

Messages : 8702
Age : 36

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Invité le Jeu 15 Aoû 2013 - 22:23

Bonsoir tout le monde !

J'ai une question :

Est il possible de partitionner ma micro sd ( 32 go ) en deux partitions.

1 en fat32 et l'autre en NTFS ?

Édit : oui ...

Mini tool partition wizard

Invité
Invité


Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par aigle38 le Sam 17 Aoû 2013 - 20:53

Bonjour tout le monde

Salut primo tout à était dit Bravo

aigle38
Posteur

Posteur

ROMs : Echoe ROM V4
: : Samsung Galaxy Note 3

Messages : 738

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par djcarlos7777 le Sam 24 Aoû 2013 - 15:49

Hello Primo! Super article! J'aimerais juste savoir où se trouve le dossier /boot ou à défaut le boot.img sur les appareils HTC ?

djcarlos7777
Actif

Actif

ROMs : ICSSense OneXXL v1.6
: : ROMs : Cool3D Honey v6

Messages : 447
Age : 20

Voir le profil de l'utilisateur https://plus.google.com/113991609941503064005

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Lim-Dûl le Mar 10 Sep 2013 - 23:59

Bonsoir.

Pas mal d'info en effet.
Mais est-il possible d'avoir une précision supplémentaire ?

Quand on voix un truc dans le genre "partitions 5/150/150/10"
(je ne sais même plus combien de nombre il y a, c'est quand on cherche qu'on trouve pas l'exemple)
A quoi correspond chaque nombre ?

Lim-Dûl
Habitué

Habitué

ROMs : NexusHD2 KitKat CyanogenMod 11 v4.2
: : S4 Active GT-I9295 rom d'origine

Messages : 176

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Mendicant Bias le Mer 11 Sep 2013 - 0:21

Bonsoir Lim-Dul,

Voici un exemple de partitionnement (tiré du tuto [TUTO] Comment flasher une ROM NAND Android sur le HD2) :

misc - 1M
boot - 5M
system - 150M
cache - 5M

Mendicant Bias
VIP

VIP

ROMs : Rom Stock
: : X-Note v10

Messages : 21298
Age : 29

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Lim-Dûl le Mer 11 Sep 2013 - 0:31

Pardonnes-moi mais tu répond à coté de la plaque (enfin, je trouve).
J'ai demandé à quoi correspond chaque valeurs quand elles sont séparées par des slash "/" et non quand on a le détail ligne par ligne.

Exemple dans ce sujet :
http://www.forum-generationmobiles.net/t60007-nand-zip-ics-cyanogenmod-9-nightlies-android-404kernel-tytung_hwadailyfull-hwa-16052012
je cite : "Recovery 5/150/5 sans Gapps ou 5/185/5 avec Gapps".

Trois valeurs séparées par des slash sans précision.
Ce qui donne la question bonus : "qu'est-ce que le 'gapps' ?"

Lim-Dûl
Habitué

Habitué

ROMs : NexusHD2 KitKat CyanogenMod 11 v4.2
: : S4 Active GT-I9295 rom d'origine

Messages : 176

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Mendicant Bias le Mer 11 Sep 2013 - 0:44

En faîtes je t'ai répondu correctement Wink 

boot - 5M
system - 150M
cache - 5M

équivaut à 5/150/5 = boot/system/cache

Les Gapps signifie Google Apps, c'est donc un pack qui regroupe les applications Google comme Google Play, Maps, Gmail, ...
Les roms CM, AOSP, Paranoid, ... sont des roms allégées avec pratiquement aucunes applications, c'est pourquoi un pack a été crée regroupant les applications Google et il est à flasher sur la rom.

Mendicant Bias
VIP

VIP

ROMs : Rom Stock
: : X-Note v10

Messages : 21298
Age : 29

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Lim-Dûl le Mer 11 Sep 2013 - 17:18

Merci beaucoup.
:merci:

Lim-Dûl
Habitué

Habitué

ROMs : NexusHD2 KitKat CyanogenMod 11 v4.2
: : S4 Active GT-I9295 rom d'origine

Messages : 176

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Mendicant Bias le Mer 11 Sep 2013 - 17:28

Bonsoir Lim-Dûl,

Mais de rien c'est un plaisir, content d'avoir pu t'aider smile 

Mendicant Bias
VIP

VIP

ROMs : Rom Stock
: : X-Note v10

Messages : 21298
Age : 29

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par yvan.lamical le Sam 28 Sep 2013 - 19:41

Merci pour ces informations ..

yvan.lamical
Passage

Passage

ROMs : rom inconnue
Messages : 39

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Gbwttyuj le Jeu 5 Nov 2015 - 8:29

Si vous avez déjà préformé une sauvegarde, toutes les données ont été stockées sur votre ordinateur ou un autre endroit sûr comme le courrier, nuage, etc. et vous pouvez racine et les paramètres d'usine après l'utilisation des applications de récupérer le système Android.
Vous voulez récupérer les données Android, pourquoi ne pas essayer Modéré par Jedi.6 : Pub, une bonne et facile à utiliser l'outil pour récupérer des données à partir des paramètres d'usine.

Gbwttyuj
Banni

Banni

Appareil principal : A renseigner
ROMs : à remplir
Messages : 1

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Primokorn le Jeu 5 Nov 2015 - 9:07

Gbwttyuj a écrit:Si vous avez déjà préformé une sauvegarde, toutes les données ont été stockées sur votre ordinateur ou un autre endroit sûr comme le courrier, nuage, etc. et vous pouvez racine et les paramètres d'usine après l'utilisation des applications de récupérer le système Android.
Vous voulez récupérer les données Android, pourquoi ne pas essayer Modéré par Jedi.6 : Pub, une bonne et facile à utiliser l'outil pour récupérer des données à partir des paramètres d'usine.
Et en français sans faire de hors-sujet, ça donne quoi ?

Primokorn
Expert

Expert

Appareil principal : Nexus 5
ROMs : Dirty Unicorns + blu_spark
Appareil secondaire : microG framework
Messages : 10141

Voir le profil de l'utilisateur

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Jedi.6 le Jeu 5 Nov 2015 - 10:08

Ca sent le pauvre traduction Google pour un pub déguié. J'ai modéré le nom du site en question

Jedi.6
Modo

Modo

Appareil principal : HTC One M8
ROMs : INSERTCOIN
Appareil secondaire : HTC HD7
: : HTC FLYER

Messages : 24589
Age : 39

Voir le profil de l'utilisateur http://generationmobiles.net/

Revenir en haut Aller en bas

Re: [INFO] Les partitions Android expliquées : boot, system, recovery, data, cache et misc[14.08.2013]

Message par Contenu sponsorisé Aujourd'hui à 20:53


Contenu sponsorisé


Revenir en haut Aller en bas

Page 1 sur 2 1, 2  Suivant

Voir le sujet précédent Voir le sujet suivant Revenir en haut

- Sujets similaires

 
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum