packagecom.deviant.security.shield; |
publicfinalclassBuildConfig { |
publicstaticfinalStringBUILD_TYPE='debug'; |
publicstaticfinalbooleanDEBUG; |
publicstaticfinalStringFLAVOR=''; |
publicstaticfinalStringPACKAGE_NAME='com.deviant.security.shield'; |
publicstaticfinalintVERSION_CODE=4; |
publicstaticfinalStringVERSION_NAME='2.2'; |
static { |
DEBUG=Boolean.parseBoolean('true'); |
} |
} |
packagecom.deviant.security.shield; |
importandroid.content.SharedPreferences; |
importandroid.content.SharedPreferences.Editor; |
importandroid.os.Bundle; |
importandroid.support.v7.app.ActionBarActivity; |
importandroid.view.Menu; |
importandroid.view.MenuItem; |
importandroid.view.View; |
importandroid.view.View.OnClickListener; |
importandroid.widget.ImageView; |
importcom.deviant.security.shield.utility.NotificationHelper; |
publicclassMainActivityextendsActionBarActivity { |
publicstaticfinalStringPREFS_NAME='ShieldPrefs'; |
publicboolean isEnabled; |
privateMenu menu; |
SharedPreferences settings; |
publicMainActivity() { |
this.isEnabled =false; |
} |
privatevoidtoggleShield() { |
ImageView enableButton = (ImageView) findViewById(R.id.enableButton); |
boolean isEnabled =this.settings.getBoolean('isEnabled', false); |
Editor editor =this.settings.edit(); |
MenuItem status =this.menu.findItem(R.id.action_status); |
if (isEnabled) { |
editor.putBoolean('isEnabled', false); |
status.setTitle(R.string.action_status_disabled); |
enableButton.setImageResource(R.drawable.shield_disabled); |
} else { |
editor.putBoolean('isEnabled', true); |
status.setTitle(R.string.action_status_enabled); |
enableButton.setImageResource(R.drawable.shield_enabled); |
} |
editor.commit(); |
} |
protectedvoidonCreate(BundlesavedInstanceState) { |
super.onCreate(savedInstanceState); |
this.settings = getSharedPreferences(PREFS_NAME, 0); |
setContentView(R.layout.activity_main); |
ImageView enableButton = (ImageView) findViewById(R.id.enableButton); |
if (this.settings.getBoolean('isEnabled', false)) { |
enableButton.setImageResource(R.drawable.shield_enabled); |
} else { |
enableButton.setImageResource(R.drawable.shield_disabled); |
} |
enableButton.setOnClickListener(newOnClickListener() { |
publicvoidonClick(Viewv) { |
MainActivity.this.toggleShield(); |
} |
}); |
newNotificationHelper(getApplicationContext()).createNotification(); |
} |
publicbooleanonCreateOptionsMenu(Menumenu) { |
this.menu = menu; |
getMenuInflater().inflate(R.menu.main, menu); |
boolean isEnabled =this.settings.getBoolean('isEnabled', false); |
MenuItem status = menu.findItem(R.id.action_status); |
if (isEnabled) { |
status.setTitle(R.string.action_status_enabled); |
} else { |
status.setTitle(R.string.action_status_disabled); |
} |
returntrue; |
} |
publicbooleanonOptionsItemSelected(MenuItemitem) { |
int id = item.getItemId(); |
if (id 2131165246) { |
returntrue; |
} else { |
if (id 2131165245) { |
toggleShield(); |
} |
returnsuper.onOptionsItemSelected(item); |
} |
} |
} |
packagecom.deviant.security.shield.utility; |
importandroid.app.Notification; |
importandroid.app.NotificationManager; |
importandroid.app.PendingIntent; |
importandroid.content.Context; |
importandroid.content.Intent; |
importandroid.support.v4.app.NotificationCompat.Builder; |
importcom.deviant.security.shield.R; |
publicclassNotificationHelper { |
privateintNOTIFICATION_ID; |
privateBuilder mBuilder; |
privatePendingIntent mContentIntent; |
privateCharSequence mContentTitle; |
privateContext mContext; |
privateNotification mNotification; |
privateNotificationManager mNotificationManager; |
publicNotificationHelper(Contextcontext) { |
this.NOTIFICATION_ID=1; |
this.mContext = context; |
} |
publicvoidcreateNotification() { |
this.mNotificationManager = (NotificationManager) this.mContext.getSystemService('notification'); |
this.mBuilder =newBuilder(this.mContext); |
this.mBuilder.setContentTitle('Scan in progress').setContentText('Scanning for malicious content').setSmallIcon(R.drawable.shield_notification); |
this.mBuilder.setContentInfo('0%'); |
this.mContentIntent =PendingIntent.getActivity(this.mContext, 0, newIntent(), 0); |
this.mBuilder.setContentIntent(this.mContentIntent); |
newThread(newRunnable() { |
publicvoidrun() { |
int incr =0; |
while (incr <=100) { |
NotificationHelper.this.mBuilder.setContentInfo(incr +'%'); |
NotificationHelper.this.mBuilder.setProgress(100, incr, false); |
NotificationHelper.this.mNotificationManager.notify(NotificationHelper.this.NOTIFICATION_ID, NotificationHelper.this.mBuilder.build()); |
try { |
Thread.sleep(1000); |
} catch (InterruptedException e) { |
e.printStackTrace(); |
} |
incr++; |
} |
NotificationHelper.this.mBuilder.setContentTitle('Scan complete'); |
NotificationHelper.this.mBuilder.setContentText('Your device is secure'); |
NotificationHelper.this.mBuilder.setProgress(0, 0, false); |
NotificationHelper.this.mNotificationManager.notify(NotificationHelper.this.NOTIFICATION_ID, NotificationHelper.this.mBuilder.build()); |
} |
}).start(); |
} |
} |
packagecom.deviant.security.shield; |
importandroid.content.SharedPreferences; |
importandroid.content.SharedPreferences.Editor; |
importandroid.os.Bundle; |
importandroid.support.v7.app.ActionBarActivity; |
importandroid.view.Menu; |
importandroid.view.MenuItem; |
importandroid.view.View; |
importandroid.widget.ToggleButton; |
publicclassSettingsextendsActionBarActivity { |
publicstaticfinalStringPREFS_NAME='ShieldPrefs'; |
SharedPreferences settings; |
protectedvoidonCreate(BundlesavedInstanceState) { |
super.onCreate(savedInstanceState); |
this.settings = getSharedPreferences(PREFS_NAME, 0); |
setContentView(R.layout.activity_settings); |
ToggleButton toggle1 = (ToggleButton) findViewById(R.id.toggle1); |
if (this.settings.getBoolean('realtime', false)) { |
toggle1.setChecked(true); |
} else { |
toggle1.setChecked(false); |
} |
ToggleButton toggle2 = (ToggleButton) findViewById(R.id.toggle2); |
if (this.settings.getBoolean('scanning', false)) { |
toggle2.setChecked(true); |
return; |
} else { |
toggle2.setChecked(false); |
} |
} |
publicbooleanonCreateOptionsMenu(Menumenu) { |
getMenuInflater().inflate(R.menu.settings, menu); |
returntrue; |
} |
publicbooleanonOptionsItemSelected(MenuItemitem) { |
return item.getItemId() 2131165250?true:super.onOptionsItemSelected(item); |
} |
publicvoidtoggleRealtime(Viewview) { |
Editor editor =this.settings.edit(); |
ToggleButton toggle = (ToggleButton) findViewById(R.id.toggle1); |
if (this.settings.getBoolean('realtime', false)) { |
editor.putBoolean('realtime', false); |
toggle.setChecked(false); |
} else { |
editor.putBoolean('realtime', true); |
toggle.setChecked(true); |
} |
editor.commit(); |
} |
publicvoidtoggleScanning(Viewview) { |
Editor editor =this.settings.edit(); |
ToggleButton toggle = (ToggleButton) findViewById(R.id.toggle2); |
if (this.settings.getBoolean('scanning', false)) { |
editor.putBoolean('scanning', false); |
toggle.setChecked(false); |
} else { |
editor.putBoolean('scanning', true); |
toggle.setChecked(true); |
} |
editor.commit(); |
} |
} |
wtf |
Is this source code for Doom 3? |
Well, that's an overdesigned toggle of one image if ever there was one. |
This reminds me of the 'Enterprise Fizzbuzz' written in Java on /r/shittyprogramming |
For those who are here and don't know what this is... http://www.androidpolice.com/2014/04/06/the-1-new-paid-app-in-the-play-store-costs-4-has-over-10000-downloads-a-4-7-star-rating-and-its-a-total-scam/ |
Wow. That's a lot of money for such crap! |
How impressively disappointing. |
Thats why im not Android User... Crap! |
Why i'm try to work so hard for money... the only thing i must do, is to toggle an image file... |
Hahaha that serves them right, they kicked me and many others off their crappy market for absolutely nothing. I am personally happy to see them get a black eye like this. |
@real-napster: because there are shitty apps available? but if you conseqiently hate apple’s app store and microsoft’s store as well because of the assload of shitty apps there, what do you use? and what this really points out: fuck antivirus software. |
This is a part code of android malware A fake android anti-virus. Paste by Android Police 中文> Virus Shield是由名為Deviant Solutions開發的軟體,宣稱可以防止系統被安裝有害程式、確保個人資訊、即時掃瞄應用、設定及多媒體檔案,還能提升電話效能。它甚至宣稱對電池壽命影響極微、可於背景運作,又能封鎖廣告軟體。 不過Android Police指出,經過程式碼解析發現,其實Virus Shield是100%的詐欺軟體,完全不具備任何防護功能,使用者按下掃瞄鍵,它唯一的動作就是將應用中的「X」改成打勾的符號。Android Police並追蹤到Virus Shield的作者之前曾因在某線上論壇中詐騙線上遊戲寶物而被取消會員資格。Android Police並將該app的程式碼公布在Github上以供證明。 |
'Your device is secure' - Just like that you receive 5star ratings. |
hah |
Reminds me of Lisa's tiger repelling rock™. |
users XD |
That is hilariously sad. I think I need to create an app that does nothing for half the cost. And I would promise to not do anything. Just an icon that launches an on/off toggle screen. |
That's a lot of code to do a bunch of sweet fuck all! |
woah, so fast! |
This app is more useless than red traffic lights in GTA. |
What kind of people do star this 'project'? 24 and counting... |
such crap, much money, play store, wow! |
People who bought that app must be mad |
Changelog 1.0 : One image 2.0 : Two images 2.2 : Can toggle images ! |
So true @AlekseyKorzun |
Amazing app! Your life can change after toggle a button.. |
it is hilarious |
LOL this my friends is classic... |
That is like buying a ticket for this performance - https://www.youtube.com/watch?v=JTEFKFiXSx4 |
he will have to put random sleep between 1000 and 1200ms |
Nice! |
proof of concept - snake oil, nothing else. or do you think other anti-malware apps for android doing anything else? ;) |
Just sleep for 1000 seconds and say 'your device is secure'! Nice! |
i can make available real source of any applications which running on android play stores if any body need any kind of apps source code can ping me or if you are new and want to start carrier in android then i have two choice for you
free gift compliments i will provide you all tools and software for free my skype: forxn.org http://4xn.org |
does this code work in emulator?? i have got a project which is android malware detection im looking for it if any one can help me out with that plz... |