CN106528300A - Console game synchronizing method, device and terminal - Google Patents

Console game synchronizing method, device and terminal Download PDF

Info

Publication number
CN106528300A
CN106528300A CN201610914563.0A CN201610914563A CN106528300A CN 106528300 A CN106528300 A CN 106528300A CN 201610914563 A CN201610914563 A CN 201610914563A CN 106528300 A CN106528300 A CN 106528300A
Authority
CN
China
Prior art keywords
file
play game
synchrodata
program
application
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
CN201610914563.0A
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.)
Xiamen Meitu Mobile Technology Co Ltd
Original Assignee
Xiamen Meitu Mobile 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 Xiamen Meitu Mobile Technology Co Ltd filed Critical Xiamen Meitu Mobile Technology Co Ltd
Priority to CN201610914563.0A priority Critical patent/CN106528300A/en
Publication of CN106528300A publication Critical patent/CN106528300A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a console game synchronizing method, device and terminal. The method comprises the following steps: searching a storage path of an application program for of a console game to be synchronized; acquiring synchronizing date of the console game from the storage path of the application program; and then sending the synchronizing data to a specified position, wherein the synchronizing data include program files under the application program storage path of the console game and the authorization information of the program file. With the adoption of the method provided in the embodiment, a terminal to be synchronized can achieve the synchronizing of the console game through the synchronizing data.

Description

A kind of method of synchronous single-play game, device and terminal
Technical field
The present invention relates to the technical field of shared game data, more particularly to a kind of method of synchronous single-play game, device And terminal.
Background technology
In current daily life, various game emerge in an endless stream.Wherein single-play game is due to accessing interconnection Net normally can run, very popular also without special server support during operation.With mobile terminal device it is more next It is abundanter, it is possibly mounted on the different mobile terminal equipment possessed by a user with a single-play game.But regrettably, If running into user has changed a mobile terminal device, then after the user has reinstalled this single-play game, or needs Restart game;If the user while this single-play game certain game level is won, each run this unit is swum Play can only just continue the progress of the past, and can not synchronous other mobile terminal devices game progress.
For single-play game cannot on different mobile terminals synchronous game progress problem, common method is by one On station terminal, the All Files related to the game application is backed up, and on another station terminal is carried out also the file of backup Original, but this method is often because restriction of the mobile terminal operating system to file access authority, even if causing to answer with game Reduced with the related file of program, the game is still not normally functioning, it is impossible to realize the synchronization of game.
The content of the invention
The embodiment of the present invention provides a kind of method of synchronous single-play game, device and terminal, can be at different mobile ends Synchronous single-play game between end.
A kind of first aspect, there is provided method of synchronous single-play game, including:Search the application journey of single-play game to be synchronized The store path of sequence;The synchrodata of single-play game is obtained under the store path of the application program;Synchrodata is sent to The position specified;Wherein, authority information of the synchrodata comprising program file and program file under store path.
A kind of second aspect, there is provided method of synchronous single-play game, including:Receive the synchrodata of single-play game, institute State authority information of the synchrodata comprising program file and described program file;Obtain single-play game answering in terminal to be synchronized With program directory and the user profile of application catalog;According to program file update application catalog in ought be above Part;According to user profile and the authority information of program file of application catalog, the file in renewal application catalog User profile and authority information.
A kind of third aspect, there is provided device of synchronous single-play game, including:First directory information acquiring unit, is matched somebody with somebody It is set to the store path for searching that the application catalog of single-play game to be synchronized is located;Synchrodata acquiring unit, is configured to The synchrodata of single-play game is obtained under the store path of application program, and synchrodata includes the program file under store path With the authority information of program file;Data transmission unit, the synchrodata for being configured to obtain synchrodata acquiring unit are passed It is sent to the position specified.
A kind of fourth aspect, there is provided device of synchronous single-play game, including:Synchrodata receiving unit, is configured to The synchrodata of single-play game is received, synchrodata includes the authority information of program file and program file;Second directory information Acquiring unit, is configured to obtain user of the single-play game in the application catalog and application catalog of terminal to be synchronized Information;File synchronization unit, is configured to update application catalog according to the program file that synchrodata receiving unit is received In file;And file attribute updating block, it is configured to the application program obtained according to the second directory information acquiring unit The authority information of the program file that the user profile of catalogue and synchrodata receiving unit are received, updates in application catalog The user profile of file and authority information.
In terms of 5th, there is provided a kind of terminal of synchronous single-play game, including:Memory, is configured to storage program generation Code;Processor, is configured to, according to the instruction in the program code stored in memory, perform following steps:Search to be synchronized The store path that the application program of single-play game is located;The same step number of single-play game is obtained under the store path of application program According to authority information of the synchrodata comprising program file and program file under store path;Transmitting element, being configured to will be same Step data is sent to the position specified.
In terms of 6th, there is provided a kind of terminal of synchronous single-play game, including:Memory, is configured to storage program generation Code;Receiving unit, is configured to receive the synchrodata of single-play game, and synchrodata includes the power of program file and program file Limit information;Processor, is configured to, according to the instruction in the program code stored in memory, perform following steps:Obtain single The user profile of application catalog and application catalog of the machine game in terminal to be synchronized;Updated according to program file Current file in application catalog;According to user profile and the authority information of program file of application catalog, update The user profile of the file in application catalog and authority information.
The method of the synchronous single-play game for providing according to embodiments of the present invention, device and terminal, obtain on a station terminal The authority information of the program file and program file of single-play game application program is combined on another station terminal as synchrodata The synchrodata carries out the renewal of program file and program file attribute, so as to realize the synchronization of single-play game between different terminals.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to making needed for the embodiment of the present invention Accompanying drawing is briefly described, for those of ordinary skill in the art, on the premise of not paying creative work, also Other accompanying drawings can be obtained according to these accompanying drawings.
The flow chart that Fig. 1 shows the method for the synchronous single-play game that one embodiment of the invention is provided.
The flow chart that Fig. 2 shows the method for the synchronous single-play game of another embodiment of the present invention.
Fig. 3 is the detailed flow chart of the store path for searching single-play game application program to be synchronized in Fig. 1.
The flow chart that Fig. 4 shows the method for the synchronous single-play game of yet another embodiment of the invention.
Fig. 5 is the detailed flow chart of the authority information for specified file format of save routine file in Fig. 4.
The flow chart that Fig. 6 shows the method for the synchronous single-play game that one embodiment of the invention is provided.
The flow chart that Fig. 7 shows the method for the synchronous single-play game that another embodiment of the present invention is provided.
Fig. 8 is the detailed flow chart of acquisition single-play game application catalog in Fig. 6.
Fig. 9 is user profile and the detail flowchart of authority information for updating file in application catalog in Fig. 6.
Figure 10 shows the structural representation of the device of the synchronous single-play game that one embodiment of the invention is provided.
Figure 11 shows the structural representation of the device of the synchronous single-play game that another embodiment of the present invention is provided.
Figure 12 shows the structural representation of the device of the synchronous single-play game that yet another embodiment of the invention is provided.
Figure 13 shows the structural representation of the device of the synchronous single-play game that further embodiment of this invention is provided.
Figure 14 shows the hardware structure schematic diagram of the terminal of the synchronous single-play game that one embodiment of the invention is provided.
Figure 15 shows the hardware structure schematic diagram of the terminal of the synchronous single-play game that another embodiment of the present invention is provided.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order that the mesh of this patent , technical scheme and advantage become more apparent, below in conjunction with drawings and Examples, the present invention is further retouched in detail State.It should be understood that specific embodiment described herein is only used for explaining the present invention, it is not intended to limit the present invention.For ability For field technique personnel, the present invention can be implemented in the case of some details in not needing these details.It is right below The description of embodiment is better understood to the present invention to provide just for the sake of the example by illustrating the present invention.
In an embodiment of the present invention, single-play game refer to can independent operating on mobile terminals, with operation progress Game.The operation terminal of single-play game is related to android system, but is not limited to the operating system, those skilled in the art The operating system of present inventive concept can be suitable for reasonable prediction.
Below in conjunction with the accompanying drawings, by taking android system as an example, describe synchronous single-play game according to embodiments of the present invention in detail Method.
The flow chart that Fig. 1 shows the method for the synchronous single-play game of one embodiment of the invention.As shown in figure 1, this reality The method 100 for applying synchronous single-play game in example is comprised the following steps:Step S120, searches the application program of single-play game to be synchronized Store path;Step S130, obtains the synchrodata of single-play game under the store path of the application program;Step S160, Synchrodata is sent to the position specified;Wherein, synchrodata includes the program file and program file under store path Authority information.
As shown in Fig. 2 as an alternative embodiment, the method 200 of synchronous single-play game and the side of synchronous single-play game Method 100 is compared, and difference is, in step S120, before the store path of the application program for searching single-play game to be synchronized, may be used also To include:Step S110, obtains the superuser right that single-play game to be synchronized runs terminal.
It should be understood that superuser right is one kind of System Privileges, in the operating systems such as Linux, Unix and Android Root authority is can be understood as, Administrators authorities are can be understood as in Windows operating system.
Under normal circumstances, by taking android system as an example, in android system, each application or user's acquiescence only possess The authority of the resource that its own need of work is used is accessed, and the file of system file, other application or user can not be carried out Access.The method of the synchronous single-play game for providing according to embodiments of the present invention, is being related to system file, other application or use When the file at family conducts interviews, the Root authority based on android system is needed.
In one example, user can first obtain the Root authority of terminal, then carry out obtaining for single-play game synchrodata Take;In another example, user can also by Android mobile terminal manufacturer customize obtained Root authority be System applies the synchronization to realize single-play game, without the acquisition for individually carrying out Root authority again, reduces user oneself and obtains The difficulty of Root authority is taken, the ease for use of single-play game synchronous method is improve.
As shown in figure 3, as an alternative embodiment, step S120, searching the application program of single-play game to be synchronized Store path, can include following sub-step:
Step S121, obtains the identification information of application program.
It should be noted that identification information can be the information of unique mark application program, for example, identification information is game application journey The bag name of sequence.Android system requires that each application program states a unique bag name, as an example, such as certain The entitled com.qihoo360.mobilemusic of bag of application program.
Step S122, under the appointing system path of the application program operation terminal, is searched for using identification information with the mark The catalogue of knowledge information name, by the storage road using the store path at the catalogue place of the identification information name as the application program Footpath.
Specifically, can make using the storage inside path "/data/data " of android system as appointing system path Scanned under "/data/data/ " path with the bag name of the application program of single-play game, obtained with the mesh of the bag name name Store path of the store path that record is located as the application program.
As an example, under the storage inside path "/data/data " of android system, using application program Bag name enters line retrieval, and the store path of the program that can be applied is "/data/data/ bag names ", in current " bag name " catalogue Following subdirectory can generally be included:Subdirectory databases, can be used for depositing the database information of the application program;Son Catalogue cache, can be used for depositing the data cached of the application program;Subdirectory files, can be used for depositing the application program The file of oneself control;Subdirectory shared_prefs, is commonly used for depositing some simple configurations of the application program Information.File under these subdirectories and each subdirectory together form the program file of the application program.
It should be understood that due in different android systems, data storage management mode can difference, because This, in the store path that the application program for inquiring about single-play game is located, it is intended that also can for the system path inquired about Difference, concrete to need to run the storage management mode of current android system that terminal is located and determine according to single-play game.
The method of the synchronous single-play game for providing according to embodiments of the present invention, is not blind in the memory space of whole system Purpose searches for the file related to application program, but under system specified path search for application store path, this The process of sample makes the acquisition more targeted and accuracy of synchrodata, while the speed of search can be improved.
In step s 130, the same step number of the single-play game is obtained under the store path of the application program of single-play game According to, wherein, the authority of program file and program file under the store path of application program of the synchrodata comprising single-play game Information.
Specifically, the program file in synchrodata can be all files under "/data/data/ bag names " path;Make For another example, it is cache file in current application program running due to what is deposited in subdirectory cache, to unit The synchronization of game does not have too big impact, therefore the program file in synchrodata can be not comprising the text in cache subdirectories Part, but by the program file under "/data/data/ bag names " path in addition to the file in cache subdirectories as same step number Program file according in.
It should be noted that the file generated after carrying out packing process based on Root authority to program file such as " bag name .zip " The owner is root, and the file after packing can lose user profile and the authority information of its script files.Therefore same step number According to program file is not only included, also including program file authority information.Specifically, the authority information of program file, comprising to every The file operation authority of the reading and writing and execution of one program file.
As an alternative embodiment, the method that Fig. 4 shows the synchronous single-play game in yet another embodiment of the invention 300.As shown in figure 4, the method for the synchronous single-play game of the present embodiment is substantially identical to the method 100 of synchronous single-play game, no With part be, in S130, the step of obtain the synchrodata of single-play game after, synchrodata is sent to by and S160 Before the step of position specified, can also comprise the following steps:
Step S140, program file is packed, and obtains the program file through packing.
Used as an example, traversal needs to carry out each program file of packing process, using the condensing routine pair specified Each program file that will carry out packing process is compressed one by one, and the program file after compression is added to the compression In the file of Program Generating, it is intended that condensing routine can be zip or tar.As a specific example, by "/data/ Program file under data/ bag names " path is packed, the program file " bag name .zip " after being packed.
As the program file included in synchrodata is large number of, packing process can be carried out to these program files, Each program file in synchrodata is compressed, and is integrated into a file so that synchrodata is with an entirety Mode stored and transmitted, the integrality of data transfer can be effectively ensured, it is to avoid the loss of file, while improve transmission Speed and security.
The authority information of program file is saved as specified file format by step S150.
Fig. 5 is referred to, as an optional embodiment, step S150, the authority information of program file finger is saved as into Fixed file format, can also include following sub-step:
Step S151, travels through the catalogue under the store path of the application program.
Step S152, obtains the authority information of the program file in each catalogue successively.
Specifically, the authority information of file includes the operating right for reading and writing for file, performing.
Step S153, the authority information of each program file that traversal is obtained are sequentially recorded in the text of specified file format In part.
Specifically, it is intended that file format can be text TXT forms, expandable mark language XML form or JSON data interchange formats.As an example, as XML format is unified, easily remote interaction, data are carried out with other systems Share more convenient, therefore the authority information of program file is preserved into the file of XML format, be named as " bag name .XML ".
According to the method that above-described embodiment is provided, the file permission information of acquisition is saved as the file format specified, is made File permission information with compatibility, and can be easy to parsing in different platform, so that synchrodata can be more in different terminal rooms Good interaction.
In step S160, synchrodata is sent to the position specified.
Used as an example, the specified location sent by synchrodata can be terminal to be synchronized.In this example, may be used First to set up the connection between two terminals of game synchronization to be carried out, synchrodata is sent to by the connection set up and treats same The terminal device of step.The mode of connection is not specifically limited, and can be that for example bluetooth, mobile data network, wifi, data wire connect Connect, as long as synchrodata can be sent to terminal device to be synchronized.
As another example, the connection between not setting up between two terminals of game synchronization to be carried out, therefore, The specified location sent by synchrodata can be mobile memory medium or network storage space.
User can by data duplicates to mobile memory medium such as USB flash disk, in portable hard drive, terminal to be synchronized from Synchronization of the synchrodata to be played is obtained in the mobile memory medium;Synchrodata can also be uploaded to the network storage empty Between for example online Dropbox, terminal to be synchronized downloads synchrodata from the network storage space, with the synchronization played.
Synchrodata is carried out in different terminals by the method for providing according to embodiments of the present invention using more flexible mode Transmission, user can be in the way of flexibly selecting synchronous data transmission according to practical application scene.
The method of the synchronous single-play game by providing in above-described embodiment, obtains same step number in single-play game operation terminal According to, and by the synchronous data transmission to the position specified.Wherein, the synchrodata of game program text not only including the game Part, also including the authority information of program file.By obtaining more fully synchrodata, it is terminal synchronization single-play game to be synchronized There is provided complete data basis.
Fig. 6 is referred to, the flow chart for showing the method 400 of the synchronous single-play game that another embodiment of the present invention is provided. As shown in fig. 6, the method 400 of the synchronous single-play game of the present embodiment is comprised the following steps:Step S410, receives single-play game Synchrodata, the synchrodata include the authority information of program file and program file;Step S430, obtains single-play game and is treating The user profile of application catalog and the application catalog in synchronous terminal;Step S440, according in synchrodata Program file update current application program catalogue in current file;Step S450, according to the use of current application program catalogue The authority information of family information and program file, updates user profile and the authority information of file in the application catalog.
As an optional embodiment, after terminal to be synchronized receives the synchrodata of single-play game, need based on Root Authority carries out the synchronization process of data.
Fig. 7 is referred to, as an optional embodiment, the synchronous unit trip that another embodiment of the present invention is provided is shown The flow chart of the method 500 of play.The method of the synchronous single-play game that the present embodiment is provided is substantially identical to synchronous single shown in Fig. 6 The method 400 of machine game.Difference is, in step S430, obtains application program of the single-play game in terminal to be synchronized Before the user profile of catalogue and the application catalog, can include:Step S420, obtains the super use of terminal to be synchronized Family authority.
Acquisition with regard to Root authority has been carried out detailed description in the above-described embodiments, and here will not be described in great detail.
Fig. 8 is referred to, the detailed flow chart for obtaining single-play game application catalog is shown.As an optional reality Example is applied, as shown in figure 8, in S430, obtaining application catalog and application catalog of the single-play game in terminal to be synchronized User profile the step of in, obtaining the application catalog can specifically include following sub-step:
Step S431, obtains the identification information of the application program of single-play game.
Step S432, is scanned under the appointing system path of terminal to be synchronized using the identification information, is obtained with this The application catalog of identification information name.
With regard to end application catalogue to be synchronized acquisition detail above-described embodiment is identical or corresponding step Rapid using has been carried out detailed description, and here will not be described in great detail.
Used as an example, the search under "/data " path specified of terminal to be synchronized needs the game for synchronizing Bag name, obtain naming application catalog with the bag name under "/data/data ".
It should be noted that in step S430, in addition it is also necessary to obtain the application catalog of terminal stand-alone game to be synchronized User profile.
Specifically, the user profile of application catalog, including owner's title and group information of the application catalog.
In step S440, according in synchrodata program file update current application program catalogue in ought be above Part.
Specifically, if the program file in the synchrodata is the file through packing, after program file is obtained, The de-packaging operation of advanced style of writing part, then the current file in current application program catalogue is updated.As an example, will The program file " bag name .zip " for receiving first carries out decompression operations, the application file after decompression is copied to this and applies journey Under preface and table of contents record, to realize being updated the file under the application catalog.
Fig. 9 is referred to, is the user profile and the concrete steps of authority information for updating file in application catalog in Fig. 6 Detailed flow chart.As an alternative embodiment, as shown in figure 9, step S450, according to the use of current application program catalogue The authority information of family information and program file, updates user profile and the authority information of file in the application catalog, can With including following sub-step:
Step S451, obtains the attribute information of the file in application catalog, and the attribute information of wherein file includes text The user profile of part and authority information.
Wherein, the user profile of file includes the owner or the user's group of file, authority information refer to the reading to file, Write, perform.
Step S452, according to the user profile of application catalog, updates the user of the file in the application catalog Information.
In android system, each file under application catalog, the catalogue possesses relatively independent user's letter Breath and authority information.Based on Root authority, using the program file in synchrodata to the current file under application catalog After being updated, the owner of the file under application catalog through updating is root, accordingly, it would be desirable to by these through updating The user profile of file be revised as the user profile of the application catalog, make the application catalog become institute under the catalogue There is the owner of program file, to obtain the access rights to the file under the application catalog.
Step S453, according to the authority information of synchrodata Program file, the file in renewal application catalog Authority information.
In step S453, used as an example, the authority information of the program file received according to present terminal is for example " bag name .xml ", parses to the authority information of the form, according to the authority information of each program file for parsing, according to File in the secondary catalogue to current application program gives authority information again.
By the method for the synchronous single-play game of the embodiment of the present invention, terminal to be synchronized exists according to the program file for receiving Terminal to be synchronized carries out the renewal of program file, and user profile and the authority letter of program file of connected applications program directory Breath, modifies to the user profile and authority information of all updated files, so as to complete the same of single-play game to be synchronized Step.
Figure 10 is referred to, the structural representation of the device 1000 of the synchronous single-play game that one embodiment of the invention is provided is shown Figure.As shown in Figure 10, the device of synchronous single-play game includes:
First directory information acquiring unit 1020, the application catalog for being configured to search single-play game to be synchronized are located Store path.
Synchrodata acquiring unit 1030, is configured under the store path of the application program of single-play game to be synchronized obtain Take the synchrodata of single-play game, authority information of the synchrodata comprising program file and program file under the store path.
Data transmission unit 1060, is configured to the synchronous data transmission that obtains synchrodata acquiring unit to specifying Position.
Figure 11 is referred to, Figure 11 shows the knot of the device 1100 of the synchronous single-play game that another embodiment of the present invention is provided Structure schematic diagram, in Figure 11 and Figure 10, identical unit or module are using being identically numbered.As shown in figure 11, synchronous single-play game Device 1100 includes:First authority acquiring unit 1010, the first directory information acquiring unit 1020, synchrodata acquiring unit 1030th, program file packaged unit 1040, file permission formatting unit 1050 and data transmission unit 1060.But the present invention Described above, and the specific unit that figure 11 illustrates or module is not limited to, it is in certain embodiments, synchronous single The device 1100 of machine game can only include unit therein, i.e., the device 1100 of synchronous single-play game is comprising more flexible Configuration, illustrates with reference to specific embodiment.
In an optional embodiment, the device 1000 of synchronous single-play game can also include:First authority acquiring list Unit 1010, is configured to obtain the superuser right that single-play game to be synchronized runs terminal.
Specifically, the first directory information acquiring unit 1020 can also include:First identification information obtaining unit 1021, quilt It is configured to obtain the identification information of application program.Wherein, the first directory information acquiring unit 1020 runs terminal in application program Appointing system path under, using the first identification information obtaining unit 1021 obtain identification information search with identification information name Catalogue, by the store path being located using the catalogue of identification information name as the application program store path.
In certain embodiments, the device 1000 of synchronous single-play game can also include:Program file packaged unit 1040, The program file being configured in the synchrodata that will be obtained in synchrodata acquiring unit 1030 is packed;File permission lattice Formula unit 1050, is configured to for the authority information of the program file obtained in synchrodata acquiring unit 1030 to save as finger Determine file format.
By the device of the synchronous single-play game of the embodiment of the present invention, synchrodata is obtained in single-play game operation terminal, And by the synchronous data transmission to the position specified.Wherein, the synchrodata of game program file not only including the game, Also including the authority information of program file.Synchrodata information it is complete, be that terminal-pair single-play game to be synchronized is synchronized and carried Complete data basis have been supplied, the realization of synchronous game has been more beneficial for.
Figure 12 is referred to, shows that the structure of the device 1200 of the synchronous single-play game that yet another embodiment of the invention is provided is shown It is intended to.As shown in figure 12, the device 1200 of synchronous single-play game can include:Synchrodata receiving unit 1220, is configured to The synchrodata of single-play game is received, the synchrodata includes the authority information of program file and program file;Second catalogue is believed Breath acquiring unit 1230, is configured to obtain application catalog and the application program mesh of the single-play game in terminal to be synchronized The user profile of record;File synchronization unit 1240, is configured to be updated according to the program file that synchrodata receiving unit is received File in the application catalog;And file attribute updating block 1250, it is configured to be obtained according to the second directory information The power of the program file that the user profile of the application catalog that unit 1230 is obtained and synchrodata receiving unit 1220 are received Limit information, the user profile of the file in renewal application catalog and authority information.
Figure 13 is referred to, the structural representation of the device of the synchronous single-play game that further embodiment of this invention is provided is shown Figure.It should be understood that in certain embodiments, the device 1300 of synchronous single-play game can only include unit therein, i.e., together The device 1300 of step single-play game includes more flexible configuration, illustrates with reference to specific embodiment.
As shown in figure 13, in certain embodiments, the device 1200 of synchronous single-play game can also include:Second authority is obtained Unit 1210 is taken, is configured to obtain the superuser right of terminal to be synchronized.
Used as an alternative embodiment, the second directory information acquiring unit 1230 can also include:Second identification information is obtained Unit 1231 is taken, the identification information of the application program of acquisition single-play game is configured to;Wherein, the second directory information acquiring unit 1230 by using the second identification information obtaining unit obtain 1231 identification information from the appointing system path of terminal to be synchronized Under scan for, obtain with the application catalog of identification information name.
Used as an alternative embodiment, file synchronization unit 1240 can also include:
File attribute acquiring unit 1241, is configured to obtain user's letter of the file in single-play game application catalog Breath and authority information.
File user updating block 1242, is configured to the same step number obtained according to the second directory information acquiring unit 1230 The user profile of the application catalog according in, updates the user profile of the file in current application program catalogue.
File permission updating block 1243, is configured to the synchrodata received according to synchrodata receiving unit 1220 Program file authority information, update current application program catalogue in file authority information.
By the device of the synchronous single-play game of the present embodiment, terminal to be synchronized is treating same according to the program file for receiving Step terminal carries out the renewal of program file, and user profile and the authority information of program file of connected applications program directory, right The user profile of all updated files and authority information are modified, so as to complete the synchronization of single-play game to be synchronized.
Can be by same with reference to the method and apparatus of the synchronous single-play game according to embodiments of the present invention of Fig. 1 to Figure 13 descriptions The terminal device of step single-play game is realized.Figure 14 shows the terminal 1400 of synchronous single-play game according to embodiments of the present invention Hardware structure schematic diagram.As shown in figure 14, the terminal 1400 of synchronous single-play game includes:Receiving unit 1401, processor 1403rd, memory 1405 and transmitting element 1407.Wherein, receiving unit 1401, processor 1403, memory 1405 and send out Unit 1407 is sent to be connected with each other by bus 1410.Specifically, receiving unit 1401 is received from outside input information, and will Input information is sent to processor 1403;Processor 1403 is entered to input information based on the program code stored in memory 1405 Row is processed to generate output information, output information is temporarily or permanently stored in memory 1405, then by sending Output information output is arrived the outside of the terminal 1400 of synchronous single-play game for users to use for unit 1407.
In one embodiment, the terminal 1400 of the synchronous single-play game shown in Figure 14 may be implemented as including:Storage Device 1405, is configured to store program codes;Processor 1403, is configured to according in the program code stored in memory Instruction, performs following steps:Search the store path that the application program of single-play game to be synchronized is located;Depositing from the application program The synchrodata of single-play game is obtained under storage path, and wherein, synchrodata includes the program text under the application program store path The authority information of part and program file;Transmitting element 1407, is configured to be sent to synchrodata the position specified.
By the terminal of the synchronous single-play game of the embodiment of the present invention, synchrodata can be obtained, and by the synchrodata It is sent to the position specified.Wherein, the synchrodata of game program file not only including the game, also including program file Authority information, be that terminal-pair single-play game to be synchronized is synchronized there is provided complete data basis, be more beneficial for synchronous trip The realization of play.
Figure 15 is referred to, shows that the hardware structure of the terminal 1500 of the synchronous single-play game of another embodiment of the present invention shows It is intended to.As shown in figure 15, the terminal 1500 of synchronous single-play game includes:Receiving unit 1401, processor 1503, memory 1505 And transmitting element 1507.Wherein, receiving unit 1501, processor 1503, memory 1505 and transmitting element 1507 pass through Bus 1510 is connected with each other.Specifically, receiving unit 1501 is received from outside input information, and input information is sent to Processor 1503;Processor 1503 is processed defeated to generate based on the program code stored in memory 1505 to input information Go out information, output information is temporarily or permanently stored in memory 1505, then will output by transmitting element 1507 Information output to the terminal 1500 of synchronous single-play game outside for users to use.
The operation principle between hardware structure and each component described by Figure 15 and Figure 14 is essentially identical, and difference exists In in another embodiment, the terminal 1500 of the synchronous single-play game shown in Figure 15 is also implemented as including:Receive single Unit 1501, is configured to receive the synchrodata of single-play game, and wherein, synchrodata includes the power of program file and program file Limit information;Memory 1505, is configured to store program codes;Processor 1503, is configured to according to storing in memory Instruction in program code, performs following steps:Obtain application catalog of the single-play game in terminal to be synchronized and answer With the user profile of program directory;Current file in application catalog is updated according to program file;According to application program mesh The authority information of the user profile of record and program file, the user profile and authority for updating the file in application catalog are believed Breath.
By the terminal of the synchronous single-play game of the present embodiment, can be according to the program file for receiving in terminal to be synchronized The renewal of program file, and user profile and the authority information of program file of connected applications program directory is carried out, to all Jing The user profile of the file of renewal and authority information are modified, so as to complete the synchronization of single-play game to be synchronized.
Those skilled in the art of the present technique should be understood that the present invention includes being related to for performing heretofore described method and steps In one or more of equipment.These equipment can be for needed for purpose and specially design and manufacture, or can also include Known device in general mobile terminal.These equipment such as memory, with the program code being stored in which, these programs The activation of Code Selection ground is reconstructed.During such program code can be stored in the computer-readable recording medium of device memory or deposit Storage is being suitable to store e-command and be coupled in any kind of medium of bus respectively, and the computer-readable recording medium includes but do not limit In any kind of ROM (Read-Only Memory, read-only storage), RAM, (Random Access Memory, are deposited immediately Reservoir), EPROM (Erasable ProgrammableRead-Only Memory, Erarable Programmable Read only Memory), (Electrically Erasable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM Reservoir), flash memory, magnetic card or light card.It is, computer-readable recording medium includes in the form of it can read being stored or being passed by terminal Any medium of defeated information.
Those skilled in the art of the present technique are appreciated that and can be realized with the instruction in the program code stored in memory These structure charts and/or block diagram and/or each frame and these structure charts and/or block diagram and/or the frame in flow graph in flow graph Combination.Instruction in these program codes can be supplied to all-purpose computer, special purpose computer or other programmable datas The processor of processing method performs sheet so as to by the processor of computer or other programmable data processing methods realizing The scheme specified in the frame or multiple frames of the structure chart and/or block diagram and/or flow graph of disclosure of the invention.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, various equivalent modifications can be readily occurred in or replaced Change, these modifications or replacement should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with right The protection domain of requirement is defined.

Claims (19)

1. a kind of method of synchronous single-play game, including:
Search the store path of the application program of single-play game to be synchronized;
The synchrodata of the single-play game is obtained under the store path of the application program;
The synchrodata is sent to the position specified;
Wherein,
Authority information of the synchrodata comprising program file and described program file under the store path.
2. method according to claim 1, wherein, on the storage road of the application program for searching single-play game to be synchronized Before footpath, also include:
Obtain the superuser right that single-play game to be synchronized runs terminal.
3. method according to claim 1, wherein, the store path of the application program for searching single-play game to be synchronized Comprise the following steps:
Obtain the identification information of the application program;
Under the appointing system path that the application program runs terminal, searched for using the identification information with the identification information The catalogue of name, storage road of the store path that the catalogue named using the identification information is located as the application program Footpath.
4. method according to claim 1, before the position for being sent to synchrodata and specifying, also includes:
Described program file is packed, the program file after being packed;And
The authority information of described program file is saved as into specified file format.
5. method according to claim 4, wherein, described that the authority information of program file is saved as specified file format Comprise the following steps:
Travel through the catalogue under the store path of the application program;
The authority information of the described program file in the catalogue is obtained successively;
The authority information is sequentially recorded in the file of the specified file format.
6. a kind of method of synchronous single-play game, including:
The synchrodata of single-play game is received, the synchrodata includes the authority information of program file and described program file;
Obtain user's letter of application catalog of the single-play game in terminal to be synchronized and the application catalog Breath;
Current file in the application catalog is updated according to described program file;
According to user profile and the authority information of described program file of the application catalog, the application program mesh is updated The user profile of the file in record and authority information.
7. method according to claim 6, wherein, before the synchrodata for receiving single-play game, also includes:
Obtain the superuser right of terminal to be synchronized.
8. method according to claim 6, wherein, described to obtain application program mesh of the single-play game in terminal to be synchronized Record is comprised the following steps:
Obtain the identification information of the application program of the single-play game;
Scanned under the appointing system path of terminal to be synchronized using the identification information, obtain naming with the identification information Application catalog.
9. method according to claim 6, wherein, literary according to the user profile and described program of the application catalog The authority information of part, the user profile and authority information for updating the file in the application catalog are comprised the following steps:
Obtain user profile and the authority information of file in the application catalog;
According to the user profile of the application catalog, the user profile of the file in the application catalog is updated;
According to the authority information of described program file, the authority information of the file in the application catalog is updated.
10. a kind of device of synchronous single-play game, including:
First directory information acquiring unit, is configured to search the storage road that the application catalog of single-play game to be synchronized is located Footpath;
Synchrodata acquiring unit, is configured under the store path of the application program obtain the synchronization of the single-play game Data, authority information of the synchrodata comprising program file and described program file under the store path;
Data transmission unit, is configured to the synchronous data transmission that obtains the synchrodata acquiring unit to specifying Position.
11. devices according to claim 10, also include:
First authority acquiring unit, is configured to obtain the superuser right that single-play game to be synchronized runs terminal.
12. devices according to claim 10, wherein,
The first directory information acquiring unit, including:
First identification information obtaining unit, the identification information of the application program for being configured to obtain the single-play game to be synchronized;
The first directory information acquiring unit under the appointing system path that the application program runs terminal, using described the The catalogue that the identification information search that one identification information obtaining unit is obtained is named with the identification information, will be with the identification information Store path of the store path that the catalogue of name is located as the application program.
13. devices according to claim 10, also include:
Program file packaged unit, is configured to carry out beating by the described program file that the synchrodata acquiring unit is obtained Bag;
File permission formatting unit, is configured to the authority of the described program file of synchrodata acquiring unit acquisition Information saves as specified file format.
A kind of 14. devices of synchronous single-play game, including:
Synchrodata receiving unit, is configured to receive the synchrodata of single-play game, and the synchrodata includes program file With the authority information of program file;
Second directory information acquiring unit, be configured to obtain the single-play game terminal to be synchronized application catalog with And the user profile of the application catalog;
File synchronization unit, being configured to should according to the described program file renewal that the synchrodata receiving unit is received With the file in program directory;And
File attribute updating block, is configured to the application catalog obtained according to the second directory information acquiring unit The authority information of the described program file that user profile and the synchrodata receiving unit are received, updates the application program mesh The user profile of the file in record and authority information.
15. devices according to claim 14, also include:
Second authority acquiring unit, is configured to obtain the superuser right of terminal to be synchronized.
16. devices according to claim 14, wherein, the second directory information acquiring unit includes:
Second identification information obtaining unit, is configured to the mark of the application program of the single-play game for obtaining the terminal to be synchronized Information;
The second directory information acquiring unit is same from treating using the identification information that second identification information obtaining unit is obtained Scan under the appointing system path of step terminal, obtain the application catalog named with the identification information.
17. devices according to claim 14, wherein, the file synchronization unit includes:
File attribute acquiring unit, is configured to obtain the user profile of the file in the application catalog and authority letter Breath;
File user updating block, is configured to the application program mesh obtained according to the second directory information acquiring unit The user profile of record, updates the user profile of the file in the application catalog;
File permission updating block, is configured to the synchrodata received according to the synchrodata receiving unit 420 The authority information of the described program file that receiving unit is received, updates the authority information of the file in the application catalog.
A kind of 18. terminals of synchronous single-play game, including:
Memory, is configured to store program codes;
Processor, is configured to, according to the instruction in the described program code stored in the memory, perform following steps:
Search the store path that the application program of single-play game to be synchronized is located;
The synchrodata of the single-play game is obtained under the store path of the application program, and the synchrodata is comprising described The authority information of program file and described program file under store path;
Transmitting element, is configured to be sent to the synchrodata position specified.
A kind of 19. terminals of synchronous single-play game, including:
Memory, is configured to store program codes;
Receiving unit, is configured to receive the synchrodata of the single-play game, and the synchrodata includes program file and institute State the authority information of program file;
Processor, is configured to, according to the instruction in the described program code stored in the memory, perform following steps:
Obtain user's letter of application catalog of the single-play game in terminal to be synchronized and the application catalog Breath;
Current file in the application catalog is updated according to described program file;
According to user profile and the authority information of described program file of the application catalog, the application program mesh is updated The user profile of the file in record and authority information.
CN201610914563.0A 2016-10-20 2016-10-20 Console game synchronizing method, device and terminal Pending CN106528300A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610914563.0A CN106528300A (en) 2016-10-20 2016-10-20 Console game synchronizing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610914563.0A CN106528300A (en) 2016-10-20 2016-10-20 Console game synchronizing method, device and terminal

