Method, device and equipment for personalizing adjustment of permissions of applications with same user ID

By obtaining and adjusting the permission status of application names in the vehicle's infotainment system, the problem of sharing permissions for customized applications in the vehicle's infotainment system is solved, and personalized permission configuration is achieved.

CN115630379BActive Publication Date: 2026-11-27BEI DOU ZHI LIAN KE JI YOU XIAN GONG SI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211280388.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-19
Publication Date
2026-11-27
Estimated Expiration
2042-10-19

AI Technical Summary

Technical Problem

The application permissions of multiple customized applications in the vehicle's infotainment system are shared, making it impossible to flexibly configure personalized application permissions for each application.

Method used

The system obtains the name of the application requesting permission through a preset detection interface, determines whether it exists in the preset database, obtains the current permission switch and name, and if it is enabled, obtains and saves the permission adjustment information to achieve personalized adjustment of application permissions.

Benefits of technology

It implements a mechanism to eliminate the sharing of application permissions for multiple customized applications in the vehicle system, and can flexibly configure personalized application permissions for each application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115630379B_ABST
    Figure CN115630379B_ABST
Patent Text Reader

Abstract

The application relates to a software development technology and provides a permission personalization adjustment method, device and equipment for applications with the same user ID, which comprises the following steps: firstly, a preset detection interface is used to obtain a to-be-modified application name of a requested permission application; then, it is judged whether the to-be-modified application name exists in a preset database; if it is determined that the to-be-modified application name exists in the preset database, a current permission switch corresponding to the to-be-modified application name is obtained; if it is determined that the current permission switch is in an open state, a current permission name corresponding to the to-be-modified application name is obtained; and finally, permission adjustment information corresponding to the current permission name is obtained and saved. The application realizes an application permission elimination sharing mechanism for multiple application programs customized for a vehicle machine, can flexibly configure the application permissions of each application program, and thus can perform permission personalization adjustment on multiple different application programs with the same user ID in the vehicle machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software development technology, and in particular to a method, apparatus, computer device, and storage medium for personalized permission adjustment of applications with the same user ID. Background Technology

[0002] With the advancement of technology, the automotive industry is developing rapidly. Car software brings many conveniences to car users' lives and work, but the leakage of user information is frequent, and users are paying more and more attention to protecting their privacy.

[0003] Currently, customized applications for in-vehicle infotainment systems may use the system user (i.e., the system user) for their functionalities. This results in applications having the same UID (User ID). In Android, applications with the same UID share permissions. For example, different applications might configure the same `sharedUserID` in their `AndroidManifest.xml`, such as `android:sharedUserId = "android.uid.system"`. In this case, all applications are system applications with a UID of 1000 and all have the permissions of the system user. If the camera or location permissions of one of these system user applications are disabled, the camera and location permissions for all system user applications are also disabled, thus failing to achieve the goal of user-selectable permissions. Therefore, the application permissions of multiple applications in current customized in-vehicle infotainment systems are shared, making it impossible to flexibly configure personalized application permissions for each application. Summary of the Invention

[0004] This application provides a method, apparatus, computer device, and storage medium for personalized permission adjustment of applications with the same user ID, aiming to solve the problem in the prior art that the application permissions of multiple customized applications in vehicle systems are shared, making it impossible to flexibly configure personalized application permissions for each application.

[0005] In a first aspect, embodiments of this application provide a method for personalized permission adjustment for applications with the same user ID, comprising:

[0006] Obtain the name of the application to be modified from the application requesting permissions through the preset detection interface;

[0007] Determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name;

[0008] If it is determined that the application name to be modified exists in the preset database, then obtain the current permission switch corresponding to the application name to be modified;

[0009] If it is determined that the current permission switch is in the on state, obtain the current permission name corresponding to the name of the application to be modified;

[0010] Obtain and save the permission adjustment information corresponding to the current permission name.

[0011] Secondly, embodiments of this application provide a device for personalizing permissions of applications with the same user ID, comprising:

[0012] The application name to be modified acquisition unit is used to obtain the application name to be modified of the application requesting permissions through a preset detection interface;

[0013] The judgment unit is used to determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name;

[0014] The current permission switch acquisition unit is used to acquire the current permission switch corresponding to the application name to be modified if it is determined that the application name to be modified exists in the preset database.

[0015] The current permission name acquisition unit is used to acquire the current permission name corresponding to the name of the application to be modified if it is determined that the current permission switch is in the on state.

[0016] The permission adjustment information acquisition unit is used to acquire and save the permission adjustment information corresponding to the current permission name.

[0017] Thirdly, embodiments of this application provide a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the personalized permission adjustment method for applications with the same user ID described in the first aspect.

[0018] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the permission personalization adjustment method for applications with the same user ID described in the first aspect.

[0019] This application provides a method, apparatus, computer device, and storage medium for personalized permission adjustment of applications with the same user ID. The method involves first obtaining the name of the application requesting permission through a preset detection interface; determining whether the name exists in a preset database; if the name exists in the database, obtaining the current permission switch corresponding to the name; if the current permission switch is enabled, obtaining the current permission name corresponding to the name; and obtaining and saving permission adjustment information corresponding to the current permission name. This implements a mechanism to eliminate shared application permissions for multiple applications customized for in-vehicle systems, allowing for flexible configuration of personalized application permissions for each application, thus enabling personalized permission adjustment for multiple different applications with the same user ID in the in-vehicle system. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 A schematic diagram illustrating an application scenario for the method of personalized permission adjustment for applications with the same user ID provided in this application embodiment;

[0022] Figure 2 A flowchart illustrating the method for personalized permission adjustment of applications with the same user ID provided in this application embodiment;

[0023] Figure 3 A schematic block diagram of a permission personalization adjustment device for applications with the same user ID provided in an embodiment of this application;

[0024] Figure 4 A schematic block diagram of a computer device provided in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0026] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0027] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of the application. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0028] It should also be further understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0029] Please see Figure 1 and Figure 2 , Figure 1 A schematic diagram illustrating an application scenario for the method of personalized permission adjustment for applications with the same user ID provided in this application embodiment; Figure 2 This is a flowchart illustrating a method for personalized permission adjustment of applications with the same user ID, provided in an embodiment of this application. This method is applied to the in-vehicle infotainment system of a car and is executed by application software installed in the in-vehicle infotainment system.

[0030] like Figure 2 As shown, the method includes steps S101 to S105.

[0031] S101. Obtain the name of the application to be modified from the application requesting permission through the preset detection interface.

[0032] In this embodiment, the vehicle's infotainment system (VIS) serves as the execution entity. The VIS can be understood as the vehicle's onboard computer or intelligent central control system, typically running an Android system. Multiple applications can be installed on the VIS, and it can also communicate with a server to transmit data. When a user needs to modify the application permissions of a specific application on the VIS, the VIS display first shows the application permission management interface. Then, the user must select the name of the application requesting permission. The selected application is the target application for which personalized application permissions are needed.

[0033] In one embodiment, step S101 includes:

[0034] The current application ID of the application requesting permission is obtained through the checkComponentPermission interface, which is used as the preset detection interface.

[0035] Obtain the corresponding application name to be modified based on the current application ID.

[0036] In this embodiment, to quickly determine the name of the application to be modified for the user-selected application requesting permissions on the vehicle's infotainment system, the current application ID of the user-selected application requesting permissions needs to be obtained first through the pre-defined detection interface `checkComponentPermission`. The `checkComponentPermission` interface is a more specific interface within the `checkPermission` permission detection interface of the `ActivityManagerService.java` class. The current application ID can be accurately obtained through the `checkComponentPermission` interface.

[0037] Once the current application ID is determined, since each application's application ID is different and each application's application ID corresponds one-to-one with the application name, the unique corresponding application name to be modified can be obtained and determined based on the current application ID.

[0038] S102. Determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name.

[0039] In this embodiment, after determining the application name to be modified, it is necessary to further determine whether the application name exists in a preset database, thereby determining whether the application name can have its permissions modified. Specifically, a preset database on the vehicle's local machine stores multiple application package names, along with corresponding permission names and permission switches for each application package name. Once the application name to be modified is obtained, it can be compared with each application package name in the preset database to determine if any application package name is identical to the application name to be modified. If an application package name is identical to the application name to be modified, it indicates that the application name to be modified exists in the preset database; if no application package name is identical to the application name to be modified, it indicates that the application name to be modified does not exist in the preset database.

[0040] In one embodiment, the method further includes the following step before step S102:

[0041] If an update command is detected, the update application package data corresponding to the update command is obtained, and the update application package data is stored in the preset database.

[0042] In this embodiment, to achieve dynamic management of applications with personalized permission adjustments in the vehicle's preset database, the application package data stored in the preset database can be updated periodically or irregularly (e.g., adding or deleting applications). If the application package name in the vehicle's system after the last update includes application 1, application 2, application 3, and application 4, it indicates that applications 1 through 4 have personalized permission adjustments. Upon receiving the updated application package data, if it only includes application 1, application 2, and application 3, but not application 4, then after this update, applications 1 through 3 have personalized permission adjustments, while application 4 does not (meaning it cannot have its permissions personalized after this update).

[0043] In one embodiment, the method further includes the following step before step S102:

[0044] Get the checkComponentPermission interface from the ActivityManagerService.java class;

[0045] Retrieve the ContentProvider database;

[0046] Multiple application package names, along with the corresponding permission names and permission switches for each application package name, are stored in the ContentProvider database.

[0047] In this embodiment, the ActivityManagerService.java class included in the Android system of the vehicle's infotainment system specifically includes the aforementioned preset detection interface, namely the checkComponentPermission interface. Upon obtaining the checkComponentPermission interface, the local ContentProvider database can be directly retrieved as a preset database to store multiple application package names, and the permission names and permission switches corresponding to each application package name. With this preset database as the data foundation, data can be provided for subsequent determination of whether any application package name is exactly the same as the application name to be modified.

[0048] S103. If it is determined that the application name to be modified exists in the preset database, then obtain the current permission switch corresponding to the application name to be modified.

[0049] In this embodiment, when it is determined that the application name to be modified exists in the preset database, it indicates that the permissions of the application corresponding to the application name to be modified can be modified. At this time, the current permission switch corresponding to the application name to be modified can be obtained from the preset database to determine whether the current permission switch is on or off. For example, if the current permission switch corresponding to the application name to be modified is on, it means that the application permissions of the application name to be modified can be personalized and modified; if the current permission switch corresponding to the application name to be modified is off, it means that the application permissions of the application name to be modified cannot be personalized and modified.

[0050] In one embodiment, such as Figure 2 As shown, after step S102, the following steps are also included:

[0051] S106. If it is determined that the application name to be modified does not exist in the preset database, an exception message is generated to notify the application that it does not have permission to make the adjustment.

[0052] In this embodiment, if it is determined that the application name to be modified does not exist in the preset database, it means that the permissions of the application corresponding to the application name to be modified cannot be modified. At this time, an exception message is directly generated to notify the application that it does not have permission to make adjustments. In this way, users who want to adjust the application corresponding to the application name to be modified on the vehicle's infotainment system can be promptly informed that the application permissions of that application cannot be adjusted.

[0053] S104. If it is determined that the current permission switch is in the on state, obtain the current permission name corresponding to the name of the application to be modified.

[0054] In this embodiment, when it is determined that the current permission switch corresponding to the application name to be modified is in the on state, it indicates that the application permissions of the application name to be modified can be personalized and modified. At this time, the current permission name corresponding to the current permission switch can be obtained and the specific controllable permission names under the current permission switch and the virtual switch buttons corresponding to each permission name can be displayed. For example, the current permission names corresponding to the current permission switch specifically include camera permission switch, location permission switch, storage permission switch, etc., and each current permission name is provided with a virtual switch button on one side to switch each current permission name to the on or off state. It can be seen that by setting separate application permission switches for each application in the vehicle system, the permissions of the application can be personalized and modified based on the permission switches.

[0055] In one embodiment, after step S103, the method further includes:

[0056] If it is determined that the current permission switch is in a closed state, a security exception message is generated to notify that the current permission switch is in a closed state.

[0057] In this embodiment, when it is determined that the current permission switch corresponding to the application name to be modified is in a closed state, it means that the application permissions of the application name to be modified cannot be personalized or modified. To promptly notify the user of the vehicle's infotainment system, a security exception can be generated to indicate that the current permission switch is in a closed state and displayed on the system's screen. Specifically, a SecurityException can be thrown as the security exception information. The user can visually view this security exception information and therefore will not attempt to adjust the application permissions of the application name to be modified.

[0058] S105. Obtain and save the permission adjustment information corresponding to the current permission name.

[0059] In this embodiment, after the current permission name is displayed on the vehicle's screen, the system can receive the user's actual adjustment instructions to adjust the permissions, such as camera permission and location permission, to obtain permission adjustment information. Based on the permission adjustment information, the system can adjust the specific permissions corresponding to the application name to be modified and save the adjustment information.

[0060] In one embodiment, step S105 includes:

[0061] Obtain the permission list corresponding to the current permission name; wherein, each permission name in the permission list corresponds to a sub-permission switch;

[0062] Obtain the setting information for the sub-permission switch corresponding to each permission name in the permission list, and save it as the permission adjustment information.

[0063] In this embodiment, to specifically obtain the permission adjustments involved in the application corresponding to the application name to be modified, a permission list corresponding to the current permission name can be obtained, and each permission name in the permission list can be displayed on the vehicle's screen along with a corresponding sub-permission switch (i.e., the virtual switch button mentioned above) for the user to adjust specifically for each sub-permission switch, such as enabling camera permission and disabling location permission. Once the user's settings for the sub-permission switches corresponding to each permission name in the permission list are obtained, permission adjustment information corresponding to the current permission name can be compiled and saved in the vehicle's infotainment system.

[0064] This method implements a mechanism to eliminate the sharing of application permissions for multiple customized applications in the vehicle infotainment system. It allows for flexible configuration of personalized application permissions for each application, enabling personalized adjustment of permissions for multiple different applications with the same user ID in the vehicle infotainment system.

[0065] This application also provides a permission personalization adjustment device for applications with the same user ID. This device is used to execute any embodiment of the aforementioned permission personalization adjustment method for applications with the same user ID. Specifically, please refer to... Figure 3 , Figure 3 This is a schematic block diagram of a permission personalization adjustment device 100 for applications with the same user ID provided in this application embodiment.

[0066] Among them, such as Figure 3 As shown, the permission personalization adjustment device 100 for applications with the same user ID includes an application name acquisition unit 101, a judgment unit 102, a current permission switch acquisition unit 103, a current permission name acquisition unit 104, and a permission adjustment information acquisition unit 105.

[0067] The application name acquisition unit 101 is used to obtain the application name to be modified of the application requesting permissions through a preset detection interface.

[0068] In this embodiment, the vehicle's infotainment system (VIS) serves as the execution entity. The VIS can be understood as the vehicle's onboard computer or intelligent central control system, typically running an Android system and capable of installing multiple applications. When a user needs to modify the application permissions of a specific application on the VIS, the VIS display first shows the application permission management interface. Then, the user must select the name of the application requesting permission. The selected application is thus the target application for which personalized application permissions are needed.

[0069] In one embodiment, the application name acquisition unit 101 is used for:

[0070] The current application ID of the application requesting permission is obtained through the checkComponentPermission interface, which is used as the preset detection interface.

[0071] Obtain the corresponding application name to be modified based on the current application ID.

[0072] In this embodiment, to quickly determine the name of the application to be modified for the user-selected application requesting permissions on the vehicle's infotainment system, the current application ID of the user-selected application requesting permissions needs to be obtained first through the pre-defined detection interface `checkComponentPermission`. The `checkComponentPermission` interface is a more specific interface within the `checkPermission` permission detection interface of the `ActivityManagerService.java` class. The current application ID can be accurately obtained through the `checkComponentPermission` interface.

[0073] Once the current application ID is determined, since each application's application ID is different and each application's application ID corresponds one-to-one with the application name, the unique corresponding application name to be modified can be obtained and determined based on the current application ID.

[0074] The judgment unit 102 is used to determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name.

[0075] In this embodiment, after determining the application name to be modified, it is necessary to further determine whether the application name exists in a preset database, thereby determining whether the application name can have its permissions modified. Specifically, a preset database on the vehicle's local machine stores multiple application package names, along with corresponding permission names and permission switches for each application package name. Once the application name to be modified is obtained, it can be compared with each application package name in the preset database to determine if any application package name is identical to the application name to be modified. If an application package name is identical to the application name to be modified, it indicates that the application name to be modified exists in the preset database; if no application package name is identical to the application name to be modified, it indicates that the application name to be modified does not exist in the preset database.

