A method and terminal supporting dynamic reading and writing of NV parameters

Through dynamic update of APK applications, the problem of low NV parameter update efficiency in the existing technology is solved, and a universal read and write interface for EFS files is provided, which improves the update efficiency and solves the problem of customized communication function updates and network difficulties. Miscellaneous problems.

CN112540777BActive Publication Date: 2024-12-20INGENICO (FUJIAN) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011178345.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-29
Publication Date
2024-12-20
Estimated Expiration
2040-10-29

AI Technical Summary

Technical Problem

The existing Qualcomm platform's method of modifying NV parameters is inefficient, and it is necessary to upgrade the entire modem image file and intermediate jar package, and it is impossible to update other information about the EFS file.

Method used

By updating and installing preset APK applications, receiving NV parameter read and write requests, using the java local interface to call the pre-encapsulated parameter interface library, including reading NV general interface, writing NV general interface, reading EFS file general interface and writing EFS file general interface, using Java local interface, using EFS file general interface, and using EFS file general interface, using EFS file general interface, and using EFS file general interface, including reading NV general interface, and using EFS file general interface, The interface directly reads, writes and updates the EFS file on the modem side, and restarts the device when the NV parameters change.

Benefits of technology

It realizes dynamic update of NV parameters, reduces the time and data traffic consumption of customers' update packages, improves update efficiency, and provides a general read and write interface for EFS files, solving the problem of customized communication function updates and network problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112540777B_ABST
    Figure CN112540777B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and a terminal supporting dynamic reading and writing of NV parameters; the present invention updates and installs a preset APK application; receives an NV parameter reading and writing request of the preset APK application, calls a corresponding first reading and writing NV parameter interface in a pre-packaged parameter interface library through a Java local interface, the first reading and writing NV parameter interface includes a general reading NV interface, a general writing NV interface, a general reading EFS file interface and a general writing EFS file interface; calls a diag service through the first reading and writing NV parameter interface, sends a command sequence to a modem side, reads, writes and updates the NV parameters in the EFS file on the modem side; restarts the device; when the NV parameters need to be updated, the present invention can dynamically update the apk, does not need to update and expand other files including libraries, etc., greatly reduces the time for customers to update the entire package and consumes data traffic resources, improves the update efficiency, and the present invention provides a general reading and writing interface for EFS files, which can update EFS files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a method and a terminal supporting dynamic reading and writing of NV parameters. Background Art

[0002] The existing method of modifying NV parameters (Non Voliatile) on Qualcomm platforms is as follows:

[0003] (1) Use QXDM (The QUALCOMM Extensible Diagnostic Monitor, a Qualcomm debugging tool that requires a Qualcomm account to authorize) to read, write, and modify;

[0004] (2) Read and write NV parameters through the existing interface of the Qualcomm platform;

[0005] The specific process is as follows:

[0006] 1. Update apk;

[0007] 2. Update qcNVItem.jar;

[0008] 3. Update QcRilHook.jar;

[0009] 4. Update libqcril_qmi.so;

[0010] 5. Update libqmi.so;

[0011] 6. Update NON-HLOS.bin;

[0012] 7. Update NV parameters completed;

[0013] 8. Restart the machine.

[0014] Specifically:

[0015] (1) The upper-layer application apk can call the doNvRead / doNvWrite private interface in the middle-layer qcNvItems.jar to read and write NV items;

[0016] (2) doNvRead / doNvWrite calls the sendQcRilHookMsg interface in QcRilHook.jar to read and write NV items by sending messages;

[0017] (3) sendQcRilHookMsg calls the sendOemRilRequestRaw interface in qcrilmsgtunnel to send the request ID, and then calls back through IOemHookCallback;

[0018] Among them, QcRilHook.jar

[0019] QcRilHook.java only provides the QCRILHOOK ID, but does not provide any external interface, and does not provide any corresponding interface for reading and writing efs files.

[0020]

[0021] (4) When calling downward from the upper layer, qcril-qmi.so will be called, and the qcril_main main function will be executed at this time;

[0022] (5) Call the qcril_init function in qcril_main;

[0023] (6) qcril_init calls the qcril_init_hash_table interface, and the qcril_init_hash_table interface function contains the qcril_event_table table.

[0024]

[0025] Among them, qcril.java provides the corresponding QCRIL_EVT_HOOK_NV ID for reading and writing NV, which are as follows:

[0026]

[0027] It corresponds one to one with the ID in the QcRilHook mentioned above.

[0028] (7) The qcril library calls the bottom layer and passes it to the qmi on the modem side through the qmi message mechanism;

[0029] qcril_other_request_oem_hook_nv_read()

[0030] qcril_other_request_oem_hook_nv_write();

[0031] (8) The qmi on the modem side will call the corresponding read and write NV interface (nvio_read_item / nvio_write_item);

[0032] (9) The efs_get / efs_put function is called in the nvio_read_item / nvio_write_item read-write interface;

[0033] (10) The efs_get / efs_put function finally calls the efs_read / efs_write function to read and write the NV item, and finally writes it into EFS to implement the apk reading and writing NV parameters;

[0034] (11) Restart the device;

[0035] It has the following disadvantages:

[0036] 1. When updating NV parameters, the entire modem image file and other intermediate jar packages and so libraries need to be upgraded, and the update efficiency is low;

[0037] 2. Among them, QcRilHook.jar only provides QCRILHOOK ID, but does not provide an external interface, and does not provide a corresponding read and write efs file interface; it can only update NV parameters, and cannot update other information of the EFS file. Summary of the invention

[0038] The technical problem to be solved by the present invention is to provide a method and a terminal supporting dynamic reading and writing of NV parameters, which can update EFS files and improve the updating efficiency.

[0039] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0040] A method for supporting dynamic reading and writing of NV parameters, comprising:

[0041] S1. Update and install the preset APK application;

[0042] S2. Receive the NV parameter read and write request of the preset APK application, and call the corresponding first read and write NV parameter interface in the pre-packaged parameter interface library through the Java local interface, wherein the first read and write NV parameter interface includes a read NV general interface, a write NV general interface, a read EFS file general interface, and a write EFS file general interface;

[0043] S3. Call the diag service through the first read-write NV parameter interface, send a command sequence to the modem side, read, write and update the NV parameters in the EFS file on the modem side;

[0044] S4. If the NV parameters are changed, restart the device.

[0045] The beneficial effects of the present invention are: when the NV parameters need to be updated, the present invention can dynamically update the apk, push the apk directly to the customer for remote update through the background server, or manually install the apk or OTA upgrade, without upgrading the entire modem image file and other intermediate jar packages and so libraries, without expanding the QMI interface on the modem side, and without updating the NON-HLOS.bin. The NV parameters can be directly updated by dynamically updating the apk, which greatly reduces the time for the customer to update the entire package and the resources consumed by data traffic, improves the update efficiency, and the present invention provides a universal read and write interface for EFS files, which can update EFS files. By updating the NV parameters, the customized updates of some communication functions of customers and the difficult and complicated network problems can be solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A flowchart of a method for supporting dynamic reading and writing of NV parameters according to an embodiment of the present invention;

[0047] Figure 2 A detailed flow chart of a method for supporting dynamic reading and writing of NV parameters according to an embodiment of the present invention;

[0048] Figure 3 The present invention is a structural diagram of a terminal that supports dynamic reading and writing of NV parameters.

[0049] Description of labels:

[0050] 1. A terminal supporting dynamic reading and writing of NV parameters; 2. A processor; 3. A memory. DETAILED DESCRIPTION

[0051] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.

[0052] Please refer to Figure 1 , a method for supporting dynamic reading and writing of NV parameters, comprising:

[0053] S1. Update and install the preset APK application;

[0054] S2. Receive the NV parameter read and write request of the preset APK application, and call the corresponding first read and write NV parameter interface in the pre-packaged parameter interface library through the Java local interface, wherein the first read and write NV parameter interface includes a read NV general interface, a write NV general interface, a read EFS file general interface, and a write EFS file general interface;

[0055] S3. Call the diag service through the first read-write NV parameter interface, send a command sequence to the modem side, read, write and update the NV parameters in the EFS file on the modem side;

[0056] S4. If the NV parameters are changed, restart the device.

[0057] From the above description, it can be seen that the beneficial effects of the present invention are: when the NV parameters need to be updated, the present invention can dynamically update the apk, push the apk directly to the customer for remote update through the background server, or manually install the apk or OTA upgrade, without the need to upgrade the entire modem image file and other intermediate jar packages and so libraries, without the need to expand the QMI interface on the modem side, and without the need to update and upgrade NON-HLOS.bin. By dynamically updating the apk to directly update the NV parameters, the time for the customer to update the entire package and the resources consumed for data traffic are greatly reduced, and the update efficiency is improved. The present invention provides a universal read and write interface for EFS files, which can update EFS files. By updating the NV parameters, the customized updates of some communication functions of customers and the difficult and complicated network problems can be solved.

