[GUIDE] Add Samsung Task Manager to Recent App
Assalamualaikum wr wb
hai sobat? amatnewbe akan berbagi tutor [GUIDE] Add Samsung Task Manager to Recent App .task manager ini nantinya bisa sobat lihat dibagian homescreen untuk mengetahui seberapa banyak ram digunakan sehingga kita bisa mengontrol pengunaan ram yang tidak berlebihan yang bisa mengakibatkan overhead. nah untuk guide ini sobat bisa menyimaknya dibawah :
Syarat : Paham DC&RC
Level : sedang
Bahan :
[Budayakan backup]
Steps :
1. Decompile systemUI.apk
2. Masukkan script dbawah ini di baris paling bawah , diatasnya </com.android.systemui.recent.RecentsPanelView> ke dalam status_bar_recent_panel.xml yang ada di res/layout port dan layout land :
<Button android:background="#ff000000" android:gravity="center" android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Task Manager" android:onClick="TaskManager" />
---maka hasil jadinya akan seperti ini :
<Button android:background="#ff000000" android:gravity="center" android:layout_gravity="bottom" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Task Manager" android:onClick="TaskManager" />
</com.android.systemui.recent.RecentsPanelView>
3. Masuk ke smali/com/android/systemui/SystemUIService.smali
Copy kan script di bawah ini tepat dibawahnya #Virtual method (diatasnya .method protected dump , tapi taruh di bawah persis #Virtual method ) :
.method public TaskManager(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 2431
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 2432
const-string v1, "com.sec.android.app.controlpanel"
const-string v2, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v2, 0x1000
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
const-string v1, "statusbar"
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/StatusBarManager;
invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V
.line 1720
return-void
.end method
-------Maka hasil jadi nya akan seperti ini :
# virtual methods
.method public TaskManager(Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 2431
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 2432
const-string v1, "com.sec.android.app.controlpanel"
const-string v2, "com.sec.android.app.controlpanel.activity.JobManagerActivity"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v2, 0x1000
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
const-string v1, "statusbar"
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/StatusBarManager;
invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V
.line 1720
return-void
.end method
4. Recompile sign push to system
5. Push juga TaskManager.apk nya ke system-app
6. Reboot . Done.
Thanks.
Tutorial ditulis dan tested by :
Bang Bagger
Lenovo A390 mt6577 ics 4.0.4
Originally thread by Spacecaker :
http://forum.xda-developers.com/showthread.php?t=2016829
Wassalamualaikum wr wb
0 Response to "[GUIDE] Add Samsung Task Manager to Recent App"
Post a Comment