尤其是ios開發(fā)中經(jīng)常能遇到后綴是.car格式的文件腾夯,那么什么是car文件已經(jīng)我們?cè)撊绾未蜷_和編輯呢颊埃?
CAR stands for Component Application Resource. The CAR files contain information about the assets that are available for a software application being run on the Brew Mobile Platform. This platform is used to operate applications on a variety of mobile phones. The CAR files are compiled into a binary BAR file. This file is automatically loaded when the application is run.
The .car file extension is also used for AtHome Assistant files, Biosym chemical modeler input files, NeoBook Cartoon image format files, CAR Archive compressed archive files, CardMaker card files, Carnivores Ice Age resource files, Design-Your-CD data files and Railroad Tycoon 3 car properties files.
大概意思就是car文件是包含應(yīng)用程序資源的壓縮文件,例如Appicon蝶俱,啟動(dòng)圖等圖片資源班利。ios開發(fā)者很容易知道car文件是Assets.xcassets編譯的,那么已知car文件我們?nèi)绾涡薷哪兀?/p>
如果使用xcode做ios開發(fā)榨呆,那么直接打開xcode修改項(xiàng)目資源文件罗标,重新編譯即可。
下面介紹的主要是逆向修改car文件
一 將car文件轉(zhuǎn)換為Assets.xcassets文件
百度 光程科技积蜻,打開導(dǎo)航在線工具(其實(shí)看到這個(gè)頁面聰明的你就已經(jīng)知道了真相~~)
首先點(diǎn)擊 Car->Assets闯割,上傳你的car文件(20M以內(nèi))提交后下載Assets.xcassets文件,這一步其實(shí)就是將car文件還原了竿拆!是不是和xcode里的一模一樣~
可以直接打開Assets.xcassets修改里面的文件宙拉,注意圖片修改后要修改圖片目錄里的Contents.json文件,聰明的你一看就懂~
修改完成后將Assets.xcassets文件壓縮為zip格式
二 將Assets.xcassets文件轉(zhuǎn)換為car文件
還是剛剛的頁面丙笋,然后點(diǎn)擊 Assets->car谢澈,點(diǎn)擊上傳剛剛的zip文件,提交后稍等片刻不见,car文件就生成了澳化,是不是很簡(jiǎn)單~
至此就完成了car文件的修改了。