[0058] Furthermore, step S1 is specifically as follows:

[0059] If the device installs the preset APK application for the first time, the intermediate library libnvrw_ext and Qualcomm UI control library libmmi are integrated, and the parameter interface library is located in the intermediate library libnvrw_ext;

[0060] Otherwise, update the APK application directly.

[0061] From the above description, it can be seen that the present invention needs to integrate the intermediate library libnvrw_ext and the Qualcomm UI control library libmmi when installing the preset application for the first time to ensure the normal calling of subsequent functional interfaces. The Qualcomm UI control library includes control interfaces for buttons, windows and texts, which also include some NV read and write interfaces.

[0062] Furthermore, in step S3, the diag service is called through the read and write NV parameter interface, and the command sequence is sent to the modem side specifically as follows:

[0063] The first read-write NV parameter interface sends a call request to the second read-write NV parameter interface in the Qualcomm UI control library libmmi;

[0064] The second read-write NV parameter interface receives the call request of the first read-write NV parameter interface, encapsulates the command sequence header according to the call request of the first read-write NV parameter interface, and sends the call request including the command sequence header to the send_command interface;

[0065] The send_command interface receives the call request of the second read-write NV parameter interface, obtains the command sequence header, and generates the complete command sequence according to the call request of the second read-write NV parameter interface, and then uses the diag service to send the call request containing the command sequence to the diag_callback_send_data interface in the Qualcomm UI control library libdiag;

[0066] The diag_callback_send_data interface receives the call request of the send_command interface, assembles the character array data_buf value according to the call request of the send_command interface, obtains the command sequence, and then sends the call request containing the command sequence to the diag_send_data interface;

[0067] The diag_send_data interface receives the request of the diag_callback_send_data interface, obtains the command sequence, and writes the command sequence to the file descriptor FD.

[0068] From the above description, it can be seen that the first read-write NV parameter interface calls the second read-write NV parameter interface, encapsulates the command sequence header, calls the send_command interface to send the command sequence, and finally writes the command sequence to the file descriptor FD, thereby sending the command sequence to the modem side.

[0069] Furthermore, the reading, writing and updating of the NV parameters in the EFS file on the modem side described in step S3 is specifically as follows:

[0070] The modem side detects the writing of the command sequence and sends a call request to the third read and write NV parameter interface of the modem side through the diag service;

[0071] The third read-write NV parameter interface receives the call request from the modem side and sends the call request to the nv_cmd_diag interface;

[0072] The nv_cmd_diag interface calls the corresponding function efs_read or efs_write according to the request of the third read and write NV parameter interface to read and write the EFS file.

[0073] From the above description, it can be seen that the modem side finally reads and writes and updates the EFS file through the requested call, thereby realizing the dynamic reading and writing of NV parameters.

[0074] Furthermore, the pre-packaged parameter interface library is specifically a nv_rw_ext library pre-packaged in an intermediate library libnvrw_ext.

[0075] From the above description, we can see that the nv_rw_ext library is encapsulated in libnvrw_ext. nv_rw_ext includes interfaces such as Diag_LSM_Init, register_callback, diag_nv_read, diag_nv_write, and Diag_LSM_DeInit, and no further expansion is required.

[0076] like Figure 3 As shown, the present invention also provides a terminal supporting dynamic reading and writing of NV parameters, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0077] S1. Update and install the preset APK application;

[0078] S2. Receive the NV parameter read and write request of the preset APK application, and call the corresponding first read and write NV parameter interface in the pre-packaged parameter interface library through the Java local interface, wherein the first read and write NV parameter interface includes a read NV general interface, a write NV general interface, a read EFS file general interface, and a write EFS file general interface;

[0079] S3. Call the diag service through the first read-write NV parameter interface, send a command sequence to the modem side, read, write and update the NV parameters in the EFS file on the modem side;

[0080] S4. If the NV parameters are changed, restart the device.

