summaryrefslogtreecommitdiff
path: root/data/patches/disable/0001-upgrade-mobile-fxa-to-v32.patch
blob: e4207276047145f7b44c9143a29a60e0820104ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
diff -ruN mozilla-esr31/mobile/android/base/fxa/FirefoxAccounts.java mozilla-release/mobile/android/base/fxa/FirefoxAccounts.java
--- mozilla-esr31/mobile/android/base/fxa/FirefoxAccounts.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/FirefoxAccounts.java	2014-09-24 03:05:32.000000000 +0200
@@ -6,13 +6,18 @@
 
 import java.io.File;
 import java.util.EnumSet;
+import java.util.Locale;
 import java.util.concurrent.CountDownLatch;
 
+import org.mozilla.gecko.AppConstants;
+import org.mozilla.gecko.R;
 import org.mozilla.gecko.background.common.log.Logger;
 import org.mozilla.gecko.fxa.authenticator.AccountPickler;
 import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
+import org.mozilla.gecko.fxa.login.State;
 import org.mozilla.gecko.fxa.sync.FxAccountSyncAdapter;
 import org.mozilla.gecko.fxa.sync.FxAccountSyncStatusHelper;
+import org.mozilla.gecko.fxa.tasks.FxAccountCodeResender;
 import org.mozilla.gecko.sync.ThreadPool;
 import org.mozilla.gecko.sync.Utils;
 
@@ -20,6 +25,7 @@
 import android.accounts.AccountManager;
 import android.content.ContentResolver;
 import android.content.Context;
+import android.content.res.Resources;
 import android.os.Bundle;
 
 /**
@@ -152,6 +158,38 @@
     return null;
   }
 
+  /**
+   * @return
+   *     the {@link State} instance associated with the current account, or <code>null</code> if
+   *     no accounts exist.
+   */
+  public static State getFirefoxAccountState(final Context context) {
+    final Account account = getFirefoxAccount(context);
+    if (account == null) {
+      return null;
+    }
+
+    final AndroidFxAccount fxAccount = new AndroidFxAccount(context, account);
+    try {
+      return fxAccount.getState();
+    } catch (final Exception ex) {
+      Logger.warn(LOG_TAG, "Could not get FX account state.", ex);
+      return null;
+    }
+  }
+
+  /*
+   * @param context Android context
+   * @return the email address associated with the configured Firefox account if one exists; null otherwise.
+   */
+  public static String getFirefoxAccountEmail(final Context context) {
+    final Account account = getFirefoxAccount(context);
+    if (account == null) {
+      return null;
+    }
+    return account.name;
+  }
+
   protected static void putHintsToSync(final Bundle extras, EnumSet<SyncHint> syncHints) {
     // stagesToSync and stagesToSkip are allowed to be null.
     if (syncHints == null) {
@@ -264,4 +302,33 @@
     // stopObserving null-checks its argument.
     FxAccountSyncStatusHelper.getInstance().stopObserving(syncStatusListener);
   }
+
+  public static String getOldSyncUpgradeURL(final Resources res, final Locale locale) {
+    final String VERSION = AppConstants.MOZ_APP_VERSION;
+    final String OS = AppConstants.OS_TARGET;
+    final String LOCALE = Utils.getLanguageTag(locale);
+    return res.getString(R.string.fxaccount_link_old_firefox, VERSION, OS, LOCALE);
+  }
+
+  /**
+   * Resends the account verification email, and displays an appropriate
+   * toast on both send success and failure. Note that because the underlying implementation
+   * uses {@link AsyncTask}, the provided context must be UI-capable, and this
+   * method called from the UI thread (see
+   * {@link org.mozilla.gecko.fxa.tasks.FxAccountCodeResender#resendCode(Context, AndroidFxAccount)}
+   * for more).
+   *
+   * @param context a UI-capable Android context.
+   * @return true if an account exists, false otherwise.
+   */
+  public static boolean resendVerificationEmail(final Context context) {
+    final Account account = getFirefoxAccount(context);
+    if (account == null) {
+      return false;
+    }
+
+    final AndroidFxAccount fxAccount = new AndroidFxAccount(context, account);
+    FxAccountCodeResender.resendCode(context, fxAccount);
+    return true;
+  }
 }
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountAbstractSetupActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountAbstractSetupActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountAbstractSetupActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountAbstractSetupActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -19,10 +19,10 @@
 import org.mozilla.gecko.background.fxa.PasswordStretcher;
 import org.mozilla.gecko.background.fxa.QuickPasswordStretcher;
 import org.mozilla.gecko.fxa.FxAccountConstants;
-import org.mozilla.gecko.fxa.activities.FxAccountSetupTask.ProgressDisplay;
 import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
 import org.mozilla.gecko.fxa.login.Engaged;
 import org.mozilla.gecko.fxa.login.State;
+import org.mozilla.gecko.fxa.tasks.FxAccountSetupTask.ProgressDisplay;
 import org.mozilla.gecko.sync.SyncConfiguration;
 import org.mozilla.gecko.sync.setup.Constants;
 import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountConfirmAccountActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -4,21 +4,15 @@
 
 package org.mozilla.gecko.fxa.activities;
 
