CN114706602A - Android-based method for updating parameters of touch screen through app - Google Patents

Android-based method for updating parameters of touch screen through app Download PDF

Info

Publication number
CN114706602A
CN114706602A CN202210339288.XA CN202210339288A CN114706602A CN 114706602 A CN114706602 A CN 114706602A CN 202210339288 A CN202210339288 A CN 202210339288A CN 114706602 A CN114706602 A CN 114706602A
Authority
CN
China
Prior art keywords
touch screen
app
updating
parameters
android
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
Application number
CN202210339288.XA
Other languages
Chinese (zh)
Other versions
CN114706602B (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.)
Zhuhai Readboy Software Technology Co Ltd
Original Assignee
Zhuhai Readboy Software 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 Zhuhai Readboy Software Technology Co Ltd filed Critical Zhuhai Readboy Software Technology Co Ltd
Priority to CN202210339288.XA priority Critical patent/CN114706602B/en
Publication of CN114706602A publication Critical patent/CN114706602A/en
Application granted granted Critical
Publication of CN114706602B publication Critical patent/CN114706602B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for updating parameters of a touch screen through an APP based on Android, which is used for updating the parameters of the touch screen through updating the APP, thereby reducing the time for system compilation and testing of developers and reducing the number of versions for system upgrading. The user can update the touch screen effect without updating the system OTA, the use is more convenient, and the time of the user is saved more. And the stability of the system can be improved, and the problem that the system goes wrong due to the fact that a developer makes mistakes or compiling mistakes due to the effect of modifying one touch screen is avoided.

Description

Android-based method for updating parameters of touch screen through app
Technical Field
The invention relates to the technical field of android systems, in particular to an android-based method for updating parameters of a touch screen through an app.
Background
When a student education tablet, an intelligent tablet and a smart phone are actually developed, the requirement that the effect of touch screen parameters needs to be updated for machines which are already shipped is frequently met, particularly for machines with large sizes, the current methods for updating touch screen parameters on the market need to modify kernel or system partitions, so that a new ROM packet needs to be compiled again each time, the ROM packet needs to be compiled completely, many developers need to be involved, much time is wasted, the whole ROM packet needs to be tested by a ROM updating test department, and much time is wasted when many test machines are burnt. From a user perspective, app updates are also faster and more friendly than system updates.
Disclosure of Invention
In view of the defects of the prior art, the present invention aims to provide an android-based method for updating touch screen parameters through an app.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for updating parameters of a touch screen through an app based on Android comprises the following specific processes:
the kernel drives equipment nodes of sys are created through sysfs _ create _ file, a store function prototype is achieved, parameter contents in buf are obtained in the store function, and the parameter contents are stored after analysis and verification are passed; writing the parameter content to the hardware of the touch screen by calling a corresponding fw _ update function driven by TP; adding corresponding authority in Selinux to enable the equipment node to pass through the appointed upper layer APP normal write;
when touch screen parameters are updated, updating a specified upper layer APP, wherein the specified upper layer APP passes through a newFileWriter (file _ path); and newbufferdwriter (fwwriter); and writing the updated touch screen parameters to the equipment nodes to finish the upgrading of the touch screen parameters.
The invention also provides a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described method.
The invention also provides Android equipment, which comprises a processor and a memory, wherein the memory is used for storing a computer program; the processor is adapted to implement the above method when executing the computer program.
The invention has the beneficial effects that:
1. according to the invention, the touch screen parameters are upgraded by updating the APP, so that the time for system compiling and testing of developers is shortened, and the number of versions upgraded by the system is reduced. The user can update the touch screen effect without updating the system OTA, the use is more convenient, and the time of the user is saved more. And the stability of the system can be improved, and the problem that the system goes wrong due to the fact that a developer makes mistakes or compiling mistakes due to the effect of modifying one touch screen is avoided.
2. Because the system and touch screen parameters are updated separately, the user can select the new touch screen effect or the new touch screen effect of the old system according to the needs.
3. By upgrading the touch screen effect, the user can return the corresponding old version touch screen effect by returning the APP version, and the method is very convenient compared with the conventional complex time-consuming method of returning from the new line to the old version ROM.
Detailed Description
The present invention will be further described below, and it should be noted that the present embodiment is based on the technical solution, and a detailed implementation manner and a specific operation process are provided, but the protection scope of the present invention is not limited to the present embodiment.
The embodiment provides a method for updating parameters of a touch screen through an app based on Android, which comprises the following specific processes:
the kernel drives equipment nodes of sys are created through sysfs _ create _ file, a store function prototype is achieved, parameter contents in buf are obtained in the store function, and the parameter contents are stored after analysis and verification are passed; writing the parameter content to the hardware of the touch screen by calling a corresponding fw _ update function driven by TP; adding corresponding authority in Selinux to enable the equipment node to pass through the appointed upper layer APP normal write;
when touch screen parameters are updated, updating a specified upper layer APP, wherein the specified upper layer APP passes through a newFileWriter (file _ path); and newbufferdwriter (fwwriter); and writing the updated touch screen parameters to the equipment nodes to finish the upgrading of the touch screen parameters.
By the method, the touch screen parameters can be upgraded by updating the APP, the system compiling time of developers and the testing time of testers are reduced, and the number of versions for upgrading the system is reduced. The user can update the touch screen effect without updating the system OTA, the use is more convenient, and the time of the user is saved more. And the stability of the system can be improved, and the problem that the system goes wrong due to the fact that a developer makes mistakes or compiling mistakes due to the effect of modifying one touch screen is avoided. In addition, because the system and touch screen parameters are updated separately, the user can select the new system and the old touch screen effect or the old system and the new touch screen effect according to the needs.
Through the method, the user can also return to the corresponding old version touch screen effect by returning the APP version, and compared with the conventional complex time-consuming method of returning from the new line to the old version ROM, the method is very convenient.
Various corresponding changes and modifications can be made by those skilled in the art based on the above technical solutions and concepts, and all such changes and modifications should be included in the protection scope of the present invention.

Claims (3)

1. A method for updating parameters of a touch screen through an app based on Android is characterized by comprising the following specific processes:
the kernel drives equipment nodes of sys are created through sysfs _ create _ file, a store function prototype is achieved, parameter contents in buf are obtained in the store function, and the parameter contents are stored after analysis and verification are passed; writing the parameter content to the hardware of the touch screen by calling a corresponding fw _ update function driven by TP; adding corresponding authority in Selinux to enable the equipment node to pass through the appointed upper layer APP normal write;
when the touch screen parameters are updated, updating the designated upper layer APP, wherein the designated upper layer APP passes through a new FileWriter (file _ path); and new buffer write (fwrite); and writing the updated touch screen parameters to the equipment nodes to finish the upgrading of the touch screen parameters.
2. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of claim 1.
3. An Android device comprising a processor and a memory, the memory for storing a computer program; the processor, when executing the computer program, implements the method of claim 1.
CN202210339288.XA 2022-04-01 2022-04-01 Android-based method for updating parameters of touch screen through app Active CN114706602B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210339288.XA CN114706602B (en) 2022-04-01 2022-04-01 Android-based method for updating parameters of touch screen through app

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210339288.XA CN114706602B (en) 2022-04-01 2022-04-01 Android-based method for updating parameters of touch screen through app

Publications (2)

Publication Number Publication Date
CN114706602A true CN114706602A (en) 2022-07-05
CN114706602B CN114706602B (en) 2023-03-24

Family

ID=82172930

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210339288.XA Active CN114706602B (en) 2022-04-01 2022-04-01 Android-based method for updating parameters of touch screen through app

Country Status (1)

