CN107256223A - A kind of method, device and terminal for updating internal storage data - Google Patents

A kind of method, device and terminal for updating internal storage data Download PDF

Info

Publication number
CN107256223A
CN107256223A CN201710293725.8A CN201710293725A CN107256223A CN 107256223 A CN107256223 A CN 107256223A CN 201710293725 A CN201710293725 A CN 201710293725A CN 107256223 A CN107256223 A CN 107256223A
Authority
CN
China
Prior art keywords
data
internal memory
loaded onto
database
updated
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
Application number
CN201710293725.8A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201710293725.8A priority Critical patent/CN107256223A/en
Publication of CN107256223A publication Critical patent/CN107256223A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control

Abstract

The invention discloses a kind of method, device and terminal for updating internal storage data, including:The first data preserved in database are loaded onto in internal memory, and use first data being loaded onto in internal memory;Judge whether to need to be updated first data being loaded onto in internal memory, when needing to be updated first data being loaded onto in internal memory, judge first data being loaded onto in internal memory whether in use, if it is not, then updating first data being loaded onto in internal memory.The present invention is when needing to be updated the first data being loaded onto in internal memory, it is whether just in use by the first data for judging to be loaded onto in internal memory, and only just the first data being loaded onto in internal memory are updated when being not used, so as to avoid in the case of high concurrent, the problem of application program in terminal is updated in the data in using internal memory and triggered to the data, improves systematic function.

Description