-import java.util.concurrent.Executor;
-import java.util.concurrent.Executors;
-
 import org.mozilla.gecko.R;
 import org.mozilla.gecko.background.common.log.Logger;
-import org.mozilla.gecko.background.fxa.FxAccountClient;
-import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
-import org.mozilla.gecko.background.fxa.FxAccountClient20;
-import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
 import org.mozilla.gecko.fxa.FirefoxAccounts;
 import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
 import org.mozilla.gecko.fxa.login.Engaged;
 import org.mozilla.gecko.fxa.login.State;
 import org.mozilla.gecko.fxa.login.State.Action;
 import org.mozilla.gecko.fxa.sync.FxAccountSyncStatusHelper;
+import org.mozilla.gecko.fxa.tasks.FxAccountCodeResender;
 import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
 
 import android.accounts.Account;
@@ -28,7 +22,6 @@
 import android.view.View;
 import android.view.View.OnClickListener;
 import android.widget.TextView;
-import android.widget.Toast;
 
 /**
  * Activity which displays account created successfully screen to the user, and
@@ -164,76 +157,8 @@
     resendLink.setClickable(resendLinkShouldBeEnabled);
   }
 
-  public static class FxAccountResendCodeTask extends FxAccountSetupTask<Void> {
-    protected static final String LOG_TAG = FxAccountResendCodeTask.class.getSimpleName();
-
-    protected final byte[] sessionToken;
-
-    public FxAccountResendCodeTask(Context context, byte[] sessionToken, FxAccountClient client, RequestDelegate<Void> delegate) {
-      super(context, null, client, delegate);
-      this.sessionToken = sessionToken;
-    }
-
-    @Override
-    protected InnerRequestDelegate<Void> doInBackground(Void... arg0) {
-      try {
-        client.resendCode(sessionToken, innerDelegate);
-        latch.await();
-        return innerDelegate;
-      } catch (Exception e) {
-        Logger.error(LOG_TAG, "Got exception signing in.", e);
-        delegate.handleError(e);
-      }
-      return null;
-    }
-  }
-
-  protected static class ResendCodeDelegate implements RequestDelegate<Void> {
-    public final Context context;
-
-    public ResendCodeDelegate(Context context) {
-      this.context = context;
-    }
-
-    @Override
-    public void handleError(Exception e) {
-      Logger.warn(LOG_TAG, "Got exception requesting fresh confirmation link; ignoring.", e);
-      Toast.makeText(context, R.string.fxaccount_confirm_account_verification_link_not_sent, Toast.LENGTH_LONG).show();
-    }
-
-    @Override
-    public void handleFailure(FxAccountClientRemoteException e) {
-      handleError(e);
-    }
-
-    @Override
-    public void handleSuccess(Void result) {
-      Toast.makeText(context, R.string.fxaccount_confirm_account_verification_link_sent, Toast.LENGTH_SHORT).show();
-    }
-  }
-
-  public static void resendCode(Context context, AndroidFxAccount fxAccount) {
-    RequestDelegate<Void> delegate = new ResendCodeDelegate(context);
-
-    byte[] sessionToken;
-    try {
-      sessionToken = ((Engaged) fxAccount.getState()).getSessionToken();
-    } catch (Exception e) {
-      delegate.handleError(e);
-      return;
-    }
-    if (sessionToken == null) {
-      delegate.handleError(new IllegalStateException("sessionToken should not be null"));
-      return;
-    }
-
-    Executor executor = Executors.newSingleThreadExecutor();
-    FxAccountClient client = new FxAccountClient20(fxAccount.getAccountServerURI(), executor);
-    new FxAccountResendCodeTask(context, sessionToken, client, delegate).execute();
-  }
-
   @Override
   public void onClick(View v) {
-    resendCode(this, fxAccount);
+    FxAccountCodeResender.resendCode(this, fxAccount);
   }
 }
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountCreateAccountActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountCreateAccountActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountCreateAccountActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountCreateAccountActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -21,7 +21,7 @@
 import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
 import org.mozilla.gecko.background.fxa.PasswordStretcher;
 import org.mozilla.gecko.fxa.FxAccountConstants;
-import org.mozilla.gecko.fxa.activities.FxAccountSetupTask.FxAccountCreateAccountTask;
+import org.mozilla.gecko.fxa.tasks.FxAccountCreateAccountTask;
 
 import android.app.AlertDialog;
 import android.app.Dialog;
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountGetStartedActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountGetStartedActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountGetStartedActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountGetStartedActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -6,13 +6,11 @@
 
 import java.util.Locale;
 
-import org.mozilla.gecko.AppConstants;
 import org.mozilla.gecko.R;
 import org.mozilla.gecko.background.common.log.Logger;
 import org.mozilla.gecko.background.fxa.FxAccountAgeLockoutHelper;
 import org.mozilla.gecko.fxa.FirefoxAccounts;
 import org.mozilla.gecko.fxa.FxAccountConstants;
-import org.mozilla.gecko.sync.Utils;
 import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
 import org.mozilla.gecko.sync.setup.activities.LocaleAware;
 
@@ -109,11 +107,7 @@
   protected void linkifyOldFirefoxLink() {
     TextView oldFirefox = (TextView) findViewById(R.id.old_firefox);
     String text = getResources().getString(R.string.fxaccount_getting_started_old_firefox);
-    String VERSION = AppConstants.MOZ_APP_VERSION;
-    String OS = AppConstants.OS_TARGET;
-
-    String LOCALE = Utils.getLanguageTag(Locale.getDefault());
-    String url = getResources().getString(R.string.fxaccount_link_old_firefox, VERSION, OS, LOCALE);
+    final String url = FirefoxAccounts.getOldSyncUpgradeURL(getResources(), Locale.getDefault());
     FxAccountConstants.pii(LOG_TAG, "Old Firefox url is: " + url); // Don't want to leak locale in particular.
     ActivityUtils.linkTextView(oldFirefox, text, url);
   }
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountSetupTask.java mozilla-release/mobile/android/base/fxa/activities/FxAccountSetupTask.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountSetupTask.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountSetupTask.java	1970-01-01 01:00:00.000000000 +0100
@@ -1,172 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-package org.mozilla.gecko.fxa.activities;
-
-import java.io.UnsupportedEncodingException;
-import java.util.concurrent.CountDownLatch;
-
-import org.mozilla.gecko.background.common.log.Logger;
-import org.mozilla.gecko.background.fxa.FxAccountClient;
-import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
-import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse;
-import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
-import org.mozilla.gecko.background.fxa.PasswordStretcher;
-import org.mozilla.gecko.fxa.activities.FxAccountSetupTask.InnerRequestDelegate;
-
-import android.content.Context;
-import android.os.AsyncTask;
-
-/**
- * An <code>AsyncTask</code> wrapper around signing up for, and signing in to, a
- * Firefox Account.
- * <p>
- * It's strange to add explicit blocking to callback-threading code, but we do
- * it here to take advantage of Android's built in support for background work.
- * We really want to avoid making a threading mistake that brings down the whole
- * process.
- */
-abstract class FxAccountSetupTask<T> extends AsyncTask<Void, Void, InnerRequestDelegate<T>> {
-  private static final String LOG_TAG = FxAccountSetupTask.class.getSimpleName();
-
-  public interface ProgressDisplay {
-    public void showProgress();
-    public void dismissProgress();
-  }
-
-  protected final Context context;
-  protected final FxAccountClient client;
-  protected final ProgressDisplay progressDisplay;
-
-  // Initialized lazily.
-  protected byte[] quickStretchedPW;
-
-  // AsyncTask's are one-time-use, so final members are fine.
-  protected final CountDownLatch latch = new CountDownLatch(1);
-  protected final InnerRequestDelegate<T> innerDelegate = new InnerRequestDelegate<T>(latch);
-
-  protected final RequestDelegate<T> delegate;
-
-  public FxAccountSetupTask(Context context, ProgressDisplay progressDisplay, FxAccountClient client, RequestDelegate<T> delegate) {
-    this.context = context;
-    this.client = client;
-    this.delegate = delegate;
-    this.progressDisplay = progressDisplay;
-  }
-
-  @Override
-  protected void onPreExecute() {
-    if (progressDisplay != null) {
-      progressDisplay.showProgress();
-    }
-  }
-
-  @Override
-  protected void onPostExecute(InnerRequestDelegate<T> result) {
-    if (progressDisplay != null) {
-      progressDisplay.dismissProgress();
-    }
-
-    // We are on the UI thread, and need to invoke these callbacks here to allow UI updating.
-    if (innerDelegate.failure != null) {
-      delegate.handleFailure(innerDelegate.failure);
-    } else if (innerDelegate.exception != null) {
-      delegate.handleError(innerDelegate.exception);
-    } else {
-      delegate.handleSuccess(result.response);
-    }
-  }
-
-  @Override
-  protected void onCancelled(InnerRequestDelegate<T> result) {
-    if (progressDisplay != null) {
-      progressDisplay.dismissProgress();
-    }
-    delegate.handleError(new IllegalStateException("Task was cancelled."));
-  }
-
-  protected static class InnerRequestDelegate<T> implements RequestDelegate<T> {
-    protected final CountDownLatch latch;
-    public T response = null;
-    public Exception exception = null;
-    public FxAccountClientRemoteException failure = null;
-
-    protected InnerRequestDelegate(CountDownLatch latch) {
-      this.latch = latch;
-    }
-
-    @Override
-    public void handleError(Exception e) {
-      Logger.error(LOG_TAG, "Got exception.");
-      this.exception = e;
-      latch.countDown();
-    }
-
-    @Override
-    public void handleFailure(FxAccountClientRemoteException e) {
-      Logger.warn(LOG_TAG, "Got failure.");
-      this.failure = e;
-      latch.countDown();
-    }
-
-    @Override
-    public void handleSuccess(T result) {
-      Logger.info(LOG_TAG, "Got success.");
-      this.response = result;
-      latch.countDown();
-    }
-  }
-
-  public static class FxAccountCreateAccountTask extends FxAccountSetupTask<LoginResponse> {
-    private static final String LOG_TAG = FxAccountCreateAccountTask.class.getSimpleName();
-
-    protected final byte[] emailUTF8;
-    protected final PasswordStretcher passwordStretcher;
-
-    public FxAccountCreateAccountTask(Context context, ProgressDisplay progressDisplay, String email, PasswordStretcher passwordStretcher, FxAccountClient client, RequestDelegate<LoginResponse> delegate) throws UnsupportedEncodingException {
-      super(context, progressDisplay, client, delegate);
-      this.emailUTF8 = email.getBytes("UTF-8");
-      this.passwordStretcher = passwordStretcher;
-    }
-
-    @Override
-    protected InnerRequestDelegate<LoginResponse> doInBackground(Void... arg0) {
-      try {
-        client.createAccountAndGetKeys(emailUTF8, passwordStretcher, innerDelegate);
-        latch.await();
-        return innerDelegate;
-      } catch (Exception e) {
-        Logger.error(LOG_TAG, "Got exception logging in.", e);
-        delegate.handleError(e);
-      }
-      return null;
-    }
-  }
-
-  public static class FxAccountSignInTask extends FxAccountSetupTask<LoginResponse> {
-    protected static final String LOG_TAG = FxAccountSignInTask.class.getSimpleName();
-
-    protected final byte[] emailUTF8;
-    protected final PasswordStretcher passwordStretcher;
-
-    public FxAccountSignInTask(Context context, ProgressDisplay progressDisplay, String email, PasswordStretcher passwordStretcher, FxAccountClient client, RequestDelegate<LoginResponse> delegate) throws UnsupportedEncodingException {
-      super(context, progressDisplay, client, delegate);
-      this.emailUTF8 = email.getBytes("UTF-8");
-      this.passwordStretcher = passwordStretcher;
-    }
-
-    @Override
-    protected InnerRequestDelegate<LoginResponse> doInBackground(Void... arg0) {
-      try {
-        client.loginAndGetKeys(emailUTF8, passwordStretcher, innerDelegate);
-        latch.await();
-        return innerDelegate;
-      } catch (Exception e) {
-        Logger.error(LOG_TAG, "Got exception signing in.", e);
-        delegate.handleError(e);
-      }
-      return null;
-    }
-  }
-}
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountSignInActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountSignInActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountSignInActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountSignInActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -16,7 +16,7 @@
 import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
 import org.mozilla.gecko.background.fxa.PasswordStretcher;
 import org.mozilla.gecko.fxa.FxAccountConstants;
