-
Notifications
You must be signed in to change notification settings - Fork 19
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
How to test features? #3
Comments
Debugging detection you've tried is disabled in debug mode to prevent false positives. The easiest way to produce an incident (trigger local check and create a record in security report) is to install a release build on an emulator (i.e., Android Emulator, which comes with Android Studio). Both app and freeRASP must be in release mode. You can also use a rooted Android device/emulator, in which case you create an incident even in debug mode. |
|
First question:
You can override this behaviour - for example, to run release freeRASP in debug mode. For Android (Android Studio): dependencies {
... some other imports ...
// Talsec Release
releaseImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:2.6.0-release'
// Talsec Debug
debugImplementation 'com.aheaditec.talsec.security:TalsecSecurity-Community:2.6.0-dev'
}
You can edit this file (Android Studio might need confirmation, that you you are trying to override which does not belong to project) to import
Be aware that you are overriding package from pubdev cache, so any other application using freerasp is depending on this cache and will be affected as well (if you compile it at the same time). For iOS (xCode): cd "${SRCROOT}/.symlinks/plugins/freerasp/ios"
if [ "${CONFIGURATION}" = "Debug" ]; then
rm -rf ./TalsecRuntime.xcframework
ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
else
rm -rf ./TalsecRuntime.xcframework
ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
fi Example (swapping directories): cd "${SRCROOT}/.symlinks/plugins/freerasp/ios"
if [ "${CONFIGURATION}" = "Release" ]; then
rm -rf ./TalsecRuntime.xcframework
ln -s ./Debug/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
else
rm -rf ./TalsecRuntime.xcframework
ln -s ./Release/TalsecRuntime.xcframework/ TalsecRuntime.xcframework
fi Second question: |
After following the Readme file and implementing the code, I do not know if this is working or not.
The doc says something about
Dev
andRelease
version, but not much information.I tried running the app in Debug mode, hoping that the
onDebuggerDetected
callback is called, but I don't see any output.The text was updated successfully, but these errors were encountered: