[DEV][MODDING] CRT, Airview, 4-way reboot, ink effect, phone, sms..etc [9/Dec/2013]

klurosu

Senior Member
Apr 1, 2011
640
658
0
Phú Tho
klurosu.net
Okay so long story short, I was try to port ink effect to my S2P.
When I recompiled secsettings, and decompiled it again, public.xml didn't show ink_none, started from red directly... and the order of things in the smali file were the same as the order in public.xml. Is that supposed to mean I did something wrong?
Ink Effect works fine for me
 

hara74

Senior Member
Feb 9, 2012
1,409
632
0
46
Herrstein
request

hi majdinj and all others,

I would really like to know how to add the torch by pressing the Homebutton at Lockscreen,
like in Eybee´s XXLSZ or Rocket Rom Reloaded, I guess

Torch on Lockscreen (thx @ Robbie Hood)

that´s a very nice feature :good:

thanks for all answers in advance

greetings
hara
 
Last edited:
  • Like
Reactions: Kamy

ezaechiel

Senior Member
Mar 19, 2013
1,017
1,032
0
Issou
team.5n0w.fr
yeah sure.. go a head man
Hello, I have a question, I try to use your guide to add ink effect to my custom rom (xxlt5) and when I flash a patch, I always have bootloops, I follow your guide but I can't fix the problem, have you ever had this bootloops problem with the ink effect?

May someone help me with this problem? I could send the modified files if somenone wants to help me ^^.
 

Goldie

Inactive Recognized Developer
Oct 16, 2010
9,966
22,758
0
Hello, I have a question, I try to use your guide to add ink effect to my custom rom (xxlt5) and when I flash a patch, I always have bootloops, I follow your guide but I can't fix the problem, have you ever had this bootloops problem with the ink effect?

May someone help me with this problem? I could send the modified files if somenone wants to help me ^^.
You need to use logcat. It could be anything

Sent from my GT-I9100 using Tapatalk 4 Beta
 
  • Like
Reactions: ezaechiel

badge2033

Senior Member
Mar 20, 2011
177
61
58
Monastir
hi majdi
thx alot for you guides

i don't know what i am doin wrong
all the mods that involve resources are wworking fine (xml and images)
the mods that deal with smali all result in bootloop.
is there some signing that i'm not doing or something else?

maybe i should wipe dalvik cache if the smali code changed?
 
Last edited:

Goldie

Inactive Recognized Developer
Oct 16, 2010
9,966
22,758
0
hi majdi
thx alot for you guides

i don't know what i am doin wrong
all the mods that involve resources are wworking fine (xml and images)
the mods that deal with smali all result in bootloop.
is there some signing that i'm not doing or something else?
See reply to previous guys question... ;)

Sent from my GT-I9100 using Tapatalk 4 Beta
 

hara74

Senior Member
Feb 9, 2012
1,409
632
0
46
Herrstein
hi majdinj and all others,

I would really like to know how to add the torch by pressing the Homebutton at Lockscreen,
like in Eybee´s XXLSZ or Rocket Rom Reloaded, I guess

Torch on Lockscreen (thx @ Robbie Hood)

that´s a very nice feature :good:

thanks for all answers in advance

greetings
hara
no one knows :confused:

sent from my G-Note
 

hara74

Senior Member
Feb 9, 2012
1,409
632
0
46
Herrstein
Torch at Lockscreen

I get it to work, with help from kmokhtar79 :laugh:

I used the android.policity.jar and torch.apk from Rocket Rom Reload and copied over

android.policity.jar to system/framework and set the right permission
and torch.apk to system/app also set right permission (but maybe install it again the normal way, I had to)
reboot
and tada, Torch on Lockscreen :good:

p.s. I don´t know if the android.policity.jar has negative effects on my Energy Bean Rom, because it´s smaller as the original one,
but so far no problems here on my side ;)
I will report if something strange will happen

so long
hara