A kind of method, device and terminal for updating internal storage data
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method, device and terminal for updating internal storage data.
Background technology
Most of forum, website are managed for convenience, have all carried out the setting on sensitive word.It is quick in most of websites Sense word is generally referred to sensitive political orientation (or anti-ruling party tendency), violent tenet, the word of unhealthy color or uncivil Language, also has number of site according to own actual situation, sets some special sensitive words for being only applicable to this website.Used for example, working as When family is posted, during the word being previously set in the patch with some, then this patch can not be sent, or in the patch Sensitive word is automatically replaced in the field into asterisk (*) or cross (X) etc..
In the supplying system of intelligent terminal, also for various PUSH messages the need for carried out the filtering of sensitive word.Its In, it is necessary to which backstage personnel input relevant sensitization word information in back-stage management interface, by what is filtered using the sensitive dictionary Application program, loads the sensitive dictionary information into internal memory, sends every time before information, PUSH message is obtained by the application program Content, is compared with the sensitive dictionary that has been loaded into internal memory, and it is carried out if wherein in the presence of related sensitive word Filtering is shielded.
There is such a problem during foregoing description carries out filtering sensitive words to PUSH message:If in In the case of high concurrent, the sensitive dictionary of application program in using internal memory carries out Field Sanitization, and at the same time, backstage Administrative staff also carry out the associative operation of sensitive dictionary, for example:Sensitivity in newly-increased, modification or the sensitive dictionary of deletion Word, these operations related to sensitive dictionary can all trigger the sensitive dictionary in synchronized update internal memory, so, will result in Sensitive dictionary goes wrong and reported an error in use.
How to avoid in the case of high concurrent, the application program in terminal is in the sensitive dictionary data in using internal memory The problem of being updated and trigger to the sensitive dictionary data, improves in systematic function, currently available technology also without correlation Solution.
The content of the invention
It is a primary object of the present invention to propose a kind of method, device and terminal for updating internal storage data, it is to avoid in height simultaneously In the case of hair, the problem of application program in terminal is updated in the data in using internal memory and triggered to the data, Improve systematic function.
To achieve the above object, the embodiments of the invention provide a kind of method for updating internal storage data, including:
The first data preserved in database are loaded onto in internal memory, and use first number being loaded onto in internal memory According to;
Judge whether to need to be updated first data being loaded onto in internal memory, needing to being loaded onto in internal memory First data when being updated, judge first data that are loaded onto in internal memory whether in use, if not, First data in internal memory are loaded onto described in then updating.
Alternatively, when first data preserved in the database are loaded onto in internal memory, while by the data The current version of first data preserved in storehouse is loaded as the version number for first data being loaded onto in internal memory Into internal memory;
When first data preserved in the database are operated, the institute preserved in the database is updated State the version number of the first data;
Wherein, it is described judge whether to need to be updated first data that are loaded onto in internal memory including:
Start daemon thread;
Wherein, whether the daemon thread periodic polling needs to carry out more first data being loaded onto in internal memory Newly, when first data for determining the version number of first data preserved in the database Yu being loaded onto in internal memory Version number it is inconsistent, then need to be updated first data being loaded onto in internal memory.
Alternatively, judge first data that are loaded onto in internal memory whether just in use before, this method is also wrapped Include:
The mark for first data being loaded onto in internal memory is set using, and is the flag initial value;
In first data being loaded onto in internal memory using described, by the default step value of mark increase;Not During first data being loaded onto in internal memory using described, the mark is reduced into the default step value;
Wherein, whether first data for judging to be loaded onto in internal memory just include in use:
When it is not initial value to determine the mark, then be loaded onto first data in internal memory in use, Otherwise, then first data being loaded onto in internal memory are not in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
The embodiment of the present invention additionally provides a kind of device for updating internal storage data, including:
Internal storage data processing module, the first data for being set to preserve in database are loaded onto in internal memory, and use adds It is loaded onto first data in internal memory;
Internal storage data update module, is set to judge whether to need to carry out more first data being loaded onto in internal memory Newly, when needing to be updated first data being loaded onto in internal memory, judge to be loaded onto first number in internal memory According to whether in use, if it is not, then renewal is loaded onto first data in internal memory.
Alternatively, the device also includes:
The internal storage data processing module, in first data for being also configured to will to preserve in the database are loaded onto When depositing middle, while using the current version of first data preserved in the database as described in being loaded onto in internal memory The version number of first data is loaded onto in internal memory;
Database data version number update module, first data for being set to preserve in the database are carried out During operation, the version number of first data preserved in the database is updated;
Wherein, the internal storage data update module is specifically included:
First updates judge module, is set to start daemon thread;Wherein, whether the daemon thread periodic polling needs First data being loaded onto in internal memory are updated, when determining first data that are preserved in the database The version number of first data of the version number with being loaded onto in internal memory is inconsistent, then need to be loaded onto in internal memory described One data are updated.
Alternatively, the internal storage data update module specifically also includes:
Processing module is identified, is set to be set using the mark for first data being loaded onto in internal memory, and be described Flag initial value;In first data being loaded onto in internal memory using described, by the default step-length of mark increase Value;In first data being loaded onto in internal memory without using described, the mark is reduced into the default step value;
Second updates judge module, is set to when it is not initial value to determine the mark, then be loaded onto in internal memory First data are not in use, otherwise, then first data being loaded onto in internal memory are in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
The embodiment of the present invention additionally provides a kind of terminal, including processor and computer-readable recording medium, the calculating Be stored with instruction in machine readable storage medium storing program for executing, when the instruction is by the computing device, realizes method as described above.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer program, described Following steps are realized when computer program is executed by processor:
The first data preserved in database are loaded onto in internal memory, and use first number being loaded onto in internal memory According to;
Judge whether to need to be updated first data being loaded onto in internal memory, needing to being loaded onto in internal memory First data when being updated, judge first data that are loaded onto in internal memory whether in use, if not, Then update first data being loaded onto in internal memory.
Alternatively, following steps are also realized when the computer program is executed by processor:
When first data preserved in the database are loaded onto in internal memory, while will be preserved in the database The current versions of first data be loaded onto as the version number for first data being loaded onto in internal memory in internal memory;
When first data preserved in the database are operated, the institute preserved in the database is updated State the version number of the first data;
Wherein, it is described judge whether to need to be updated first data that are loaded onto in internal memory including:
Start daemon thread;
Wherein, whether the daemon thread periodic polling needs to carry out more first data being loaded onto in internal memory Newly, when first data for determining the version number of first data preserved in the database Yu being loaded onto in internal memory Version number it is inconsistent, then need to be updated first data being loaded onto in internal memory.
Alternatively, judge first data that are loaded onto in internal memory whether just in use before, the computer Following steps are also realized when program is executed by processor:
The mark for first data being loaded onto in internal memory is set using, and is the flag initial value;
When using first data being loaded onto in internal memory, by the default step value of mark increase;Without using During first data being loaded onto in internal memory, the mark is reduced into the default step value;
Wherein, whether first data for judging to be loaded onto in internal memory just include in use:
When it is not initial value to determine the mark, then be loaded onto first data in internal memory in use, Otherwise, then first data being loaded onto in internal memory are not in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
Technical scheme proposed by the present invention includes:The first data preserved in database are loaded onto in internal memory, and used First data being loaded onto in internal memory;Judge whether to need to be updated the first data being loaded onto in internal memory, needing When being updated to the first data being loaded onto in internal memory, judge whether the first data being loaded onto in internal memory use In, if it is not, then being loaded onto the first data in internal memory described in updating.The present invention is needing the first number to being loaded onto in internal memory During according to being updated, by whether judging to be loaded onto the first data in internal memory in use, and the ability only when unused The first data being loaded onto in internal memory are updated, so as to avoid in the case of high concurrent, the application program in terminal The problem of being updated and trigger to the data in the data in using internal memory, improves systematic function.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 be Fig. 1 of the present invention in mobile terminal wireless communication system schematic diagram;
Fig. 3 realizes the flow chart for the method for updating internal storage data for the present invention;
Fig. 4 realizes the composition structural representation for the device for updating internal storage data for the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 illustrates for the hardware configuration of realization each optional mobile terminal of embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one in wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 122, the static images that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus Or the view data of video is handled.Picture frame after processing may be displayed on display unit 151.Handled through camera 121 Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can telephone calling model, Sound (voice data) is received via microphone in logging mode, speech recognition mode etc. operational mode, and can be by this The acoustic processing of sample is voice data.Audio (voice) data after processing can be converted in the case of telephone calling model The form output of mobile communication base station can be sent to via mobile communication module 112.Microphone 122 can be implemented various types of Noise eliminate (or suppress) algorithm with eliminate noise that (or suppression) produce during receiving and sending audio signal or Interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 1410, to be combined below This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00 Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control Device 180 processed is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180. For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link. If any of interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
According to one embodiment of present invention there is provided a kind of method for updating internal storage data, Fig. 3 is of the invention one The flow chart for the method for updating internal storage data is realized in embodiment, as shown in figure 3, comprising the following steps:
Step 301:The first data preserved in database are loaded onto in internal memory, and using described in being loaded onto in internal memory First data;
Wherein, first data being loaded onto in internal memory can be, but not limited to only include sensitive dictionary data, may be used also To be stored in other data used in database for application program.
When the first data being loaded onto in internal memory are sensitive dictionary data, this step can be come real in the following manner It is existing:In the application, the embedded correlative code for obtaining sensitive dictionary.Start application program.So, application program passes through embedded The sensitive dictionary preserved in database is loaded onto in internal memory by the code of the sensitive dictionary of acquisition entered.Pushed information is being sent every time Before, the PUSH message content is obtained by the program, and calls the relevance filtering method that sensitive word is provided interior with being loaded into Sensitive dictionary in depositing is compared, and is replaced or is directly filtered if wherein in the presence of related sensitive word, is shielded Cover the field.
When the preserved in database first data are loaded onto in internal memory, while can also be quick by what is preserved in database The current version of sense dictionary is loaded onto in internal memory as the version number for the sensitive dictionary being loaded onto in internal memory;
When each back-stage management personnel progress sensitive word relevant information is safeguarded, relevant information is directly preserved into database. Meanwhile, there is the field of the current sensitive dictionary version number of a mark, the sensitive word preserved in database in database table When storehouse is operated, such as:The sensitive word in sensitive dictionary is increased, modified or deleted, the version number can be all updated, such as:Make The version number field Jia 1 automatically.
Step 302:Judge whether to need to be updated first data being loaded onto in internal memory, if it is, holding Row step 303;Otherwise end operation.
In this step, judgement needs are updated to first data being loaded onto in internal memory can be in the following way Realize:
, can be in the application program using sensitive dictionary when the first data being loaded onto in internal memory are sensitive dictionary data One thread of middle startup, in background monitoring in the way of daemon thread.Progress progress judgement at regular intervals is guarded on backstage The no renewal operation for needing to carry out sensitive dictionary.In determining the version number of the sensitive dictionary preserved in database and being loaded onto The version number of sensitive dictionary in depositing is inconsistent, when the version number in such as data-base recording is bigger than the version number recorded in internal memory, Then need to carry out the renewal operation of sensitive dictionary, renewal operation be by the sensitive dictionary preserved in database reload to In internal memory, the sensitive dictionary before replacing it in the internal memory of version.
Step 303:Judge first data being loaded onto in internal memory whether in use, if it is not, then performing step Rapid 304;Otherwise end operation.
Before this step, this method also includes:
When the first data being loaded onto in internal memory are sensitive dictionary data, a use is set to be loaded onto quick in internal memory Feel the mark of dictionary, and be described one initial value of flag, such as:The initial value can be 0, and application program is being called every time Before filter method in sensitive word, i.e., in the data being loaded onto in internal memory using described, the mark is increased into default step-length Value, such as:The default step value can be 1, after method call is finished, and the mark is reduced into default step value.When this is designated just During initial value, then it represents that without application program using sensitive dictionary information.When the mark is not initial value, then it is loaded onto interior Sensitive dictionary in depositing is in use, then need to wait next poll to carry out judgement operation again
Step 304:Update first data being loaded onto in internal memory;
In this step, when the first data being loaded onto in internal memory are sensitive dictionary data, it is loaded onto described in renewal interior The first data in depositing are:The sensitive dictionary preserved in database is reloaded into internal memory, version is interior before replacing it Sensitive dictionary in depositing.
Above-mentioned steps have been performed at the end of, then have completed the sensitive Word library updating that will be preserved in database into internal memory Process.
According to another embodiment of the present invention there is provided a kind of device for updating internal storage data, Fig. 4 is realized more for the present invention The composition structural representation of the device of new internal storage data, as shown in figure 4, the device includes:Internal storage data processing module, internal memory number According to update module, wherein,
Internal storage data processing module, the first data for being set to preserve in database are loaded onto in internal memory, and use adds It is loaded onto first data in internal memory;
Internal storage data update module, is set to judge whether to need to carry out more first data being loaded onto in internal memory Newly, when needing to be updated first data being loaded onto in internal memory, judge to be loaded onto first number in internal memory According to whether in use, if it is not, then renewal is loaded onto first data in internal memory.
Wherein, the device also includes:
The internal storage data processing module, in first data for being also configured to will to preserve in the database are loaded onto When depositing middle, while using the current version of first data preserved in the database as described in being loaded onto in internal memory The version number of first data is loaded onto in internal memory;
Database data version number update module, first data for being set to preserve in the database are carried out During operation, the version number of first data preserved in the database is updated.
Specifically, the internal storage data update module is specifically included:
First updates judge module, is set to start daemon thread;Wherein, whether the daemon thread periodic polling needs First data being loaded onto in internal memory are updated, when determining first data that are preserved in the database The version number of first data of the version number with being loaded onto in internal memory is inconsistent, then need to be loaded onto in internal memory described One data are updated.
Wherein, the internal storage data update module specifically also includes:
Processing module is identified, is set to be set using the mark for first data being loaded onto in internal memory, and be described Flag initial value;When using first data being loaded onto in internal memory, by the default step value of mark increase; During without using first data being loaded onto in internal memory, the mark is reduced into the default step value;
Second updates judge module, is set to when it is not initial value to determine the mark, then be loaded onto in internal memory First data are not in use, otherwise, then first data being loaded onto in internal memory are in use.
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
According to still another embodiment of the invention there is provided a kind of terminal, including processor and computer-readable recording medium, Be stored with instruction in the computer-readable recording medium, when the instruction is by the computing device, realizes preceding method The step of.
According to still another embodiment of the invention there is provided a kind of computer-readable recording medium, computer is stored thereon with Program, it is characterised in that the computer program realizes following steps when being executed by processor:
The first data preserved in database are loaded onto in internal memory, and use first number being loaded onto in internal memory According to;
When needing to be updated first data that are loaded onto in internal memory, judge to be loaded onto described the in internal memory Whether one data are in use, if it is not, then update first data being loaded onto in internal memory.
Wherein, following steps are also realized when the computer program is executed by processor:
First data preserved in database are loaded onto in internal memory, and use described first be loaded onto in internal memory Data;
Judge whether to need to be updated first data being loaded onto in internal memory, needing to being loaded onto in internal memory First data when being updated, judge first data that are loaded onto in internal memory whether in use, if not, Then update first data being loaded onto in internal memory.
This method also includes:
When first data preserved in the database are loaded onto in internal memory, while will be preserved in the database The current versions of first data be loaded onto as the version number for first data being loaded onto in internal memory in internal memory;
When first data preserved in the database are operated, the institute preserved in the database is updated State the version number of the first data.
Specifically, it is described judge whether to need to be updated first data that are loaded onto in internal memory including:
Start daemon thread;
Wherein, whether the daemon thread periodic polling needs to carry out more first data being loaded onto in internal memory Newly, when first data for determining the version number of first data preserved in the database Yu being loaded onto in internal memory Version number it is inconsistent, then need to be updated first data being loaded onto in internal memory.
Wherein, judge first data that are loaded onto in internal memory whether just in use before, this method also includes:
The mark for first data being loaded onto in internal memory is set using, and is the flag initial value;
In first data being loaded onto in internal memory using described, by the default step value of mark increase;Not During first data being loaded onto in internal memory using described, the mark is reduced into the default step value;
Wherein, whether first data for judging to be loaded onto in internal memory just include in use:
When it is not initial value to determine the mark, then be loaded onto first data in internal memory in use, Otherwise, then first data being loaded onto in internal memory are not in use.
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
This point it is emphasized that, in the present invention, when needing to be updated the first data being loaded onto in internal memory, by sentencing Disconnected the first data being loaded onto in internal memory whether in use, and only when being not used just to be loaded onto in internal memory first Data are updated, so as to avoid in the case of high concurrent, the application program in terminal is in the data in using internal memory The problem of being updated and trigger to the data, improves systematic function.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal (can be mobile phone, computer, service Device, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for updating internal storage data, it is characterised in that including:
The first data preserved in database are loaded onto in internal memory, and use first data being loaded onto in internal memory;
Judge whether to need to be updated first data being loaded onto in internal memory, needing the institute to being loaded onto in internal memory When stating the first data and being updated, judge first data being loaded onto in internal memory whether in use, if it is not, then more New first data being loaded onto in internal memory.
2. according to the method described in claim 1, it is characterised in that this method also includes:
When first data preserved in the database are loaded onto in internal memory, while by the institute preserved in the database The current version for stating the first data is loaded onto in internal memory as the version number for first data being loaded onto in internal memory;
When first data preserved in the database are operated, described the preserved in the database is updated The version number of one data;
Wherein, it is described judge whether to need to be updated first data that are loaded onto in internal memory including:
Start daemon thread;
Wherein, whether the daemon thread periodic polling needs to be updated first data being loaded onto in internal memory, when Determine the version number of first data preserved in the database and the version for first data being loaded onto in internal memory This number inconsistent, then need to be updated first data being loaded onto in internal memory.
3. method according to claim 1 or 2, it is characterised in that in first data for judging to be loaded onto in internal memory Whether just in use before, this method also includes:
The mark for first data being loaded onto in internal memory is set using, and is the flag initial value;
In first data being loaded onto in internal memory using described, by the default step value of mark increase;Without using It is described be loaded onto in internal memory first data when, the mark is reduced into the default step value;
Wherein, whether first data for judging to be loaded onto in internal memory just include in use:
When it is not initial value to determine the mark, then first data in internal memory are being loaded onto in use, otherwise, First data being then loaded onto in internal memory are not in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
4. a kind of device for updating internal storage data, it is characterised in that including:
Internal storage data processing module, the first data for being set to preserve in database are loaded onto in internal memory, and using being loaded onto First data in internal memory;
Internal storage data update module, is set to judge whether to need to be updated first data being loaded onto in internal memory, When needing to be updated first data being loaded onto in internal memory, judge that first data being loaded onto in internal memory are It is no in use, being loaded onto first data in internal memory if it is not, then updating.
5. device according to claim 4, it is characterised in that the device also includes:
The internal storage data processing module, first data for being also configured to preserve in the database are loaded onto in internal memory When, while regarding the current version of first data preserved in the database as described first be loaded onto in internal memory The version number of data is loaded onto in internal memory;
Database data version number update module, first data for being set to preserve in the database are operated When, update the version number of first data preserved in the database;
Wherein, the internal storage data update module is specifically included:
First updates judge module, is set to start daemon thread;Wherein, the daemon thread periodic polling whether need pair plus First data being loaded onto in internal memory are updated, when the version for determining first data preserved in the database The version number of first data number with being loaded onto in internal memory is inconsistent, then needs first number to being loaded onto in internal memory According to being updated.
6. the device according to claim 4 or 5, it is characterised in that the internal storage data update module specifically also includes:
Processing module is identified, is set to be set using the mark for first data being loaded onto in internal memory, and be the mark Set initial value;In first data being loaded onto in internal memory using described, by the default step value of mark increase; During first data being loaded onto in internal memory without using described, the mark is reduced into the default step value;
Second updates judge module, is set to when it is not initial value to determine the mark, then be loaded onto described in internal memory First data are not in use, otherwise, then first data being loaded onto in internal memory are in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
7. it is stored with a kind of terminal, including processor and computer-readable recording medium, the computer-readable recording medium Instruction, it is characterised in that when the instruction is by the computing device, realize the method as described in claim 1.
8. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt Following steps are realized during computing device:
The first data preserved in database are loaded onto in internal memory, and use first data being loaded onto in internal memory;
Judge whether to need to be updated first data being loaded onto in internal memory, needing the institute to being loaded onto in internal memory When stating the first data and being updated, judge first data being loaded onto in internal memory whether in use, if it is not, then more New first data being loaded onto in internal memory.
9. computer-readable recording medium according to claim 8, it is characterised in that the computer program is by processor Following steps are also realized during execution:
When first data preserved in the database are loaded onto in internal memory, while by the institute preserved in the database The current version for stating the first data is loaded onto in internal memory as the version number for first data being loaded onto in internal memory;
When first data preserved in the database are operated, described the preserved in the database is updated The version number of one data;
Wherein, it is described judge whether to need to be updated first data that are loaded onto in internal memory including:
Start daemon thread;
Wherein, whether the daemon thread periodic polling needs to be updated first data being loaded onto in internal memory, when Determine the version number of first data preserved in the database and the version for first data being loaded onto in internal memory This number inconsistent, then need to be updated first data being loaded onto in internal memory.
10. computer-readable recording medium according to claim 8 or claim 9, it is characterised in that judging to be loaded onto in internal memory First data whether just in use before, the computer program also realizes following steps when being executed by processor:
The mark for first data being loaded onto in internal memory is set using, and is the flag initial value;
When using first data being loaded onto in internal memory, by the default step value of mark increase;Without using loading During first data into internal memory, the mark is reduced into the default step value;
Wherein, whether first data for judging to be loaded onto in internal memory just include in use:
When it is not initial value to determine the mark, then first data in internal memory are being loaded onto in use, otherwise, First data being then loaded onto in internal memory are not in use;
Wherein, first data being loaded onto in internal memory include sensitive word storehouse data.
CN201710293725.8A 2017-04-28 2017-04-28 A kind of method, device and terminal for updating internal storage data Pending CN107256223A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710293725.8A CN107256223A (en) 2017-04-28 2017-04-28 A kind of method, device and terminal for updating internal storage data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710293725.8A CN107256223A (en) 2017-04-28 2017-04-28 A kind of method, device and terminal for updating internal storage data

Publications (1)

Publication Number Publication Date
CN107256223A true CN107256223A (en) 2017-10-17

Family

ID=60027306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710293725.8A Pending CN107256223A (en) 2017-04-28 2017-04-28 A kind of method, device and terminal for updating internal storage data

Country Status (1)

Country Link
CN (1) CN107256223A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656902A (en) * 2018-10-26 2019-04-19 阿里巴巴集团控股有限公司 A kind of data load method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414295A (en) * 2007-10-15 2009-04-22 北京瑞星国际软件有限公司 Method for upgrading database
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN101754156A (en) * 2008-12-05 2010-06-23 中国移动通信集团辽宁有限公司 Office data management method, device and charging system
CN102436633A (en) * 2011-11-30 2012-05-02 华为技术有限公司 Data management method and system as well as database system
CN105430042A (en) * 2015-10-27 2016-03-23 努比亚技术有限公司 Method, service terminal, and mobile terminal for realizing data transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101414295A (en) * 2007-10-15 2009-04-22 北京瑞星国际软件有限公司 Method for upgrading database
CN101754156A (en) * 2008-12-05 2010-06-23 中国移动通信集团辽宁有限公司 Office data management method, device and charging system
CN101464895A (en) * 2009-01-21 2009-06-24 阿里巴巴集团控股有限公司 Method, system and apparatus for updating internal memory data
CN102436633A (en) * 2011-11-30 2012-05-02 华为技术有限公司 Data management method and system as well as database system
CN105430042A (en) * 2015-10-27 2016-03-23 努比亚技术有限公司 Method, service terminal, and mobile terminal for realizing data transmission

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656902A (en) * 2018-10-26 2019-04-19 阿里巴巴集团控股有限公司 A kind of data load method and system

Similar Documents

Publication Publication Date Title
CN104735255B (en) Multi-screen display method and system
CN104980588B (en) A kind of method and apparatus for detecting mobile terminal state
CN105430258B (en) A kind of method and apparatus of self-timer group photo
CN105120054B (en) Information processing method and mobile terminal
CN106095464B (en) A kind of method and device of the seamless operation of application program
CN105204992A (en) Test script generating device and method
CN106598538A (en) Method and system for updating instruction set
CN106528576A (en) Page search method and system, and terminal
CN106657579A (en) Content sharing method, device and terminal
CN106993093A (en) A kind of image processing apparatus and method
CN104898927B (en) The method and device of information search
CN106791149A (en) A kind of method of mobile terminal and control screen
CN105487710B (en) Screen video recorder and method based on pressure screen
CN106792644A (en) Mobile terminal, server and information processing method
CN106777253A (en) The update method and device of a kind of dictionary
CN106777251A (en) A kind of file management method and device
CN106776240A (en) A kind of Task Progress display terminal and method
CN106550133A (en) Calling identification device and method
CN106650413A (en) Method for determining Root right and mobile terminal
CN106776845A (en) A kind of information flow adaptive management method and terminal
CN105681558A (en) Contact person information displaying method and terminal
CN107256223A (en) A kind of method, device and terminal for updating internal storage data
CN105159644B (en) A kind of method of mobile terminal and realization split screen processing
CN106878981A (en) Brush machine method, mobile terminal and network-side
CN107249070A (en) A kind of terminal and gamma adjusting method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171017