Skip to content

Commit 6dce4cb

Browse files
authored
Merge pull request #2 from EXXETA/develop
Update Android Dependency & Readme
2 parents e722780 + 53acf4c commit 6dce4cb

File tree

115 files changed

+5429
-61
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+5429
-61
lines changed

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
19+
# The .vscode folder contains launch configuration and tasks you configure in
20+
# VS Code which you may wish to be included in version control, so this line
21+
# is commented out by default.
22+
#.vscode/
23+
24+
# Flutter/Dart/Pub related
25+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
26+
/pubspec.lock
27+
**/doc/api/
28+
.dart_tool/
29+
build/

.metadata

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This file tracks properties of this Flutter project.
2+
# Used by Flutter tool to assess capabilities and perform upgrades etc.
3+
#
4+
# This file should be version controlled and should not be manually edited.
5+
6+
version:
7+
revision: "761747bfc538b5af34aa0d3fac380f1bc331ec49"
8+
channel: "[user-branch]"
9+
10+
project_type: plugin
11+
12+
# Tracks metadata for the flutter migrate command
13+
migration:
14+
platforms:
15+
- platform: root
16+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
17+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
18+
- platform: android
19+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
20+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
21+
- platform: ios
22+
create_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
23+
base_revision: 761747bfc538b5af34aa0d3fac380f1bc331ec49
24+
25+
# User provided section
26+
27+
# List of Local paths (relative to this file) that should be
28+
# ignored by the migrate tool.
29+
#
30+
# Files that are not part of the templates will be ignored by default.
31+
unmanaged_files:
32+
- 'lib/main.dart'
33+
- 'ios/Runner.xcodeproj/project.pbxproj'

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Flutter Mobile Security Toolkit Library Changelog
2+
===========================
3+
4+
# 1.0.0
5+
6+
* Added Jailbreak detection
7+
* Added Hooks detection
8+
* Added Simulator detection

CONTRIBUTING.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Contributing Guidelines
2+
3+
First of all, thank you for considering contributing to the project! Open source
4+
projects like this one grow and thrive thanks to the contributions from people
5+
like you. Whether you're fixing bugs, adding new features, improving the
6+
documentation, or even reporting issues, every contribution is valuable and
7+
appreciated.
8+
9+
This document provides some guidelines to help ensure that your contributions
10+
are as effective as possible. Please take a moment to read through these
11+
guidelines before submitting your contribution.
12+
13+
Remember, everyone contributing to this project is expected to follow our code
14+
of conduct. This helps ensure a positive and inclusive environment for all
15+
contributors.
16+
17+
Thank you again for your contributions, and we look forward to seeing what you
18+
will bring to the project!
19+
20+
## Creating Good Tickets
21+
22+
> [!TIP]
23+
> Before creating a new issue, it's a good practice to search for open tickets
24+
and pull requests to avoid duplicates.
25+
26+
### Bug Reports
27+
28+
When reporting a bug, please include the following information:
29+
30+
1. **Title**: A brief, descriptive title for the bug.
31+
2. **Version**: The version of the package you are using.
32+
3. **Flutter Version**: The version of Flutter you are using.
33+
4. **Steps to Reproduce**: Detailed steps on how to reproduce the bug.
34+
5. **Expected Result**: What you expected to happen.
35+
6. **Actual Result**: What actually happened. Include logs, screenshots, or any
36+
other relevant information.
37+
38+
### Feature Requests
39+
40+
When requesting a new feature, please include the following information:
41+
42+
1. **Title**: A brief, descriptive title for the feature request.
43+
2. **Request Statement**: Describe the problem that you believe the project
44+
could solve but currently doesn't.
45+
3. **Solution Brainstorm**: Share your ideas on how the problem could be solved.
46+
If you don't have a specific solution in mind, that's okay too!
47+
48+
> [!TIP]
49+
> Remember, the more information you provide, the easier it is for us to
50+
understand and address the issue. Thank you for your contributions!
51+
> Please refrain from commenting on old, closed tickets. If an old issue seems
52+
related but doesn't fully address your problem, it's best to open a new ticket
53+
and reference the old one instead.
54+
55+
## Development
56+
57+
This project uses other native libraries as dependencies for both android
58+
and ios. Please refer to readme to participate in native development
59+
60+
61+
### Setup
62+
63+
Please use the latest Flutter Version. Use the provided example project to test
64+
or bug report any existing or new features.
65+
66+
## Submitting changes
67+
68+
Before submitting your changes as a pull request, please make sure to format
69+
and analyze your code.

LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright 2024 Exxeta
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of
4+
this software and associated documentation files (the “Software”), to deal in
5+
the Software without restriction, including without limitation the rights to
6+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7+
the Software, and to permit persons to whom the Software is furnished to do so,
8+
subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
15+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
16+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 62 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,94 @@
1-
# Flutter Security Framework
1+
# Mobile Security Toolkit
22

3+
![License](https://img.shields.io/github/license/EXXETA/Flutter-Security-Toolkit.svg?style=flat-square)
4+
![Release](https://img.shields.io/github/release/EXXETA/Flutter-Security-Toolkit.svg?style=flat-square)
35

6+
<img src="./docs/1.png" width=300 alt="screenshot"/>
47

5-
## Getting started
8+
In a world where mobile devices hold vast amounts of personal and
9+
business-critical data, security is no longer optional — it's essential.
610

7-
To make it easy for you to get started with GitLab, here's a list of recommended next steps.
11+
Security Suite is an open-source project designed to work on mobile security by
12+
providing a developer-friendly, all-in-one repository for developers and
13+
security experts.
814

9-
Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)!
15+
This project uses:
1016

11-
## Add your files
17+
- [iOS Security Toolkit](https://github.com/EXXETA/iOS-Security-Toolkit)
18+
- [Android Security Toolkit](https://github.com/EXXETA/Android-Security-Toolkit)
1219

13-
- [ ] [Create](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#create-a-file) or [upload](https://docs.gitlab.com/ee/user/project/repository/web_editor.html#upload-a-file) files
14-
- [ ] [Add files using the command line](https://docs.gitlab.com/ee/gitlab-basics/add-file.html#add-a-file-using-the-command-line) or push an existing Git repository with the following command:
20+
## Features
1521

16-
```
17-
cd existing_repo
18-
git remote add origin https://gitlabci.exxeta.info/mobile-security/flutter/flutter-security-framework.git
19-
git branch -M main
20-
git push -uf origin main
21-
```
22-
23-
## Integrate with your tools
24-
25-
- [ ] [Set up project integrations](https://gitlabci.exxeta.info/mobile-security/flutter/flutter-security-framework/-/settings/integrations)
26-
27-
## Collaborate with your team
22+
Already implemented Features are:
23+
- [x] Jailbreak or Root Detection
24+
- [x] Hooks Detection
25+
- [x] Simulator Detection
2826

29-
- [ ] [Invite team members and collaborators](https://docs.gitlab.com/ee/user/project/members/)
30-
- [ ] [Create a new merge request](https://docs.gitlab.com/ee/user/project/merge_requests/creating_merge_requests.html)
31-
- [ ] [Automatically close issues from merge requests](https://docs.gitlab.com/ee/user/project/issues/managing_issues.html#closing-issues-automatically)
32-
- [ ] [Enable merge request approvals](https://docs.gitlab.com/ee/user/project/merge_requests/approvals/)
33-
- [ ] [Set auto-merge](https://docs.gitlab.com/ee/user/project/merge_requests/merge_when_pipeline_succeeds.html)
27+
You can see them in action with the [Example App](./SecurityToolkitExample) we've provided
3428

35-
## Test and Deploy
36-
37-
Use the built-in continuous integration in GitLab.
38-
39-
- [ ] [Get started with GitLab CI/CD](https://docs.gitlab.com/ee/ci/quick_start/index.html)
40-
- [ ] [Analyze your code for known vulnerabilities with Static Application Security Testing (SAST)](https://docs.gitlab.com/ee/user/application_security/sast/)
41-
- [ ] [Deploy to Kubernetes, Amazon EC2, or Amazon ECS using Auto Deploy](https://docs.gitlab.com/ee/topics/autodevops/requirements.html)
42-
- [ ] [Use pull-based deployments for improved Kubernetes management](https://docs.gitlab.com/ee/user/clusters/agent/)
43-
- [ ] [Set up protected environments](https://docs.gitlab.com/ee/ci/environments/protected_environments.html)
29+
## Installation
4430

45-
***
31+
You can use the Mobile Security Toolkit in your project by importing it with
32+
Swift Package Manager
4633

47-
# Editing this README
34+
### pub.dev
4835

49-
When you're ready to make this README your own, just edit this file and use the handy template below (or feel free to structure it however you want - this is just a starting point!). Thanks to [makeareadme.com](https://www.makeareadme.com/) for this template.
36+
`.package(url: "https://github.com/EXXETA/iOS-Security-Toolkit.git", from:
37+
"1.0.0")`
5038

51-
## Suggestions for a good README
5239

53-
Every project is different, so consider which of these sections apply to yours. The sections used in the template are suggestions for most open source projects. Also keep in mind that while a README can be too long and detailed, too long is better than too short. If you think your README is too long, consider utilizing another form of documentation rather than cutting out information.
40+
!Important:
5441

55-
## Name
56-
Choose a self-explaining name for your project.
42+
Make sure your `android/build.gradle` contains following:
43+
```
44+
allprojects {
45+
repositories {
46+
.
47+
.
48+
.
49+
maven { url 'https://jitpack.io' }
50+
}
51+
}
52+
```
5753

58-
## Description
59-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
54+
## Usage
6055

61-
## Badges
62-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
56+
### Variable API
6357

64-
## Visuals
65-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
58+
Use the gettable variables to get current status of the device:
6659

67-
## Installation
68-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
60+
- `Future<bool?> areRootPrivilegesDetected()`
61+
- `Future<bool?> areHooksDetected()`
62+
- `Future<bool?> isSimulatorDetected()`
6963

70-
## Usage
71-
Use examples liberally, and show the expected output if you can. It's helpful to have inline the smallest example of usage that you can demonstrate, while providing links to more sophisticated examples if they are too long to reasonably include in the README.
64+
### Async Stream API
7265

73-
## Support
74-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
66+
This feature will soon be implemented
7567

7668
## Roadmap
77-
If you have ideas for releases in the future, it is a good idea to list them in the README.
7869

79-
## Contributing
80-
State if you are open to contributions and what your requirements are for accepting them.
70+
Next features to be implemented:
71+
- [ ] App Signature Check
72+
- [ ] Debugger Detection
73+
- [ ] Device Passcode Check
74+
- [ ] Integrity Check
75+
- [ ] Hardware Security Check
8176

82-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
77+
## Contributing
8378

84-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
79+
See [CONTRIBUTING](./CONTRIBUTING.md)
8580

8681
## Authors and acknowledgment
87-
Show your appreciation to those who have contributed to the project.
82+
83+
Authors:
84+
- [Yessine Choura](https://github.com/ychoura)
85+
- [Denis Dobanda](https://github.com/theDeniZ)
86+
87+
Special Thanks:
88+
- Sabrina Geiger
89+
- Dennis Gill
90+
- Jonas Rottmann
8891

8992
## License
90-
For open source projects, say how it is licensed.
9193

92-
## Project status
93-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
94+
See [LICENSE](./LICENSE)

analysis_options.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include: package:flutter_lints/flutter.yaml
2+
3+
# Additional information about this file can be found at
4+
# https://dart.dev/guides/language/analysis-options

android/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.cxx

0 commit comments

Comments
 (0)