[Android Software/Hacking General [Developers Only]] Jason-EX:
Galaxy 3 I5800/I5801 (Please help)

Hi hansip87,

First of all, thank you really much for this wonderful tutorial :D

I'm using Samsung Galaxy 3/Apollo running on Froyo 2.2 and I'm trying to install the Swipe mod.

I've adapted the codes and I successfully compiled all the files without any errors, but when I test it, the phone starts up for a while and then shuts down again and just keeps rebooting. The Status bar wasnt working normally too. I've also replaced the 'META-INF, resource.arsc, Manifest' with the unedited one.

And for Galaxy 3, the files are different

For systemui.apk, I use twframework-res.apk

For the systemui smali, I use services.jar

and the locations are different too

For systemui/com/android/systemui/statusbar/ I use services.jar /com/android/server/status/

For framework.jar/com/android/internal/statusbar/ I use framework.jar/android/app/

There was no "IStatusBarService, $Stub, or $Proxy", there is only "IStatusBar", so I just add all the codes in it.

I've also changed from "StatusBarService$7" to "StatusBarService$41", cause 1-40 were all used.

Here's the code I used in StatusBarService (mine was stored as 'v17') :

check-cast v17, Lcom/android/server/status/LatestItemContainer;

.local v17, row:Lcom/android/server/status/LatestItemContainer;
move-object/from16 v0, v2

iget v0, v0, Landroid/app/Notification;->flags:I

move v4, v0

and-int/lit8 v4, v4, 0x2

if-nez v4, :cond_leo

move-object/from16 v0, v2

iget v0, v0, Landroid/app/Notification;->flags:I

move v4, v0

and-int/lit8 v4, v4, 0x20

if-nez v4, :cond_leo

new-instance v4, Lcom/android/server/status/StatusBarService$41;

move-object v0, v4

move-object/from16 v1, p0

move-object/from16 v7, p1

invoke-direct {v0, v1, v7}, Lcom/android/server/status/StatusBarService$41;-><init>(Lcom/android/server/status/StatusBarService;Lcom/android/server/status/StatusBarNotification;)V

move-object/from16 v0, v17

move-object v1, v4

invoke-virtual {v0, v1}, Lcom/android/server/status/LatestItemContainer;->setOnSwipeCallback(Ljava/lang/Runnable;)V

:cond_leo

For IStatusBar$Stub:

0xe was used.

.field static final : .field static final TRANSACTION_onNotificationClear:I = [B]0xf[/B]

Changed from ":sswitch_data_150" to ":sswitch_data_13e" (for the end of the file too)

Added this:

.end local v1 #_arg0:Ljava/lang/String;
.end local v2 #_arg1:Ljava/lang/String;
.end local v3 #_arg2:I
:sswitch_124
const-string v0, "android.app.IStatusBar"

invoke-virtual {p2, v0}, Landroid/os/Parcel;->enforceInterface(Ljava/lang/String;)V

.line 177
invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

move-result-object v1

.line 178
.restart local v1 #_arg0:Ljava/lang/String;
invoke-virtual {p2}, Landroid/os/Parcel;->readString()Ljava/lang/String;

move-result-object v2

.line 179
.restart local v2 #_arg1:Ljava/lang/String;
invoke-virtual {p2}, Landroid/os/Parcel;->readInt()I

move-result v3

.line 180
.restart local v3 #_arg2:I
invoke-virtual {p0, v1, v2, v3}, Landroid/app/IStatusBar$Stub;->onNotificationClear(Ljava/lang/String;Ljava/lang/String;I)V

.line 181
invoke-virtual {p3}, Landroid/os/Parcel;->writeNoException()V

.line 182
const/4 v0, 0x1

goto/16 :goto_148

0xf -> :sswitch_150

".line" numbers was adapted too

Any solutions? Did I do anything wrong?

Thanks really much!