Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android InstantRun - Norton Security finds Trojan

A week ago Norton Security started to find Trojan horse (Trojan.Gen.NPE.2) in file R.class located:

app\build\intermediates\transforms\instantrun\debug\folders\1\5\main\android\support\v4\ r.class

and

app\build\intermediates\transforms\instantrunslicer\debug\folders\1\5\slice_2\android\support\v4\ r.class

Link to virustotal.com scan: https://www.virustotal.com/pl/file/282f4e09c102cd93c2f849c9fe9ed570188f5a03395ab84d2457a7c64d7acb1c/analysis/1499458308/

And the code:

package android.support.v4;

import com.android.tools.fd.runtime.IncrementalChange;
import com.android.tools.fd.runtime.InstantReloadException;

public final class R {
    public static final long serialVersionUID = 830508538663712626L;

    public R() {
        IncrementalChange var1 = $change;
        if(var1 != null) {
            Object[] var10001 = (Object[])var1.access$dispatch("init$args.([Landroid/support/v4/R;[Ljava/lang/Object;)Ljava/lang/Object;", new Object[]{null, new Object[0]});
            Object[] var2 = (Object[])var10001[0];
            this(var10001, (InstantReloadException)null);
            var2[0] = this;
            var1.access$dispatch("init$body.(Landroid/support/v4/R;[Ljava/lang/Object;)V", var2);
        } else {
            super();
        }
    }

    R(Object[] var1, InstantReloadException var2) {
        String var3 = (String)var1[1];
        switch(var3.hashCode()) {
        case -1968665286:
            super();
            return;
        case -71951640:
            this();
            return;
        default:
            throw new InstantReloadException(String.format("String switch could not find \'%s\' with hashcode %s in %s", new Object[]{var3, Integer.valueOf(var3.hashCode()), "android/support/v4/R"}));
        }
    }
}

Is it false alarm?

like image 377
AppiDevo Avatar asked Jul 07 '17 20:07

AppiDevo


People also ask

Does Norton protect against Trojan?

Norton protects computer users from malware, identity theft, data loss, and more. In regard to malware, Norton 360 is a sound choice because it: Defends – The Norton 360 programming suite is designed to defend against the introduction of spyware, bots, rootkits, viruses, Trojans, worms and more.

What happens when Norton detects a virus?

When your Norton product detects a security risk, it automatically removes it, unless it requires your input to understand how you want to resolve the risk.

How good is Norton at detecting malware?

It's a comprehensive suite of security tools that protect from all sorts of threats including viruses, malware and spyware. While it's excellent in its strong virus protection and 100% malware detection, it can get pricey and require paying for extra important features.

Does Norton pick up all malware?

Yes, Norton 360 provides anti malware protection. It protects against computer viruses, spam, social dangers, phishing, identity theft, and other online born threats. Was this article helpful?


2 Answers

I cant add exclusions in Symantec on my laptop as its company's laptop and excluding applications, files or folders feature is deactivated. So in order to get going i have disabled instant run to get going else i can't even install app on my emulator and get stuck with installation errors.

You can disable instant run by unchecking instant run in Settings in Android Studio.

NOTE: This is just workaround and not permanent solution.

enter image description here

like image 112
JRG Avatar answered Sep 27 '22 18:09

JRG


You can report this false positive to Symantec and have them fix it.

https://submit.symantec.com/false_positive/

like image 38
kichik Avatar answered Sep 27 '22 18:09

kichik