CN109189330A - A kind of distributed disk management method in android system - Google Patents
A kind of distributed disk management method in android system Download PDFInfo
- Publication number
- CN109189330A CN109189330A CN201810899059.7A CN201810899059A CN109189330A CN 109189330 A CN109189330 A CN 109189330A CN 201810899059 A CN201810899059 A CN 201810899059A CN 109189330 A CN109189330 A CN 109189330A
- Authority
- CN
- China
- Prior art keywords
- disk
- application
- mobile terminal
- peripheral equipment
- size
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of distributed disk management method in android system, when the size for the available disk quota that this method is applied in the terminal is lower than a given threshold, the disk of the peripheral equipment application request distribution connected to it.When peripheral equipment is that the application of the mobile terminal distributes the disk size of its request, after being allocated successfully, the Disk Quotas size of the application in mobile terminal to update Disk Quotas configuration file.Method of the invention can application in the terminal available disk quota deficiency when, in the case where the mobile terminal is connect with multiple peripheral equipments, device request distributes memory space to the periphery, dynamically adjust the Disk Quotas of the application, so that enhancing the experience that user uses the application using more memory spaces are able to use.
Description
Technical field
The present invention relates to the quotas administereds of storage management field more particularly to disk.
Background technique
While intelligent terminal is that user brings recreation experience abundant, since that installs in intelligent terminal answers
, usually there is memory space not in terminal device in the reason of with being increasing and constantly increasing using occupied memory space
The situation of foot, but existing android system disk management method can not also effectively control the Disk Quotas of each application, cause to answer
With at runtime, often exceed limit, this prevents some applications of user to reduce the experience of the process of user from normal use.
In the technology of the existing quotas administered in relation to disk, CN105955702B, CN102456048A, US2013232179A1 is
Fail to solve the above problems.
Summary of the invention
Exemplary embodiment of the present invention is to provide a kind of distributed disk management method in android system, application
Mobile terminal, comprising: A, packet name, mark and the Disk Quota Technique of application are recorded in a Disk Quotas configuration file;
B, it is monitored to using operational process, detects the size for applying available disk quota in mobile terminal;
When detecting the size in mobile terminal using available disk quota lower than a given threshold, mobile terminal passes through
Radio channel broadcasts a message to the peripheral equipment being wirelessly connected with it;It include: the packet name of application, the mark of application in the message
Know, the disk size of request distribution;
C, after peripheral equipment receives broadcast message, judge whether its free memory meets distribution requirements, meeting need
When asking, to mobile terminal return success response message, in success response message include message identifier, the mark of peripheral equipment,
Packet name, the mark of application, the equipment free memory information of application;When being unsatisfactory for demand, returns and fail to mobile terminal
Response message includes message identifier in failure response message;
D, mobile terminal selectes a peripheral equipment from receiving in success response message, and sets for the application to the periphery
Standby request distribution disk, wherein include in allocation request message: the mark of peripheral equipment, the mark of application, is asked at the packet name of application
Seek the disk size of distribution;The peripheral equipment of the allocation request message is received, distributes its request for the application of the mobile terminal
Disk size sends successfully assignment messages to the mobile terminal after being allocated successfully;After mobile terminal receives successfully assignment messages, more
The Disk Quotas size of the application in new Disk Quotas configuration file, and add in the configuration file peripheral equipment mark,
The memory space distributed.
Optionally, include to the successful assignment messages that the mobile terminal is sent after peripheral equipment is allocated successfully in step D
Device identification, the memory space address information distributed, the packet name of application, the mark of application.
Optionally, when selected peripheral equipment disconnects the connection with mobile terminal, the Disk Quotas size of application is updated.
Optionally, the mobile terminal includes mobile phone, PC, and peripheral equipment is have wireless connecting function portable
Formula equipment.
Distributed disk management method according to an exemplary embodiment of the present invention, can application in the terminal it is available
When Disk Quotas deficiency, in the case where the mobile terminal is connect with multiple peripheral equipments, the storage of device request distribution to the periphery
Space dynamically adjusts the Disk Quotas of the application, so that enhancing user's use using more memory spaces are able to use
The experience of the application.
Detailed description of the invention
Fig. 1 is the work flow diagram of the distributed disk management method in a kind of android system of the present invention
Specific embodiment
As an example, the mobile terminal of present invention meaning can be the equipment such as mobile phone, PC, MP4, peripheral equipment is
Portable device with wireless connecting function such as PC, mobile phone etc..Wireless connection can be wifi, and bluetooth etc. is wireless
Connection type.Android system is used to manage the various storage resources in mobile terminal in mobile terminal.Wherein in mobile terminal
Application include but is not limited to Video Applications.Referring to Fig. 1, Fig. 1 is a kind of disk based in android system of the present invention
Quota management method work flow diagram, this method are applied to mobile terminal, the method includes the steps:
A, packet name, mark and the Disk Quotas of application are recorded in a Disk Quotas configuration file;
B, it is monitored to using operational process, detects the size for applying available disk quota in mobile terminal;Work as detection
Into mobile terminal using available disk quota size be lower than a given threshold when, mobile terminal by radio channel to its
The peripheral equipment of wireless connection broadcasts a message;It include: the packet name of application, the mark of application, request distribution in the broadcast message
Disk size;
C, after peripheral equipment receives broadcast message, judge whether its free memory meets distribution requirements, meeting need
When asking, success response message is returned to mobile terminal;In success response message include message identifier, the mark of peripheral equipment,
Packet name, the mark of application, the equipment free memory information of application;When being unsatisfactory for demand, returns and fail to mobile terminal
Response message;
D, mobile terminal selectes a peripheral equipment according to success response message is received, and sets for the application to the periphery
Standby request distribution disk.Include in the request message: the mark of peripheral equipment, the packet name of application, the mark of application, request distribution
Disk size;The peripheral equipment of the allocation request message is received, for the big using the disk for distributing its request of the mobile terminal
It is small, successfully assignment messages are sent to the mobile terminal after being allocated successfully;The assignment messages that wherein succeed include device identification, are distributed
Memory space address information, the packet name of application, the mark of application;After mobile terminal receives successfully assignment messages, disk is updated
The Disk Quotas size of the application in quota configuration file, and in the configuration file add peripheral equipment mark, distributed
Memory space.The embodiment of the present invention is realized based on android system, and the kernel of Android operation system belongs to Linux
One branch of kernel, Disk Quota Technique scheduling and management function with Linux.Linux itself provides support Disk Quota Technique
Compiling option, Quota therein is open source projects, and can obtain compileable source code, and Quota can be different user control point
With Disk Quota Technique and carry out operation monitoring.
In the specific implementation, make menuconfig (interior caryogamy is executed first in Android kernel source code root
Set) linux kernel configuration is opened, sub-interface is configured into file system, * confirmation is played before quota support option, is completed
The support of verification Disk Quotas in Android.Then after android system kernel starts compiling, apt-get is executed
Source quota (obtaining quota source-code instruction) obtains quota source code and after executing ./configure and make in kernel
The execution file of quota order will be generated, wherein quotaon indicates that opening disk space limits, and edquota edits user's
Disk space size.
After the completion of Android kernel loads, quotas administered need to be opened in the initialization files init.rc of device systems
Service, i.e. execution quota open command/system/bin/quotaon-au, a indicate that the disk partition of limit is /mnt/
Sdcard, u indicate to open the disk limitation of user's space.
Quota will live forever as a background service, be monitored to using corresponding process, to ensure each application cache
Data be no more than distribution disk space.
In application installation, the configuration file AndroidManifest.xml in application installation package is first parsed, application is obtained
Packet name information (packagename information) and identification information (android:sharedUserId (corresponding with signature node letter
Breath)), system connected applications signing messages is that application distributes corresponding user's space and with changeless one unique in system
UID will distribute different UID and different Disk Quotas since packet name and signature are different as mark, different applications,
Then by the packet name and identification record of application and Disk Quotas into a Disk Quotas configuration file.
Wherein judge whether the free memory size of itself is more than or equal to requested magnetic in step C peripheral devices
Disk size.Meet demand is then thought if it is greater than or equal to requested disk size.The equipment free memory letter wherein returned
Breath can be size, the Address d istribution information of free memory.
Wherein in step D due to that can have multiple peripheral equipment meet demands, mobile terminal can receive more
A success response message, mobile terminal can determine the available storage in the peripheral equipment by parsing the success response message
Spatial information therefrom preferentially selects the maximum peripheral equipment of memory space as the peripheral equipment chosen.Certain mobile terminal
Also it can choose the peripheral equipment with maximum continuous available address space.Wherein peripheral equipment is allocated successfully in step D
Sending successfully assignment messages to the mobile terminal afterwards includes device identification, the memory space address information distributed, the packet of application
Name, the mark of application.After mobile terminal receives successfully assignment messages, the disk for updating the application in Disk Quotas configuration file is matched
Volume size, the maximum free memory according to updated Disk Quotas size management application.The institute in peripheral equipment at this time
The memory space of distribution can also be used to this using come the data that store the application.And when selected periphery is set
When the standby connection disconnected with mobile terminal, mobile terminal cannot use the memory space of peripheral equipment at this time, and mobile terminal is at this time
Update the Disk Quotas size of application.Such as mobile terminal subtracts the quota that the Disk Quotas of the application is updated to former disk at this time
Removing the peripheral equipment is the value of the disk size of application distribution.
It, can application in the terminal in conclusion the distributed disk management method of exemplary embodiment of the present
Available disk quota deficiency when, in the case where the mobile terminal is connect with multiple peripheral equipments, device request point to the periphery
With memory space, the Disk Quotas of the application is dynamically adjusted, so that enhancing use using more memory spaces are able to use
Family uses the experience of the application.
It should be noted that above each embodiment of the invention is only exemplary, and the present invention is not limited to this.Ability
Field technique personnel are appreciated that without departing from the principles and spirit of the present invention, can change these embodiments,
Wherein, the scope of the present invention limits in claim and its equivalent.
Claims (4)
1. a kind of distributed disk management method in android system, be applied to mobile terminal, comprising: A, by the packet name of application,
Mark and Disk Quota Technique are recorded in a Disk Quotas configuration file;
B, it is monitored to using operational process, detects the size for applying available disk quota in mobile terminal;
When detecting the size for the available disk quota applied in mobile terminal lower than a given threshold, mobile terminal passes through nothing
Line passage broadcasts a message to the peripheral equipment being wirelessly connected with it, include: in the message packet name of application, the mark of application,
Request the disk size of distribution;
C, after peripheral equipment receives broadcast message, judge whether its free memory meets distribution requirements, in meet demand,
Success response message is returned to mobile terminal, includes message identifier, the mark of peripheral equipment, application in success response message
Packet name, the mark of application, equipment free memory information;When being unsatisfactory for demand, failure response is returned to mobile terminal and is disappeared
Breath includes message identifier in failure response message;
D, mobile terminal selectes a peripheral equipment from receiving in success response message, and asks for the application to the peripheral equipment
Distribution disk is sought, wherein includes in allocation request message: the mark of peripheral equipment, the packet name of application, the mark of application, request point
The disk size matched;The peripheral equipment of the allocation request message is received, the disk of its request is distributed for the application of the mobile terminal
Size sends successfully assignment messages to the mobile terminal after being allocated successfully;After mobile terminal receives successfully assignment messages, magnetic is updated
The Disk Quotas size of the application in disk quota configuration file.
2. the method as described in claim 1, further includes: when selected peripheral equipment disconnects the connection with mobile terminal, more
The Disk Quotas size of new opplication.
3. the method as described in claim 1, the mobile terminal includes mobile phone, PC, and peripheral equipment is that have wirelessly
The portable device of linkage function.
4. the method as described in claim 1, wherein after peripheral equipment is allocated successfully in step D to the mobile terminal send at
Distribution of work message includes device identification, the memory space address information distributed, the packet name of application, the mark of application.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810899059.7A CN109189330A (en) | 2018-08-08 | 2018-08-08 | A kind of distributed disk management method in android system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810899059.7A CN109189330A (en) | 2018-08-08 | 2018-08-08 | A kind of distributed disk management method in android system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189330A true CN109189330A (en) | 2019-01-11 |
Family
ID=64920709
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810899059.7A Pending CN109189330A (en) | 2018-08-08 | 2018-08-08 | A kind of distributed disk management method in android system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189330A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103269355A (en) * | 2013-04-23 | 2013-08-28 | 四川天翼网络服务有限公司 | Intelligent skynet application platform |
US20140033229A1 (en) * | 2012-01-04 | 2014-01-30 | Huawei Device Co.,Ltd. | Method and computation node for processing application data |
CN104202332A (en) * | 2014-10-11 | 2014-12-10 | 中南大学 | Mobile equipment virtual system based on Linux kernel and instant installing method |
CN105094692A (en) * | 2014-05-22 | 2015-11-25 | Tcl集团股份有限公司 | Disk quota control method and system based on Android system |
-
2018
- 2018-08-08 CN CN201810899059.7A patent/CN109189330A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140033229A1 (en) * | 2012-01-04 | 2014-01-30 | Huawei Device Co.,Ltd. | Method and computation node for processing application data |
CN103269355A (en) * | 2013-04-23 | 2013-08-28 | 四川天翼网络服务有限公司 | Intelligent skynet application platform |
CN105094692A (en) * | 2014-05-22 | 2015-11-25 | Tcl集团股份有限公司 | Disk quota control method and system based on Android system |
CN104202332A (en) * | 2014-10-11 | 2014-12-10 | 中南大学 | Mobile equipment virtual system based on Linux kernel and instant installing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101325509B (en) | Method, system and apparatus for installing software component | |
CN108491222A (en) | Gateway device upgrade method, device, gateway device and storage medium | |
US20180034709A1 (en) | Method and Device for Asset Information Management | |
CN104838618A (en) | Method and apparatus for authenticating access authorization in wireless communication system | |
EP3059900A1 (en) | Network service template management method and device | |
CN103995787A (en) | Regulation and control method and device for camera applications | |
CN110493028A (en) | A kind of clustered deploy(ment) method, system, device and computer readable storage medium | |
CN106464515B (en) | Deployment method and device of virtual network management and virtual network system | |
EP2701059A1 (en) | Method and apparatus for loading application program | |
CN108445788B (en) | Hotel scene control method and related device | |
CN106603601A (en) | Service processing method, device and system, and terminal equipment | |
CN103517243A (en) | Emergency call establishment method, network equipment and communication system | |
WO2016026329A1 (en) | Terminal upgrade method and apparatus | |
CN111258530B (en) | Audio playing control method, server and audio playing system | |
CN114938365A (en) | Method and device for updating functional module, storage medium and electronic device | |
CN105700421A (en) | Apparatus, system and method for allocating identifiers to components of a control system | |
CN112671572B (en) | Method and device for intelligent equipment network distribution, storage medium and electronic device | |
CN105094692A (en) | Disk quota control method and system based on Android system | |
CN109408091A (en) | Application upgrading method and device | |
CN109189330A (en) | A kind of distributed disk management method in android system | |
CN112559124A (en) | Model management system and target operation instruction processing method and device | |
CN115129351A (en) | Method for upgrading slave controller, master controller and slave controller | |
CN115469961A (en) | Method and device for creating container group, electronic equipment and storage medium | |
WO2016206437A1 (en) | Rom package generation method and device | |
CN112653769A (en) | Message pushing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |