Nothing Special   »   [go: up one dir, main page]

WO2016177275A1 - Information sharing method and device - Google Patents

Information sharing method and device Download PDF

Info

Publication number
WO2016177275A1
WO2016177275A1 PCT/CN2016/079738 CN2016079738W WO2016177275A1 WO 2016177275 A1 WO2016177275 A1 WO 2016177275A1 CN 2016079738 W CN2016079738 W CN 2016079738W WO 2016177275 A1 WO2016177275 A1 WO 2016177275A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
application
shared
information
storage area
Prior art date
Application number
PCT/CN2016/079738
Other languages
French (fr)
Chinese (zh)
Inventor
王传举
潘刚
闫守涛
Original Assignee
广州爱九游信息技术有限公司
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 广州爱九游信息技术有限公司 filed Critical 广州爱九游信息技术有限公司
Publication of WO2016177275A1 publication Critical patent/WO2016177275A1/en

Links

Images

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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of information sharing technologies, and in particular, to a method and apparatus for information sharing based on an application.
  • the App developers put the channel identifiers into the application installation package in the packaging process before the App is released.
  • the channel ID distinguishes the distribution channel of the application installation package.
  • App1 is distributed simultaneously in Channel 1 and Channel 2, and two application installation packages need to be generated for these two channels, including channel 1 and channel 2 information respectively; and so on, with the channel
  • the technical problem to be solved by the present invention is to provide a method and device for information sharing, which can save storage space of an App publishing platform, and enable an application developer to conveniently manage and maintain an application.
  • a technical solution adopted by the present invention is to provide a method for information sharing, comprising: writing, to a shared storage area of a terminal device, sharing information of an installation package source including an application; downloading an application installation a package, the application is installed; the shared information is read in a shared storage area of the terminal device; and the shared information is written into a private storage space allocated by the terminal device for the application.
  • the method further includes: encrypting the shared information.
  • the method further includes: generating the shared information according to a preset protocol; after reading the shared information in the shared storage area of the terminal device, parsing the shared information according to the preset protocol; The parsed shared information is written into a private storage space allocated by the terminal device to the application.
  • the method further includes: creating the shared storage area on a built-in or external secure digital SD card of the terminal device.
  • the method further includes: generating a write lock file when writing the shared information including the installation package source of the application to the shared storage area of the terminal device; and sharing storage to the terminal device After the zone is written to the shared information containing the source of the installation package of the application, the write lock file is deleted.
  • the preset protocol includes a data format protocol and an encryption protocol.
  • an apparatus for information sharing comprising: a first writing module, configured to write an application including the application to a shared storage area of the terminal device The installation information of the installation package source; the download installation module is configured to download the application installation package, and the application is installed; and the reading module is configured to read the shared information in the shared storage area of the terminal device; And a write module, configured to write the shared information into a private storage space allocated by the terminal device for the application.
  • the device further includes: an encryption module, configured to encrypt the shared information.
  • the device further includes: a generating module, configured to generate the shared information according to a preset protocol; and a parsing module, configured to read the shared information in a shared storage area of the terminal device, according to the pre-predetermined The protocol is configured to parse the shared information; the second write module is further configured to write the parsed shared information into a private storage space allocated by the terminal device to the application.
  • a generating module configured to generate the shared information according to a preset protocol
  • a parsing module configured to read the shared information in a shared storage area of the terminal device, according to the pre-predetermined The protocol is configured to parse the shared information
  • the second write module is further configured to write the parsed shared information into a private storage space allocated by the terminal device to the application.
  • the device further includes: a creating module, configured to create the shared storage area on a built-in or external secure digital SD card of the terminal device.
  • the device further includes: a generating module, configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device; After the sharing information of the installation package source including the application is written to the shared storage area of the terminal device, the write lock file is deleted.
  • a generating module configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device; After the sharing information of the installation package source including the application is written to the shared storage area of the terminal device, the write lock file is deleted.
  • the preset protocol includes a data format protocol and an encryption protocol.
  • the invention has the beneficial effects that: in the case of the prior art, the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, and installs the application program; Reading the shared information in a shared storage area of the terminal device; writing the shared information into a private storage space allocated by the terminal device for the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
  • 1 is a schematic diagram of different applications in the prior art when they are promoted in different promotion channels
  • FIG. 2 is a schematic diagram of interaction between a terminal device and an App public server and a distribution channel according to a preferred embodiment of the present invention
  • FIG. 3 is a block diagram of a terminal device according to a preferred embodiment of the present invention.
  • FIG. 4 is a flowchart of an embodiment of a method for information sharing according to the present invention.
  • FIG. 5 is a flowchart of another embodiment of a method for information sharing according to the present invention.
  • FIG. 6 is a sequence diagram of a specific implementation manner of a method for information sharing according to the present invention in practical applications;
  • FIG. 7 is a sequence diagram of another specific implementation manner of a method for information sharing according to the present invention in practical applications.
  • FIG. 8 is a schematic diagram of functional modules of an apparatus for information sharing according to the present invention.
  • FIG. 2 is a schematic diagram of interaction between the terminal device 100 and the App public server 200 and the distribution channel 300 according to the preferred embodiment of the present invention.
  • the terminal device 100 can communicate with the App public server 200 via the network 400 to download application software from the App public server 200.
  • the terminal device 100 can communicate with the distribution channel 300 through the network 400 to obtain channel information of the application software from the distribution channel 300.
  • the terminal device 100 may be, but not limited to, a smart phone, a personal computer (PC), a tablet computer, a personal digital assistant (PAD), and a mobile Internet device (mobile Internet device). , MID) and so on.
  • the App public server 200 can be, but is not limited to, a web server.
  • the distribution channel 300 can be, but is not limited to, an application store, a webpage advertisement portal, a mobile phone pre-installation, and the like.
  • the network 400 can be, but is not limited to, a wired network or a wireless network.
  • FIG. 3 is a schematic block diagram of a terminal device 100 according to an embodiment of the present invention.
  • the terminal device 100 includes an information sharing device 110, a memory 111, a storage controller 112, a processor 113, and a communication unit 114.
  • the components of the memory 111, the memory controller 112, the processor 113, and the communication unit 114 are electrically connected directly or indirectly to each other to implement data transmission or interaction.
  • the components can be electrically connected to one another via one or more communication buses or signal lines.
  • the information sharing device 110 includes at least one operating system that can be stored in the memory 111 or firmware in the terminal device 100 in the form of software or firmware.
  • Software function module in (operating system, OS) stores an application downloaded and installed by the terminal device 100 from the App public server 200.
  • the processor 113 is configured to execute an executable module stored in the memory 111, such as a software function module, a computer program, and the like included in the information sharing device 110.
  • the memory 111 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • RAM random access memory
  • ROM read only memory
  • PROM programmable read-only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the memory 111 is used to store a program, and the processor 113 executes the program after receiving an execution instruction. Access to the memory 111 by the processor 113 and other possible components can be performed under the control of the memory controller 112.
  • the processor 113 may be an integrated circuit chip with signal processing capabilities.
  • the processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and may also be a digital signal processor (DSP), an application specific integrated circuit ( ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the communication unit 114 is configured to establish a communication connection between the terminal device 100, the App public server 200, and the distribution channel 300 through the network 400, thereby implementing the terminal device 100 from the App public server 200. Download the application or get channel information for the application from the distribution channel 300.
  • the method and apparatus for information sharing of the present invention writes sharing information including an installation package source of an application to a shared storage area of the terminal device; downloads an application installation package, installs the application program; and shares the terminal device Reading the shared information in the storage area; The shared information is written into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
  • FIG. 4 is a flowchart of an embodiment of a method for information sharing according to the present invention.
  • the method for information sharing may include:
  • Step S101 Write sharing information including the source of the installation package of the application to the shared storage area of the terminal device.
  • a shared storage area is a storage area specially created on a terminal device (for example, a mobile phone, a tablet, etc.) for storing shared information.
  • the source of the application's installation package refers to where the application was downloaded, or the promotion channel information of the application installation package.
  • the application's installation package source is the app store, web ad portal, mobile phone pre-installation, and more.
  • Step S102 Download the application installation package and install the application.
  • Step S103 The shared information is read in the terminal device shared storage area.
  • Step S104 Write the shared information into the private storage space allocated by the terminal device for the application.
  • the general terminal device When the application is installed, the general terminal device has a private storage space allocated for the application (on the personal computer, it can be the installation directory of the application, and on the mobile terminal, it can be the storage space allocated to the application), Store related files. Write shared information to private storage and eliminate the need to re-occupy new storage.
  • an application originating from an application store may store channel information (ie, an application store) as shared information in a shared storage area of the terminal device.
  • the user downloads any other application from the application store and, after installing the application, reads the channel information (ie, the application store) from the shared storage area of the terminal device, and then writes the channel information (ie, the application store) to the terminal device as the The private storage space allocated by the application. Therefore, the installation package of any application published on the app store does not need to carry channel information in the terminal device (such as mobile phone) After installation, the channel information can be read directly into the shared storage area, and then written into the private storage space allocated by the terminal device for the application, and the application also has channel information.
  • the promotion channels include the application store 1, the application store 2, the application store 3, the installation packages of the application 1 and the application 2 are all saved on the App public server, and the application store 1, the application store 2, and the application store 3 are all released. Installation information for application 1 and application 2.
  • the application store 1 transfers the download address to the App public server, allowing the user to download the installation package of the application 1 from the App public server, and the application store 1 will channel the information (ie, The application store 1) writes the shared storage area of the terminal device (for example, the application 1 - the application store 1), and the channel information of the application 1 can be read from the shared storage area of the terminal device to the application store 1.
  • the application store 2 transfers the download address to the App public server, allows the user to download the installation package of the application 2 from the App public server, and the application store 2 uses the channel information (ie, the application)
  • the store 2) writes the shared storage area of the terminal device (for example, the application 2 - the application store 2), and the channel information of the application 2 can be read from the shared storage area of the terminal device to the application store 2.
  • the application store 2 transfers the download address to the App public server, and lets the user download the installation package of the application 1 from the App public server.
  • the application store 2 writes the channel information (ie, the application store 2) into the shared storage area, if the channel information "application 1 - application store 1" is found, the application 1 - application store 1 can be replaced with " Application 1 - App Store 2" to ensure that the current channel information of the application 1 (ie, the application store 2) can be read from the shared storage area of the terminal device.
  • the application store 2 writes the channel information (ie, the application store 2) into the shared storage area of the terminal device (eg, : Application 1 - Application Store 2), when the channel information of the application 1 is read from the shared storage area, the channel information of the application 1 is determined to be the application store 2 according to the priority.
  • the channel information of the application 1 can also be determined in other ways.
  • the application package no longer carries the channel letter.
  • an application has only one installation package in the App public server.
  • the installation package of an application only needs to be stored on the App public server.
  • the installation package of the application may not be stored on the channel server.
  • the App publishing platform can share an App public server, which can save the storage of the App publishing platform. space.
  • the embodiment of the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, installs the application program; and reads the location in the shared storage area of the terminal device Sharing information; writing the shared information into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
  • the method may further include: encrypting the shared information. Encrypting shared information ensures the security of shared information.
  • the method may further include: generating the shared information according to the preset protocol.
  • the shared information needs to be parsed according to a preset protocol.
  • Step S104 may specifically be: writing the parsed shared information into a private storage space allocated by the terminal device for the application.
  • the method may further comprise: creating a shared storage area on the built-in or external secure digital SD card of the terminal device.
  • the shared storage area is created on the built-in or external SD card of the terminal device, and the shared information can be obtained directly and conveniently, and the memory of the terminal device can be avoided.
  • the method may further include:
  • Step S201 When writing the sharing information including the source of the installation package of the application to the shared storage area of the terminal device, a write lock file is generated. In this way, it is convenient to avoid reading the shared information before writing the shared information is completed. That is to avoid the problem of reading and writing errors, Thereby achieving a smooth sharing of information.
  • Step S202 After the sharing information of the installation package source including the application is written to the shared storage area of the terminal device, the write lock file is deleted. In this way, it is convenient to be able to read the shared information after the writing of the shared information is completed.
  • a "write lock file” can be generated. If the "write lock file” is found when reading the shared information, there are other applications. Writing is in progress, waiting for the application to complete writing and then reading.
  • the preset protocol includes a data format protocol and an encryption protocol.
  • a Cyclic Redundancy Check CRC
  • M9 or other encryption algorithms can be used for encryption of shared information.
  • the data format adopts a JavaScript object notation (JSON, JavaScript Object Notation) structure, and the shared information is stored in a shared storage area of the terminal device by means of key-value pairs, considering the diversity and complexity of the data. Sex, you can distinguish key-value pairs by business, such as:
  • the following uses the shared information as the channel information, and the default information is the default channel information as an example to illustrate the method for sharing the information of the present invention.
  • the distribution channel (app store) provides the release information of App1, and the App1 installation package is saved in App public server (not shown), and the App1 installation package does not carry channel information, only carries a default channel information, and the distribution channel (app store) writes its channel information 1 as shared information to the terminal device (such as a mobile phone).
  • the terminal device such as a mobile phone.
  • the application store transfers the download address to the App public server, so that the user downloads the installation package of App1 from the App public server, when carrying the default channel.
  • App1 After the App1 installation package of the information is downloaded and installed (for example, after being downloaded and installed in the private storage area), App1 goes to the shared storage area to read the shared information, obtains the channel information 1, and writes the channel information 1 to the terminal device as the App1. Allocate private storage space to complete the purpose of information sharing.
  • the first step the terminal device (such as a mobile phone) downloads the App1 installation package in the distribution channel, and the distribution channel transfers the download address to the App public server.
  • the App1 installation package does not carry the channel information, but only carries the default. Channel information.
  • the second step download and installation is complete.
  • the third step encrypting the channel information as shared information is written into the shared storage area of the terminal device.
  • Step 4 App1 reads and decrypts the channel information from the shared storage area. If it is successfully decrypted, it enters the fifth step. If the decryption is not successful, it enters the sixth step.
  • Step 5 After the read and decryption succeeds, App1 obtains the channel information from the shared storage area, and writes the shared information into the private storage space allocated by the terminal device for App1.
  • Step 6 After the read and decryption fails, App1 reads the default channel information carried by itself.
  • the distribution channel includes an activity page channel and an application store channel as an example.
  • App1 and App2 are saved in the App public server.
  • the App1 installation package and the App2 installation package do not carry channel information. It only carries the default channel information. It is assumed that the App is installed in the private storage area allocated by the terminal device for the App.
  • the activity page channel transfers the download address to the App public server, so that the user actually downloads from the App public server.
  • the activity page channel writes the channel information into the shared storage area of the terminal device (for example: App1-activity page).
  • App1 reads the channel information from the shared storage area as the active page.
  • App1 writes the channel information (activity page) into the private storage space allocated by the terminal device for App1.
  • the application store channel transfers the download address to the App public server, so that the user actually downloads from the App public server.
  • the app store channel writes the channel information into the shared storage area of the terminal device (for example: App2-App Store).
  • App2 reads the channel information from the shared storage area as an application store.
  • App2 writes the channel information (app store) into the private storage space allocated by the terminal device for App2.
  • the user downloads the App1 installation package through the app store channel, and the user has already been on the terminal device.
  • the App1 installation package has been downloaded and installed through the activity page channel, including:
  • (D) App1 reads the channel information from the shared storage area as an application store.
  • App1 writes the app store channel into the private storage space allocated by the terminal device for App1.
  • the priority level can be judged, and the priority can be preset according to the actual situation, and the distribution channel with high priority is required.
  • Channel information is preferentially written to the shared storage area to ensure that the correct shared information is written to the shared storage area.
  • the distribution channel needs to be packaged according to the prior art scheme before the present invention, and it needs to be played about 12100 (ie, 100+120 ⁇ 100) corresponding to the installation package containing the distribution channel information, to issue these apps, it is obvious that in the case that about 60% of the distribution channels have already supported the channel information sharing scheme, the number of packages installed from the App, App The cost of the distribution platform and the maintenance cost of the developer of the App are both reduced by 60%.
  • the effect of the information sharing scheme of the present invention is quite obvious.
  • FIG. 8 is a schematic structural diagram of an apparatus for information sharing according to the present invention.
  • the apparatus is applied to a terminal device, and the terminal device may be a mobile phone, a tablet computer, or the like, and the device may perform the foregoing method flow.
  • the device includes a first writing module 101, a download and installation module 102, a reading module 103, and a second writing module 104.
  • the first writing module 101 is configured to write the sharing information including the installation package source of the application to the shared storage area of the terminal device.
  • a shared storage area is a storage area specially created on a terminal device for storing shared information.
  • the source of the application's installation package refers to where the application was downloaded, or the promotion channel information of the application installation package.
  • the application's installation package source is the app store, web ad portal, mobile phone pre-installation, and more.
  • the download installation module 102 is used to download an application installation package and install an application.
  • the reading module 103 is configured to read the shared information in the shared storage area of the terminal device.
  • the second write module 104 is configured to write the shared information into a private storage space allocated by the terminal device for the application.
  • the general terminal device When the application is installed, the general terminal device has a private storage space allocated for the application (on the personal computer, it can be the installation directory of the application, and on the mobile terminal, it can be the storage space allocated to the application), Store related files. Write shared information to private storage and eliminate the need to re-occupy new storage.
  • the embodiment of the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, installs the application program; and reads the location in the shared storage area of the terminal device Sharing information; writing the shared information into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, the App is packaged. The App package does not need to package different installation package sources. An App only needs an App package, and the shared information can be read on the terminal device. In this way, the storage space of the App release platform can be saved, and the App developer can be saved. Easy to manage and maintain the app.
  • the device further includes: an encryption module.
  • the encryption module is used to encrypt shared information. Encrypting shared information ensures the security of shared information.
  • the device further includes: a generating module and a parsing module.
  • the generation module is used to generate shared information according to a preset protocol.
  • the parsing module is configured to parse the shared information according to a preset protocol after reading the shared information in the shared storage area of the terminal device.
  • the second writing module 104 is further configured to write the parsed shared information into a private storage space allocated by the terminal device for the application.
  • the device further comprises: creating a module.
  • the creation module is used to create a shared storage area on the built-in or external secure digital SD card of the terminal device.
  • the shared storage area is created on the built-in or external SD card of the terminal device, and the shared information can be obtained directly and conveniently, and the memory of the terminal device can be avoided.
  • the device further includes: a generating module and a deleting module.
  • the generation module is configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device. In this way, it is convenient to avoid reading the shared information before writing the shared information is completed. That is to avoid the problem of reading and writing errors, so as to achieve smooth sharing of information.
  • the delete module is used to delete the write lock file after the shared information including the source of the installation package of the application is written to the shared storage area of the terminal device. In this way, it is convenient to be able to read the shared information after the writing of the shared information is completed.
  • a "write lock file” can be generated. If the "write lock file” is found when reading the shared information, there are other applications. Writing is in progress, waiting for the application to complete writing and then reading.
  • the preset protocol includes a data format protocol and an encryption protocol.
  • CRC integrity check
  • M9 or other encryption algorithms are used for encryption of shared information.
  • the data format adopts a JSON structure with convenient read and write operations.
  • the shared information written is stored in a shared storage area by key-value pairs. Considering the diversity and complexity of the data, key-value pairs can be distinguished by service.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Disclosed are an information sharing method and device. The method comprises: writing shared information containing the source of an installation package of an application program into a shared storage area of a terminal device (S101); downloading the installation package of the application program, and installing the application program (S102); reading the shared information in the shared storage area of the terminal device (S103); and writing the shared information into a private storage space which is allocated to the application program by the terminal device (S104). By means of the method, the storage space of an App distribution platform can be saved, and it is convenient for a developer of an application program to manage and maintain the application program.

