Skip to content

Investigating How to Detect Whether an App is Launched from "Samsung Secure Folder"

License

Notifications You must be signed in to change notification settings

workspace/SamsungSecureFolderChecker

Repository files navigation

Introduction

I suspected that additional information might be included in the intent used to launch the app. Through debugging, I discovered that a bundle named activity_options is passed as this additional information.

While investigating the values in this bundle, I found that the key android:activity.packageName contains the value com.samsung.knox.securefolder.

// Activity
val packageName = intent.getBundleExtra("activity_options")
  ?.getString("android:activity.packageName", "empty")
  ?: "empty"
image

android:activity.packageName is defined in the ActivityOptions.java file under the name KEY_PACKAGE_NAME. As indicated in the description, the value for this key represents the package that created these options, which allows us to understand that the app was launched from Secure Folder.

Screenshots 📱

Default Secure Folder
Screen_Recording_20240119_175026_samsung-secure-folder-checker_1 VideoEditor_20240119_054935_1

Warning ⚠️

This is a fact discovered through reverse engineering, and it may not function correctly following future updates to `Secure Folder.

About

Investigating How to Detect Whether an App is Launched from "Samsung Secure Folder"

Topics

Resources

License

Stars

Watchers

Forks

Languages