In-depth analysis of e680g application I. The so-called Loader
Papaya 20060818
Resource download http://play.younet.com/view.php? Tid = 18578
I. Preface
The e680g cannot be simply understood as a mobile phone, but is an individual who runs the Linux operating system.
Go to the computer!
This article attempts to explore the architecture of the e680g operating system, create a personal PDA, and expand its powerful functions.
Since I have just been in touch with e680g, coupled with the Linux knowledge blank, the depth of the article may be far from reaching
At the level of Linux kernel source code analysis, I added the application to show that it is intended for common users.
For most people, application expansion is the main content.
In addition, the content involved in this article does not need to be flushed, which is easier for new users to accept.
Ii. Enter the subject
Before entering the topic, I want to talk a few nonsense words: first, I have to buy an expansion card to sell iron in the hot pot, preferably
1 GB; otherwise, there is no need to play with the phone memory space! Secondly, the instruction manual must be carefully read.
I don't know the operation, but how can I get involved?
Iii. Exploring Loader
A. Installer
As long as you go to the e680 forum, you can see almost ubiquitous L/m! To be honest, loader is just someone else
A simple script, just a few lines of code. It is mysterious for people who just started e680g to study it.
Loader does not make sense either. However, when we step by step explore the actual process, you will find that your DIY capabilities are improved.
It is much higher.
Loader can be installed on a mobile phone or on a card. It is generally an MTF file.
For example, loader_e680i_phone.mtf (mobile phone) loader_e680i_sd.mtf (SD card ).
Files with the extension of MTF can be directly executed by the e680g. (Click it on your phone or card.
The MTF file can be executed .)
The essence of the MTF file is the compressed file of the TAR package in Linux! It doesn't matter if you don't understand it. You can rename it under the above file.
For loader_e680i_sd.tar.gz, use winrarto decompress the package and you will see some files. (If you are interested, you can
Check the usage of tar, gunzip, and other shell commands in Linux to make it clearer .)
No matter where you download the load installer, the directory structure is certainly the same!
If the MTF runs at e680g, it is directly decompressed to the corresponding path in the Linux operating system environment of the mobile phone.
Take loader_e680i_sd.tar.gz of the card version as an example. It is actually decompressed into the following file:
/MMC/mmca1/. System/Java/plugcarddb
/Diska/. System/qtdownload/loader. Desktop
/Diska/. System/qtdownload/loader. Lin
/Diska/. System/qtdownload/loader/loader.gif
/Diska/. System/qtdownload/loader/loader_sm.gif
The mobile loader_e680i_phone.tar.gz path must be different.
Application Documents:
/Ezxlocal/download/appwrite/AM/installeddb
/Diska/. System/qtdownload/loader. Desktop
/Diska/. System/qtdownload/loader. Lin
/Diska/. System/qtdownload/loader/loader.gif
/Diska/. System/qtdownload/loader/loader_sm.gif
We can see that the only difference between the card version and the mobile version is that there is a DB difference!
These two files also exist on the e680g, plugcarddb and installeddb, which store external programs (
Configuration information of software installed by users with games. Plugcarddb stores program information installed in the card, while
Installeddb stores the program information installed on your mobile phone.
When the e680g is started or the menu order is changed, the two dB files are read to refresh the menu display. These two articles
Files are in the text format and can be opened using ultraedit.
B. Configuration File
First, open the two files of the loader installer, and we will find that
But plugcarddb only has one configuration item about loader. This is because
The installer has written the game configuration information that comes with the mobile phone to installdb.
The following is the loader configuration information (plugcarddb) of the card installation version.
Multiple.
[Applinkinfo]
Applinkcount = 100000001
[Applinkrecord00000001]
Allposition =
Bigicon = loader.gif
Directory =.../../diska/. System/qtdownload/loader
Exec = loader. Lin
Group = 5
Icon = loader_sm.gif
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name = Loader
Osversion =
Position = 17
Rotation =
Shared = 0
Size = 10 K
Type = 2
Uid = 1, 100000001
[Mimeinfo]
Midmecount = 100000000
You can view the plugcarddb file on your mobile phone card and compare it yourself. However, if you still
If you are a newbie and do not use Telnet, it does not matter. Large Capacity mode to connect to the computer, you can card that disk
Path:. System/Java/. Find the plugcarddb file.
The following list details the main content of this configuration file.
Applinkcount = 100000001 maximum number of programs installed
Applinkrecord00000001, uid = 100000001
The Installation Number of the application.
Path of the Directory Application.
Bigicon = loader.gif, icon = loader_sm.gif
The large and small icons displayed by the application on the menu.
Application or script executed by Exec
Java ID is a positive value if it is a Java program; otherwise, it is-1.
Group = 5 The first four are the group of the mobile phone system. 5 and 6 are custom ones and custom ones.
Position, allposition display order on the menu
Name application name
The type content is very important, which is described in detail below.
The system specifies Java program type = 5, and other applications type = 2. (You can also set it to 0, 3, 4, and 6.
You can try it on your own .) Note that when type = 2, the directory path needs to be rolled back to the top.
Level directory. You must add.../in front of the Directory because the two dB files are under Level 4 directory. Otherwise, the system
Not recognizable. There is also a famous problem here, that is, when type = 2, no matter what the configuration information is, the menu
"Application name" is displayed "! Depressing. Although this problem can be solved through flash, it is not
It is too significant, because mpkg itself is not necessary. (Details will be provided later)
C. loader Summary
Here, we can draw a clear conclusion: the so-called loader installation process only involves
Folder to a directory of the mobile phone, and overwrite installdb (mobile phone version) or plugcarddb (card version)
File, that is, add the configuration information of this directory program to the DB file.
Therefore, after the installation, the self-installed Java software is definitely no longer available. In installdb or plugcarddb
Without the configuration information of those software.
Loader does not need to be mounted on the mobile phone at all! You can completely discard the MTF installation method and directly copy the loader file.
Any path from the clip to the card. (Remember, if it is a standard path, it is not your large-capacity path. Configure telnet or install
Qonsole .) Manually add the configuration information to the plugcarddb file.
D. What is loader?
So why should we install loader? What is the use of loader. Open the loader. Lin file in ultraedit.
It's too easy to get familiar with Linux! It's just a normal shell script, and what works is
Exec. For example, use test. Sh to enable it with loader Association, and the system shell starts the loader. When exec is executed,
It is equivalent to Exec test. Sh. (If you do not understand, you can view the shell script introduction in Linux .)
It is justified to execute such scripts in Linux, but on the e680g graphical interface
It cannot be run directly.
What should we do? The following is an example of custom loader.
You can write a script test. Sh as follows:
#! /Bin/bash
CD/usr/sysqtapp/mystuff
./Mystuff
This is the command to start the favorites folder of the system. Write another test. Load script:
#! /Bin/bash
Exec "$2 "&
Create a folder such as/MMC/mcal1/test on the card and copy the two scripts test. SH and test. Load,
Click test. Sh on your phone. The executable program cannot be found.
Add the following content to the information:
[Applinkrecord00000001]
Allposition =
Bigicon =
Directory =..././MMC/mmca1/test
Exec = test. Load
Group =
Icon =
Installeddate =
Javaid =-1
Mime =
Mpkgfile =
Name =
Osversion =
Position =
Rotation =
Shared = 0
Size =
Type = 2
Uid = 1, 100000001
(Note: Modify applinkcount and applinkrecord as needed. The above configuration omitted many secondary content,
Only keep necessary .)
After saving the file, you can change the menu order and find an application with an exclamation point.
No menu icon is specified! In this case, select test. SH and use the exclamation point application to open it.
The favorites folder is successfully opened! Our own loader is successful!
Here, the nature of Loader must be very clear.
5. Conclusion
The loader in this article is much simpler than mpkg. The next article mainly analyzes the software related to mpkg.