CN109710274A - Debugging function starts method and device - Google Patents

Debugging function starts method and device Download PDF

Info

Publication number
CN109710274A
CN109710274A CN201811534486.1A CN201811534486A CN109710274A CN 109710274 A CN109710274 A CN 109710274A CN 201811534486 A CN201811534486 A CN 201811534486A CN 109710274 A CN109710274 A CN 109710274A
Authority
CN
China
Prior art keywords
terminal
debugging
version
assistance application
formal
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
CN201811534486.1A
Other languages
Chinese (zh)
Other versions
CN109710274B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811534486.1A priority Critical patent/CN109710274B/en
Publication of CN109710274A publication Critical patent/CN109710274A/en
Application granted granted Critical
Publication of CN109710274B publication Critical patent/CN109710274B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure is directed to debugging functions to start method and device.This method comprises: obtaining debugging version read-only memory mirror image ROM file;Debugging version ROM file brush machine is used in terminal;Automation assistance application is installed in terminal;Self-starting when the terminal starts up is set by automation assistance application;Obtain formal version space download technology OTA upgrade package;Formal version OTA upgrade package is installed in terminal, and restarts terminal.The technical solution, by the automation assistance application Start-up and Adjustment function of self-starting, can improve the efficiency that terminal is tested, improve user experience when the formal edition system of terminal operating.

Description