Description

信息共享的方法及装置Method and device for information sharing
本申请要求于2015年05月07日提交中国专利局、申请号为CN201510230396.3、发明名称为“信息共享的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application, filed on May 07, 2015, the application Serial No. in.
技术领域Technical field
本发明涉及信息共享技术领域,特别是涉及一种基于应用程序进行信息共享的方法及装置。The present invention relates to the field of information sharing technologies, and in particular, to a method and apparatus for information sharing based on an application.
发明背景Background of the invention
随着移动互联网的日渐壮大,越来越多的手机应用程序(App,Application)出现在各个推广渠道上,如应用商店、网页广告入口、手机预装等都是常见的推广渠道。With the growing of mobile Internet, more and more mobile applications (App, Application) appear in various promotion channels, such as application stores, web advertising portals, mobile phone pre-installation, etc. are common promotion channels.
现有技术中,App开发商为了更好的区分这些发布于不同渠道的App,在App发布前,在打包过程中将渠道标识一并打进应用程序安装包中。渠道标识能够区分应用程序安装包的发布渠道。In the prior art, in order to better distinguish the apps published in different channels, the App developers put the channel identifiers into the application installation package in the packaging process before the App is released. The channel ID distinguishes the distribution channel of the application installation package.
同一个应用程序,在不同的渠道发行会有不同的安装包,这样随着推广渠道越来越多,即使是一个应用程序,其安装包也会有很多个。这样App开发商维护起来会很复杂,例如当需要对某个应用程序进行升级时,App开发商必须针对不同渠道安装的App开发不同的升级包,这样导致维护成本很大。同时由于管理多个发行渠道的App发行平台会存储很多个同一App带有不同渠道标记的安装包,而消耗很多的存储空间,造成存储空间浪费。例如,请参见图1,App1在渠道1和渠道2两个渠道同时发行,需要为这两个渠道生成2个应用程序安装包,分别包含渠道1和渠道2信息;依次类推,随着渠道越来越多,App1的应用程序安装包的数量也会越来越多,管理多个发行渠道的App发行平台占用的存储空间也会越来越多。 The same application, there will be different installation packages in different channels, so that with more and more promotion channels, even an application, there will be many installation packages. In this way, the App developer can be complicated to maintain. For example, when an application needs to be upgraded, the App developer must develop different upgrade packages for the apps installed in different channels, which results in high maintenance costs. At the same time, because the App publishing platform that manages multiple distribution channels stores a large number of installation packages with the same channel tag with the same app, it consumes a lot of storage space, resulting in wasted storage space. For example, please refer to Figure 1. App1 is distributed simultaneously in Channel 1 and Channel 2, and two application installation packages need to be generated for these two channels, including channel 1 and channel 2 information respectively; and so on, with the channel The more applications there are, the more applications will be installed in App1, and the storage space for apps that manage multiple distribution channels will be more and more.
发明内容Summary of the invention
本发明主要解决的技术问题是提供一种信息共享的方法及装置,能够节省App发行平台的存储空间,并使应用程序的开发商方便管理与维护应用程序。The technical problem to be solved by the present invention is to provide a method and device for information sharing, which can save storage space of an App publishing platform, and enable an application developer to conveniently manage and maintain an application.
为解决上述技术问题,本发明采用的一个技术方案是:提供一种信息共享的方法,包括:向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载应用程序安装包,安装所述应用程序;在所述终端设备的共享存储区中读取所述共享信息;将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。In order to solve the above technical problem, a technical solution adopted by the present invention is to provide a method for information sharing, comprising: writing, to a shared storage area of a terminal device, sharing information of an installation package source including an application; downloading an application installation a package, the application is installed; the shared information is read in a shared storage area of the terminal device; and the shared information is written into a private storage space allocated by the terminal device for the application.
其中,所述方法还包括:加密所述共享信息。The method further includes: encrypting the shared information.
其中,所述方法还包括:按照预设协议生成所述共享信息;在所述终端设备的共享存储区中读取所述共享信息后,按照所述预设协议解析所述共享信息;将所述解析后的共享信息写入终端设备为所述应用程序分配的私有存储空间中。The method further includes: generating the shared information according to a preset protocol; after reading the shared information in the shared storage area of the terminal device, parsing the shared information according to the preset protocol; The parsed shared information is written into a private storage space allocated by the terminal device to the application.
其中,所述方法还包括:在所述终端设备的内置或外置安全数字SD卡上创建所述共享存储区。The method further includes: creating the shared storage area on a built-in or external secure digital SD card of the terminal device.
其中,所述方法还包括:在向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息时,生成写入锁文件;当向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息完成后,删除所述写入锁文件。The method further includes: generating a write lock file when writing the shared information including the installation package source of the application to the shared storage area of the terminal device; and sharing storage to the terminal device After the zone is written to the shared information containing the source of the installation package of the application, the write lock file is deleted.
其中,所述预设协议包括数据格式协议和加密协议。The preset protocol includes a data format protocol and an encryption protocol.
为解决上述技术问题,本发明采用的另一个技术方案是:提供一种信息共享的装置,所述装置包括:第一写入模块,用于向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载安装模块,用于下载应用程序安装包,安装所述应用程序;读取模块,用于在所述终端设备的共享存储区中读取所述共享信息;第二写入模块,用于将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。In order to solve the above technical problem, another technical solution adopted by the present invention is to provide an apparatus for information sharing, the apparatus comprising: a first writing module, configured to write an application including the application to a shared storage area of the terminal device The installation information of the installation package source; the download installation module is configured to download the application installation package, and the application is installed; and the reading module is configured to read the shared information in the shared storage area of the terminal device; And a write module, configured to write the shared information into a private storage space allocated by the terminal device for the application.
其中,所述装置还包括:加密模块,用于加密所述共享信息。 The device further includes: an encryption module, configured to encrypt the shared information.
其中,所述装置还包括:生成模块,用于按照预设协议生成所述共享信息;解析模块,用于在所述终端设备的共享存储区中读取所述共享信息后,按照所述预设协议解析所述共享信息;所述第二写入模块还用于将所述解析后的共享信息写入终端设备为所述应用程序分配的私有存储空间中。The device further includes: a generating module, configured to generate the shared information according to a preset protocol; and a parsing module, configured to read the shared information in a shared storage area of the terminal device, according to the pre-predetermined The protocol is configured to parse the shared information; the second write module is further configured to write the parsed shared information into a private storage space allocated by the terminal device to the application.
其中,所述装置还包括:创建模块,用于在所述终端设备的内置或外置安全数字SD卡上创建所述共享存储区。The device further includes: a creating module, configured to create the shared storage area on a built-in or external secure digital SD card of the terminal device.
其中,所述装置还包括:生成模块,用于在向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息时,生成写入锁文件;删除模块,用于当向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息完成后,删除所述写入锁文件。The device further includes: a generating module, configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device; After the sharing information of the installation package source including the application is written to the shared storage area of the terminal device, the write lock file is deleted.
其中,所述预设协议包括数据格式协议和加密协议。The preset protocol includes a data format protocol and an encryption protocol.
本发明的有益效果是:区别于现有技术的情况,本发明向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载应用程序安装包,安装所述应用程序;在所述终端设备的共享存储区中读取所述共享信息;将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。由于在终端设备的共享存储区中写入包含App的安装包来源的共享信息,使得在打包App时不需要将不同安装包来源打包进去,一个App只需要一个App包,共享信息能够在终端设备读取,通过这种方式,能够节省App发行平台的存储空间,并使App的开发商方便管理与维护App。The invention has the beneficial effects that: in the case of the prior art, the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, and installs the application program; Reading the shared information in a shared storage area of the terminal device; writing the shared information into a private storage space allocated by the terminal device for the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
附图说明DRAWINGS
图1是现有技术中不同的应用程序在不同的推广渠道中进行推广时的示意图;1 is a schematic diagram of different applications in the prior art when they are promoted in different promotion channels;
图2是本发明较佳实施例提供的终端设备与App公共服务器及发行渠道之间进行通信的交互示意图;2 is a schematic diagram of interaction between a terminal device and an App public server and a distribution channel according to a preferred embodiment of the present invention;
图3是本发明较佳实施例提供的终端设备的方框示意图; 3 is a block diagram of a terminal device according to a preferred embodiment of the present invention;
图4是本发明信息共享的方法一实施方式的流程图;4 is a flowchart of an embodiment of a method for information sharing according to the present invention;
图5是本发明信息共享的方法另一实施方式的流程图;FIG. 5 is a flowchart of another embodiment of a method for information sharing according to the present invention; FIG.
图6是本发明信息共享的方法在实际应用中的一具体实施方式的时序图;6 is a sequence diagram of a specific implementation manner of a method for information sharing according to the present invention in practical applications;
图7是本发明信息共享的方法在实际应用中的另一具体实施方式的时序图;7 is a sequence diagram of another specific implementation manner of a method for information sharing according to the present invention in practical applications;
图8是本发明信息共享的装置一实施方式的功能模块示意图。FIG. 8 is a schematic diagram of functional modules of an apparatus for information sharing according to the present invention.
具体实施方式detailed description
下面结合附图和实施方式对本发明进行详细说明。The invention will now be described in detail in conjunction with the drawings and embodiments.
请参见图2,是本发明较佳实施例提供的终端设备100与App公共服务器200及发行渠道300之间进行通信的交互示意图。所述终端设备100可以通过网络400与所述App公共服务器200进行通信,以从App公共服务器200中下载应用软件。所述终端设备100可以通过网络400与所述发行渠道300进行通信,以从发行渠道300中获得应用软件的渠道信息。本实施例中,所述终端设备100可以是,但不限于,智能手机、个人电脑(personal computer,PC)、平板电脑、个人数字助理(personal digital assistant,PAD)、移动上网设备(mobile Internet device,MID)等。所述App公共服务器200可以是,但不限于,web(网站)服务器。所述发行渠道300可以是,但不限于,应用商店、网页广告入口、手机预装等。所述网络400可以是,但不限于,有线网络或无线网络。FIG. 2 is a schematic diagram of interaction between the terminal device 100 and the App public server 200 and the distribution channel 300 according to the preferred embodiment of the present invention. The terminal device 100 can communicate with the App public server 200 via the network 400 to download application software from the App public server 200. The terminal device 100 can communicate with the distribution channel 300 through the network 400 to obtain channel information of the application software from the distribution channel 300. In this embodiment, the terminal device 100 may be, but not limited to, a smart phone, a personal computer (PC), a tablet computer, a personal digital assistant (PAD), and a mobile Internet device (mobile Internet device). , MID) and so on. The App public server 200 can be, but is not limited to, a web server. The distribution channel 300 can be, but is not limited to, an application store, a webpage advertisement portal, a mobile phone pre-installation, and the like. The network 400 can be, but is not limited to, a wired network or a wireless network.
请参见图3,图3为本发明实施例提供的一种终端设备100的方框示意图。所述终端设备100包括信息共享的装置110、存储器111、存储控制器112、处理器113以及通信单元114。Referring to FIG. 3, FIG. 3 is a schematic block diagram of a terminal device 100 according to an embodiment of the present invention. The terminal device 100 includes an information sharing device 110, a memory 111, a storage controller 112, a processor 113, and a communication unit 114.
所述存储器111、存储控制器112、处理器113及通信单元114各元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。所述信息共享的装置110包括至少一个可以软件或固件(firmware)的形式存储于所述存储器111中或固化在所述终端设备100的操作系统 (operating system,OS)中的软件功能模块。所述存储器111存储有所述终端设备100从App公共服务器200上下载并安装的应用程序。所述处理器113用于执行所述存储器111中存储的可执行模块,例如所述信息共享的装置110所包括的软件功能模块及计算机程序等。The components of the memory 111, the memory controller 112, the processor 113, and the communication unit 114 are electrically connected directly or indirectly to each other to implement data transmission or interaction. For example, the components can be electrically connected to one another via one or more communication buses or signal lines. The information sharing device 110 includes at least one operating system that can be stored in the memory 111 or firmware in the terminal device 100 in the form of software or firmware. Software function module in (operating system, OS). The memory 111 stores an application downloaded and installed by the terminal device 100 from the App public server 200. The processor 113 is configured to execute an executable module stored in the memory 111, such as a software function module, a computer program, and the like included in the information sharing device 110.
其中,所述存储器111可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。其中,存储器111用于存储程序,所述处理器113在接收到执行指令后,执行所述程序。所述处理器113以及其他可能的组件对存储器111的访问可在所述存储控制器112的控制下进行。The memory 111 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like. The memory 111 is used to store a program, and the processor 113 executes the program after receiving an execution instruction. Access to the memory 111 by the processor 113 and other possible components can be performed under the control of the memory controller 112.
所述处理器113可能是一种集成电路芯片,具有信号的处理能力。上述的处理器113可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP))、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 113 may be an integrated circuit chip with signal processing capabilities. The processor 113 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and may also be a digital signal processor (DSP), an application specific integrated circuit ( ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component. The methods, steps, and logical block diagrams disclosed in the embodiments of the present invention may be implemented or carried out. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
所述通信单元114用于通过所述网络400建立所述终端设备100、App公共服务器200及发行渠道300三者之间的通信连接,从而实现所述终端设备100从所述App公共服务器200中下载应用程序或者从发行渠道300中获得应用软件的渠道信息。The communication unit 114 is configured to establish a communication connection between the terminal device 100, the App public server 200, and the distribution channel 300 through the network 400, thereby implementing the terminal device 100 from the App public server 200. Download the application or get channel information for the application from the distribution channel 300.
本发明的信息共享的方法及装置,向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载应用程序安装包,安装所述应用程序;在所述终端设备的共享存储区中读取所述共享信息;将所 述共享信息写入终端设备为所述应用程序分配的私有存储空间中。由于在终端设备的共享存储区中写入包含App的安装包来源的共享信息,使得在打包App时不需要将不同安装包来源打包进去,一个App只需要一个App包,共享信息能够在终端设备读取,通过这种方式,能够节省App发行平台的存储空间,并使App的开发商方便管理与维护App。The method and apparatus for information sharing of the present invention writes sharing information including an installation package source of an application to a shared storage area of the terminal device; downloads an application installation package, installs the application program; and shares the terminal device Reading the shared information in the storage area; The shared information is written into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
参阅图4,图4是本发明信息共享的方法一实施方式的流程图,所述信息共享的方法可以包括:Referring to FIG. 4, FIG. 4 is a flowchart of an embodiment of a method for information sharing according to the present invention. The method for information sharing may include:
步骤S101:向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息。Step S101: Write sharing information including the source of the installation package of the application to the shared storage area of the terminal device.
共享存储区是在终端设备(例如,手机,平板电脑等)上专门创建的用来存储共享信息的存储区。应用程序的安装包来源是指该应用程序是从哪里下载来的,或者是应用程序安装包的推广渠道信息。例如,应用程序的安装包来源是应用商店、网页广告入口、手机预装等等。A shared storage area is a storage area specially created on a terminal device (for example, a mobile phone, a tablet, etc.) for storing shared information. The source of the application's installation package refers to where the application was downloaded, or the promotion channel information of the application installation package. For example, the application's installation package source is the app store, web ad portal, mobile phone pre-installation, and more.
步骤S102:下载应用程序安装包,安装应用程序。Step S102: Download the application installation package and install the application.
步骤S103:在终端设备共享存储区中读取共享信息。Step S103: The shared information is read in the terminal device shared storage area.
在应用程序安装完成后,可以去终端设备共享存储区中读取共享信息。After the application is installed, you can read the shared information in the shared storage area of the terminal device.
步骤S104:将共享信息写入终端设备为应用程序分配的私有存储空间中。Step S104: Write the shared information into the private storage space allocated by the terminal device for the application.
当应用程序安装后,一般终端设备都有为该应用程序分配的私有存储空间(在个人计算机上可以是应用程序的安装目录,在移动终端上可以是分配给应用程序的存储空间),用于存放相关的文件。将共享信息写入私有存储空间,也不需要重新占用新的存储空间。When the application is installed, the general terminal device has a private storage space allocated for the application (on the personal computer, it can be the installation directory of the application, and on the mobile terminal, it can be the storage space allocated to the application), Store related files. Write shared information to private storage and eliminate the need to re-occupy new storage.
例如:来源于应用商店的应用程序可以将渠道信息(即应用商店)作为共享信息存储在终端设备的共享存储区中。用户从应用商店上下载其它任何应用程序并在安装应用程序后,从终端设备的共享存储区中读取渠道信息(即应用商店),然后将渠道信息(即应用商店)写入终端设备为该应用程序分配的私有存储空间中。因此,在应用商店上发布的任何应用程序的安装包均不需要携带渠道信息,在终端设备(比如手机) 上安装后,可以直接到共享存储区读取渠道信息,然后写入终端设备为该应用程序分配的私有存储空间中,该应用程序也就有了渠道信息。For example, an application originating from an application store may store channel information (ie, an application store) as shared information in a shared storage area of the terminal device. The user downloads any other application from the application store and, after installing the application, reads the channel information (ie, the application store) from the shared storage area of the terminal device, and then writes the channel information (ie, the application store) to the terminal device as the The private storage space allocated by the application. Therefore, the installation package of any application published on the app store does not need to carry channel information in the terminal device (such as mobile phone) After installation, the channel information can be read directly into the shared storage area, and then written into the private storage space allocated by the terminal device for the application, and the application also has channel information.
又例如:假设推广渠道包括应用商店1、应用商店2、应用商店3,应用程序1和应用程序2的安装包都保存在App公共服务器上,应用商店1、应用商店2、应用商店3均发布了应用程序1和应用程序2的安装信息。For another example, suppose that the promotion channels include the application store 1, the application store 2, the application store 3, the installation packages of the application 1 and the application 2 are all saved on the App public server, and the application store 1, the application store 2, and the application store 3 are all released. Installation information for application 1 and application 2.
当用户从应用商店1下载应用程序1时,应用商店1将下载地址转接到App公共服务器上,让用户从App公共服务器上下载应用程序1的安装包,同时应用商店1将渠道信息(即应用商店1)写入终端设备的共享存储区中(如:应用程序1-应用商店1),从终端设备的共享存储区中即可读取应用程序1的渠道信息为应用商店1。When the user downloads the application 1 from the application store 1, the application store 1 transfers the download address to the App public server, allowing the user to download the installation package of the application 1 from the App public server, and the application store 1 will channel the information (ie, The application store 1) writes the shared storage area of the terminal device (for example, the application 1 - the application store 1), and the channel information of the application 1 can be read from the shared storage area of the terminal device to the application store 1.
当用户从应用商店2下载应用程序2时,应用商店2将下载地址转到App公共服务器上,让用户从App公共服务器上下载应用程序2的安装包,同时应用商店2将渠道信息(即应用商店2)写入终端设备的共享存储区中(如:应用程序2-应用商店2),从终端设备的共享存储区中即可读取应用程序2的渠道信息为应用商店2。When the user downloads the application 2 from the application store 2, the application store 2 transfers the download address to the App public server, allows the user to download the installation package of the application 2 from the App public server, and the application store 2 uses the channel information (ie, the application) The store 2) writes the shared storage area of the terminal device (for example, the application 2 - the application store 2), and the channel information of the application 2 can be read from the shared storage area of the terminal device to the application store 2.
当用户从应用商店2下载应用程序1,准备安装时,应用商店2将下载地址转接到App公共服务器上,让用户从App公共服务器上下载应用程序1的安装包。同时应用商店2将渠道信息(即应用商店2)写入共享存储区中时,若发现存在渠道信息“应用程序1-应用商店1”,可以将“应用程序1-应用商店1”替换为“应用程序1-应用商店2”,以保证从终端设备的共享存储区中即可读取应用程序1当前的渠道信息(即应用商店2)。或者设置应用程序1的渠道信息的优先级(比如:按照时间先后顺序,最近的时间优先级最高),应用商店2将渠道信息(即应用商店2)写入终端设备的共享存储区中(如:应用程序1-应用商店2),当从共享存储区中读取应用程序1的渠道信息时,根据优先级确定应用程序1的渠道信息为应用商店2。当然也还可以采用其他方式确定应用程序1的渠道信息。When the user downloads the application 1 from the application store 2 and prepares for installation, the application store 2 transfers the download address to the App public server, and lets the user download the installation package of the application 1 from the App public server. When the application store 2 writes the channel information (ie, the application store 2) into the shared storage area, if the channel information "application 1 - application store 1" is found, the application 1 - application store 1 can be replaced with " Application 1 - App Store 2" to ensure that the current channel information of the application 1 (ie, the application store 2) can be read from the shared storage area of the terminal device. Or set the priority of the channel information of the application 1 (for example: in chronological order, the highest time priority is the highest), and the application store 2 writes the channel information (ie, the application store 2) into the shared storage area of the terminal device (eg, : Application 1 - Application Store 2), when the channel information of the application 1 is read from the shared storage area, the channel information of the application 1 is determined to be the application store 2 according to the priority. Of course, the channel information of the application 1 can also be determined in other ways.
不管是上述哪种应用场景,应用程序的安装包中不再携带渠道信 息,一个应用程序在App公共服务器中只有一个安装包。通过这种方式,一个应用程序的安装包只需要存储在App公共服务器上,渠道服务器上可以不存储应用程序的安装包,当一个应用程序通过多种渠道进行分发时,App的开发商就不需要为每个渠道制定一个新的App安装包,能够使得App开发商方便的管理和维护App,同时当有多个发行渠道的App发布平台能够公用一个App公共服务器,能够节省App发布平台的存储空间。Regardless of the above application scenario, the application package no longer carries the channel letter. Interest, an application has only one installation package in the App public server. In this way, the installation package of an application only needs to be stored on the App public server. The installation package of the application may not be stored on the channel server. When an application is distributed through multiple channels, the developer of the application does not. Need to develop a new app installation package for each channel, which enables App developers to easily manage and maintain the App. At the same time, when there are multiple distribution channels, the App publishing platform can share an App public server, which can save the storage of the App publishing platform. space.
本发明实施方式向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载应用程序安装包,安装所述应用程序;在所述终端设备的共享存储区中读取所述共享信息;将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。由于在终端设备的共享存储区中写入包含App的安装包来源的共享信息,使得在打包App时不需要将不同安装包来源打包进去,一个App只需要一个App包,共享信息能够在终端设备读取,通过这种方式,能够节省App发行平台的存储空间,并使App的开发商方便管理与维护App。The embodiment of the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, installs the application program; and reads the location in the shared storage area of the terminal device Sharing information; writing the shared information into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, it is not necessary to package different installation package sources when packaging the App, and an App only needs one App package, and the sharing information can be in the terminal device. Reading, in this way, the storage space of the App publishing platform can be saved, and the App developer can conveniently manage and maintain the App.
其中,在步骤S101之前,该方法还可以包括:加密共享信息。对共享信息加密,可以保证共享信息的安全性。Wherein, before step S101, the method may further include: encrypting the shared information. Encrypting shared information ensures the security of shared information.
其中,在步骤S101之前,该方法还可以包括:按照预设协议生成共享信息。此时,步骤S103在终端设备的共享存储区中读取共享信息后,需要按照预设协议解析共享信息。步骤S104具体可以是,将解析后的共享信息写入终端设备为应用程序分配的私有存储空间中。Before the step S101, the method may further include: generating the shared information according to the preset protocol. At this time, after the step S103 reads the shared information in the shared storage area of the terminal device, the shared information needs to be parsed according to a preset protocol. Step S104 may specifically be: writing the parsed shared information into a private storage space allocated by the terminal device for the application.
其中,在步骤S101之前,该方法还可以包括:在终端设备的内置或外置安全数字SD卡上创建共享存储区。共享存储区创建在终端设备的内置或外置SD卡上,能够直接方便地获得共享信息,且可以避免占用终端设备的内存。Wherein, before step S101, the method may further comprise: creating a shared storage area on the built-in or external secure digital SD card of the terminal device. The shared storage area is created on the built-in or external SD card of the terminal device, and the shared information can be obtained directly and conveniently, and the memory of the terminal device can be avoided.
其中,参见图3,该方法还可以包括:Wherein, referring to FIG. 3, the method may further include:
步骤S201:在向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息时,生成写入锁文件。通过这种方式,可以便于在写入共享信息完成之前,避免读取共享信息。即避免出现读写错误的问题, 从而实现信息的顺利共享。Step S201: When writing the sharing information including the source of the installation package of the application to the shared storage area of the terminal device, a write lock file is generated. In this way, it is convenient to avoid reading the shared information before writing the shared information is completed. That is to avoid the problem of reading and writing errors, Thereby achieving a smooth sharing of information.
步骤S202:当向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息完成后,删除写入锁文件。通过这种方式,可以便于在写入共享信息完成之后,能够读取共享信息。Step S202: After the sharing information of the installation package source including the application is written to the shared storage area of the terminal device, the write lock file is deleted. In this way, it is convenient to be able to read the shared information after the writing of the shared information is completed.
为了避免多个同时写入和读取操作,导致数据失真,可以生成一个“写入锁文件”,在读取共享信息时,如果发现有该“写入锁文件”,则说明有其他应用程序正在写入,则等待该应用程序写入完成后再进行读取。In order to avoid multiple simultaneous write and read operations, resulting in data distortion, a "write lock file" can be generated. If the "write lock file" is found when reading the shared information, there are other applications. Writing is in progress, waiting for the application to complete writing and then reading.
其中,预设协议包括数据格式协议和加密协议。例如,为保证共享信息的安全和保密,可以使用循环冗余校验码(CRC,Cyclic Redundancy Check)做完整性校验,使用M9或其他加密算法做共享信息的加密。数据格式采用读写操作方便的JavaScript对象表示法(JSON,JavaScript Object Notation)结构,写入的共享信息在终端设备的共享存储区中用键值对的方式进行存储,考虑数据的多样性和复杂性,可以按业务区分键值对,如:The preset protocol includes a data format protocol and an encryption protocol. For example, to ensure the security and confidentiality of shared information, a Cyclic Redundancy Check (CRC) can be used for integrity check, and M9 or other encryption algorithms can be used for encryption of shared information. The data format adopts a JavaScript object notation (JSON, JavaScript Object Notation) structure, and the shared information is stored in a shared storage area of the terminal device by means of key-value pairs, considering the diversity and complexity of the data. Sex, you can distinguish key-value pairs by business, such as:
Figure PCTCN2016079738-appb-000001
Figure PCTCN2016079738-appb-000001
下面以共享信息为渠道信息,默认信息为默认渠道信息为例来说明本发明信息共享的方法。The following uses the shared information as the channel information, and the default information is the default channel information as an example to illustrate the method for sharing the information of the present invention.
发行渠道(应用商店)提供App1的发行信息,App1安装包保存在 App公共服务器(图未示)中,且App1安装包不携带渠道信息,只携带一个默认渠道信息,发行渠道(应用商店)将自己的渠道信息1作为共享信息写入终端设备(比如手机)的共享存储区中,当用户从发行渠道(应用商店)点击下载App1的安装包时,应用商店将下载地址转到App公共服务器,使用户从App公共服务器下载App1的安装包,当携带有默认渠道信息的App1安装包在下载安装(例如:下载后安装在私有存储区)后,App1去共享存储区中读取共享信息,获得渠道信息1,并将该渠道信息1写入终端设备为该App1分配的私有存储空间中,从而完成信息共享的目的。The distribution channel (app store) provides the release information of App1, and the App1 installation package is saved in App public server (not shown), and the App1 installation package does not carry channel information, only carries a default channel information, and the distribution channel (app store) writes its channel information 1 as shared information to the terminal device (such as a mobile phone). In the shared storage area, when the user clicks to download the installation package of App1 from the distribution channel (app store), the application store transfers the download address to the App public server, so that the user downloads the installation package of App1 from the App public server, when carrying the default channel. After the App1 installation package of the information is downloaded and installed (for example, after being downloaded and installed in the private storage area), App1 goes to the shared storage area to read the shared information, obtains the channel information 1, and writes the channel information 1 to the terminal device as the App1. Allocate private storage space to complete the purpose of information sharing.
上述发行渠道(应用商店)共享渠道信息的流程可以参见图6。需要说明的是,图6中的步骤和步骤之间的顺序仅仅只是一个具体的实施方式,在实际应用中,根据具体情况可以增减步骤或调整步骤的顺序,在此不作限制。The flow of sharing channel information by the above distribution channel (app store) can be seen in Figure 6. It should be noted that the sequence between the steps and the steps in FIG. 6 is only a specific implementation manner. In actual applications, the order of steps or adjustment steps may be increased or decreased according to specific situations, and is not limited herein.
第一步:终端设备(比如手机)在发行渠道中下载App1安装包,发行渠道将下载地址转接到App公共服务器上,在App公共服务器上,该App1安装包没有携带渠道信息,只是携带默认渠道信息。The first step: the terminal device (such as a mobile phone) downloads the App1 installation package in the distribution channel, and the distribution channel transfers the download address to the App public server. On the App public server, the App1 installation package does not carry the channel information, but only carries the default. Channel information.
第二步:下载安装完成。The second step: download and installation is complete.
第三步:将渠道信息加密作为共享信息写入终端设备的共享存储区中。The third step: encrypting the channel information as shared information is written into the shared storage area of the terminal device.
第四步:App1从共享存储区中读取并解密渠道信息,如果成功解密,进入第五步,如果解密没有成功,进入第六步。Step 4: App1 reads and decrypts the channel information from the shared storage area. If it is successfully decrypted, it enters the fifth step. If the decryption is not successful, it enters the sixth step.
第五步:在读取并解密成功后,App1从共享存储区获取渠道信息,并将共享信息写入终端设备为App1分配的私有存储空间中。Step 5: After the read and decryption succeeds, App1 obtains the channel information from the shared storage area, and writes the shared information into the private storage space allocated by the terminal device for App1.
第六步:在读取并解密失败后,App1读取自身携带的默认渠道信息。Step 6: After the read and decryption fails, App1 reads the default channel information carried by itself.
通过上述方式,由于App公共服务器上的App不携带渠道信息,不管有多少个发行渠道,只需要打一个App安装包即可,当从不同的发行渠道下载App安装包时,均转接到App公共服务器上进行下载,这一方面能够节省App发行平台的存储空间,另一方面使App的开发商方便管 理与维护App。In the above manner, since the App on the App public server does not carry the channel information, no matter how many distribution channels, only one App install package can be used. When the App install package is downloaded from different distribution channels, the App is transferred to the App. Downloading on a public server can save storage space on the App publishing platform, and on the other hand make it easy for App developers. Manage and maintain the app.
在实际应用中,当有多个发行渠道时,一般有两种情况,一种是:从不同的发行渠道下载不同的App;另一种情况是:从不同的发行渠道下载相同的App,这两种发行渠道App共享渠道信息的流程。请参见图7,以发行渠道包括活动页面渠道和应用商店渠道为例进行说明,App1和App2保存在App公共服务器中,在App公共服务器上,该App1安装包和App2安装包没有携带渠道信息,只是携带默认渠道信息,假设App下载后均安装在终端设备为App分配的私有存储区中。In practical applications, when there are multiple distribution channels, there are generally two situations, one is: downloading different apps from different distribution channels; the other is: downloading the same app from different distribution channels, this The process of sharing channel information between two distribution channel apps. Referring to FIG. 7 , the distribution channel includes an activity page channel and an application store channel as an example. App1 and App2 are saved in the App public server. On the App public server, the App1 installation package and the App2 installation package do not carry channel information. It only carries the default channel information. It is assumed that the App is installed in the private storage area allocated by the terminal device for the App.
用户通过活动页面渠道下载App1安装包,具体内容包括:The user downloads the App1 installation package through the activity page channel, and the specific contents include:
(1)用户通过活动页面渠道下载App1安装包时,活动页面渠道将下载地址转接到App公共服务器中,使用户实际上从App公共服务器下载。(1) When the user downloads the App1 installation package through the activity page channel, the activity page channel transfers the download address to the App public server, so that the user actually downloads from the App public server.
(2)下载完成并安装App1。(2) Download completed and install App1.
(3)活动页面渠道将渠道信息写入终端设备的共享存储区中(例如:App1-活动页面)。(3) The activity page channel writes the channel information into the shared storage area of the terminal device (for example: App1-activity page).
(4)App1从共享存储区中读取渠道信息为活动页面。(4) App1 reads the channel information from the shared storage area as the active page.
(5)App1将渠道信息(活动页面)写入终端设备为App1分配的私有存储空间中。(5) App1 writes the channel information (activity page) into the private storage space allocated by the terminal device for App1.
用户通过应用商店渠道下载App2安装包,具体内容包括:Users download the App2 installation package through the app store channel, including:
(a)用户通过应用商店渠道下载App2安装包时,应用商店渠道将下载地址转接到App公共服务器中,使用户实际上从App公共服务器下载。(a) When the user downloads the App2 installation package through the application store channel, the application store channel transfers the download address to the App public server, so that the user actually downloads from the App public server.
(b)下载完成并安装App2。(b) Download completed and install App2.
(c)应用商店渠道将渠道信息写入终端设备的共享存储区中(例如:App2-应用商店)。(c) The app store channel writes the channel information into the shared storage area of the terminal device (for example: App2-App Store).
(d)App2从共享存储区中读取渠道信息为应用商店。(d) App2 reads the channel information from the shared storage area as an application store.
(e)App2将渠道信息(应用商店)写入终端设备为App2分配的私有存储空间中。(e) App2 writes the channel information (app store) into the private storage space allocated by the terminal device for App2.
用户通过应用商店渠道下载App1安装包,且在终端设备上用户已 经通过活动页面渠道下载并安装过App1安装包,具体内容包括:The user downloads the App1 installation package through the app store channel, and the user has already been on the terminal device. The App1 installation package has been downloaded and installed through the activity page channel, including:
(A)用户通过应用商店渠道下载App1安装包时,应用商店渠道将下载地址转接到App公共服务器中,使用户实际上从App公共服务器下载。(A) When the user downloads the App1 installation package through the application store channel, the application store channel transfers the download address to the App public server, so that the user actually downloads from the App public server.
(B)下载完成并安装App1,同时替换之前已经下载且安装的App1。(B) Download and install App1, and replace App1 that was previously downloaded and installed.
(C)在应用商店渠道App将渠道信息写入终端设备的共享存储区中时,若发现共享存储区存在共享信息App1-活动页面,则按照预先设置的优先级,将时间最接近的渠道信息写入共享存储区中,将共享信息App1-活动页面替换掉,写入App1-应用商店。(C) When the application store channel App writes the channel information into the shared storage area of the terminal device, if it is found that the shared storage area has the shared information App1-active page, the channel information with the closest time is set according to the preset priority. Write to the shared storage area, replace the shared information App1-active page, and write to App1-App Store.
(D)App1从共享存储区中读取渠道信息为应用商店。(D) App1 reads the channel information from the shared storage area as an application store.
(E)App1将应用商店渠道写入终端设备为App1分配的私有存储空间中。(E) App1 writes the app store channel into the private storage space allocated by the terminal device for App1.
在实际应用中,对于多个发行渠道在共享信息时,当发行渠道的渠道信息写入时,可以进行优先级别的判断,优先级可以根据实际情况需要预先设定,优先级别高的发行渠道的渠道信息优先写入共享存储区中,从而可以确保正确的共享信息写入共享存储区中。In the actual application, when sharing information in multiple distribution channels, when the channel information of the distribution channel is written, the priority level can be judged, and the priority can be preset according to the actual situation, and the distribution channel with high priority is required. Channel information is preferentially written to the shared storage area to ensure that the correct shared information is written to the shared storage area.
通过上述方式,由于App公共服务器上的App不携带渠道信息,不管有多少个发行渠道,只需要打一个App安装包即可,当从不同的发行渠道下载App安装包时,均转接到App公共服务器上进行下载,这一方面能够节省App发行平台的存储空间,另一方面使App的开发商方便管理与维护App。In the above manner, since the App on the App public server does not carry the channel information, no matter how many distribution channels, only one App install package can be used. When the App install package is downloaded from different distribution channels, the App is transferred to the App. Downloading on a public server can save storage space on the App publishing platform, and on the other hand make it easy for App developers to manage and maintain the app.
另外,以一个具体的例子说明本发明的优点及价值:In addition, the advantages and values of the present invention are illustrated by a specific example:
在使用本发明方案以前,假设有100个不同的App,分别在门户网站入口、活动页面入口、其它应用市场等300个发行渠道进行发行,使用本发明之前的现有技术的方案,需要打30000(100×300)个对应的包含发行渠道信息的安装包。使用本发明方案优化后,约60%左右的发行渠道已经支持渠道信息共享的方案,还剩下约40%左右的发行渠道还没完全采用本发明方案,这40%的发行渠道(即120个发行渠道)需要按本发明之前的现有技术的方案进行打包,需要打12100个左右(即 100+120×100)对应的包含发行渠道信息的安装包,来发行这这些App,很明显,在60%左右的发行渠道已经支持渠道信息共享的方案的情况下,从App安装包数量、App发行平台占用空间和App的开发商维护成本看,均节约了60%,本发明信息共享方案的效果是相当明显的。Before using the solution of the present invention, it is assumed that there are 100 different apps, which are distributed in 300 distribution channels such as portal portal, activity page portal, and other application markets, and the prior art scheme of the present invention needs to be used for 30,000. (100 × 300) corresponding installation packages containing distribution channel information. After optimization using the solution of the present invention, about 60% of the distribution channels have already supported the channel information sharing scheme, and about 40% of the distribution channels have not fully adopted the solution of the present invention, and 40% of the distribution channels (ie, 120) The distribution channel needs to be packaged according to the prior art scheme before the present invention, and it needs to be played about 12100 (ie, 100+120×100) corresponding to the installation package containing the distribution channel information, to issue these apps, it is obvious that in the case that about 60% of the distribution channels have already supported the channel information sharing scheme, the number of packages installed from the App, App The cost of the distribution platform and the maintenance cost of the developer of the App are both reduced by 60%. The effect of the information sharing scheme of the present invention is quite obvious.
参阅图8,图8是本发明信息共享的装置一实施方式的结构示意图,该装置应用于终端设备中,所述终端设备可以是手机、平板电脑等,该装置可以执行上述的方法流程。该装置包括:第一写入模块101、下载安装模块102、读取模块103以及第二写入模块104。Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an apparatus for information sharing according to the present invention. The apparatus is applied to a terminal device, and the terminal device may be a mobile phone, a tablet computer, or the like, and the device may perform the foregoing method flow. The device includes a first writing module 101, a download and installation module 102, a reading module 103, and a second writing module 104.
第一写入模块101用于向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息。The first writing module 101 is configured to write the sharing information including the installation package source of the application to the shared storage area of the terminal device.
共享存储区是在终端设备上专门创建的用来存储共享信息的存储区。应用程序的安装包来源是指该应用程序是从哪里下载来的,或者是应用程序安装包的推广渠道信息。例如,应用程序的安装包来源是应用商店、网页广告入口、手机预装等等。A shared storage area is a storage area specially created on a terminal device for storing shared information. The source of the application's installation package refers to where the application was downloaded, or the promotion channel information of the application installation package. For example, the application's installation package source is the app store, web ad portal, mobile phone pre-installation, and more.
下载安装模块102用于下载应用程序安装包,安装应用程序。The download installation module 102 is used to download an application installation package and install an application.
读取模块103用于在终端设备的共享存储区中读取共享信息。The reading module 103 is configured to read the shared information in the shared storage area of the terminal device.
在应用程序安装完成后,可以去终端设备的共享存储区中读取共享信息。After the application is installed, you can read the shared information in the shared storage area of the terminal device.
第二写入模块104用于将共享信息写入终端设备为应用程序分配的私有存储空间中。The second write module 104 is configured to write the shared information into a private storage space allocated by the terminal device for the application.
当应用程序安装后,一般终端设备都有为该应用程序分配的私有存储空间(在个人计算机上可以是应用程序的安装目录,在移动终端上可以是分配给应用程序的存储空间),用于存放相关的文件。将共享信息写入私有存储空间,也不需要重新占用新的存储空间。When the application is installed, the general terminal device has a private storage space allocated for the application (on the personal computer, it can be the installation directory of the application, and on the mobile terminal, it can be the storage space allocated to the application), Store related files. Write shared information to private storage and eliminate the need to re-occupy new storage.
本发明实施方式向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;下载应用程序安装包,安装所述应用程序;在所述终端设备的共享存储区中读取所述共享信息;将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。由于在终端设备的共享存储区中写入包含App的安装包来源的共享信息,使得App在打包 App包时不需要将不同安装包来源打包进去,一个App只需要一个App包,共享信息能够在终端设备读取,通过这种方式,能够节省App发行平台的存储空间,并使App的开发商方便管理与维护App。The embodiment of the present invention writes the sharing information of the installation package source containing the application to the shared storage area of the terminal device; downloads the application installation package, installs the application program; and reads the location in the shared storage area of the terminal device Sharing information; writing the shared information into a private storage space allocated by the terminal device to the application. Since the sharing information of the installation package source containing the App is written in the shared storage area of the terminal device, the App is packaged. The App package does not need to package different installation package sources. An App only needs an App package, and the shared information can be read on the terminal device. In this way, the storage space of the App release platform can be saved, and the App developer can be saved. Easy to manage and maintain the app.
其中,该装置还包括:加密模块。The device further includes: an encryption module.
加密模块用于加密共享信息。对共享信息加密,可以保证共享信息的安全性。The encryption module is used to encrypt shared information. Encrypting shared information ensures the security of shared information.
其中,该装置还包括:生成模块和解析模块。The device further includes: a generating module and a parsing module.
生成模块用于按照预设协议生成共享信息。The generation module is used to generate shared information according to a preset protocol.
解析模块用于在终端设备共享存储区中读取共享信息后,按照预设协议解析共享信息。The parsing module is configured to parse the shared information according to a preset protocol after reading the shared information in the shared storage area of the terminal device.
此时,第二写入模块104还用于将解析后的共享信息写入终端设备为应用程序分配的私有存储空间中。At this time, the second writing module 104 is further configured to write the parsed shared information into a private storage space allocated by the terminal device for the application.
其中,该装置还包括:创建模块。Wherein, the device further comprises: creating a module.
创建模块用于在终端设备的内置或外置安全数字SD卡上创建共享存储区。共享存储区创建在终端设备的内置或外置SD卡上,能够直接方便地获得共享信息,且可以避免占用终端设备的内存。The creation module is used to create a shared storage area on the built-in or external secure digital SD card of the terminal device. The shared storage area is created on the built-in or external SD card of the terminal device, and the shared information can be obtained directly and conveniently, and the memory of the terminal device can be avoided.
其中,该装置还包括:生成模块和删除模块。The device further includes: a generating module and a deleting module.
生成模块用于在向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息时,生成写入锁文件。通过这种方式,可以便于在写入共享信息完成之前,避免读取共享信息。即避免出现读写错误的问题,从而实现信息的顺利共享。The generation module is configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device. In this way, it is convenient to avoid reading the shared information before writing the shared information is completed. That is to avoid the problem of reading and writing errors, so as to achieve smooth sharing of information.
删除模块用于当向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息完成后,删除写入锁文件。通过这种方式,可以便于在写入共享信息完成之后,能够读取共享信息。The delete module is used to delete the write lock file after the shared information including the source of the installation package of the application is written to the shared storage area of the terminal device. In this way, it is convenient to be able to read the shared information after the writing of the shared information is completed.
为了避免多个同时写入和读取操作,导致数据失真,可以生成一个“写入锁文件”,在读取共享信息时,如果发现有该“写入锁文件”,则说明有其他应用程序正在写入,则等待该应用程序写入完成后再进行读取。In order to avoid multiple simultaneous write and read operations, resulting in data distortion, a "write lock file" can be generated. If the "write lock file" is found when reading the shared information, there are other applications. Writing is in progress, waiting for the application to complete writing and then reading.
其中,预设协议包括数据格式协议和加密协议。 The preset protocol includes a data format protocol and an encryption protocol.
为保证共享信息的安全和保密,可以使用CRC做完整性校验,使用M9或其他加密算法做共享信息的加密。数据格式采用读写操作方便的JSON结构,写入的共享信息在共享存储区中用键值对的方式进行存储,考虑数据的多样性和复杂性,可以按业务区分键值对。To ensure the security and confidentiality of shared information, CRC can be used for integrity check, and M9 or other encryption algorithms are used for encryption of shared information. The data format adopts a JSON structure with convenient read and write operations. The shared information written is stored in a shared storage area by key-value pairs. Considering the diversity and complexity of the data, key-value pairs can be distinguished by service.
以上所述仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (19)

  1. 一种信息共享的方法,其特征在于,包括:A method for information sharing, comprising:
    向终端设备的共享存储区中写入包含应用程序的安装包来源的共享信息;Writing shared information containing the source of the installation package of the application to the shared storage area of the terminal device;
    下载应用程序安装包,安装所述应用程序;Download the application installation package and install the application;
    在所述终端设备的共享存储区中读取所述共享信息;Reading the shared information in a shared storage area of the terminal device;
    将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。The shared information is written into a private storage space allocated by the terminal device for the application.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    加密所述共享信息。Encrypt the shared information.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    按照预设协议生成所述共享信息;Generating the shared information according to a preset protocol;
    在所述终端设备的共享存储区中读取所述共享信息后,按照所述预设协议解析所述共享信息;After the shared information is read in the shared storage area of the terminal device, the shared information is parsed according to the preset protocol;
    将所述解析后的共享信息写入终端设备为所述应用程序分配的私有存储空间中。The parsed shared information is written into a private storage space allocated by the terminal device to the application.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在所述终端设备的内置或外置安全数字SD卡上创建所述共享存储区。The shared storage area is created on a built-in or external secure digital SD card of the terminal device.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    在向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息时,生成写入锁文件;Generating a write lock file when writing the shared information including the installation package source of the application to the shared storage area of the terminal device;
    当向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息完成后,删除所述写入锁文件。The write lock file is deleted when the shared information including the installation package source of the application is written to the shared storage area of the terminal device.
  6. 根据权利要求3所述的方法,其特征在于,所述预设协议包括数据格式协议和加密协议。The method of claim 3, wherein the predetermined protocol comprises a data format protocol and an encryption protocol.
  7. 一种信息共享的装置,其特征在于,所述装置包括:An apparatus for information sharing, characterized in that the apparatus comprises:
    第一写入模块,用于向终端设备的共享存储区中写入包含应用程序 的安装包来源的共享信息;a first writing module, configured to write an application including the application to a shared storage area of the terminal device Shared information from the source of the installation package;
    下载安装模块,用于下载应用程序安装包,安装所述应用程序;Download the installation module for downloading the application installation package and installing the application;
    读取模块,用于在所述终端设备的共享存储区中读取所述共享信息;a reading module, configured to read the shared information in a shared storage area of the terminal device;
    第二写入模块,用于将所述共享信息写入终端设备为所述应用程序分配的私有存储空间中。And a second writing module, configured to write the shared information into a private storage space allocated by the terminal device for the application.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    加密模块,用于加密所述共享信息。And an encryption module, configured to encrypt the shared information.
  9. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    生成模块,用于按照预设协议生成所述共享信息;a generating module, configured to generate the shared information according to a preset protocol;
    解析模块,用于在所述终端设备的共享存储区中读取所述共享信息后,按照所述预设协议解析所述共享信息;a parsing module, configured to parse the shared information according to the preset protocol after reading the shared information in a shared storage area of the terminal device;
    所述第二写入模块还用于将所述解析后的共享信息写入终端设备为所述应用程序分配的私有存储空间中。The second writing module is further configured to write the parsed shared information into a private storage space allocated by the terminal device to the application.
  10. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    创建模块,用于在所述终端设备的内置或外置安全数字SD卡上创建所述共享存储区。And a creating module, configured to create the shared storage area on a built-in or external secure digital SD card of the terminal device.
  11. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    生成模块,用于在向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息时,生成写入锁文件;a generating module, configured to generate a write lock file when writing the shared information including the source of the installation package of the application to the shared storage area of the terminal device;
    删除模块,用于当向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息完成后,删除所述写入锁文件。And a deleting module, configured to delete the write lock file after the sharing information of the installation package source including the application is completed in the shared storage area of the terminal device.
  12. 根据权利要求9所述的装置,其特征在于,所述预设协议包括数据格式协议和加密协议。The apparatus of claim 9, wherein the predetermined protocol comprises a data format protocol and an encryption protocol.
  13. 一种信息共享的方法,其特征在于:所述方法应用于相互之间进行通信连接的终端设备、发行渠道及软件公共服务器,A method for information sharing, characterized in that: the method is applied to a terminal device, a distribution channel and a software public server for communicating and connecting with each other,
    所述发行渠道向所述终端设备发送包含应用程序的安装包来源的共享信息;The issuance channel sends the sharing information including the source of the installation package of the application to the terminal device;
    所述终端设备接收所述共享信息,并将所述共享信息写入所述终端 设备的共享存储区;Receiving, by the terminal device, the shared information, and writing the shared information to the terminal Shared storage area of the device;
    所述终端设备响应应用软件的下载操作,向所述发行渠道发送应用软件下载请求;The terminal device sends an application software download request to the distribution channel in response to a download operation of the application software;
    所述发行渠道在接收到所述送应用软件下载请求后,建立所述终端设备与所述应用软件公共服务器之间的下载连接;After receiving the application downloading application request, the issuing channel establishes a download connection between the terminal device and the application software public server;
    所述终端设备从所述应用软件公共服务器中下载应用软件并对所述应用软件进行安装;The terminal device downloads application software from the application software public server and installs the application software;
    所述终端设备在对所述应用程序安装完成后,从所述共享区域中读取所述共享信息;After the terminal device finishes installing the application, the terminal device reads the shared information from the shared area;
    所述终端设备将所述共享信息写入所述终端设备为所述应用程序分配的私有存储空间中。The terminal device writes the shared information into a private storage space allocated by the terminal device for the application.
  14. 如权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13 wherein the method further comprises:
    所述终端设备对所述共享信息进行加密。The terminal device encrypts the shared information.
  15. 如权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13 wherein the method further comprises:
    所述终端设备按照预设协议生成所述共享信息;The terminal device generates the shared information according to a preset protocol;
    从所述共享存储区中读取所述共享信息后,按照所述预设协议解析所述共享信息;After the shared information is read from the shared storage area, the shared information is parsed according to the preset protocol;
    将所述解析后的共享信息写入终端设备为所述应用程序的私有存储空间中。The parsed shared information is written into the terminal device as a private storage space of the application.
  16. 如权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13 wherein the method further comprises:
    在所述终端设备的内置或外置安全数字SD卡上创建所述共享存储区。The shared storage area is created on a built-in or external secure digital SD card of the terminal device.
  17. 如权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13 wherein the method further comprises:
    所述终端设备在向共享存储区中写入包含所述应用程序的安装包来源的共享信息时,生成写入锁文件;The terminal device generates a write lock file when writing the shared information including the installation package source of the application to the shared storage area;
    当向所述终端设备的共享存储区中写入包含所述应用程序的安装包来源的共享信息完成后,删除所述写入锁文件。The write lock file is deleted when the shared information including the installation package source of the application is written to the shared storage area of the terminal device.
  18. 如权利要求15所述的方法,其特征在于:所述预设协议包括数据格式协议和加密协议。 The method of claim 15 wherein said predetermined protocol comprises a data format protocol and an encryption protocol.
  19. 一种具有处理器可执行的非易失的程序代码的计算机可读介质,其特征在于,所述程序代码使所述处理器执行所述权利要求1~6任意一项所述的方法。 A computer readable medium having a processor-executable non-volatile program code, wherein the program code causes the processor to perform the method of any one of claims 1 to 6.
