[Galaxy S II Android Development] bullonwheels:
Hi,

I was trying the mod for my phone (Samsung S6312; 4.1.2 JB). (I did all the things from post 1 and post 2)

While compiling back, I got these errors:

..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[27,4] Error for input '.parameter': Invalid directive
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[53,15] no viable alternative at input 'intent'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[53,22] no viable alternative at input 'Landroid/content/Intent;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[57,15] no viable alternative at input 'defaultHomePackage'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[57,34] no viable alternative at input 'Ljava/lang/String;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[80,16] no viable alternative at input 'res'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[80,20] no viable alternative at input 'Landroid/content/pm/ResolveInfo;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[107,16] no viable alternative at input 'targetKilled'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[113,15] no viable alternative at input 'am'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[113,18] no viable alternative at input 'Landroid/app/IActivityManager;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[119,15] no viable alternative at input 'apps'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[119,20] no viable alternative at input 'Ljava/util/List;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[138,15] no viable alternative at input 'appInfo'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[138,23] no viable alternative at input 'Landroid/app/ActivityManager$RunningAppProcessInfo;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[142,16] no viable alternative at input 'uid'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[171,15] no viable alternative at input 'arr$'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[171,20] no viable alternative at input '[Ljava/lang/String;'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[174,15] no viable alternative at input 'len$'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[177,15] no viable alternative at input 'i$'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[184,16] no viable alternative at input 'pkg'
..\project\android.policy.jar_classout\com\android\internal\policy\impl\PhoneWindowManager$KillConcept.smali[184,20] no viable alternative at input 'Ljava/lang/String;'

Now, I searched the net for hours and understood that the first error is because of code changes (in version 2).

.parameter

should become

.param p0

(Or should it be 'p1'?)

But I cant figure out the rest of the errors.

So I tried it with an older version of smali (1.4). It compiled correctly, but went into bootloop. (I pushed it via CWMR)

Please guide me. (I have no programming experience)