IP Library Granted Patent US 12664006
Granted Patent B2
US 12664006 · App. 18/573,859 · Granted Jun 23, 2026

Method, apparatus, device, computer-readable storage medium and product for displaying code

Inventor: Jian Liu (Beijing, CN)
Assignee: Beijing Zitiao Network Technology Co., Ltd.
G06F9/451G06F3/04817
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12664006
App. No.
18/573,859
Granted
Jun 23, 2026
Kind
B2
Abstract

Embodiments of the disclosure provide a method, apparatus, device, computer-readable storage medium and product for displaying code. The method includes: displaying, in a preset first display area, a screenshot interface of current display content of a target application software to be analyzed, and displaying at least one triggerable control in the screenshot interface; and in response to a triggering on a target triggerable control, displaying, in a preset second display area, code information corresponding to the triggered target triggerable control.

Claims (55)

1 . A method of displaying code, comprising:

displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, the at least one triggerable control corresponding to a first control in an interactive interface of the current display content of the application software, wherein the first control enables interactive operations on the current display content; and

in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control, wherein the first triggerable control is comprised in the at least one triggerable control.

2 . The method of claim 1 , before the displaying, in a first area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, further comprising:

in response to an analyzing instruction for the application software to be analyzed, obtaining code of the application software.

3 . The method of claim 1 , wherein the displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface comprises:

in response to a triggering on a data processing control, obtaining the interactive interface of the current display content of the application software and location information of the first control on the interactive interface; and

displaying, in the first display area, the screenshot interface of the current display content of the application software to be analyzed, and displaying the at least one triggerable control in the screenshot interface based on the interactive interface and the location information of the first control.

4 . The method of claim 1 , after in response to a triggering on a first triggerable control, further comprising:

displaying, in a third display area, at least one triggerable icon corresponding to the first triggerable control, each of the at least one triggerable icon corresponding to operation code of a type of the first triggerable control.

5 . The method of claim 4 , wherein in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control in the screenshot interface, displaying, in the second display area, the code information corresponding to the first triggerable control, or,

in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control in the screenshot interface, determining whether a first triggerable icon is triggered; and

in response to a determination that the first triggerable icon is triggered, displaying, in the second display area, the operation code of the type corresponding to the first triggerable control, the first triggerable icon being associated with the type.

6 . The method of claim 4 , wherein the type comprises one or more of a code declaration type, a click event type, or a layout file type.

7 . The method of claim 1 , before the displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, further comprising:

running a plurality of pieces of pre-embedded analyzing code based on the triggering; and

determining position of code information of a triggerable function corresponding to respective triggerable controls by function call stack while running the plurality of pieces of analyzing code.

8 . The method of claim 7 , wherein in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control, obtaining and displaying the code information corresponding to the first triggerable control based on the position of the code information of the function corresponding to the first triggerable control.

9 . The method of claim 7 , before the displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, further comprising:

displaying, in a fourth display area, an icon of function corresponding to the first control.

10 . The method of claim 9 , wherein the displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on any icon of function, displaying, in the second display area, the code information corresponding to the icon of function.

11 . The method of claim 1 , wherein in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control, sending a broadcast instruction to a software development kit to cause the software development kit to obtain the code information corresponding to the first triggerable control based on the broadcast instruction.

12 . The method of claim 1 , after in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control, further comprising:

in response to a triggered code modification instruction, storing modified code information to a storage path.

13 . The method of claim 1 , after in response to a triggering on any triggerable control, displaying, in the second display area, the code information corresponding to the first triggerable control, further comprising:

in response to a triggered editing instruction, displaying a control editing interface corresponding to the first triggerable control on a display interface, the control editing interface comprising a property to be edited corresponding to the first triggerable control;

obtaining editing data input in the control editing interface and generating an editing instruction based on the editing data; and

performing a property editing on the first triggerable control based on the editing instruction.

14 . An electronic device, comprising:

at least one processor and a memory;

wherein the memory stores a computer executable instruction; and

wherein the at least one processor executes the computer executable instruction stored in the memory, causing the at least one processor to implement a method comprising:

displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, the at least one triggerable control corresponding to a first control in an interactive interface of the current display content of the application software, wherein the first control enables interactive operations on the current display content; and

in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control, wherein the first triggerable control is comprised in the at least one triggerable control.

15 . The electronic device of claim 14 , before the displaying, in a first area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, further comprising:

in response to an analyzing instruction for the application software to be analyzed, obtaining code of the application software.

16 . The electronic device of claim 14 , wherein the displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface comprises:

in response to a triggering on a data processing control, obtaining the interactive interface of the current display content of the application software and location information of the first control on the interactive interface; and

displaying, in the first display area, the screenshot interface of the current display content of the application software to be analyzed, and displaying the at least one triggerable control in the screenshot interface based on the interactive interface and the location information of the first control.

17 . The electronic device of claim 14 , after in response to a triggering on a first triggerable control, further comprising:

displaying, in a third display area, at least one triggerable icon corresponding to the first triggerable control, each of the at least one triggerable icon corresponding to operation code of a type of the first triggerable control.

18 . The electronic device of claim 17 , wherein in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control in the screenshot interface, displaying, in the second display area, the code information corresponding to the first triggerable control, or,

in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control comprises:

in response to the triggering on the first triggerable control in the screenshot interface, determining whether a first triggerable icon is triggered; and

in response to a determination that the first triggerable icon is triggered, displaying, in the second display area, the operation code of the type corresponding to the first triggerable control, the first triggerable icon being associated with the type.

19 . The electronic device of claim 17 , wherein the type comprises one or more of a code declaration type, a click event type, or a layout file type.

20 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores thereon a computer executable instruction which, when executed by a processor, implements a method comprising:

displaying, in a first display area, a screenshot interface of current display content of an application software to be analyzed, and displaying at least one triggerable control in the screenshot interface, the at least one triggerable control corresponding to a first control in an interactive interface of the current display content of the application software, wherein the first control enables interactive operations on the current display content; and

in response to a triggering on a first triggerable control, displaying, in a second display area, code information corresponding to the first triggerable control, wherein the first triggerable control is comprised in the at least one triggerable control.