CN102831173A - Memory expanding method, device and terminal based on Android system - Google Patents

Memory expanding method, device and terminal based on Android system Download PDF

Info

Publication number
CN102831173A
CN102831173A CN2012102649775A CN201210264977A CN102831173A CN 102831173 A CN102831173 A CN 102831173A CN 2012102649775 A CN2012102649775 A CN 2012102649775A CN 201210264977 A CN201210264977 A CN 201210264977A CN 102831173 A CN102831173 A CN 102831173A
Authority
CN
China
Prior art keywords
file
data
storage card
cache
under
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012102649775A
Other languages
Chinese (zh)
Other versions
CN102831173B (en
Inventor
魏江波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Corp
Original Assignee
TCL Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Corp filed Critical TCL Corp
Priority to CN201210264977.5A priority Critical patent/CN102831173B/en
Publication of CN102831173A publication Critical patent/CN102831173A/en
Application granted granted Critical
Publication of CN102831173B publication Critical patent/CN102831173B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a memory expanding method, a device and a terminal based on an Android system. The method comprises the steps of connecting a data file and a cache file under a system data partition with a corresponding file under a backup folder, storing into the backup folder, and reconnecting the data file and the cache file with a corresponding file of a memory card root directory; connecting the data file with the cache file in the memory card root directory or the backup folder into a corresponding file under the system data partition according to the plug-pull state of a memory card; when the memory card is at the mount state, carrying out dynamic switch on the data file and the cache file in the system data partition and the memory card, and at the same time, copying file data generated while installing an application program into a directory corresponding to the memory card root directory. With the adoption of the method, the device and the terminal, the purposes that a user objective installation program is installed into a memory card when the memory card is available, and the expansion of the system data partition under the Android operation is realized.

Description

Memory expanding method, device and terminal device based on the Android system
Technical field
The present invention relates to have the technical field of electronic equipment of internal memory, relate in particular to a kind of memory expanding method, device and terminal device based on the Android system.
Background technology
Android operating system be a kind of with Linux be the basis open source code operating system, be widely used at present in the various terminal devices, like mobile phone, MID, PAD or the like.At present based on the terminal device of Android system because of general built-in ROM insufficient space, cause the user that required APK application program can't be installed as required in a large number; Simultaneously owing to all relatively account for capacity for the adaptive application program of Android operating system at present; Especially the game class application program is basically all because of comprising sizable third party Lib storehouse and audio and video resources file; Make the size of each game class application program take the space of tens Mbyte easily, thereby can't satisfy user's objective reality demand.In addition; Present stage is because the FLASH memory device is on the high side; Terminal manufacturer can not be the too big FLASH storer of equipment disposition, and terminal device all can be supported external storage card (SDCARD or TF card) at present, and its price with respect to FLASH storer SDCARD or TF card is just much lower; And the product of capacity from hundreds of Mbyte to 32Gbyte has, and optional space is very big.
For this reason; In order to solve the not enough problem of installing space; The solution of the overwhelming majority is: storage card formats is turned to two subregions; One of them is the ext3/ext4 subregion (installing with support application program) of linux system, and the ext3/ext4 subregion of the said storage card DATA subregion as the Android system is mounted in the system; In this scheme because of the system that increases income that is based on Linux of Android system itself; Rezone so require the user to do, and one of them zoned format is turned to the file system of ext3/ext4 type, otherwise just third party application can't be installed storage card; Also to heavily brush machine in addition to existing equipment; Import various SHELL scripts, everything operation is too loaded down with trivial details really for domestic consumer, and does not note causing the operating system collapse of terminal device slightly; Can't start shooting, bring irreparable damage to the user.
Summary of the invention
In view of the above problems; The object of the invention is to provide a kind of memory expanding method based on the Android system; Be intended to solve in the memory expanding method of terminal device of prior art; The user need carry out heavily complex operations such as brush machine of storage card partition format, equipment, the technical matters that the system crash that possibly bring, equipment can't normal boot-straps.
The present invention is achieved in that a kind of based on Android system application installing space expansion method, and said method comprises:
Data file under the system data subregion and cache file are connected to the backup file folder down on the corresponding file, and are saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file;
According to the plug state of said storage card, data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion;
When storage card is the carry state, in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies in the corresponding catalogue of said storage card root directory.
It is a kind of based on Android system application installing space flash chamber that another purpose of the present invention is to provide, and said device comprises:
The system start-up linkage unit; Be used for data file under the system data subregion and cache file are connected to backup file folder corresponding file down; And be saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file;
The file linkage unit is used for the plug state according to said storage card, and data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion;
The application program installation unit; Be used for when storage card is the carry state; To in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies in the corresponding catalogue of said storage card root directory.
A purpose more of the present invention is, a kind of Android system terminal is provided, and said terminal comprises said internal memory expanding unit based on the Android system.
But terminal device and memory expanding method thereof based on the Android system at exented memory of the present invention; Through specific file under the Android system data subregion, relevant with application program (comprising data file and cache file) is connected on the storage card respective file; Revise Android system boot flow process simultaneously; When having storage card; Automatically data file under the system partitioning and cache file are reconnected (Relink) operation, whole process need not user intervention, does not need the user that storage card is done two subzones; And bag mounting strategy through the primary Android of revision system; In set up applications; With in the internal system file system data subregion with storage card in associated documents (data file and cache file) dynamically switch; Solved the problem that the FAT/NTFS file system can't set up applications, when finally being implemented in storage card the ownership goal set up applications has been installed on the storage card, realized the Android operation purpose of system data subregion dilatation down with this.
Description of drawings
Fig. 1 is the process flow diagram that the present invention is based on the memory expanding method preferred embodiment of Android system;
Fig. 2 is the particular flow sheet of step S101 among Fig. 1;
Fig. 3 is the particular flow sheet of step S102 among Fig. 1;
Fig. 4 is the particular flow sheet of step S103 among Fig. 1;
Fig. 5 is the block diagram that the present invention is based on the internal memory expanding unit preferred embodiment of Android system;
Fig. 6 is the block diagram of system start-up linkage unit among Fig. 5;
Fig. 7 is the block diagram of Fig. 5 file linkage unit;
Fig. 8 is the block diagram of application program installation unit among Fig. 5.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
For technical scheme of the present invention is described, describe through specific embodiment below.
Embodiment one:
Please with reference to Fig. 1, Fig. 1 is the process flow diagram that the present invention is based on the memory expanding method preferred embodiment of Android system.Memory expanding method as shown in Figure 1, that the embodiment of the invention provides comprises the steps:
Step S101, the data file under the system data subregion and cache file are connected to the backup file folder down on the corresponding file; And be saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file.
The purpose of the embodiment of the invention is to be implemented in the external storage card set up applications of Android system and to need not user intervention; For this reason; In this step, revise the start flow process, made the Android system set up a file structure that can satisfy above-mentioned purpose, set up the file annexation.After the system kernel startup finishes, accomplish the carry of system's (System) subregion and data (Data) subregion in the initialize process stage.If system is start for the first time; Then need create backup file folder, be used for when equipment does not have external storage card, application program that can the backup storage system prepackage; Data file under the system data subregion and cache file are connected on the said backup file folder corresponding file; And be saved in the backup file folder, when outside when being equipped with storage card, said data file and cache file reconnected receive on the storage card root directory corresponding file.Like this; After the system start-up initialization finishes; When system does not have the carry storage card, only load the preparatory set up applications under the backup file folder, when being mounted with storage card; The application program that can switch on the storage card is installed tabulation, and the user can the browing system pre-installed applications use with the third party who is installed on the storage card.
Step S102, according to the plug state of said storage card, data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion.
In the present embodiment,, then data file under the storage card root directory and cache file are connected to corresponding file under the system data subregion if detecting storage card is the carry state; If detecting storage card is unloaded state, data file and cache file under then backup file presss from both sides.Therefore, in embodiments of the present invention, support the storage card hot plug,, make corresponding actions through the plug state of detection of dynamic storage card.When there was storage card in system, system offered the third party application that application program of user comprises that preparatory application program of installing of system and user install voluntarily; When not having storage card, system offers the application program that the user can visit and comprises the application program that system installs in advance.
Step S103, when storage card is the carry state, accomplish in the system data subregion with storage card in the data file and the dynamic switching of cache file, the file data that simultaneously set up applications is produced copies in the catalogue of storage card root directory correspondence.
This modified existing application bag mounting strategy; When storage card is unloaded state; Because data file relevant with application program under the system data subregion and cache file have been connected to backup file folder corresponding file down at this moment; Therefore the direct set up applications of user, the document data saving that set up applications produces is in backup file presss from both sides.When storage card is the carry state; To in the system data subregion with storage card in data file and cache file dynamically switch; The data file that simultaneously set up applications is produced copies in the corresponding catalogue of storage card root directory; The third party application deposit data that the user is installed has voluntarily been saved the volume space of system data subregion in storage card, satisfied the demand of user installation third party application.
As preferred embodiment a kind of, see also Fig. 2, Fig. 2 is the particular flow sheet of step S101 among Fig. 1.As shown in Figure 2, said step S101 specifically comprises:
Step S201, startup Android system are if there is the backup file folder then to create the backup file folder under the system data subregion.
Start-up system kernel at first when this step starts the Android system; After the system kernel startup finished, carry system partitioning and data partition judged whether current be the start first time of system; If start for the first time; So also need establishment/data/data_back backup file folder under system data subregion/data catalogue, as when not having storage card, the place of the back-up storage of pre-installed applications program associated documents.
Data file and cache file under step S202, the system data subregion are threaded files, then delete these two files and simultaneously these two files are connected to said backup file to press from both sides on the corresponding file.
Judge whether data file/data/data and cache file/data/dalvik-cache under the system data subregion are threaded file, if threaded file is then deleted/data/data and/data/dalvik-cache; Simultaneously general/data/data and/data/dalvik-cahce is connected to/data/data_back catalogue corresponding file.
After step S203, Android system start-up finish, if do not have said data file and said cache file in the said backup file folder, in then the data file the system data subregion under and buffer memory file backup being pressed from both sides to said backup file.
After Android system start-up finishes to accomplish; Whether data and dalvik-cache file are arranged under the judgement/data/data_back catalogue; If not general/data/data and/data/dalvik-cache backups to/the data/data_back catalogue; This step guarantees that data and dalvik-cache file are arranged under the backup file folder/data/data_back, and loading application programs can not pressed from both sides from backup file in system when having storage card.
Step S204, if having said data file and said cache file in the said storage card, then the data file under the system data subregion and cache file are reconnected and receive on the said storage card root directory corresponding file.
Judge whether storage card root directory/mnt/sdcard exists data and dalvik-cache; If existed completions/data/data and/data/dalvik-cache reconnect (Relink) operation, soon/data/data and/these two files relevant with application program of data/dalvik-cache reconnect (Relink) and get on to/mnt/sdcard catalogue corresponding file.Like this, the application program that system can automatically switch on the storage card is installed tabulation, make the user can the preparatory installation procedure of browing system be installed in the program on the storage card.
This preferred embodiment only loads the preparation part preparatory set up applications under/data/data_back path through revising Android system boot flow process, make to be supported in when not having storage card; When before system boot, inserting storage card simultaneously, can tabulation be installed by the application program that system discerns automatically and switches to above the storage card, the terminal user can browse and comprise pre-installed applications and be installed in the third party application above the storage card.
Further as preferred embodiment, see also Fig. 3, Fig. 3 is the particular flow sheet of step S102 among Fig. 1.As shown in Figure 3, said step S102 specifically comprises:
Storage card Status Change intention (Intent) broadcasting that step S301, monitoring system are sent;
Step S302, after the carry that detects storage card (Mount) broadcasting; If the storage card root directory exists data file and cache file; Then delete data file and cache file under the system data subregion, and data file and cache file under the storage card root directory are connected to corresponding file under the system data subregion;
Step S303, after the carry that detects storage card (Mount) broadcasting; If the storage card root directory does not exist data file and cache file; Then data file under the backup file folder and buffer memory file copy are arrived the storage card root directory; Delete data file and cache file under the system data subregion again, the data file under the storage card root directory and cache file are reconnected be corresponding file under the system data subregion at last;
Step S304, after the unloading that detects storage card (Unmount) broadcasting, delete data file and the cache file the system data subregion under this moment, data file and cache file in backup file being pressed from both sides are connected to corresponding file under the system data subregion again.
This preferred implementation can be obtained the plug state of storage card in real time through intention (Intent) broadcasting of monitoring system; After the Mount broadcasting that detects storage card; Show that current storage card is the carry state; At first whether judgement/mnt/sdcard/data exists with/mnt/sdcard/dalvik-cache, if existed deletion/data/data and/data/dalvik-cache, and corresponding file is connected to/data/ catalogue corresponding file under the general/mnt/sdcard root directory; If do not exist, then data and the dalvik-cache under the general/data/data_back/ of elder generation copies to/the mnt/sdcard root directory; Delete data and dalvik-cache under current/data catalogue then; At last data and dalvik-cache are done and reconnect (Relink) operation, be about to/ data and dalvik-cache under the mnt/sdcard catalogue be connected to/the data catalogue under corresponding file.After the unloading that detects storage card (Unmount) broadcasting; Show that storage card is a unloaded state; At first data under the deletion/data catalogue and dalvik-cache file, the data and the dalvik-cache that will back up then under/data/data_back catalogue are connected to/data catalogue corresponding file.Through this preferred implementation, accomplish dynamic detection to storage card, support the storage card hot plug, make that Android operating system can operate as normal under storage card existence or non-existent situation.
Further as preferred embodiment, see also Fig. 4, Fig. 4 is the particular flow sheet of step S103 among Fig. 1.As shown in Figure 4, said step S103 specifically comprises:
Step S401, the data file and the cache file of storage card root directory respective file before set up applications, have been connected under the deletion system data subregion;
Step S402, the data file under the system partitioning and cache file are connected to said backup file folder corresponding file down;
Step S403, normal mounting application program, after installing with said backup file folder down, copy in the said storage card root directory in the corresponding catalogue with the application program corresponding file data of being installed;
Linked the data file and the cache file of said backup file folder under step S404, the deletion system data subregion, laying equal stress on is connected to said storage card root directory corresponding file.
This preferred implementation specifically provided in the system data subregion with storage card in data file and the dynamic switching mode of cache file; If system does not have external storage card; Be that storage card is a unloaded state, the user can only install third party application in the backup file folder.If be equipped with storage card outside the system; The user is before set up applications; Be connected to storage card root directory respective file /data/data and/data/dalvik-cache deletion; General/data/data is connected to/data/data_back/ catalogue corresponding file with/data/dalvik-cache again; Set up applications on the terminal after program installs, copies under the corresponding catalogue in the storage card root directory with the application program corresponding file data of installing just now under the general/data/data_back/ catalogue again; Delete the data file and the cache file of existing being connected to/data/data_back catalogue at last, be connected to the respective file under the storage card root directory again.Be based on the system that increases income of linux kernel because of Android operating system; So for FAT32 and new technology file system is not support directly set up applications on its subregion; And this preferred implementation is installed (PackageInstaller) strategy through the revision packing, when being mounted with storage card in system; With in the system data subregion with storage card in data file and cache file dynamically switch, the application data of finally being installed voluntarily by the user leaves on the storage card.
Embodiment two:
See also Fig. 5, Fig. 5 is the block diagram that the present invention is based on the internal memory expanding unit preferred embodiment of Android system.As shown in Figure 5, the block diagram of the embodiment of the invention two provides a kind of internal memory expanding unit based on the Android system only shows the part relevant with the embodiment of the invention for the ease of explanation.
The internal memory expanding unit that present embodiment provides comprises:
System start-up linkage unit 501; Be used for data file under the system data subregion and cache file are connected to backup file folder corresponding file down; And be saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file;
File linkage unit 502 is used for the plug state according to said storage card, and data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion;
Application program installation unit 503; Be used for when storage card is the carry state; To in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies in the corresponding catalogue of said storage card root directory.
In the present embodiment; System start-up linkage unit 501 is connected to data file under the system data subregion and cache file on the said backup file folder corresponding file; And be saved in the backup file folder; When outside when being equipped with storage card, said data file and cache file reconnected receive on the storage card root directory corresponding file.Like this; After the system start-up initialization finishes; When system does not have the carry storage card, only load the preparatory set up applications under the backup file folder, when being mounted with storage card; The application program that can switch on the storage card is installed tabulation, and the user can the browing system pre-installed applications use with the third party who is installed on the storage card.File linkage unit 502 then is connected to corresponding file under the system data subregion with data file under the storage card root directory and cache file if detecting storage card is the carry state; If detecting storage card is unloaded state, data file and cache file under then backup file presss from both sides.In 503 pairs of system data subregions of application program installation unit with storage card in data file and cache file dynamically switch; The data file that simultaneously set up applications is produced copies in the corresponding catalogue of storage card root directory; The third party application deposit data that the user is installed voluntarily is in storage card; Save the volume space of system data subregion, satisfied the demand of user installation third party application.
Further as preferred embodiment, see also Fig. 6, Fig. 6 is the block diagram of system start-up linkage unit among Fig. 5.As shown in Figure 6, said system start-up linkage unit 501 specifically comprises:
The backup file folder is created module 601, is used to start the Android system, if there is not the backup file folder then to create the backup file folder under the system data subregion;
Connect backup file clamping piece 602, be used for, then delete these two files and simultaneously these two files are connected to said backup file and press from both sides on the corresponding file if data file and cache file under the system data subregion are threaded files;
File backup module 603 is after being used for Android system start-up and finishing, if do not have said data file and said cache file in the said backup file folder, in then the data file the system data subregion under and buffer memory file backup being pressed from both sides to said backup file;
File reconnects module 604, is used for if said storage card exists said data file and said cache file, then the data file under the system data subregion and cache file is reconnected and receives on the said storage card root directory corresponding file.
In this preferred embodiment; The backup file folder is created module 601 after the kernel startup finishes; Carry system partitioning and data partition; Whether be the first time start of system, if start for the first time so also needs establishment/data/data_back backup file folder under system data subregion/data catalogue if judging current; Connect backup file clamping piece 602 and judge whether data file/data/data and cache file/data/dalvik-cache under the system data subregion are threaded file, if threaded file then delete/data/data and/data/dalvik-cache; Simultaneously general/data/data and/data/dalvik-cahce is connected to/data/data_back catalogue corresponding file.File backup module 603 is after Android system start-up finishes to accomplish; Whether data and dalvik-cache file are arranged under the judgement/data/data_back catalogue; If not general/data/data and/data/dalvik-cache backups to/the data/data_back catalogue; This step guarantees that data and dalvik-cache file are arranged under the backup file folder/data/data_back, and loading application programs can not pressed from both sides from backup file in system when having storage card.File reconnects module 604 and judges whether storage card root directory/mnt/sdcard exists data and dalvik-cache; If existed completions/data/data and/data/dalvik-cache reconnect (Relink) operation, soon/data/data and/these two files relevant with application program of data/dalvik-cache reconnect (Relink) and get on to/mnt/sdcard catalogue corresponding file.Like this, the application program that system can automatically switch on the storage card is installed tabulation, make the user can the preparatory installation procedure of browing system be installed in the program on the storage card.
Further as preferred embodiment, see also Fig. 7, Fig. 7 is the block diagram of Fig. 5 file linkage unit.As shown in Figure 7, said file linkage unit 502 specifically comprises:
Module 701 is assert in the broadcasting detecting; The storage card Status Change intention that is used for sending through monitoring system is broadcasted, and after the installation carry broadcasting that detects storage card, can assert that storage card is the carry state; After the unloading broadcasting that detects storage card, can assert that storage card is a unloaded state.
Root directory link block 702; Being used for working as said storage card is the carry state; And said storage card root directory exists data file and cache file; Then delete data file and cache file under the system data subregion, and data file and cache file under the said storage card root directory are connected to corresponding file under the system data subregion;
Root directory reconnects module 703; Being used for working as said storage card is the carry state; But said storage card root directory does not exist said data file and said cache file; Then backup file folder data file and buffer memory file copy down arrived said storage card root directory, delete data file and cache file under the system data subregion again, the data file under the storage card root directory and cache file are reconnected be corresponding file under the system data subregion at last;
Backup file folder linkage unit 704, being used for working as storage card is unloaded state, then deletes data file and cache file under the system data subregion, again data file and cache file in the said backup file folder is connected to corresponding file under the system data subregion.
Further as preferred embodiment, see also Fig. 8, Fig. 8 is the block diagram of application program installation unit among Fig. 5.As shown in Figure 8, said application program installation unit 503 specifically comprises:
File delete module 801 is used for before set up applications, deleting data file and the cache file that has been connected to storage card root directory respective file under the system data subregion;
System data file link block 802 is used for data file under the system partitioning and cache file are connected to said backup file folder corresponding file down;
Program installation data replication module 803 is used for the normal mounting application program, after installing with said backup file folder down, copy in the said storage card root directory in the corresponding catalogue with the application program corresponding file data of being installed;
Storage card reconnects module 804, is used to delete data file and the cache file of having linked said backup file folder under the system data subregion, and laying equal stress on is connected to said storage card root directory corresponding file.
In this preferred implementation, if system does not have external storage card, promptly storage card is a unloaded state, and the user can only install third party application in the backup file folder.If be equipped with storage card outside the system; The user is before set up applications; File delete module 801 Link is deleted to storage card root directory respective file/data/data and/data/dalvik-cache; System data file link block 802 general/data/data again is connected to/data/data_back/ catalogue corresponding file with/data/dalvik-cache; Set up applications on the terminal after program installs, copies under the corresponding catalogue in the storage card root directory with the application program corresponding file data of installing just now under the program installation data replication module 803 general/data/data_back/ catalogues again; Last storage card reconnects the data file and the cache file of module 804 deletion existing being connected to/data/data_back catalogues, is connected to the respective file under the storage card root directory again.Be based on the system that increases income of linux kernel because of Android operating system; So for FAT32 and new technology file system is not support directly set up applications on its subregion; And this preferred implementation is installed (PackageInstaller) strategy through the revision packing, when being mounted with storage card in system; With in the system data subregion with storage card in data file and cache file dynamically switch, the application data installed voluntarily of user leaves on the storage card the most at last.
Embodiment three:
The embodiment of the invention three also provides a kind of Android system terminal, and said terminal comprises the two described internal memory expanding units based on the Android system like embodiment.For example said terminal can be smart mobile phone, MID, PAD or the like; So long as adopt the specific file relevant with application program (comprising data file and cache file) under the Android system data subregion is connected on the storage card respective file; Revise Android system boot flow process simultaneously and (PackageInstaller) strategy is installed with packing; Make the user need not operation bidirectional and just can third party application be installed on the external storage card that the terminal device that uses said method is all within protection scope of the present invention.
The memory expanding method based on the Android system, device and the terminal device that provide through above-mentioned three embodiment of the present invention; The user can make full use of the storage space on the terminal device; Solved the problem that multiple utility program can't be installed on terminal device; The user need not do any operation just can freely install any Android operating system matched application program that is; As long as its storage card is enough big, can need not the problem of taking into account system data partition off-capacity, fundamentally solve the capacity problem that the Android appliance applications is installed.
One of ordinary skill in the art will appreciate that; Realize that all or part of step in the foregoing description method is to instruct relevant hardware to accomplish through program; Described program can be in being stored in a computer read/write memory medium; Described storage medium is like ROM/RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. the memory expanding method based on the Android system is characterized in that, said method comprises:
Data file under the system data subregion and cache file are connected to the backup file folder down on the corresponding file, and are saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file;
According to the plug state of said storage card, data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion;
When storage card is the carry state, in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies in the corresponding catalogue of said storage card root directory.
2. method according to claim 1; It is characterized in that; Said data file under the system data subregion and cache file are connected to the backup file folder down on the corresponding file; And be saved in the said backup file folder, said data file and said cache file are reconnected receive step on the storage card root directory corresponding file, specifically comprise:
Start the Android system, if there is not the backup file folder then to create the backup file folder under the system data subregion;
If data file and cache file under the system data subregion are threaded files, then delete these two files and simultaneously these two files are connected to said backup file and press from both sides on the corresponding file;
After Android system start-up finishes, if do not have said data file and said cache file in the said backup file folder, in then the data file the system data subregion under and buffer memory file backup being pressed from both sides to said backup file;
If have said data file and said cache file in the said storage card, then the data file under the system data subregion and cache file are reconnected and receive on the said storage card root directory corresponding file.
3. method according to claim 1; It is characterized in that; Said plug state according to said storage card is connected to corresponding file step under the system data subregion with data file and cache file in said storage card root directory or the said backup file folder, specifically comprises:
When said storage card is the carry state; And said storage card root directory exists said data file and said cache file; Then delete data file and cache file under the system data subregion, and data file and cache file under the said storage card root directory are connected to corresponding file under the system data subregion;
When said storage card is the carry state; But said storage card root directory does not exist said data file and said cache file; Then data file under the backup file folder and buffer memory file copy are arrived said storage card root directory; Delete data file and cache file under the system data subregion again, the data file under the storage card root directory and cache file are reconnected be corresponding file under the system data subregion at last;
When storage card is a unloaded state, then delete data file and cache file under the system data subregion, again data file and cache file in the said backup file folder are connected to corresponding file under the system data subregion.
4. like the said method of claim 3, it is characterized in that said method also comprises:
Through the storage card Status Change intention broadcasting that monitoring system is sent, after the installation carry broadcasting that detects storage card, can assert that storage card is the carry state, after the unloading broadcasting that detects storage card, can assert that storage card is a unloaded state.
5. like each described method among the claim 1-4; It is characterized in that; It is said when storage card is the carry state; To in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies to step in the corresponding catalogue of said storage card root directory, specifically comprises:
The data file and the cache file of storage card root directory respective file before set up applications, have been connected under the deletion system data subregion;
Data file under the system partitioning and cache file are connected to said backup file folder corresponding file down;
The normal mounting application program, after installing with said backup file folder down, copy in the said storage card root directory in the corresponding catalogue with the application program corresponding file data of being installed;
Linked the data file and the cache file of said backup file folder under the deletion system data subregion, laying equal stress on is connected to said storage card root directory corresponding file.
6. internal memory expanding unit based on the Android system is characterized in that said device comprises:
The system start-up linkage unit; Be used for data file under the system data subregion and cache file are connected to backup file folder corresponding file down; And be saved in the said backup file folder, said data file and said cache file are reconnected receive on the storage card root directory corresponding file;
The file linkage unit is used for the plug state according to said storage card, and data file and cache file in said storage card root directory or the said backup file folder are connected to corresponding file under the system data subregion;
The application program installation unit; Be used for when storage card is the carry state; To in the system data subregion with storage card in data file and cache file dynamically switch, the file data that simultaneously set up applications is produced copies in the corresponding catalogue of said storage card root directory.
7. device as claimed in claim 6 is characterized in that, said system start-up linkage unit comprises:
The backup file folder is created module, is used to start the Android system, if there is not the backup file folder then to create the backup file folder under the system data subregion;
Connect backup file clamping piece, be used for, then delete these two files and simultaneously these two files are connected to said backup file and press from both sides on the corresponding file if data file and cache file under the system data subregion are threaded files;
The file backup module is after being used for Android system start-up and finishing, if do not have said data file and said cache file in the said backup file folder, in then the data file the system data subregion under and buffer memory file backup being pressed from both sides to said backup file;
File reconnects module, is used for if said storage card exists said data file and said cache file, then the data file under the system data subregion and cache file is reconnected and receives on the said storage card root directory corresponding file.
8. device as claimed in claim 6 is characterized in that, said file linkage unit comprises:
The root directory link block; Being used for working as said storage card is the carry state; And said storage card root directory exists data file and cache file; Then delete data file and cache file under the system data subregion, and data file and cache file under the said storage card root directory are connected to corresponding file under the system data subregion;
Root directory reconnects module; Being used for working as said storage card is the carry state; But said storage card root directory does not exist said data file and said cache file; Then backup file folder data file and buffer memory file copy down arrived said storage card root directory, delete data file and cache file under the system data subregion again, the data file under the storage card root directory and cache file are reconnected be corresponding file under the system data subregion at last;
Backup file folder linkage unit, being used for working as storage card is unloaded state, then deletes data file and cache file under the system data subregion, again data file and cache file in the said backup file folder is connected to corresponding file under the system data subregion.
9. device as claimed in claim 8 is characterized in that, said file linkage unit also comprises:
Module is assert in the broadcasting detecting; The storage card Status Change intention that is used for sending through monitoring system is broadcasted, and after the installation carry broadcasting that detects storage card, can assert that storage card is the carry state; After the unloading broadcasting that detects storage card, can assert that storage card is a unloaded state.
10. like each described device among the claim 6-9, it is characterized in that said application program installation unit comprises:
The file delete module is used for before set up applications, deleting data file and the cache file that has been connected to storage card root directory respective file under the system data subregion;
System data file link block is used for data file under the system partitioning and cache file are connected to said backup file folder corresponding file down;
Program installation data replication module is used for the normal mounting application program, after installing with said backup file folder down, copy in the said storage card root directory in the corresponding catalogue with the application program corresponding file data of being installed;
Storage card reconnects module, is used to delete data file and the cache file of having linked said backup file folder under the system data subregion, and laying equal stress on is connected to said storage card root directory corresponding file.
11. the terminal device based on the Android system, said terminal device comprise like each described internal memory expanding unit based on the Android system among the claim 6-10.
CN201210264977.5A 2012-07-27 2012-07-27 Memory expanding method based on android system, device and terminal device Expired - Fee Related CN102831173B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210264977.5A CN102831173B (en) 2012-07-27 2012-07-27 Memory expanding method based on android system, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210264977.5A CN102831173B (en) 2012-07-27 2012-07-27 Memory expanding method based on android system, device and terminal device

Publications (2)

Publication Number Publication Date
CN102831173A true CN102831173A (en) 2012-12-19
CN102831173B CN102831173B (en) 2016-09-07

Family

ID=47334310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210264977.5A Expired - Fee Related CN102831173B (en) 2012-07-27 2012-07-27 Memory expanding method based on android system, device and terminal device

Country Status (1)

Country Link
CN (1) CN102831173B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218228A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for realizing NTFS (New Technology File System) on internal hard disc of Android equipment
CN103324737A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and device for moving data in mobile terminal and mobile terminal
CN103793256A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Method for management of memory cards, and electronic device
CN103838603A (en) * 2013-12-04 2014-06-04 康佳集团股份有限公司 Method and system for increasing first-time starting-up speed of android TV set
WO2014161407A1 (en) * 2013-10-22 2014-10-09 中兴通讯股份有限公司 Mobile terminal and method thereof for using virtual memory card
CN104102498A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Mobile terminal and booting method thereof
WO2014183686A1 (en) * 2013-10-22 2014-11-20 中兴通讯股份有限公司 Smart terminal, and method and apparatus for virtual memory card and physical memory card synchronisation
CN104184877A (en) * 2013-05-21 2014-12-03 中国电信股份有限公司 Mobile phone application installation method, device and mobile phone thereof
CN105100901A (en) * 2014-05-08 2015-11-25 Tcl集团股份有限公司 Virtual storage card configuration method and system
CN105550311A (en) * 2015-12-14 2016-05-04 珠海全志科技股份有限公司 Method for dynamically changing application storage path
CN105808269A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and apparatus for installing application to virtual SD (Secure Digital) card
CN105808379A (en) * 2016-02-26 2016-07-27 努比亚技术有限公司 Terminal backup method and terminal
WO2016188200A1 (en) * 2015-10-19 2016-12-01 中兴通讯股份有限公司 Method and device for implementing partition switching
CN106484719A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of method of extended mobile phone storage and terminal
CN106557572A (en) * 2016-11-11 2017-04-05 武汉斗鱼网络科技有限公司 A kind of extracting method and system of Android application program file
CN106815024A (en) * 2017-01-12 2017-06-09 惠州Tcl移动通信有限公司 A kind of method and system for optimizing starting time of mobile terminal
CN109144589A (en) * 2018-08-27 2019-01-04 郑州云海信息技术有限公司 A kind of hard disk loading method and relevant apparatus
WO2019090622A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Method for optimizing storage space of smart terminal and device for optimizing storage space
CN113220363A (en) * 2021-05-06 2021-08-06 技德技术研究所(武汉)有限公司 File opening method and device compatible with Android system running on Linux

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853296A (en) * 2010-05-28 2010-10-06 华为终端有限公司 Method and device for managing application program
CN102103470A (en) * 2011-01-28 2011-06-22 鸿富锦精密工业(深圳)有限公司 Memory-expandable electronic equipment and memory expanding method
CN102609304A (en) * 2012-02-08 2012-07-25 广东欧珀移动通信有限公司 Management method for internal third-party applications of Android mobile phone
CN102609741A (en) * 2012-01-31 2012-07-25 上海艾尚通讯科技有限公司 Mobile device and method for exchange data between internal and external storage cards

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853296A (en) * 2010-05-28 2010-10-06 华为终端有限公司 Method and device for managing application program
CN102103470A (en) * 2011-01-28 2011-06-22 鸿富锦精密工业(深圳)有限公司 Memory-expandable electronic equipment and memory expanding method
CN102609741A (en) * 2012-01-31 2012-07-25 上海艾尚通讯科技有限公司 Mobile device and method for exchange data between internal and external storage cards
CN102609304A (en) * 2012-02-08 2012-07-25 广东欧珀移动通信有限公司 Management method for internal third-party applications of Android mobile phone

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104102498B (en) * 2013-04-01 2018-06-22 南京中兴软件有限责任公司 A kind of mobile terminal and its starting-up method
CN104102498A (en) * 2013-04-01 2014-10-15 中兴通讯股份有限公司 Mobile terminal and booting method thereof
CN103218228A (en) * 2013-04-10 2013-07-24 广东欧珀移动通信有限公司 Method and device for realizing NTFS (New Technology File System) on internal hard disc of Android equipment
CN103218228B (en) * 2013-04-10 2016-02-24 广东欧珀移动通信有限公司 A kind of Android device built-in hard disk realizes method and the device of new technology file system
CN104184877A (en) * 2013-05-21 2014-12-03 中国电信股份有限公司 Mobile phone application installation method, device and mobile phone thereof
CN103324737A (en) * 2013-06-28 2013-09-25 贝壳网际(北京)安全技术有限公司 Method and device for moving data in mobile terminal and mobile terminal
WO2014183686A1 (en) * 2013-10-22 2014-11-20 中兴通讯股份有限公司 Smart terminal, and method and apparatus for virtual memory card and physical memory card synchronisation
CN104572152B (en) * 2013-10-22 2019-08-16 中兴通讯股份有限公司 Intelligent terminal and the virtual memory card method and apparatus synchronous with actual stored card
CN104572152A (en) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 Smart terminal and virtual memory card and real memory card synchronization method and device
WO2014161407A1 (en) * 2013-10-22 2014-10-09 中兴通讯股份有限公司 Mobile terminal and method thereof for using virtual memory card
CN103838603A (en) * 2013-12-04 2014-06-04 康佳集团股份有限公司 Method and system for increasing first-time starting-up speed of android TV set
CN103793256A (en) * 2014-03-03 2014-05-14 联想(北京)有限公司 Method for management of memory cards, and electronic device
CN105100901A (en) * 2014-05-08 2015-11-25 Tcl集团股份有限公司 Virtual storage card configuration method and system
CN105100901B (en) * 2014-05-08 2018-07-13 Tcl集团股份有限公司 A kind of virtual memory card configuration method and system
CN105808269A (en) * 2014-12-30 2016-07-27 Tcl集团股份有限公司 Method and apparatus for installing application to virtual SD (Secure Digital) card
CN105808269B (en) * 2014-12-30 2019-11-12 Tcl集团股份有限公司 A kind of method and device that application is installed to virtual SD card
CN106484719A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 A kind of method of extended mobile phone storage and terminal
WO2016188200A1 (en) * 2015-10-19 2016-12-01 中兴通讯股份有限公司 Method and device for implementing partition switching
CN105550311A (en) * 2015-12-14 2016-05-04 珠海全志科技股份有限公司 Method for dynamically changing application storage path
CN105550311B (en) * 2015-12-14 2019-03-12 珠海全志科技股份有限公司 A kind of method that dynamic changes application program store path
CN105808379A (en) * 2016-02-26 2016-07-27 努比亚技术有限公司 Terminal backup method and terminal
CN106557572A (en) * 2016-11-11 2017-04-05 武汉斗鱼网络科技有限公司 A kind of extracting method and system of Android application program file
CN106815024A (en) * 2017-01-12 2017-06-09 惠州Tcl移动通信有限公司 A kind of method and system for optimizing starting time of mobile terminal
CN106815024B (en) * 2017-01-12 2021-03-23 惠州Tcl移动通信有限公司 Method and system for optimizing starting time of mobile terminal
WO2019090622A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Method for optimizing storage space of smart terminal and device for optimizing storage space
CN109144589A (en) * 2018-08-27 2019-01-04 郑州云海信息技术有限公司 A kind of hard disk loading method and relevant apparatus
CN113220363A (en) * 2021-05-06 2021-08-06 技德技术研究所(武汉)有限公司 File opening method and device compatible with Android system running on Linux

Also Published As

Publication number Publication date
CN102831173B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
CN102831173A (en) Memory expanding method, device and terminal based on Android system
EP2704041B1 (en) Method for storing application data and terminal device
US7996720B2 (en) Apparatus and method of mirroring firmware and data of embedded system
CN103176864B (en) A kind of backup method based on Android system, device and mobile terminal
CN102541475A (en) Data storage method and data storage device
CN102932383B (en) A kind of data transmission method, terminal and terminal system
US20100058007A1 (en) Information processing apparatus and memory management method
CN101313277A (en) Method and system for carrying multiple suspended runtime images
TW201232267A (en) Electronic device with expandable memory capacity and an expanding method thereof
CN101287187A (en) Intelligent mobile phone and operating method of the operation system
CN102609304B (en) Management method for internal third-party applications of Android mobile phone
CN102238265A (en) Mobile phone and method for realizing double-system mobile phone
CN105824572A (en) Disk storage space managing method, apparatus and storage device
CN107870769A (en) The installation method and device of operating system
CN105874428A (en) Technologies for operating system transitions in multiple-operating-system environments
CN102117330A (en) Method and system for protecting integrity of critical area of embedded Linux operating system
CN102681993A (en) File synchronizing method, file synchronizing device and first electronic device
CN102521289A (en) File synchronization method, device and system
CN109086078A (en) Android system upgrade method, device, server and mobile terminal
CN102004747A (en) System with file automatic copying function and device and method thereof
WO2014183717A1 (en) Storage processing method, device and terminal
CN104808953B (en) Control the method, device and mobile terminal of data storage
CN101403966B (en) Method for implementing portable software
US7752471B1 (en) Adaptive USB mass storage devices that reduce power consumption
CN103425436A (en) Terminal equipment and virtual storage unit management method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160907

CF01 Termination of patent right due to non-payment of annual fee