File cleaning method, device, medium and electronic device
By obtaining vehicle status information in the in-vehicle Android system and automatically executing corresponding file cleaning strategies, it solves the problem of untimely cleaning by users, realizes automated file management of the in-vehicle system, and improves system performance and driving safety.
Patent Information
- Application Number
- CN202110341080.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-03-30
AI Technical Summary
Existing file cleaning methods for in-vehicle Android systems require users to actively operate, resulting in delayed file cleaning and affecting system performance and driving safety.
By obtaining vehicle status information, it determines usage scenarios and automatically executes preset file cleaning strategies, including scanning and cleaning unnecessary files, such as automatic cleaning before driving, during navigation, or after using entertainment applications.
It realizes automatic file cleaning of the vehicle system, optimizes the use of system resources, reduces the frequency of user operations, and improves driving safety and system performance.
Smart Images

Figure CN115145877B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicles, and in particular, to a file cleaning method, device, medium and electronic device. Background Art
[0002] At present, the file cleaning method of the in-vehicle Android system includes: the user checks the current remaining storage space of the in-vehicle multimedia, and determines whether the current remaining storage space can meet the space requirement for running the Android system loaded in the terminal device; if not, manually starts file cleaning to clean up the storage space; when the remaining storage space obtained by cleaning can meet the storage space requirement for running the Android system, starts the Android system.
[0003] The disadvantage of this method is that the user needs to actively clean up the files of the Android system of the in-car multimedia. However, since users usually use the in-car Android system for navigation and listening to entertainment information, the probability of actively operating the in-car Android system to clean up files is actually very low, resulting in the failure to clean up files in a timely manner. Summary of the invention
[0004] The purpose of the present disclosure is to provide a file cleaning method, device, medium and electronic device, which can timely and automatically clean up the storage space of an in-vehicle Android system.
[0005] According to a first embodiment of the present disclosure, there is provided a file cleaning method, comprising: acquiring vehicle status information; determining a vehicle usage scenario based on the vehicle status information; and automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario.
[0006] Optionally, in the case where the vehicle usage scenario is a pre-driving preparation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the application installation records of the vehicle system and the file directory layers of the file directory that are lower than a preset number of layers; and automatically cleaning based on the scanning results.
[0007] Optionally, in the case where the vehicle usage scenario is a cross-regional navigation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the map data storage path of the map software of the vehicle-mounted system; based on the scanning results, automatically cleaning up map packages related to infrequent activity areas, wherein the infrequent activity area refers to an area where the vehicle has been but no navigation related to the area has been initiated within a preset time thereafter.
[0008] Optionally, in the case where the vehicle usage scenario is an entertainment application usage scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: after the entertainment application usage scenario is completed, automatically scanning the data storage path of the corresponding entertainment application of the vehicle system; based on the scanning results, automatically cleaning files of the preset file cleaning type of the corresponding entertainment application.
[0009] Optionally, the preset file cleaning type is set according to the opening time, startup times, usage time, type and total traffic used by the vehicle computer, and type of entertainment application.
[0010] Optionally, in the case where the vehicle usage scenario is a post-driving preparation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically performing a comprehensive scan of the vehicle system; and automatically cleaning based on the scan results.
[0011] Optionally, the vehicle status information includes positioning information, gear information, speed information, travel information, navigation information, and entertainment application usage information.
[0012] According to a second embodiment of the present disclosure, a file cleaning device is provided, including: an acquisition module for acquiring vehicle status information; a determination module for determining a vehicle usage scenario based on the vehicle status information; and a cleaning module for automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario.
[0013] Optionally, in the case where the vehicle usage scenario is a pre-driving preparation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the application installation records of the vehicle system and the file directory layers of the file directory that are lower than a preset number of layers; and automatically cleaning based on the scanning results.
[0014] Optionally, in the case where the vehicle usage scenario is a cross-regional navigation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the map data storage path of the map software of the vehicle-mounted system; based on the scanning results, automatically cleaning up map packages related to infrequent activity areas, wherein the infrequent activity area refers to an area where the vehicle has been but no navigation related to the area has been initiated within a preset time thereafter.
[0015] Optionally, in the case where the vehicle usage scenario is an entertainment application usage scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: after the entertainment application usage scenario is completed, automatically scanning the data storage path of the corresponding entertainment application of the vehicle system; based on the scanning results, automatically cleaning files of the preset file cleaning type of the corresponding entertainment application.
[0016] Optionally, the preset file cleaning type is set according to the opening time, startup times, usage time, type and total traffic used by the vehicle computer, and type of entertainment application.
[0017] Optionally, in the case where the vehicle usage scenario is a post-driving preparation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically performing a comprehensive scan of the vehicle system; and automatically cleaning based on the scan results.
[0018] Optionally, the vehicle status information includes positioning information, gear information, speed information, travel information, navigation information, and entertainment application usage information.
[0019] According to a third embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method according to the first embodiment of the present disclosure are implemented.
[0020] According to a fourth embodiment of the present disclosure, an electronic device is provided, including: a memory on which a computer program is stored; and a processor for executing the computer program in the memory to implement the steps of the method according to the first embodiment of the present disclosure.
[0021] By adopting the above technical features, since the vehicle usage scenario can be determined based on the vehicle status information and the preset file cleaning strategy corresponding to the vehicle usage scenario can be automatically executed, the cleaning of the vehicle system files can be completed at any time and automatically in combination with the different vehicle usage scenarios, making the use of the vehicle system more targeted, avoiding excessive system resource occupation, and optimizing the use experience of the vehicle system, instead of having to clean up the storage space only when the storage space is insufficient to meet the minimum vehicle system usage requirements as in the prior art. In addition, it can also reduce the occurrence of users operating the vehicle system while driving, and enhance driving safety.
[0022] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0024] Figure 1 The present invention is a flowchart of a file cleaning method according to an embodiment of the present invention.
[0025] Figure 2 It is a schematic block diagram of a file cleaning device according to an embodiment of the present disclosure.
[0026] Figure 3 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0027] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0028] Figure 1 FIG. 1 is a flowchart of a file cleaning method according to an embodiment of the present disclosure. Figure 1 As shown, the method includes the following steps S11 to S13.
[0029] In step S11, vehicle status information is acquired.
[0030] The vehicle status information may include positioning information, gear information, speed information, travel information, navigation information, entertainment application usage information, etc. The vehicle status information may be information from the time the vehicle is started to the time the vehicle is shut down. Positioning information may be obtained from an onboard navigation device or other positioning device. Gear information may be obtained from a gear detection sensor. Speed information may be obtained from a speed sensor. Travel information may be obtained from an onboard navigation device or other travel positioning device. Entertainment application usage information may be obtained from the usage record of entertainment applications.
[0031] In step S12, the vehicle usage scenario is determined based on the vehicle status information.
[0032] In step S13, a preset file cleaning strategy corresponding to the vehicle usage scenario is automatically executed.
[0033] The preset file cleaning strategy can be stored in the cloud server and sent to the vehicle terminal when needed, and of course can also be stored locally on the vehicle terminal.
[0034] In addition, the preset file cleaning strategy can be displayed on the vehicle multimedia through a screen display, or played to the user through voice broadcast.
[0035] By adopting the above technical features, since the vehicle usage scenario can be determined based on the vehicle status information and the preset file cleaning strategy corresponding to the vehicle usage scenario can be automatically executed, the cleaning of the vehicle system files can be completed at any time and automatically in combination with the different vehicle usage scenarios, making the use of the vehicle system more targeted, avoiding excessive system resource occupation, and optimizing the use experience of the vehicle system, instead of having to clean up the storage space only when the storage space is insufficient to meet the minimum vehicle system usage requirements as in the prior art. In addition, it can also reduce the occurrence of users operating the vehicle system while driving, and enhance driving safety.
[0036] In one embodiment, the vehicle usage scenario is a pre-driving preparation scenario, wherein whether it belongs to the pre-driving preparation scenario can be determined based on the gear information and vehicle speed in the vehicle status information, for example, if the vehicle system is started and the vehicle is started in the D gear and the vehicle speed is zero, then it can be considered as a pre-driving preparation scenario.
[0037] Then, in the case of the pre-driving preparation scenario, the automatic execution of the preset file cleaning strategy corresponding to the vehicle use scenario described in step S13 includes: automatically scanning the application installation records of the vehicle system and the file directory layers below the preset number of layers of the file directory; automatically cleaning based on the scanning results. Among them, the preset number of layers can range from 2 to 5 layers. The scope of automatic scanning can be installed application packages, invalid and useless files, application cache information that does not contain a database, uninstalled application residual files, and system junk files. Assuming that the preset number of layers is 2 layers, and the residual file directory of an uninstalled application has a total of 5 layers, during the automatic scanning, only the 2 file directory layers of the residual file directory of the application are automatically scanned, and no deep scanning is performed. That is, in the pre-driving preparation scenario, automatic file cleaning is a light file cleaning, and its file automatic scanning range and automatic cleaning range are installed application packages, invalid and useless files, application cache information (excluding databases), uninstalled application residual files, and system junk files, so as to free up storage space and provide convenience for subsequent use of the vehicle system.
[0038] In one embodiment, the vehicle usage scenario is a cross-region navigation scenario. Wherein, whether it belongs to a cross-region navigation scenario can be determined based on the vehicle location, speed, and map navigation situation. If the vehicle has a cross-region navigation behavior, it is considered to be a cross-region navigation scenario.
[0039] Then, in the case of a cross-region navigation scenario, the automatic execution of the preset file cleaning strategy corresponding to the vehicle usage scenario described in step S13 includes: automatically scanning the map data storage path of the map software of the vehicle system; based on the scanning results, automatically cleaning the map packages related to the infrequent activity area, where the infrequent activity area refers to the area where the vehicle has been but has not initiated navigation related to the area within the subsequent preset time. Because map navigation requires updating the map package of the corresponding area to perform detailed location navigation, if the owner leaves the area where he or she is frequently active and goes to other areas, and does not initiate navigation to the other areas for a period of time, the map package corresponding to the other areas can be automatically cleaned up, realizing the automatic cleaning of the vehicle system files.
[0040] In one embodiment, the vehicle usage scenario is an entertainment application usage scenario. For the entertainment application usage scenario, the preset file cleaning type can be set according to the opening time, startup times, usage time, type and total traffic used by the vehicle machine, and the type of entertainment application. For example, for music entertainment applications, its cached music files, cached lyrics, album covers, etc.; for news applications, its advertising cache files, news covers, audio news cache files; for social applications, its collection information, avatar thumbnails, chat emoticons, screenshots, etc.; for game applications, its installed game installation packages, etc.; all can be automatically cleaned up after the entertainment application usage scenario is completed (that is, the entertainment application is stopped). In addition, a judgment is made based on the type of traffic generally used by the user in this scenario. If the user generally uses the application through a hotspot or wifi, or the user's traffic is still very abundant, then in this case, some data can be actively cleaned up after the entertainment application usage scenario is completed. These data can be downloaded and retrieved through the network after the entertainment application is reopened. If only the vehicle traffic package is used, these data will not be updated and will be updated when the hotspot or wifi is used.
[0041] Then, in the case of the entertainment application usage scenario, the automatic execution of the preset file cleaning strategy corresponding to the vehicle usage scenario described in step S13 includes: after the entertainment application usage scenario is completed, automatically scanning the data storage path of the corresponding entertainment application of the vehicle system; based on the scanning result, automatically cleaning the files of the preset file cleaning type of the corresponding entertainment application. In this way, the accumulation of useless files can be reduced through automatic file cleaning.
[0042] In one embodiment, the vehicle usage scenario is a post-driving preparation scenario, wherein whether it is a post-driving preparation scenario can be determined based on vehicle positioning, map navigation information, gear information, and vehicle speed. For example, if the vehicle is in P gear after arriving near the destination, it is considered to be a post-driving preparation scenario.
[0043] Then, in the case of the post-driving preparation scenario, the automatic execution of the preset file cleaning strategy corresponding to the vehicle use scenario described in step S13 includes: automatic comprehensive scanning of the vehicle system; automatic cleaning based on the scanning results. Among them, the scope of the automatic comprehensive scan includes installed application packages, invalid and useless files, application cache information that does not contain a database, uninstalled application residual files, system junk files, and all other junk files, and all file directory layers of these file directories will be scanned. For example, assuming that a residual file directory of an uninstalled application has a total of 5 file directory layers, and a file directory of an installed application package has a total of 3 file directory layers, then, when performing an automatic comprehensive scan, all 5 file directory layers of the residual file directory of the uninstalled application and all 3 file directory layers of the installed application package will be fully scanned. That is, in the case of the post-driving preparation scenario, the following file ranges can be fully automatically scanned and fully automatically cleaned: installed application packages, invalid and useless files, application cache information (excluding databases), uninstalled application residual files, and system junk files and all other junk. Through this solution, the directory can be deeply traversed to achieve deep file cleaning of the vehicle system, and reduce the useless files generated by the car owner during the driving process after driving.
[0044] Figure 2 FIG. 1 is a schematic block diagram of a file cleaning device according to an embodiment of the present disclosure. Figure 2 As shown, the device includes: an acquisition module 21 for acquiring vehicle status information; a determination module 22 for determining a vehicle usage scenario based on the vehicle status information; and a cleaning module 23 for automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario.
[0045] By adopting the above technical features, since the vehicle usage scenario can be determined based on the vehicle status information and the preset file cleaning strategy corresponding to the vehicle usage scenario can be automatically executed, the cleaning of the vehicle system files can be completed at any time and automatically in combination with the different vehicle usage scenarios, making the use of the vehicle system more targeted, avoiding excessive system resource occupation, and optimizing the use experience of the vehicle system, instead of having to clean up the storage space only when the storage space is insufficient to meet the minimum vehicle system usage requirements as in the prior art. In addition, it can also reduce the occurrence of users operating the vehicle system while driving, and enhance driving safety.
[0046] Optionally, in the case where the vehicle usage scenario is a pre-driving preparation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the application installation records of the vehicle system and the file directory layers of the file directory that are lower than a preset number of layers; and automatically cleaning based on the scanning results.
[0047] Optionally, in the case where the vehicle usage scenario is a cross-regional navigation scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically scanning the map data storage path of the map software of the vehicle-mounted system; based on the scanning results, automatically cleaning up map packages related to infrequent activity areas, wherein the infrequent activity area refers to an area where the vehicle has been but no navigation related to the area has been initiated within a preset time thereafter.
[0048] Optionally, in the case where the vehicle usage scenario is an entertainment application usage scenario, the automatic execution of a preset file cleaning strategy corresponding to the vehicle usage scenario includes: after the entertainment application usage scenario is completed, automatically scanning the data storage path of the corresponding entertainment application of the vehicle system; based on the scanning results, automatically cleaning files of the preset file cleaning type of the corresponding entertainment application.
[0049] Optionally, the preset file cleaning type is set according to the opening time, startup times, usage time, type and total traffic used by the vehicle computer, and type of entertainment application.
[0050] Optionally, in the case where the vehicle usage scenario is a post-driving preparation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: automatically performing a comprehensive scan of the vehicle system; and automatically cleaning based on the scan results.
[0051] Optionally, the vehicle status information includes positioning information, gear information, speed information, travel information, navigation information, and entertainment application usage information.
[0052] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0053] Figure 3 FIG. 7 is a block diagram of an electronic device 700 according to an exemplary embodiment. Figure 3 As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0054] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned file cleaning method. The memory 702 is used to store various types of data to support the operation of the electronic device 700, which may include instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, messages sent and received, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent via the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more thereof, so the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module.
[0055] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned file cleaning method.
[0056] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned file cleaning method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions can be executed by the processor 701 of the electronic device 700 to complete the above-mentioned file cleaning method.
[0057] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0058] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0059] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A file cleaning method, It is characterized in that include: Get vehicle status information; determining a vehicle usage scenario based on the vehicle status information; Automatically execute a preset file cleaning strategy corresponding to the vehicle usage scenario; Wherein, in the case where the vehicle usage scenario is a cross-region navigation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: Automatically scan the map data storage path of the map software of the vehicle system; Based on the scanning result, the map packages related to the infrequent activity area are automatically cleaned up, wherein the infrequent activity area refers to an area where the vehicle has been but no navigation related to the area has been initiated within a preset time.
2. The method according to claim 1, It is characterized in that In the case where the vehicle usage scenario is a pre-driving preparation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: Automatically scan the application installation records of the vehicle system and the file directory layers below the preset number of layers of the file directory; Automatic cleanup based on scan results.
3. The method according to claim 1, It is characterized in that In the case where the vehicle usage scenario is an entertainment application usage scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: After the entertainment application usage scenario is completed, automatically scanning the data storage path of the corresponding entertainment application of the vehicle system; Based on the scanning result, files of a preset file cleaning type of the corresponding entertainment application are automatically cleaned up.
4. The method according to claim 3, It is characterized in that The preset file cleaning type is set according to the opening time, startup times, usage time, type and total traffic used by the vehicle computer, and the type of entertainment application.
5. The method according to claim 1, It is characterized in that In the case where the vehicle usage scenario is a post-driving preparation scenario, the automatically executing a preset file cleaning strategy corresponding to the vehicle usage scenario includes: Automatically scan the vehicle's systems; Automatic cleanup based on scan results.
6. The method according to any one of claims 1 to 5, It is characterized in that The vehicle status information includes positioning information, gear information, speed information, travel information, navigation information, and entertainment application usage information.
7. A file cleaning device, It is characterized in that include: An acquisition module, used to acquire vehicle status information; A determination module, configured to determine a vehicle usage scenario based on the vehicle status information; A cleaning module, used to automatically execute a preset file cleaning strategy corresponding to the vehicle usage scenario; Wherein, when the vehicle usage scenario is a cross-region navigation scenario, the cleaning module is further used to automatically scan the map data storage path of the map software of the vehicle system; Based on the scanning result, the map packages related to the infrequent activity area are automatically cleaned up, wherein the infrequent activity area refers to an area where the vehicle has been but no navigation related to the area has been initiated within a preset time.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.
9. An electronic device, It is characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 6.