Debugging function starts method and device
Technical field
This disclosure relates to which control technology field more particularly to debugging function start method and device.
Background technique
Debugging function is for connecting terminal and the end PC, and user can operate the end PC and carry out shape to terminal by debugging function State configuration etc..Due to not limiting excessively for debugging function at present, cause the permission of debugging function excessively high, it is generally the case that When the formal edition system of terminal operating, formal edition system will not active Start-up and Adjustment function.
Summary of the invention
To overcome the problems in correlation technique, embodiment of the disclosure provides a kind of debugging function starting method and dress It sets.Technical solution is as follows:
It is according to an embodiment of the present disclosure in a first aspect, providing a kind of debugging function starting method, comprising:
Debugging version read-only memory mirror image ROM file is obtained, debugging version ROM file is used for installation and debugging edition system;
Debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in terminal, automation assistance application is used for Start-up and Adjustment function;
Self-starting when the terminal starts up is set by automation assistance application;
Formal version space download technology OTA upgrade package is obtained, formal version OTA upgrade package for being by debugging version system upgrade Formal edition system;
Formal version OTA upgrade package is installed in terminal, and restarts terminal.
In the technical scheme provided by this disclosed embodiment, by acquisition debugging version read-only memory mirror image ROM file, and Terminal uses debugging version ROM file brush machine, to install in terminal and run debugging edition system.Since debugging edition system is not to peace Dress application carries out any restrictions, therefore can install automation assistance application in terminal, and set automation assistance application to Self-starting when the terminal starts up.Formal version OTA is installed by obtaining formal version space download technology OTA upgrade package, and in terminal Upgrade package, to be formal edition system by the debugging version system upgrade run in terminal, since OTA upgrading is retained in terminal Legacy data, therefore the automation assistance application installed before still remains in terminal, by restarting terminal, can make automatic Change assistance application as terminal starts and self-starting, and by the automation assistance application Start-up and Adjustment function of the self-starting, reaches The purpose for starting the debugging function in terminal automatically when the formal edition system of terminal operating improves the effect that terminal is tested Rate improves user experience.
In one embodiment, method further include:
Obtain the hardware identifier of terminal;
Obtain debugging version read-only memory mirror image ROM file, comprising:
Obtain debugging version ROM file corresponding with the hardware identifier of terminal;
Obtain formal version space download technology OTA upgrade package, comprising:
Obtain formal version OTA upgrade package corresponding with the hardware identifier of terminal.
In one embodiment, automation assistance application is installed in terminal, comprising:
In terminal Start-up and Adjustment function;
The automation assistance application installation instruction sent by debugging function receiving control apparatus;
Controlling terminal is in response to automating assistance application installation instruction, installation automation assistance application.
In one embodiment, formal version OTA upgrade package is installed in terminal, including;
The formal version OTA update instruction sent by debugging function receiving control apparatus;
Controlling terminal installs formal version OTA upgrade package in response to formal version OTA upgrade command.
In one embodiment, self-starting when the terminal starts up is set by automation assistance application, comprising:
Start automation assistance application in terminal, automation assistance application is made itself will to be set as opening certainly when the terminal starts up It is dynamic.
Second aspect according to an embodiment of the present disclosure provides a kind of debugging function starter, which is characterized in that packet It includes:
ROM obtains module, and for obtaining debugging version read-only memory mirror image ROM file, debugging version ROM file is adjusted for installing Test run system;
Brush machine module, for using debugging version ROM file brush machine in terminal;
Using installation module, for installing automation assistance application in terminal, automation assistance application is used for Start-up and Adjustment Function;
Using setup module, self-starting when the terminal starts up is set as assistance application will to be automated;
Upgrade package obtains module, and for obtaining formal version space download technology OTA upgrade package, formal version OTA upgrade package is used In by debugging version system upgrade be formal edition system;
Upgrade package installs module, for installing formal version OTA upgrade package in terminal, and restarts terminal.
In one embodiment, device further include:
Hardware identifier obtains module, for obtaining the hardware identifier of terminal;
ROM obtains module, comprising:
ROM acquisition submodule, for obtaining debugging version ROM file corresponding with the hardware identifier of terminal;
Upgrade package obtains module, comprising:
Upgrade package acquisition submodule, for obtaining formal version OTA upgrade package corresponding with the hardware identifier of terminal.
In one embodiment, using installation module, comprising:
Debugging function promoter module, in terminal Start-up and Adjustment function;
Installation instruction receiving submodule, the automation assistance application peace for being sent by debugging function receiving control apparatus Dress instruction;
Installation instruction responds submodule, and for controlling terminal in response to automating assistance application installation instruction, installation is automatic Change assistance application.
In one embodiment, upgrade package installs module, including;
Upgrade command receiving submodule, the formal version OTA for being sent by debugging function receiving control apparatus upgrade peace Dress instruction;
Upgrade command responds submodule, for controlling terminal in response to formal version OTA upgrade command, installs formal version OTA Upgrade package.
In one embodiment, using setup module, comprising:
Automation assistance application is set by itself for starting automation assistance application in terminal using promoter module It is set to self-starting when the terminal starts up.
The third aspect according to an embodiment of the present disclosure provides a kind of debugging function starter, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Debugging version read-only memory mirror image ROM file is obtained, debugging version ROM file is used for installation and debugging edition system;
Debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in terminal, automation assistance application is used for Start-up and Adjustment function;
Self-starting when the terminal starts up is set by automation assistance application;
Formal version space download technology OTA upgrade package is obtained, formal version OTA upgrade package for being by debugging version system upgrade Formal edition system;
Formal version OTA upgrade package is installed in terminal, and restarts terminal.
Fourth aspect according to an embodiment of the present disclosure provides a kind of computer readable storage medium, is stored thereon with meter Calculation machine instruction, when which is executed by processor the step of any one of first aspect of realization embodiment of the disclosure method.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 a is the flow diagram of debugging function starting method shown according to an exemplary embodiment;
Fig. 1 b is the flow diagram of debugging function starting method shown according to an exemplary embodiment;
Fig. 2 a is the structural schematic diagram of debugging function starter shown according to an exemplary embodiment;
Fig. 2 b is the structural schematic diagram of debugging function starter shown according to an exemplary embodiment;
Fig. 2 c is the structural schematic diagram of debugging function starter shown according to an exemplary embodiment;
Fig. 2 d is the structural schematic diagram of debugging function starter shown according to an exemplary embodiment;
Fig. 2 e is the structural schematic diagram of debugging function starter shown according to an exemplary embodiment;
Fig. 3 is a kind of block diagram of device shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of device shown according to an exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
With the high speed development and continuous improvement of people's living standards of science and technology, in recent years, for example intelligent hand of terminal Machine, tablet computer, intelligent wearable device etc. start to be widely used in people's lives, debugging function be for connect terminal with The end PC, user can operate the end PC and carry out state configuration etc. to terminal by debugging function.
Due to not limiting excessively generally for debugging function at present, cause the permission of debugging function excessively high, usual situation Under, when the formal edition system of terminal operating, formal edition system will not active Start-up and Adjustment function, but user is needed to manually boot Debugging function.In the related technology, since the terminal frequency that debugging function is used when testing is higher, when terminal is transported When the formal edition system of row, if the debugging function in terminal can not start automatically, the efficiency that terminal is tested can be reduced, to damage User experience is done harm to.
To solve the above-mentioned problems, read-only interior by obtaining debugging version in the technical scheme provided by this disclosed embodiment Mirror image ROM file is deposited, and uses debugging version ROM file brush machine in terminal, to be installed in terminal and run debugging edition system.By Any restrictions are not carried out to installation application in debugging edition system, therefore automation assistance application can be installed in terminal, and will be from Dynamicization assistance application is set as self-starting when the terminal starts up.By the formal version space download technology OTA upgrade package of acquisition, and Terminal installs formal version OTA upgrade package, to be formal edition system by the debugging version system upgrade run in terminal, due to OTA Upgrading is the legacy data retained in terminal, therefore the automation assistance application installed before still remains in terminal, passes through Restart terminal, can make to automate assistance application self-starting with terminal starting, and answered by the automation of self-starting auxiliary With Start-up and Adjustment function, achievees the purpose that start the debugging function in terminal automatically when the formal edition system of terminal operating, mention The efficiency that high terminal is tested, improves user experience.
Embodiment of the disclosure provides a kind of debugging function starting method, and this method is applied to terminal, and terminal can be Smart phone, tablet computer, intelligent wearable device, as shown in Figure 1a, debugging function starting method include the following steps 101 To step 106:
In a step 101, debugging version read-only memory mirror image ROM file is obtained.
Wherein, debugging version ROM file is used for installation and debugging edition system.
Illustratively, debugging version ROM file is obtained, the debugging version of other device or systems transmission can be received for terminal ROM file, wherein terminal is connect by connecting line with other device or systems, or terminal reading is previously stored in terminal In debugging version ROM file.
In a step 102, debugging version ROM file brush machine is used in terminal.
In step 103, automation assistance application is installed in terminal.
Wherein, automation assistance application is used for Start-up and Adjustment function.
Illustratively, automation assistance application is installed in terminal, can be in terminal Start-up and Adjustment function, and pass through debugging The automation assistance application installation instruction that function receiving control apparatus is sent, controlling terminal is in response to automation assistance application installation Instruction, installation automation assistance application.Wherein control equipment can be the computer being connect by wired mode with terminal, can also Think other device or systems.For example, the debugging function can be tune when the system run in terminal is Android system It tries bridge (Android Debug Bridge, ADB), wherein ADB is a kind of Universal debugging tool applied to android system, It is divided into debugging services part built in Android system and PC end part, it can be used to the state of management equipment and carries out corresponding Operation, when being connect with the end PC by ADB equipped with the terminal of android system, user can operate the debugging tool at the end PC The debugging services of terminal built-in are connected by data line, so that controlling terminal equipment, can carry out software installation, system liter to equipment Grade, operation shell-command etc..
It should be noted that debugging version ROM file can be built-in for installing the installation file of automation assistance application, when The automation assistance application can be installed automatically when debugging edition system starting.For installing the installation file of automation assistance application It can be individual installation file, automation auxiliary can be installed using the installation file automatically when debugging edition system starting and answer With.
At step 104, self-starting when the terminal starts up is set by automation assistance application.
Illustratively, self-starting when the terminal starts up is set by automation assistance application, can is to install automation After assistance application, starts automation assistance application in terminal, be set as automation assistance application itself when the terminal starts up Self-starting.Self-starting when the terminal starts up is set by automation assistance application, or sets system corresponding in terminal It installs and is set to default setting, make the system in terminal that can start automation assistance application automatically after actuation.
In step 105, formal version space download technology OTA upgrade package is obtained.
Wherein, formal version OTA upgrade package is used to debugging version system upgrade be formal edition system.
Illustratively, formal version space download technology OTA upgrade package is obtained, other device or systems can be received for terminal The formal version OTA upgrade package sent, wherein terminal is connect by connecting line with other device or systems, or terminal is read The formal version OTA upgrade package being previously stored in terminal.
In step 106, formal version OTA upgrade package is installed in terminal, and restarts terminal.
Illustratively, formal version OTA upgrade package is installed in terminal, can is to be sent by debugging function receiving control apparatus The instruction of formal version OTA update, and controlling terminal installs formal version OTA upgrading in response to formal version OTA upgrade command Packet, wherein control equipment can be the computer being connect by wired mode with terminal, or other device or systems.
In the technical scheme provided by this disclosed embodiment, by acquisition debugging version read-only memory mirror image ROM file, and Terminal uses debugging version ROM file brush machine, to install in terminal and run debugging edition system.Since debugging edition system is not to peace Dress application carries out any restrictions, therefore can install automation assistance application in terminal, and set automation assistance application to Self-starting when the terminal starts up.Formal version OTA is installed by obtaining formal version space download technology OTA upgrade package, and in terminal Upgrade package, to be formal edition system by the debugging version system upgrade run in terminal, since OTA upgrading is retained in terminal Legacy data, therefore the automation assistance application installed before still remains in terminal, by restarting terminal, can make automatic Change assistance application as terminal starts and self-starting, and by the automation assistance application Start-up and Adjustment function of the self-starting, reaches The purpose for starting the debugging function in terminal automatically when the formal edition system of terminal operating improves the effect that terminal is tested Rate improves user experience.
In one embodiment, as shown in Figure 1 b, debugging function starting method further includes step 107:
In step 107, the hardware identifier of terminal is obtained.
Illustratively, the hardware identifier of terminal can be the international mobile equipment identification number of the terminal (International Mobile Equipment Identity, IMEI), or other hardware identifiers of the terminal, As long as the hardware identifier is used to indicate the hardware identity of the terminal.
In a step 101, debugging version read-only memory mirror image ROM file is obtained, can be realized by step 1011:
In step 1011, debugging version ROM file corresponding with the hardware identifier of terminal is obtained.
In step 105, formal version space download technology OTA upgrade package is obtained, can be realized by step 1051:
In step 1051, formal version OTA upgrade package corresponding with the hardware identifier of terminal is obtained.
By obtaining the hardware identifier of terminal, and debugging version ROM file corresponding with the hardware identifier of terminal is obtained, obtained Formal version OTA upgrade package corresponding with the hardware identifier of terminal, it can be ensured that at the terminal according to debugging version ROM file installation Debugging edition system, the formal edition system that is upgraded at the terminal according to the formal version OTA upgrade package will not be hard with the terminal Part generates conflict, avoids testing the success rate for improving test because of conflicting due to failure between system and hardware, improves user Experience.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.
Fig. 2 a is a kind of block diagram of the debugging function starter 20 shown according to an exemplary embodiment, debugging function Starter 20 can may be a part of terminal for terminal, and debugging function starter 20 can pass through software, hardware Or both be implemented in combination with as some or all of of electronic equipment.As shown in Figure 2 a, the debugging function starter 20 Include:
ROM obtains module 201, and for obtaining debugging version read-only memory mirror image ROM file, debugging version ROM file is for pacifying Adjustment test run system.
Brush machine module 202, for using debugging version ROM file brush machine in terminal.
Using installation module 203, for installing automation assistance application in terminal, automation assistance application is adjusted for starting Try function.
Using setup module 204, self-starting when the terminal starts up is set as assistance application will to be automated.
Upgrade package obtains module 205, for obtaining formal version space download technology OTA upgrade package, formal version OTA upgrade package For being formal edition system by debugging version system upgrade.
Upgrade package installs module 206, for installing formal version OTA upgrade package in terminal, and restarts terminal.
In one embodiment, as shown in Figure 2 b, debugging function starter 20 further include:
Hardware identifier obtains module 207, for obtaining the hardware identifier of terminal.
ROM obtains module 201, comprising:
ROM acquisition submodule 2011, for obtaining debugging version ROM file corresponding with the hardware identifier of terminal.
Upgrade package obtains module 205, comprising:
Upgrade package acquisition submodule 2051, for obtaining formal version OTA upgrade package corresponding with the hardware identifier of terminal.
In one embodiment, as shown in Figure 2 c, using installation module 203, comprising:
Debugging function promoter module 2031, in terminal Start-up and Adjustment function;
Installation instruction receiving submodule 2032, the automation auxiliary for being sent by debugging function receiving control apparatus are answered Use installation instruction.
Installation instruction responds submodule 2033, for controlling terminal in response to automating assistance application installation instruction, installation Automate assistance application.
In one embodiment, as shown in Figure 2 d, upgrade package installs module 206, including;
Upgrade command receiving submodule 2061, the formal version OTA liter for being sent by debugging function receiving control apparatus Grade installation instruction.
Upgrade command responds submodule 2062, for controlling terminal in response to formal version OTA upgrade command, installs formal version OTA upgrade package.
In one embodiment, as shown in Figure 2 e, using setup module 204, comprising:
Make automation assistance application will be certainly for starting automation assistance application in terminal using promoter module 2041 Body is set as self-starting when the terminal starts up.
Embodiment of the disclosure provides a kind of debugging function starter, which can pass through acquisition Debugging version read-only memory mirror image ROM file, and debugging version ROM file brush machine is used in terminal, to install and run in terminal Debug edition system.Since debugging edition system does not carry out any restrictions to installation application, it is auxiliary automation can be installed in terminal Application is helped, and sets self-starting when the terminal starts up for automation assistance application.By obtaining formal version space download technology OTA upgrade package, and formal version OTA upgrade package is installed in terminal, to be formal by the debugging version system upgrade run in terminal Edition system, since OTA upgrading is the legacy data retained in terminal, the automation assistance application installed before still retains At the terminal, by restarting terminal, can make to automate assistance application self-starting with terminal starting, and by the self-starting Assistance application Start-up and Adjustment function is automated, reaching opens the debugging function in terminal automatically when the formal edition system of terminal operating Dynamic purpose improves the efficiency that terminal is tested, improves user experience.
Fig. 3 is a kind of block diagram of debugging function starter 30 shown according to an exemplary embodiment, the debugging function Starter 30 can be terminal, or a part of terminal, debugging function starter 30 include:
Processor 301;
Memory 302 for 301 executable instruction of storage processor;
Wherein, processor 301 is configured as:
Debugging version read-only memory mirror image ROM file is obtained, debugging version ROM file is used for installation and debugging edition system;
Debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in terminal, automation assistance application is used for Start-up and Adjustment function;
Self-starting when the terminal starts up is set by automation assistance application;
Formal version space download technology OTA upgrade package is obtained, formal version OTA upgrade package for being by debugging version system upgrade Formal edition system;
Formal version OTA upgrade package is installed in terminal, and restarts terminal.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
Obtain the hardware identifier of terminal;
Obtain debugging version read-only memory mirror image ROM file, comprising:
Obtain debugging version ROM file corresponding with the hardware identifier of terminal;
Obtain formal version space download technology OTA upgrade package, comprising:
Obtain formal version OTA upgrade package corresponding with the hardware identifier of terminal.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
Automation assistance application is installed in terminal, comprising:
In terminal Start-up and Adjustment function;
The automation assistance application installation instruction sent by debugging function receiving control apparatus;
Controlling terminal is in response to automating assistance application installation instruction, installation automation assistance application.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
Formal version OTA upgrade package is installed in terminal, including;
The formal version OTA update instruction sent by debugging function receiving control apparatus;
Controlling terminal installs formal version OTA upgrade package in response to formal version OTA upgrade command.
In one embodiment, above-mentioned processor 301 can be additionally configured to:
Self-starting when the terminal starts up is set by automation assistance application, comprising:
Start automation assistance application in terminal, automation assistance application is made itself will to be set as opening certainly when the terminal starts up It is dynamic.
Embodiment of the disclosure provides a kind of debugging function starter, which can pass through acquisition Debugging version read-only memory mirror image ROM file, and debugging version ROM file brush machine is used in terminal, to install and run in terminal Debug edition system.Since debugging edition system does not carry out any restrictions to installation application, it is auxiliary automation can be installed in terminal Application is helped, and sets self-starting when the terminal starts up for automation assistance application.By obtaining formal version space download technology OTA upgrade package, and formal version OTA upgrade package is installed in terminal, to be formal by the debugging version system upgrade run in terminal Edition system, since OTA upgrading is the legacy data retained in terminal, the automation assistance application installed before still retains At the terminal, by restarting terminal, can make to automate assistance application self-starting with terminal starting, and by the self-starting Assistance application Start-up and Adjustment function is automated, reaching opens the debugging function in terminal automatically when the formal edition system of terminal operating Dynamic purpose improves the efficiency that terminal is tested, improves user experience.
Fig. 4 is a kind of block diagram of device 400 for Start-up and Adjustment function shown according to an exemplary embodiment, the dress It sets 400 and is suitable for terminal.For example, device 400 can be mobile phone, and computer, digital broadcasting terminal, messaging device, Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Device 400 may include following one or more components: processing component 402, memory 404, power supply module 406, Multimedia component 408, audio component 410, the interface 412 of input/output (I/O), sensor module 414 and communication component 416。
The integrated operation of the usual control device 400 of processing component 402, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing element 402 may include that one or more processors 420 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 402 may include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 may include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured not stored various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application or method for operating on device 400, contact data, and telephone book data disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 may include power management system System, one or more power supplys and other with for device 400 generate, manage, and distribute the associated component of electric power.
Multimedia component 408 includes the screen of one output interface of offer between device 400 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense the side of touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, multimedia group Part 408 includes a front camera and/or rear camera.When device 400 is in operation mode, such as screening-mode or video When mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition Camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 410 is configured as output and/or input audio signal.For example, audio component 410 includes a Mike Wind (MIC), when device 400 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 404 or via communication set Part 416 is sent.In some embodiments, audio component 410 further includes a loudspeaker, is used for output audio signal.
I/O interface 412 provides interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor module 414 can detecte the state that opens/closes of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor module 414 can be with 400 1 components of detection device 400 or device Position change, the existence or non-existence that user contacts with device 400,400 orientation of device or acceleration/deceleration and device 400 Temperature change.Sensor module 414 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 414 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as intercom private network, WiFi, 2G, 3G, 4G or 5G or their group It closes.In one exemplary embodiment, communication component 416 receives the broadcast from external broadcasting management system via broadcast channel Signal or broadcast related information.In one exemplary embodiment, the communication component 416 further includes near-field communication (NFC) mould Block, to promote short range communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) skill can be based in NFC module Art, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 404 of instruction, above-metioned instruction can be executed by the processor 420 of device 400 to complete the above method.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of device 400 When device executes, so that device 400 is able to carry out above-mentioned debugging function starting method, which comprises
Debugging version read-only memory mirror image ROM file is obtained, debugging version ROM file is used for installation and debugging edition system;
Debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in terminal, automation assistance application is used for Start-up and Adjustment function;
Self-starting when the terminal starts up is set by automation assistance application;
Formal version space download technology OTA upgrade package is obtained, formal version OTA upgrade package for being by debugging version system upgrade Formal edition system;
Formal version OTA upgrade package is installed in terminal, and restarts terminal.
In one embodiment, method further include:
Obtain the hardware identifier of terminal;
Obtain debugging version read-only memory mirror image ROM file, comprising:
Obtain debugging version ROM file corresponding with the hardware identifier of terminal;
Obtain formal version space download technology OTA upgrade package, comprising:
Obtain formal version OTA upgrade package corresponding with the hardware identifier of terminal.
In one embodiment, automation assistance application is installed in terminal, comprising:
In terminal Start-up and Adjustment function;
The automation assistance application installation instruction sent by debugging function receiving control apparatus;
Controlling terminal is in response to automating assistance application installation instruction, installation automation assistance application.
In one embodiment, formal version OTA upgrade package is installed in terminal, including;
The formal version OTA update instruction sent by debugging function receiving control apparatus;
Controlling terminal installs formal version OTA upgrade package in response to formal version OTA upgrade command.
In one embodiment, self-starting when the terminal starts up is set by automation assistance application, comprising:
Start automation assistance application in terminal, automation assistance application is made itself will to be set as opening certainly when the terminal starts up It is dynamic.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (12)

