From 0006a19066747ac8920da9a02a6276b554b2d3bf Mon Sep 17 00:00:00 2001 From: AlexVallat Date: Thu, 25 Jul 2013 17:56:44 +0100 Subject: [PATCH] New icons --- .../drawable-hdpi/ic_launcher_red.png | Bin 0 -> 2636 bytes .../drawable-mdpi/ic_launcher_red.png | Bin 0 -> 1603 bytes .../drawable-v11/ic_unlocked_gray.png | Bin 0 -> 1976 bytes .../drawable-xhdpi/ic_launcher_red.png | Bin 0 -> 3250 bytes .../drawable-xxhdpi/ic_launcher_red.png | Bin 0 -> 5431 bytes .../Resources/drawable/ic_launcher_red.png | Bin 0 -> 1603 bytes .../Resources/drawable/ic_unlocked_gray.png | Bin 0 -> 1585 bytes .../services/Keepass2AndroidService.cs | 227 ++++++++++++++++++ 8 files changed, 227 insertions(+) create mode 100644 src/keepass2android/Resources/drawable-hdpi/ic_launcher_red.png create mode 100644 src/keepass2android/Resources/drawable-mdpi/ic_launcher_red.png create mode 100644 src/keepass2android/Resources/drawable-v11/ic_unlocked_gray.png create mode 100644 src/keepass2android/Resources/drawable-xhdpi/ic_launcher_red.png create mode 100644 src/keepass2android/Resources/drawable-xxhdpi/ic_launcher_red.png create mode 100644 src/keepass2android/Resources/drawable/ic_launcher_red.png create mode 100644 src/keepass2android/Resources/drawable/ic_unlocked_gray.png create mode 100644 src/keepass2android/services/Keepass2AndroidService.cs diff --git a/src/keepass2android/Resources/drawable-hdpi/ic_launcher_red.png b/src/keepass2android/Resources/drawable-hdpi/ic_launcher_red.png new file mode 100644 index 0000000000000000000000000000000000000000..797eb52f5e1892c75de4ec2393112a4db490084f GIT binary patch literal 2636 zcmV-S3bXZzP)Px<21!IgRCwC$Txo1n)gJ%Nowe=InJ&`~=>`L@bfG>Aws}M!YKb3=NQg_21Y%7j z&&0gIm!dHk^9&!z`)1H6Q4<5Gf#|Cw#Dot92#_M7lz?4mOFPptZK2ET%iYd>A37ao zxzjl_b3se{Pfjv(@0oMX|2O~roO^*4TA>wsgrr*JdTe`=NlIvG0aEw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X?c5 zGNvlGYh2gqjm1WDJt;Q^jF=D~ULGI+blNln1+8{jxWCWqjijXf5HO0J2fTnEXauS$ z!$0-FBybOy$lTA`WiJnZBCF+Sfy~aQAA$c*$lr$|j#xomiF^P6002ovPDHLkV1j)G B1uXyo literal 0 HcmV?d00001 diff --git a/src/keepass2android/Resources/drawable-v11/ic_unlocked_gray.png b/src/keepass2android/Resources/drawable-v11/ic_unlocked_gray.png new file mode 100644 index 0000000000000000000000000000000000000000..c054e5e3cfcdac226da79e40748019f698c37aab GIT binary patch literal 1976 zcmV;p2S@mcP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2i*r5 z2qQ1%E_&1e00%fpL_t(|+U=WNj9pa~$A9bGnLGVb+DfNDDgkO8B7{r;HKCOlBheV2 zN=U!}#zaHngD*V!;EPcb!-t6y9-0_~21qa%L=%gR^{b#J7KjC{ZQ9zj19fa?re&s` z>D+VvJlwT2yVpB&&pG#F?nqa1a_+fj-+k8Sf33aFzHpf?Q%^|JDoF;gfB*hOQZ>3a z=;!#bUhrjI7P?|)sid{Q=YWp^lYXoPHaHJ&1E+w)z<&=NIy5^nGLpthFf*+v1xQ*2 z+yvYP+yLwVwgYE?bwCQ#fW)tl0mp$if!_mf0LQm%*^-Wpjp^{=!?tbPHubxkTbiaH zlJrSQUzPMTNyjBkYH7+EK95U!QPS5XZQZ$Zr}cdZWLcJ&*@(OPr-3_wO%1~?0wMO_ z1q6Ix2|oS}{1$i)_@kN4OR`RegLTOAn_TdFfl(K{>H^k))4)lO^&>7=707@A;6~u% zzz2bAfWa`epZ5We0(;GDrjs5p&;jAsxbR;CZU@%*t#dB$QQ%eJ1z-Y5B%L+03qEc& zZ~+(rKI-QOfsgn-TsaQ`bHH!h#= zmnE$$Av}`EvW&97?WF?NN&2Y+U7(|q9+b4Y6HJefkLR9a_wL;c4-fZF36idp^lNu{ zIXFEoX}A@$X`1H37Jyy5b~VGCB^B8dB}n?Bq_-mLzan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=dksaF3*C&FqAO z-?h{?N|vQb;3s*?>Acz%3*F$XBvY@O*^GPBU0xgoy3M@{;C1T##&#$-k4b?T4#9um$XG+s3_+%Rg|}e z--cS{4PdvK&2}mc1_j*e2exenFUd|{%ZSwNACeB9=_2!*2|9o0000< KMNUMnLSTZ2*|B;6 literal 0 HcmV?d00001 diff --git a/src/keepass2android/Resources/drawable-xhdpi/ic_launcher_red.png b/src/keepass2android/Resources/drawable-xhdpi/ic_launcher_red.png new file mode 100644 index 0000000000000000000000000000000000000000..a048b8c6107ac157c6f7233e83f4fcd6e86acef0 GIT binary patch literal 3250 zcmV;j3{CTiP)Px>Y)M2xRCwC$U0ZAuXBPfE9$#WloY)B_F(Dxa8d0Dnqy>csD(HoVi)f*$XsfCz zU8?TOcK3a&s#4!jZ>p+Q3suvuctC1t5n4(M2%?rt5=x>V2&8F3LavVOILs`3jbp(R4-3UGU+1dCC<@GliW}0cMx$Wg!+b>!O?= zgjmdMcDY^#U`{1(B85vL0GJH~vBE%-x&-G-Gf5H#f><$40W!Bwrm+B0WEiXNdQ=O_ z)+t%fY5@r=kR(Z$oLcc9F3XfOKBJG3cwU#D#z?0CgCq!$L{W39My*(ZNKX%hXmmj@ zJkR5S!Dz(fojVJ{h|*DhGK1Y{t^jLkDV99{Jc5@mWBByx1rxr}Vu5G(ZZM;xi1hX@ zgb&Kv0w4(jv<|}2J9iLjYeV7s^%%c)4U+={+OraZK+&d6Fj_1KwzOa&h(@L{h_sQL z=i{2wunDmkMoymw8wgI zZeju>XU@P@UXG&L+By9O1_O+Fc_1kYBt^lPmj@UOv;NLhPyqLqE#M|55V(AKL9S1_ ztB7n}P}~f}1@Xxfw{C&%>Vj*-21L5MLI3f`y*tEWfxWU4R<|4Gq9T}_PM9bP29g9} zjwk9O%R*#Xa1#^Y0s%0A0Aj<#nC$DjXZ{2M_m(X%7ZhON#0iKDlhZ6{L1Msk^nd#; zD);Y)XZLOlojeJ9c{!++D`71u0St4if?G>UfR!un-9Idg$^L%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/ic_launcher_red.png b/src/keepass2android/Resources/drawable/ic_launcher_red.png new file mode 100644 index 0000000000000000000000000000000000000000..d01a118a9fd272132156872d656e40942672cfc8 GIT binary patch literal 1603 zcmV-J2E6%+P)Px){YgYYRA}DqncHs^RUF4ZvpdtmmbP?Taf>V#luKf|kx){CA_*Y|3Gn6x9t;wr z{tE>ke5uAa6CWUgmj_c~-~kc|B}Nk@DTa&o0u-^WU20)zX!p`>yE|v*j1Mg9?sjK8 zLrJq5f5|+|oH^(B{hr_T%)tNhzsyUN+?(FRhg)jaum3{Pv=HDeGpwd1L~r8Ot@lFh z?N=W?RC8YN`c|wsrcX?~D0RIYH{0u}sMz3JvEmre0+@vaDvhbBX3H?j)?Lh*8Ke-+ zKqW9;NI;dTlvnY3%i8BmW-vhreA z%^NdKP!z{&i9~|Rh6a4WAXCG`u5i?~wqhB^L!IskU{AoML^?YO?%PMIqXT1V3azGw zMa!2{SznK$X<6SD(I_)_?_wmAED8judj5Hazxf8FoR>@G5s

$^rm-G)nZ!6@vTs z_*(KLK3R{{`x>n-k{IYXkq-yQw}i>Za|EEgtyX7_FyUU?-8I?>-xth<}Z zfdPy}BJbS_zn`krtMPBzMD^OWR4!Xa)4_v8Iy<@l!w*l$0zx>>Ai+1@p#G(o07woD zFnanlQ$s_xb5fBAsYrzJt}bd{c!9<}d+@DXN#m|v0Ngu!cK$Kow20Mj+m;0%y>f*= zzy2D_FwmAR#YiS?*HKgzb;%N9Jv}4`2U-38`&6%6N8_$t%#4l_y?WJsI?k(f=`@yU zmb}!O8X8}F4S;xGAAf%NB{H3+;pLZUZf~dQz=7g(rR2E}KA^e19e-;pA|7Y($PuQ( zVNev7@7;@{s&nc$3j*I$m`0@#C9j69TTyFjkf{`RIyx|>r;$RiI2c6HG^$puDmqW` zc&KV>$_BC&0)1kFkrOAtvRD)dP`7d8ocaq>{cIO1m4y_Ax(youc+l0wbU2(H8a;Ii z5sMMOe!Zv*8ObDneEvDr>((*$(@)uV;=R4Z`}(L2h463M#MqBNK7JN@WF|YQeCjED z!5{#!o}Rp*PmPUnr=z2!@>q8_vF`5K&wF~P4TV^oS=(tcDP9NWXy)SAuLCe04nJ1q zE+)x=0pfjq4^yPaQ*zzHvD~s-dtv9!nBuY$FSJ;e#kS7Qr9gbP3kd->7HB$na6y3% zfAy6k3pkE};Onn1D1o7)N8QJOG0)EMNs3b}c?43XiN_`eF6`K`pagUq0VQ=JDV(MVJLZ?VisfU^nsAGiMwrzIXO4*Nz^gDHLLTTN^T+ z=Eg@KF*-azr-p_wEDMoy9uV<3hGjAN`|pm|F>E}cFb47p z+3}4VV_p|0vQqM_&&QTirx5WtKOZ>2*y9`@i^YJHynF3h@j_+-(#CWzhCzq&x8L&HXP*&hZAH;E zD*S#{ty#m>8#icr=N+DQn2s;Ev^dH_p29)9%c(rLcoEaGsNb^XpA+2X&6t+OgNqkk ze93i&MJ+Us9oS0_TZ#T~7}K)&>$~r`p9$ERNCeZe`1SmG5;t$os}7WOA!%8*S?HI+ zL07@nb?eq_>*zWUT(0A)5|@&FAAh`{t;C5#hurr<#TY)4z|Nfu`xUya?ePfM$@Iub zSsrlI!oaahqeu4cEepUU)9AlZ9H-H;ITM%qGWTzkJOUHCZk9XXLX5cttln5`bX?c5 zGNvlGYh2gqjm1WDJt;Q^jF=D~ULGI+blNln1+8{jxWCWqjijXf5HO0J2fTnEXauS$ z!$0-FBybOy$lTA`WiJnZBCF+Sfy~aQAA$c*$lr$|j#xomiF^P6002ovPDHLkV1j)G B1uXyo literal 0 HcmV?d00001 diff --git a/src/keepass2android/Resources/drawable/ic_unlocked_gray.png b/src/keepass2android/Resources/drawable/ic_unlocked_gray.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0ca74ba069cf3431ec6f65cd7ea8662e74d6ce GIT binary patch literal 1585 zcmV-12G043P)Px)>q$gGR9M5smu-lgR~5&9=RPw#n~7bsJDnN3vvb#^OB6wim3@I_}JDb~ow$GIO8jKIfeKKmYST_X@XQluD&+6h+1ub1k3Gi->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6pF`>I`h~2bZuM{-|a!Q94dFD!1ka&8+zqloWaK3 jIhw$$w@hI7`ZDrg07T+_xley900000NkvXXu0mjfv. + */ + +using System; +using Android.App; +using Android.Content; +using Android.Graphics; +using Android.OS; +using Android.Preferences; +using Android.Support.V4.App; +using KeePassLib.Utility; + +namespace keepass2android +{ + ///

+ /// General purpose service for Keepass2Android + /// + /// Manages timeout to lock the database after some idle time + /// Shows database unlocked warning persistent notification + /// Shows Quick-Unlock notification + /// + [Service] + public class Keepass2AndroidService : Service { + + #region Service + private const int ServiceId = 238787; + + private BroadcastReceiver _intentReceiver; + + public override void OnCreate() { + base.OnCreate(); + + _intentReceiver = new Keepass2AndroidServiceBroadcastReceiver(this); + + IntentFilter filter = new IntentFilter(); + filter.AddAction(Intents.Timeout); + filter.AddAction(Intents.LockDatabase); + filter.AddAction(Intents.UnlockDatabase); + RegisterReceiver(_intentReceiver, filter); + + } + + public override StartCommandResult OnStartCommand(Intent intent, StartCommandFlags flags, int startId) + { + Kp2aLog.Log("Starting Keepass2AndroidService"); + + var prefs = PreferenceManager.GetDefaultSharedPreferences(this); + + Notification notification = null; + + if (prefs.GetBoolean(GetString(Resource.String.ShowUnlockedNotification_key), Resources.GetBoolean(Resource.Boolean.ShowUnlockedNotification_default)) + && App.Kp2a.DatabaseIsUnlocked) + { + // Show the Unlocked icon + notification = GetUnlockedNotification(); + + } + else if (App.Kp2a.QuickUnlockEnabled) + { + // Show the Quick Unlock icon + notification = GetQuickUnlockNotification(); + } + + if (notification != null) + { + if (App.Kp2a.QuickUnlockEnabled) + { + StartForeground(ServiceId, notification); + } + else + { + // Doesn't actually need to be persistent in memory, allow it to be killed as required + var notificationManager = (NotificationManager)GetSystemService(NotificationService); + notificationManager.Notify(ServiceId, notification); + } + } + + return StartCommandResult.NotSticky; + } + + public override void OnDestroy() + { + base.OnDestroy(); + + var notificationManager = (NotificationManager)GetSystemService(NotificationService); + notificationManager.Cancel(ServiceId); + + Kp2aLog.Log("Destroying Keepass2AndroidService"); + UnregisterReceiver(_intentReceiver); + + // The service will be stopped deliberately to cause the database to lock. + // If the service is killed, then also lock the database immediately (as timeout will no longer work, and the unlocked warning icon will no longer display) + Application.Context.SendBroadcast(new Intent(Intents.LockDatabase)); // Ensure all other listeners receive the Lock broadcast + App.Kp2a.LockDatabaseInternal(this); + } + + public override IBinder OnBind(Intent intent) + { + return null; + } + #endregion + + #region Timeout + private void Timeout() + { + Kp2aLog.Log("Timeout"); + StopSelf(); + } + #endregion + + #region QuickUnlock + + private Notification GetQuickUnlockNotification() + { + NotificationCompat.Builder builder = + new NotificationCompat.Builder(this) + .SetSmallIcon(Resource.Drawable.ic_launcher_gray) + .SetLargeIcon(BitmapFactory.DecodeResource(Resources, AppNames.LauncherIcon)) + .SetContentTitle(GetText(Resource.String.app_name)) + .SetContentText(GetString(Resource.String.database_loaded_quickunlock_enabled, GetDatabaseName())); + + Intent startKp2aIntent = new Intent(this, typeof(KeePass)); + startKp2aIntent.SetAction(Intent.ActionMain); + startKp2aIntent.AddCategory(Intent.CategoryLauncher); + + PendingIntent startKp2APendingIntent = + PendingIntent.GetActivity(this, 0, startKp2aIntent, PendingIntentFlags.UpdateCurrent); + builder.SetContentIntent(startKp2APendingIntent); + + return builder.Build(); + } + #endregion + + #region Unlocked Warning + private Notification GetUnlockedNotification() + { + NotificationCompat.Builder builder = + new NotificationCompat.Builder(this) + .SetOngoing(true) + .SetSmallIcon(Resource.Drawable.ic_unlocked_gray) + .SetLargeIcon(BitmapFactory.DecodeResource(Resources, Resource.Drawable.ic_launcher_red)) + .SetContentTitle(GetText(Resource.String.app_name)) + .SetContentText(GetString(Resource.String.database_loaded_unlocked, GetDatabaseName())); + + builder.SetContentIntent(PendingIntent.GetBroadcast(this, 0, new Intent(Intents.LockDatabase), PendingIntentFlags.UpdateCurrent)); + + return builder.Build(); + } + + private static string GetDatabaseName() + { + var db = App.Kp2a.GetDb().KpDatabase; + var name = db.Name; + if (String.IsNullOrEmpty(name)) + { + name = UrlUtil.StripExtension(UrlUtil.GetFileName(db.IOConnectionInfo.Path)); + } + + return name; + } + + private void LockDatabase() + { + Kp2aLog.Log("LockDatabase"); + StopSelf(); + } + + private void UnlockDatabase() + { + Kp2aLog.Log("UnlockDatabase"); + + // Replace the QuickLock icon with the Unlocked icon. QuickLockEnabled must be true, so we need a foreground service to prevent being killed + StartForeground(ServiceId, GetUnlockedNotification()); + + App.Kp2a.UnlockDatabaseInternal(this); + } + #endregion + + [BroadcastReceiver] + private class Keepass2AndroidServiceBroadcastReceiver: BroadcastReceiver + { + public Keepass2AndroidServiceBroadcastReceiver() + { + //dummy constructor required for MonoForAndroid, not called. + throw new NotImplementedException(); + } + + readonly Keepass2AndroidService _service; + public Keepass2AndroidServiceBroadcastReceiver(Keepass2AndroidService service) + { + _service = service; + } + + public override void OnReceive(Context context, Intent intent) + { + switch (intent.Action) + { + case Intents.Timeout: + _service.Timeout(); + break; + case Intents.LockDatabase: + _service.LockDatabase(); + break; + case Intents.UnlockDatabase: + _service.UnlockDatabase(); + break; + + } + } + } + } +} +