PCT/CN2016/079738 2015-05-07 2016-04-20 Information sharing method and device WO2016177275A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510230396.3 2015-05-07
CN201510230396.3A CN106202118A (en) 2015-05-07 2015-05-07 The method and device of information sharing

Publications (1)

Publication Number Publication Date
WO2016177275A1 true WO2016177275A1 (en) 2016-11-10

Family

ID=57218039

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079738 WO2016177275A1 (en) 2015-05-07 2016-04-20 Information sharing method and device

Country Status (2)

Country Link
CN (1) CN106202118A (en)
WO (1) WO2016177275A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760306A (en) * 2020-10-26 2021-12-07 北京京东乾石科技有限公司 Method and device for installing software, electronic equipment and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110737563B (en) * 2018-07-19 2023-05-26 阿里巴巴集团控股有限公司 Application program information reporting and receiving method and device
CN110266762B (en) * 2019-05-20 2022-03-08 广州视琨电子科技有限公司 Data uploading method, system, device and storage medium
CN110830559B (en) * 2019-10-24 2022-08-09 北京城市网邻信息技术有限公司 Channel package automatic batch processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064666A (en) * 2012-11-30 2013-04-24 北京奇虎科技有限公司 Multi-channel method and system for issuing software
CN103246997A (en) * 2013-05-23 2013-08-14 北京微云即趣科技有限公司 Transmission method and system of application store channel mark
US20140379925A1 (en) * 2013-06-21 2014-12-25 Electronics And Telecommunications Research Institute Apparatus and method for interworking between app store servers to share application information
CN104346184A (en) * 2013-08-01 2015-02-11 中兴通讯股份有限公司 Application packaging device and application packaging method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102955703A (en) * 2011-08-25 2013-03-06 上海盛畅网络科技有限公司 Multichannel throwing method and multichannel throwing device for client-side installation packages of handheld equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064666A (en) * 2012-11-30 2013-04-24 北京奇虎科技有限公司 Multi-channel method and system for issuing software
CN103246997A (en) * 2013-05-23 2013-08-14 北京微云即趣科技有限公司 Transmission method and system of application store channel mark
US20140379925A1 (en) * 2013-06-21 2014-12-25 Electronics And Telecommunications Research Institute Apparatus and method for interworking between app store servers to share application information
CN104346184A (en) * 2013-08-01 2015-02-11 中兴通讯股份有限公司 Application packaging device and application packaging method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760306A (en) * 2020-10-26 2021-12-07 北京京东乾石科技有限公司 Method and device for installing software, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106202118A (en) 2016-12-07

Similar Documents

Publication Publication Date Title
AU2013312865B2 (en) Generating native code from intermediate language code for an application
CN104756076B (en) Configuration file renovator
US9509500B2 (en) Method and apparatus for migrating encrypted data
CN111279320A (en) API repository implementing microservice configuration and management
US20200412644A1 (en) Content based routing method and apparatus
CN111159614B (en) Webpage resource acquisition method and device
JP6538610B2 (en) Security device for indirect access to external nonvolatile memory
WO2019201039A1 (en) Method and system for updating application and application server
JP2018530041A (en) System and method for application code obfuscation
WO2016177275A1 (en) Information sharing method and device
US10255089B2 (en) Self-deleting virtual machines
CN105122203A (en) Storage device assisted inline encryption and decryption
CN111201553B (en) Safety element and related equipment
US20180067777A1 (en) Application protection method, server, and terminal
US10908971B1 (en) Method and system for generating a customizable connector
CN113391796B (en) Construction method, device, equipment and medium of integrated development environment
US20160057113A1 (en) Encryption method and information processing device
US20110161145A1 (en) Method and device for securely displaying digital content on a computing device
WO2018223831A1 (en) Se application processing method, user terminal, and server
KR102147026B1 (en) Application download method and device
CN110928571A (en) Business program development method and device
WO2019062015A1 (en) Source code protection method, application server, and computer-readable storage medium
JP2018527664A (en) System and method for protecting code in an application
CN110753020A (en) Network request processing method and device
WO2016201853A1 (en) Method, device and server for realizing encryption/decryption function

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16789269

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16789269

Country of ref document: EP

Kind code of ref document: A1