1. a kind of debugging function starts method characterized by comprising
Debugging version read-only memory mirror image ROM file is obtained, the debugging version ROM file is used for installation and debugging edition system;
The debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in the terminal, the automation assistance application is used for Start-up and Adjustment function;
The self-starting when the terminal starts is set by the automation assistance application;
Formal version space download technology OTA upgrade package is obtained, the formal version OTA upgrade package is used for the debugging edition system liter Grade is formal edition system;
The formal version OTA upgrade package is installed in the terminal, and restarts the terminal.
2. debugging function according to claim 1 starts method, which is characterized in that the method also includes:
Obtain the hardware identifier of the terminal;
The acquisition debugging version read-only memory mirror image ROM file, comprising:
Obtain debugging version ROM file corresponding with the hardware identifier of the terminal;
It is described to obtain formal version space download technology OTA upgrade package, comprising:
Obtain formal version OTA upgrade package corresponding with the hardware identifier of the terminal.
3. debugging function according to claim 1 starts method, which is characterized in that described install in the terminal automates Assistance application, comprising:
Start the debugging function in the terminal;
The automation assistance application installation instruction sent by the debugging function receiving control apparatus;
The terminal is controlled in response to the automation assistance application installation instruction, the automation assistance application is installed.
4. debugging function according to claim 3 starts method, which is characterized in that described described just in terminal installation Formula version OTA upgrade package, comprising:
The formal version OTA update instruction sent by the debugging function receiving control apparatus;
The terminal is controlled in response to the formal version OTA upgrade command, the formal version OTA upgrade package is installed.
5. debugging function according to claim 1 starts method, which is characterized in that the automation assistance application to be arranged For the self-starting when the terminal starts, comprising:
Start the automation assistance application in the terminal, is set as the automation assistance application will itself when the end The self-starting when starting of end.
6. a kind of debugging function starter characterized by comprising
ROM obtains module, and for obtaining debugging version read-only memory mirror image ROM file, the debugging version ROM file is adjusted for installing Test run system;
Brush machine module, for using the debugging version ROM file brush machine in terminal;
Using installation module, for installing automation assistance application in the terminal, the automation assistance application is for starting Debugging function;
Using setup module, for setting the self-starting when the terminal starts for the automation assistance application;
Upgrade package obtains module, and for obtaining formal version space download technology OTA upgrade package, the formal version OTA upgrade package is used In by the debugging version system upgrade be formal edition system;
Upgrade package installs module, for installing the formal version OTA upgrade package in the terminal, and restarts the terminal.
7. debugging function starter according to claim 6, which is characterized in that described device further include:
Hardware identifier obtains module, for obtaining the hardware identifier of the terminal;
The ROM obtains module, comprising:
ROM acquisition submodule, for obtaining debugging version ROM file corresponding with the hardware identifier of the terminal;
The upgrade package obtains module, comprising:
Upgrade package acquisition submodule, for obtaining formal version OTA upgrade package corresponding with the hardware identifier of the terminal.
8. debugging function starter according to claim 6, which is characterized in that module is installed in the application, comprising:
Debugging function promoter module, for starting the debugging function in the terminal;
Installation instruction receiving submodule, the automation assistance application peace for being sent by the debugging function receiving control apparatus Dress instruction;
Installation instruction responds submodule, for controlling the terminal in response to the automation assistance application installation instruction, installation The automation assistance application.
9. debugging function starter according to claim 8, which is characterized in that the upgrade package installs module, including;
Upgrade command receiving submodule, the formal version OTA for being sent by the debugging function receiving control apparatus upgrade peace Dress instruction;
Upgrade command responds submodule, and for controlling the terminal in response to the formal version OTA upgrade command, installation is described just Formula version OTA upgrade package.
10. debugging function starter according to claim 6, which is characterized in that described to apply setup module, comprising:
Make the automation assistance application for starting the automation assistance application in the terminal using promoter module It itself will be set as the self-starting when the terminal starts.
11. a kind of debugging function starter characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Debugging version read-only memory mirror image ROM file is obtained, the debugging version ROM file is used for installation and debugging edition system;
The debugging version ROM file brush machine is used in terminal;
Automation assistance application is installed in the terminal, the automation assistance application is used for Start-up and Adjustment function;
The self-starting when the terminal starts is set by the automation assistance application;
Formal version space download technology OTA upgrade package is obtained, the formal version OTA upgrade package is used for the debugging edition system liter Grade is formal edition system;
The formal version OTA upgrade package is installed in the terminal, and restarts the terminal.
12. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor The step of any one of claim 1-5 the method is realized when execution.
CN201811534486.1A 2018-12-14 2018-12-14 Debugging function starting method and device Active CN109710274B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811534486.1A CN109710274B (en) 2018-12-14 2018-12-14 Debugging function starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811534486.1A CN109710274B (en) 2018-12-14 2018-12-14 Debugging function starting method and device

Publications (2)

Publication Number Publication Date
CN109710274A true CN109710274A (en) 2019-05-03
CN109710274B CN109710274B (en) 2022-03-11

Family

ID=66256398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811534486.1A Active CN109710274B (en) 2018-12-14 2018-12-14 Debugging function starting method and device

Country Status (1)

Country Link
CN (1) CN109710274B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294514A (en) * 2013-06-26 2013-09-11 深圳Tcl新技术有限公司 System software release integrated method, compiling server and system
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium
CN108595214A (en) * 2018-04-11 2018-09-28 北京海杭通讯科技有限公司 Android user versions obtain the method and system of root privileges under SELinux compulsory modes

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103294514A (en) * 2013-06-26 2013-09-11 深圳Tcl新技术有限公司 System software release integrated method, compiling server and system
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium
CN108595214A (en) * 2018-04-11 2018-09-28 北京海杭通讯科技有限公司 Android user versions obtain the method and system of root privileges under SELinux compulsory modes

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LONGKG: ""开机自动打开USB调试模式和配置android为USB OTA模式"", 《HTTPS://BLOG.CSDN.NET/LONGKG/ARTICLE/DETAILS/8626271》 *

Also Published As

Publication number Publication date
CN109710274B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN104484200B (en) The method and device upgraded to firmware
CN105204894B (en) The method and apparatus for installing the plug-in unit of smart machine
US9886264B2 (en) Method and device for upgrading firmware
CN105553963B (en) The control method and device of positioning service
CN104951335B (en) The processing method and processing device of application program installation kit
CN105848190A (en) OTA upgrading method and apparatus
CN103927200B (en) Electronic equipment awakening method and relevant apparatus
CN105068848B (en) Method for upgrading system and device
EP3119037B1 (en) Method and apparatus for downloading a control program
CN104317647B (en) Application function implementation method, device and terminal
CN104657172A (en) System upgrading method and device
CN111277984A (en) Wireless local area network access method and device
EP3142337A1 (en) Method and apparatus for installing application and smart device using them
CN106612149B (en) Radio frequency circuit testing method, device and system and mobile terminal
CN107632835B (en) Application installation method and device
CN105677428A (en) Upgrading method and device for terminal and terminal
CN114416127A (en) Terminal software upgrading method, terminal software upgrading device and storage medium
CN104866349A (en) Application updating method and device
CN104038255A (en) Device connecting method and device
CN107071008A (en) Localization method, device and the equipment of terminal device
CN106255063A (en) Address sending method and equipment
CN105786561A (en) Process calling method and apparatus
CN109710274A (en) Debugging function starts method and device
CN109271292A (en) Power consumption information acquisition method and device
CN113727248A (en) Method, device and medium for playing audio by loudspeaker

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