b854d05a89
Our original plan was to disable both authenticators by default, and enable one of then on boot. However, it turned out existing exchange accounts will be removed if there's no enabled authenticators for the account type. So, instead, in this patch we initially enable only the default one, and switch to the other one on boot if the vendor policy indicates so. (If a device has a vendor policy apk, it should also have the email app preloaded, so changing the label at boot time isn't too late.) Bug: 2382710
28 lines
1003 B
Java
28 lines
1003 B
Java
/*
|
|
* Copyright (C) 2010 The Android Open Source Project
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
package com.android.email.service;
|
|
|
|
/**
|
|
* {@link EasAuthenticatorService} used with the alternative label.
|
|
*
|
|
* <p>Functionality wise, it's a 100% clone of {@link EasAuthenticatorService}, but in order to
|
|
* independently disable/enable each service we need to give it a different class name.
|
|
*/
|
|
public class EasAuthenticatorServiceAlternate extends EasAuthenticatorService {
|
|
|
|
}
|