Country Link
CN (1) CN114706602B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000017729A2 (en) * 1998-09-21 2000-03-30 Wyse Technology Improved method and apparatus for display of windowing application programs on a terminal
CN101937709A (en) * 2010-08-19 2011-01-05 冠捷显示科技(武汉)有限公司 Display equipment software updating method
FR2997773A1 (en) * 2012-11-06 2014-05-09 Centre Nat Rech Scient METHOD OF SCHEDULING WITH DELAY CONSTRAINTS, ESPECIALLY IN LINUX, REALIZED IN USER SPACE.
WO2015123932A1 (en) * 2014-02-19 2015-08-27 惠州Tcl移动通信有限公司 Method and apparatus for repairing touch screen firmware of mobile terminal
CN105117223A (en) * 2015-08-20 2015-12-02 广东欧珀移动通信有限公司 Processing method and system of input event
CN105915975A (en) * 2016-05-31 2016-08-31 深圳市灰度科技有限公司 Asynchronous control system and asynchronous control method for using mobile device to update content of LED screen
CN106033399A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Management method and device for PCIe device and PCIe bus
CN109564481A (en) * 2017-06-22 2019-04-02 深圳市汇顶科技股份有限公司 Update method, device, touch screen and the electric terminal of touch screen present reference value
WO2019174473A1 (en) * 2018-03-13 2019-09-19 Oppo广东移动通信有限公司 User interface rendering method and apparatus, and terminal
US20200104264A1 (en) * 2018-09-27 2020-04-02 International Business Machines Corporation Mapping memory allocation requests using various memory attributes
CN111552402A (en) * 2020-04-22 2020-08-18 湖南安元信息科技有限公司 Mapping method of multi-display touch component system, terminal and readable storage medium
CN111831300A (en) * 2019-08-23 2020-10-27 北京骑胜科技有限公司 APP updating method and device, electronic equipment and computer readable storage medium
JP2021009658A (en) * 2018-08-10 2021-01-28 株式会社デンソー Vehicle electronic control system, screen display control method for progress display, and screen display control program for progress display
WO2021147948A1 (en) * 2020-01-21 2021-07-29 华为技术有限公司 Control display method and electronic device
CN114222978A (en) * 2019-10-21 2022-03-22 深圳市欢太科技有限公司 Power consumption information processing method and device, electronic equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000017729A2 (en) * 1998-09-21 2000-03-30 Wyse Technology Improved method and apparatus for display of windowing application programs on a terminal
CN101937709A (en) * 2010-08-19 2011-01-05 冠捷显示科技(武汉)有限公司 Display equipment software updating method
FR2997773A1 (en) * 2012-11-06 2014-05-09 Centre Nat Rech Scient METHOD OF SCHEDULING WITH DELAY CONSTRAINTS, ESPECIALLY IN LINUX, REALIZED IN USER SPACE.
WO2015123932A1 (en) * 2014-02-19 2015-08-27 惠州Tcl移动通信有限公司 Method and apparatus for repairing touch screen firmware of mobile terminal
CN106033399A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Management method and device for PCIe device and PCIe bus
CN105117223A (en) * 2015-08-20 2015-12-02 广东欧珀移动通信有限公司 Processing method and system of input event
CN105915975A (en) * 2016-05-31 2016-08-31 深圳市灰度科技有限公司 Asynchronous control system and asynchronous control method for using mobile device to update content of LED screen
CN109564481A (en) * 2017-06-22 2019-04-02 深圳市汇顶科技股份有限公司 Update method, device, touch screen and the electric terminal of touch screen present reference value
WO2019174473A1 (en) * 2018-03-13 2019-09-19 Oppo广东移动通信有限公司 User interface rendering method and apparatus, and terminal
JP2021009658A (en) * 2018-08-10 2021-01-28 株式会社デンソー Vehicle electronic control system, screen display control method for progress display, and screen display control program for progress display
US20200104264A1 (en) * 2018-09-27 2020-04-02 International Business Machines Corporation Mapping memory allocation requests using various memory attributes
CN111831300A (en) * 2019-08-23 2020-10-27 北京骑胜科技有限公司 APP updating method and device, electronic equipment and computer readable storage medium
CN114222978A (en) * 2019-10-21 2022-03-22 深圳市欢太科技有限公司 Power consumption information processing method and device, electronic equipment and storage medium
WO2021147948A1 (en) * 2020-01-21 2021-07-29 华为技术有限公司 Control display method and electronic device
CN111552402A (en) * 2020-04-22 2020-08-18 湖南安元信息科技有限公司 Mapping method of multi-display touch component system, terminal and readable storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
BINDINGFLY: "linux sys节点属性 show以及store", 《HTTPS://BLOG.CSDN.NET/GOOD123_2014/ARTICLE/DETAILS/52106520》 *
HANSOMEWANG: "创建sysfs节点之device_create_file、sysfs_create_group", 《HTTPS://BLOG.CSDN.NET/HANSOMEWANG/ARTICLE/DETAILS/78714236》 *
李中奇等: "嵌入式LINUX系统中触摸屏控制的研究与实现", 《现代显示》 *
王子健等: "基于TFFS的嵌入式系统在线升级设计与实现", 《计算机工程》 *

Also Published As

Publication number Publication date
CN114706602B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
Lytinen et al. The evolution of agent-based simulation platforms: a review of NetLogo 5.0 and ReLogo
KR102010508B1 (en) System and method for updating source code files
US5202889A (en) Dynamic process for the generation of biased pseudo-random test patterns for the functional verification of hardware designs
US7681180B2 (en) Parameterized test driven development
CN104834590A (en) Software test method and system
CN109669873B (en) User interface automatic test method and device, electronic equipment and storage medium
GB2508643A (en) Method for Performing a Regression Test after Modifying Source Code File
CN110515641A (en) The update method of server firmware, apparatus and system
US9824000B1 (en) Testing calling code dynamically with random error injection based on user-specified configuration
EP4014119B1 (en) Data race analysis based on altering function internal loads during time-travel debugging
CN107943466B (en) Database access statement generation method, device and equipment
RU2017104121A (en) SYSTEM AND METHOD FOR CREATING SELECTIVE INSTANT IMAGES OF A DATABASE
US20190235999A1 (en) Automated Unit Testing In A Mainframe Environment
US20150058828A1 (en) Plc simulation system, plc simulator, recording medium, and simulation method
US9639343B2 (en) Method for altering execution of a program, debugger, and computer-readable medium
CA3128803A1 (en) Message conversion method and device, computer equipment and storage medium
CN108694049B (en) Method and equipment for updating software
US20210096853A1 (en) Migration of web applications between different web application frameworks
CN113590491B (en) Test platform and product test method
CN114706602B (en) Android-based method for updating parameters of touch screen through app
CN110765008B (en) Data processing method and device
US20020129336A1 (en) Automatic symbol table selection in a multi-cell environment
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing
CN109144620B (en) Skipping method and device for suspension window permission setting interface
US11573787B1 (en) Hot reloading a running application with an unsaved source code change

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