List of all calls to Android IPC API.
This entry is informative, no recommendations applicable.
Method android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts()
calling method android.content.BroadcastReceiver.onReceive()
private void executePendingBroadcasts()
{
while(true) {
android.content.Context v6 = this.mReceivers;
int v0 = this.mPendingBroadcasts.size();
if (v0 <= 0) {
break;
}
android.support.v4.content.LocalBroadcastManager$BroadcastRecord[] v2 = new android.support.v4.content.LocalBroadcastManager$BroadcastRecord[v0];
this.mPendingBroadcasts.toArray(v2);
this.mPendingBroadcasts.clear();
int v3 = 0;
while (v3 < v2.length) {
android.support.v4.content.LocalBroadcastManager$BroadcastRecord v1 = v2[v3];
int v4 = 0;
while (v4 < v1.receivers.size()) {
((android.support.v4.content.LocalBroadcastManager$ReceiverRecord) v1.receivers.get(v4)).receiver.onReceive(this.mAppContext, v1.intent);
v4++;
}
v3++;
}
}
return;
}
Method android.support.v4.app.NotificationManagerCompat$SideChannelManager.ensureServiceBound()
calling method android.content.Context.bindService()
private boolean ensureServiceBound(android.support.v4.app.NotificationManagerCompat$SideChannelManager$ListenerRecord p5)
{
boolean v1_7;
if (!p5.bound) {
p5.bound = this.mContext.bindService(new android.content.Intent("android.support.BIND_NOTIFICATION_SIDE_CHANNEL").setComponent(p5.componentName), this, android.support.v4.app.NotificationManagerCompat.access$000());
if (!p5.bound) {
android.util.Log.w("NotifManCompat", new StringBuilder().append("Unable to bind to listener ").append(p5.componentName).toString());
this.mContext.unbindService(this);
} else {
p5.retryCount = 0;
}
v1_7 = p5.bound;
} else {
v1_7 = 1;
}
return v1_7;
}
Method android.support.v4.content.ContextCompatJellybean.startActivities()
calling method android.content.Context.startActivities()
public static void startActivities(android.content.Context p0, android.content.Intent[] p1, android.os.Bundle p2)
{
p0.startActivities(p1, p2);
return;
}
Method android.support.v4.content.ContextCompatHoneycomb.startActivities()
calling method android.content.Context.startActivities()
static void startActivities(android.content.Context p0, android.content.Intent[] p1)
{
p0.startActivities(p1);
return;
}
Method android.support.v4.content.WakefulBroadcastReceiver.startWakefulService()
calling method android.content.Context.startService()
public static android.content.ComponentName startWakefulService(android.content.Context p8, android.content.Intent p9)
{
try {
int v1 = android.support.v4.content.WakefulBroadcastReceiver.mNextId;
android.support.v4.content.WakefulBroadcastReceiver.mNextId = (android.support.v4.content.WakefulBroadcastReceiver.mNextId + 1);
} catch (android.util.SparseArray v4_6) {
throw v4_6;
}
if (android.support.v4.content.WakefulBroadcastReceiver.mNextId <= 0) {
android.support.v4.content.WakefulBroadcastReceiver.mNextId = 1;
}
p9.putExtra("android.support.content.wakelockid", v1);
int v0 = p8.startService(p9);
if (v0 != 0) {
android.os.PowerManager$WakeLock v3 = ((android.os.PowerManager) p8.getSystemService("power")).newWakeLock(1, new StringBuilder().append("wake:").append(v0.flattenToShortString()).toString());
v3.setReferenceCounted(0);
v3.acquire(60000);
android.support.v4.content.WakefulBroadcastReceiver.mActiveWakeLocks.put(v1, v3);
} else {
v0 = 0;
}
return v0;
}
Method android.support.v4.app.ActivityCompat.startActivityForResult()
calling method android.app.Activity.startActivityForResult()
public static void startActivityForResult(android.app.Activity p2, android.content.Intent p3, int p4, android.os.Bundle p5)
{
if (android.os.Build$VERSION.SDK_INT < 16) {
p2.startActivityForResult(p3, p4);
} else {
android.support.v4.app.ActivityCompatJB.startActivityForResult(p2, p3, p4, p5);
}
return;
}
Method android.support.v4.app.FragmentActivity.startActivityFromFragment()
calling method android.app.Activity.startActivityForResult()
public void startActivityFromFragment(android.support.v4.app.Fragment p3, android.content.Intent p4, int p5)
{
if (p5 != -1) {
if ((-65536 & p5) == 0) {
super.startActivityForResult(p4, (((p3.mIndex + 1) << 16) + (65535 & p5)));
} else {
throw new IllegalArgumentException("Can only use lower 16 bits for requestCode");
}
} else {
super.startActivityForResult(p4, -1);
}
return;
}
Method android.support.v4.app.FragmentActivity.startActivityForResult()
calling method android.app.Activity.startActivityForResult()
public void startActivityForResult(android.content.Intent p3, int p4)
{
if ((p4 == -1) || ((-65536 & p4) == 0)) {
super.startActivityForResult(p3, p4);
return;
} else {
throw new IllegalArgumentException("Can only use lower 16 bits for requestCode");
}
}
Method android.support.v4.app.ActivityCompatJB.startActivityForResult()
calling method android.app.Activity.startActivityForResult()
public static void startActivityForResult(android.app.Activity p0, android.content.Intent p1, int p2, android.os.Bundle p3)
{
p0.startActivityForResult(p1, p2, p3);
return;
}
Method android.support.v4.app.NavUtils$NavUtilsImplBase.navigateUpTo()
calling method android.app.Activity.startActivity()
public void navigateUpTo(android.app.Activity p2, android.content.Intent p3)
{
p3.addFlags(67108864);
p2.startActivity(p3);
p2.finish();
return;
}
Method android.support.v4.app.ActivityCompat.startActivity()
calling method android.app.Activity.startActivity()
public static void startActivity(android.app.Activity p2, android.content.Intent p3, android.os.Bundle p4)
{
if (android.os.Build$VERSION.SDK_INT < 16) {
p2.startActivity(p3);
} else {
android.support.v4.app.ActivityCompatJB.startActivity(p2, p3, p4);
}
return;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.startChooser()
calling method android.app.Activity.startActivity()
public void startChooser()
{
this.mActivity.startActivity(this.createChooserIntent());
return;
}
Method android.support.v4.app.FragmentActivity.onNewIntent()
calling method android.app.Activity.onNewIntent()
protected void onNewIntent(android.content.Intent p2)
{
super.onNewIntent(p2);
this.mFragments.noteStateNotSaved();
return;
}
Method com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p8)
{
super.onCreate(p8);
this.setContentView(2130903066);
com.android.setupwizardlib.view.NavigationBar v3 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar();
v3.setNavigationBarListener(this);
v3.getNextButton().setText(2131165457);
android.accounts.Account v0 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccount(this.getIntent());
if (v0 == null) {
android.widget.Toast.makeText(this, 2131165346, 1).show();
} else {
this.findViewById(2131624029).setVisibility(0);
android.widget.TextView v2_1 = ((android.widget.TextView) this.findViewById(2131623981));
v2_1.setVisibility(0);
v2_1.setText(v0.name);
}
return;
}
Method com.afwsamples.testdpc.syncauth.FinishSyncAuthProfileOwnerActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p8)
{
super.onCreate(p8);
if (p8 == null) {
this.enableProfile();
}
this.setContentView(2130903057);
com.android.setupwizardlib.view.NavigationBar v4 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar();
v4.setNavigationBarListener(this);
v4.getNextButton().setText(2131165329);
String v0 = this.getIntent().getStringExtra("account_name");
if (v0 != null) {
android.widget.LinearLayout v2_1;
if (!this.isAccountMigrated(v0)) {
v2_1 = ((android.widget.LinearLayout) this.findViewById(2131623983));
} else {
v2_1 = ((android.widget.LinearLayout) this.findViewById(2131623982));
}
v2_1.setVisibility(0);
((android.widget.TextView) v2_1.findViewById(2131623981)).setText(v0);
}
return;
}
Method com.afwsamples.testdpc.syncauth.FinishSyncAuthDeviceOwnerActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p8)
{
super.onCreate(p8);
this.setContentView(2130903056);
com.android.setupwizardlib.view.NavigationBar v3 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar();
v3.setNavigationBarListener(this);
v3.getNextButton().setText(2131165329);
String v0 = this.getIntent().getStringExtra("account_name");
if (v0 != null) {
this.findViewById(2131623980).setVisibility(0);
android.widget.TextView v2_1 = ((android.widget.TextView) this.findViewById(2131623981));
v2_1.setText(v0);
v2_1.setVisibility(0);
}
return;
}
Method com.afwsamples.testdpc.EnableProfileActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p10)
{
super.onCreate(p10);
if (p10 == null) {
this.enableProfile();
}
this.setContentView(2130903055);
com.android.setupwizardlib.view.NavigationBar v5 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar();
v5.setNavigationBarListener(this);
v5.getNextButton().setText(2131165329);
android.widget.ImageView v0_1 = ((android.widget.ImageView) this.findViewById(2131623978));
android.widget.TextView v1_1 = ((android.widget.TextView) this.findViewById(2131623979));
try {
android.content.pm.PackageManager v6 = this.getPackageManager();
android.content.pm.ApplicationInfo v2 = v6.getApplicationInfo(this.getPackageName(), 0);
v0_1.setImageDrawable(v6.getApplicationIcon(v2));
v1_1.setText(v6.getApplicationLabel(v2));
} catch (android.content.pm.PackageManager$NameNotFoundException v3) {
android.util.Log.w("TestDPC", "Couldn\'t look up our own package?!?!", v3);
}
return;
}
Method com.afwsamples.testdpc.EnableDeviceOwnerActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p10)
{
super.onCreate(p10);
this.setContentView(2130903054);
com.android.setupwizardlib.view.NavigationBar v5 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar();
v5.setNavigationBarListener(this);
v5.getNextButton().setText(2131165329);
android.widget.ImageView v0_1 = ((android.widget.ImageView) this.findViewById(2131623978));
android.widget.TextView v1_1 = ((android.widget.TextView) this.findViewById(2131623979));
try {
android.content.pm.PackageManager v6 = this.getPackageManager();
android.content.pm.ApplicationInfo v2 = v6.getApplicationInfo(this.getPackageName(), 0);
v0_1.setImageDrawable(v6.getApplicationIcon(v2));
v1_1.setText(v6.getApplicationLabel(v2));
} catch (android.content.pm.PackageManager$NameNotFoundException v3) {
android.util.Log.w("TestDPC", "Couldn\'t look up our own package?!?!", v3);
}
return;
}
Method com.afwsamples.testdpc.AddAccountActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p5)
{
super.onCreate(p5);
this.setContentView(2130903040);
((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936)).getNavigationBar().setNavigationBarListener(this);
android.os.Bundle v0 = this.getIntent().getExtras();
if (v0 != null) {
this.mNextActivityIntent = ((android.content.Intent) v0.get("nextActivityIntent"));
}
if (this.mNextActivityIntent == null) {
android.util.Log.e("AddAccountActivity", "nextActivityIntent extra must be provided");
this.finish();
}
return;
}
Method com.afwsamples.testdpc.policy.locktask.KioskModeActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p12)
{
super.onCreate(p12);
this.mAdminComponentName = com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this);
this.mDevicePolicyManager = ((android.app.admin.DevicePolicyManager) this.getSystemService("device_policy"));
this.mPackageManager = this.getPackageManager();
String[] v5 = this.getIntent().getStringArrayExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST");
if (v5 == null) {
this.mKioskPackages = new java.util.ArrayList(this.getSharedPreferences("kiosk_preference_file", 0).getStringSet("kiosk_apps", new java.util.HashSet()));
} else {
this.mKioskPackages = new java.util.ArrayList();
String[] v0 = v5;
int v3 = v0.length;
int v1 = 0;
while (v1 < v3) {
this.mKioskPackages.add(v0[v1]);
v1++;
}
this.mKioskPackages.remove(this.getPackageName());
this.mKioskPackages.add(this.getPackageName());
this.setDefaultKioskPolicies(1);
}
this.mKioskPackages.remove(this.getPackageName());
this.mKioskPackages.add(this.getPackageName());
com.afwsamples.testdpc.policy.locktask.KioskModeActivity$KioskAppsArrayAdapter v2_1 = new com.afwsamples.testdpc.policy.locktask.KioskModeActivity$KioskAppsArrayAdapter(this, this, 2131623956, this.mKioskPackages);
android.widget.ListView v4_1 = new android.widget.ListView(this);
v4_1.setAdapter(v2_1);
v4_1.setOnItemClickListener(new com.afwsamples.testdpc.policy.locktask.KioskModeActivity$1(this, v2_1));
this.setContentView(v4_1);
return;
}
Method com.afwsamples.testdpc.cosu.EnableCosuActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p9)
{
super.onCreate(p9);
if (((android.app.admin.DevicePolicyManager) this.getSystemService("device_policy")).isDeviceOwnerApp(this.getPackageName())) {
android.os.PersistableBundle v4_1 = ((android.os.PersistableBundle) this.getIntent().getParcelableExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE"));
if (v4_1 != null) {
this.setContentView(2130903053);
com.android.setupwizardlib.SetupWizardLayout v2_1 = ((com.android.setupwizardlib.SetupWizardLayout) this.findViewById(2131623936));
com.android.setupwizardlib.view.NavigationBar v3 = v2_1.getNavigationBar();
v3.getNextButton().setVisibility(8);
v3.getBackButton().setVisibility(8);
v2_1.showProgressBar();
this.mStatusText = ((android.widget.TextView) this.findViewById(2131623977));
this.mDownloadManager = ((android.app.DownloadManager) this.getSystemService("download"));
this.registerReceiver(this.mDownloadReceiver, new android.content.IntentFilter("android.intent.action.DOWNLOAD_COMPLETE"));
this.registerReceiver(this.mInstallReceiver, new android.content.IntentFilter("com.afwsamples.testdpc.INSTALL_COMPLETE"));
String v0_1 = ((String) v4_1.get("cosu-demo-config-location"));
if (v0_1 != null) {
this.mConfigDownloadId = com.afwsamples.testdpc.cosu.CosuUtils.startDownload(this.mDownloadManager, this.mHandler, v0_1);
this.mStatusText.setText(this.getString(2131165453));
} else {
android.util.Log.e("CosuSetup", "No download-location specified");
this.finishWithFailure();
}
} else {
android.util.Log.e("CosuSetup", "No admin extra bundle");
this.finish();
}
} else {
android.util.Log.e("CosuSetup", "TestDPC is not the device owner, cannot set up COSU device.");
this.finish();
}
return;
}
Method com.afwsamples.testdpc.PolicyManagementActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p6)
{
super.onCreate(p6);
this.setContentView(2130903041);
if (p6 == null) {
android.app.admin.DevicePolicyManager v0_1 = ((android.app.admin.DevicePolicyManager) this.getSystemService("device_policy"));
String v1 = this.getPackageName();
if ((!v0_1.isProfileOwnerApp(v1)) && (!v0_1.isDeviceOwnerApp(v1))) {
this.getFragmentManager().beginTransaction().add(2131623941, new com.afwsamples.testdpc.SetupManagementFragment()).commit();
} else {
this.getFragmentManager().beginTransaction().add(2131623941, new com.afwsamples.testdpc.policy.PolicyManagementFragment()).commit();
}
}
return;
}
Method com.afwsamples.testdpc.LaunchActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p5)
{
super.onCreate(p5);
if (p5 == null) {
if (!com.afwsamples.testdpc.common.ProvisioningStateUtil.isManagedByTestDPC(this)) {
if (!com.afwsamples.testdpc.common.ProvisioningStateUtil.isManaged(this)) {
if (!com.afwsamples.testdpc.common.LaunchIntentUtil.isSynchronousAuthLaunch(this.getIntent())) {
this.startActivity(new android.content.Intent(this, com.afwsamples.testdpc.PolicyManagementActivity));
this.finish();
} else {
this.startActivityForResult(new android.content.Intent(this, com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement).putExtras(this.getIntent().getExtras()), 1);
}
} else {
android.widget.Toast.makeText(this, this.getString(2131165405), 1).show();
this.setResult(0);
this.finish();
}
} else {
this.startActivity(new android.content.Intent(this, com.afwsamples.testdpc.PolicyManagementActivity));
this.finish();
}
} else {
this.finish();
}
return;
}
Method android.support.v4.app.FragmentActivity.onCreate()
calling method android.app.Activity.onCreate()
protected void onCreate(android.os.Bundle p6)
{
java.util.ArrayList v2_0 = 0;
this.mFragments.attachActivity(this, this.mContainer, 0);
if (this.getLayoutInflater().getFactory() == null) {
this.getLayoutInflater().setFactory(this);
}
super.onCreate(p6);
android.support.v4.app.FragmentActivity$NonConfigurationInstances v0_1 = ((android.support.v4.app.FragmentActivity$NonConfigurationInstances) this.getLastNonConfigurationInstance());
if (v0_1 != null) {
this.mAllLoaderManagers = v0_1.loaders;
}
if (p6 != null) {
android.os.Parcelable vtmp5 = p6.getParcelable("android:support:fragments");
if (v0_1 != null) {
v2_0 = v0_1.fragments;
}
this.mFragments.restoreAllState(vtmp5, v2_0);
}
this.mFragments.dispatchCreate();
return;
}
Method android.support.v4.media.TransportMediatorJellybeanMR2.<init>()
calling method android.content.Intent.setPackage()
public TransportMediatorJellybeanMR2(android.content.Context p3, android.media.AudioManager p4, android.view.View p5, android.support.v4.media.TransportMediatorCallback p6)
{
this.mWindowAttachListener = new android.support.v4.media.TransportMediatorJellybeanMR2$1(this);
this.mWindowFocusListener = new android.support.v4.media.TransportMediatorJellybeanMR2$2(this);
this.mMediaButtonReceiver = new android.support.v4.media.TransportMediatorJellybeanMR2$3(this);
this.mAudioFocusChangeListener = new android.support.v4.media.TransportMediatorJellybeanMR2$4(this);
this.mPlayState = 0;
this.mContext = p3;
this.mAudioManager = p4;
this.mTargetView = p5;
this.mTransportCallback = p6;
this.mReceiverAction = new StringBuilder().append(p3.getPackageName()).append(":transport:").append(System.identityHashCode(this)).toString();
this.mIntent = new android.content.Intent(this.mReceiverAction);
this.mIntent.setPackage(p3.getPackageName());
this.mReceiverFilter = new android.content.IntentFilter();
this.mReceiverFilter.addAction(this.mReceiverAction);
this.mTargetView.getViewTreeObserver().addOnWindowAttachListener(this.mWindowAttachListener);
this.mTargetView.getViewTreeObserver().addOnWindowFocusChangeListener(this.mWindowFocusListener);
return;
}
Method android.support.v4.content.IntentCompat$IntentCompatImplBase.makeRestartActivityTask()
calling method android.content.Intent.addFlags()
public android.content.Intent makeRestartActivityTask(android.content.ComponentName p3)
{
android.content.Intent v0 = this.makeMainActivity(p3);
v0.addFlags(268468224);
return v0;
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplJellybean.getPendingIntent()
calling method android.content.Intent.addFlags()
public android.app.PendingIntent getPendingIntent(android.content.Context p4, android.content.Intent[] p5, int p6, int p7, android.os.Bundle p8)
{
p5[0] = new android.content.Intent(p5[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilderJellybean.getActivitiesPendingIntent(p4, p6, p5, p7, p8);
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplHoneycomb.getPendingIntent()
calling method android.content.Intent.addFlags()
public android.app.PendingIntent getPendingIntent(android.content.Context p4, android.content.Intent[] p5, int p6, int p7, android.os.Bundle p8)
{
p5[0] = new android.content.Intent(p5[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilderHoneycomb.getActivitiesPendingIntent(p4, p6, p5, p7);
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplBase.getPendingIntent()
calling method android.content.Intent.addFlags()
public android.app.PendingIntent getPendingIntent(android.content.Context p3, android.content.Intent[] p4, int p5, int p6, android.os.Bundle p7)
{
android.content.Intent v0_1 = new android.content.Intent(p4[(p4.length - 1)]);
v0_1.addFlags(268435456);
return android.app.PendingIntent.getActivity(p3, p5, v0_1, p6);
}
Method android.support.v4.app.NavUtils$NavUtilsImplBase.navigateUpTo()
calling method android.content.Intent.addFlags()
public void navigateUpTo(android.app.Activity p2, android.content.Intent p3)
{
p3.addFlags(67108864);
p2.startActivity(p3);
p2.finish();
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.startKioskMode()
calling method android.content.Intent.addFlags()
private void startKioskMode(String[] p7)
{
android.content.Intent v0_1 = new android.content.Intent(this.getActivity(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v0_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", p7);
v0_1.addFlags(268435456);
this.mPackageManager.setComponentEnabledSetting(new android.content.ComponentName(this.mPackageName, com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
this.startActivity(v0_1);
this.getActivity().finish();
return;
}
Method com.afwsamples.testdpc.cosu.EnableCosuActivity.startCosuMode()
calling method android.content.Intent.addFlags()
private void startCosuMode()
{
android.content.Intent v1_1 = 0;
String v2 = this.mConfig.getMode();
String[] v0 = this.mConfig.getKioskApps();
if (v2 == null) {
v2 = "default";
}
if (!"custom".equals(v2)) {
if (!"single".equals(v2)) {
v1_1 = new android.content.Intent("android.intent.action.MAIN");
v1_1.addCategory("android.intent.category.HOME");
} else {
if (v0.length != 0) {
v1_1 = this.getPackageManager().getLaunchIntentForPackage(v0[0]);
}
}
} else {
v1_1 = new android.content.Intent(this, com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v1_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", v0);
this.getPackageManager().setComponentEnabledSetting(new android.content.ComponentName(this.getPackageName(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
}
if (v1_1 != null) {
v1_1.addFlags(268435456);
this.startActivity(v1_1);
android.widget.Toast.makeText(this, 2131165455, 1).show();
this.unregisterReceiver(this.mInstallReceiver);
this.unregisterReceiver(this.mDownloadReceiver);
if (this.mHandler.hasMessages(2)) {
android.util.Log.w("CosuSetup", "Download timeout messages remaining on handler thread.");
this.mHandler.removeMessages(2);
}
this.finish();
} else {
android.util.Log.e("CosuSetup", new StringBuilder().append("No launch intent specified. Mode=").append(v2).toString());
this.finishWithFailure();
}
return;
}
Method com.afwsamples.testdpc.DeviceAdminReceiver.onProfileProvisioningComplete()
calling method android.content.Intent.addFlags()
public void onProfileProvisioningComplete(android.content.Context p16, android.content.Intent p17)
{
android.os.PersistableBundle v7_1 = ((android.os.PersistableBundle) p17.getParcelableExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE"));
android.app.admin.DevicePolicyManager v6_1 = ((android.app.admin.DevicePolicyManager) p16.getSystemService("device_policy"));
String v11 = p16.getPackageName();
boolean v12 = com.afwsamples.testdpc.common.LaunchIntentUtil.isSynchronousAuthLaunch(v7_1);
boolean v5 = com.afwsamples.testdpc.common.LaunchIntentUtil.isCosuLaunch(v7_1);
boolean v9 = v6_1.isProfileOwnerApp(v11);
boolean v8 = v6_1.isDeviceOwnerApp(v11);
if ((v9) || (v8)) {
if (android.os.Build$VERSION.SDK_INT >= 23) {
this.autoGrantRequestedPermissionsToSelf(p16);
}
android.content.Intent v10_1;
if (!v12) {
if (!v9) {
if (!v5) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableDeviceOwnerActivity);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.cosu.EnableCosuActivity);
v10_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v7_1);
}
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableProfileActivity);
}
} else {
String v2 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccountName(v7_1);
if (!v9) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthDeviceOwnerActivity).putExtra("account_name", v2);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthProfileOwnerActivity).putExtra("account_name", v2);
}
}
if ((!v12) && (!v5)) {
android.accounts.Account[] v3 = android.accounts.AccountManager.get(p16).getAccounts();
if ((v3 != null) && (v3.length == 0)) {
android.content.Intent v4_1 = new android.content.Intent(p16, com.afwsamples.testdpc.AddAccountActivity);
v4_1.addFlags(268435456);
v4_1.putExtra("nextActivityIntent", v10_1);
p16.startActivity(v4_1);
return;
}
}
v10_1.addFlags(268435456);
p16.startActivity(v10_1);
} else {
android.util.Log.e("TestDPC", "DeviceAdminReceiver.onProvisioningComplete() invoked, but ownership not assigned");
android.widget.Toast.makeText(p16, 2131165271, 1).show();
}
return;
}
Method android.support.v4.app.TaskStackBuilder.startActivities()
calling method android.content.Intent.addFlags()
public void startActivities(android.os.Bundle p6)
{
if (!this.mIntents.isEmpty()) {
int v3_5 = new android.content.Intent[this.mIntents.size()];
android.content.Intent[] v0_1 = ((android.content.Intent[]) this.mIntents.toArray(v3_5));
v0_1[0] = new android.content.Intent(v0_1[0]).addFlags(268484608);
if (!android.support.v4.content.ContextCompat.startActivities(this.mSourceContext, v0_1, p6)) {
android.content.Intent v1_1 = new android.content.Intent(v0_1[(v0_1.length - 1)]);
v1_1.addFlags(268435456);
this.mSourceContext.startActivity(v1_1);
}
return;
} else {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
}
}
Method android.support.v4.app.TaskStackBuilder.getPendingIntent()
calling method android.content.Intent.addFlags()
public android.app.PendingIntent getPendingIntent(int p7, int p8, android.os.Bundle p9)
{
if (!this.mIntents.isEmpty()) {
android.content.Context v1_6 = new android.content.Intent[this.mIntents.size()];
android.content.Intent[] v2_1 = ((android.content.Intent[]) this.mIntents.toArray(v1_6));
v2_1[0] = new android.content.Intent(v2_1[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilder.IMPL.getPendingIntent(this.mSourceContext, v2_1, p7, p8, p9);
} else {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
}
}
Method android.support.v4.app.TaskStackBuilder.getIntents()
calling method android.content.Intent.addFlags()
public android.content.Intent[] getIntents()
{
android.content.Intent[] v1 = new android.content.Intent[this.mIntents.size()];
if (v1.length != 0) {
v1[0] = new android.content.Intent(((android.content.Intent) this.mIntents.get(0))).addFlags(268484608);
int v0 = 1;
while (v0 < v1.length) {
v1[v0] = new android.content.Intent(((android.content.Intent) this.mIntents.get(v0)));
v0++;
}
}
return v1;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.<init>()
calling method android.content.Intent.addFlags()
private ShareCompat$IntentBuilder(android.app.Activity p4)
{
this.mActivity = p4;
this.mIntent = new android.content.Intent().setAction("android.intent.action.SEND");
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_PACKAGE", p4.getPackageName());
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_ACTIVITY", p4.getComponentName());
this.mIntent.addFlags(524288);
return;
}
Method com.afwsamples.testdpc.profilepolicy.addsystemapps.EnableSystemAppsByIntentFragment.getIntent()
calling method android.content.Intent.addCategory()
protected android.content.Intent getIntent()
{
if ((!this.mActions.isEmpty()) || (!this.mCategories.isEmpty())) {
int v2_0 = new android.content.Intent();
if (!this.mActions.isEmpty()) {
v2_0.setAction(((String) this.mActions.iterator().next()));
}
java.util.Iterator v1 = this.mCategories.iterator();
while (v1.hasNext()) {
v2_0.addCategory(((String) v1.next()));
}
} else {
v2_0 = 0;
}
return v2_0;
}
Method android.support.v4.content.IntentCompat$IntentCompatImplBase.makeMainSelectorActivity()
calling method android.content.Intent.addCategory()
public android.content.Intent makeMainSelectorActivity(String p2, String p3)
{
android.content.Intent v0_1 = new android.content.Intent(p2);
v0_1.addCategory(p3);
return v0_1;
}
Method android.support.v4.content.IntentCompat$IntentCompatImplBase.makeMainActivity()
calling method android.content.Intent.addCategory()
public android.content.Intent makeMainActivity(android.content.ComponentName p3)
{
android.content.Intent v0_1 = new android.content.Intent("android.intent.action.MAIN");
v0_1.setComponent(p3);
v0_1.addCategory("android.intent.category.LAUNCHER");
return v0_1;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.showManageLockTaskListPrompt()
calling method android.content.Intent.addCategory()
private void showManageLockTaskListPrompt(int p8, com.afwsamples.testdpc.policy.PolicyManagementFragment$ManageLockTaskListCallback p9)
{
if ((this.getActivity() != null) && (!this.getActivity().isFinishing())) {
android.content.Intent v1_0 = new android.content.Intent("android.intent.action.MAIN");
v1_0.addCategory("android.intent.category.LAUNCHER");
java.util.List v3 = this.mPackageManager.queryIntentActivities(v1_0, 0);
if (!v3.isEmpty()) {
java.util.Collections.sort(v3, new android.content.pm.ResolveInfo$DisplayNameComparator(this.mPackageManager));
com.afwsamples.testdpc.policy.locktask.LockTaskAppInfoArrayAdapter v0_1 = new com.afwsamples.testdpc.policy.locktask.LockTaskAppInfoArrayAdapter(this.getActivity(), 2131623956, v3);
android.widget.ListView v2_1 = new android.widget.ListView(this.getActivity());
v2_1.setAdapter(v0_1);
v2_1.setOnItemClickListener(new com.afwsamples.testdpc.policy.PolicyManagementFragment$3(this, v0_1));
new android.app.AlertDialog$Builder(this.getActivity()).setTitle(this.getString(p8)).setView(v2_1).setPositiveButton(17039370, new com.afwsamples.testdpc.policy.PolicyManagementFragment$5(this, v0_1, p9)).setNegativeButton(17039360, new com.afwsamples.testdpc.policy.PolicyManagementFragment$4(this)).show();
} else {
int v5_7 = new Object[0];
this.showToast(2131165402, v5_7);
}
}
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.showHideAppsPrompt()
calling method android.content.Intent.addCategory()
private void showHideAppsPrompt(boolean p16)
{
java.util.ArrayList v2_1 = new java.util.ArrayList();
if (!p16) {
android.content.Intent v11_1 = new android.content.Intent("android.intent.action.MAIN");
v11_1.addCategory("android.intent.category.LAUNCHER");
java.util.List v12 = this.mPackageManager.queryIntentActivities(v11_1, 0);
java.util.Collections.sort(v12, new android.content.pm.ResolveInfo$DisplayNameComparator(this.mPackageManager));
java.util.Iterator v10_0 = v12.iterator();
while (v10_0.hasNext()) {
android.content.pm.ResolveInfo v13_1 = ((android.content.pm.ResolveInfo) v10_0.next());
if (!v2_1.contains(v13_1.activityInfo.packageName)) {
v2_1.add(v13_1.activityInfo.packageName);
}
}
} else {
java.util.List v6 = this.mPackageManager.getInstalledApplications(8192);
java.util.Collections.sort(v6, new android.content.pm.ApplicationInfo$DisplayNameComparator(this.mPackageManager));
java.util.Iterator v10_1 = v6.iterator();
while (v10_1.hasNext()) {
android.content.pm.ApplicationInfo v8_1 = ((android.content.pm.ApplicationInfo) v10_1.next());
if (this.mDevicePolicyManager.isApplicationHidden(this.mAdminComponentName, v8_1.packageName)) {
v2_1.add(v8_1.packageName);
}
}
}
if (!v2_1.isEmpty()) {
int v4;
int v9;
int v5;
com.afwsamples.testdpc.common.AppInfoArrayAdapter v7_1 = new com.afwsamples.testdpc.common.AppInfoArrayAdapter(this.getActivity(), 2131623956, v2_1, 1);
if (!p16) {
v9 = 2131165336;
v4 = 2131165335;
v5 = 2131165334;
} else {
v9 = 2131165482;
v4 = 2131165481;
v5 = 2131165480;
}
new android.app.AlertDialog$Builder(this.getActivity()).setTitle(this.getString(v9)).setAdapter(v7_1, new com.afwsamples.testdpc.policy.PolicyManagementFragment$24(this, v2_1, p16, v4, v5)).show();
} else {
android.app.AlertDialog$Builder v0_21;
if (!p16) {
v0_21 = 2131165333;
} else {
v0_21 = 2131165479;
}
com.afwsamples.testdpc.policy.PolicyManagementFragment v1_8 = new Object[0];
this.showToast(v0_21, v1_8);
}
return;
}
Method com.afwsamples.testdpc.cosu.EnableCosuActivity.startCosuMode()
calling method android.content.Intent.addCategory()
private void startCosuMode()
{
android.content.Intent v1_1 = 0;
String v2 = this.mConfig.getMode();
String[] v0 = this.mConfig.getKioskApps();
if (v2 == null) {
v2 = "default";
}
if (!"custom".equals(v2)) {
if (!"single".equals(v2)) {
v1_1 = new android.content.Intent("android.intent.action.MAIN");
v1_1.addCategory("android.intent.category.HOME");
} else {
if (v0.length != 0) {
v1_1 = this.getPackageManager().getLaunchIntentForPackage(v0[0]);
}
}
} else {
v1_1 = new android.content.Intent(this, com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v1_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", v0);
this.getPackageManager().setComponentEnabledSetting(new android.content.ComponentName(this.getPackageName(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
}
if (v1_1 != null) {
v1_1.addFlags(268435456);
this.startActivity(v1_1);
android.widget.Toast.makeText(this, 2131165455, 1).show();
this.unregisterReceiver(this.mInstallReceiver);
this.unregisterReceiver(this.mDownloadReceiver);
if (this.mHandler.hasMessages(2)) {
android.util.Log.w("CosuSetup", "Download timeout messages remaining on handler thread.");
this.mHandler.removeMessages(2);
}
this.finish();
} else {
android.util.Log.e("CosuSetup", new StringBuilder().append("No launch intent specified. Mode=").append(v2).toString());
this.finishWithFailure();
}
return;
}
Method com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement.provisionManagedProfile()
calling method android.content.Intent.putExtra()
private void provisionManagedProfile()
{
android.accounts.Account v0 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccount(this.getIntent());
android.content.Intent v2_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_PROFILE");
if (android.os.Build$VERSION.SDK_INT < 23) {
v2_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME", this.getPackageName());
} else {
v2_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this));
}
if (v0 != null) {
if (android.os.Build$VERSION.SDK_INT < 22) {
android.widget.Toast.makeText(this, 2131165375, 0).show();
} else {
v2_1.putExtra("android.app.extra.PROVISIONING_ACCOUNT_TO_MIGRATE", v0);
}
}
android.os.PersistableBundle v1_1 = new android.os.PersistableBundle();
com.afwsamples.testdpc.common.LaunchIntentUtil.prepareDeviceAdminExtras(this.getIntent(), v1_1);
v2_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v1_1);
if (v2_1.resolveActivity(this.getPackageManager()) == null) {
android.widget.Toast.makeText(this, 2131165420, 0).show();
} else {
this.startActivityForResult(v2_1, 1);
}
return;
}
Method com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement.provisionDeviceOwner()
calling method android.content.Intent.putExtra()
private void provisionDeviceOwner()
{
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_DEVICE");
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this));
android.os.PersistableBundle v0_1 = new android.os.PersistableBundle();
com.afwsamples.testdpc.common.LaunchIntentUtil.prepareDeviceAdminExtras(this.getIntent(), v0_1);
v1_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v0_1);
if (v1_1.resolveActivity(this.getPackageManager()) == null) {
android.widget.Toast.makeText(this, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 2);
}
return;
}
Method com.afwsamples.testdpc.SetupManagementFragment.provisionManagedProfile()
calling method android.content.Intent.putExtra()
private void provisionManagedProfile()
{
android.app.Activity v0 = this.getActivity();
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_PROFILE");
if (android.os.Build$VERSION.SDK_INT < 23) {
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME", this.getActivity().getPackageName());
} else {
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this.getActivity()));
}
if (v1_1.resolveActivity(v0.getPackageManager()) == null) {
android.widget.Toast.makeText(v0, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 1);
}
return;
}
Method com.afwsamples.testdpc.SetupManagementFragment.provisionDeviceOwner()
calling method android.content.Intent.putExtra()
private void provisionDeviceOwner()
{
android.app.Activity v0 = this.getActivity();
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_DEVICE");
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this.getActivity()));
if (v1_1.resolveActivity(v0.getPackageManager()) == null) {
android.widget.Toast.makeText(v0, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 2);
}
return;
}
Method com.android.setupwizardlib.util.WizardManagerHelper.getNextIntent()
calling method android.content.Intent.putExtra()
public static android.content.Intent getNextIntent(android.content.Intent p3, int p4, android.content.Intent p5)
{
android.content.Intent v0_1 = new android.content.Intent("com.android.wizard.NEXT");
v0_1.putExtra("scriptUri", p3.getStringExtra("scriptUri"));
v0_1.putExtra("actionId", p3.getStringExtra("actionId"));
v0_1.putExtra("com.android.setupwizard.ResultCode", p4);
if ((p5 != null) && (p5.getExtras() != null)) {
v0_1.putExtras(p5.getExtras());
}
v0_1.putExtra("theme", p3.getStringExtra("theme"));
return v0_1;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.startKioskMode()
calling method android.content.Intent.putExtra()
private void startKioskMode(String[] p7)
{
android.content.Intent v0_1 = new android.content.Intent(this.getActivity(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v0_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", p7);
v0_1.addFlags(268435456);
this.mPackageManager.setComponentEnabledSetting(new android.content.ComponentName(this.mPackageName, com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
this.startActivity(v0_1);
this.getActivity().finish();
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.dispatchCaptureIntent()
calling method android.content.Intent.putExtra()
private void dispatchCaptureIntent(String p4, int p5, android.net.Uri p6)
{
android.content.Intent v0_1 = new android.content.Intent(p4);
if (v0_1.resolveActivity(this.mPackageManager) == null) {
Object[] v2_1 = new Object[0];
this.showToast(2131165228, v2_1);
} else {
v0_1.putExtra("output", p6);
this.startActivityForResult(v0_1, p5);
}
return;
}
Method com.afwsamples.testdpc.cosu.EnableCosuActivity.startCosuMode()
calling method android.content.Intent.putExtra()
private void startCosuMode()
{
android.content.Intent v1_1 = 0;
String v2 = this.mConfig.getMode();
String[] v0 = this.mConfig.getKioskApps();
if (v2 == null) {
v2 = "default";
}
if (!"custom".equals(v2)) {
if (!"single".equals(v2)) {
v1_1 = new android.content.Intent("android.intent.action.MAIN");
v1_1.addCategory("android.intent.category.HOME");
} else {
if (v0.length != 0) {
v1_1 = this.getPackageManager().getLaunchIntentForPackage(v0[0]);
}
}
} else {
v1_1 = new android.content.Intent(this, com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v1_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", v0);
this.getPackageManager().setComponentEnabledSetting(new android.content.ComponentName(this.getPackageName(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
}
if (v1_1 != null) {
v1_1.addFlags(268435456);
this.startActivity(v1_1);
android.widget.Toast.makeText(this, 2131165455, 1).show();
this.unregisterReceiver(this.mInstallReceiver);
this.unregisterReceiver(this.mDownloadReceiver);
if (this.mHandler.hasMessages(2)) {
android.util.Log.w("CosuSetup", "Download timeout messages remaining on handler thread.");
this.mHandler.removeMessages(2);
}
this.finish();
} else {
android.util.Log.e("CosuSetup", new StringBuilder().append("No launch intent specified. Mode=").append(v2).toString());
this.finishWithFailure();
}
return;
}
Method com.afwsamples.testdpc.DeviceAdminReceiver.onProfileProvisioningComplete()
calling method android.content.Intent.putExtra()
public void onProfileProvisioningComplete(android.content.Context p16, android.content.Intent p17)
{
android.os.PersistableBundle v7_1 = ((android.os.PersistableBundle) p17.getParcelableExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE"));
android.app.admin.DevicePolicyManager v6_1 = ((android.app.admin.DevicePolicyManager) p16.getSystemService("device_policy"));
String v11 = p16.getPackageName();
boolean v12 = com.afwsamples.testdpc.common.LaunchIntentUtil.isSynchronousAuthLaunch(v7_1);
boolean v5 = com.afwsamples.testdpc.common.LaunchIntentUtil.isCosuLaunch(v7_1);
boolean v9 = v6_1.isProfileOwnerApp(v11);
boolean v8 = v6_1.isDeviceOwnerApp(v11);
if ((v9) || (v8)) {
if (android.os.Build$VERSION.SDK_INT >= 23) {
this.autoGrantRequestedPermissionsToSelf(p16);
}
android.content.Intent v10_1;
if (!v12) {
if (!v9) {
if (!v5) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableDeviceOwnerActivity);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.cosu.EnableCosuActivity);
v10_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v7_1);
}
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableProfileActivity);
}
} else {
String v2 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccountName(v7_1);
if (!v9) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthDeviceOwnerActivity).putExtra("account_name", v2);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthProfileOwnerActivity).putExtra("account_name", v2);
}
}
if ((!v12) && (!v5)) {
android.accounts.Account[] v3 = android.accounts.AccountManager.get(p16).getAccounts();
if ((v3 != null) && (v3.length == 0)) {
android.content.Intent v4_1 = new android.content.Intent(p16, com.afwsamples.testdpc.AddAccountActivity);
v4_1.addFlags(268435456);
v4_1.putExtra("nextActivityIntent", v10_1);
p16.startActivity(v4_1);
return;
}
}
v10_1.addFlags(268435456);
p16.startActivity(v10_1);
} else {
android.util.Log.e("TestDPC", "DeviceAdminReceiver.onProvisioningComplete() invoked, but ownership not assigned");
android.widget.Toast.makeText(p16, 2131165271, 1).show();
}
return;
}
Method android.support.v4.content.WakefulBroadcastReceiver.startWakefulService()
calling method android.content.Intent.putExtra()
public static android.content.ComponentName startWakefulService(android.content.Context p8, android.content.Intent p9)
{
try {
int v1 = android.support.v4.content.WakefulBroadcastReceiver.mNextId;
android.support.v4.content.WakefulBroadcastReceiver.mNextId = (android.support.v4.content.WakefulBroadcastReceiver.mNextId + 1);
} catch (android.util.SparseArray v4_6) {
throw v4_6;
}
if (android.support.v4.content.WakefulBroadcastReceiver.mNextId <= 0) {
android.support.v4.content.WakefulBroadcastReceiver.mNextId = 1;
}
p9.putExtra("android.support.content.wakelockid", v1);
int v0 = p8.startService(p9);
if (v0 != 0) {
android.os.PowerManager$WakeLock v3 = ((android.os.PowerManager) p8.getSystemService("power")).newWakeLock(1, new StringBuilder().append("wake:").append(v0.flattenToShortString()).toString());
v3.setReferenceCounted(0);
v3.acquire(60000);
android.support.v4.content.WakefulBroadcastReceiver.mActiveWakeLocks.put(v1, v3);
} else {
v0 = 0;
}
return v0;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setText()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setText(CharSequence p3)
{
this.mIntent.putExtra("android.intent.extra.TEXT", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setSubject()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setSubject(String p3)
{
this.mIntent.putExtra("android.intent.extra.SUBJECT", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setStream()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setStream(android.net.Uri p3)
{
if (!this.mIntent.getAction().equals("android.intent.action.SEND")) {
this.mIntent.setAction("android.intent.action.SEND");
}
this.mStreams = 0;
this.mIntent.putExtra("android.intent.extra.STREAM", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setHtmlText()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setHtmlText(String p3)
{
this.mIntent.putExtra("android.intent.extra.HTML_TEXT", p3);
if (!this.mIntent.hasExtra("android.intent.extra.TEXT")) {
this.setText(android.text.Html.fromHtml(p3));
}
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setEmailTo()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setEmailTo(String[] p3)
{
if (this.mToAddresses != null) {
this.mToAddresses = 0;
}
this.mIntent.putExtra("android.intent.extra.EMAIL", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setEmailCc()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setEmailCc(String[] p3)
{
this.mIntent.putExtra("android.intent.extra.CC", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.setEmailBcc()
calling method android.content.Intent.putExtra()
public android.support.v4.app.ShareCompat$IntentBuilder setEmailBcc(String[] p3)
{
this.mIntent.putExtra("android.intent.extra.BCC", p3);
return this;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.getIntent()
calling method android.content.Intent.putExtra()
public android.content.Intent getIntent()
{
int v1 = 1;
if (this.mToAddresses != null) {
this.combineArrayExtra("android.intent.extra.EMAIL", this.mToAddresses);
this.mToAddresses = 0;
}
if (this.mCcAddresses != null) {
this.combineArrayExtra("android.intent.extra.CC", this.mCcAddresses);
this.mCcAddresses = 0;
}
if (this.mBccAddresses != null) {
this.combineArrayExtra("android.intent.extra.BCC", this.mBccAddresses);
this.mBccAddresses = 0;
}
if ((this.mStreams == null) || (this.mStreams.size() <= 1)) {
v1 = 0;
}
boolean v0 = this.mIntent.getAction().equals("android.intent.action.SEND_MULTIPLE");
if ((v1 == 0) && (v0)) {
this.mIntent.setAction("android.intent.action.SEND");
if ((this.mStreams == null) || (this.mStreams.isEmpty())) {
this.mIntent.removeExtra("android.intent.extra.STREAM");
} else {
this.mIntent.putExtra("android.intent.extra.STREAM", ((android.os.Parcelable) this.mStreams.get(0)));
}
this.mStreams = 0;
}
if ((v1 != 0) && (!v0)) {
this.mIntent.setAction("android.intent.action.SEND_MULTIPLE");
if ((this.mStreams == null) || (this.mStreams.isEmpty())) {
this.mIntent.removeExtra("android.intent.extra.STREAM");
} else {
this.mIntent.putParcelableArrayListExtra("android.intent.extra.STREAM", this.mStreams);
}
}
return this.mIntent;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.combineArrayExtra()
calling method android.content.Intent.putExtra()
private void combineArrayExtra(String p7, String[] p8)
{
int v2;
android.content.Intent v0 = this.getIntent();
String[] v1 = v0.getStringArrayExtra(p7);
if (v1 == null) {
v2 = 0;
} else {
v2 = v1.length;
}
String[] v3 = new String[(p8.length + v2)];
if (v1 != null) {
System.arraycopy(v1, 0, v3, 0, v2);
}
System.arraycopy(p8, 0, v3, v2, p8.length);
v0.putExtra(p7, v3);
return;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.combineArrayExtra()
calling method android.content.Intent.putExtra()
private void combineArrayExtra(String p6, java.util.ArrayList p7)
{
int v1;
String[] v0 = this.mIntent.getStringArrayExtra(p6);
if (v0 == null) {
v1 = 0;
} else {
v1 = v0.length;
}
String[] v2 = new String[(p7.size() + v1)];
p7.toArray(v2);
if (v0 != null) {
System.arraycopy(v0, 0, v2, p7.size(), v1);
}
this.mIntent.putExtra(p6, v2);
return;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.<init>()
calling method android.content.Intent.putExtra()
private ShareCompat$IntentBuilder(android.app.Activity p4)
{
this.mActivity = p4;
this.mIntent = new android.content.Intent().setAction("android.intent.action.SEND");
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_PACKAGE", p4.getPackageName());
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_ACTIVITY", p4.getComponentName());
this.mIntent.addFlags(524288);
return;
}
Method android.support.v4.app.RemoteInputCompatJellybean.addResultsToIntent()
calling method android.content.Intent.putExtra()
static void addResultsToIntent(android.support.v4.app.RemoteInputCompatBase$RemoteInput[] p8, android.content.Intent p9, android.os.Bundle p10)
{
android.os.Bundle v6_1 = new android.os.Bundle();
int v3 = p8.length;
int v2 = 0;
while (v2 < v3) {
android.support.v4.app.RemoteInputCompatBase$RemoteInput v4 = p8[v2];
CharSequence v5_0 = p10.get(v4.getResultKey());
if ((v5_0 instanceof CharSequence)) {
v6_1.putCharSequence(v4.getResultKey(), ((CharSequence) v5_0));
}
v2++;
}
android.content.Intent v1_1 = new android.content.Intent();
v1_1.putExtra("android.remoteinput.resultsData", v6_1);
p9.setClipData(android.content.ClipData.newIntent("android.remoteinput.results", v1_1));
return;
}
Method com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement.provisionManagedProfile()
calling method android.content.Intent.<init>()
private void provisionManagedProfile()
{
android.accounts.Account v0 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccount(this.getIntent());
android.content.Intent v2_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_PROFILE");
if (android.os.Build$VERSION.SDK_INT < 23) {
v2_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME", this.getPackageName());
} else {
v2_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this));
}
if (v0 != null) {
if (android.os.Build$VERSION.SDK_INT < 22) {
android.widget.Toast.makeText(this, 2131165375, 0).show();
} else {
v2_1.putExtra("android.app.extra.PROVISIONING_ACCOUNT_TO_MIGRATE", v0);
}
}
android.os.PersistableBundle v1_1 = new android.os.PersistableBundle();
com.afwsamples.testdpc.common.LaunchIntentUtil.prepareDeviceAdminExtras(this.getIntent(), v1_1);
v2_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v1_1);
if (v2_1.resolveActivity(this.getPackageManager()) == null) {
android.widget.Toast.makeText(this, 2131165420, 0).show();
} else {
this.startActivityForResult(v2_1, 1);
}
return;
}
Method com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement.provisionDeviceOwner()
calling method android.content.Intent.<init>()
private void provisionDeviceOwner()
{
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_DEVICE");
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this));
android.os.PersistableBundle v0_1 = new android.os.PersistableBundle();
com.afwsamples.testdpc.common.LaunchIntentUtil.prepareDeviceAdminExtras(this.getIntent(), v0_1);
v1_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v0_1);
if (v1_1.resolveActivity(this.getPackageManager()) == null) {
android.widget.Toast.makeText(this, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 2);
}
return;
}
Method com.afwsamples.testdpc.profilepolicy.addsystemapps.EnableSystemAppsByIntentFragment.getIntent()
calling method android.content.Intent.<init>()
protected android.content.Intent getIntent()
{
if ((!this.mActions.isEmpty()) || (!this.mCategories.isEmpty())) {
int v2_0 = new android.content.Intent();
if (!this.mActions.isEmpty()) {
v2_0.setAction(((String) this.mActions.iterator().next()));
}
java.util.Iterator v1 = this.mCategories.iterator();
while (v1.hasNext()) {
v2_0.addCategory(((String) v1.next()));
}
} else {
v2_0 = 0;
}
return v2_0;
}
Method com.afwsamples.testdpc.SetupManagementFragment.provisionManagedProfile()
calling method android.content.Intent.<init>()
private void provisionManagedProfile()
{
android.app.Activity v0 = this.getActivity();
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_PROFILE");
if (android.os.Build$VERSION.SDK_INT < 23) {
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME", this.getActivity().getPackageName());
} else {
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this.getActivity()));
}
if (v1_1.resolveActivity(v0.getPackageManager()) == null) {
android.widget.Toast.makeText(v0, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 1);
}
return;
}
Method com.afwsamples.testdpc.SetupManagementFragment.provisionDeviceOwner()
calling method android.content.Intent.<init>()
private void provisionDeviceOwner()
{
android.app.Activity v0 = this.getActivity();
android.content.Intent v1_1 = new android.content.Intent("android.app.action.PROVISION_MANAGED_DEVICE");
v1_1.putExtra("android.app.extra.PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME", com.afwsamples.testdpc.DeviceAdminReceiver.getComponentName(this.getActivity()));
if (v1_1.resolveActivity(v0.getPackageManager()) == null) {
android.widget.Toast.makeText(v0, 2131165420, 0).show();
} else {
this.startActivityForResult(v1_1, 2);
}
return;
}
Method android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase.<init>()
calling method android.content.Intent.<init>()
public MediaSessionCompat$MediaSessionImplBase(android.content.Context p5, String p6, android.content.ComponentName p7, android.app.PendingIntent p8)
{
this.mLock = new Object();
this.mControllerCallbacks = new android.os.RemoteCallbackList();
this.mDestroyed = 0;
this.mIsActive = 0;
this.mIsRccRegistered = 0;
this.mIsMbrRegistered = 0;
this.mVolumeCallback = new android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$1(this);
if (p7 != null) {
if (p8 == null) {
android.content.Intent v0_1 = new android.content.Intent("android.intent.action.MEDIA_BUTTON");
v0_1.setComponent(p7);
p8 = android.app.PendingIntent.getBroadcast(p5, 0, v0_1, 0);
}
this.mContext = p5;
this.mPackageName = p5.getPackageName();
this.mAudioManager = ((android.media.AudioManager) p5.getSystemService("audio"));
this.mTag = p6;
this.mComponentName = p7;
this.mMediaButtonEventReceiver = p8;
this.mStub = new android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$MediaSessionStub(this);
this.mToken = new android.support.v4.media.session.MediaSessionCompat$Token(this.mStub);
this.mHandler = new android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase$MessageHandler(this, android.os.Looper.myLooper());
this.mRatingType = 0;
this.mVolumeType = 1;
this.mLocalStream = 3;
if (android.os.Build$VERSION.SDK_INT < 14) {
this.mRccObj = 0;
} else {
this.mRccObj = android.support.v4.media.session.MediaSessionCompatApi14.createRemoteControlClient(p8);
}
return;
} else {
throw new IllegalArgumentException("MediaButtonReceiver component may not be null.");
}
}
Method android.support.v4.content.IntentCompat$IntentCompatImplBase.makeMainSelectorActivity()
calling method android.content.Intent.<init>()
public android.content.Intent makeMainSelectorActivity(String p2, String p3)
{
android.content.Intent v0_1 = new android.content.Intent(p2);
v0_1.addCategory(p3);
return v0_1;
}
Method android.support.v4.content.IntentCompat$IntentCompatImplBase.makeMainActivity()
calling method android.content.Intent.<init>()
public android.content.Intent makeMainActivity(android.content.ComponentName p3)
{
android.content.Intent v0_1 = new android.content.Intent("android.intent.action.MAIN");
v0_1.setComponent(p3);
v0_1.addCategory("android.intent.category.LAUNCHER");
return v0_1;
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplJellybean.getPendingIntent()
calling method android.content.Intent.<init>()
public android.app.PendingIntent getPendingIntent(android.content.Context p4, android.content.Intent[] p5, int p6, int p7, android.os.Bundle p8)
{
p5[0] = new android.content.Intent(p5[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilderJellybean.getActivitiesPendingIntent(p4, p6, p5, p7, p8);
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplHoneycomb.getPendingIntent()
calling method android.content.Intent.<init>()
public android.app.PendingIntent getPendingIntent(android.content.Context p4, android.content.Intent[] p5, int p6, int p7, android.os.Bundle p8)
{
p5[0] = new android.content.Intent(p5[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilderHoneycomb.getActivitiesPendingIntent(p4, p6, p5, p7);
}
Method android.support.v4.app.TaskStackBuilder$TaskStackBuilderImplBase.getPendingIntent()
calling method android.content.Intent.<init>()
public android.app.PendingIntent getPendingIntent(android.content.Context p3, android.content.Intent[] p4, int p5, int p6, android.os.Bundle p7)
{
android.content.Intent v0_1 = new android.content.Intent(p4[(p4.length - 1)]);
v0_1.addFlags(268435456);
return android.app.PendingIntent.getActivity(p3, p5, v0_1, p6);
}
Method android.support.v4.app.NavUtils$NavUtilsImplBase.getParentActivityIntent()
calling method android.content.Intent.<init>()
public android.content.Intent getParentActivityIntent(android.app.Activity p9)
{
android.content.Intent v2 = 0;
String v3 = android.support.v4.app.NavUtils.getParentActivityName(p9);
if (v3 != null) {
android.content.ComponentName v4_1 = new android.content.ComponentName(p9, v3);
try {
if (android.support.v4.app.NavUtils.getParentActivityName(p9, v4_1) != null) {
v2 = new android.content.Intent().setComponent(v4_1);
} else {
v2 = android.support.v4.content.IntentCompat.makeMainActivity(v4_1);
}
} catch (android.content.pm.PackageManager$NameNotFoundException v0) {
android.util.Log.e("NavUtils", new StringBuilder().append("getParentActivityIntent: bad parentActivityName \'").append(v3).append("\' in manifest").toString());
}
}
return v2;
}
Method com.android.setupwizardlib.util.WizardManagerHelper.getNextIntent()
calling method android.content.Intent.<init>()
public static android.content.Intent getNextIntent(android.content.Intent p3, int p4, android.content.Intent p5)
{
android.content.Intent v0_1 = new android.content.Intent("com.android.wizard.NEXT");
v0_1.putExtra("scriptUri", p3.getStringExtra("scriptUri"));
v0_1.putExtra("actionId", p3.getStringExtra("actionId"));
v0_1.putExtra("com.android.setupwizard.ResultCode", p4);
if ((p5 != null) && (p5.getExtras() != null)) {
v0_1.putExtras(p5.getExtras());
}
v0_1.putExtra("theme", p3.getStringExtra("theme"));
return v0_1;
}
Method com.android.setupwizardlib.util.Partner.get()
calling method android.content.Intent.<init>()
public static declared_synchronized com.android.setupwizardlib.util.Partner get(android.content.Context p11)
{
try {
if (!com.android.setupwizardlib.util.Partner.sSearched) {
android.content.pm.PackageManager v5 = p11.getPackageManager();
java.util.Iterator v2 = v5.queryBroadcastReceivers(new android.content.Intent("com.android.setupwizard.action.PARTNER_CUSTOMIZATION"), 0).iterator();
while (v2.hasNext()) {
android.content.pm.ResolveInfo v3_1 = ((android.content.pm.ResolveInfo) v2.next());
if (v3_1.activityInfo != null) {
android.content.pm.ApplicationInfo v0 = v3_1.activityInfo.applicationInfo;
if ((v0.flags & 1) != 0) {
try {
com.android.setupwizardlib.util.Partner.sPartner = new com.android.setupwizardlib.util.Partner(v0.packageName, v5.getResourcesForApplication(v0));
break;
} catch (android.content.pm.PackageManager$NameNotFoundException v1) {
android.util.Log.w("(SUW) Partner", new StringBuilder().append("Failed to find resources for ").append(v0.packageName).toString());
}
}
}
}
com.android.setupwizardlib.util.Partner.sSearched = 1;
}
} catch (String v7_11) {
throw v7_11;
}
return com.android.setupwizardlib.util.Partner.sPartner;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.startKioskMode()
calling method android.content.Intent.<init>()
private void startKioskMode(String[] p7)
{
android.content.Intent v0_1 = new android.content.Intent(this.getActivity(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v0_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", p7);
v0_1.addFlags(268435456);
this.mPackageManager.setComponentEnabledSetting(new android.content.ComponentName(this.mPackageName, com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
this.startActivity(v0_1);
this.getActivity().finish();
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.showManageLockTaskListPrompt()
calling method android.content.Intent.<init>()
private void showManageLockTaskListPrompt(int p8, com.afwsamples.testdpc.policy.PolicyManagementFragment$ManageLockTaskListCallback p9)
{
if ((this.getActivity() != null) && (!this.getActivity().isFinishing())) {
android.content.Intent v1_0 = new android.content.Intent("android.intent.action.MAIN");
v1_0.addCategory("android.intent.category.LAUNCHER");
java.util.List v3 = this.mPackageManager.queryIntentActivities(v1_0, 0);
if (!v3.isEmpty()) {
java.util.Collections.sort(v3, new android.content.pm.ResolveInfo$DisplayNameComparator(this.mPackageManager));
com.afwsamples.testdpc.policy.locktask.LockTaskAppInfoArrayAdapter v0_1 = new com.afwsamples.testdpc.policy.locktask.LockTaskAppInfoArrayAdapter(this.getActivity(), 2131623956, v3);
android.widget.ListView v2_1 = new android.widget.ListView(this.getActivity());
v2_1.setAdapter(v0_1);
v2_1.setOnItemClickListener(new com.afwsamples.testdpc.policy.PolicyManagementFragment$3(this, v0_1));
new android.app.AlertDialog$Builder(this.getActivity()).setTitle(this.getString(p8)).setView(v2_1).setPositiveButton(17039370, new com.afwsamples.testdpc.policy.PolicyManagementFragment$5(this, v0_1, p9)).setNegativeButton(17039360, new com.afwsamples.testdpc.policy.PolicyManagementFragment$4(this)).show();
} else {
int v5_7 = new Object[0];
this.showToast(2131165402, v5_7);
}
}
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.showHideAppsPrompt()
calling method android.content.Intent.<init>()
private void showHideAppsPrompt(boolean p16)
{
java.util.ArrayList v2_1 = new java.util.ArrayList();
if (!p16) {
android.content.Intent v11_1 = new android.content.Intent("android.intent.action.MAIN");
v11_1.addCategory("android.intent.category.LAUNCHER");
java.util.List v12 = this.mPackageManager.queryIntentActivities(v11_1, 0);
java.util.Collections.sort(v12, new android.content.pm.ResolveInfo$DisplayNameComparator(this.mPackageManager));
java.util.Iterator v10_0 = v12.iterator();
while (v10_0.hasNext()) {
android.content.pm.ResolveInfo v13_1 = ((android.content.pm.ResolveInfo) v10_0.next());
if (!v2_1.contains(v13_1.activityInfo.packageName)) {
v2_1.add(v13_1.activityInfo.packageName);
}
}
} else {
java.util.List v6 = this.mPackageManager.getInstalledApplications(8192);
java.util.Collections.sort(v6, new android.content.pm.ApplicationInfo$DisplayNameComparator(this.mPackageManager));
java.util.Iterator v10_1 = v6.iterator();
while (v10_1.hasNext()) {
android.content.pm.ApplicationInfo v8_1 = ((android.content.pm.ApplicationInfo) v10_1.next());
if (this.mDevicePolicyManager.isApplicationHidden(this.mAdminComponentName, v8_1.packageName)) {
v2_1.add(v8_1.packageName);
}
}
}
if (!v2_1.isEmpty()) {
int v4;
int v5;
int v9;
com.afwsamples.testdpc.common.AppInfoArrayAdapter v7_1 = new com.afwsamples.testdpc.common.AppInfoArrayAdapter(this.getActivity(), 2131623956, v2_1, 1);
if (!p16) {
v9 = 2131165336;
v4 = 2131165335;
v5 = 2131165334;
} else {
v9 = 2131165482;
v4 = 2131165481;
v5 = 2131165480;
}
new android.app.AlertDialog$Builder(this.getActivity()).setTitle(this.getString(v9)).setAdapter(v7_1, new com.afwsamples.testdpc.policy.PolicyManagementFragment$24(this, v2_1, p16, v4, v5)).show();
} else {
android.app.AlertDialog$Builder v0_21;
if (!p16) {
v0_21 = 2131165333;
} else {
v0_21 = 2131165479;
}
com.afwsamples.testdpc.policy.PolicyManagementFragment v1_8 = new Object[0];
this.showToast(v0_21, v1_8);
}
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.showFileViewerForImportingCertificate()
calling method android.content.Intent.<init>()
private void showFileViewerForImportingCertificate(int p4)
{
android.content.Intent v0_1 = new android.content.Intent("android.intent.action.GET_CONTENT");
v0_1.setTypeAndNormalize("*/*");
try {
this.startActivityForResult(v0_1, p4);
} catch (android.content.ActivityNotFoundException v1) {
v1.printStackTrace();
}
return;
}
Method com.afwsamples.testdpc.policy.PolicyManagementFragment.dispatchCaptureIntent()
calling method android.content.Intent.<init>()
private void dispatchCaptureIntent(String p4, int p5, android.net.Uri p6)
{
android.content.Intent v0_1 = new android.content.Intent(p4);
if (v0_1.resolveActivity(this.mPackageManager) == null) {
Object[] v2_1 = new Object[0];
this.showToast(2131165228, v2_1);
} else {
v0_1.putExtra("output", p6);
this.startActivityForResult(v0_1, p5);
}
return;
}
Method com.afwsamples.testdpc.cosu.EnableCosuActivity.startCosuMode()
calling method android.content.Intent.<init>()
private void startCosuMode()
{
android.content.Intent v1_1 = 0;
String v2 = this.mConfig.getMode();
String[] v0 = this.mConfig.getKioskApps();
if (v2 == null) {
v2 = "default";
}
if (!"custom".equals(v2)) {
if (!"single".equals(v2)) {
v1_1 = new android.content.Intent("android.intent.action.MAIN");
v1_1.addCategory("android.intent.category.HOME");
} else {
if (v0.length != 0) {
v1_1 = this.getPackageManager().getLaunchIntentForPackage(v0[0]);
}
}
} else {
v1_1 = new android.content.Intent(this, com.afwsamples.testdpc.policy.locktask.KioskModeActivity);
v1_1.putExtra("com.afwsamples.testdpc.policy.locktask.LOCKED_APP_PACKAGE_LIST", v0);
this.getPackageManager().setComponentEnabledSetting(new android.content.ComponentName(this.getPackageName(), com.afwsamples.testdpc.policy.locktask.KioskModeActivity.getName()), 1, 1);
}
if (v1_1 != null) {
v1_1.addFlags(268435456);
this.startActivity(v1_1);
android.widget.Toast.makeText(this, 2131165455, 1).show();
this.unregisterReceiver(this.mInstallReceiver);
this.unregisterReceiver(this.mDownloadReceiver);
if (this.mHandler.hasMessages(2)) {
android.util.Log.w("CosuSetup", "Download timeout messages remaining on handler thread.");
this.mHandler.removeMessages(2);
}
this.finish();
} else {
android.util.Log.e("CosuSetup", new StringBuilder().append("No launch intent specified. Mode=").append(v2).toString());
this.finishWithFailure();
}
return;
}
Method com.afwsamples.testdpc.cosu.CosuUtils.createIntentSender()
calling method android.content.Intent.<init>()
private static android.content.IntentSender createIntentSender(android.content.Context p3, int p4)
{
return android.app.PendingIntent.getBroadcast(p3, p4, new android.content.Intent("com.afwsamples.testdpc.INSTALL_COMPLETE"), 0).getIntentSender();
}
Method com.afwsamples.testdpc.LaunchActivity.onCreate()
calling method android.content.Intent.<init>()
protected void onCreate(android.os.Bundle p5)
{
super.onCreate(p5);
if (p5 == null) {
if (!com.afwsamples.testdpc.common.ProvisioningStateUtil.isManagedByTestDPC(this)) {
if (!com.afwsamples.testdpc.common.ProvisioningStateUtil.isManaged(this)) {
if (!com.afwsamples.testdpc.common.LaunchIntentUtil.isSynchronousAuthLaunch(this.getIntent())) {
this.startActivity(new android.content.Intent(this, com.afwsamples.testdpc.PolicyManagementActivity));
this.finish();
} else {
this.startActivityForResult(new android.content.Intent(this, com.afwsamples.testdpc.syncauth.SetupSyncAuthManagement).putExtras(this.getIntent().getExtras()), 1);
}
} else {
android.widget.Toast.makeText(this, this.getString(2131165405), 1).show();
this.setResult(0);
this.finish();
}
} else {
this.startActivity(new android.content.Intent(this, com.afwsamples.testdpc.PolicyManagementActivity));
this.finish();
}
} else {
this.finish();
}
return;
}
Method com.afwsamples.testdpc.DeviceAdminReceiver.onProfileProvisioningComplete()
calling method android.content.Intent.<init>()
public void onProfileProvisioningComplete(android.content.Context p16, android.content.Intent p17)
{
android.os.PersistableBundle v7_1 = ((android.os.PersistableBundle) p17.getParcelableExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE"));
android.app.admin.DevicePolicyManager v6_1 = ((android.app.admin.DevicePolicyManager) p16.getSystemService("device_policy"));
String v11 = p16.getPackageName();
boolean v12 = com.afwsamples.testdpc.common.LaunchIntentUtil.isSynchronousAuthLaunch(v7_1);
boolean v5 = com.afwsamples.testdpc.common.LaunchIntentUtil.isCosuLaunch(v7_1);
boolean v9 = v6_1.isProfileOwnerApp(v11);
boolean v8 = v6_1.isDeviceOwnerApp(v11);
if ((v9) || (v8)) {
if (android.os.Build$VERSION.SDK_INT >= 23) {
this.autoGrantRequestedPermissionsToSelf(p16);
}
android.content.Intent v10_1;
if (!v12) {
if (!v9) {
if (!v5) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableDeviceOwnerActivity);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.cosu.EnableCosuActivity);
v10_1.putExtra("android.app.extra.PROVISIONING_ADMIN_EXTRAS_BUNDLE", v7_1);
}
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.EnableProfileActivity);
}
} else {
String v2 = com.afwsamples.testdpc.common.LaunchIntentUtil.getAddedAccountName(v7_1);
if (!v9) {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthDeviceOwnerActivity).putExtra("account_name", v2);
} else {
v10_1 = new android.content.Intent(p16, com.afwsamples.testdpc.syncauth.FinishSyncAuthProfileOwnerActivity).putExtra("account_name", v2);
}
}
if ((!v12) && (!v5)) {
android.accounts.Account[] v3 = android.accounts.AccountManager.get(p16).getAccounts();
if ((v3 != null) && (v3.length == 0)) {
android.content.Intent v4_1 = new android.content.Intent(p16, com.afwsamples.testdpc.AddAccountActivity);
v4_1.addFlags(268435456);
v4_1.putExtra("nextActivityIntent", v10_1);
p16.startActivity(v4_1);
return;
}
}
v10_1.addFlags(268435456);
p16.startActivity(v10_1);
} else {
android.util.Log.e("TestDPC", "DeviceAdminReceiver.onProvisioningComplete() invoked, but ownership not assigned");
android.widget.Toast.makeText(p16, 2131165271, 1).show();
}
return;
}
Method android.support.v4.media.TransportMediatorJellybeanMR2.<init>()
calling method android.content.Intent.<init>()
public TransportMediatorJellybeanMR2(android.content.Context p3, android.media.AudioManager p4, android.view.View p5, android.support.v4.media.TransportMediatorCallback p6)
{
this.mWindowAttachListener = new android.support.v4.media.TransportMediatorJellybeanMR2$1(this);
this.mWindowFocusListener = new android.support.v4.media.TransportMediatorJellybeanMR2$2(this);
this.mMediaButtonReceiver = new android.support.v4.media.TransportMediatorJellybeanMR2$3(this);
this.mAudioFocusChangeListener = new android.support.v4.media.TransportMediatorJellybeanMR2$4(this);
this.mPlayState = 0;
this.mContext = p3;
this.mAudioManager = p4;
this.mTargetView = p5;
this.mTransportCallback = p6;
this.mReceiverAction = new StringBuilder().append(p3.getPackageName()).append(":transport:").append(System.identityHashCode(this)).toString();
this.mIntent = new android.content.Intent(this.mReceiverAction);
this.mIntent.setPackage(p3.getPackageName());
this.mReceiverFilter = new android.content.IntentFilter();
this.mReceiverFilter.addAction(this.mReceiverAction);
this.mTargetView.getViewTreeObserver().addOnWindowAttachListener(this.mWindowAttachListener);
this.mTargetView.getViewTreeObserver().addOnWindowFocusChangeListener(this.mWindowFocusListener);
return;
}
Method android.support.v4.app.TaskStackBuilder.startActivities()
calling method android.content.Intent.<init>()
public void startActivities(android.os.Bundle p6)
{
if (!this.mIntents.isEmpty()) {
int v3_5 = new android.content.Intent[this.mIntents.size()];
android.content.Intent[] v0_1 = ((android.content.Intent[]) this.mIntents.toArray(v3_5));
v0_1[0] = new android.content.Intent(v0_1[0]).addFlags(268484608);
if (!android.support.v4.content.ContextCompat.startActivities(this.mSourceContext, v0_1, p6)) {
android.content.Intent v1_1 = new android.content.Intent(v0_1[(v0_1.length - 1)]);
v1_1.addFlags(268435456);
this.mSourceContext.startActivity(v1_1);
}
return;
} else {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot startActivities");
}
}
Method android.support.v4.app.TaskStackBuilder.getPendingIntent()
calling method android.content.Intent.<init>()
public android.app.PendingIntent getPendingIntent(int p7, int p8, android.os.Bundle p9)
{
if (!this.mIntents.isEmpty()) {
android.content.Context v1_6 = new android.content.Intent[this.mIntents.size()];
android.content.Intent[] v2_1 = ((android.content.Intent[]) this.mIntents.toArray(v1_6));
v2_1[0] = new android.content.Intent(v2_1[0]).addFlags(268484608);
return android.support.v4.app.TaskStackBuilder.IMPL.getPendingIntent(this.mSourceContext, v2_1, p7, p8, p9);
} else {
throw new IllegalStateException("No intents added to TaskStackBuilder; cannot getPendingIntent");
}
}
Method android.support.v4.app.TaskStackBuilder.getIntents()
calling method android.content.Intent.<init>()
public android.content.Intent[] getIntents()
{
android.content.Intent[] v1 = new android.content.Intent[this.mIntents.size()];
if (v1.length != 0) {
v1[0] = new android.content.Intent(((android.content.Intent) this.mIntents.get(0))).addFlags(268484608);
int v0 = 1;
while (v0 < v1.length) {
v1[v0] = new android.content.Intent(((android.content.Intent) this.mIntents.get(v0)));
v0++;
}
}
return v1;
}
Method android.support.v4.app.ShareCompat$IntentBuilder.<init>()
calling method android.content.Intent.<init>()
private ShareCompat$IntentBuilder(android.app.Activity p4)
{
this.mActivity = p4;
this.mIntent = new android.content.Intent().setAction("android.intent.action.SEND");
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_PACKAGE", p4.getPackageName());
this.mIntent.putExtra("android.support.v4.app.EXTRA_CALLING_ACTIVITY", p4.getComponentName());
this.mIntent.addFlags(524288);
return;
}
Method android.support.v4.app.RemoteInputCompatJellybean.addResultsToIntent()
calling method android.content.Intent.<init>()
static void addResultsToIntent(android.support.v4.app.RemoteInputCompatBase$RemoteInput[] p8, android.content.Intent p9, android.os.Bundle p10)
{
android.os.Bundle v6_1 = new android.os.Bundle();
int v3 = p8.length;
int v2 = 0;
while (v2 < v3) {
android.support.v4.app.RemoteInputCompatBase$RemoteInput v4 = p8[v2];
CharSequence v5_0 = p10.get(v4.getResultKey());
if ((v5_0 instanceof CharSequence)) {
v6_1.putCharSequence(v4.getResultKey(), ((CharSequence) v5_0));
}
v2++;
}
android.content.Intent v1_1 = new android.content.Intent();
v1_1.putExtra("android.remoteinput.resultsData", v6_1);
p9.setClipData(android.content.ClipData.newIntent("android.remoteinput.results", v1_1));
return;
}
Method android.support.v4.app.NotificationManagerCompat$SideChannelManager.updateListenerMap()
calling method android.content.Intent.<init>()
private void updateListenerMap()
{
java.util.Set v2 = android.support.v4.app.NotificationManagerCompat.getEnabledListenerPackages(this.mContext);
if (!v2.equals(this.mCachedEnabledPackages)) {
this.mCachedEnabledPackages = v2;
java.util.List v7 = this.mContext.getPackageManager().queryIntentServices(new android.content.Intent().setAction("android.support.BIND_NOTIFICATION_SIDE_CHANNEL"), 4);
java.util.HashSet v1_1 = new java.util.HashSet();
java.util.Iterator v4_0 = v7.iterator();
while (v4_0.hasNext()) {
android.content.pm.ResolveInfo v6_1 = ((android.content.pm.ResolveInfo) v4_0.next());
if (v2.contains(v6_1.serviceInfo.packageName)) {
android.content.ComponentName v0_1 = new android.content.ComponentName(v6_1.serviceInfo.packageName, v6_1.serviceInfo.name);
if (v6_1.serviceInfo.permission == null) {
v1_1.add(v0_1);
} else {
android.util.Log.w("NotifManCompat", new StringBuilder().append("Permission present on component ").append(v0_1).append(", not adding listener record.").toString());
}
}
}
java.util.Iterator v4_1 = v1_1.iterator();
while (v4_1.hasNext()) {
android.content.ComponentName v0_3 = ((android.content.ComponentName) v4_1.next());
if (!this.mRecordMap.containsKey(v0_3)) {
if (android.util.Log.isLoggable("NotifManCompat", 3)) {
android.util.Log.d("NotifManCompat", new StringBuilder().append("Adding listener record for ").append(v0_3).toString());
}
this.mRecordMap.put(v0_3, new android.support.v4.app.NotificationManagerCompat$SideChannelManager$ListenerRecord(v0_3));
}
}
java.util.Iterator v5 = this.mRecordMap.entrySet().iterator();
while (v5.hasNext()) {
java.util.Map$Entry v3_1 = ((java.util.Map$Entry) v5.next());
if (!v1_1.contains(v3_1.getKey())) {
if (android.util.Log.isLoggable("NotifManCompat", 3)) {
android.util.Log.d("NotifManCompat", new StringBuilder().append("Removing listener record for ").append(v3_1.getKey()).toString());
}
this.ensureServiceUnbound(((android.support.v4.app.NotificationManagerCompat$SideChannelManager$ListenerRecord) v3_1.getValue()));
v5.remove();
}
}
}
return;
}
Method android.support.v4.app.NotificationManagerCompat$SideChannelManager.ensureServiceBound()
calling method android.content.Intent.<init>()
private boolean ensureServiceBound(android.support.v4.app.NotificationManagerCompat$SideChannelManager$ListenerRecord p5)
{
boolean v1_7;
if (!p5.bound) {
p5.bound = this.mContext.bindService(new android.content.Intent("android.support.BIND_NOTIFICATION_SIDE_CHANNEL").setComponent(p5.componentName), this, android.support.v4.app.NotificationManagerCompat.access$000());
if (!p5.bound) {
android.util.Log.w("NotifManCompat", new StringBuilder().append("Unable to bind to listener ").append(p5.componentName).toString());
this.mContext.unbindService(this);
} else {
p5.retryCount = 0;
}
v1_7 = p5.bound;
} else {
v1_7 = 1;
}
return v1_7;
}
Method android.support.v4.app.NavUtils.getParentActivityIntent()
calling method android.content.Intent.<init>()
public static android.content.Intent getParentActivityIntent(android.content.Context p5, Class p6)
{
android.content.Intent v2;
String v1 = android.support.v4.app.NavUtils.getParentActivityName(p5, new android.content.ComponentName(p5, p6));
if (v1 != null) {
android.content.ComponentName v3_1 = new android.content.ComponentName(p5, v1);
if (android.support.v4.app.NavUtils.getParentActivityName(p5, v3_1) != null) {
v2 = new android.content.Intent().setComponent(v3_1);
} else {
v2 = android.support.v4.content.IntentCompat.makeMainActivity(v3_1);
}
} else {
v2 = 0;
}
return v2;
}
Method android.support.v4.app.NavUtils.getParentActivityIntent()
calling method android.content.Intent.<init>()
public static android.content.Intent getParentActivityIntent(android.content.Context p5, android.content.ComponentName p6)
{
android.content.Intent v2;
String v1 = android.support.v4.app.NavUtils.getParentActivityName(p5, p6);
if (v1 != null) {
android.content.ComponentName v3_1 = new android.content.ComponentName(p6.getPackageName(), v1);
if (android.support.v4.app.NavUtils.getParentActivityName(p5, v3_1) != null) {
v2 = new android.content.Intent().setComponent(v3_1);
} else {
v2 = android.support.v4.content.IntentCompat.makeMainActivity(v3_1);
}
} else {
v2 = 0;
}
return v2;
}