CN111124432A - APK (android Package) oriented information storage method and device - Google Patents
APK (android Package) oriented information storage method and device Download PDFInfo
- Publication number
- CN111124432A CN111124432A CN201811284769.5A CN201811284769A CN111124432A CN 111124432 A CN111124432 A CN 111124432A CN 201811284769 A CN201811284769 A CN 201811284769A CN 111124432 A CN111124432 A CN 111124432A
- Authority
- CN
- China
- Prior art keywords
- apk
- excel
- function
- service
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
Abstract
The application provides a method and a device for storing APK information, wherein the method comprises the following steps: the private network terminal records the support situation of the APK to realize the function of the related service aiming at the installed APK through excel; when the private network terminal is started, initializing the information recorded in the excel into an android self-contained database. The method is easy to obtain the support condition of the APK to the service related function, and when the function support condition changes, only the corresponding excel needs to be modified.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for storing information of an Android Package (APK).
Background
At present, there are multiple private network terminals in the industry. The main classification is three main categories: the large-screen terminal is provided with a touch screen, and the large-screen terminal and the small-screen terminal are similar to Android smart phones on the market at present, have keys, are similar to function machines, and are provided with an Android system and a transverse screen terminal, such as a vehicle-mounted terminal and an Android system. The Android versions of the three types of terminals are also different: android4.4 to android 8.0.
Because the life cycle of each terminal is long (some have been more than 4 years), some terminals are newer. The functions supported by the terminals are also different. Such as:
the large screen terminal: EP820 does not support H265 decoding, EP720 supports H265 decoding;
the small screen terminal: EP681 does not support the public network mode and does not support the public network short multimedia message, and EP682 supports the public network mode and supports the public network short multimedia message.
The private network terminal only has individual interfaces capable of supporting function acquisition, and most of the terminals do not support the function acquisition; the differentiation of functions can only be distinguished by judging the type of the terminal.
The special network terminal has different functions from hardware to software due to the form difference of a large screen, a small screen and a transverse screen, the Android version difference and marketing competition reasons. In order to adapt to various terminal types, the TAPP must determine the functions supported by the corresponding terminal according to the terminal type.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for storing APK information, which are easy to obtain the support condition of the APK on the service-related function, and only need to modify the corresponding excel when the function support condition changes.
In order to solve the technical problem, the technical scheme of the application is realized as follows:
a method of storing information for an APK, the method comprising:
the private network terminal records the support situation of the APK to realize the function of the related service aiming at the installed APK through excel;
when the private network terminal is started, initializing the information recorded in the excel into an android self-contained database.
An apparatus for storing APK information, which is applied to a private network terminal, the apparatus comprising: a recording unit and an initialization unit;
the recording unit is used for recording the support condition of the APK to realize the function of the relevant service by the excel aiming at the installed APK by the private network terminal where the unit is located;
and the initialization unit is used for initializing the information recorded in the excel into an android self-contained database when the private network where the unit is located is started.
According to the technical scheme, the support condition of the APK on the service related function is recorded through excel in the application; when the private network terminal is started, initializing the information recorded in the excel into a self-contained android database; the model of the private network terminal is not used for representing the support condition of the function of realizing the relevant service corresponding to the APK, and the excel is used for recording and initializing the support condition into the android database. The scheme is easy to obtain the support condition of the APK to the service related function, and when the function support condition changes, only the corresponding excel needs to be modified.
Drawings
Fig. 1 is a schematic diagram illustrating a storage process of APK information in the present application example;
fig. 2 is a schematic flowchart illustrating a process of initializing information recorded in excel into a database in the embodiment of the present application;
fig. 3 is a schematic diagram of a service implementation process in the embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus applied to the above-described technology in the embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the technical solutions of the present invention are described in detail below with reference to the accompanying drawings and examples.
The embodiment of the application provides a method for storing APK information, which records the support condition of the APK on service related functions through excel; when the private network terminal is started, initializing the information recorded in the excel into a self-contained android database; the model of the private network terminal is not used for representing the support condition of the function of realizing the relevant service corresponding to the APK, and the excel is used for recording and initializing the support condition into the android database. The scheme is easy to obtain the support condition of the APK to the service related function, and when the function support condition changes, the corresponding excel is modified.
The storage process of the information for the APK in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic view illustrating a storage flow of information for an APK in the present embodiment. The method comprises the following specific steps:
and step 101, recording the support situation of the function of realizing the relevant service of the APK by the private network terminal through excel aiming at the installed APK.
Referring to table 1, table 1 shows contents included in an excel corresponding to an APK on a private network terminal provided in an embodiment of the present application.
TABLE 1
In table 1, DataBaseVersion represents the version of excel, UEType represents the type of the private network terminal, BusinessType represents the name of the function, Capability represents the support of the function, such as using 0 to represent support, and 1 to represent non-support, but not limited to this implementation; remarks represents the annotation to the corresponding function, Mandatory represents an indication of whether or not to enforce the use of the function in the database, e.g., 0 represents no Mandatory use, and 1 represents Mandatory use.
And 102, initializing the information recorded in the excel into an android self-contained database when the private network terminal is started.
The information recorded in excel is the support situation of the function of realizing the relevant service aiming at the APKAPK.
The support condition of the function of realizing the relevant service for the APK is stored through the excel and is initialized to the android self-contained database, the support condition of the function of realizing the relevant service for the APK can be conveniently obtained, and the support condition of the function of realizing the relevant service by modifying the APK through the excel is more convenient.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a process of initializing information recorded in excel into a database according to an embodiment of the present application. The method comprises the following specific steps:
And step 204, initializing the information recorded in the currently stored excel into an android self-contained database, and ending the process.
And step 205, keeping the information recorded in the initialized excel in the android self-contained database.
In the implementation of the embodiment of the application, the information recorded in the excel corresponding to the APK does not need to be initialized every time the excel is started, and the initialization is not needed as long as the excel is not updated, that is, the version is not changed.
In the embodiment of the application, when the support situation of the function of realizing the relevant service for any APK changes, the APK is modified in the corresponding excel, and the version number of the excel is increased.
When the version number of the excel is increased, that is, the information recorded in the excel is changed, which is to say, the changed excel needs to be initialized, so that the data corresponding to the initialized excel is covered; in the specific implementation of the present application, the database may also be directly initialized after the excel is modified, so as to update the data in time.
When excel is generated for the first time, namely, initialization is not performed in the database, the excel generated for the first time needs to be directly initialized.
Through the implementation of the embodiment, when the method is specifically implemented, the function support situation relevant to the APK can be modified by modifying the excel, and the function support situation is updated to the database in time, so that the relevant functions can be obtained in time to process the service.
Therefore, data do not need to be acquired from excel every time, and the data can be directly acquired from the android self-contained database.
Referring to fig. 3, fig. 3 is a schematic diagram of a service implementation process in the embodiment of the present application. The method comprises the following specific steps:
In the embodiment of the application, the condition of the service implementation function supported by the platform storage of the private network terminal is the condition of the service implementation function supported by the APK initialized in the android database for the whole private network terminal.
And 304, when the APK is determined not to support the function of realizing the service and the indication is not mandatory, realizing the service by using the function supported by the platform, and ending the process.
And 305, when the APK is determined not to support the function of realizing the service and indicates that the APK is used forcibly, the service cannot be processed.
Based on the same inventive concept, the application also provides a storage device for the APK information, which is applied to the private network terminal. Referring to fig. 4, fig. 4 is a schematic structural diagram of an apparatus applied to the above technology in the embodiment of the present application. The device includes: a recording unit 401 and an initialization unit 402;
the recording unit 401 is used for recording the support condition of the APK to realize the function of the related service by the excel for the installed APK by the private network terminal where the unit is located;
and the initializing unit 402 is used for initializing the information recorded in the excel into an android self-contained database when the private network where the unit is located is started.
Preferably, the apparatus further comprises: a determination unit 403;
the determining unit 403 is further configured to determine whether information recorded in excel is initialized in a database of the android device when the private network terminal is started; when determining the information recorded in the initialized excel in the android self-contained database, determining whether the version number of the excel stored for the APK is larger than the version number of the initialized excel,
the initializing unit 402 is further configured to initialize the information recorded in the currently stored excel into the android self-contained database when the determining unit 403 determines that the version number of the excel stored for the APK is greater than the version number of the initialized excel; otherwise, keeping the information recorded in the initialized excel in the android self-contained database; when the determining unit 403 determines that the information recorded in the excel is not initialized in the android self-contained database, the information recorded in the currently stored excel is initialized in the android self-contained database.
Preferably, the apparatus further comprises: an acquisition unit 404 and a processing unit 405;
a recording unit 401, further configured to add, in the excel, an indication of whether to enforce use of the function in the database for any function;
an obtaining unit 404, configured to, when an APK is used to implement any service, obtain, in an android database, a support condition of a function that needs to implement the service, and an indication of whether to forcibly use the function in the database;
a determining unit 403, further configured to determine whether the APK supports a function of implementing the service according to the information acquired by the acquiring unit 404; whether the indication of the corresponding function is a mandatory use;
a processing unit 405, configured to, when the determining unit 403 determines that the APK supports a function of implementing the service and indicates that the APK is mandatory, implement the service using the function supported by the APK; when determining unit 403 determines that the APK supports the function of implementing the service and indicates that it is not mandatory to use the function in the database, it determines whether the platform of the private network terminal supports the function of implementing the service, and if so, implements the service using the function supported by the platform; otherwise, the service is realized by using the function supported by the APK.
Preferably, the first and second liquid crystal films are made of a polymer,
the processing unit 405 is further configured to, when the determining unit 403 determines that the APK does not support the function of implementing the service and indicates that the APK is not mandatory, implement the service using a function supported by a platform; when the determining unit 403 determines that the APK does not support the function of implementing the service and indicates forced use, the service cannot be processed.
Preferably, the first and second liquid crystal films are made of a polymer,
the recording unit 401 is further configured to modify the APK in the corresponding excel and increase the version number of the excel when a support situation of the APK for implementing the function of the related service changes.
The units of the above embodiments may be integrated into one body, or may be separately deployed; may be combined into one unit or further divided into a plurality of sub-units.
In summary, the application records the support situation of the APK to the service related function through excel; when the private network terminal is started, initializing the information recorded in the excel into a self-contained android database; the model of the private network terminal is not used for representing the support condition of the function of realizing the relevant service corresponding to the APK, and the excel is used for recording and initializing the support condition into the android database. The scheme is easy to obtain the support condition of the APK to the service related function, and when the function support condition changes, only the corresponding excel needs to be modified.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (10)
1. A method for storing information for an APK, the method comprising:
the private network terminal records the support situation of the APK to realize the function of the related service aiming at the installed APK through excel;
when the private network terminal is started, initializing the information recorded in the excel into an android self-contained database.
2. The method according to claim 1, wherein at the time of starting, before initializing the information recorded in the excel into an android self-contained database, the method further comprises:
determining whether the information recorded in excel is initialized in a self-contained database of the android;
when the information recorded in the initialized excel in the android self-contained database is determined, determining whether the version number of the excel stored aiming at the APK is larger than the version number of the initialized excel, and if so, initializing the information recorded in the currently stored excel into the android self-contained database; otherwise, keeping the information recorded in the initialized excel in the android self-contained database;
when the information recorded in the uninitialized excel in the android self-contained database is determined, initializing the information recorded in the currently stored excel into the android self-contained database.
3. The method of claim 1, further comprising: adding an indication in the excel of whether to enforce use of the functions in the database for any function;
when any service is realized by using the APK, acquiring the support condition of the function of the service needing to be realized and an indication of whether to forcibly use the function in the database from the android database;
when determining that the APK supports the function of realizing the service and indicates that the APK is used forcibly, realizing the service by using the function supported by the APK;
when determining that the APK supports the function of realizing the service and indicates that the function in the database is not used forcibly, determining whether the platform of the private network terminal supports the function of realizing the service, if so, realizing the service by using the function supported by the platform; otherwise, the service is realized by using the function supported by the APK.
4. The method of claim 3, further comprising:
when determining that the APK does not support the function of realizing the service and indicates that the APK is not used forcibly, realizing the service by using the function supported by a platform;
and when the APK is determined not to support the function of realizing the service and indicates that the APK is used forcibly, the service cannot be processed.
5. The method according to any one of claims 1-4, wherein the method further comprises:
and when the support situation of the function of realizing the relevant service aiming at the APK changes, modifying in the excel corresponding to the APK, and increasing the version number of the excel.
6. An apparatus for storing APK information, applied to a private network terminal, the apparatus comprising: a recording unit and an initialization unit;
the recording unit is used for recording the support condition of the APK to realize the function of the relevant service by the excel aiming at the installed APK by the private network terminal where the unit is located;
and the initialization unit is used for initializing the information recorded in the excel into an android self-contained database when the private network where the unit is located is started.
7. The apparatus of claim 6, further comprising: a determination unit;
the determining unit is further used for determining whether the information recorded in the excel is initialized in a database of the android self-contained device when the private network terminal is started; when determining the information recorded in the initialized excel in the android self-contained database, determining whether the version number of the excel stored for the APK is larger than the version number of the initialized excel,
the initialization unit is further configured to initialize the information recorded in the currently stored excel to the android self-contained database when the determination unit determines that the version number of the excel stored for the APK is greater than the version number of the initialized excel; otherwise, keeping the information recorded in the initialized excel in the android self-contained database; and when the determining unit determines that the information recorded in the uninitialized excel in the android self-contained database, initializing the information recorded in the currently stored excel into the android self-contained database.
8. The apparatus of claim 6, further comprising: an acquisition unit and a processing unit;
the recording unit is further used for adding an indication whether to enforce the use of the functions in the database for any function in the excel;
the obtaining unit is used for obtaining the support condition of the function of the service needing to be realized and the instruction of whether to forcibly use the function in the database from the android database when the APK is used for realizing any service;
the determining unit is further configured to determine whether the APK supports a function of implementing the service according to the information acquired by the acquiring unit; whether the indication of the corresponding function is a mandatory use;
the processing unit is configured to, when the determining unit determines that the APK supports the function of implementing the service and indicates that the APK is forcibly used, implement the service using the function supported by the APK; when the determining unit determines that the APK supports the function of realizing the service and indicates that the function in the database is not used forcibly, determining whether the platform of the private network terminal supports the function of realizing the service, if so, realizing the service by using the function supported by the platform; otherwise, the service is realized by using the function supported by the APK.
9. The apparatus of claim 8,
the processing unit is further configured to implement the service using a function supported by a platform when the determining unit determines that the APK does not support the function of implementing the service and indicates that the APK is not mandatory; and when the determining unit determines that the APK does not support the function of realizing the service and indicates that the APK is used forcibly, the service cannot be processed.
10. The apparatus according to any one of claims 6 to 9,
the recording unit is further configured to modify the APK in the corresponding excel and increase the version number of the excel when the support situation of the function of implementing the relevant service for the APK changes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811284769.5A CN111124432B (en) | 2018-10-31 | 2018-10-31 | Method and device for storing APK-oriented information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811284769.5A CN111124432B (en) | 2018-10-31 | 2018-10-31 | Method and device for storing APK-oriented information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111124432A true CN111124432A (en) | 2020-05-08 |
CN111124432B CN111124432B (en) | 2023-10-20 |
Family
ID=70485419
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811284769.5A Active CN111124432B (en) | 2018-10-31 | 2018-10-31 | Method and device for storing APK-oriented information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111124432B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035016A (en) * | 2007-02-08 | 2007-09-12 | 中兴通讯股份有限公司 | Terminal equipment configuration system and method |
DE102007002617A1 (en) * | 2007-01-12 | 2008-09-04 | Thinprint Gmbh | Method and arrangement for the management of data, and a corresponding computer program and a corresponding computer-readable storage medium |
CN101566943A (en) * | 2008-04-24 | 2009-10-28 | 深圳市同洲电子股份有限公司 | Method, terminal and system for controlling terminal software functions |
WO2010000192A1 (en) * | 2008-06-30 | 2010-01-07 | 腾讯科技(深圳)有限公司 | Method, system and server for representing the functions of an application |
CN102711272A (en) * | 2012-06-08 | 2012-10-03 | 海能达通信股份有限公司 | Data transmission method and device for private network communication |
US20140298316A1 (en) * | 2013-03-29 | 2014-10-02 | Wistron Corporation | Managing method for application program installation and electronic device |
CN105308941A (en) * | 2014-05-16 | 2016-02-03 | 华为技术有限公司 | Method and apparatus for resource configuration |
CN105511902A (en) * | 2015-11-09 | 2016-04-20 | Tcl集团股份有限公司 | Android platform module dynamic loading method and system |
CN106446019A (en) * | 2016-08-27 | 2017-02-22 | 南京安元科技有限公司 | Software function processing method and device |
CN106598672A (en) * | 2016-12-16 | 2017-04-26 | 广东美晨通讯有限公司 | Application configuration method and apparatus |
CN106970805A (en) * | 2016-01-14 | 2017-07-21 | 平安科技(深圳)有限公司 | Function configuration method and system |
CN108617034A (en) * | 2016-12-30 | 2018-10-02 | 华为技术有限公司 | Connected state control method, equipment and the system of terminal |
-
2018
- 2018-10-31 CN CN201811284769.5A patent/CN111124432B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102007002617A1 (en) * | 2007-01-12 | 2008-09-04 | Thinprint Gmbh | Method and arrangement for the management of data, and a corresponding computer program and a corresponding computer-readable storage medium |
CN101035016A (en) * | 2007-02-08 | 2007-09-12 | 中兴通讯股份有限公司 | Terminal equipment configuration system and method |
CN101566943A (en) * | 2008-04-24 | 2009-10-28 | 深圳市同洲电子股份有限公司 | Method, terminal and system for controlling terminal software functions |
WO2010000192A1 (en) * | 2008-06-30 | 2010-01-07 | 腾讯科技(深圳)有限公司 | Method, system and server for representing the functions of an application |
CN102711272A (en) * | 2012-06-08 | 2012-10-03 | 海能达通信股份有限公司 | Data transmission method and device for private network communication |
US20140298316A1 (en) * | 2013-03-29 | 2014-10-02 | Wistron Corporation | Managing method for application program installation and electronic device |
CN105308941A (en) * | 2014-05-16 | 2016-02-03 | 华为技术有限公司 | Method and apparatus for resource configuration |
CN105511902A (en) * | 2015-11-09 | 2016-04-20 | Tcl集团股份有限公司 | Android platform module dynamic loading method and system |
CN106970805A (en) * | 2016-01-14 | 2017-07-21 | 平安科技(深圳)有限公司 | Function configuration method and system |
CN106446019A (en) * | 2016-08-27 | 2017-02-22 | 南京安元科技有限公司 | Software function processing method and device |
CN106598672A (en) * | 2016-12-16 | 2017-04-26 | 广东美晨通讯有限公司 | Application configuration method and apparatus |
CN108617034A (en) * | 2016-12-30 | 2018-10-02 | 华为技术有限公司 | Connected state control method, equipment and the system of terminal |
Non-Patent Citations (2)
Title |
---|
刘雍 等: "Android平台下通用SQLite数据库模型的设计与实现", 《电脑编程技巧与维护》, pages 41 - 42 * |
碎格子: "Android将Excel表数据导入SQLite数据库", 《HTTPS://BLOG.CSDN.NET/U010198148/ARTICLE/DETAILS/65044639》, pages 1 * |
Also Published As
Publication number | Publication date |
---|---|
CN111124432B (en) | 2023-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104572278B (en) | The method, device and equipment of light application calling local side ability | |
US8596534B2 (en) | Interface system between a terminal and a smart card, method for same, and smart card applied to same | |
CN106547580B (en) | Method and device for hooking function, mobile terminal and storage medium | |
CN109582470B (en) | Data processing method and data processing device | |
CN109062617A (en) | A kind of application method, the mobile terminal of platform that supporting polymorphic type equipment | |
CN110532107B (en) | Interface calling method, device, computer equipment and storage medium | |
CN103049515A (en) | Method, device and equipment for classifying application programs | |
CN109347898B (en) | Scene information sending method, scene information display method, server and mobile terminal | |
US10127037B2 (en) | Method for recognizing application type | |
CN108881393B (en) | Data issuing method, device, computer and storage medium | |
CN109002315A (en) | Application program update method, apparatus, terminal and storage medium | |
CN112163150A (en) | Information pushing method and device | |
CN115309431B (en) | Parameter updating method, readable medium and electronic equipment | |
CN105100132B (en) | The method and system of terminal device, identification terminal equipment | |
CN111158987A (en) | Health check method and device of micro-service architecture | |
CN106649588B (en) | Method, device and system for acquiring installed application program list | |
CN103164245B (en) | The method of application display language-specific and terminal | |
CN109246280B (en) | Address book cloud processing method and device, computer equipment and readable storage medium | |
CN110191176A (en) | A kind of swift electron evidence collecting method and system | |
CN111443903B (en) | Method and device for acquiring software development file, electronic equipment and storage medium | |
CN102984330A (en) | Contact person data management method of communication device | |
CN105144090A (en) | Method and apparatus for prefetching device drivers for peripheral devices connected to a smartphone prior to high-level operating system (HLOS) boot | |
CN111124432A (en) | APK (android Package) oriented information storage method and device | |
CN108512803A (en) | Remind the method and device of change account bound phone number | |
CN110502251A (en) | Using installation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |