[Android General] ricci206:
Dual Messenger A 12:​

Decompile DAAGENT.apk

smali\com\samsung\android\da\daagent\activity\DualAppActivity.smali

search:

.method private getAvailableApps()Ljava/util/ArrayList;

.locals 9

.annotation system Ldalvik/annotation/Signature;

value = {

"()",

"Ljava/util/ArrayList<",

"Lcom/samsung/android/da/daagent/activity/DualAppActivity$DualAppList;",

">;"

}

.end annotation

new-instance v0, Ljava/util/ArrayList;

invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

### delete this iget-object v1, p0, Lcom/samsung/android/da/daagent/activity/DualAppActivity;->mContext:Landroid/content/Context;

##### delete this invoke-static {v1}, Lcom/samsung/android/da/daagent/fwwrapper/PmWrapper;->getPossibleDualAppPackages(Landroid/content/Context;)Ljava/util/ArrayList;

### delete this invoke-direct {p0}, Lcom/samsung/android/da/daagent/activity/DualAppActivity;->getPossibleDualAppPackages()Ljava/util/ArrayList;

move-result-object v1

-------

search the method:

.method private getDualApps()Ljava/util/ArrayList;

add this method after this

.method private getPossibleDualAppPackages()Ljava/util/ArrayList;

.locals 12

.annotation system Ldalvik/annotation/Signature;

value = {

"(",

"Landroid/content/Context;",

")",

"Ljava/util/ArrayList",

"<",

"Ljava/lang/String;",

">;"

}

.end annotation

invoke-static {}, Lcom/samsung/android/da/daagent/utils/DAUtility;->getDualAppProfileId()I

const/4 v9, 0x0

new-instance v2, Ljava/util/ArrayList;

invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

iget-object v0, p0, Lcom/samsung/android/da/daagent/activity/DualAppActivity;->mContext:Landroid/content/Context;

invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v5

if-nez v5, :cond_0

const-string/jumbo v7, "DualAppActivity"

const-string/jumbo v8, "PackageManager is null"

invoke-static {v7, v8}, Lcom/samsung/android/da/daagent/utils/Log;->d(Ljava/lang/String;Ljava/lang/String;)V

return-object v9

:cond_0

const/4 v7, 0x0

invoke-virtual {v5, v7}, Landroid/content/pm/PackageManager;->getInstalledApplications(I)Ljava/util/List;

move-result-object v3

invoke-interface {v3}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

move-result-object v1

if-nez v1, :cond_1

:cond_1

:goto_0

invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

move-result v9

if-eqz v9, :cond_2

invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

move-result-object v0

check-cast v0, Landroid/content/pm/ApplicationInfo;

iget v10, v0, Landroid/content/pm/ApplicationInfo;->flags:I

and-int/lit8 v10, v10, 0x1

if-nez v10, :cond_1

iget-object v9, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

iget-boolean v9, v0, Landroid/content/pm/ApplicationInfo;->enabled:Z

if-eqz v9, :cond_1

iget-object v9, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

invoke-virtual {v2, v9}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

goto :goto_0

:cond_2

invoke-static {}, Lcom/samsung/android/da/daagent/utils/DAUtility;->getDualAppProfileId()I

return-object v2

.end method

----------------

smali\com\samsung\android\da\daagent\provider\DualAppDBHelper.smali

search the method:

.method public getRebootAfterFotaS()I

and delete it completely

search the method:

.method public setRebootAfterFotaS(I)J

and delete it completely

enjoy