x13a / Wasted

Lock and wipe on emergency
GNU General Public License v3.0
485 stars 41 forks source link

Allow fake app customization #39

Open ghost opened 2 years ago

ghost commented 2 years ago

A few ideas on improving the fake app feature.

  1. Allow customization of name and icon . I live in China and we do not use Telegram or the other three apps. And I know they use other messengers in Korea or Japan or India. So it would be great to allow users to set the icon and name.
  2. If its possible to add a fake notification bubble on the fake app icon. Wouldn't it be far more convincing?
x13a commented 2 years ago

For now these apps are not created dynamically. They are predefined in manifest.

<activity-alias
    android:name=".trigger.application.SignalActivity"
    android:targetActivity=".trigger.application.ApplicationActivity"
    android:label="@string/signal"
    android:icon="@mipmap/ic_signal"
    android:roundIcon="@mipmap/ic_signal_round"
    android:noHistory="true"
    android:theme="@android:style/Theme.NoDisplay"
    android:enabled="false"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity-alias>

I do not know if there is a good way to create them programmatically. But I will take a look. If I will not find, you have to make a PR or send me an icon (better in svg) and the application name, to add it.

About bubbles. To show bubble, as I understand, Wasted has to post a notification. There is a related issue about bubbles https://github.com/x13a/Wasted/issues/36 . In the recent version foreground service will not make any bubbles.

serrq commented 2 years ago

I don't know if I understand the problem correctly, but I think he is asking about hiding apps or hiding them behind a fake icon. This is a common problem with many apps whose inherent security and that of its owner are crucial (see dictatorial countries with censorship and persecution).

Since this is a common problem for many apps of a certain type, I had thought of asking the developer of a well-known open source calculator to create a shortcut to hide and make hidden apps (previously added to the "hidden" list) appear. Unfortunately, I received a flat "no."

x13a commented 2 years ago

@serrq He is talking about Application trigger in Wasted. You can add some fake messenger icons, trying to open one them will fire Wasted. Like a trap.

serrq commented 2 years ago

I understand now. Thank you. Although once the attacker (unauthorized entry) has entered some kind of trap should have already been activated. For my trap scheme makes little sense. I put the shield outside the device. If the attacker enters the device (knocks out the screen lock) it has already triggered the wipe or some other devilry.