Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Optimizing the Storage of Privileges in the Database #2192

Closed
ohyeah521 opened this issue Jun 20, 2023 · 2 comments
Closed

[FEATURE] Optimizing the Storage of Privileges in the Database #2192

ohyeah521 opened this issue Jun 20, 2023 · 2 comments
Assignees
Labels
enhancement MobSF enhancements and feature requests

Comments

@ohyeah521
Copy link
Contributor

ohyeah521 commented Jun 20, 2023

If you're requesting a new feature/enhancement, explain why you'd like it to be added and it's importance.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

The dvm_permissions.py file stores the permission description of the apk. When a large number of apks are stored in the database, the description information will be a large amount of repeated data, resulting in a larger and larger database. Therefore, it is recommended to store the contents of this file in the database, and then reference it with a foreign key

Describe the solution you'd like
A clear and concise description of what you want to happen.

 class DVMPermission(models.Model):
    name = models.CharField(max_length=50, primary_key=True) # 权限的名称,如SEND_SMS
    level = models.CharField(max_length=10) # 权限的等级,如危险
    description = models.CharField(max_length=255) # 权限的描述,如发送短信
    explanation = models.CharField(max_length=255) # 权限的解释,如允许应用程序发送短信

class StaticAnalyzerAndroid(models.Model):
     PERMISSIONS = models.ManyToManyField(DVMPermission) # 使用ManyToManyField
     ..............

In this way, you can reduce a large amount of repeated text in DVM_PERMISSIONS in the database, and improve the standardization and maintainability of the data.

@ohyeah521 ohyeah521 added the enhancement MobSF enhancements and feature requests label Jun 20, 2023
@github-actions
Copy link

👋 @ohyeah521
Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel
Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.

@ohyeah521 ohyeah521 changed the title [FEATURE]Optimizing the storage of database central permissions [FEATURE] Optimizing the Storage of Privileges in the Database Jun 20, 2023
@ajinabraham
Copy link
Member

Tracked separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement MobSF enhancements and feature requests
Projects
None yet
Development

No branches or pull requests

2 participants