-import org.mozilla.gecko.fxa.activities.FxAccountSetupTask.FxAccountSignInTask;
+import org.mozilla.gecko.fxa.tasks.FxAccountSignInTask;
 import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
 
 import android.content.Intent;
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountStatusFragment.java mozilla-release/mobile/android/base/fxa/activities/FxAccountStatusFragment.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountStatusFragment.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountStatusFragment.java	2014-09-24 03:05:32.000000000 +0200
@@ -17,6 +17,8 @@
 import org.mozilla.gecko.fxa.login.Married;
 import org.mozilla.gecko.fxa.login.State;
 import org.mozilla.gecko.fxa.sync.FxAccountSyncStatusHelper;
+import org.mozilla.gecko.fxa.tasks.FxAccountCodeResender;
+import org.mozilla.gecko.sync.SharedPreferencesClientsDataDelegate;
 import org.mozilla.gecko.sync.SyncConfiguration;
 
 import android.accounts.Account;
@@ -27,10 +29,13 @@
 import android.os.Bundle;
 import android.os.Handler;
 import android.preference.CheckBoxPreference;
+import android.preference.EditTextPreference;
 import android.preference.Preference;
+import android.preference.Preference.OnPreferenceChangeListener;
 import android.preference.Preference.OnPreferenceClickListener;
 import android.preference.PreferenceCategory;
 import android.preference.PreferenceScreen;
