Class Overview
This class provides APIs to customize banner message during device reboot.
An Administrator can enable/disable reboot banner
by enabling reboot banner with text that needs to be displayed. (enableRebootBanner(boolean, String)
)
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Methods
public
boolean
enableRebootBanner
(boolean isEnrolled, String bannerText)
API to show banner message after device reboot.
Returns
true
if success else false
Usage
An administrator can call this API to show banner message after device reboot. |
EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context);
BootBanner banner = edm.getBootBanner();
try {
String text = "Sample Banner Text";
banner.enableRebootBanner(true, text);
}catch(SecurityException e) {
Log.w(TAG,"SecurityException: "+e);
} |
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_SECURITY" permission which has a protection
level of signature. |
public
boolean
enableRebootBanner
(boolean isEnrolled)
API to show banner message after device reboot.
Returns
true
if success else false
Usage
An administrator can call this API to show banner message after device reboot.
This is specifically implemented for STIG compliance requirement for DoD-US (Department of Defense). |
EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context);
BootBanner banner = edm.getBootBanner();
try {
banner.enableRebootBanner(true);
}catch(SecurityException e) {
Log.w(TAG,"SecurityException: "+e);
} |
Permission
The use of this API requires the caller to have the
"com.samsung.android.knox.permission.KNOX_SECURITY" permission which has a protection
level of signature. |
public
boolean
isRebootBannerEnabled
()
API to check whether reboot banner is enabled or not.
Returns
true
if enabled ,false
if disabled
EnterpriseDeviceManager edm = EnterpriseDeviceManager.getInstance(context);
BootBanner banner = edm.getBootBanner();
try {
boolean status=banner.isRebootBannerEnabled();
}catch(SecurityException e) {
Log.w(TAG,"SecurityException: "+e);
} |