Changes

304 bytes added ,  16:00, 20 July 2012
managed to confirm data
Line 16: Line 16:     
== import.db and title.db ==
 
== import.db and title.db ==
These two files, introduced with the [[2.0.0-2]] update, are used to manage 3DS titles installed to the SD Card and are part of the DRM for SD Card Titles. They are encrypted with a per-console key.
+
These two files, introduced with the [[2.0.0-2]] update, are used to manage 3DS titles installed to the SD Card and are part of the DRM for SD Card Titles. They are encrypted.
 
  /Nintendo 3DS/<SomeID>/<SomeID>/dbs/import.db
 
  /Nintendo 3DS/<SomeID>/<SomeID>/dbs/import.db
 
                                     /title.db
 
                                     /title.db
   −
"'''title.db'''" - The "title.db" file (among other things perhaps), archives data about titles installed on the SD Card which includes as well as their Title ID, TMD version, file names, file sizes and file hashes(it is possible that some of this data lies in the ".cmd" file in the title's directory). This data is taken from the title's [[SD Filesystem#title|TMD]] during install, this is also why the encrypted TMD found in each title directory is redundant. Since this file controls what SD Card titles are accessible to the 3DS, it is possible to move between different versions of an SD Card title if you have the title.db and title data for each version of that specific title.
+
"'''title.db'''" - The "title.db" file (among other things perhaps), archives data about titles installed on the SD Card which includes their [[Serials#Product Code|Product Code]], number of NCCH and NCCH types, Title size and Title Version(the title version determines the name of the .cmd file which contains data from the title TMD used for anti-tampering purposes). This data is taken from the title's [[SD Filesystem#title|TMD]] and [[NCCH#CXI|executable NCCH]] during install, this is also party why the encrypted TMD found in each title directory is redundant, as the important information is moved to the ".db" and ".cmd" files during title installation. Since this file controls what SD Card titles are accessible to the 3DS, it is possible to move between different versions of an SD Card title if you have the title.db and title data for each version of that specific title.
    
"'''import.db'''" - The function of the file is not well understood. It appears to be related to the download/install of titles, as in the progress of downloading titles this file will have changed but the title.db will not be modified until the title has been properly downloaded. This file doesn't contain any title specific data which the 3DS has been noted to use in relation to titles on the SD Card, even though this file is modified when titles are installed/deleted. Infact, no matter what titles you install, if you use an old copy of the "import.db" with a recent copy of the "title.db", this creates no noticeable issues.
 
"'''import.db'''" - The function of the file is not well understood. It appears to be related to the download/install of titles, as in the progress of downloading titles this file will have changed but the title.db will not be modified until the title has been properly downloaded. This file doesn't contain any title specific data which the 3DS has been noted to use in relation to titles on the SD Card, even though this file is modified when titles are installed/deleted. Infact, no matter what titles you install, if you use an old copy of the "import.db" with a recent copy of the "title.db", this creates no noticeable issues.
Line 33: Line 33:     
And follow this directory structure:
 
And follow this directory structure:
  /<Title ID High>/<Title ID Low>/Content/00000000.tmd
+
  /<Title ID High>/<Title ID Low>/Content/XXXXXXXX.tmd
                                /XXXXXXXX.app
+
                                        /XXXXXXXX.app
                                /cmd/00000001.cmd
+
                                        /cmd/XXXXXXXX.cmd
 
  /<Title ID High>/<Title ID Low>/Data/00000001.sav
 
  /<Title ID High>/<Title ID Low>/Data/00000001.sav
 
  /<Title ID High>/<Title ID Low>/00000000.ctx
 
  /<Title ID High>/<Title ID Low>/00000000.ctx
Line 41: Line 41:  
For list of eShop titles see the [[Title list]]                           
 
For list of eShop titles see the [[Title list]]                           
 
                      
 
                      
"'''00000000.tmd'''" - (file name varies depending on title version) This is the Title Metadata associated with the title, it is encrypted with a per-console key. The decrypted TMD is available on Nintendo's CDN server at "http://nus.cdn.c.shop.nintendowifi.net/ccs/download/TitleIDhere/tmd". Though CDN version of the title TMD has a certificate chain attached at the end of the TMD, so removing it will give you the 1:1 decrypted TMD. After installation the "00000000.tmd" is redundant, because important title data is extracted and imported into the [[SD Filesystem#import.db and title.db|title.db]] and possibly the "00000001.cmd".
+
"'''XXXXXXXX.tmd'''" - (file name starts with 00000000.tmd and increases with an increment of "1" for each title version the 3DS is introduced to) This is the Title Metadata associated with the title, it is encrypted with a per-console key. The decrypted TMD is available on Nintendo's CDN server at "http://nus.cdn.c.shop.nintendowifi.net/ccs/download/TitleIDhere/tmd". Though CDN version of the title TMD has a certificate chain attached at the end of the TMD, so removing it will give you the 1:1 decrypted TMD. After installation the "00000000.tmd" is redundant, because important title data is extracted and imported into the [[SD Filesystem#import.db and title.db|title.db]] and ".cmd" files.
      Line 64: Line 64:       −
"'''00000001.cmd'''" - (file name varies depending on title version) May contain hashes, or some other kind of file authentication, as the size of the "00000001.cmd" varies with the number of files in the 'Content' directory. Also, if the "00000001.cmd" cannot be found or is edited, the title is completely non-functional.
+
"'''XXXXXXXX.cmd'''" - (file name starts with 00000001.cmd and increases with an increment of "1" for each title version the 3DS is introduced to) This file contains data taken from the titles [[TMD]] during install. The data includes the file names and hashes (possibly sizes aswell) of the .app files to prevent tampering. This file is encrypted with a per-console key.
     
839

edits