[0076] In one embodiment, the permission personalization adjustment device 100 for applications with the same user ID further includes:

[0077] An application package data acquisition unit is used to acquire the application package data corresponding to the update instruction if an update instruction is detected, and store the application package data in the preset database.

[0078] In this embodiment, to achieve dynamic management of applications with personalized permission adjustments in the vehicle's preset database, the application package data stored in the preset database can be updated periodically or irregularly (e.g., adding or deleting applications). If the application package name in the vehicle's system after the last update includes application 1, application 2, application 3, and application 4, it indicates that applications 1 through 4 have personalized permission adjustments. Upon receiving the updated application package data, if it only includes application 1, application 2, and application 3, but not application 4, then after this update, applications 1 through 3 have personalized permission adjustments, while application 4 does not (meaning it cannot have its permissions personalized after this update).

[0079] In one embodiment, the permission personalization adjustment device 100 for applications with the same user ID further includes:

[0080] The interface retrieval unit is used to retrieve the checkComponentPermission interface from the ActivityManagerService.java class.

[0081] The database retrieval unit is used to retrieve the ContentProvider database;

[0082] The application data storage unit is used to store multiple application package names, as well as the permission names and permission switches corresponding to each application package name, in the ContentProvider database.

[0083] In this embodiment, the ActivityManagerService.java class included in the Android system of the vehicle's infotainment system specifically includes the aforementioned preset detection interface, namely the checkComponentPermission interface. Upon obtaining the checkComponentPermission interface, the local ContentProvider database can be directly retrieved as a preset database to store multiple application package names, and the permission names and permission switches corresponding to each application package name. With this preset database as the data foundation, data can be provided for subsequent determination of whether any application package name is exactly the same as the application name to be modified.

[0084] The current permission switch acquisition unit 103 is used to acquire the current permission switch corresponding to the application name to be modified if it is determined that the application name to be modified exists in the preset database.

[0085] In this embodiment, when it is determined that the application name to be modified exists in the preset database, it indicates that the permissions of the application corresponding to the application name to be modified can be modified. At this time, the current permission switch corresponding to the application name to be modified can be obtained from the preset database to determine whether the current permission switch is on or off. For example, if the current permission switch corresponding to the application name to be modified is on, it means that the application permissions of the application name to be modified can be personalized and modified; if the current permission switch corresponding to the application name to be modified is off, it means that the application permissions of the application name to be modified cannot be personalized and modified.

[0086] The current permission name acquisition unit 104 is used to acquire the current permission name corresponding to the name of the application to be modified if it is determined that the current permission switch is in the on state.

[0087] In this embodiment, when it is determined that the current permission switch corresponding to the application name to be modified is in the on state, it indicates that the application permissions of the application name to be modified can be personalized and modified. At this time, the current permission name corresponding to the current permission switch can be obtained and the specific controllable permission names under the current permission switch and the virtual switch buttons corresponding to each permission name can be displayed. For example, the current permission names corresponding to the current permission switch specifically include camera permission switch, location permission switch, storage permission switch, etc., and each current permission name is provided with a virtual switch button on one side to switch each current permission name to the on or off state. It can be seen that by setting separate application permission switches for each application in the vehicle system, the permissions of the application can be personalized and modified based on the permission switches.

[0088] In one embodiment, the permission personalization adjustment device 100 for applications with the same user ID further includes:

[0089] An exception notification unit is used to generate a security exception message to notify that the current permission switch is in a closed state if it is determined that the current permission switch is in a closed state.

[0090] In this embodiment, when it is determined that the current permission switch corresponding to the application name to be modified is in a closed state, it means that the application permissions of the application name to be modified cannot be personalized or modified. To promptly notify the user of the vehicle's infotainment system, a security exception can be generated to indicate that the current permission switch is in a closed state and displayed on the system's screen. Specifically, a SecurityException can be thrown as the security exception information. The user can visually view this security exception information and therefore will not attempt to adjust the application permissions of the application name to be modified.

[0091] The permission adjustment information acquisition unit 105 is used to acquire and save the permission adjustment information corresponding to the current permission name.

[0092] In this embodiment, after the current permission name is displayed on the vehicle's screen, the system can receive the user's actual adjustment instructions to adjust the permissions, such as camera permission and location permission, to obtain permission adjustment information. Based on the permission adjustment information, the system can adjust the specific permissions corresponding to the application name to be modified and save the adjustment information.

[0093] In one embodiment, the permission adjustment information acquisition unit 105 is used for:

[0094] Obtain the permission list corresponding to the current permission name; wherein, each permission name in the permission list corresponds to a sub-permission switch;

[0095] Obtain the setting information for the sub-permission switch corresponding to each permission name in the permission list, and save it as the permission adjustment information.

[0096] In this embodiment, to specifically obtain the permission adjustments involved in the application corresponding to the application name to be modified, a permission list corresponding to the current permission name can be obtained, and each permission name in the permission list can be displayed on the vehicle's screen along with a corresponding sub-permission switch (i.e., the virtual switch button mentioned above) for the user to adjust specifically for each sub-permission switch, such as enabling camera permission and disabling location permission. Once the user's settings for the sub-permission switches corresponding to each permission name in the permission list are obtained, permission adjustment information corresponding to the current permission name can be compiled and saved in the vehicle's infotainment system.

[0097] In one embodiment, such as Figure 3 As shown, the permission personalization adjustment device for applications with the same user ID also includes:

[0098] The exception information generation unit 106 is used to generate an exception information to notify the application that it does not have permission to make adjustments if it is determined that the name of the application to be modified does not exist in the preset database.

[0099] In this embodiment, if it is determined that the application name to be modified does not exist in the preset database, it means that the permissions of the application corresponding to the application name to be modified cannot be modified. At this time, an exception message is directly generated to notify the application that it does not have permission to make adjustments. In this way, users who want to adjust the application corresponding to the application name to be modified on the vehicle's infotainment system can be promptly informed that the application permissions of that application cannot be adjusted.

[0100] This device implements a mechanism to eliminate the sharing of application permissions for multiple customized applications in the vehicle infotainment system. It allows for flexible configuration of personalized application permissions for each application, enabling personalized adjustment of permissions for multiple different applications with the same user ID in the vehicle infotainment system.

[0101] The aforementioned device for personalizing permissions for applications with the same user ID can be implemented as a computer program, which can, for example... Figure 4 It runs on the computer device shown.

[0102] Please see Figure 4 , Figure 4 This is a schematic block diagram of a computer device provided in an embodiment of this application. The computer device 500 is an in-vehicle system.

[0103] See Figure 4 The computer device 500 includes a processor 502, a memory, and a network interface 505 connected via a device bus 501, wherein the memory may include a storage medium 503 and internal memory 504.

[0104] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, it causes the processor 502 to execute a method for personalizing permissions for applications with the same user ID.

[0105] The processor 502 provides computing and control capabilities to support the operation of the entire computer device 500.

[0106] The internal memory 504 provides an environment for the computer program 5032 in the storage medium 503 to run. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a method for personalizing the permissions of applications with the same user ID.

[0107] This network interface 505 is used for network communication, such as providing data transmission. Those skilled in the art will understand that... Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device 500 to which the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0108] The processor 502 is used to run a computer program 5032 stored in the memory to implement the personalized permission adjustment method for applications with the same user ID disclosed in the embodiments of this application.

[0109] Those skilled in the art will understand that Figure 4The embodiments of the computer device shown do not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements. For example, in some embodiments, the computer device may include only memory and a processor. In such embodiments, the structure and function of the memory and processor are different from those shown. Figure 4 The embodiments shown are consistent and will not be described again here.

[0110] It should be understood that in the embodiments of this application, the processor 502 may be a central processing unit (CPU), or it may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0111] In another embodiment of this application, a computer-readable storage medium is provided. This computer-readable storage medium can be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when executed by a processor, the computer program implements the method for personalized permission adjustment of applications with the same user ID disclosed in embodiments of this application.

[0112] Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the devices, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Units with the same function may be grouped into one unit. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, or it may be an electrical, mechanical, or other form of connection.

[0114] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of this application, depending on actual needs.

[0115] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0116] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a backend server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks.

