CN103713922B - A kind of method and system of dynamic replacement driver codes of modules of Android device - Google Patents

A kind of method and system of dynamic replacement driver codes of modules of Android device Download PDF

Info

Publication number
CN103713922B
CN103713922B CN201310710801.2A CN201310710801A CN103713922B CN 103713922 B CN103713922 B CN 103713922B CN 201310710801 A CN201310710801 A CN 201310710801A CN 103713922 B CN103713922 B CN 103713922B
Authority
CN
China
Prior art keywords
android device
module
modules
driving
adb
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
CN201310710801.2A
Other languages
Chinese (zh)
Other versions
CN103713922A (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201310710801.2A priority Critical patent/CN103713922B/en
Publication of CN103713922A publication Critical patent/CN103713922A/en
Application granted granted Critical
Publication of CN103713922B publication Critical patent/CN103713922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method and system of dynamic replacement driver codes of modules of Android device, and wherein method comprises the following steps:Step 10, the driving code loading catalogue by the driving file deposit Android device of the module;Step 20, carry out ADB using host computer and Android device and be connected;Step 30, performed using ADB the module title is written to the orders of sysfs file system nodes;Step 40, restart Android device.The present invention greatlys save the commissioning test time after Android device module is replaced, the problem of solving cumbersome inefficiency after existing Android device module is replaced.

Description

A kind of method and system of dynamic replacement driver codes of modules of Android device
Technical field
Driven the present invention relates to Android device debugging technique field, more particularly to a kind of dynamic replacement Android device upper module The method and system of code.
Background technology
Factory and scheme business, according to version type circuit design requirements, select each peripheral hardware mould when Android device is produced Block produces machine.The code of Android system must be configured according to these peripheral modules, then compile out system image, programming Into machine.If a certain batch order, it is thus only necessary to substituted for some peripheral hardware, such as Android device on the basis of upper once version type It is upper to replace most frequent WIFI module, then to be accomplished by being reconfigured on code and programming, the time of consuming is long, efficiency Lowly.
The content of the invention
The technical problem to be solved in the present invention, is to provide a kind of side of dynamic replacement driver codes of modules of Android device Method and system, solve it is existing when Android device upper module is replaced consuming the time length, inefficiency the problem of.
What the present invention was realized in:
A kind of method of dynamic replacement driver codes of modules of Android device, comprises the following steps:
Step 10, the driving code loading catalogue by the driving KO files deposit Android device of the module;
Step 20, carry out ADB using host computer and Android device and be connected;
Step 30, performed using ADB the title of the module is written to the orders of sysfs file system nodes;
Step 40, restart Android device.
Further, the step 10 is specially:The driving KO files of the module are stored in Android device using ADB Drive code loading catalogue.
Further, the restarting equipment in the step 40 is specially:The order for restarting Android device is sent using ADB.
Further, described module is WIFI module.
And the present invention also provides a kind of method of dynamic replacement driver codes of modules of Android device, applied to host computer On, described host computer carries out ADB with Android device and is connected, and comprises the following steps:
Step 15, the driving code loading catalogue that the driving KO files of the module are sent to Android device;
The title of the module is written to the order of sysfs file system nodes by step 25, execution;
Step 35, restart Android device.
Further, described module is WIFI module.
And correspondingly, based on the above method, also provide a kind of dynamic replacement Android device upper module driving generation The system of code, including Android device and host computer, described Android device carry out ADB with host computer and are connected, it is characterised in that:Institute The host computer stated includes following module:
Drive sending module:Driving code for the driving KO files of Android device upper module to be sent to Android device Load catalogue;
Title writing module:The title of Android device upper module is written to sysfs file system nodes for performing Order;
Equipment restarts module:For restarting Android device.
Further, described Android device upper module is WIFI module.
The invention has the advantages that:It need not change and configuration code, save Android device and adjusted when module is replaced The time of examination, efficiency is improved, accelerate the manufacturing schedule of project.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method execution flow chart.
Embodiment
Refer to shown in Fig. 1, the present invention is described in detail below.
A kind of method of dynamic replacement driver codes of modules of Android device, this method is application method, is set for Android Module image of haveing been friends in the past has been burnt for upper, but the module in Android device has replaced with the situation of new module, initially enters step Rapid S101 adds the driving code of driving file (also referred to as driving KO files) deposit Android device of the module (i.e. new module) Catalogue is carried, step S101 can then clip to driving code loading catalogue manually by the way that driving file first is put into storage card, Method for optimizing is that file will be driven to send and driving code loading catalogue is stored to using ADB.ADB full name are Android Debug Bridge, is the Debug instruments of Android, after being connected by host computer (such as computer) with the ADB of Android device, and host computer can be achieved Order to Android device, which is performed or uploaded, downloads file.
If using ADB modes in S101, ADB connections will be first carried out before step S101, then now may be used To save step S102.Otherwise to carry out step S102 to be connected using host computer and Android device progress ADB, subsequently into step S103 performs the order that the title of module is written to sysfs file system nodes using ADB, i.e., replace the title of new module Fall the title of old module.Finally restart Android device in step S104.Restarting that Android device can restart manually can also The order for restarting Android device is sent using ADB.
This method can be used for WIFI module, it can also be used to other peripheral modules, such as camera module, sensor assembly. Principle detailed description is carried out with WIFI module below.
Carry out after above-mentioned steps, Android device can be restarted, after restarting, when user clicks on opening for the WIFI of application program When closing opening WIFI module, application program meeting Scheduling Framework layer (Framework Layer), ccf layer calls Android system JNI mechanism, is sent to hardware abstraction layer (Hardware Layer), hardware abstraction layer is from WIFI module name by operational order The title of WIFI module is read in the sysfs file system nodes of title, and is gone according to module title to driving code loading catalogue Corresponding driving file is found, the driving file is then loaded, registration and initialization of the new module driving in kernel is completed.
To sum up, the present invention need not can be changed and configuration code, as long as using original Android mirror image come programming, utilizing ADB instruments dynamically adjust peripheral hardware model, you can to complete the production of new engine.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage Solution, the specific embodiment described by us is merely exemplary, rather than for the restriction to the scope of the present invention, is familiar with this The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (8)

1. a kind of method of dynamic replacement driver codes of modules of Android device, it is characterised in that:Comprise the following steps:
Step 10, the driving code loading catalogue by the driving KO files deposit Android device of the module;
Step 20, carry out ADB using host computer and Android device and be connected;
Step 30, performed using ADB the title of the module is written to the orders of sysfs file system nodes;
Step 40, restart Android device.
2. a kind of method of dynamic replacement driver codes of modules of Android device according to claim 1, it is characterised in that: The step 10 is specially:The driving code that the driving KO files of the module are stored in Android device is loaded into catalogue using ADB.
3. a kind of method of dynamic replacement driver codes of modules of Android device according to claim 1, it is characterised in that: Restarting equipment in the step 40 is specially:The order for restarting Android device is sent using ADB.
4. a kind of method of dynamic replacement driver codes of modules of Android device according to claim 1, it is characterised in that: Described module is WIFI module.
5. a kind of method of dynamic replacement driver codes of modules of Android device, applied on host computer, described host computer with Android device carries out ADB connections, it is characterised in that:Comprise the following steps:
Step 15, the driving code loading catalogue that the driving KO files of the module are sent to Android device;
The title of the module is written to the order of sysfs file system nodes by step 25, execution;
Step 35, restart Android device.
6. a kind of method of dynamic replacement driver codes of modules of Android device according to claim 5, it is characterised in that: Described module is WIFI module.
7. a kind of system of dynamic replacement driver codes of modules of Android device, it is characterised in that:Including Android device and upper Machine, described Android device carries out ADB with host computer and is connected, it is characterised in that:Described host computer includes following module:
Drive sending module:Driving code for the driving KO files of Android device upper module to be sent to Android device is loaded Catalogue;
Title writing module:The title of Android device upper module is written to the order of sysfs file system nodes for performing;
Equipment restarts module:For restarting Android device.
8. a kind of system of dynamic replacement driver codes of modules of Android device according to claim 7, it is characterised in that: Described Android device upper module is WIFI module.
CN201310710801.2A 2013-12-20 2013-12-20 A kind of method and system of dynamic replacement driver codes of modules of Android device Active CN103713922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310710801.2A CN103713922B (en) 2013-12-20 2013-12-20 A kind of method and system of dynamic replacement driver codes of modules of Android device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310710801.2A CN103713922B (en) 2013-12-20 2013-12-20 A kind of method and system of dynamic replacement driver codes of modules of Android device

Publications (2)

Publication Number Publication Date
CN103713922A CN103713922A (en) 2014-04-09
CN103713922B true CN103713922B (en) 2017-11-03

Family

ID=50406925

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310710801.2A Active CN103713922B (en) 2013-12-20 2013-12-20 A kind of method and system of dynamic replacement driver codes of modules of Android device

Country Status (1)

Country Link
CN (1) CN103713922B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104391717B (en) * 2014-11-18 2017-09-12 南京大学 Code dynamic updating method during one kind debugging
CN106293916A (en) * 2016-08-09 2017-01-04 中国地质大学(武汉) A kind of camera for multinuclear embedded platform drives implantation method and system
CN108170463B (en) * 2017-12-26 2021-08-20 深圳市奇虎智能科技有限公司 Factory setting method and device for android device
CN112860324B (en) * 2021-01-29 2022-10-28 展讯通信(上海)有限公司 Method and device for debugging LCD

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003092639A (en) * 2001-09-18 2003-03-28 Denso Corp Downloading method

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049404A (en) * 2013-01-16 2013-04-17 珠海市君天电子科技有限公司 Method and system for obtaining android cell phone model

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Ubuntu ADB 功能配置文件;yimiyangguang1314;《CSDN博客》;20110527;第1-5页 *
往android的内核添加驱动及 ueventd.rc 修改;lkqboy2599;《CSDN博客》;20121220;第1-3页 *

Also Published As

Publication number Publication date
CN103713922A (en) 2014-04-09

Similar Documents

Publication Publication Date Title
CN103955363B (en) A kind of manufacture method of program upgrade installation package
CN106095620B (en) A kind of development approach of built-in Linux partition holding
CN103227812B (en) Smart machine is supported method for down loading and the device of breakpoint transmission
CN103713922B (en) A kind of method and system of dynamic replacement driver codes of modules of Android device
CN109491695A (en) A kind of increment updating method of integrated Android application
CN107171833A (en) One kind realizes server B MC and BIOS batch upgrading method by BMC
CN107733985B (en) Method and device for deploying functional components of cloud computing system
CN104199706A (en) Firmware upgrade method and device for eMMC
CN105988843A (en) Firmware upgrade method and firmware upgrade device for mobile terminal
CN102693144B (en) A kind of method of capacitance plate firmware upgrade of Android mobile terminal
CN105786537A (en) Hot patch realization method and device
CN101930372A (en) System and method for updating programs
CN103761107B (en) Software package customizing device and method
WO2016078263A1 (en) Upgrading control device and terminal, terminal upgrading method and system, and storage medium
CN103246534A (en) Method and device for migrating operating system
CN111338925A (en) Applet test method, device and system, electronic equipment and storage medium
CN103761115A (en) Method for achieving self-update of software
CN106293849A (en) A kind of application update method and terminal
CN102346456B (en) Programmable intelligent terminal device and programmable intelligent terminal operation method
CN105573913B (en) Program debugging method and system in a kind of ONU systems
CN103902315A (en) System and method for online updating of multiple board cards
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN104461589A (en) Single-chip microcomputer updating method and system
CN102830988A (en) Firmware updating method and related computer system
CN105630530A (en) Multilevel boot method and system of digital signal processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant after: FUZHOU ROCKCHIP ELECTRONICS CO., LTD.

Address before: 350000 Fuzhou Gulou District, Fujian, software Avenue, building 89, No. 18

Applicant before: Fuzhou Rockchip Semiconductor Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.

CP01 Change in the name or title of a patent holder