Robert Moynihan wrote:

Dr. Vesselin Bontchev wrote:

At this point I have it set up to save the name of the virus to a
database, then call SysReset(). on a reset i check that database,
and if there is a record there, i pull out the name of the app,
and delete it there.


That's not good. First, you shouldn't be resetting the device if, for some reason, the user does not want to disinfect (e.g., if your scanner is causing a false positive and the user knows that for certain). Second, depending on how the virus is written, it might execute on reset, so it could be too late to try to delete it then.

You really should set the Recycle attribute if disinfection is requested and before resetting the device.

Regards,
Vesselin
What about just come up with a new "Type", maybe something like 'QTne' for "Quarantine". When you detect a virus change the database to that type. If the app had registered for any notifications it will no longer receive them. The default launcher will no longer be able to display the database for launching because it is no longer of type 'appl'. If any other app had wanted to try to relaunch that app it would likely no longer be able to find it. To be more sure, you might want to edit the app name as well, perhaps adding a generic prefix, so that any saved searching criteria would fail to find it one those changes have been made. Your app, of course, could display the names of the quarantined dbs, and the user could manage the deletion/quarantine status from within your UI. Just an idea. Bob.

Hmm... on second thought, perhaps it still WOULD receive its notifications, since the cardNo and dbID haven't changed. Not sure... Bob.

--
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/

Reply via email to