CN104572387A - Method and device for debugging terminal in engineering mode - Google Patents

Method and device for debugging terminal in engineering mode Download PDF

Info

Publication number
CN104572387A
CN104572387A CN201510050052.4A CN201510050052A CN104572387A CN 104572387 A CN104572387 A CN 104572387A CN 201510050052 A CN201510050052 A CN 201510050052A CN 104572387 A CN104572387 A CN 104572387A
Authority
CN
China
Prior art keywords
adb
terminal
file
encrypt file
engineering mode
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.)
Pending
Application number
CN201510050052.4A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510050052.4A priority Critical patent/CN104572387A/en
Publication of CN104572387A publication Critical patent/CN104572387A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

An embodiment of the invention provides a method and a device for debugging a terminal in an engineering mode, and relates to the field of intelligent terminals. The device has an adb debugging function in the engineering mode, problems of the terminal in the engineering mode can be analyzed conveniently, and the terminal can be debugged. The method comprises the following steps of loading a guiding file in the engineering mode; starting the adb debugging function and configuring adb connection information of the terminal; controlling an adb port of the terminal to be opened; and mounting a system file partition in the engineering mode. The adb environment variables of an Android debugging bridge are stored in the guiding file and are used for indicating a storage path of a system file which is required when the adb debugging function is fulfilled; and the system file which is required when the adb debugging function is fulfilled is stored in the system file partition.

Description