[0117] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for personalized permission adjustment for applications with the same user ID, characterized in that, The method, applied to an in-vehicle infotainment system running an Android system, includes: The name of the application requesting permission is obtained through a preset detection interface; the application corresponding to the name of the application to be modified is a number of different applications with the same user ID in the Android system of the vehicle's infotainment system. Determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name; determining whether the application name to be modified exists in the preset database includes: determining whether there is an application package name that is exactly the same as the application name to be modified; If it is determined that the application name to be modified exists in the preset database, then obtain the current permission switch corresponding to the application name to be modified; If it is determined that the current permission switch is in the on state, the current permission name corresponding to the name of the application to be modified is obtained, and the names of each permission that can be controlled under the current permission switch and the virtual switch button corresponding to each permission name are displayed; wherein, each permission name is provided with a corresponding virtual switch button on one side to switch the corresponding permission name to the on state or the off state. Retrieve and save the permission adjustment information corresponding to the current permission name; If it is determined that the application name to be modified exists in the preset database, after obtaining the current permission switch corresponding to the application name to be modified, the method further includes: If it is determined that the current permission switch is in a closed state, a security exception message is generated to notify that the current permission switch is in a closed state.

2. The method for personalized permission adjustment of applications with the same user ID according to claim 1, characterized in that, Before determining whether the application name to be modified exists in the preset database, the method further includes: Get the checkComponentPermission interface from the ActivityManagerService.java class; Retrieve the ContentProvider database; Multiple application package names, along with the corresponding permission names and permission switches for each application package name, are stored in the ContentProvider database.

3. The method for personalized permission adjustment of applications with the same user ID according to claim 1, characterized in that, The step of obtaining the name of the application to be modified from the application requesting permissions through a preset detection interface includes: The current application ID of the application requesting permission is obtained through the checkComponentPermission interface, which is used as the preset detection interface. Obtain the corresponding application name to be modified based on the current application ID.

4. The method for personalized permission adjustment of applications with the same user ID according to claim 1, characterized in that, The step of obtaining and saving the permission adjustment information corresponding to the current permission name includes: Obtain the permission list corresponding to the current permission name; wherein, each permission name in the permission list corresponds to a sub-permission switch; Obtain the setting information for the sub-permission switch corresponding to each permission name in the permission list, and save it as the permission adjustment information.

5. The method for personalized permission adjustment of applications with the same user ID according to claim 1, characterized in that, Before determining whether the application name to be modified exists in the preset database, the method further includes: If an update command is detected, the update application package data corresponding to the update command is obtained, and the update application package data is stored in the preset database.

6. A device for personalized permission adjustment for applications with the same user ID, characterized in that, An in-vehicle infotainment system used in automobiles, the infotainment system running the Android operating system, includes: The application name to be modified acquisition unit is used to acquire the application name to be modified of the application requesting permission through a preset detection interface; the application corresponding to the application name to be modified is a number of different applications with the same user ID in the Android system of the vehicle's infotainment system. The judgment unit is used to determine whether the application name to be modified exists in a preset database; wherein, the preset database stores multiple application package names, and permission names and permission switches corresponding to each application package name; the judgment unit is specifically used to determine whether there is an application package name that is exactly the same as the application name to be modified. The current permission switch acquisition unit is used to acquire the current permission switch corresponding to the application name to be modified if it is determined that the application name to be modified exists in the preset database, and to display the controllable permission names under the current permission switch and the virtual switch buttons corresponding to each permission name; wherein, each permission name is provided with a corresponding virtual switch button on one side to switch the corresponding permission name to an on or off state. The current permission name acquisition unit is used to acquire the current permission name corresponding to the name of the application to be modified if it is determined that the current permission switch is in the on state. The permission adjustment information acquisition unit is used to acquire and save the permission adjustment information corresponding to the current permission name. The personalized permission adjustment device further includes: The security anomaly notification unit is used to generate a security anomaly message to notify that the current permission switch is in a closed state if it is determined that the current permission switch is in a closed state.

7. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method for personalized permission adjustment of applications with the same user ID as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to perform the permission personalization adjustment method for applications with the same user ID as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Network permission control method and apparatus of application program

    CN104869569A

  • Application program management and control method and device, electronic equipment and readable storage medium

    CN114692132A