CN111666161B - Method, system and readable storage medium for uniformly setting interfaces - Google Patents

Method, system and readable storage medium for uniformly setting interfaces Download PDF

Info

Publication number
CN111666161B
CN111666161B CN201910171111.1A CN201910171111A CN111666161B CN 111666161 B CN111666161 B CN 111666161B CN 201910171111 A CN201910171111 A CN 201910171111A CN 111666161 B CN111666161 B CN 111666161B
Authority
CN
China
Prior art keywords
setting
application
interface
contentprovider
external application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910171111.1A
Other languages
Chinese (zh)
Other versions
CN111666161A (en
Inventor
黄孙明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN201910171111.1A priority Critical patent/CN111666161B/en
Publication of CN111666161A publication Critical patent/CN111666161A/en
Application granted granted Critical
Publication of CN111666161B publication Critical patent/CN111666161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/541Interprogram communication via adapters, e.g. between incompatible applications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/52Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow
    • G06F21/53Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems during program execution, e.g. stack integrity ; Preventing unwanted data erasure; Buffer overflow by executing in a restricted environment, e.g. sandbox or secure virtual machine

Abstract

The invention provides a method, a system and a storage medium for uniformly setting interfaces, which are used for uniformly setting interfaces of intelligent televisions of Android systems in preset setting applications, uniformly interfacing preset application setting items, reducing workload, improving safety and providing a basic setting interface for third party application access. The method comprises the steps that the ContentProvider is realized through inheritance of a preset setting application, an Uri access interface of the ContentProvider is provided for an external application, the external application accesses and uses the setting interface through the Uri of the ContentProvider, the preset setting application converts information carried by the Uri interface of the ContentProvider into a corresponding setting function, an original setting module of the preset setting application is used for accessing an SDK of a manufacturer or an SDK of an Andorid system, related functions are set, and a result is returned to the external application, so that the purpose of unifying the setting interface in the preset setting application is achieved.

Description

Method, system and readable storage medium for uniformly setting interfaces
Technical Field
The invention relates to the technical field of android system software setting, in particular to a method, a system and a readable storage medium for uniformly setting interfaces.
Background
With rapid progress of intelligent television technology, rapid development of internet technology and improvement of living standard of people, the intelligent television becomes a necessary facility for families which are popular, is an information and entertainment center of the families, and is deeply integrated into leisure life of each family. As such, there are more and more third party Applications (APPs) that family members download according to their own preferences, and related settings become more and more frequent. At present, most of the systems operated on the intelligent televisions are Andorid systems, but the intelligent televisions of the Android systems have a plurality of setting items, even more than the setting items of mobile phones, such as images, sounds, systems, networks and the like, which are required to be set, and each setting item is divided into a plurality of sub setting items which are required to be set, so that the setting of the intelligent televisions is more specialized and complex than the setting of the mobile phones. And the interfaces of the setting items of the smart television of the Android system are all sealed in software development kits (SDK: software Development Kit) of manufacturers, so that the smart television is difficult to be accessed by a third party Application (APP), and the setting interfaces cannot be used at all. If the preset application needs to use a setting interface, the preset application can directly use a Software Development Kit (SDK) integrated by the manufacturer, but the application references are more, and potential safety hazards are easy to occur; and the function setting items are too many, a plurality of connectors need to be found in the butt joint, and the work is complicated.
Accordingly, the prior art is still in need of improvement and development.
Disclosure of Invention
In view of the shortcomings of the prior art, the invention provides a method for uniformly setting interfaces to solve the defects and shortcomings of the prior art, the setting interfaces of the Android intelligent television are uniformly arranged in preset setting applications, the preset setting applications uniformly provide the setting interfaces for external applications, uniform butting of preset application setting items of manufacturers is realized, workload is reduced, safety is improved, and meanwhile convenience is improved for third party applications to access basic setting interfaces.
The technical scheme adopted for solving the technical problems is as follows:
a method for unifying setting interfaces is used for unifying the setting interfaces of an intelligent television of an Android system in a preset setting application and comprises the following steps:
preset settings application inherits to implement ContentProvider;
the external application accesses and uses the setting interface through the Uri of the ContentProvider;
the preset setting application converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, and returns the result to the external application.
As a further improved technical scheme, the preset application inheritance implementation ContentProvider of the step specifically comprises the following steps:
providing a Uri access interface of a ContentProvider for an external application;
after the preset setting application realizes the ContentProvider, an Uri interface for access setting is provided for external applications, wherein the external applications comprise the preset application and a third party application.
As a further improvement technical scheme, in the steps of accessing and using the setting interface by the external application through the Uri of the ContentProvider, the ContentProvider is an Android system native component, and the external application can directly access the values of system function items through the Uri interface of the Android system.
As a further improved technical scheme, the preset setting application converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, and returns the result to the external application, and the preset setting application uses the original setting module SettingsProvider to access a software development kit of a manufacturer or a software development kit of an Andorid system to set related functions, and returns the result of success or failure of setting to the external application.
As a further improved technical scheme, the parameter values are analyzed by the original setting module settingsProvider of the preset setting application through the proxy settingsManager, the settingsManager calls the original module interface of the preset setting application settingsProvider, the setting is carried out through a manufacturer software development kit or an Android system software development kit, and after the setting is completed, whether a successful setting result is returned to the external application through the ContentProvider interface.
The invention also provides a system for unifying the setting interfaces, which is used for unifying the setting interfaces of the intelligent televisions of the Android system in preset setting applications, and comprises an external application interface module and an external application setting module;
the external application interface module is used for providing a Uri access interface of the ContentProvider for the external application;
the external application setting module is used for setting the external application through a manufacturer software development kit or an Android system software development kit and returning a result of whether the setting is successful to the external application.
As a further improved technical scheme, the external application interface module is used for providing a ContentProvider access interface for an external application, the ContentProvider is used for providing a Uri access interface of the ContentProvider for the external application by adopting preset setting application inheritance, the external application comprises a preset application and a third party application, and the external application accesses and uses the setting interface through the Uri of the ContentProvider.
As a further improvement technical scheme, the external application setting module is used for setting an external application through a manufacturer software development kit or an Android system software development kit, returning a result of whether the setting is successful to the external application, analyzing parameter values by a proxy settingsManager in a preset setting application settingsProvider, calling an original module interface of the preset setting application settingsProvider, setting the external application through the manufacturer software development kit or the Android system software development kit, and returning the result of whether the setting is successful to the external application through a ContentProvider interface after the setting is completed.
The present invention also provides a readable storage medium storing a program for uniformly setting an interface, which when executed by a processor, implements the steps of the method for uniformly setting an interface described above.
Compared with the prior art that the preset application is easy to get potential safety hazards and is complicated in work, and the third party application cannot use the setting interface at all, the setting interface of the intelligent television of the Android system is unified in the preset setting application, the setting interface is uniformly provided for the external application from the preset setting application, and the external application performs related setting through the interface, so that unified butt joint of preset application setting items of manufacturers is facilitated, the workload is reduced, the safety is improved, and the third party cooperative application is convenient to access the basic setting interface.
Drawings
The invention will be further described with reference to the following detailed description, taken in conjunction with the accompanying drawings, in which:
fig. 1 is a flowchart of a preferred embodiment of a method of uniformly setting an interface according to the present invention.
Fig. 2 is a block diagram of a preferred embodiment of a system for unifying setup interfaces of the present invention.
FIG. 3 is a graph of class inheritance relationships of specific implementations of objects in a preferred embodiment of a method for uniformly setting interfaces in accordance with the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clear and clear, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Because the interfaces of the setting items of the intelligent television of the Andorid system in the prior art are all enclosed in the software development kit (SDK: software Development Kit) of the manufacturer, if the preset application needs to use the setting interfaces, the Software Development Kit (SDK) of the manufacturer needs to be directly integrated, but the application references are more, and potential safety hazards are easy to occur; and the function setting items are too many, a plurality of connectors need to be found in the butt joint, and the work is complicated. While the third party Application (APP) is completely unable to use the setup interface. The preset application basically integrates all the setting functions of the intelligent television, if the preset application uses interfaces from the preset application, the intelligent television setting interfaces are unified, and meanwhile, part of basic setting interfaces are opened for a third party Application (APP), so that the preset application docking of manufacturers is facilitated, and the third party application is facilitated to access the basic setting interfaces.
To solve the deficiencies of the prior art, based on the above-mentioned ideas, the present invention provides a method for uniformly setting interfaces, as shown in fig. 1, which is a flowchart of a preferred embodiment of a method for uniformly setting interfaces, the preferred embodiment of the present invention comprises the following steps:
step S100, preset settings application inherits and implements ContentProvider.
Specifically, in this embodiment, the preset settings application inherits and implements the ContentProvider, named SettingsProvider, and provides the Uri (Uniform Resource Identifier: uniform resource identifier) access interface of the ContentProvider for the external application; the external application comprises a preset application and a third party Application (APP).
The ContentProvider is one of four components of an Android system, can realize cross-process communication, namely data interaction and sharing among processes, has the advantages of being safe, simple and efficient in access, unifying a data access mode, providing an Uri interface of access Settings (Settings) for external applications after the ContentProvider is realized by inheritance of preset Settings (Settings) application, wherein the Uri is used for uniquely identifying the ContentProvider and data therein, and an external process finds the corresponding ContentProvider and the data therein through the Uri and then performs data operation;
for example, the Uri interface is defined as follows:
content://com.example.settings.SettingsProvider。
in step S200, the external application accesses and uses the setting interface through the Uri of the ContentProvider.
Specifically, in this embodiment, the external application accesses and uses the setting interface through the Uri of the ContentProvider, where ContentProvider is a native component of the Android system, provides a secure environment for data interaction between applications, allows application data of the external application to be opened to other applications according to requirements for addition, deletion, modification and search, and can directly use the Uri interface of the Android system to access, and only needs to take parameters according to a predefined rule, where the parameters include set function items and values of the function items.
For example: content:// com.sample.settings.settingsProvider/item=picture & value=1.
Wherein: the Item indicates a set function Item, and the value indicates a value of the set function Item.
In step S300, the preset setting application converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, and returns the result to the external application.
Specifically, in this embodiment, the preset setting application converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, returns the set result to the external application, the preset setting application SettingsProvider converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, uses the original setting module of the preset setting application to access the software development kit (SDK: software Development Kit) of the manufacturer or the Software Development Kit (SDK) of the Andorid system, sets the value of the related function item, and returns the result of success or failure of the setting to the external application.
The inheritance relationship of the specific implementation class of each object in the preset setting application is shown in fig. 3, which is a diagram of the inheritance relationship of the specific implementation class of each object in a preferred embodiment of a method for uniformly setting an interface according to the present invention.
settingsProvider internally parses set parameter values of function items by the proxy settingsManager, for example: resolving the picture into a set function Item (Item) as an image effect backlight, wherein the value (value) of the set function Item is 1;
SettingsManager invokes the original module interface of the preset settings application, such as: systemManager, pictureManager, soundManager, etc., the values (value values) of the function items are set by the vendor's own Software Development Kit (SDK) or the Android system's Software Development Kit (SDK), for example: setting the graphic effect backlight as 1;
after the setting (for example, setting the graphic backlight to 1) is completed, returning the result of whether the setting is successful to the external application through the ContentProvider interface: a preset application or a third party Application (APP).
The invention also provides a system for unifying the setting interfaces of the smart televisions of the Android system in preset setting applications, which is used for unifying the setting interfaces of the preset applications, reducing the workload, improving the safety and providing basic setting interfaces for the access of third party applications, as shown in a structural diagram of a preferred embodiment of a method for unifying the setting interfaces of the invention in fig. 2, the system comprises: an external application interface module 10 and an external application setting module 20.
The external application interface module 10 is configured to provide a Uri access interface of a ContentProvider for an external application.
In this embodiment, the preset setting application inherits and implements the ContentProvider, named settingsProvider, and provides the Uri access interface of the ContentProvider for the external application, where the external application includes the preset application and the third party application, and the external application accesses and uses the setting interface through the Uri of the ContentProvider.
The external application setting module 20 is configured to set an external application through a vendor software development kit or an Android system software development kit, and return a result of whether the setting is successful to the external application.
In this embodiment, the parameter value is resolved by the proxy settingsManager in the settingsProvider, the settingsManager calls the original module interface of the settingsProvider, the settingsProvider is set by the vendor software development kit or the Android system software development kit, and after the setting is completed, whether the result of successful setting is returned to the external application through the contentProvider interface.
The specific workflow is described in the above-mentioned preferred embodiment of a method for uniformly setting up interfaces, and is not repeated here.
The invention also provides a readable storage medium, which is a computer readable storage medium, wherein the readable storage medium stores a program for uniformly setting an interface, and the program for uniformly setting the interface realizes the steps of the method for uniformly setting the interface when being executed by a processor.
It should be understood that the foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the technical solutions of the present invention, and it should be understood that the foregoing may be added, substituted, altered or modified within the spirit and principle of the present invention by those skilled in the art, and all such added, substituted, altered or modified embodiments fall within the scope of the appended claims.

Claims (6)

1. The method for unifying the setting interfaces of the intelligent television of the Android system is used for unifying the setting interfaces of the intelligent television of the Android system in a preset setting application and is characterized by comprising the following steps:
preset settings application inherits to implement ContentProvider;
the external application accesses and uses the setting interface through the Uri of the ContentProvider;
the preset setting application converts the information carried by the Uri interface of the ContentProvider into a corresponding setting function, and returns the result to the external application; the preset setting application uses an original setting module SettingsProvider to access a software development kit of a manufacturer or a software development kit of an Andorid system, sets related functions, and returns a result of success or failure of setting to an external application;
the original setting module SettingsProvider of the preset setting application analyzes parameter values through a proxy SettingsManager, the SettingManager calls an original module interface of the preset setting application SettingsProvider, the setting is carried out through a manufacturer software development kit or an Android system software development kit, and after the setting is completed, whether a successful setting result is returned to an external application through a ContentProvider interface.
2. The method for uniformly setting up an interface according to claim 1, wherein said step of presetting the setting application inheritance implementation ContentProvider specifically comprises the steps of:
providing a Uri access interface of a ContentProvider for an external application;
after the preset setting application realizes the ContentProvider, an Uri interface for access setting is provided for external applications, wherein the external applications comprise the preset application and a third party application.
3. The method for uniformly setting interfaces according to claim 1, wherein in the step of accessing and using the interfaces by the external application through the Uri of the ContentProvider, the ContentProvider is an Android system native component, and the external application can directly access the values of the system function items through the Uri interface of the Android system.
4. The system for unifying the setting interfaces is used for unifying the setting interfaces of the intelligent televisions of the Android system in preset setting applications and is characterized by comprising an external application interface module and an external application setting module;
the external application interface module is used for providing a Uri access interface of the ContentProvider for the external application;
the external application setting module is used for setting the external application through a manufacturer software development kit or an Android system software development kit and returning a result of whether the setting is successful to the external application;
the external application setting module is used for setting an external application through a manufacturer software development kit or an Android system software development kit, returning a result of whether the setting is successful to the external application, analyzing parameter values by a proxy Settings Manager in a preset setting application settingsProvider, calling an original module interface of the preset setting application settingsProvider by the settingManager, setting the external application through the manufacturer software development kit or the Android system software development kit, and returning a result of whether the setting is successful to the external application through a ContentProvider interface after the setting is completed.
5. The system of claim 4, wherein the external application interface module is configured to provide a ContentProvider access interface for an external application, and implement ContentProvider to provide a Uri access interface of ContentProvider for the external application using preset settings application inheritance, and the external application includes a preset application and a third party application, and the external application accesses and uses the settings interface through the Uri of ContentProvider.
6. A readable storage medium storing a program of a unified setup interface which when executed by a processor implements the steps of the method of unified setup interface of any one of claims 1 to 3.
CN201910171111.1A 2019-03-07 2019-03-07 Method, system and readable storage medium for uniformly setting interfaces Active CN111666161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910171111.1A CN111666161B (en) 2019-03-07 2019-03-07 Method, system and readable storage medium for uniformly setting interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910171111.1A CN111666161B (en) 2019-03-07 2019-03-07 Method, system and readable storage medium for uniformly setting interfaces

Publications (2)

Publication Number Publication Date
CN111666161A CN111666161A (en) 2020-09-15
CN111666161B true CN111666161B (en) 2024-03-12

Family

ID=72381776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910171111.1A Active CN111666161B (en) 2019-03-07 2019-03-07 Method, system and readable storage medium for uniformly setting interfaces

Country Status (1)

Country Link
CN (1) CN111666161B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113225429B (en) * 2021-05-19 2022-08-30 Tcl通讯(宁波)有限公司 Display effect optimization method and system and intelligent terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136379A (en) * 2013-03-28 2013-06-05 中国人民解放军理工大学 Multi database visiting method based on Android terminal
CN104239041A (en) * 2014-09-03 2014-12-24 北京数字天域科技股份有限公司 Method device and system for generating processing scheme and configuration and deleting preinstalled application
CN105354073A (en) * 2015-10-27 2016-02-24 中通服公众信息产业股份有限公司 Android system based standalone application networking method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8006177B1 (en) * 1998-10-16 2011-08-23 Open Invention Network, Llc Documents for commerce in trading partner networks and interface definitions based on the documents

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136379A (en) * 2013-03-28 2013-06-05 中国人民解放军理工大学 Multi database visiting method based on Android terminal
CN104239041A (en) * 2014-09-03 2014-12-24 北京数字天域科技股份有限公司 Method device and system for generating processing scheme and configuration and deleting preinstalled application
CN105354073A (en) * 2015-10-27 2016-02-24 中通服公众信息产业股份有限公司 Android system based standalone application networking method and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
何俊杰 ; 刘斌 ; .Android权限提升漏洞静态检测技术.网络安全技术与应用.2016,(03),全文. *
郑寅欣 ; 苏凯雄 ; .一种Android本地功能模块的多应用共享方案.有线电视技术.2013,(10),全文. *
马勇强 ; 陈榕 ; .Elastos中间件ContentProvider的设计与实现.电脑知识与技术.2009,(31),全文. *

Also Published As

Publication number Publication date
CN111666161A (en) 2020-09-15

Similar Documents

Publication Publication Date Title
CN108880867B (en) Network equipment data acquisition method and system
EP3014903B1 (en) Seamless call transitions with pre-escalation participation confirmation
CN110032512B (en) Debugging method of small program, related equipment and terminal
US20100306759A1 (en) System for packaging native program extensions together with virtual machine applications
WO2021238271A1 (en) Container-cloud-based application creation method and apparatus, electronic device, and storage medium
CN109587272B (en) Method and device for optimizing microservice and electronic equipment
US20150200975A1 (en) Tool for Sharing Applications Across Client Devices
RU2431235C2 (en) Method of identifying devices in working environments of mobile communication and desktop computers
CN113157345A (en) Automatic starting method and device for front-end engineering
CN111666161B (en) Method, system and readable storage medium for uniformly setting interfaces
Hyun Design and implementation of a low-code/no-code system
CN112835632A (en) Method and device for calling end capability and computer storage medium
CN103975301B (en) The method for carrying out Event Service to local client computer application by home server
CN103425501A (en) Application installation method, client, server side and system
CN111615171B (en) Access method and device of wireless local area network
CN109173238B (en) Method for simultaneously executing double-input events and computer storage medium
US10223178B2 (en) Enabling WPD devices to be managed at the capability level
CN107018140B (en) Authority control method and system
US10862757B2 (en) Isolating a redirected biometric device to a remote session
CN109327726B (en) Barrage message processing method and device, terminal and storage medium
CN113641641A (en) Switching method, switching system, equipment and storage medium of file storage service
US8521917B2 (en) Remote inking
WO2020064000A1 (en) Method and apparatus for displaying message box, terminal and storage medium
CN114489866B (en) Data management method and device
US11456983B2 (en) Interactive operation method, and transmitter machine, receiver machine and interactive operation system using the same

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