[0081] From the above description, it can be seen that the beneficial effects of the present invention are: when the NV parameters need to be updated, the present invention can dynamically update the apk, push the apk directly to the customer for remote update through the background server, or manually install the apk or OTA upgrade, without the need to upgrade the entire modem image file and other intermediate jar packages and so libraries, without the need to expand the QMI interface on the modem side, and without the need to update and upgrade NON-HLOS.bin. By dynamically updating the apk to directly update the NV parameters, the time for the customer to update the entire package and the resources consumed for data traffic are greatly reduced, and the update efficiency is improved. The present invention provides a universal read and write interface for EFS files, which can update EFS files. By updating the NV parameters, the customized updates of some communication functions of customers and the difficult and complicated network problems can be solved.

[0082] Furthermore, step S1 is specifically as follows:

[0083] If the device installs the preset APK application for the first time, the intermediate library libnvrw_ext and Qualcomm UI control library libmmi are integrated, and the parameter interface library is located in the intermediate library libnvrw_ext;

[0084] Otherwise, update the APK application directly.

[0085] From the above description, it can be seen that the present invention needs to integrate the intermediate library libnvrw_ext and the Qualcomm UI control library libmmi when installing the preset application for the first time to ensure the normal calling of subsequent functional interfaces. The Qualcomm UI control library includes control interfaces for buttons, windows, and texts, which also include some NV read and write interfaces.

[0086] Furthermore, in step S3, the diag service is called through the read and write NV parameter interface, and the command sequence is sent to the modem side specifically as follows:

[0087] The first read-write NV parameter interface sends a call request to the second read-write NV parameter interface in the Qualcomm UI control library libmmi;

[0088] The second read-write NV parameter interface receives the call request of the first read-write NV parameter interface, encapsulates the command sequence header according to the call request of the first read-write NV parameter interface, and sends the call request including the command sequence header to the send_command interface;

[0089] The send_command interface receives the call request of the second read-write NV parameter interface, obtains the command sequence header, and generates the complete command sequence according to the call request of the second read-write NV parameter interface, and then uses the diag service to send the call request containing the command sequence to the diag_callback_send_data interface in the Qualcomm UI control library libdiag;

[0090] The diag_callback_send_data interface receives the call request of the send_command interface, assembles the character array data_buf value according to the call request of the send_command interface, obtains the command sequence, and then sends the call request containing the command sequence to the diag_send_data interface;

[0091] The diag_send_data interface receives the request of the diag_callback_send_data interface, obtains the command sequence, and writes the command sequence to the file descriptor FD.

[0092] From the above description, it can be seen that the first read-write NV parameter interface calls the second read-write NV parameter interface, encapsulates the command sequence header, calls the send_command interface to send the command sequence, and finally writes the command sequence to the file descriptor FD, thereby sending the command sequence to the modem side.

[0093] Furthermore, the reading, writing and updating of the NV parameters in the EFS file on the modem side described in step S3 is specifically as follows:

[0094] The modem side detects the writing of the command sequence and sends a call request to the third read and write NV parameter interface of the modem side through the diag service;

[0095] The third read-write NV parameter interface receives the call request from the modem side and sends the call request to the nv_cmd_diag interface;

[0096] The nv_cmd_diag interface calls the corresponding function efs_read or efs_write according to the request of the third read and write NV parameter interface to read and write the EFS file.

[0097] From the above description, it can be seen that the modem side finally reads and writes and updates the EFS file through the requested call, thereby realizing the dynamic reading and writing of NV parameters.

[0098] Furthermore, the pre-packaged parameter interface library is specifically a nv_rw_ext library pre-packaged in an intermediate library libnvrw_ext.

[0099] From the above description, we can see that the nv_rw_ext library is encapsulated in libnvrw_ext. The nv_rw_ext library can call interfaces including Diag_LSM_Init, register_callback, diag_nv_read, diag_nv_write, Diag_LSM_DeInit, etc., and no further expansion is required.

[0100] Please refer to Figure 1 and Figure 2 , Embodiment 1 of the present invention is:

[0101] A method for supporting dynamic reading and writing of NV parameters, comprising:

[0102] S1. Update and install the preset APK application;

[0103] S2. Receive a request from a preset APK application to read NV parameters, and call the first read and write NV parameter interface nvrw_ext_read_general through a Java local interface. The nvrw_ext_read_general interface is a general interface for reading NV. In addition, the same-level interfaces also include a general interface for writing NV nvrw_ext_write_general, a general interface for reading EFS files nvrw_ext_efs_read, and a general interface for writing EFS files nvrw_ext_efs_write;

[0104] S3, nvrw_ext_read_general interface sends a call request to the second read and write NV parameter interface diag_nv_read in Qualcomm UI control library libmmi, the diag_nv_read interface is an interface for reading NV parameters, and the same level interface also includes: diag_nv_write, diag_efs_nv_read, diag_efs_nv_write;

[0105] The diag_nv_read interface receives the call request of nvrw_ext_read_general, encapsulates the command sequence header according to the call request of the nvrw_ext_read_general interface, and sends the call request including the command sequence header to the send_command interface;

[0106] The send_command interface receives the call request of the diag_nv_read interface, obtains the command sequence header, and generates the complete command sequence according to the call request of the diag_nv_read interface, and then uses the diag service to send the call request containing the command sequence to the diag_callback_send_data interface in the Qualcomm UI control library libdiag;

[0107] The diag_callback_send_data interface receives the call request of the send_command interface, assembles the character array data_buf value according to the call request of the send_command interface, obtains the command sequence, and then sends the call request containing the command sequence to the diag_send_data interface;

[0108] The diag_send_data interface receives the request of the diag_callback_send_data interface, obtains the command sequence, and writes the command sequence to the file descriptor FD;

[0109] The modem side detects the writing of the command sequence and sends a call request to the nvdiag_read interface on the modem side through the diag service. The nvdiag_read interface is an interface for the modem side to read NV parameters through the diag service. The same-level interface also includes the nvdiag_write interface for the modem side to write NV parameters through the diag service.

[0110] The nvdiag_read interface receives the call request from the modem side and sends the call request to the nv_cmd_diag interface;

[0111] The nv_cmd_diag interface calls the corresponding function efs_read according to the request of the nvdiag_read interface to read the EFS file.

[0112] S4. If the NV parameters are changed, restart the device.

[0113] Please refer to Figure 3 , Embodiment 2 of the present invention is:

[0114] A terminal 1 supporting dynamic reading and writing of NV parameters comprises a processor 2, a memory 3 and a computer program stored in the memory 3 and executable on the processor 2. When the processor 2 executes the computer program, the method for supporting dynamic reading and writing of NV parameters is implemented.

[0115] In summary, the present invention provides a method and terminal that support dynamic reading and writing of NV parameters. When the NV parameters need to be updated, the apk can be dynamically updated, and the apk can be directly pushed to the customer by the background server for remote update, or the apk can be manually installed or OTA upgraded. There is no need to upgrade the entire modem image file and other intermediate jar packages and so libraries, there is no need to expand the QMI interface on the modem side, and there is no need to update and upgrade NON-HLOS.bin. The NV parameters can be directly updated by dynamically updating the apk, which greatly reduces the time for customers to update the entire package and the resources consumed by data traffic, thereby improving the update efficiency. The present invention provides a universal read and write interface for EFS files, which can update EFS files. By updating the NV parameters, customized updates of some communication functions and network problems of customers can be solved. In addition, the present invention encapsulates the nv_rw_ext library in libnvrw_ext. The nv_rw_ext library can call interfaces including Diag_LSM_Init, register_callback, diag_nv_read, diag_nv_write, Diag_LSM_DeInit, etc., and no subsequent expansion is required.

[0116] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for supporting dynamic reading and writing of NV parameters, characterized in that: include: S1. Update and install a preset APK application, in which an intermediate library libnvrw_ext and a Qualcomm UI control library libmmi are integrated, and a parameter interface library is located in the intermediate library libnvrw_ext; S2. Receive the NV parameter read and write request of the preset APK application, and call the corresponding first read and write NV parameter interface in the pre-packaged parameter interface library through the Java local interface, wherein the first read and write NV parameter interface includes a read NV general interface, a write NV general interface, a read EFS file general interface, and a write EFS file general interface; S3, calling the diag service through the first read-write NV parameter interface, sending a command sequence to the modem side, reading, writing and updating the NV parameters in the EFS file on the modem side; specifically: The first read-write NV parameter interface sends a call request to the second read-write NV parameter interface in the Qualcomm UI control library libmmi; The second read-write NV parameter interface receives the call request of the first read-write NV parameter interface, encapsulates the command sequence header according to the call request of the first read-write NV parameter interface, and sends the call request including the command sequence header to the send_command interface; The send_command interface receives the call request of the second read-write NV parameter interface, obtains the command sequence header, and generates the complete command sequence according to the call request of the second read-write NV parameter interface, and then uses the diag service to send the call request containing the command sequence to the diag_callback_send_data interface in the Qualcomm UI control library libdiag; The diag_callback_send_data interface receives the call request of the send_command interface, assembles the character array data_buf value according to the call request of the send_command interface, obtains the command sequence, and then sends the call request containing the command sequence to the diag_send_data interface; The diag_send_data interface receives the request of the diag_callback_send_data interface, obtains the command sequence, and writes the command sequence to the file descriptor FD; S4. If the NV parameters are changed, restart the device.

