A method for implementing non-intrusive communication services on Android platform
By overlaying a communication framework extension layer on the Android platform, listening to the state changes of the Modem module and converting control commands, the problem of secondary development of the Android platform communication service stack is solved, realizing real-time listening and response of non-intrusive communication services and meeting customization needs.
Patent Information
- Application Number
- CN202110742835.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2041-06-30
AI Technical Summary
In existing technologies, the secondary development and customization requirements of the communication service stack on the Android platform are difficult to meet actual needs, mainly due to the long code submission cycle and low adoption rate.
By overlaying a communication framework extension layer on the Android platform, the system listens for state changes in the Modem module and reports these changes to the application layer. These changes are then converted into control commands and sent to the communication framework extension layer, which in turn sends them to the Modem module to respond to the control commands, thus achieving a non-intrusive communication service.
Without altering the communication service stack, secondary development functions can be implemented through the communication framework extension layer to meet the customized needs of regions, operators, and customers.
Smart Images

Figure CN113377556B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for implementing a non-intrusive communication service on an Android platform. Background Art
[0002] Since 2019, Google has officially launched the Mainline plan. Google has released binary files of some modules to device manufacturers, including the Telephony Stack. For device manufacturers, when redeveloping and customizing the Telephony Stack to meet the needs of regions and operators, they need to submit the required development code to Google and it can only be used after being adopted by Google. However, the submission cycle of the required development code is long and the adoption rate is low, making it difficult to meet actual needs.
[0003] Therefore the prior art still needs to be improved and enhanced. Summary of the invention
[0004] The technical problem to be solved by this application is to provide a method for implementing a non-intrusive communication service on an Android platform in view of the deficiencies in the prior art.
[0005] In order to solve the above technical problems, the first aspect of the embodiment of the present application provides a method for implementing a non-intrusive communication service on an Android platform, which is applied to a terminal device configured with a communication framework extension layer, and the implementation method includes:
[0006] The communication framework extension layer monitors the status changes of the Modem module;
[0007] After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer;
[0008] The communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction.
[0009] The method for implementing the non-intrusive communication service of the Android platform, wherein, before the communication framework extension layer monitors the state change of the Modem module, the method further includes:
[0010] Calling the communication service stack loaded by the terminal device, and loading and initializing the communication framework through the communication service stack;
[0011] The communication framework loads and initializes the communication framework extension layer through the reflection mechanism, so that the communication framework extension layer calls and registers the Modem module through the RIL.
[0012] The implementation method of the non-intrusive communication service of the Android platform, wherein the communication framework extension layer monitors the state change of the Modem module specifically includes:
[0013] The communication framework extension layer monitors the status changes of the Modem module through RIL.
[0014] The implementation method of the non-intrusive communication service of the Android platform, wherein, after monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer, specifically:
[0015] After monitoring the state change, the communication framework extension layer reports the state change to the application layer through IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, converts the control instruction into a control instruction, and sends the control instruction to the communication framework extension layer.
[0016] The implementation method of the non-intrusive communication service of the Android platform, wherein the communication framework extension layer sends the control instruction to the Modem module so that the Modem module responds to the control instruction specifically includes:
[0017] The communication framework extension layer detects whether the control instruction needs to be sent to the Modem module;
[0018] When the control instruction needs to be sent to the Modem module, the communication framework extension layer calls the RIL interface corresponding to the control instruction, and sends the control instruction to the Modem module through the RIL interface, so that the Modem module responds to the control instruction and feeds back the execution result to the communication framework extension layer through the RIL, and then feeds back to the application layer through the communication framework extension layer.
[0019] The method for implementing the non-intrusive communication service of the Android platform, wherein the method further comprises:
[0020] When the control instruction does not need to be sent to the Modem module, the communication framework extension layer responds to the control instruction to execute the control operation, and feeds back the execution result to the application layer through IPC.
[0021] The method for implementing the non-intrusive communication service of the Android platform, wherein the method further comprises:
[0022] Register the subclass of InCallService through the application layer so that the application layer has the function of Car call management module;
[0023] The communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the application layer.
[0024] The second aspect of the embodiment of the present application provides an implementation device of a non-intrusive communication service on an Android platform, the implementation device comprising: a communication framework extension layer, a Modem module and an application layer; the communication framework extension layer is used for the communication framework extension layer to monitor the state changes of the Modem module; when the state change is monitored, the communication framework extension layer reports the state change to the application layer, and sends the control instruction to the Modem module; the application layer is used to determine the control operation determined by the state change, convert the control operation into a control instruction and send the control instruction to the communication framework extension layer; the Modem module is used to execute the control operation.
[0025] A third aspect of an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for implementing a non-intrusive communication service on an Android platform as described above.
[0026] A fourth aspect of the embodiments of the present application provides a terminal device, comprising: a processor, a memory, and a communication bus; the memory stores a computer-readable program that can be executed by the processor;
[0027] The communication bus realizes the connection and communication between the processor and the memory;
[0028] When the processor executes the computer-readable program, the processor implements the steps in any of the above-mentioned methods for implementing the non-intrusive communication service on the Android platform.
[0029] Beneficial effect: Compared with the prior art, the present application provides a method for implementing non-intrusive communication services on an Android platform, the implementation method comprising: the communication framework extension layer monitors the state changes of the Modem module; when the state changes are monitored, the communication framework extension layer reports the state changes to the application layer, determines the control operation determined by the state changes through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer; the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction. The present application superimposes a communication framework extension layer on the Android communication system, and implements real-time monitoring and response of the communication status through the communication framework extension layer. In this way, without changing the communication service stack, the communication framework extension layer can be used to implement the communication between the secondary development function and the communication service stack, thereby meeting the needs of secondary development for regions, operators, and customers. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0031] Figure 1 A flowchart of a method for implementing non-intrusive communication services on the Android platform provided in this application.
[0032] Figure 2 This is an example diagram of the initialization process in the implementation method of the non-intrusive communication service on the Android platform provided in this application.
[0033] Figure 3 A flowchart of the call status response process in the implementation method of the non-intrusive communication service on the Android platform provided in this application.
[0034] Figure 4 This is a schematic diagram of the structure of the terminal device provided in this application. DETAILED DESCRIPTION
[0035] The present application provides a method for implementing a non-intrusive communication service on an Android platform. To make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0036] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0037] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.
[0038] In a specific implementation, the terminal device described in the embodiments of the present application includes, but is not limited to, other portable devices such as mobile phones with touch-sensitive surfaces (e.g., touch display screens and / or touch pads), laptop computers, or tablet computers. It should also be understood that in some embodiments, the device is not a portable communication device, but a desktop computer with a touch-sensitive surface (e.g., touch display screens and / or touch pads).
[0039] In the following discussion, a terminal device including a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may also include one or more other physical user interface devices such as a physical keyboard, a mouse and / or a joystick.
[0040] The terminal device supports various applications, such as one or more of the following: drawing applications, presentation applications, word processing applications, video conferencing applications, disk burning applications, spreadsheet applications, game applications, telephone applications, video conferencing applications, email applications, instant messaging applications, exercise support applications, photo management applications, data camera applications, digital video camera applications, web browsing applications, digital music player applications and / or digital video playback applications, etc.
[0041] Various applications that can be executed on the terminal device can use at least one common physical user interface device such as a touch-sensitive surface. The first or multiple functions of the touch-sensitive surface and the corresponding information displayed on the terminal can be adjusted and / or changed between applications and / or within the corresponding application. In this way, the common physical framework of the terminal (e.g., the touch-sensitive surface) can support various applications with user interfaces that are intuitive and transparent to the user.
[0042] It should be understood that the sequence number and size of each step in this embodiment do not mean the order of execution. The execution order of each process is determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0043] After research, the inventor found that since 2019, Google has officially launched the Mainline plan. Google released binary files of some modules to device manufacturers, among which the modules that released binary files include the Telephony Stack. For device manufacturers, when redeveloping and customizing the communication service stack to meet the needs of regions and operators, they need to submit the demand development code to Google and it can only be used after being adopted by Google. However, the submission cycle of the demand development code is long and the adoption rate is low, making it difficult to meet actual needs.
[0044] In order to solve the above problems, in this embodiment, a communication framework extension layer is added to the communication framework, and the communication framework extension layer monitors the state change of the Modem module; after monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer; the communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction. This application superimposes a communication framework extension layer on the Android communication system, and realizes real-time monitoring and response of the communication status through the communication framework extension layer. In this way, without changing the communication service stack, the communication framework extension layer can be used to realize the communication between the secondary development function and the communication service stack, thereby meeting the needs of secondary development for regions, operators and customers.
[0045] The application content is further explained below through the description of embodiments in conjunction with the accompanying drawings.
[0046] This embodiment provides a method for implementing a non-intrusive communication service on an Android platform. Figure 1 As shown, the method includes:
[0047] S10. The communication framework extension layer monitors the status change of the Modem module.
[0048] Specifically, the communication framework extension layer is superimposed on the communication framework extension layer in the Android communication system, and is used to monitor the state changes of the Modem module in real time. The state change refers to the change in the communication state transmission, for example, the communication state change formed by answering the call, the communication state change formed by hanging up, and so on. It can be understood that the state change refers to the change in the communication state at the current moment relative to the communication state of the previous control. In addition, the communication framework extension layer can communicate with the Modem module through RIL, wherein the Modem module can be a Modem chip, etc., and different communication standards can use different Modem chips.
[0049] In one implementation of this embodiment, before the communication framework extension layer monitors the state change of the Modem module, Figure 2 As shown, the method includes:
[0050] Calling the communication service stack loaded by the terminal device, and loading and initializing the communication framework through the communication service stack;
[0051] The communication framework loads and initializes the communication framework extension layer through the reflection mechanism, so that the communication framework extension layer calls and registers the Modem module through the RIL.
[0052] Specifically, the communication framework is a communication framework built in the Framework layer in the Android system loaded on the terminal device, which provides developers with the ability to operate communication transactions. The RIL (Radio Interface Layer) is an intermediate layer for adapting the Modem chip, and the Modem instructions of the Modem module can be converted into a data stream available to Java through the RIL. The communication framework communicates with the communication framework extension layer and initializes the communication framework extension layer through reflection. When the communication framework extension layer is initialized, the Phone core, sim lock and core service components of the communication framework extension layer can be called and initialized through IPC (Inter-Process Communication). In addition, after initializing the communication framework extension layer, the application layer is initialized through Binder in the communication framework extension layer, wherein the application layer is a preset setting, and the application layer includes a Phone module and a call submodule. The Phone submodule is accessed and initialized by the communication framework extension layer in a cross-process manner. The Phone submodule is used for real-time monitoring and response of the Phone status, and the Phone submodule communicates with the Modem module through RIL. The call submodule is used to disguise as a traditional Car call management module to monitor the call status and obtain call information. The call submodule can be integrated with the system or coexist with the third-party Dialer / InCallUI.
[0053] In one implementation of this embodiment, since the communication framework extension layer communicates with the Modem module through the RIL, the communication framework extension layer monitors the state change of the Modem module, which can be specifically: the communication framework extension layer monitors the state change of the Modem module through the RIL. In addition, before the communication framework extension layer monitors the state change of the Modem module through the RIL, the communication framework extension layer calls and registers the Modem module through the RIL, so that the communication framework extension layer can monitor the state change of the Modem module through the RIL.
[0054] S20. After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer.
[0055] Specifically, the control operation is a control operation determined based on the state change, wherein the control operation may be input by a user or formed by a controller, etc. The control instruction is used to be sent to the communication framework extension layer, so that the communication framework extension layer sends the control instruction to the Modem module or responds on its own. It can be understood that when the communication framework extension layer receives the state change, it obtains and receives the state change and reports it to the application layer, determines the control operation determined by the state change through the application layer, and converts the control operation into a control instruction that can be recognized by the communication framework extension layer through the application layer, and sends the control instruction to the communication framework extension layer, so that the communication framework extension layer can respond to the control instruction or sends it to the Modem module to respond to the control instruction, so that the terminal device can respond to the control operation.
[0056] In an implementation of this embodiment, after monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction, and sends the control instruction to the communication framework extension layer, specifically including:
[0057] After monitoring the state change, the communication framework extension layer reports the state change to the application layer through IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, converts the control instruction into a control instruction, and sends the control instruction to the communication framework extension layer.
[0058] Specifically, the status information is a detailed status of the status change, and the status information can be read through IPC, and based on the detailed status, it can be detected whether the status information will trigger an external operation. When the external operation is triggered, the application layer will form a prompt interface. When the external operation is not triggered, the status change can be ignored or discarded. In addition, when the external operation is triggered, the application layer can detect whether the terminal device displays a prompt interface. If the prompt interface is displayed, the reminder interface is updated. If the prompt interface is not displayed, the prompt interface is created and displayed to receive the external input control operation through the prompt interface. After obtaining the control operation, the application layer converts the control instruction into a control instruction, and sends the control instruction to the communication framework extension layer through IPC, so that the communication framework extension layer obtains the control instruction.
[0059] S30: The communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction.
[0060] Specifically, after receiving the control instruction, the communication framework extension layer will parse the control instruction to determine whether it needs to be sent to the Modem module based on the control instruction, so as to determine whether it is necessary to send the control instruction to the Modem module so that the Modem module responds to the control instruction. In an implementation of this embodiment, the communication framework extension layer sends the control instruction to the Modem module so that the Modem module responds to the control instruction specifically including:
[0061] The communication framework extension layer detects whether the control instruction needs to be sent to the Modem module;
[0062] When the control instruction needs to be sent to the Modem module, the communication framework extension layer calls the RIL corresponding to the control instruction, and sends the control instruction to the Modem module through the RIL, so that the Modem module responds to the control instruction and feeds back the execution result to the communication framework extension layer through the RIL, and then feeds back to the application layer through the communication framework extension layer;
[0063] When the control instruction does not need to be sent to the Modem module, the communication framework extension layer responds to the control instruction to execute the control operation, and feeds back the execution result to the application layer through IPC.
[0064] Specifically, when a control instruction is obtained, the RIL interface corresponding to the control instruction is determined, and the determined RIL interface is called to send the control instruction to the Modem module through the RIL. After receiving the control instruction, the Modem module responds to the control instruction to perform the control operation corresponding to the control instruction, and feeds back the control result to the communication framework extension layer through the RIL, so that the communication framework extension layer feeds back the operation result to the application layer. In addition, when the control instruction does not need to be sent to the Modem module, the communication framework extension layer directly responds to the control instruction to perform the control operation, and feeds back the execution result to the application layer through the IPC.
[0065] In one implementation of this embodiment, Figure 3 As shown, the method also includes:
[0066] Register the subclass of InCallService through the application layer so that the application layer has the function of Car call management module;
[0067] The communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the communication framework extension layer.
[0068] Specifically, the application layer registers a subclass of InCallService so that the application layer can disguise itself as a Car call management module to monitor the call status and obtain call information. The application layer includes a call submodule, which registers a subclass of InCallService and disguises itself as a Car call management module. In addition, the application layer disguised as the Car call management module can coexist with the system integration or the third-party Dialer / InCallUI, and the user cannot perceive its existence. This is because the workflow of the application layer disguised as the Car call management module is the same as that of the ordinary InCallUI, but the registration and notification are later than the InCallUI visible to ordinary users, and will not cause timing and performance impact on the third-party Dialer.
[0069] In addition, the Car call service disguised by the application layer coexists with other Car call services and the system default call service, and obtains the permission to obtain and modify calls. The Car call service disguised by the application layer can monitor the addition and removal of calls, and then register and / or cancel the state change of each call; register and monitor the content changes of call information, status, events, members, etc., and determine whether a response operation needs to be performed according to the content change and / or status change; if a response operation needs to be performed, the corresponding user interaction feedback is performed, such as playing sound, vibration, pop-up prompts, etc. After executing the corresponding user interaction feedback, the interactive operation of the user feedback is encapsulated and returned to the application layer, and then the application layer can feed back the results to the observer. This embodiment utilizes the management service provided for traditional vehicle-mounted devices in the existing Android call service system, and reversely completes the Android device service end and the simulated vehicle-mounted device end in the Android device, so as to achieve the purpose of user-unaware and non-invasive implementation.
[0070] In one implementation of this embodiment, the application layer may include a Phone submodule and a call submodule, wherein the Phone submodule is used to monitor and respond to the status of the Phone in real time, and the call submodule is used to monitor and respond to the call status. It can be understood that the Phone submodule is used to execute steps S10-S30, and the call submodule is used to disguise as a Car call management module, which is used to monitor calls and receive user feedback information, and send the received user feedback information to the communication framework extension layer. In this way, the communication framework extension layer can monitor and respond to the status of the Phone in real time and monitor and respond to the call status at the same time, so that without changing the current Telephony module, it can be used for subsequent secondary development and customization according to the needs of regions, operators and customers.
[0071] Based on the above-mentioned implementation method of the non-intrusive communication service of the Android platform, this embodiment also provides an implementation device of the non-intrusive communication service of the Android platform, and the implementation device includes: a communication framework extension layer, a Modem module and an application layer; the communication framework extension layer is used for the communication framework extension layer to monitor the state change of the Modem module; when the state change is monitored, the communication framework extension layer reports the state change to the application layer, and sends the control instruction to the Modem module; the application layer is used to determine the control operation determined by the state change, convert the control operation into a control instruction and send the control instruction to the communication framework extension layer; the Modem module is used to execute the control operation.
[0072] Based on the above-mentioned method for implementing non-intrusive communication services on the Android platform, this embodiment provides a computer-readable storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps in the method for implementing non-intrusive communication services on the Android platform as described in the above-mentioned embodiment.
[0073] Based on the above-mentioned method for implementing non-intrusive communication services on the Android platform, the present application also provides a terminal device, such as Figure 4 As shown, it includes at least one processor (processor) 20; display screen 21; and memory (memory) 22, and may also include a communications interface (Communications Interface) 23 and a bus 24. Among them, the processor 20, the display screen 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a preset user guide interface in the initial setting mode. The communication interface 23 can transmit information. The processor 20 can call the logic instructions in the memory 22 to execute the method in the above embodiment.
[0074] In addition, the logic instructions in the memory 22 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.
[0075] The memory 22 is a computer-readable storage medium that can be configured to store software programs, computer executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes functional applications and data processing by running the software programs, instructions or modules stored in the memory 22, that is, implementing the methods in the above embodiments.
[0076] The memory 22 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 22 may include a high-speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, may also be a transient storage medium.
[0077] In addition, the specific working process of the implementation device of the non-intrusive communication service of the above-mentioned Android platform, the specific process of loading and executing multiple instruction processors in the storage medium and the terminal device have been described in detail in the above-mentioned method, and will not be described one by one here.
[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for implementing a non-intrusive communication service on an Android platform, characterized in that: Applied to a terminal device configured with a communication framework extension layer, the implementation method includes: The communication framework extension layer monitors the status changes of the Modem module; After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction and sends the control instruction to the communication framework extension layer; The communication framework extension layer sends the control instruction to the Modem module, so that the Modem module responds to the control instruction; Before the communication framework extension layer monitors the state change of the Modem module, the method further includes: Calling the communication service stack loaded by the terminal device, and loading and initializing the communication framework through the communication service stack; The communication framework loads and initializes the communication framework extension layer through the reflection mechanism, so that the communication framework extension layer calls and registers the Modem module through the RIL.
2. The method for implementing non-intrusive communication services on the Android platform according to claim 1, characterized in that: The communication framework extension layer monitors the state change of the Modem module specifically including: The communication framework extension layer monitors the status changes of the Modem module through RIL.
3. The method for implementing non-intrusive communication service on Android platform according to claim 1, characterized in that: After monitoring the state change, the communication framework extension layer reports the state change to the application layer, determines the control operation determined by the state change through the application layer, converts the control operation into a control instruction, and sends the control instruction to the communication framework extension layer. Specifically: After monitoring the state change, the communication framework extension layer reports the state change to the application layer through IPC; the application layer determines the prompt interface based on the state information corresponding to the state change, and receives the control operation based on the prompt interface, converts the control instruction into a control instruction, and sends the control instruction to the communication framework extension layer.
4. The method for implementing non-intrusive communication service on Android platform according to claim 1, characterized in that: The communication framework extension layer sends the control instruction to the Modem module so that the Modem module responds to the control instruction, specifically including: The communication framework extension layer detects whether the control instruction needs to be sent to the Modem module; When the control instruction needs to be sent to the Modem module, the communication framework extension layer calls the RIL interface corresponding to the control instruction, and sends the control instruction to the Modem module through the RIL interface, so that the Modem module responds to the control instruction and feeds back the execution result to the communication framework extension layer through the RIL, and then feeds back to the application layer through the communication framework extension layer.
5. The method for implementing non-intrusive communication services on the Android platform according to claim 4, characterized in that: The method further comprises: When the control instruction does not need to be sent to the Modem module, the communication framework extension layer responds to the control instruction to execute the control operation, and feeds back the execution result to the application layer through IPC.
6. The method for implementing non-intrusive communication service on Android platform according to claim 1, characterized in that: The method further comprises: Register the subclass of InCallService through the application layer so that the application layer has the function of Car call management module; The communication application layer monitors the call and receives user feedback information, and sends the received user feedback information to the application layer.
7. A device for implementing non-intrusive communication services on an Android platform, characterized in that: The implementation device includes: a communication framework extension layer, a Modem module and an application layer; the communication framework extension layer is used for the communication framework extension layer to monitor the state change of the Modem module; when the state change is monitored, the communication framework extension layer reports the state change to the application layer, and sends the control instruction to the Modem module; the application layer is used to determine the control operation determined by the state change, convert the control operation into a control instruction and send the control instruction to the communication framework extension layer; the Modem module is used to execute the control operation; before the communication framework extension layer monitors the state change of the Modem module, the implementation device also includes: calling the communication service stack loaded by the terminal device, and loading and initializing the communication framework through the communication service stack; the communication framework loads and initializes the communication framework extension layer through the reflection mechanism, so that the communication framework extension layer calls and registers the Modem module through the RIL.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps in the method for implementing non-intrusive communication services on the Android platform as described in any one of claims 1-6.
9. A terminal device, characterized in that: include: Processor, memory and communication bus; The memory stores a computer-readable program executable by the processor; The communication bus realizes the connection and communication between the processor and the memory; When the processor executes the computer-readable program, the processor implements the steps in the method for implementing the non-intrusive communication service of the Android platform as described in any one of claims 1-6.
Citation Information
Patent Citations
Android RIL system and construction method thereof
CN102662734A
One-key encryption communication method for encryption mobile phone
CN106102046A