Application Version Address Resolution via Script Mediator
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
When multiple versions of an application program are stored in a terminal device, it is difficult for the device to distinguish between them, leading to inconsistencies between the linked operation address and the actually used operation address, which can result in the application program not operating normally.
Innovation Solution
A method is provided to determine the target version of an application program, obtain parameter information from both the linker and the bootloader, and calculate the target memory address of the executed script file, ensuring that the application program can operate correctly even if the actual operation address differs from the linked address.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If multiple versions of application programs are stored in the terminal device, then the device can support version management and updates, but it becomes difficult to distinguish between versions leading to address inconsistency
Solution Approach 1:
The patent introduces a script file as an intermediary component that contains version identification information and operational logic. This script file acts as a mediator between the bootloader and the application program, enabling the system to distinguish between different versions and correctly determine the operation address without direct confusion between multiple versioned applications
Solution Approach 2:
The patent implements preliminary actions by having the bootloader load and execute the script file before loading the application program. The script file is prepared in advance with version-specific parameters and logic, allowing the system to pre-determine the correct operation address based on version information before the actual application execution begins
2Productivity
If the linker specifies a fixed linked operation address, then the application program can be linked efficiently, but the actual operation address may differ causing execution failure
Solution Approach 1:
The patent makes the operation address dynamic by introducing a calculation mechanism in the script file that determines the actual operation address based on the linked operation address and version-specific offsets. Instead of using a fixed address, the system dynamically calculates the correct address at runtime, allowing the address to adapt to different versions while maintaining linking efficiency
Solution Approach 2:
The patent applies parameter changes by modifying the operation address parameter based on version information. The script file contains logic that adjusts the base address parameter according to the detected version, transforming the static linked address into a version-adaptive actual operation address through parameter modification
Data Source
AI summary
A method and an apparatus for operating an application program, a terminal device, and a storage medium. The method includes: determining a target version from multiple versions of the application program, and determining first parameter information of the application program of the target version; obtaining second parameter information of the application program transmitted by a bootloader; calculating a target memory address of an executed target element of the script file in the application program of the target version according to the first parameter information and the second parameter information; operating the target element of the script file in the target memory address. By applying the method, the application program can still be normally operated even though an actual operation address of the application program in the terminal device is different from a designated chained address when the application program is linked.