The method of debug terminal and device under a kind of engineering mode
Technical field
The present invention relates to intelligent terminal neighborhood, particularly relate to method and the device of debug terminal under a kind of engineering mode.
Background technology
Engineering mode (i.e. Recovery pattern) is the pattern that one can be modified to the data or system using the device interior of Android (Android) operating system, can brush in the terminal into new Android operation system under engineering mode, or existing operating system backed up or upgrades, also can recover the Default Value of terminal at this.After entering engineering mode, first can run linux kernel (a kind of operating system nucleus of increasing income), then set, set up with the connection of required file, carry kernel file system, start master routine.This overlaps the operation such as upgrading, reset, backup that original mechanism can complete terminal.But debug function imperfection, log (daily record) is saved in cache (buffer memory) by only adjustment method exactly, then derives log problem analysis by developer from cache and debug.
State in the process that produced problem under engineering mode is debugged in realization; inventor finds that in prior art, at least there are the following problems: due to upgrading, often can run into various problem in reseting procedure, cannot start shooting as upgrading or after resetting, upgrade after some file permission changes, flower screen when using internal card to carry out storing, enter or exit engineering mode under engineering mode, upgrading reset unsuccessfully etc.But the log in existing engineering mode be added in system program by developer critical data is carried out obtaining and the code exported, in order to ensure the operational efficiency of system program, normal conditions log arranges less, and the data exported are less, if so there is various problem under engineering mode, only rely on analysis log to be difficult to orientation problem place, the debugging efficiency of developer can be affected like this.
Summary of the invention
Embodiments of the invention provide method and the device of debug terminal under a kind of engineering mode, make terminal possess adb debug function under engineering mode, are convenient to analyze terminal produced problem under engineering mode and debug.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, embodiments provides the method for debug terminal under a kind of engineering mode, comprising:
Load the boot files under engineering mode; Android debugging bridge adb environmental variance is stored in described boot files; Described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function;
Start adb debug function and configure the adb link information of described terminal, the adb port controlling described terminal is opened;
Carry system file subregion under engineering mode; The system file realized needed for adb debug function is stored in described system file subregion.
Second aspect, embodiments provides a kind of terminal, comprising:
Loading unit, for loading the boot files under engineering mode; Android debugging bridge adb environmental variance is stored in described boot files; Described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function;
Processing unit, for starting adb debug function and configuring the adb link information of described terminal, the adb port controlling described terminal is opened;
Carry unit, for carry system file subregion under engineering mode; The system file realized needed for adb debug function is stored in described system file subregion.
The method of debug terminal and device under a kind of engineering mode that the embodiment of the present invention provides, load the boot files under engineering mode; Start adb debug function and the adb link information of configurating terminal, the adb port controlling described terminal is opened; Carry system file subregion under engineering mode.Like this, by configuration adb environmental variance and under engineering mode carry system file make terminal can call the associated documents of adb under engineering mode by subregion, and by starting adb debug function and the adb link information of configurating terminal, the adb port of control terminal is opened and is made terminal can support adb debug function under engineering mode, possess adb debug function under finally making engineering mode, be convenient to analyze terminal produced problem under engineering mode and debug.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The schematic flow sheet of the method for debug terminal under a kind of engineering mode that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the method for debug terminal under the another kind of engineering mode that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the method for debug terminal under the another kind of engineering mode that Fig. 3 provides for the embodiment of the present invention;
The functional schematic of a kind of terminal that Fig. 4 provides for the embodiment of the present invention;
The functional schematic of the another kind of terminal that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide the method for debug terminal under a kind of engineering mode, as shown in Figure 1, comprising:
101, the boot files under engineering mode is loaded.
Wherein, described boot files is first file of described terminal loads under engineering mode, store Android debugging bridge adb environmental variance in described boot files, described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function.
It should be noted that, pattern that engineering mode recovers exactly (recovery).Can brush in the terminal into new Android operation system under engineering mode, or existing operating system is backed up or upgrades, also can in this factory reset.
It should be noted that, (Android Debug Bridge (debugging bridge) is a kind of important debugging acid in Android program to adb.DDMS (Dalvik Debug Monitor Service, the Dalvik virtual machine debugging monitor service in Android development environment) can be passed through by adb on the commissioning device be connected with terminal and carry out debug terminal.Can office terminal by adb, much can also operate terminal, as mounting software, system upgrade, operation shell (a kind of command analysis device) order etc.Adb port is the bridge connecting terminal and commissioning device, and user can be allowed comprehensively to operate terminal on commissioning device.
It should be noted that, boot files is after terminal enters engineering mode, and first file of loading, this file is used to indicate the ensuing executive routine of terminal.
It should be noted that, environmental variance specifically needs the store path of the file called under engineering mode.The store path that adb environmental variance specifically refers to store in boot files the system file realized needed for adb debug function is stored in boot files.The adb environmental variance of the storage in boot files is loaded in boot files before mobile phone dispatches from the factory or when mobile phone is upgraded.
Concrete, after terminal enters engineering mode, query guidance file, performs boot files.
102, start adb debug function the adb link information of configurating terminal, the adb port controlling described terminal is opened.
Concrete, start adb debug function and comprise: start adb linkage function, start adbd.
Wherein, adbd (adb daemon, the finger daemon of Android debugging bridge) refers to one section of program of running background in terminal, provides adb to serve for commissioning device runs.When terminal is connected correctly on commissioning device, the status indication of terminal is online by commissioning device; Otherwise for rolling off the production line, this means that commissioning device has found a terminal newly connected, but successfully can not be connected to the adbd of terminal.
Concrete, starting adb linkage function by calling adb link order, starting adbd by calling adbd enabled instruction.
Concrete, configuration adb link information comprises: stop adbd; Forbidding adb connects; Configurating terminal identification information; Start adb linkage function; Enable adb connects; Start adbd.
It should be noted that, start the function that adb linkage function refers to that in startup terminal, between terminal with commissioning device, adb is connected, terminal support is connected with the adb between commissioning device, exemplary, terminal with commissioning device between be connected by USB interface time, start the linkage function of the USB of terminal, can support to make terminal to be connected between commissioning device.Start the adbd of terminal at running background, to support that commissioning device is to the debugging of terminal.
It should be noted that, terminal identification information is used for this terminal of unique identification.The VID of such as terminal (Vendor IDentity (identification of the manufacturer) and PID (Product IDentity (product identification).
It should be noted that, when configurating terminal identification information, need first adb port shutdown to be stopped at the adbd of terminal operating, then can be configured terminal related information, again adb port opened after having configured and run the adbd in terminal.
It should be noted that, configuration adb link information refers to the control information that configurating terminal connects adb, can control to be connected with the adb of commissioning device and adb debug function to make terminal.
It should be noted that, complete the adb link information starting adb debug function and configurating terminal, just show the adb port opening terminal.Starting the order between adb debug function and this two step of adb link information of configurating terminal, can be first start adb debug function, then the adb link information of configurating terminal; Also can be the adb link information of first configurating terminal, restart adb debug function.The present invention does not limit this.
It should be noted that, start adb debug function after the adb link information of configurating terminal, this terminal just can open adb port under engineering mode, but now can't call the related command of adb, does not namely also possess adb debug function in execution.
103, carry system file subregion under engineering mode.
Wherein, the system file realized needed for adb debug function is stored in described system file subregion.
It should be noted that, under regular situation, terminal not any subregion of carry under engineering mode.
It should be noted that, although after step 101, terminal can know the memory address using adb debug function file used, after step 102, terminal possesses supports adb debug function, but because the system file realized needed for adb debug function is stored in system file subregion (system subregion), and to go out under regular situation in engineering mode terminal can not carry system file subregion, that is, under regular situation, terminal can not read the system file realized needed for adb debug function in engineering mode.So the present invention's carry system file subregion under engineering mode, with the associated documents making terminal can call adb, finally make commissioning device can debug terminal.
Embodiments provide the method for debug terminal under a kind of engineering mode, load the boot files under engineering mode; Start adb debug function and the adb link information of configurating terminal, the adb port controlling described terminal is opened; Carry system file subregion under engineering mode.Like this, by configuration adb environmental variance and under engineering mode carry system file make terminal can call the associated documents of adb under engineering mode by subregion, and by starting adb debug function and the adb link information of configurating terminal, the adb port of control terminal is opened and is made terminal can support adb debug function under engineering mode, possess adb debug function under finally making engineering mode, be convenient to analyze terminal produced problem under engineering mode and debug.
Embodiments provide the method for debug terminal under a kind of engineering mode, as shown in Figure 2, comprising:
201, the boot files under engineering mode is loaded.
Wherein, described boot files is first file of described terminal loads under engineering mode, stores Android debugging bridge adb environmental variance in described boot files.
Concrete, can refer step 101, do not repeat them here.
202, start adb debug function and configure the adb link information of described terminal, the adb port controlling described terminal is opened.
Concrete, can refer step 102, do not repeat them here.
203, determine whether described terminal stores encrypt file.
It should be noted that, owing to passing through adb debug function equipment to the reading of system file or amendment, in order to avoid domestic consumer passes through adb debug function to the amendment of system file, so adb debug function general tree domestic consumer is open, in order to realize controlling, can arrange encrypt file, terminal is only getting encrypt file, and can open adb port when judging that encrypt file is correct.
Generally, domestic consumer obtains less than encrypt file, only have developer or after-sales service personnel to get encrypt file, that is, generally only have developer or after-sales service personnel under engineering mode, to use adb debug function to debug to terminal.
It should be noted that, the result difference according to determining performs different steps, performs step 204, when terminal does not have storage encryption file, illustrate that terminal can not use adb debug function, now terminate when terminal storage has encrypt file.
Concrete, in fixing store path, search whether store the file identical with the filename preset.
204, when described terminal storage has encrypt file, determine that whether described encrypt file is correct.
Concrete, the content preset in the content in encrypt file and system can be compared, if the content that the content in encrypt file and system preset is identical, then determines that encrypt file is correct, otherwise determine encrypt file mistake; Also Hash calculation can be carried out by the content in encrypt file, obtain a cryptographic hash, the preset value in this cryptographic hash and system is compared, if this cryptographic hash is identical with the preset value in system, then determine that encrypt file is correct, otherwise determine encrypt file mistake.Certainly can also can determine the additive method whether a file is correct, the present invention does not limit this.
It should be noted that, encrypt file correctly then illustrates that now terminal can open adb port, can set up adb be connected to make terminal with commissioning device.
It should be noted that, the result difference according to determining performs different steps, when encrypt file is correct, performs step 205; When encrypt file mistake, terminate.
It should be noted that, step 202 and step 203) execution sequence the present invention of 204 do not limit.If first perform step 202, perform step 203 again) 204, now, when terminal is connected with commissioning device, the adb port of terminal is opened, user can see on commissioning device that adb port is opened, but now owing to not having carry system file subregion under engineering mode, user can not call the system file realized needed for adb debug function stored in the system file of terminal; If first perform step 203) 204, then perform step 202, now, when terminal is connected with commissioning device, the adb port of terminal is not also opened, and user can't see adb port on commissioning device.The present embodiment first performs step 202, then perform step 203) 204 for example.
205, the content in described encrypt file is correct, carry system file subregion under engineering mode.
Wherein, the system file realized needed for adb debug function is stored in described system file subregion.
Concrete, can refer step 103, do not repeat them here.
Embodiments provide the method for debug terminal under a kind of engineering mode, load the boot files under engineering mode; Start adb debug function and configure adb link information, the adb port controlling described terminal is opened; Determine whether described terminal stores encrypt file; When described terminal storage has encrypt file, determine that whether described encrypt file is correct; Content in described encrypt file is correct, carry system file subregion under engineering mode.Like this, by configuration adb environmental variance and under engineering mode carry system file make terminal can call the associated documents of adb under engineering mode by subregion, and by starting adb debug function and the adb link information of configurating terminal, the adb port of control terminal is opened and is made terminal can support adb debug function under engineering mode, possess adb debug function under finally making engineering mode, be convenient to analyze terminal produced problem under engineering mode and debug.Further, by introducing the unlatching of the adb debug function of encrypt file control terminal, the developer that can allow to obtain encrypt file like this debugs terminal according to adb connection under engineering mode, can also not be easily damaged by protection system file.
Embodiments provide the method for debug terminal under a kind of engineering mode, as shown in Figure 3, comprising:
301, the boot files under engineering mode is loaded.
Wherein, store Android debugging bridge adb environmental variance in described boot files, described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function.
Concrete, can refer step 101, do not repeat them here.
302, start adb debug function and configure adb link information, the adb port controlling described terminal is opened.
Concrete, can refer step 102, do not repeat them here.
303, determine whether described terminal stores the first encrypt file or the second encrypt file.
It should be noted that, in system file subregion, store the system file realized needed for adb debug function.Realize adb debug function and need terminal carry system file subregion under engineering mode.
Under engineering mode, terminal may carry out system upgrade, formatting system partitions of file is needed in the process of upgrading, if now first carry system file subregion, open debug function, then can due to terminal carry system file subregion, cannot formatting system partitions of file, finally cause upgrading unsuccessfully.So when under engineering mode, terminal needs to carry out system upgrade, just can not when entering engineering mode carry system file subregion immediately, but after upgrading successfully, then carry system file subregion, open adb debug function.
It should be noted that, the encrypt file in the present embodiment has two kinds, i.e. the first encrypt file and the second encrypt file.When terminal storage has the first correct encrypt file, illustrate that terminal does not carry out system upgrade, only need to debug, the adb port now directly controlling described terminal is opened, and under engineering mode carry system file subregion; When terminal storage has the second correct encrypt file, illustrate that terminal needs to carry out system upgrade, now terminal first carries out system upgrade, opens controlling the adb port of described terminal after having upgraded, and under engineering mode carry system file subregion.
It should be noted that, the first encrypt file is two files that content is different with the second encryption, generally, there is terminal when two files are different.Certainly, also can arrange priority, when making to store the first encrypt file and the second encrypt file in terminal, prioritizing selection uses the second encrypt file simultaneously.
It should be noted that, different according to the result determined, perform different steps.When determining that terminal storage has the first encrypt file, perform step 304a and 305a; When determining that terminal storage has the second encrypt file, perform step 304b and 305b; When determine terminal both do not stored the first encrypt file do not store the second encrypt file yet, illustrate and by the mode of adb, this terminal do not debugged, now terminate.
304a, when described terminal storage has described first encrypt file, determine that whether described first encrypt file is correct.
Concrete, determine the method whether the first encrypt file is correct, can determine not repeat them here the process whether encrypt file is correct in refer step 204.
304b, when described terminal storage has described second encrypt file, determine that whether described second encrypt file is correct.
Concrete, determine the method whether the second encrypt file is correct, can determine not repeat them here the process whether encrypt file is correct in refer step 204.
305a, when described first encrypt file is correct, carry system file subregion under engineering mode.
It should be noted that, when the first encrypt file is correct, illustrate that terminal does not now carry out system upgrade, now can direct carry system file subregion under engineering mode.
Concrete, the method for carry system file subregion under engineering mode, can refer step 103, does not repeat them here.
305b, when described second encrypt file is correct, upgrade-system file, and under engineering mode carry system file subregion.
It should be noted that, when the second encrypt file is correct, illustrates and need to carry out system upgrade after terminal enters engineering mode, now can first upgrade-system file, then carry system file subregion under engineering mode.
Concrete, the method for upgrade-system file is identical with the method for upgrade-system file in prior art, does not repeat them here.The method of carry system file subregion under engineering mode, can refer step 103, does not repeat them here.
Embodiments provide the method for debug terminal under a kind of engineering mode, load the boot files under engineering mode; Start adb debug function and configure adb link information, the adb port controlling described terminal is opened; Determine whether described terminal stores the first encrypt file or the second encrypt file; When described terminal storage has described first encrypt file and the first encrypt file is correct, carry system file subregion under engineering mode; When described terminal storage has described second encrypt file and the second encrypt file is correct, upgrade-system file, and under engineering mode carry system file subregion, both ensured the successful upgrading of system file, also ensure upgrading complete after terminal possess adb debug function.Like this, by configuration adb environmental variance and under engineering mode carry system file make terminal can call the associated documents of adb under engineering mode by subregion, and by starting adb debug function and the adb link information of configurating terminal, the adb port of control terminal is opened and is made terminal can support adb debug function under engineering mode, possess adb debug function under finally making engineering mode, be convenient to analyze terminal produced problem under engineering mode and debug.Further, by introducing two kinds of encrypt files, while developer can not only be made to debug under engineering mode terminal according to adb connection, protection system file is not easily damaged, and can also control to open adb debug function after upgrading completes.
As shown in Figure 4, the functional schematic of its a kind of terminal provided for the embodiment of the present invention.Shown in figure 4, this terminal comprises: loading unit 401, processing unit 402 and carry unit 403.
Loading unit 401, for loading the boot files under engineering mode.
Wherein, store Android debugging bridge adb environmental variance in boot files, adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function.
Processing unit 402, for starting adb debug function and configuring the adb link information of described terminal, the adb port controlling described terminal is opened.
Further, described processing unit 402, specifically for starting adb linkage function; Described processing unit 402, specifically for starting the finger daemon adbd of Android debugging bridge.
Further, described processing unit 402, specifically for stopping described adbd; Described processing unit 402, connects specifically for forbidding adb; Described processing unit 402, specifically for configurating terminal identification information; Described processing unit 402, specifically for starting adb linkage function; Described processing unit 402, connects specifically for enable described adb; Described processing unit 402, specifically for starting described adbd.
Carry unit 403, for carry system file subregion under engineering mode.
Wherein, the system file realized needed for adb debug function is stored in system file subregion.
Further, on the basis of Fig. 4, this terminal also comprises as shown in Figure 5: determining unit 404.
Described determining unit 404, for determining whether described terminal stores encrypt file;
Described determining unit 404, also for when described terminal storage has encrypt file, determines that whether described encrypt file is correct;
Described carry unit 403, correct specifically for the content in described encrypt file, carry system file subregion under engineering mode.
Further, described encrypt file comprises: the first encrypt file or the second encrypt file;
Accordingly, described determining unit 404, specifically for determining whether described terminal stores the first encrypt file or the second encrypt file;
Described determining unit 404, specifically for when described terminal storage has described first encrypt file, determines that whether described first encrypt file is correct; Or, when described terminal storage has described second encrypt file, determine that whether described second encrypt file is correct;
Described carry unit 403, specifically for when described first encrypt file is correct, system file subregion described in carry under engineering mode;
Or, described carry unit 403, specifically for when described second encrypt file is correct, upgrade-system file, and under engineering mode system file subregion described in carry.
Embodiments provide a kind of terminal, load the boot files under engineering mode; Start adb debug function and the adb link information of configurating terminal, the adb port controlling described terminal is opened; Carry system file subregion under engineering mode.Like this, by configuration adb environmental variance and under engineering mode carry system file make terminal can call the associated documents of adb under engineering mode by subregion, and by starting adb debug function and the adb link information of configurating terminal, the adb port of control terminal is opened and is made terminal can support adb debug function under engineering mode, possess adb debug function under finally making engineering mode, be convenient to analyze terminal produced problem under engineering mode and debug.Further, by introducing two kinds of encrypt files, while developer can not only be made to debug under engineering mode terminal according to adb connection, protection system file is not easily damaged, and can also control to open adb debug function after upgrading completes.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that hardware also can be adopted to add SFU software functional unit realizes.
The above-mentioned integrated unit realized with the form of SFU software functional unit, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (Read-Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. the method for debug terminal under engineering mode, is characterized in that, comprising:
Load the boot files under engineering mode; Android debugging bridge adb environmental variance is stored in described boot files; Described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function;
Start adb debug function and configure the adb link information of described terminal, the adb port controlling described terminal is opened;
Carry system file subregion under engineering mode; The system file realized needed for adb debug function is stored in described system file subregion.
2. method according to claim 1, is characterized in that, before carry system file subregion, also comprises under engineering mode described:
Determine whether described terminal stores encrypt file;
When described terminal storage has encrypt file, determine that whether described encrypt file is correct;
Described under engineering mode carry system file subregion comprise:
Content in described encrypt file is correct, system file subregion described in carry under engineering mode.
3. method according to claim 2, is characterized in that, described encrypt file comprises: the first encrypt file or the second encrypt file;
Describedly determine whether described terminal stores encrypt file and comprise:
Determine whether described terminal stores described first encrypt file or described second encrypt file;
Described when described terminal storage has encrypt file, determine whether described encrypt file correctly comprises:
When described terminal storage has described first encrypt file, determine that whether described first encrypt file is correct;
Or, when described terminal storage has described second encrypt file, determine that whether described second encrypt file is correct;
Described content in described encrypt file is correct, under engineering mode, carry system file subregion comprises:
When described first encrypt file is correct, system file subregion described in carry under engineering mode;
Or, when described second encrypt file is correct, upgrade-system file, and under engineering mode system file subregion described in carry.
4. method according to claim 1, is characterized in that, described startup adb debug function comprises:
Start adb linkage function, and start the finger daemon adbd of Android debugging bridge.
5. method according to claim 1, is characterized in that, the adb link information of the described terminal of described configuration comprises:
Stop described adbd;
Forbidding adb connects;
Configurating terminal identification information;
Start adb linkage function;
Enable described adb connects;
Start described adbd.
6. a terminal, is characterized in that, comprising:
Loading unit, for loading the boot files under engineering mode; Android debugging bridge adb environmental variance is stored in described boot files; Described adb environmental variance is used to indicate the store path of the system file realized needed for adb debug function;
Processing unit, for starting adb debug function and configuring the adb link information of described terminal, the adb port controlling described terminal is opened;
Carry unit, for carry system file subregion under engineering mode; The system file realized needed for adb debug function is stored in described system file subregion.
7. terminal according to claim 6, is characterized in that, also comprises: determining unit;
Described determining unit, for determining whether described terminal stores encrypt file;
Described determining unit, also for when described terminal storage has encrypt file, determines that whether described encrypt file is correct;
Described carry unit, correct specifically for the content in described encrypt file, carry system file subregion under engineering mode.
8. terminal according to claim 7, is characterized in that, described encrypt file comprises: the first encrypt file or the second encrypt file;
Described determining unit, specifically for determining whether described terminal stores described first encrypt file or described second encrypt file;
Described determining unit, specifically for when described terminal storage has described first encrypt file, determines that whether described first encrypt file is correct; Or, when described terminal storage has described second encrypt file, determine that whether described second encrypt file is correct;
Described carry unit, specifically for when described first encrypt file is correct, system file subregion described in carry under engineering mode;
Or, described carry unit, specifically for when described second encrypt file is correct, upgrade-system file, and under engineering mode system file subregion described in carry.
9. terminal according to claim 6, is characterized in that,
Described processing unit, specifically for starting adb linkage function;
Described processing unit, specifically for starting the finger daemon adbd of Android debugging bridge.
10. terminal according to claim 6, is characterized in that,
Described processing unit, specifically for stopping described adbd;
Described processing unit, connects specifically for forbidding adb;
Described processing unit, specifically for configurating terminal identification information;
Described processing unit, specifically for starting adb linkage function;
Described processing unit, connects specifically for enable described adb;
Described processing unit, specifically for starting described adbd.
CN201510050052.4A 2015-01-30 2015-01-30 Method and device for debugging terminal in engineering mode Pending CN104572387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510050052.4A CN104572387A (en) 2015-01-30 2015-01-30 Method and device for debugging terminal in engineering mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510050052.4A CN104572387A (en) 2015-01-30 2015-01-30 Method and device for debugging terminal in engineering mode

Publications (1)

Publication Number Publication Date
CN104572387A true CN104572387A (en) 2015-04-29

Family

ID=53088521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510050052.4A Pending CN104572387A (en) 2015-01-30 2015-01-30 Method and device for debugging terminal in engineering mode

Country Status (1)

Country Link
CN (1) CN104572387A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965776A (en) * 2015-07-29 2015-10-07 广东欧珀移动通信有限公司 Method and system for viewing logs when mobile terminal is in recovery mode
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device
CN107169053A (en) * 2017-04-26 2017-09-15 青岛海信移动通信技术股份有限公司 log information deriving method and device
CN107239493A (en) * 2017-04-28 2017-10-10 努比亚技术有限公司 Mobile terminal and its offline logs processing method, computer-readable recording medium
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN109089252A (en) * 2018-09-26 2018-12-25 广州高清视信数码科技股份有限公司 A kind of adb connection control method, system and the device of Android intelligent equipment
CN109522174A (en) * 2018-11-14 2019-03-26 西安闻泰电子科技有限公司 Control adb enabled method, apparatus, terminal and storage medium
CN109885356A (en) * 2019-02-21 2019-06-14 歌尔科技有限公司 ADB debugs port open method, apparatus, Android device and readable storage medium storing program for executing
CN110175054A (en) * 2019-04-26 2019-08-27 武汉虹信通信技术有限责任公司 A kind of automatic-calling method and system of system file
CN111427740A (en) * 2020-02-05 2020-07-17 香港乐蜜有限公司 Development environment maintenance method and device for mobile terminal
CN112306374A (en) * 2019-07-31 2021-02-02 深圳Tcl新技术有限公司 Data clearing method, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853157A (en) * 2010-05-14 2010-10-06 中国科学院软件研究所 Automatic identification method for application software GUI object
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
CN103268439A (en) * 2013-04-19 2013-08-28 北京网秦天下科技有限公司 Method executed outside mobile terminal for detecting safety of mobile terminal and corresponding equipment
WO2013174169A1 (en) * 2012-05-25 2013-11-28 惠州Tcl移动通信有限公司 Upgrade method for capacitive screen firmware of android mobile terminal
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853157A (en) * 2010-05-14 2010-10-06 中国科学院软件研究所 Automatic identification method for application software GUI object
CN102419732A (en) * 2011-12-27 2012-04-18 Tcl集团股份有限公司 Android-platform-based automated testing method and testing tool
WO2013174169A1 (en) * 2012-05-25 2013-11-28 惠州Tcl移动通信有限公司 Upgrade method for capacitive screen firmware of android mobile terminal
US20140211021A1 (en) * 2013-01-25 2014-07-31 Samsung Electronics Co., Ltd. Test system for evaluating mobile device and driving method thereof
CN103268439A (en) * 2013-04-19 2013-08-28 北京网秦天下科技有限公司 Method executed outside mobile terminal for detecting safety of mobile terminal and corresponding equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZCLONGEMBEDDED的专栏: "recovery模式下如何使用adb进行调试和抓取recovery LOG", 《HTTP://BLOG.CSDN.NET/ZCLONGEMBEDDED/ARTICLE/DETAILS/10148543》 *
鸡啄米: "Android调试工具adb的使用详解", 《HTTP://WWW.JIZHUOMI.COM/ANDROID/ENVIRONMENT/76.HTML》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104965776A (en) * 2015-07-29 2015-10-07 广东欧珀移动通信有限公司 Method and system for viewing logs when mobile terminal is in recovery mode
CN104965776B (en) * 2015-07-29 2018-03-09 广东欧珀移动通信有限公司 Mobile terminal checks the method and system of daily record in recovery mode
CN105183517A (en) * 2015-09-14 2015-12-23 广东欧珀移动通信有限公司 Method and device for mounting external storage equipment in recovery mode and electronic device
CN107544900A (en) * 2016-06-27 2018-01-05 北京优朋普乐科技有限公司 Android device and its open method and device, control system for debugging bridge
CN107169053A (en) * 2017-04-26 2017-09-15 青岛海信移动通信技术股份有限公司 log information deriving method and device
CN107239493A (en) * 2017-04-28 2017-10-10 努比亚技术有限公司 Mobile terminal and its offline logs processing method, computer-readable recording medium
CN109089252A (en) * 2018-09-26 2018-12-25 广州高清视信数码科技股份有限公司 A kind of adb connection control method, system and the device of Android intelligent equipment
CN109522174A (en) * 2018-11-14 2019-03-26 西安闻泰电子科技有限公司 Control adb enabled method, apparatus, terminal and storage medium
CN109885356A (en) * 2019-02-21 2019-06-14 歌尔科技有限公司 ADB debugs port open method, apparatus, Android device and readable storage medium storing program for executing
CN110175054A (en) * 2019-04-26 2019-08-27 武汉虹信通信技术有限责任公司 A kind of automatic-calling method and system of system file
CN112306374A (en) * 2019-07-31 2021-02-02 深圳Tcl新技术有限公司 Data clearing method, mobile terminal and storage medium
CN111427740A (en) * 2020-02-05 2020-07-17 香港乐蜜有限公司 Development environment maintenance method and device for mobile terminal

Similar Documents

Publication Publication Date Title
CN104572387A (en) Method and device for debugging terminal in engineering mode
US8943302B2 (en) Method of flashing bios using service processor and computer system using the same
US8423991B2 (en) Embedded network device and firmware upgrading method
US9703635B2 (en) Method, computer program, and computer for restoring set of variables
US20100058314A1 (en) Computer System and Related Method of Logging BIOS Update Operation
US9766876B2 (en) Methods of updating software components, computer systems and memory apparatus
CN102135893A (en) Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server
CN102945173A (en) User program on-line upgrading system and method
CN110413230A (en) A kind of embedded system construction method and storage medium
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
CN101807152A (en) Basic output and input system for self verification of selection read only memory and verification method thereof
CN109582332B (en) System upgrading method and device for Internet camera
CN103970564A (en) Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN111371610A (en) Network card firmware batch refreshing method, system, terminal and storage medium
CN101639877B (en) Electronic device and method for updating basic input and output system thereof
CN107220085B (en) Method for automatically upgrading RAID card firmware
CN113315675B (en) White box switch U-Boot automatic testing method, system and storage medium
CN106528114B (en) Android firmware application device and android firmware upgrading method
WO2018166322A1 (en) Repairing method and device for system partition
CN113377586A (en) Automatic server detection method and device and storage medium
CN115437668A (en) Development and design method and system for tool for batch production of SSD
CN115421750A (en) Method, device, terminal and storage medium for noninductive upgrading of server firmware
CN115906046A (en) Trusted computing system and measurement method based on trusted computing system
CN113778485A (en) System operation method and device of electronic chip, electronic chip and storage medium
CN108052337A (en) A kind of firmware upgrade method and device of eMMC production tools

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150429

RJ01 Rejection of invention patent application after publication