2. A method for supporting dynamic reading and writing of NV parameters according to claim 1, characterized in that, Step S1 is specifically as follows: If the device installs the preset APK application for the first time, the intermediate library libnvrw_ext and Qualcomm UI control library libmmi are integrated, and the parameter interface library is located in the intermediate library libnvrw_ext; Otherwise, update the APK application directly.

3. A method for supporting dynamic reading and writing of NV parameters according to claim 1, characterized in that, The reading, writing and updating of the NV parameters in the EFS file on the modem side described in step S3 are specifically as follows: The modem side detects the writing of the command sequence and sends a call request to the third read and write NV parameter interface of the modem side through the diag service; The third read-write NV parameter interface receives the call request from the modem side and sends the call request to the nv_cmd_diag interface; The nv_cmd_diag interface calls the corresponding function efs_read or efs_write according to the request of the third read and write NV parameter interface to read and write the EFS file.

4. A method for supporting dynamic reading and writing of NV parameters according to claim 1, characterized in that, The pre-packaged parameter interface library is specifically a nv_rw_ext library pre-packaged in an intermediate library libnvrw_ext.

5. A terminal supporting dynamic reading and writing of NV parameters, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: S1. Update and install a preset APK application, in which an intermediate library libnvrw_ext and a Qualcomm UI control library libmmi are integrated, and a parameter interface library is located in the intermediate library libnvrw_ext; S2. Receive the NV parameter read and write request of the preset APK application, and call the corresponding first read and write NV parameter interface in the pre-packaged parameter interface library through the Java local interface, wherein the first read and write NV parameter interface includes a read NV general interface, a write NV general interface, a read EFS file general interface, and a write EFS file general interface; S3, calling the diag service through the first read-write NV parameter interface, sending a command sequence to the modem side, reading, writing and updating the NV parameters in the EFS file on the modem side; specifically: The first read-write NV parameter interface sends a call request to the second read-write NV parameter interface in the Qualcomm UI control library libmmi; The second read-write NV parameter interface receives the call request of the first read-write NV parameter interface, encapsulates the command sequence header according to the call request of the first read-write NV parameter interface, and sends the call request including the command sequence header to the send_command interface; The send_command interface receives the call request of the second read-write NV parameter interface, obtains the command sequence header, and generates the complete command sequence according to the call request of the second read-write NV parameter interface, and then uses the diag service to send the call request containing the command sequence to the diag_callback_send_data interface in the Qualcomm UI control library libdiag; The diag_callback_send_data interface receives the call request of the send_command interface, assembles the character array data_buf value according to the call request of the send_command interface, obtains the command sequence, and then sends the call request containing the command sequence to the diag_send_data interface; The diag_send_data interface receives the request of the diag_callback_send_data interface, obtains the command sequence, and writes the command sequence to the file descriptor FD; S4. If the NV parameters are changed, restart the device.

6. A terminal supporting dynamic reading and writing of NV parameters according to claim 5, characterized in that: Step S1 is specifically as follows: If the device installs the preset APK application for the first time, the intermediate library libnvrw_ext and Qualcomm UI control library libmmi are integrated, and the parameter interface library is located in the intermediate library libnvrw_ext; Otherwise, update the APK application directly.

7. A terminal supporting dynamic reading and writing of NV parameters according to claim 5, characterized in that: The reading, writing and updating of the NV parameters in the EFS file on the modem side described in step S3 are specifically as follows: The modem side detects the writing of the command sequence and sends a call request to the third read and write NV parameter interface of the modem side through the diag service; The third read-write NV parameter interface receives the call request from the modem side and sends the call request to the nv_cmd_diag interface; The nv_cmd_diag interface calls the corresponding function efs_read or efs_write according to the request of the third read and write NV parameter interface to read and write the EFS file.

8. A terminal supporting dynamic reading and writing of NV parameters according to claim 5, characterized in that: The pre-packaged parameter interface library is specifically a nv_rw_ext library pre-packaged in an intermediate library libnvrw_ext.