Edit: first thing what changed is that 'kill apk' by holding menu button is gone on Energy Bean :(
 
Last edited:

ezaechiel

Senior Member
Mar 19, 2013
1,017
1,032
0
Issou
team.5n0w.fr
I get it to work, with help from kmokhtar79 :laugh:

I used the android.policity.jar and torch.apk from Rocket Rom Reload and copied over

android.policity.jar to system/framework and set the right permission
and torch.apk to system/app also set right permission (but maybe install it again the normal way, I had to)
reboot
and tada, Torch on Lockscreen :good:

p.s. I don´t know if the android.policity.jar has negative effects on my Energy Bean Rom, because it´s smaller as the original one,
but so far no problems here on my side ;)
I will report if something strange will happen

so long
hara

Edit: first thing what changed is that 'kill apk' by holding menu button is gone on Energy Bean :(
Normal android.policy.jar was modified to add kill apk ^_^

I'll analyzed rocket rom today especially android.policy.jar to find what modify to add lockscreen torch, wish me good luck ^_^
 
  • Like
Reactions: hara74 and Kamy

ezaechiel

Senior Member
Mar 19, 2013
1,017
1,032
0
Issou
team.5n0w.fr
:thumbup:

sent from my G-Note
I find files you have to change : PhoneWindowManager.smali, KeyguardViewMediator.smali, KeyguardViewMediator$4.smali in android.policy.jar
So to avoid any problem with the compatibility I recommend you to make a diff between your files and the files from rocket rom and apply modification (beware there is some change in constant et condition) so because I haven't time enough I copied this 3 files and KeyguardViewMediator$1.smali, KeyguardViewMediator$2.smali, KeyguardViewMediator$3.smali and KeyguardViewMediator$5.smali in my backsmali folder of android.policy.jar (7 files to replace, beware you haven't modified these files for another mod) and smali it, replace the classes.dex in android.policy.jar by the new one then create a flash zip with this file and the apk : torch.apk (from the rocket rom /system/app/ folder) in a folder /system/app/

If you want an example of the zip files you could see mine ^^ here (beware don't apply to your rom, it contains all my modifications for xxlt5 it's just an example of the final zip flashable mod).
 
  • Like
Reactions: hara74

hara74

Senior Member
Feb 9, 2012
1,409
632
0
46
Herrstein
I find files you have to change : PhoneWindowManager.smali, KeyguardViewMediator.smali, KeyguardViewMediator$4.smali in android.policy.jar
So to avoid any problem with the compatibility I recommend you to make a diff between your files and the files from rocket rom and apply modification (beware there is some change in constant et condition) so because I haven't time enough I copied this 3 files and KeyguardViewMediator$1.smali, KeyguardViewMediator$2.smali, KeyguardViewMediator$3.smali and KeyguardViewMediator$5.smali in my backsmali folder of android.policy.jar (7 files to replace, beware you haven't modified these files for another mod) and smali it, replace the classes.dex in android.policy.jar by the new one then create a flash zip with this file and the apk : torch.apk (from the rocket rom /system/app/ folder) in a folder /system/app/

If you want an example of the zip files you could see mine ^^ here (beware don't apply to your rom, it contains all my modifications for xxlt5 it's just an example of the final zip flashable mod).
first I wanna thank u for ur guide,

but unfortunately it´s the same,
I replaced the seven files from Rocket to Energy and the torch is working,
but the menu button now starts the search function not kill apk anymore :crying:

but it´s not so important, maybe Eybee or Robbie will post a how to in future,
or even you find the time to make it :fingers-crossed:

so thanks again
 

ezaechiel

Senior Member
Mar 19, 2013
1,017
1,032
0
Issou
team.5n0w.fr
first I wanna thank u for ur guide,
You're welcome ^^.

but unfortunately it´s the same,
I replaced the seven files from Rocket to Energy and the torch is working,
but the menu button now starts the search function not kill apk anymore :crying:
Maybe Energy has touch the same files ;) so It'll be in conflict.

but it´s not so important, maybe Eybee or Robbie will post a how to in future,
or even you find the time to make it :fingers-crossed:

so thanks again
I hope, I asked Robbie but unfortunately he has'nt time to do it :s. The only guide I found is for Galaxy SIII but no time to port it to note for the moment :s
 
  • Like
Reactions: Kamy and hara74