+import android.text.TextUtils;
 
 /**
  * A fragment that displays the status of an AndroidFxAccount.
@@ -38,7 +43,9 @@
  * The owning activity is responsible for providing an AndroidFxAccount at
  * appropriate times.
  */
-public class FxAccountStatusFragment extends PreferenceFragment implements OnPreferenceClickListener {
+public class FxAccountStatusFragment
+    extends PreferenceFragment
+    implements OnPreferenceClickListener, OnPreferenceChangeListener {
   private static final String LOG_TAG = FxAccountStatusFragment.class.getSimpleName();
 
   // When a checkbox is toggled, wait 5 seconds (for other checkbox actions)
@@ -64,7 +71,12 @@
   protected CheckBoxPreference tabsPreference;
   protected CheckBoxPreference passwordsPreference;
 
+  protected EditTextPreference deviceNamePreference;
+
   protected volatile AndroidFxAccount fxAccount;
+  // The contract is: when fxAccount is non-null, then clientsDataDelegate is
+  // non-null.  If violated then an IllegalStateException is thrown.
+  protected volatile SharedPreferencesClientsDataDelegate clientsDataDelegate;
 
   // Used to post delayed sync requests.
   protected Handler handler;
@@ -87,6 +99,10 @@
   @Override
   public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
+    addPreferences();
+  }
+
+  protected void addPreferences() {
     addPreferencesFromResource(R.xml.fxaccount_status_prefscreen);
 
     emailPreference = ensureFindPreference("email");
@@ -118,6 +134,9 @@
     historyPreference.setOnPreferenceClickListener(this);
     tabsPreference.setOnPreferenceClickListener(this);
     passwordsPreference.setOnPreferenceClickListener(this);
+
+    deviceNamePreference = (EditTextPreference) ensureFindPreference("device_name");
+    deviceNamePreference.setOnPreferenceChangeListener(this);
   }
 
   /**
@@ -142,7 +161,7 @@
     }
 
     if (preference == needsVerificationPreference) {
-      FxAccountConfirmAccountActivity.resendCode(getActivity().getApplicationContext(), fxAccount);
+      FxAccountCodeResender.resendCode(getActivity().getApplicationContext(), fxAccount);
 
       Intent intent = new Intent(getActivity(), FxAccountConfirmAccountActivity.class);
       // Per http://stackoverflow.com/a/8992365, this triggers a known bug with
@@ -176,6 +195,8 @@
     historyPreference.setEnabled(enabled);
     tabsPreference.setEnabled(enabled);
     passwordsPreference.setEnabled(enabled);
+    // Since we can't sync, we can't update our remote client record.
+    deviceNamePreference.setEnabled(enabled);
   }
 
   /**
@@ -293,6 +314,14 @@
       throw new IllegalArgumentException("fxAccount must not be null");
     }
     this.fxAccount = fxAccount;
+    try {
+      this.clientsDataDelegate = new SharedPreferencesClientsDataDelegate(fxAccount.getSyncPrefs());
+    } catch (Exception e) {
+      Logger.error(LOG_TAG, "Got exception fetching Sync prefs associated to Firefox Account; aborting.", e);
+      // Something is terribly wrong; best to get a stack trace rather than
+      // continue with a null clients delegate.
+      throw new IllegalStateException(e);
+    }
 
     handler = new Handler(); // Attached to current (assumed to be UI) thread.
 
@@ -318,6 +347,17 @@
     FxAccountSyncStatusHelper.getInstance().stopObserving(syncStatusDelegate);
   }
 
+  protected void hardRefresh() {
+    // This is the only way to guarantee that the EditText dialogs created by
+    // EditTextPreferences are re-created. This works around the issue described
+    // at http://androiddev.orkitra.com/?p=112079.
+    final PreferenceScreen statusScreen = (PreferenceScreen) ensureFindPreference("status_screen");
+    statusScreen.removeAll();
+    addPreferences();
+
+    refresh();
+  }
+
   protected void refresh() {
     // refresh is called from our onResume, which can happen before the owning
     // Activity tells us about an account (via our public
@@ -371,6 +411,10 @@
       // No matter our state, we should update the checkboxes.
       updateSelectedEngines();
     }
+
+    final String clientName = clientsDataDelegate.getClientName();
+    deviceNamePreference.setSummary(clientName);
+    deviceNamePreference.setText(clientName);
   }
 
   /**
@@ -570,4 +614,22 @@
       button.setOnPreferenceClickListener(listener);
     }
   }
+
+  @Override
+  public boolean onPreferenceChange(Preference preference, Object newValue) {
+    if (preference == deviceNamePreference) {
+      String newClientName = (String) newValue;
+      if (TextUtils.isEmpty(newClientName)) {
+        newClientName = clientsDataDelegate.getDefaultClientName();
+      }
+      final long now = System.currentTimeMillis();
+      clientsDataDelegate.setClientName(newClientName, now);
+      requestDelayedSync(); // Try to update our remote client record.
+      hardRefresh(); // Updates the value displayed to the user, among other things.
+      return true;
+    }
+
+    // For everything else, accept the change.
+    return true;
+  }
 }
diff -ruN mozilla-esr31/mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java mozilla-release/mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java
--- mozilla-esr31/mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/activities/FxAccountUpdateCredentialsActivity.java	2014-09-24 03:05:32.000000000 +0200
@@ -18,11 +18,11 @@
 import org.mozilla.gecko.background.fxa.PasswordStretcher;
 import org.mozilla.gecko.fxa.FirefoxAccounts;
 import org.mozilla.gecko.fxa.FxAccountConstants;
-import org.mozilla.gecko.fxa.activities.FxAccountSetupTask.FxAccountSignInTask;
 import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
 import org.mozilla.gecko.fxa.login.Engaged;
 import org.mozilla.gecko.fxa.login.State;
 import org.mozilla.gecko.fxa.login.State.StateLabel;
+import org.mozilla.gecko.fxa.tasks.FxAccountSignInTask;
 import org.mozilla.gecko.sync.setup.activities.ActivityUtils;
 
 import android.os.Bundle;
diff -ruN mozilla-esr31/mobile/android/base/fxa/sync/FxAccountSyncAdapter.java mozilla-release/mobile/android/base/fxa/sync/FxAccountSyncAdapter.java
--- mozilla-esr31/mobile/android/base/fxa/sync/FxAccountSyncAdapter.java	2015-02-25 19:21:06.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/sync/FxAccountSyncAdapter.java	2014-09-24 03:05:33.000000000 +0200
@@ -357,7 +357,11 @@
 
         FxAccountGlobalSession globalSession = null;
         try {
-          ClientsDataDelegate clientsDataDelegate = new SharedPreferencesClientsDataDelegate(sharedPrefs);
+          final ClientsDataDelegate clientsDataDelegate = new SharedPreferencesClientsDataDelegate(sharedPrefs);
+          if (FxAccountConstants.LOG_PERSONAL_INFORMATION) {
+            FxAccountConstants.pii(LOG_TAG, "Client device name is: '" + clientsDataDelegate.getClientName() + "'.");
+            FxAccountConstants.pii(LOG_TAG, "Client device data last modified: " + clientsDataDelegate.getLastModifiedTimestamp());
+          }
 
           // We compute skew over time using SkewHandler. This yields an unchanging
           // skew adjustment that the HawkAuthHeaderProvider uses to adjust its
diff -ruN mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountCodeResender.java mozilla-release/mobile/android/base/fxa/tasks/FxAccountCodeResender.java
--- mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountCodeResender.java	1970-01-01 01:00:00.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/tasks/FxAccountCodeResender.java	2014-09-24 03:05:33.000000000 +0200
@@ -0,0 +1,108 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.gecko.fxa.tasks;
+
+import java.util.concurrent.Executor;
+import java.util.concurrent.Executors;
+
+import org.mozilla.gecko.R;
+import org.mozilla.gecko.background.common.log.Logger;
+import org.mozilla.gecko.background.fxa.FxAccountClient;
+import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
+import org.mozilla.gecko.background.fxa.FxAccountClient20;
+import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
+import org.mozilla.gecko.fxa.authenticator.AndroidFxAccount;
+import org.mozilla.gecko.fxa.login.Engaged;
+
+import android.content.Context;
+import android.widget.Toast;
+
+/**
+ * A helper class that provides a simple interface for requesting
+ * a Firefox Account verification email to be resent.
+ */
+public class FxAccountCodeResender {
+  private static final String LOG_TAG = FxAccountCodeResender.class.getSimpleName();
+
+  private static class FxAccountResendCodeTask extends FxAccountSetupTask<Void> {
+    protected static final String LOG_TAG = FxAccountResendCodeTask.class.getSimpleName();
+
+    protected final byte[] sessionToken;
+
+    public FxAccountResendCodeTask(Context context, byte[] sessionToken, FxAccountClient client, RequestDelegate<Void> delegate) {
+      super(context, null, client, delegate);
+      this.sessionToken = sessionToken;
+    }
+
+    @Override
+    protected InnerRequestDelegate<Void> doInBackground(Void... arg0) {
+      try {
+        client.resendCode(sessionToken, innerDelegate);
+        latch.await();
+        return innerDelegate;
+      } catch (Exception e) {
+        Logger.error(LOG_TAG, "Got exception signing in.", e);
+        delegate.handleError(e);
+      }
+      return null;
+    }
+  }
+
+  private static class ResendCodeDelegate implements RequestDelegate<Void> {
+    public final Context context;
+
+    public ResendCodeDelegate(Context context) {
+      this.context = context;
+    }
+
+    @Override
+    public void handleError(Exception e) {
+      Logger.warn(LOG_TAG, "Got exception requesting fresh confirmation link; ignoring.", e);
+      Toast.makeText(context, R.string.fxaccount_confirm_account_verification_link_not_sent, Toast.LENGTH_LONG).show();
+    }
+
+    @Override
+    public void handleFailure(FxAccountClientRemoteException e) {
+      handleError(e);
+    }
+
+    @Override
+    public void handleSuccess(Void result) {
+      Toast.makeText(context, R.string.fxaccount_confirm_account_verification_link_sent, Toast.LENGTH_SHORT).show();
+    }
+  }
+
+  /**
+   * Resends the account verification email, and displays an appropriate
+   * toast on both send success and failure. Note that because the underlying implementation
+   * uses {@link AsyncTask}, the provided context must be UI-capable and
+   * this method called from the UI thread.
+   *
+   * Note that it may actually be possible to run this (and the {@link AsyncTask}) method
+   * from a background thread - but this hasn't been tested.
+   *
+   * @param context A UI-capable Android context.
+   * @param fxAccount The Firefox Account to resend the code to.
+   */
+  public static void resendCode(Context context, AndroidFxAccount fxAccount) {
+    RequestDelegate<Void> delegate = new ResendCodeDelegate(context);
+
+    byte[] sessionToken;
+    try {
+      sessionToken = ((Engaged) fxAccount.getState()).getSessionToken();
+    } catch (Exception e) {
+      delegate.handleError(e);
+      return;
+    }
+    if (sessionToken == null) {
+      delegate.handleError(new IllegalStateException("sessionToken should not be null"));
+      return;
+    }
+
+    Executor executor = Executors.newSingleThreadExecutor();
+    FxAccountClient client = new FxAccountClient20(fxAccount.getAccountServerURI(), executor);
+    new FxAccountResendCodeTask(context, sessionToken, client, delegate).execute();
+  }
+}
diff -ruN mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountCreateAccountTask.java mozilla-release/mobile/android/base/fxa/tasks/FxAccountCreateAccountTask.java
--- mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountCreateAccountTask.java	1970-01-01 01:00:00.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/tasks/FxAccountCreateAccountTask.java	2014-09-24 03:05:33.000000000 +0200
@@ -0,0 +1,41 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.gecko.fxa.tasks;
+
+import java.io.UnsupportedEncodingException;
+
+import org.mozilla.gecko.background.common.log.Logger;
+import org.mozilla.gecko.background.fxa.FxAccountClient;
+import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
+import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse;
+import org.mozilla.gecko.background.fxa.PasswordStretcher;
+
+import android.content.Context;
+
+public class FxAccountCreateAccountTask extends FxAccountSetupTask<LoginResponse> {
+  private static final String LOG_TAG = FxAccountCreateAccountTask.class.getSimpleName();
+
+  protected final byte[] emailUTF8;
+  protected final PasswordStretcher passwordStretcher;
+
+  public FxAccountCreateAccountTask(Context context, ProgressDisplay progressDisplay, String email, PasswordStretcher passwordStretcher, FxAccountClient client, RequestDelegate<LoginResponse> delegate) throws UnsupportedEncodingException {
+    super(context, progressDisplay, client, delegate);
+    this.emailUTF8 = email.getBytes("UTF-8");
+    this.passwordStretcher = passwordStretcher;
+  }
+
+  @Override
+  protected InnerRequestDelegate<LoginResponse> doInBackground(Void... arg0) {
+    try {
+      client.createAccountAndGetKeys(emailUTF8, passwordStretcher, innerDelegate);
+      latch.await();
+      return innerDelegate;
+    } catch (Exception e) {
+      Logger.error(LOG_TAG, "Got exception logging in.", e);
+      delegate.handleError(e);
+    }
+    return null;
+  }
+}
diff -ruN mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountSetupTask.java mozilla-release/mobile/android/base/fxa/tasks/FxAccountSetupTask.java
--- mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountSetupTask.java	1970-01-01 01:00:00.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/tasks/FxAccountSetupTask.java	2014-09-24 03:05:33.000000000 +0200
@@ -0,0 +1,117 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.gecko.fxa.tasks;
+
+import java.util.concurrent.CountDownLatch;
+
+import org.mozilla.gecko.background.common.log.Logger;
+import org.mozilla.gecko.background.fxa.FxAccountClient;
+import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
+import org.mozilla.gecko.background.fxa.FxAccountClientException.FxAccountClientRemoteException;
+import org.mozilla.gecko.fxa.tasks.FxAccountSetupTask.InnerRequestDelegate;
+
+import android.content.Context;
+import android.os.AsyncTask;
+
+/**
+ * An <code>AsyncTask</code> wrapper around signing up for, and signing in to, a
+ * Firefox Account.
+ * <p>
+ * It's strange to add explicit blocking to callback-threading code, but we do
+ * it here to take advantage of Android's built in support for background work.
+ * We really want to avoid making a threading mistake that brings down the whole
+ * process.
+ */
+public abstract class FxAccountSetupTask<T> extends AsyncTask<Void, Void, InnerRequestDelegate<T>> {
+  private static final String LOG_TAG = FxAccountSetupTask.class.getSimpleName();
+
+  public interface ProgressDisplay {
+    public void showProgress();
+    public void dismissProgress();
+  }
+
+  protected final Context context;
+  protected final FxAccountClient client;
+  protected final ProgressDisplay progressDisplay;
+
+  // Initialized lazily.
+  protected byte[] quickStretchedPW;
+
+  // AsyncTask's are one-time-use, so final members are fine.
+  protected final CountDownLatch latch = new CountDownLatch(1);
+  protected final InnerRequestDelegate<T> innerDelegate = new InnerRequestDelegate<T>(latch);
+
+  protected final RequestDelegate<T> delegate;
+
+  public FxAccountSetupTask(Context context, ProgressDisplay progressDisplay, FxAccountClient client, RequestDelegate<T> delegate) {
+    this.context = context;
+    this.client = client;
+    this.delegate = delegate;
+    this.progressDisplay = progressDisplay;
+  }
+
+  @Override
+  protected void onPreExecute() {
+    if (progressDisplay != null) {
+      progressDisplay.showProgress();
+    }
+  }
+
+  @Override
+  protected void onPostExecute(InnerRequestDelegate<T> result) {
+    if (progressDisplay != null) {
+      progressDisplay.dismissProgress();
+    }
+
+    // We are on the UI thread, and need to invoke these callbacks here to allow UI updating.
+    if (innerDelegate.failure != null) {
+      delegate.handleFailure(innerDelegate.failure);
+    } else if (innerDelegate.exception != null) {
+      delegate.handleError(innerDelegate.exception);
+    } else {
+      delegate.handleSuccess(result.response);
+    }
+  }
+
+  @Override
+  protected void onCancelled(InnerRequestDelegate<T> result) {
+    if (progressDisplay != null) {
+      progressDisplay.dismissProgress();
+    }
+    delegate.handleError(new IllegalStateException("Task was cancelled."));
+  }
+
+  protected static class InnerRequestDelegate<T> implements RequestDelegate<T> {
+    protected final CountDownLatch latch;
+    public T response = null;
+    public Exception exception = null;
+    public FxAccountClientRemoteException failure = null;
+
+    protected InnerRequestDelegate(CountDownLatch latch) {
+      this.latch = latch;
+    }
+
+    @Override
+    public void handleError(Exception e) {
+      Logger.error(LOG_TAG, "Got exception.");
+      this.exception = e;
+      latch.countDown();
+    }
+
+    @Override
+    public void handleFailure(FxAccountClientRemoteException e) {
+      Logger.warn(LOG_TAG, "Got failure.");
+      this.failure = e;
+      latch.countDown();
+    }
+
+    @Override
+    public void handleSuccess(T result) {
+      Logger.info(LOG_TAG, "Got success.");
+      this.response = result;
+      latch.countDown();
+    }
+  }
+}
diff -ruN mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountSignInTask.java mozilla-release/mobile/android/base/fxa/tasks/FxAccountSignInTask.java
--- mozilla-esr31/mobile/android/base/fxa/tasks/FxAccountSignInTask.java	1970-01-01 01:00:00.000000000 +0100
+++ mozilla-release/mobile/android/base/fxa/tasks/FxAccountSignInTask.java	2014-09-24 03:05:33.000000000 +0200
@@ -0,0 +1,41 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.gecko.fxa.tasks;
+
+import java.io.UnsupportedEncodingException;
+
+import org.mozilla.gecko.background.common.log.Logger;
+import org.mozilla.gecko.background.fxa.FxAccountClient;
+import org.mozilla.gecko.background.fxa.FxAccountClient10.RequestDelegate;
+import org.mozilla.gecko.background.fxa.FxAccountClient20.LoginResponse;
+import org.mozilla.gecko.background.fxa.PasswordStretcher;
+
+import android.content.Context;
+
+public class FxAccountSignInTask extends FxAccountSetupTask<LoginResponse> {
+  protected static final String LOG_TAG = FxAccountSignInTask.class.getSimpleName();
+
+  protected final byte[] emailUTF8;
+  protected final PasswordStretcher passwordStretcher;
+
+  public FxAccountSignInTask(Context context, ProgressDisplay progressDisplay, String email, PasswordStretcher passwordStretcher, FxAccountClient client, RequestDelegate<LoginResponse> delegate) throws UnsupportedEncodingException {
+    super(context, progressDisplay, client, delegate);
+    this.emailUTF8 = email.getBytes("UTF-8");
+    this.passwordStretcher = passwordStretcher;
+  }
+
+  @Override
+  protected InnerRequestDelegate<LoginResponse> doInBackground(Void... arg0) {
+    try {
+      client.loginAndGetKeys(emailUTF8, passwordStretcher, innerDelegate);
+      latch.await();
+      return innerDelegate;
+    } catch (Exception e) {
+      Logger.error(LOG_TAG, "Got exception signing in.", e);
+      delegate.handleError(e);
+    }
+    return null;
+  }
+}
--- mozilla-esr31/mobile/android/base/android-services.mozbuild	2015-02-25 19:21:05.000000000 +0100
+++ mozilla-release/mobile/android/base/android-services.mozbuild	2014-09-24 03:05:32.000000000 +0200
@@ -555,7 +557,6 @@
     'fxa/activities/FxAccountCreateAccountActivity.java',
     'fxa/activities/FxAccountCreateAccountNotAllowedActivity.java',
     'fxa/activities/FxAccountGetStartedActivity.java',
-    'fxa/activities/FxAccountSetupTask.java',
     'fxa/activities/FxAccountSignInActivity.java',
     'fxa/activities/FxAccountStatusActivity.java',
     'fxa/activities/FxAccountStatusFragment.java',
@@ -589,6 +590,10 @@
     'fxa/sync/FxAccountSyncService.java',
     'fxa/sync/FxAccountSyncStatusHelper.java',
     'fxa/sync/SchedulePolicy.java',
+    'fxa/tasks/FxAccountCodeResender.java',
+    'fxa/tasks/FxAccountCreateAccountTask.java',
+    'fxa/tasks/FxAccountSetupTask.java',
+    'fxa/tasks/FxAccountSignInTask.java',
     'sync/AlreadySyncingException.java',
     'sync/BackoffHandler.java',
     'sync/BadRequiredFieldJSONException.java',