Publications (1)

Publication Number Publication Date
CN106528300A true CN106528300A (en) 2017-03-22

Family

ID=58332796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610914563.0A Pending CN106528300A (en) 2016-10-20 2016-10-20 Console game synchronizing method, device and terminal

Country Status (1)

Country Link
CN (1) CN106528300A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614976A (en) * 2018-04-28 2018-10-02 苏州科达科技股份有限公司 Authority configuring method, device and storage medium
CN109062592A (en) * 2018-07-16 2018-12-21 福建省天奕网络科技有限公司 A kind of method and system that game numerical value is synchronous
CN109379496A (en) * 2018-12-26 2019-02-22 世纪恒通科技股份有限公司 Cross-platform management method based on mobile phone single-play game data
CN110417785A (en) * 2019-07-31 2019-11-05 湖南微算互联信息技术有限公司 A kind of installation method, system and the storage medium of cloud mobile phone games
CN110874220A (en) * 2019-11-15 2020-03-10 网易(杭州)网络有限公司 Function integration method, device and storage medium in game application program

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243959A1 (en) * 2004-04-08 2008-10-02 Bacastow Steven V Apparatus and method for backing up computer files
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN103324551A (en) * 2013-05-23 2013-09-25 广东欧珀移动通信有限公司 Application data migration method and system
US20130275375A1 (en) * 2005-09-15 2013-10-17 Peter Nickolov Automated Filer Technique for Use in Virtualized Appliances and Applications
CN103581301A (en) * 2013-10-14 2014-02-12 汉柏科技有限公司 Method and system for sharing console game progress at mobile terminals
CN104123199A (en) * 2014-07-03 2014-10-29 可牛网络技术(北京)有限公司 Method and device for recovering application program and mobile terminal
CN105279047A (en) * 2015-11-02 2016-01-27 广东欧珀移动通信有限公司 Data backup device and method and data recovery method and device
CN105354112A (en) * 2015-11-05 2016-02-24 网易(杭州)网络有限公司 Stand-alone game data recovery method, apparatus and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080243959A1 (en) * 2004-04-08 2008-10-02 Bacastow Steven V Apparatus and method for backing up computer files
US20130275375A1 (en) * 2005-09-15 2013-10-17 Peter Nickolov Automated Filer Technique for Use in Virtualized Appliances and Applications
CN102110031A (en) * 2011-02-23 2011-06-29 宇龙计算机通信科技(深圳)有限公司 Android system-based application program backup and recovery method
CN103324551A (en) * 2013-05-23 2013-09-25 广东欧珀移动通信有限公司 Application data migration method and system
CN103581301A (en) * 2013-10-14 2014-02-12 汉柏科技有限公司 Method and system for sharing console game progress at mobile terminals
CN104123199A (en) * 2014-07-03 2014-10-29 可牛网络技术(北京)有限公司 Method and device for recovering application program and mobile terminal
CN105279047A (en) * 2015-11-02 2016-01-27 广东欧珀移动通信有限公司 Data backup device and method and data recovery method and device
CN105354112A (en) * 2015-11-05 2016-02-24 网易(杭州)网络有限公司 Stand-alone game data recovery method, apparatus and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108614976A (en) * 2018-04-28 2018-10-02 苏州科达科技股份有限公司 Authority configuring method, device and storage medium
CN109062592A (en) * 2018-07-16 2018-12-21 福建省天奕网络科技有限公司 A kind of method and system that game numerical value is synchronous
CN109379496A (en) * 2018-12-26 2019-02-22 世纪恒通科技股份有限公司 Cross-platform management method based on mobile phone single-play game data
CN110417785A (en) * 2019-07-31 2019-11-05 湖南微算互联信息技术有限公司 A kind of installation method, system and the storage medium of cloud mobile phone games
CN110874220A (en) * 2019-11-15 2020-03-10 网易(杭州)网络有限公司 Function integration method, device and storage medium in game application program
CN110874220B (en) * 2019-11-15 2023-04-28 网易(杭州)网络有限公司 Function integration method, apparatus and storage medium in game application

Similar Documents

Publication Publication Date Title
CN106528300A (en) Console game synchronizing method, device and terminal
JP5103807B2 (en) Control program, control method, information processing apparatus, and information processing system
CN108133008B (en) Method, device, equipment and storage medium for processing service data in database
CN104541266B (en) Mechanism, system and method for synchronizer
CN104067276B (en) Client-side minimum is downloaded and the page navigation feature of simulation
CN104750773A (en) Index maintenance based on a comparison of rebuild vs. update
US20110137916A1 (en) System and method for synchronized content directories on cluster devices
CN107992557A (en) Static resource update method, device, storage medium and computer equipment
CN104488248B (en) A kind of file synchronisation method, server and terminal
US9864736B2 (en) Information processing apparatus, control method, and recording medium
US9690796B2 (en) Non-transitory computer-readable media storing file management program, file management apparatus, and file management method
KR20080083488A (en) Method and apparatus for synchronizing feed information
WO2014131041A1 (en) Predictive storage service
CN102096626A (en) Mobile terminal and processing method of test log thereof
CN107783770A (en) Page configuration update method, device, server and medium
CN110008197A (en) A kind of data processing method, system and electronic equipment and storage medium
US20130179398A1 (en) Device for synchronously sharing files and method for synchronously sharing files
CN106919470A (en) A kind of data reconstruction method and device
JP4719732B2 (en) Backup server, mobile device, communication system using these, and backup method
US20070136359A1 (en) Contents list providing apparatus and contents list providing method
CN103139298B (en) Method for transmitting network data and device
US20100293152A1 (en) Managing apparatus, recording medium in which managing program is recorded, and expiration date determining method
CN110321462A (en) Information dynamic updating method, device, computer equipment and storage medium
CN108958838A (en) A kind of method and device of improved replacement attribute information
CN102663242B (en) The method and apparatus that a kind of Flash game is filed

Legal Events

Date Code Title Description
C06 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: 20170322