Android-based personnel information offline processing method
By using local databases and encryption technology on the Android platform, the problems of information leakage, inefficiency and inability to use offline in traditional personnel information processing methods are solved, efficient and secure offline personnel information processing is achieved, and user experience and privacy protection are improved.
Patent Information
- Application Number
- CN202411644039.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-03-11
AI Technical Summary
Traditional personnel information processing methods rely on network services, and there are problems such as information leakage, inefficiency and inability to use offline.
The offline processing method of personnel information based on the Android platform is adopted. By using a local database to store personnel information on mobile devices, and using technologies such as data encryption, sandboxing mechanism and GreenDAO database, safe storage and efficient query of data are achieved.
It improves the efficiency and security of information processing, provides the possibility of offline use, improves user experience, and complies with privacy protection regulations and standards.
Smart Images

Figure CN119598485A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer data processing, and in particular to an Android-based personnel information offline processing method. Background Art
[0002] With the popularity and development of mobile Internet, people's demand for applications on mobile devices is also increasing. In many mobile applications, various types of information need to be processed and managed, including personnel information. Traditionally, personnel information processing mainly relies on network services. Users need to upload information to the server and then query and manage it through the network. However, this approach has some problems: Security: In traditional network services, user information needs to be transmitted to the server through the network for storage and processing, which poses a risk of information leakage. Efficiency: Due to the need to rely on the network to transmit data, the traditional way of processing personnel information may be limited by the network speed, resulting in low processing efficiency. Offline use: In some cases, users may need to use personnel information without a network connection, and traditional network services cannot meet this demand.
[0003] Based on the above problems, an Android-based offline processing method for personnel information is proposed. By using a local database to store personnel information on mobile devices, the efficiency and security of information processing can be improved. At the same time, it also provides the possibility of offline use, thereby improving the user experience. Summary of the invention
[0004] The present invention relates to an offline personnel information processing method based on Android, aiming to solve the problems of inconvenient personnel information processing and low security in the prior art. The traditional personnel information processing method relies on network services, and has the problems of information leakage, low efficiency and inability to use offline. The present invention provides an offline personnel information processing method implemented by the Android platform, which solves the defects of the traditional method by using a local database to store personnel information on a mobile device. The present invention includes the following steps: obtaining personnel information input by a user; storing the personnel information in a local database; querying and displaying the personnel information according to user needs. The present invention improves processing efficiency and security by implementing offline processing of personnel information on the Android platform, and also improves user experience.
[0005] An Android-based personnel information offline processing method comprises the following steps: The first step is to extract personnel information and save it in JSON file format. Use the postman network request tool to obtain personnel data from the server and save the request data in JSON file format. The second step is to name the personnel information json file with the relevant type according to the personnel data type, encrypt the personnel information file, and save it in the .json_encrypt format; use the compilation tool IDEA locally to encrypt the data in the saved json file row by row; The third step is to copy the encrypted personnel information and photos to the assets folder under the project. This is done using the Android Studio development tool. The encrypted files are placed in the specified folder of the project to facilitate data reading. Step 4: Run the project after configuring the security items of the application to detect whether the device is rooted and whether the personnel information data is complete; this is done using the Android device, using the development tool to package the project and install the software installation package to the device. After launching the App, the operations performed within the application; The fifth step is to read and parse the data, and write the decrypted data into the local database; use the Android device to read the local data file after the application is started, decrypt it, and then insert the corresponding data into the local database of the Android device one by one; decrypt the encrypted personnel data saved in the installation package through the device, and then parse the decrypted data through Json to write the personnel information into the database of the Android device.
[0006] Step 6. In this step, the account number is the mobile phone number in the personnel information. The password is an 8-digit number generated by hash processing and random numbers. It needs to be granted by the administrator. Only the logged-in user has the right to view the personnel information in the current system. Step 7: View personnel information; users can view the user's basic information, personal resume, and personnel information statistics.
[0007] Beneficial effects of the present invention: 1. Data encryption: The encryption methods mainly used in this invention are SM4 and AES. They have the following advantages: Ensure information security: Data encryption can effectively protect the security of information during storage and transmission, and prevent information from being obtained or tampered with by unauthorized visitors. Improve information integrity: Encryption technology can ensure that information is not tampered with during transmission and processing, and maintain the integrity of information. Prevent information leakage: Encryption can prevent sensitive information from being leaked in unexpected circumstances. Even if the information is stolen, the encrypted data cannot be interpreted by attackers. Comply with privacy regulations: Data encryption is an effective means to comply with privacy protection regulations and standards, and is particularly important for some industries or application scenarios with strict regulatory requirements. Reduce risks and responsibilities: Encryption can reduce the risk of data leakage and information security incidents, and reduce the legal responsibilities of organizations and individuals. Enhance user trust: Encrypting personal information can enhance user trust in service providers or platforms, and improve user experience and satisfaction.
[0008] 2. Data isolation, using the sandbox mechanism, that is, other applications cannot access the data of this application. The main advantages of using the sandbox mechanism are as follows: Improve security: The sandbox mechanism can isolate each application so that the application can only access its own data and files, thereby improving the security of the system. Protect user privacy: The sandbox mechanism can prevent applications from unauthorized access to users' personal information and sensitive data, thereby protecting user privacy. Reduce system risks: The sandbox mechanism can reduce the risk of the system being attacked by malicious applications and protect the stability and reliability of the system. Enhance application security: The sandbox mechanism can make applications more secure. Even if the application has vulnerabilities or is attacked, it will not affect the system and other applications. Convenient management: The sandbox mechanism can facilitate system administrators to manage and monitor applications, and promptly discover and deal with security issues. Improve user experience: The sandbox mechanism allows users to use applications with confidence without worrying about personal information being stolen or leaked, thereby improving user trust and experience.
[0009] 3. Database, using GreenDAO, GreenDAO is an open source, lightweight and fast ORM framework for Android, which maps Java objects to the SQLite database. When we operate the database, we no longer need to write complex SQL statements. In terms of performance, greenDAO is highly optimized for Android, with minimal memory overhead, small dependency size, and support for database encryption.
[0010] 4. Image loading, using the Glide image loading library. Glide can effectively manage memory and disk cache, reduce repeated network requests and image loading, and improve performance.
[0011] 5. Chart display: Using MpAndroidChart chart library, complex data can be presented in an intuitive and easy-to-understand graphical form, helping users to quickly understand and analyze data, making data clearer and more prominent, and improving the communication effect of data. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 This is a flow chart of the offline processing of the present invention. DETAILED DESCRIPTION
[0013] The present invention is an offline call data processing solution based on the Android system, aiming to solve the problems of inconvenient personnel information processing and low security in the prior art. The present invention is described below based on embodiments, but the present invention is not limited to these embodiments.
[0014] The present invention provides a method for offline processing of personnel information of Android, and the flowchart in the attached figure illustrates the complete process from information acquisition to application packaging. The technical solution of the present invention is as follows: 1. Data classification mainly involves classifying personnel information according to basic information, educational background, work experience, skills and expertise, social relationships, etc. Different types of information are saved in different files.
[0015] 2. Data encryption: Data encryption is a kind of protection for personnel information, and it is encrypted through differentiated information classification in data classification.
[0016] 3. Data storage: Data storage is to divide information into tables according to categories and insert them into corresponding data. The database is also encrypted.
[0017] 4. Application security configuration. Application security configuration is mainly divided into isolated storage of data, network isolation, process isolation, application sandbox mechanism, and application login.
[0018] 5. Check the security of the device. By checking the security of the device, we can determine whether the data can be processed offline and read normally. This is mainly done by starting the application to check whether the device has a lock screen password set, whether the device is rooted, and whether the developer options are turned on.
[0019] 6. Data preloading: Data preloading is to preprocess the data before it is used, and preload part of the data after judging the data integrity.
[0020] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] The first step is to pull the personnel information and save it in different information in JSON file format. This operation requires the use of network request tools such as Postman to obtain personnel data from the server and save the request data in JSON file format.
[0022] The second step is to name the personnel information json file with the relevant type according to the personnel data type, encrypt the personnel information file, and save it in .json_encrypt format. This operation requires the use of a local compilation tool (here is IDEA) to encrypt the data in the saved json file row by row.
[0023] The third step is to copy the encrypted personnel information and photos to the assets folder under the project. This operation is mainly completed in the Android Studio development tool, which is to put the encrypted files in the specified folder of the project to facilitate data reading.
[0024] The fourth step is to run the project after configuring the security items of the application, and to detect the security of the device (including whether the device is rooted, etc.) and the integrity of the personnel information data. This step is mainly reflected on the Android device side, which is the operation performed inside the application after the project is packaged with the development tool and the software installation package is installed on the device.
[0025] The fifth step is to read and parse (decrypt) the data, and write the decrypted data into the local database. This step is mainly reflected in the Android device side. It is mainly to read the local data file after the application is started, decrypt it, and then insert the corresponding data into the local database of the Android device. It is convenient to read and use the data. This step is mainly to decrypt the encrypted personnel data saved in the installation package through the device side, and then parse the decrypted data through Json to write the personnel information into the database of the Android device, aiming to prevent data leakage in the end-to-end process.
[0026] Step 6. In this step, the account number is the mobile phone number in the personnel information. The password is an 8-digit number generated by hash processing and random numbers. It needs to be granted by the administrator. Only the logged-in user has the right to view the personnel information in the current system. This operation is mainly reflected on Android devices. Step 7: View personnel information. This operation is mainly reflected in Android devices, where users can view the user's basic personnel information, personal resume, personnel information statistics, etc.
[0027] Glossary AES: AES technology is a symmetric block encryption technology that uses 128-bit blocks to encrypt data, providing higher encryption strength than the RC4 algorithm of WEP / TKIPS.
[0028] SM4: The SM4 algorithm is a block cipher algorithm. Its block length is 128 bits, and the key length is also 128 bits. Both the encryption algorithm and the key expansion algorithm use a 32-round nonlinear iterative structure, and perform encryption operations in units of words (32 bits). Each iterative operation is a round of transformation function F. The structure of the SM4 algorithm encryption / decryption algorithm is the same, but the round keys used are opposite, where the decryption round key is the reverse order of the encryption round key.
Claims
1. A method for offline processing of personnel information based on Android, characterized in that The steps include: The first step is to extract personnel information and save it in JSON file format. Use the postman network request tool to obtain personnel data from the server and save the request data in JSON file format. The second step is to name the personnel information json file with the relevant type according to the personnel data type, encrypt the personnel information file, and save it in the .json_encrypt format; use the compilation tool IDEA locally to encrypt the data in the saved json file row by row; The third step is to copy the encrypted personnel information and photos to the assets folder under the project. This is done using the Android Studio development tool. The encrypted files are placed in the specified folder of the project to facilitate data reading. The fourth step is to check whether the device is rooted and whether the personnel information data is complete; this is done using the Android device, by using the development tool to package the project and then installing the software installation package to the device. After launching the App, the operations performed within the application; Step 5: Read and parse the data, and write the decrypted data into the local database; Using the Android device, after the application is started, the local data file is read and decrypted, and then the corresponding data is inserted into the local database of the Android device one by one; After the encrypted personnel data stored in the installation package is decrypted on the device side, the decrypted data is parsed through Json to write the personnel information into the database of the Android device; Step 6. In this step, the account number is the mobile phone number in the personnel information. The password is an 8-digit number generated by hash processing and random numbers. It needs to be granted by the administrator. Only the logged-in user has the right to view the personnel information in the current system. Step 7: View personnel information; users can view the user's basic information, personal resume, and personnel information statistics.