Hello guys,
i m going to explian a new guide on how to exclude apps from TW [samsung] task manager.....
Basically, this is the first guide of its kind....[may be
]
Many questions have been asked like ---->
Q.) How to hide launcher from active apps on Task Manager ?
Q.) Exclude app from native task manager ??
Q.) Exclude apps from closing with built-in memorymanager ??
Q.) Disble TaskManager from closing certain apps ??
Q.) Exclude an app from native taskmanager ??
Q.) Samsung task manager kills setcpu !!
Q.) Excluding a task from the task manager ??
and many more questions but not a single answer for these questions But now the answer will be given today --->
Note : this is only for rom developers [ not for noobs ]
Requirement :-->
1.) Apktool/APK Multitools/or any similar program
2.) Notepad++ / notepad / or any similar program
3.) JobManager.apk [tw task manager from ur phone ]
4.) Basic knowledge of decompiling / recompiling..
[ GB ] Guide :->
1.) Decompile Job manager.apk using apktool / multitools /etc..
2.) Navigate to " projects \ JobManager.apk \ smali \ com \ sec \ android \ app \ controlpanel ".
3.) open " PackageInfo.smali ".
4.) now search for " sput-object v0, Lcom/sec/android/app/controlpanel/PackageInfo;->mMustBeShownPkgString:[Ljava/lang/String; ".
5.) it will look like this ---->
6.) U can add more apps to exclude it from task manager..
there are two ways [ a = easy ] && [ b = difficult ]
a) u can remove the package name of existing list & add ur one to it...
like :-> replace "com.sec.launcher" with "com.lennox.launcher"... & so on with others.
b.) u can add new too
like:->
I.) Increase the size of array in first line [commented in code] from "0x2f" to "0x30" i.e from "47" to "48"
II.) Now add this code at the end before last line "sput-object v0, Lcom/sec/android/app/controlpanel/PackageInfo;->mHiddenPkgString:[Ljava/lang/String;" [ also commented in above code ]... --->
&& so on .....using same method....
III.) now save it & recompile & test it ...
it will not close ur app that u ve added into excluded app list....
7.) Enjoy
[ICS +] Guide :->
1.) Decompile Job manager.apk using apktool / multitools /etc..
2.) Navigate to " projects \ JobManager.apk \ smali \ com \ sec \ android \ app \ controlpanel ".
3.) open " SpecialPackageList.smali ".
4.) now search for " sput-object v0, Lcom/sec/android/app/controlpanel/SpecialPackageList;->mMustBeShownPackageStringArray:[Ljava/lang/String; ".
5.) it will look like this ---->
6.) U can add more apps to exclude it from task manager..
there are two ways [ a = easy ] && [ b = difficult ]
a) u can remove the package name of existing list & add ur one to it...
like :-> replace "com.sec.launcher" with "com.lennox.launcher"... & so on with others.
b.) u can add new too
like:->
I.) Increase the size of array in first line [commented in code] from "0x2f" to "0x30" i.e from "47" to "48"
II.) Now add this code at the end before last line "sput-object v0, Lcom/sec/android/app/controlpanel/SpecialPackageList;->mHiddenPackageStringArray:[Ljava/lang/String;" [ also commented in above code ]... --->
&& so on .....using same method....
III.) now save it & recompile & test it ...
it will not close ur app that u ve added into excluded app list....
7.) Enjoy
regards,
abhi922.
i m going to explian a new guide on how to exclude apps from TW [samsung] task manager.....
Basically, this is the first guide of its kind....[may be
Many questions have been asked like ---->
Q.) How to hide launcher from active apps on Task Manager ?
Q.) Exclude app from native task manager ??
Q.) Exclude apps from closing with built-in memorymanager ??
Q.) Disble TaskManager from closing certain apps ??
Q.) Exclude an app from native taskmanager ??
Q.) Samsung task manager kills setcpu !!
Q.) Excluding a task from the task manager ??
and many more questions but not a single answer for these questions But now the answer will be given today --->
Note : this is only for rom developers [ not for noobs ]
Requirement :-->
1.) Apktool/APK Multitools/or any similar program
2.) Notepad++ / notepad / or any similar program
3.) JobManager.apk [tw task manager from ur phone ]
4.) Basic knowledge of decompiling / recompiling..
[ GB ] Guide :->
1.) Decompile Job manager.apk using apktool / multitools /etc..
2.) Navigate to " projects \ JobManager.apk \ smali \ com \ sec \ android \ app \ controlpanel ".
3.) open " PackageInfo.smali ".
4.) now search for " sput-object v0, Lcom/sec/android/app/controlpanel/PackageInfo;->mMustBeShownPkgString:[Ljava/lang/String; ".
5.) it will look like this ---->
Code:
.line xx ---> xx can be any no. like 67 or anything..
const/16 v0, [B][COLOR="red"]0x2f[/COLOR][/B] [COLOR="Green"] // [ Array Size ] This is the total number of excluded apps... [ 47 ] can be different in ur task manager..[/COLOR]
new-array v0, v0, [Ljava/lang/String;
const-string v1, "[B][COLOR="Red"]com.lennox.launcher[/COLOR][/B]" [COLOR="Green"]// this is a excluded package name [/COLOR]
aput-object v1, v0, v3
const-string v1, "[B][COLOR="red"]com.sec.android.app.seniorlauncher[/COLOR][/B]" [COLOR="green"]// this is a excluded package name [/COLOR]
aput-object v1, v0, v4
const-string v1, "[B][COLOR="Red"]com.namakerorin.audiofxwidget[/COLOR][/B]" [COLOR="green"] // this is a excluded package name [same with all ][/COLOR]
aput-object v1, v0, v5
const-string v1, "com.sec.android.app.dialertop"
aput-object v1, v0, v6
const-string v1, "com.sec.android.app.dialer"
aput-object v1, v0, v7
const/4 v1, 0x5
const-string v2, "com.android.contacts"
aput-object v2, v0, v1
const/4 v1, 0x6
const-string v2, "com.android.phone"
aput-object v2, v0, v1
const/4 v1, 0x7
const-string v2, "com.android.providers.telephony"
aput-object v2, v0, v1
const/16 v1, 0x8
const-string v2, "android"
aput-object v2, v0, v1
const/16 v1, 0x9
const-string v2, "system"
aput-object v2, v0, v1
const/16 v1, 0xa
const-string v2, "com.android.stk"
aput-object v2, v0, v1
const/16 v1, 0xb
const-string v2, "com.android.settings"
aput-object v2, v0, v1
const/16 v1, 0xc
const-string v2, "com.android.bluetoothtest"
aput-object v2, v0, v1
const/16 v1, 0xd
const-string v2, "com.samsung.sec.android.application.csc"
aput-object v2, v0, v1
const/16 v1, 0xe
const-string v2, "com.sec.android.app.callsetting"
aput-object v2, v0, v1
const/16 v1, 0xf
const-string v2, "com.samsung.crashnotifier"
aput-object v2, v0, v1
const/16 v1, 0x10
const-string v2, "com.sec.android.app.factorytest"
aput-object v2, v0, v1
const/16 v1, 0x11
const-string v2, "com.android.settings.mt"
aput-object v2, v0, v1
const/16 v1, 0x12
const-string v2, "com.samsung.mobileTracker.ui"
aput-object v2, v0, v1
const/16 v1, 0x13
const-string v2, "com.osp.app.signin"
aput-object v2, v0, v1
const/16 v1, 0x14
const-string v2, "com.wipereceiver"
aput-object v2, v0, v1
const/16 v1, 0x15
const-string v2, "com.sec.android.app.personalization"
aput-object v2, v0, v1
const/16 v1, 0x16
const-string v2, "com.android.Preconfig"
aput-object v2, v0, v1
const/16 v1, 0x17
const-string v2, "com.sec.android.app.servicemodeapp"
aput-object v2, v0, v1
const/16 v1, 0x18
const-string v2, "com.sec.android.app.wlantest"
aput-object v2, v0, v1
const/16 v1, 0x19
const-string v2, "com.sec.android.app.dialertab"
aput-object v2, v0, v1
const/16 v1, 0x1a
const-string v2, "com.wssyncmldm"
aput-object v2, v0, v1
const/16 v1, 0x1b
const-string v2, "com.android.samsungtest.DataCreate"
aput-object v2, v0, v1
const/16 v1, 0x1c
const-string v2, "com.android.setupwizard"
aput-object v2, v0, v1
const/16 v1, 0x1d
const-string v2, "com.google.android.googleapps"
aput-object v2, v0, v1
const/16 v1, 0x1e
const-string v2, "com.android.wallpaper"
aput-object v2, v0, v1
const/16 v1, 0x1f
const-string v2, "com.android.wallpaper.livepicker"
aput-object v2, v0, v1
const/16 v1, 0x20
const-string v2, "com.google.android.apps.maps"
aput-object v2, v0, v1
const/16 v1, 0x21
const-string v2, "com.android.magicsmoke"
aput-object v2, v0, v1
const/16 v1, 0x22
const-string v2, "com.sec.android.voip"
aput-object v2, v0, v1
const/16 v1, 0x23
const-string v2, "com.android.samsungtest.FactoryTest"
aput-object v2, v0, v1
const/16 v1, 0x24
const-string v2, "com.sec.android.widgetapp.dualclock"
aput-object v2, v0, v1
const/16 v1, 0x25
const-string v2, "com.spritemobile.backup.samsung"
aput-object v2, v0, v1
const/16 v1, 0x26
const-string v2, "com.sec.android.app.samsungapps.una"
aput-object v2, v0, v1
const/16 v1, 0x27
const-string v2, "com.palmia.qspider"
aput-object v2, v0, v1
const/16 v1, 0x28
const-string v2, "com.android.providers.downloads.ui"
aput-object v2, v0, v1
const/16 v1, 0x29
const-string v2, "com.sec.android.widgetapp.buddiesnow"
aput-object v2, v0, v1
const/16 v1, 0x2a
const-string v2, "com.kt.iwlan"
aput-object v2, v0, v1
const/16 v1, 0x2b
const-string v2, "com.sec.android.provider.logsprovider"
aput-object v2, v0, v1
const/16 v1, 0x2c
const-string v2, "com.sec.android.widgetapp.diotek.smemo"
aput-object v2, v0, v1
const/16 v1, 0x2d
const-string v2, "com.sec.android.widgetapp.SPlannerAppWidget"
aput-object v2, v0, v1
const/16 v1,[B][COLOR="Red"] 0x2e[/COLOR][/B] [COLOR="Green"] // this is the last package number or [ array's last element ][/COLOR]
const-string v2, "com.sec.android.app.snotebook"
aput-object v2, v0, v1
[COLOR="Green"] // add new array element here [/COLOR]
sput-object v0, Lcom/sec/android/app/controlpanel/PackageInfo;->mHiddenPkgString:[Ljava/lang/String;
6.) U can add more apps to exclude it from task manager..
there are two ways [ a = easy ] && [ b = difficult ]
a) u can remove the package name of existing list & add ur one to it...
like :-> replace "com.sec.launcher" with "com.lennox.launcher"... & so on with others.
b.) u can add new too
like:->
I.) Increase the size of array in first line [commented in code] from "0x2f" to "0x30" i.e from "47" to "48"
II.) Now add this code at the end before last line "sput-object v0, Lcom/sec/android/app/controlpanel/PackageInfo;->mHiddenPkgString:[Ljava/lang/String;" [ also commented in above code ]... --->
Code:
const/16 v1, 0x2f
const-string v2, "[B]ur application package name[/B]"
aput-object v2, v0, v1
III.) now save it & recompile & test it ...
it will not close ur app that u ve added into excluded app list....
7.) Enjoy
[ICS +] Guide :->
1.) Decompile Job manager.apk using apktool / multitools /etc..
2.) Navigate to " projects \ JobManager.apk \ smali \ com \ sec \ android \ app \ controlpanel ".
3.) open " SpecialPackageList.smali ".
4.) now search for " sput-object v0, Lcom/sec/android/app/controlpanel/SpecialPackageList;->mMustBeShownPackageStringArray:[Ljava/lang/String; ".
5.) it will look like this ---->
Code:
const/16 v0, [B][COLOR="red"]0x2f[/COLOR][/B] [COLOR="Green"] // [ Array Size ] This is the total number of excluded apps... [ 47 ][/COLOR]
new-array v0, v0, [Ljava/lang/String;
const-string v1, "[B][COLOR="Red"]com.lennox.launcher[/COLOR][/B]" [COLOR="Green"]// this is a excluded package name [/COLOR]
aput-object v1, v0, v3
const-string v1, "[B][COLOR="red"]com.sec.android.app.seniorlauncher[/COLOR][/B]" [COLOR="green"]// this is a excluded package name [/COLOR]
aput-object v1, v0, v4
const-string v1, "[B][COLOR="Red"]com.namakerorin.audiofxwidget[/COLOR][/B]" [COLOR="green"] // this is a excluded package name [same with all ][/COLOR]
aput-object v1, v0, v5
const-string v1, "com.sec.android.app.dialertop"
aput-object v1, v0, v6
const-string v1, "com.sec.android.app.dialer"
aput-object v1, v0, v7
const/4 v1, 0x5
const-string v2, "com.android.contacts"
aput-object v2, v0, v1
const/4 v1, 0x6
const-string v2, "com.android.phone"
aput-object v2, v0, v1
const/4 v1, 0x7
const-string v2, "com.android.providers.telephony"
aput-object v2, v0, v1
const/16 v1, 0x8
const-string v2, "android"
aput-object v2, v0, v1
const/16 v1, 0x9
const-string v2, "system"
aput-object v2, v0, v1
const/16 v1, 0xa
const-string v2, "com.android.stk"
aput-object v2, v0, v1
const/16 v1, 0xb
const-string v2, "com.android.settings"
aput-object v2, v0, v1
const/16 v1, 0xc
const-string v2, "com.android.bluetoothtest"
aput-object v2, v0, v1
const/16 v1, 0xd
const-string v2, "com.samsung.sec.android.application.csc"
aput-object v2, v0, v1
const/16 v1, 0xe
const-string v2, "com.sec.android.app.callsetting"
aput-object v2, v0, v1
const/16 v1, 0xf
const-string v2, "com.samsung.crashnotifier"
aput-object v2, v0, v1
const/16 v1, 0x10
const-string v2, "com.sec.android.app.factorytest"
aput-object v2, v0, v1
const/16 v1, 0x11
const-string v2, "com.android.settings.mt"
aput-object v2, v0, v1
const/16 v1, 0x12
const-string v2, "com.samsung.mobileTracker.ui"
aput-object v2, v0, v1
const/16 v1, 0x13
const-string v2, "com.osp.app.signin"
aput-object v2, v0, v1
const/16 v1, 0x14
const-string v2, "com.wipereceiver"
aput-object v2, v0, v1
const/16 v1, 0x15
const-string v2, "com.sec.android.app.personalization"
aput-object v2, v0, v1
const/16 v1, 0x16
const-string v2, "com.android.Preconfig"
aput-object v2, v0, v1
const/16 v1, 0x17
const-string v2, "com.sec.android.app.servicemodeapp"
aput-object v2, v0, v1
const/16 v1, 0x18
const-string v2, "com.sec.android.app.wlantest"
aput-object v2, v0, v1
const/16 v1, 0x19
const-string v2, "com.sec.android.app.dialertab"
aput-object v2, v0, v1
const/16 v1, 0x1a
const-string v2, "com.wssyncmldm"
aput-object v2, v0, v1
const/16 v1, 0x1b
const-string v2, "com.android.samsungtest.DataCreate"
aput-object v2, v0, v1
const/16 v1, 0x1c
const-string v2, "com.android.setupwizard"
aput-object v2, v0, v1
const/16 v1, 0x1d
const-string v2, "com.google.android.googleapps"
aput-object v2, v0, v1
const/16 v1, 0x1e
const-string v2, "com.android.wallpaper"
aput-object v2, v0, v1
const/16 v1, 0x1f
const-string v2, "com.android.wallpaper.livepicker"
aput-object v2, v0, v1
const/16 v1, 0x20
const-string v2, "com.google.android.apps.maps"
aput-object v2, v0, v1
const/16 v1, 0x21
const-string v2, "com.android.magicsmoke"
aput-object v2, v0, v1
const/16 v1, 0x22
const-string v2, "com.sec.android.voip"
aput-object v2, v0, v1
const/16 v1, 0x23
const-string v2, "com.android.samsungtest.FactoryTest"
aput-object v2, v0, v1
const/16 v1, 0x24
const-string v2, "com.sec.android.widgetapp.dualclock"
aput-object v2, v0, v1
const/16 v1, 0x25
const-string v2, "com.spritemobile.backup.samsung"
aput-object v2, v0, v1
const/16 v1, 0x26
const-string v2, "com.sec.android.app.samsungapps.una"
aput-object v2, v0, v1
const/16 v1, 0x27
const-string v2, "com.palmia.qspider"
aput-object v2, v0, v1
const/16 v1, 0x28
const-string v2, "com.android.providers.downloads.ui"
aput-object v2, v0, v1
const/16 v1, 0x29
const-string v2, "com.sec.android.widgetapp.buddiesnow"
aput-object v2, v0, v1
const/16 v1, 0x2a
const-string v2, "com.kt.iwlan"
aput-object v2, v0, v1
const/16 v1, 0x2b
const-string v2, "com.sec.android.provider.logsprovider"
aput-object v2, v0, v1
const/16 v1, 0x2c
const-string v2, "com.sec.android.widgetapp.diotek.smemo"
aput-object v2, v0, v1
const/16 v1, 0x2d
const-string v2, "com.sec.android.widgetapp.SPlannerAppWidget"
aput-object v2, v0, v1
const/16 v1,[B][COLOR="Red"] 0x2e[/COLOR][/B] [COLOR="Green"] // this is the last package number or [ array's last element ][/COLOR]
const-string v2, "com.sec.android.app.snotebook"
aput-object v2, v0, v1
[COLOR="Green"] // add new array element here [/COLOR]
sput-object v0, Lcom/sec/android/app/controlpanel/SpecialPackageList;->mHiddenPackageStringArray:[Ljava/lang/String;
6.) U can add more apps to exclude it from task manager..
there are two ways [ a = easy ] && [ b = difficult ]
a) u can remove the package name of existing list & add ur one to it...
like :-> replace "com.sec.launcher" with "com.lennox.launcher"... & so on with others.
b.) u can add new too
like:->
I.) Increase the size of array in first line [commented in code] from "0x2f" to "0x30" i.e from "47" to "48"
II.) Now add this code at the end before last line "sput-object v0, Lcom/sec/android/app/controlpanel/SpecialPackageList;->mHiddenPackageStringArray:[Ljava/lang/String;" [ also commented in above code ]... --->
Code:
const/16 v1, 0x2f
const-string v2, "[B]ur application package name[/B]"
aput-object v2, v0, v1
III.) now save it & recompile & test it ...
it will not close ur app that u ve added into excluded app list....
7.) Enjoy
regards,
abhi922.
hit thanks button if u like my work & if u use this mod into ur rom then give proper credits......
Last edited: