[MOD]MulitWindow with unlimited apps for deodex rom

Status
Not open for further replies.

teshxx

Senior Member
Jul 19, 2010
1,712
3,362
0
FL
Hey,

Could you be kind enough to provide step by step instructions on how to edit services.jar?? I want to edit and make it work for N7105XXALJ5.

Thanks.
 
Last edited:

goddamnit

Senior Member
Nov 4, 2010
400
279
0
1.Decompile services.jar

open MultiWindowManagerService.smali

1: Search : iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;
then get follow

1.1:
.prologue
.line 391
iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;

invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_a

.line 392
const/4 v0, 0x1

.line 395
:goto_9
return v0

:cond_a
const/4 v0, 0x0

goto :goto_9
.end method

1.2: Start from
.prologue
To
.end method

1.3: Replace with

.prologue
.line 391
const/4 v0, 0x1

goto :goto_b

iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;

invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 392
const/4 v0, 0x1

.line 395
:goto_b
return v0

:cond_c
const/4 v0, 0x0

goto :goto_b
.end method


2.Open PackageManagerService.smali
2.1 Search
.line 7660
and-int/lit8 v1, p0, 0x10

if-eqz v1, :cond_6

.line 7666
:cond_5
:goto_5
return v0

.line 7663
:cond_6
and-int/lit8 v1, p0, 0x8

Replace with
.line 7660
and-int/lit8 v1, p0, 0x10

if-eqz v1, :cond_7

.line 7666
:cond_5
:goto_5
const/4 v0, 0x0

return v0

.line 7663
:cond_7
and-int/lit8 v1, p0, 0x8
------------- Recompile services.jar ----------
 

teshxx

Senior Member
Jul 19, 2010
1,712
3,362
0
FL
1.Decompile services.jar

open MultiWindowManagerService.smali

1: Search : iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;
then get follow

1.1:
.prologue
.line 391
iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;

invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_a

.line 392
const/4 v0, 0x1

.line 395
:goto_9
return v0

:cond_a
const/4 v0, 0x0

goto :goto_9
.end method

1.2: Start from
.prologue
To
.end method

1.3: Replace with

.prologue
.line 391
const/4 v0, 0x1

goto :goto_b

iget-object v0, p0, Lcom/android/server/am/MultiWindowManagerService;->mSupportAppList:Ljava/util/ArrayList;

invoke-virtual {v0, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 392
const/4 v0, 0x1

.line 395
:goto_b
return v0

:cond_c
const/4 v0, 0x0

goto :goto_b
.end method


2.Open PackageManagerService.smali
2.1 Search
.line 7660
and-int/lit8 v1, p0, 0x10

if-eqz v1, :cond_6

.line 7666
:cond_5
:goto_5
return v0

.line 7663
:cond_6
and-int/lit8 v1, p0, 0x8

Replace with
.line 7660
and-int/lit8 v1, p0, 0x10

if-eqz v1, :cond_7

.line 7666
:cond_5
:goto_5
const/4 v0, 0x0

return v0

.line 7663
:cond_7
and-int/lit8 v1, p0, 0x8
------------- Recompile services.jar ----------

You sir are awesome. Greatly appreciated.
 
Status
Not open for further replies.
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone