Modifying mobile application binaries to call external libraries
AssigneeCA, Inc.
InventorNishant Thorat
Life of this patent
Estimating the term…
Abstract
A method includes determining a system library method based on a configuration file in an application library. The method also includes generating a wrapper method for the system library method, wherein the wrapper method includes a first instruction to invoke the system library method, and a second instruction to invoke a method in an external library. The method further includes replacing a third instruction that invokes the system library method with a fourth instruction that invokes the wrapper method. A binary class in a plurality of binary classes in the application library comprises the third instruction.
Claims20
A method, comprising:
- determining a system library method based on a configuration file in an application library;
- generating a wrapper method for the system library method, wherein the wrapper method comprises:
- a first instruction to invoke the system library method;
- and
- a second instruction to invoke a method in an external library;
- and
- replacing a third instruction that invokes the system library method with a fourth instruction that invokes the wrapper method, wherein a binary class in a plurality of binary classes in the application library comprises the third instruction.
A computer configured to access a storage device, the computer comprising:
- a processor;
- and
- a non-transitory, computer-readable storage medium storing computer-readable instructions that when executed by the processor cause the computer to perform:
- determining a system library method based on a configuration file in an application library;
- generating a wrapper method for the system library method, wherein the wrapper method comprises:
- a first instruction to invoke the system library method;
- and
- a second instruction to invoke a method in an external library;
- and
- replacing a third instruction that invokes the system library method with a fourth instruction that invokes the wrapper method, wherein a binary class in a plurality of binary classes in the application library comprises the third instruction.
A computer program product comprising:
- a computer-readable storage medium having computer-readable program code embodied therewith, the computer-readable program code comprising:
- computer-readable program code configured to determine a system library method based on a configuration file in an application library;
- computer-readable program code configured to generate a wrapper method for the system library method, wherein the wrapper method comprises:
- a first instruction to invoke the system library method;
- and
- a second instruction to invoke a method in an external library;
- and
- computer-readable program code configured to replace a third instruction that invokes the system library method with a fourth instruction that invokes the wrapper method, wherein a binary class in a plurality of binary classes in the application library comprises the third instruction.
Dependencies are inferred from the claim text.