5

I was trying to develop an application in android which should use some antivirus engine (preferably opensource) to scan the files on the device. Have searched a lot on internet but couldn't found any. Anybody please suggest me some antivirus engines that I can bundle with my app and also an example how I can integrate it in my app. Thank you.

edit: Need open source anti-virus libraries which provides APIs so that the third party applications can use the libraries & APIs in the code and scan the files, generate reports etc.,

sziraqui
  • 5,763
  • 3
  • 28
  • 37
Kishore
  • 952
  • 2
  • 11
  • 31
  • "use some antivirus to scan" <== Did you mean 'call' another antivirus app to scan files? – ductran Jul 10 '12 at 07:00
  • yes exactly..want to use SDK of antivirus. – Kishore Jul 10 '12 at 07:11
  • search for anti virus in google play (AVG, Zoner, Lookout, etc.) and then go to their site and see if they offer an API to scan files. – Ran Jul 10 '12 at 16:56
  • 2
    There were no such free AV engine 4 years back but now I can see few public APIs. My current app needs it and this is what I have found [OpenAV] (https://www.symantec.com/connect/articles/openav-developing-open-source-antivirus-engines) [VirusTotal] (https://www.virustotal.com/) – sziraqui Jun 10 '17 at 07:28

1 Answers1

0

I have never tried this, but you can do something like that:

Intent intent = new Intent(Intent.ACTION_MAIN);
intent.setClassName("com.example.package", "com.example.package.ActivityToStart");
startActivity(intent);

or

PackageManager pm = getPackageManager();
Intent intent = pm.getLaunchIntentForPackage("com.example.package");
startActivity(intent);

See: Calling an app from another app
This require you must know application package name of another app that installed in phone. (Go to phone setting -> manage application).

Community
  • 1
  • 1
ductran
  • 10,043
  • 19
  • 82
  • 165
  • I want the SDK of antivirus. I heard that some antivirus organizations provides some SDK(or some interface) to be used in third party applications to scan the malicious files. – Kishore Jul 10 '12 at 08:38
  • Sorry, I can't help, I have never heard about AV SDK or open source. – ductran Jul 10 '12 at 08:44
  • @Kishore - when you ask for something as indistinct as "the SDK of antivirus" there is no justification for downvoting responses that interpret that to mean something different than what you wanted. That's especially true since this answer was posted **after** you confirmed in comments that you wanted a way to "call" another anti-virus app, which is precisely what this answer provides. " – Chris Stratton Jul 10 '12 at 17:07
  • @Chris Stratton: Let me first clarify that the down-vote is not by me. Second thing is i have up voted for the answer that is why it is 0 now. One more point is that just now i have found some thing which proves the question is not indistinct. http://www.opswat.com/products/oesis-framework | http://www.opswat.com/products/metascan | http://www.opswat.com/products/appremover – Kishore Jul 11 '12 at 05:02
  • That you can find something matching your impression of the term does not mean that it has a distinct enough meaning to result in the answers you expect here. – Chris Stratton Jul 11 '12 at 05:04
  • @Chris Stratton: Sorry if i have hurt you. I thought the question is very helpful for business/security applications. – Kishore Jul 11 '12 at 05:15
  • The problem isn't with your goal, it's with not being clear about what sort of solution you want. Do you want an antivirus engine which you can bundle with your app, a source of definitions for that, or do you want a recommendation of a separate app (or even, though of limited practicality, a web service) which you can pass requests or files to and have it scan them and give you the result. – Chris Stratton Jul 11 '12 at 05:24
  • @Kishore any updates on this? Did you finally find the SDK? – Pablo Martinez Jul 01 '18 at 21:21
  • @PabloMartinez Sorry for getting back late. I didn't find such SDK, So we have developed our own propitiatory framework. – Kishore Jul 12 '18 at 10:14
  • @PabloMartinez please refer sziraqui's comment on the question. It looks similar. Might be helpful. – Kishore Jul 12 '18 at 10:17