[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109522174A - Control adb enabled method, apparatus, terminal and storage medium - Google Patents

Control adb enabled method, apparatus, terminal and storage medium Download PDF

Info

Publication number
CN109522174A
CN109522174A CN201811351753.1A CN201811351753A CN109522174A CN 109522174 A CN109522174 A CN 109522174A CN 201811351753 A CN201811351753 A CN 201811351753A CN 109522174 A CN109522174 A CN 109522174A
Authority
CN
China
Prior art keywords
adb
terminal
logo file
linked
control
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
CN201811351753.1A
Other languages
Chinese (zh)
Other versions
CN109522174B (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.)
Xian Wingtech Electronic Technology Co Ltd
Original Assignee
Xian Wingtech Electronic 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 Xian Wingtech Electronic Technology Co Ltd filed Critical Xian Wingtech Electronic Technology Co Ltd
Priority to CN201811351753.1A priority Critical patent/CN109522174B/en
Publication of CN109522174A publication Critical patent/CN109522174A/en
Application granted granted Critical
Publication of CN109522174B publication Critical patent/CN109522174B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of method, apparatus, terminal and storage mediums that control adb is enabled, wherein the described method includes: checking buffer area with the presence or absence of the logo file for identifying terminal factory reset after opening terminal;If there is no the logo file, then the end PC is linked to by USB device manager and system UI controlling terminal adb;If there is the logo file, then the end PC is linked to according to primary logic control terminal adb.It can avoid manually opening adb manually by tedious steps when producing line produces as a result, reduce human input, and improve production capacity.

Description

Control adb enabled method, apparatus, terminal and storage medium
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method, apparatus that control adb is enabled, terminal And storage medium.
Background technique
With developing for android system, in other platforms other than mobile phone, such as vehicle-mounted, plate, can Wearable device etc. has the carrying to Android, causes the exploitation demand of Android growing.
And increasing along with exploitation demand, the promotion of android number of devices, android equipment is produced in producing line Production capacity problem is also to become increasingly conspicuous.In producing line, it is often necessary to open adb (Android DebugBridge, Android debug bridge) Carry out some tests, debugging, series of validation, the acquisition of basic information, verification etc..However due to being finally published to terminal user's hand In android version, be all user version, wherein user version Android system default close adb function.Therefore it is directed to User version opens adb and point multistep is needed to carry out, specific operating procedure are as follows: 1. open setting;2. find " about mobile phone/flat Plate " option;3. finding software version number;4. developer's option is opened after quickly clicking for more than times;5. returning to previous menu, look for To developer's option and enter;6. finding " USB is allowed to debug " this option;7. link PC simultaneously clicks authorization.
And pass through the process that above-mentioned steps complete PC link adb, adb complex steps are opened, need to consume a large amount of manpower.
Summary of the invention
The embodiment of the invention provides a kind of method, apparatus, terminal and storage mediums that control adb is enabled, are subtracted with reaching The human input of this process of adb is manually opened in few producing line, improves the purpose of production capacity.
In a first aspect, the embodiment of the invention provides a kind of methods that control adb is enabled, comprising:
After opening terminal, check that buffer area whether there is the mark text for identifying terminal factory reset Part;
If there is no the logo file, then PC is linked to by USB device manager and system UI controlling terminal adb End;
If there is the logo file, then the end PC is linked to according to primary logic control terminal adb.
Optionally, the described the step of end PC is linked to by USB device manager and system UI controlling terminal adb, comprising:
Start the switch of the adb in the terminal by the USB device manager, terminal is made to be in adb linking scheme;
Adb is authorized by the system UI.
Optionally, described the step of adb is authorized by the system UI, comprising:
The example for obtaining USB management service by system UI, and adb is authorized based on the example, it simultaneously closes off The authorization frame of pop-up.
Optionally, after starting the adb switch in the terminal by USB device manager, the method also includes:
It obtains the system after opening adb switch and restores factory attribute information, and restore factory attribute letter according to the system Breath judges whether to adb Authorized operation.
Optionally, the method also includes:
After terminal completes factory reset operation, the logo file is constructed in system buffer.
Second aspect, the embodiment of the invention also provides a kind of devices that control adb is enabled, comprising:
Judgment module checks that buffer area whether there is and has restored to dispatch from the factory for identifying the terminal after opening terminal The logo file of setting;
First link module, for then passing through USB device manager and system UI control if there is no the logo file Terminal adb processed is linked to the end PC;
Second link module, for if there is the logo file, being then linked to according to primary logic control terminal adb The end PC.
Optionally, first link module includes:
Start unit is in terminal for starting the switch of the adb in the terminal by the USB device manager Adb linking scheme;
Authorization unit, for being authorized by the system UI to adb.
Optionally, the authorization unit is specifically used for:
The example for obtaining USB management service by system UI, and adb is authorized based on the example, it simultaneously closes off The authorization frame of pop-up.
Optionally, described device further include:
Judgment module is obtained, restores factory attribute information for obtaining the system after opening adb switch, and according to the system System restores factory attribute information and judges whether to adb Authorized operation.
Optionally, described device further include:
Module is constructed, after completing factory reset operation for terminal, constructs the logo file in system buffer.
The third aspect, the embodiment of the invention also provides a kind of terminals, comprising:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the control adb enabled method as described in any embodiment of the present invention.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the control adb enabled method as described in any embodiment of the present invention when the program is executed by processor.
A kind of control adb enabled method, device, terminal and storage medium provided in an embodiment of the present invention, it is slow by judging Area is rushed with the presence or absence of logo file, if it does not exist, then passes through USB device manager and system UI controlling terminal adb AutoLink To the end PC, i.e. adb default link to the end PC;Logo file if it exists then shows to have carried out over recovery default setting, that is, is completed Producing line production, then be linked to the end PC according to primary logic control terminal adb.With this, can avoid in producing line manually by cumbersome Step is opened manually, reduces human input, and improve production capacity.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for control adb enabled method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram for controlling adb enabled method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for control adb enabled device that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is the flow chart for the method that a kind of control adb that the embodiment of the present invention one provides is enabled, and the present embodiment is applicable The case where operation such as being tested, debugged, obtaining basic information, verification by the adb that opens a terminal in producing line, this method can To be executed by controlling adb enabled device accordingly, control adb enabled device can be real by the way of software and/or hardware It is existing, and be configured in terminal.
As shown in Figure 1, the control adb provided in the embodiment of the present invention enabled method may include:
S110, after opening terminal, check that buffer area whether there is the mark text for identifying terminal factory reset Part.
Wherein, buffer area refers to Android system buffer area, i.e. cache subregion, be mounted to/cache catalogue under, for saving The data and application program that system most frequentation is asked.
When producing line produces, terminal usually also needs terminal after the software of producing line line brush download user version Open adb and be linked to the end PC and tested, debugged, obtaining basic information and verification etc., finally by factory reset with Complete producing line production, wherein terminal is preferably Android device.And in order to improve the production capacity of producing line, need after opening terminal, That judge the progress of terminal previous step is the behaviour of operation or the factory reset of producing line line brush downloaduser version software Make, for different operating procedures, selects different modes to control adb and be linked to the end PC.Wherein, the end PC refers to for debugging end Hold the computer equipment of performance, such as computer.
After terminal completes factory reset operation, logo file is constructed, wherein the operation of factory reset is by extensive The station of multiple default setting is that recovery is completed.Further, in a specific embodiment, terminal restores factory Afterwards, increase/cache/recovery/last_wipedata is literary to construct mark in buffer area cache in recovery automatically Part, wherein logo file can be empty file, can also construct according to content is preset.As a result, after opening terminal, lead to Cross and check buffer area with the presence or absence of logo file for identifying terminal factory reset, that is, can determine terminal previous step into Capable operation, and the selection of the operation based on previous step executes step S120 or S130.
S120, if there is no logo file, then be linked to by USB device manager and system UI controlling terminal adb The end PC.
In the present embodiment, if logo file is not present in buffer area, show the progress of terminal previous step is producing line line brush The operation of download user version software, due to it is subsequent also need to carry out it is various test, debug or verify, in order to mention High producing line efficiency automatically opens adb after opening terminal and authorizes link permission, so that terminal adb is automatically linked to the end PC, entirely Link process does not need manpower intervention, illustratively, can by USB device manager (USB Device Manager, UDM) and System UI collective effect is linked to the end PC with controlling terminal adb.
S130, if there is logo file, then be linked to the end PC according to primary logic control terminal adb.
In the present embodiment, if what buffer area there are logo file, showed that terminal previous step carries out is to restore factory to set Operation is set, which completes producing line production, since user usually seldom links the end PC with adb, after starting terminal, closes The option that default opens adb is closed, it is subsequent if desired to be linked using adb, then PC is linked to according to primary logic control terminal adb End, wherein primary control logic refers to terminal by detecting and identify the operation that user carries out terminal, opening adb and awarding Power connection, that is to say and need manually to open manually by each step.
In the embodiment of the present invention, judge that buffer area with the presence or absence of logo file, if it does not exist, then passes through USB device management Device and system UI controlling terminal adb automatically link to the end PC, i.e. terminal adb default automatically links to the end PC;If it exists, then show Over recovery default setting has been carried out, that is, producing line production has been completed, then the logic control terminal adb primary according to Google is linked to The end PC.With this, it can avoid manually opening manually by tedious steps in producing line, reduce human input, and improve production capacity.
Embodiment two
Fig. 2 is a kind of flow diagram of method that control adb is enabled provided by Embodiment 2 of the present invention.The present embodiment with It is optimized based on above-described embodiment, as shown in Fig. 2, the control adb provided in the embodiment of the present invention enabled method includes:
S210, after opening terminal, check that buffer area whether there is the mark text for identifying terminal factory reset Part.
S220, made at terminal if there is no logo file by the adb switch in USB device manager starting terminal In adb linking scheme;Adb is authorized by system UI.
In the present embodiment, to ensure that terminal adb can automatically link to the end PC, USB device manager presets default chain Attribute is connect, illustratively, mtp (media transfer protocol, media biography of the USB device manager previously according to acquisition Defeated agreement), ptp (picture transfer protocol, picture transfer protocol), the default parameters any combination such as adb, make It obtains terminal device and a variety of different linking schemes is presented, select one of which as default link mode, for example, by mtp, adb As default connection mode.
If detecting that, there is no logo file in buffer area, USB device manager executes default link attribute, i.e., directly The middle adb switch that opens a terminal is connect, terminal is made to be in adb linking scheme.And system prop is set while opening adb switch Attribute, such as the recovery factory attribute of setting system, wherein prop attribute refers to the configuration category set when Android system operation Property, it is used so that the adb of next step is authorized.When specifically carrying out Authorized operation, the recovery of system is obtained from system prop attribute It dispatches from the factory attribute information (i.e. persist.sys.facreset attribute), if judging to restore factory attribute value for false, it is determined that eventually Holding previous action is line brush download user version software, and without carrying out the operation of over recovery default setting, is needed pair Adb further progress authorization, therefore after opening adb switch, system UI directly pops up authorization frame, and simultaneity factor UI obtains USB The example of management service, and Case-based Reasoning authorizes adb, illustratively, obtains USB_SERVICE example, passes through the reality Example, which executes, allows USB to debug (allowUsbDebugging) function, adb authorization can be realized, and be while completing authorization The authorization frame of pop-up is automatically closed in system UI, in this way, the terminal for having been turned on can be realized, terminal adb default is automatically linked to It PC sections, solves in the prior art after adb is chained, it is also necessary to which user is by manually clicking the problem of authorizing.
S230, if there is logo file, then be linked to the end PC according to primary logic control terminal adb.
In the embodiment of the present invention, if logo file is not present in buffer area, adb switch is opened by USB device manager, And adb is authorized by system UI, the end PC is automatically linked to by the two step controlling terminals adb, i.e. terminal adb is silent Recognize and automatically link to the end PC, thus can avoid manually opening manually by tedious steps in producing line, reduce human input, and mention High production capacity.
Embodiment three
Fig. 3 is the structural schematic diagram for the device that a kind of control adb that the embodiment of the present invention three provides is enabled.As shown in figure 3, The client includes:
Judgment module 310 checks that buffer area whether there is and has recovered for identifying the terminal after opening terminal The logo file of factory's setting;
First link module 320, for then passing through USB device manager and system UI if there is no the logo file Controlling terminal adb is linked to the end PC;
Second link module 330 is used for if there is the logo file, then according to primary logic control terminal adb chain It is connected to the end PC.
In the embodiment of the present invention, after starting terminal, if judgment module according to judge buffer area there is no logo file, First link module controlling terminal adb automatically links to the end PC, i.e. terminal adb default automatically links to the end PC;If it exists, then table It is bright to have carried out over recovery default setting, that is, producing line production, the then primary logic control of foundation Google of the second link module has been completed Terminal adb processed is linked to the end PC.With this, it can avoid manually opening manually by tedious steps in producing line, reduce human input, And improve production capacity.
On the basis of the various embodiments described above, the first link module includes:
Start unit makes terminal be in adb chain for starting the switch of the adb in the terminal by USB device manager Connect mode;
Authorization unit, for being authorized by system UI to adb.
Optionally, authorization unit is specifically used for:
The example for obtaining USB management service by system UI, and adb is authorized based on the example, it simultaneously closes off The authorization frame of pop-up.
On the basis of the various embodiments described above, the device further include:
Judgment module is obtained, restores factory attribute information for obtaining the system after opening adb switch, and extensive according to system Factory's attribute information of appearing again judges whether to adb Authorized operation.
On the basis of the various embodiments described above, the device further include:
Module is constructed, after completing factory reset operation for terminal, constructs logo file in system buffer.
Control provided by any embodiment of the invention can be performed in control adb enabled device provided by the embodiment of the present invention Adb enabled method has the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 4 is the structural schematic diagram for the terminal that the embodiment of the present invention four provides.Fig. 4, which is shown, to be suitable for being used to realizing the present invention The block diagram of the exemplary terminal 12 of embodiment.The terminal 12 that Fig. 4 is shown is only an example, should not be to the embodiment of the present invention Function and use scope bring any restrictions.
As shown in figure 4, terminal 12 is showed in the form of universal computing device.The component of terminal 12 may include but unlimited In one or more processor or processor 16, system storage 28, (including the system storage of different system components is connected Device 28 and processor 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Terminal 12 typically comprises a variety of computer system readable media.These media can be it is any can be by terminal 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Terminal 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 4 do not show, commonly referred to as " hard disk drive ").Although not shown in fig 4, use can be provided In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can It is connected with restoring factory by one or more data medium with bus 18.Memory 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention each The function of embodiment.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Terminal 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the terminal 12 communication, and/or with enable the terminal 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter, which can restore factory 22 by input/output (I/O), to carry out.Also, terminal 12 can also pass through network adapter 20 and one A or multiple networks (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.Such as figure Shown, network adapter 20 is communicated by bus 18 with other modules of terminal 12.It should be understood that although not shown in the drawings, can To combine terminal 12 to use other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing Device, external disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 16 is stored in system storage 28 by operation, thereby executing various function application and number According to processing, such as realize the method that control adb is enabled provided by the embodiment of the present invention, comprising:
After opening terminal, check buffer area with the presence or absence of the logo file for identifying terminal factory reset;
If there is no logo file, then the end PC is linked to by USB device manager and system UI controlling terminal adb;
If there is logo file, then the end PC is linked to according to primary logic control terminal adb.
In one embodiment, the program that processor 16 is stored in system storage 28 by operation, the control of realization Adb enabled method processed, further includes:
Start the adb switch in terminal by USB device manager, terminal is made to be in adb linking scheme;
Adb is authorized by system UI.
In one embodiment, the program that processor 16 is stored in system storage 28 by operation, the control of realization Adb processed enabled method, further includes:
The example for obtaining USB management service by system UI, and Case-based Reasoning authorizes adb, simultaneously closes off pop-up Authorization frame.
In one embodiment, the program that processor 16 is stored in system storage 28 by operation, the control of realization Adb processed enabled method, further includes:
It obtains the system after opening adb switch and restores factory attribute information, and restore factory attribute information according to system and sentence It is disconnected whether to carry out adb Authorized operation.
In one embodiment, the program that processor 16 is stored in system storage 28 by operation, the control of realization Adb processed enabled method, further includes: after terminal completes factory reset operation, construct logo file in system buffer.
Embodiment five
A kind of storage medium comprising computer executable instructions, computer executable instructions are provided in the embodiment of the present invention When being executed by computer processor for executing the enabled method of control adb, this method comprises:
After opening terminal, check buffer area with the presence or absence of the logo file for identifying terminal factory reset;
If there is no logo file, then the end PC is linked to by USB device manager and system UI controlling terminal adb;
If there is logo file, then the end PC is linked to according to primary logic control terminal adb.
In one embodiment, it can also be realized when which is executed by processor:
Start the adb switch in terminal by USB device manager, terminal is made to be in adb linking scheme;
Adb is authorized by system UI.
In one embodiment, it can also be realized when which is executed by processor:
The example for obtaining USB management service by system UI, and Case-based Reasoning authorizes adb, simultaneously closes off pop-up Authorization frame.
In one embodiment, it can also be realized when which is executed by processor:
It obtains the system after opening adb switch and restores factory attribute information, and restore factory attribute information according to system and sentence It is disconnected whether to carry out adb Authorized operation.
In one embodiment, it can also be realized when which is executed by processor:
After terminal completes factory reset operation, logo file is constructed in system buffer.
Certainly, a kind of storage medium comprising computer executable instructions provided in the embodiment of the present invention calculates The method operation that machine executable instruction is not limited to the described above, can also be performed application provided in any embodiment of that present invention Relevant operation in the enabled method of control adb.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on remote computer or terminal completely on the remote computer on the user computer.It is relating to And in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or extensively Domain net (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as provided using Internet service Quotient is connected by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of method that control adb is enabled characterized by comprising
After opening terminal, check buffer area with the presence or absence of the logo file for identifying terminal factory reset;
If there is no the logo file, then the end PC is linked to by USB device manager and system UI controlling terminal adb;
If there is the logo file, then the end PC is linked to according to primary logic control terminal adb.
2. the method according to claim 1, wherein described controlled eventually by USB device manager and system UI The step of end adb is linked to the end PC, comprising:
Start the switch of the adb in the terminal by the USB device manager, terminal is made to be in adb linking scheme;
Adb is authorized by the system UI.
3. according to the method described in claim 2, it is characterized in that, the step authorized by the system UI to adb Suddenly, comprising:
The example for obtaining USB management service by system UI, and adb is authorized based on the example, simultaneously close off pop-up Authorization frame.
4. according to the method described in claim 2, it is characterized in that, starting in the terminal by USB device manager After adb switch, the method also includes:
It obtains the system after opening adb switch and restores factory attribute information, and restore factory attribute information according to the system and sentence It is disconnected whether to carry out adb Authorized operation.
5. the method according to claim 1, wherein the method also includes:
After terminal completes factory reset operation, the logo file is constructed in system buffer.
6. a kind of device that control adb is enabled characterized by comprising
Judgment module checks that buffer area whether there is for identifying terminal factory reset after opening terminal Logo file;
First link module, for then passing through USB device manager and system UI control eventually if there is no the logo file End adb is linked to the end PC;
Second link module, for if there is the logo file, being then linked to PC according to primary logic control terminal adb End.
7. device according to claim 6, which is characterized in that first link module includes:
Start unit makes terminal be in adb chain for starting the switch of the adb in the terminal by the USB device manager Connect mode;
Authorization unit, for being authorized by the system UI to adb.
8. device according to claim 6, which is characterized in that described device further include:
Module is constructed, after completing factory reset operation for terminal, constructs the logo file in system buffer.
9. a kind of terminal, which is characterized in that the terminal includes:
One or more processors;
Memory, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as control adb enabled method as claimed in any one of claims 1 to 5.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor Such as control adb enabled method as claimed in any one of claims 1 to 5 is realized when execution.
CN201811351753.1A 2018-11-14 2018-11-14 Method, device, terminal and storage medium for controlling adb enabling Active CN109522174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811351753.1A CN109522174B (en) 2018-11-14 2018-11-14 Method, device, terminal and storage medium for controlling adb enabling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811351753.1A CN109522174B (en) 2018-11-14 2018-11-14 Method, device, terminal and storage medium for controlling adb enabling

Publications (2)

Publication Number Publication Date
CN109522174A true CN109522174A (en) 2019-03-26
CN109522174B CN109522174B (en) 2022-05-03

Family

ID=65776689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811351753.1A Active CN109522174B (en) 2018-11-14 2018-11-14 Method, device, terminal and storage medium for controlling adb enabling

Country Status (1)

Country Link
CN (1) CN109522174B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275807A (en) * 2019-06-21 2019-09-24 上海创功通讯技术有限公司 Detection method, system, equipment and the storage medium of smart machine
CN113742658A (en) * 2021-07-22 2021-12-03 深圳市智微智能科技股份有限公司 adb tool encryption method, system, terminal and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240154A1 (en) * 2005-09-29 2007-10-11 Eric Gerzymisch System and method for software integration and factory deployment
CN103246586A (en) * 2013-04-19 2013-08-14 福州瑞芯微电子有限公司 Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform
CN104572387A (en) * 2015-01-30 2015-04-29 青岛海信移动通信技术股份有限公司 Method and device for debugging terminal in engineering mode
CN104881283A (en) * 2015-05-20 2015-09-02 深圳市创维电器科技有限公司 Method and system for obtaining root privilege of terminal device based on android
CN104965776A (en) * 2015-07-29 2015-10-07 广东欧珀移动通信有限公司 Method and system for viewing logs when mobile terminal is in recovery mode
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium
US20180124150A1 (en) * 2016-10-28 2018-05-03 T-Mobile Usa, Inc. Remote access of cellular communication devices for software development and testing
CN108664349A (en) * 2018-05-18 2018-10-16 上海商米科技有限公司 Reconnection method and device, storage medium, the processor of double screen terminal
CN108804257A (en) * 2018-06-01 2018-11-13 Oppo广东移动通信有限公司 SOT state of termination detection method, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070240154A1 (en) * 2005-09-29 2007-10-11 Eric Gerzymisch System and method for software integration and factory deployment
CN103246586A (en) * 2013-04-19 2013-08-14 福州瑞芯微电子有限公司 Method for utilizing USB (universal serial bus) storage equipment for ADB (android debug bridge) debugging on android platform
CN104572387A (en) * 2015-01-30 2015-04-29 青岛海信移动通信技术股份有限公司 Method and device for debugging terminal in engineering mode
CN104881283A (en) * 2015-05-20 2015-09-02 深圳市创维电器科技有限公司 Method and system for obtaining root privilege of terminal device based on android
CN104965776A (en) * 2015-07-29 2015-10-07 广东欧珀移动通信有限公司 Method and system for viewing logs when mobile terminal is in recovery mode
US20180124150A1 (en) * 2016-10-28 2018-05-03 T-Mobile Usa, Inc. Remote access of cellular communication devices for software development and testing
CN107329865A (en) * 2017-06-29 2017-11-07 努比亚技术有限公司 Open debugging bridge adb functional methods, mobile terminal and computer-readable medium
CN108664349A (en) * 2018-05-18 2018-10-16 上海商米科技有限公司 Reconnection method and device, storage medium, the processor of double screen terminal
CN108804257A (en) * 2018-06-01 2018-11-13 Oppo广东移动通信有限公司 SOT state of termination detection method, device, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LOGTO1896: "Android恢复出厂设置保存文件标志位到 persist 分区", 《HTTPS://BLOG.CSDN.NET/UGLYCHILD/ARTICLE/DETAILS/79550700》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275807A (en) * 2019-06-21 2019-09-24 上海创功通讯技术有限公司 Detection method, system, equipment and the storage medium of smart machine
CN113742658A (en) * 2021-07-22 2021-12-03 深圳市智微智能科技股份有限公司 adb tool encryption method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN109522174B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
US20140245264A1 (en) Identifying Test Cases Based on Changed Test Code
CN110875858B (en) Application test data grabbing method, system, equipment and storage medium
CN111538659B (en) Interface testing method, system, electronic equipment and storage medium of business scene
CN110362488B (en) Page testing method and device, electronic equipment and storage medium
CN107404418B (en) Internet product testing method, device, equipment and storage medium
CN110209416A (en) Application software update method, device, terminal and storage medium
CN104978213B (en) Realize the link acquisition methods and device of application installation package
CN110188544A (en) Leak detection method and device, equipment and storage medium
CN112015654A (en) Method and apparatus for testing
CN110336781A (en) A kind of method and apparatus based on browser identification terminal uniqueness
CN109933530A (en) Components testing method and device, equipment and storage medium
CN111881054A (en) User interface automation test method, system, equipment and storage medium
CN108647499A (en) Method, device, equipment and storage medium for generating anti-copy check code
CN111414309A (en) Automatic test method of application program, computer equipment and storage medium
CN112131092A (en) Page debugging method and device
US20080313442A1 (en) Debugging techniques for a programmable integrated circuit
CN110659210A (en) Information acquisition method and device, electronic equipment and storage medium
CN109522174A (en) Control adb enabled method, apparatus, terminal and storage medium
CN106844182A (en) Method, system and mobile terminal for recording user behavior
CN110502345A (en) A kind of overload protection method, device, computer equipment and storage medium
CN108874441A (en) A kind of board configuration method, device, server and storage medium
CN113608997B (en) Remote debugging method and device for embedded webpage of application program and electronic equipment
CN114154153A (en) Malicious code detection method and device, electronic equipment and storage medium
CN110609786A (en) Software testing method and device, computer equipment and storage medium
CN109542864A (en) A kind of resource storage method, resource downloading method, system, equipment and medium

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