Difference between revisions of "GTV FileSystem"

From Exploitee.rs
Jump to navigationJump to search
Line 2: Line 2:


== Still Needs ==
== Still Needs ==
* Finishing  merging update information from the [[ Logitech Technical]] page including proper truncation and hex editting steps.  also mentions odex.
* Finishing  merging update information from the [[ Logitech_Revue_Technical]] page including proper truncation and hex editting steps.  also mentions odex.
* Description of how the Update Signing process works and how it works (And why we can't just copy an edited zip to a usb key and root the box).  This is a common noob question.
* Description of how the Update Signing process works and how it works (And why we can't just copy an edited zip to a usb key and root the box).  This is a common noob question.
* Description of the seperation between the boot loader steps, recovery kernel, and the actual "device" file system/kernel.  This can be key for explaining how the UART1 console was used and when it was used.  There is often discussion on "I was looking for output during X boot stage" that this data could provide a definition for.
* Description of the seperation between the boot loader steps, recovery kernel, and the actual "device" file system/kernel.  This can be key for explaining how the UART1 console was used and when it was used.  There is often discussion on "I was looking for output during X boot stage" that this data could provide a definition for.

Revision as of 04:36, 10 January 2011

The Google TV File System is similar to most other Android Operating Systems.

Still Needs

  • Finishing merging update information from the Logitech_Revue_Technical page including proper truncation and hex editting steps. also mentions odex.
  • Description of how the Update Signing process works and how it works (And why we can't just copy an edited zip to a usb key and root the box). This is a common noob question.
  • Description of the seperation between the boot loader steps, recovery kernel, and the actual "device" file system/kernel. This can be key for explaining how the UART1 console was used and when it was used. There is often discussion on "I was looking for output during X boot stage" that this data could provide a definition for.

File System Layout

The File System is created by the mounting of 13 partitions into a *nix-based file system.

Below is a list of the paritions, their contents, and their mount points:

Identifier? Partition Name Description Mount Point
0x00000000-0x00200000 "mbr" Mostly blank, repeats "01c0000 b00b dead 000f a901 0000 0000 0000 0000"
0x00200000-0x00a00000 "cefdk" Boot loader. It's Data - Wouldn't say it is encrypted, but no strings visible. It may contain a console
0x00a00000-0x00c00000 "redboot" All FF's
0x00c00000-0x00e00000 "cefdk-config" Holds Box SN, repeats (like MBR)
0x01000000-0x01800000 "splash" Splash image, [ http://img413.imageshack.us/img413/3144/splashc.png visible here] . It reports itself as a BMP even though it is a PNG
0x01800000-0x01900000 "fts" Flash Transaction Key/Value Storage. (Contents seem to be just seems to be just: "F*TS..e.L.......bootloader.command=boot-recovery.bootloader.recovery=recovery.--wipe_data.")
0x01900000-0x02d00000 "recovery" Full image, including kernel and small ramdisk (in squashfs format), boots to recovery menu
0x02d00000-0x03200000 "kernel" The kernel image
0x03200000-0x07200000 "boot" Root partition, goes in hand with the kernel image, also in squashfs format
0x07200000-0x1f200000 "system" /system partition. Holds most of the crucial system files. It's YAFFS
0x1f200000-0x3fa00000 "data" Where user data is stored. YAFFS
0x3fa00000-0x3ff00000 "keystore" Don't delete this . Has Keys for communication w/ Google & Logitech YAFFS
0x3ff00000-0x40000000 "bbt" Bad Block Table

Sources:

Updates

Updates to the Google TV, unlike the incremental updates that most Android phones receive, come as a complete file system meant to replace the previous. It is assumed that since Google TV devices are meant to be connected to high speed internet connections, downloading a full File System is more palatable than on a limited-bandwidth mobile device.

Updates are retrieved without user intervention from the Google Servers. You can use the device version number to check your current file system implementation (See GoogleTV - Version Numbers for more information). Updates are distributed as signed zip files including the base file system image, the system files, as well as updated certificates and any public keys necessary. The current update packages are:

Logitech Revue b42449

List of all updates for:

The Updates each include: boot.img: A file system including the root file system for the device. The "system" folder: This is the guts of the Google TV and it's applications. These files are copied into the system folder on update. The META-INF directory which includes the manifest and other certificates shipped with the device for authentication.

File System Obfusication

How to access the File System contained within an image

The Zip File is a simple matter to extract, however the images within them tack some massaging in order to explore. While they are a typical SquashFS File System, they have some padding bytes that prevented a simple "Unsquashing."

  • It would be great if we could create a way to use dd to truncate the image instead of using a hex editor. You should be able ot somehow grep for the start and then dd the proper bits into a new file that could be explored correctly.*

Some data on the process is available here: http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images

GTV Recovery Mode vs GTV(System) Mode

GTV Boot Loader

The Boot Loader is included on the File System, currently in the X directory. The Boot Loader is based off of the Y Loader (More information can be found at Z). For the Sony BlueRay player, the Boot Loader is ABC.

Files of interest within the File System

So, why can't I just edit a File System and use it to update my review?