Today I learned how to use unyaffs to decompress the imgfile and package mkyaffs2image.

Source: Internet
Author: User

 

Today, I learned how to use unyaffs to unbind imgfiles and package imgfiles with mkyaffs2image.

I installed Yulin Mufeng Linux and used the root user to log on.

Package the file again
After modifying the files in the system directory, We can regenerate a new system. imgfile.
In this case, run the mkyaffs2image command. This command must also be compiled by yourself.
First go to http://www.aleph1.co.uk/cgi-bin/viewcvs.cgi/yaffs2/download the full source program
This page contains "Download GNU tarball". Click to download all.
After the download is complete, go to the utils subdirectory in the directory where the source program is located and run make
After running, you can see the mkyaffs2image command.
Note: You can directly Delete the old system. imgfile, and then run mkyaffs2image System (file directory name) system. img
In this way, a new system. imgfile is generated.
Grant sudo chmod-r 777 file directory the highest permission during packaging
Unyaffs system. img

What should I learn next?

Reprinted the Android system folder structure of anzhi! And the basic Rom customization tutorial !!

A complete Rom root directory contains the following folders and files:
Data
META-IN
System
Boot. img
System Directory description
1. application installation directory
1) Directory of the system application
/System/APP/*. APK
2) directory where the user installs the application
/Data/APP/*. APK
3) Note:
A) in the simulator, applications under/system/APP/will be restored every time the system is restarted, and sometimes/data/APP will be cleared.
B) if there is a duplicate application in/system/APP and/data/APP, it may not start which one, especially when ADB install kills a running program, sometimes the old one will be started.
2. User Data Directory
/Data/application package name/shared_prefs configuration file
/Data/application package name/databases/* directory of the database file
3. SD card directory
/Sdcard/
What we need to deal with is the content in the two folders:
Data/APP-the files in the text folder can be completely deleted, or you can freely Add the application software you want to install. You can delete the files after installing the flash.
System/APP-the Program in this folder is the default component of the system. You can see that all files end with the APK format, however, some self-made Rom files also contain the odex file corresponding to the APK file name. We mainly streamline the files in this folder. If there is an odex file, the corresponding odex file is also deleted when the APK file name is deleted.

Although we only increase or decrease the files in the preceding two folders during customization, let's take a look at the usage of the corresponding files in the system directory. (Different Rom versions have different APK versions)
\ System \ app
\ System \ app \ alarmclock.apk alarm clock
\ System \ app \ browser.apk Browser
\ System \ app \ bugreport.apk bug report
\ System \ app \ calculator.apk Calculator
\ System \ app \ calendar.apk calendar
\ System \ app \ calendarprovider.apk calendar
\ System \ app \ camera.apk camera
\ System \ app \ com.amazon.mp3.apk Amazon music
\ System \ app \ contacts.apk contact
\ System \ app \ downloadprovider.apk
\ System \ app \ drmprovider.apk DRM digital copyright provision
\ System \ app \ email.apk email client
\ System \ app \ fieldtest.apk Test Program
\ System \ app \ gdatafeedsprovider.apk googledata
\ System \ app \ gmail.apk Gmail email
\ System \ app \ gmailprovider.apk provided by Gmail
\ System \ app \ googleapps.apk Google package
\ System \ app \ googlesearch.apk search tool
\ System \ app \ gtalkservice.apk Gtalk Service
\ System \ app \ htmlviewer.apk HTML Viewer
\ System \ app \ htctwitter.apk integrates the Twitter client peep
\ System \ app \ im.apk even if the communication components include MSN and yahoo
\ System \ app \ imcredentialprovider.apk
\ System \ app \ improvider.apk
\ System \ app \ launcher.apk start Loader
\ System \ app \ htcnavipanel.apk navigation software
\ System \ app \ maps.apk Electronic Map
\ System \ app \ mediaprovider.apk multimedia playback
\ System \ app \ mms.apk SMS, MMS
\ System \ app \ music.apk music player
\ System \ app \ myfaves.apk T-Mobile myfaves Program
\ System \ app \ newsreader.apk news reader
\ System \ app \ packageinstaller.apk APK Installer
\ System \ app \ phone.apk dialing device
\ System \ app \ settings.apk system settings
\ System \ app \ settingsprovider.apk
\ System \ app \ setupwizard.apk setting wizard
\ System \ app \ soundrecorder.apk recording tool
\ System \ app \ street.apk street view map
\ System \ app \ sync.apk synchronization Program
\ System \ app \ talk.apk speech program
\ System \ app \ telephonyprovider.apk provided by phone
\ System \ app \ updater.apk update program
\ System \ app \ vpnservices.apk VPN Service
\ System \ app \ vending.apk manufacturer information
\ System \ app \ voicedialer.apk voice dial
\ System \ app \ voicesearch.apk Voice Search
\ System \ app \ youtube.apk YouTube video
\ System \ bin
The files in this directory are all local programs of the system. From the bin folder name, we can see that they are binary programs, which are mainly components of the Linux system, the Android mobile phone network provides a brief analysis of the main files:
\ System \ bin \ akmd
\ System \ bin \ am
\ System \ bin \ app_process system process
\ System \ bin \ dalvikvm Dalvik VM host
\ System \ bin \ Alibaba-daemon system bus monitoring
\ System \ bin \ debugadh Debugger
\ System \ bin \ debug_tool
\ System \ bin \ dexopt Dex Option
\ System \ bin \ dhcpcd DHCP server
\ System \ bin \ dumpstate status: capture failed
\ System \ bin \ dumpsys
\ System \ bin \ dvz
\ System \ bin \ fillup
\ System \ bin \ flash_image flash Image
\ System \ bin \ hciattach
\ System \ bin \ hcid Kernel
\ System \ bin \ hostapd
\ System \ bin \ hostapd_cli
\ System \ bin \ htclogkernel
\ System \ bin \ Input
\ System \ bin \ installd
\ System \ bin \ itr
\ System \ bin \ linker
\ System \ bin \ logcat log Printing
\ System \ bin \ logwrapper
\ System \ bin \ mediaserver
\ System \ bin \ monkey
\ System \ bin \ mountd storage mounting Device
\ System \ bin \ netcfg network settings
\ System \ bin \ Ping program
\ System \ bin \ playmp3 player
\ System \ bin \ PM Package Manager
\ System \ bin \ qemud qemu VM
\ System \ bin \ radiooptions wireless options
\ System \ bin \ rild RIL component
\ System \ bin \ sdptool
\ System \ bin \ sdutil
\ System \ bin \ Service
\ System \ bin \ servicemanager Service Manager
\ System \ bin \ sh
\ System \ bin \ ssltest SSL Test
\ System \ bin \ surfaceflinger touch sensor driver
\ System \ bin \ SVC Service
\ System \ bin \ system_server
\ System \ bin \ telnetd Telnet component
\ System \ bin \ toolbox
\ System \ bin \ wlan_loader
\ System \ bin \ wpa_cli
\ System \ bin \ wpa_supplicant
\ System \ etc
From the folder name, the system configuration files are saved, such as the core configuration of the APN Access Point settings.
\ System \ etc \ apns-conf.xml APN Access Point configuration file
\ System \ etc \ audiofilter.csv audio filter configuration file
\ System \ etc \ audiopara4.csv
\ System \ etc \ bookmarks. xml bookmarks Database
\ System \ etc \ monitoring. conf bus monitoring configuration file
\ System \ etc \ dhcpcd
\ System \ etc \ event-log-tags
\ System \ etc \ favorites. xml favorites
\ System \ etc \ firmware information
\ System \ etc \ GPS. conf GPS setting file
\ System \ etc \ hcid. conf kernel hcid configuration file
\ System \ etc \ hosts network DNS Cache
\ System \ etc \ init. Goldfish. Sh
\ System \ etc \ location locating
\ System \ etc \ mountd. conf stores the mounting configuration file
\ System \ etc \ notice.html prompt webpage
\ System \ etc \ permissions. xml permission
\ System \ etc \ pvplayer. conf
\ System \ etc \ Security
\ System \ etc \ Wi-Fi Components
\ System \ etc \ dhcpcd-hooks
\ System \ etc \ dhcpcd-run-hooks
\ System \ etc \ dhcpcd. conf
\ System \ etc \ dhcpcd-hooks \ 01-test
\ System \ etc \ dhcpcd-hooks \ 20-dns.conf
\ System \ etc \ dhcpcd-hooks \ 95-configured
\ System \ etc \ firmware \ brf6300.bin
\ System \ etc \ location \ GPS
\ System \ etc \ location \ GPS \ location positioning
\ System \ etc \ location \ GPS \ nmea gps data parsing
\ System \ etc \ location \ GPS \ Properties
\ System \ etc \ SECURITY \ cacerts. BKS
\ System \ etc \ SECURITY \ otacerts.zip OTA download Verification
\ System \ etc \ WiFi \ fw1251r1c. Bin
\ System \ etc \ WiFi \ tiwlan. ini
\ System \ etc \ WiFi \ wpa_supplicant.conf WPA verification component
\ System \ Fonts
Font folder, in addition to the standard font, bold, and italic, you can see that the largest file size may be a Chinese font, or some Unicode font, from T-Mobile G1, we can clearly see that the display of Simplified Chinese is normal, among which droidsansfallback. TTF File Size
\ System \ fonts \ DroidSans-Bold.ttf
\ System \ fonts \ droidsans. TTF
\ System \ fonts \ droidsansfallback. TTF
\ System \ fonts \ droidsansmono. TTF
\ System \ fonts \ DroidSerif-Bold.ttf
\ System \ fonts \ DroidSerif-BoldItalic.ttf
\ System \ fonts \ DroidSerif-Italic.ttf
\ System \ fonts \ DroidSerif-Regular.ttf

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.