Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,808,174 Members 35,967 Now Online
XDA Developers Android and Mobile Development Forum

Ink without S-Pen on 4.4.2

Tip us?
 
Kryten2k35
Old
#1  
Kryten2k35's Avatar
Recognized Contributor - OP
Thanks Meter 11,130
Posts: 7,366
Join Date: Jan 2011
Location: Bradford

 
DONATE TO ME
Default Ink without S-Pen on 4.4.2

Does anyone know how to get this to work?

Samsung moved the CircleUnlockRippleRenderer files to Keyguard.apk, and com.sec.android.visualeffects.jar. However, I've tried the usual method of editing the values near the constant for S-Pen (0x4002)...

Code:
    and-int/lit16 v1, v1, 0x4002

    const/16 v2, 0x4002

    if-ne v2, v2, :cond_9
But this does not enable the ink effect with your finger.
The Following User Says Thank You to Kryten2k35 For This Useful Post: [ Click to Expand ]
 
Anas Karbila
Old
(Last edited by Anas Karbila; 31st August 2014 at 04:42 PM.)
#3  
Senior Member
Thanks Meter 179
Posts: 846
Join Date: Jan 2013
Quote:
Originally Posted by Kryten2k35 View Post
No-one?
This rom for Note 2 has it so if its related to keyguard you can take it from the rom and use it with ArchiPort.
http://forum.xda-developers.com/show....php?t=2060389
EDIT: I tried replacing keyguard.apk and com.sec.android.visualeffects.jar with the ones from archiport but it didn't work.
EDIT 2: It was wrong file xD when i do it i get systemui fc.
And i discovered that its related to the keyguard because when i replace custom com.sec.android.visualeffects.jar with stock one and keep custom keyguard the fc is still there, and if i replace com.sec.android.visualeffects.jar with the original one i get nothing (no fc and no custom color on lockscreen).
My Work:
Ace II X
>Deodexed stock rom
https://docs.google.com/file/d/0B0Cr...lzWXRidkE/edit
>PAC-Man rom
http://forum.xda-developers.com/gala...2x-gt-t2791080

Press THANKS if I helped you in any way!
 
Anas Karbila
Old
#4  
Senior Member
Thanks Meter 179
Posts: 846
Join Date: Jan 2013
@Kryten2k35
I have made some progress in making the ripple effect working but i really need your help:
I downloaded sweetrom 4.4.2 and extracted keyguard.apk and com.sec.android.visualeffect.jar and replaced them in ArchiPort.
Then i go into settings->lockscreen and selected ripple effect as lock effect.
Then i locked the phone: i got a black background.. but the sound isn't from ripple effect it is from watercolor effect (the one from the note 3).
When i choose lighteffect i get systemui fc.
When i choose none then is everything working fine (wallpaper too).
My Work:
Ace II X
>Deodexed stock rom
https://docs.google.com/file/d/0B0Cr...lzWXRidkE/edit
>PAC-Man rom
http://forum.xda-developers.com/gala...2x-gt-t2791080

Press THANKS if I helped you in any way!
 
Kryten2k35
Old
#5  
Kryten2k35's Avatar
Recognized Contributor - OP
Thanks Meter 11,130
Posts: 7,366
Join Date: Jan 2011
Location: Bradford

 
DONATE TO ME
Quote:
Originally Posted by Anas Karbila View Post
@Kryten2k35
I have made some progress in making the ripple effect working but i really need your help:
I downloaded sweetrom 4.4.2 and extracted keyguard.apk and com.sec.android.visualeffect.jar and replaced them in ArchiPort.
Then i go into settings->lockscreen and selected ripple effect as lock effect.
Then i locked the phone: i got a black background.. but the sound isn't from ripple effect it is from watercolor effect (the one from the note 3).
When i choose lighteffect i get systemui fc.
When i choose none then is everything working fine (wallpaper too).
You may need to change the public ID's in the Keyguard.apk to match those from the Note II/ArchiPort

For isntance, decompile Sweetrom's framework-res.apk. ArchiPort's framework-res.apk. Then decompile the Keyguard.apk that you have and look for any ID's that start with "0x10" (Notepad++ has a handy feature to search entire folders's documents for strings like this). You should find any public Id's (that are in public.xml) for the Keyguard.apk, match it with Sweetrom's framework-res.apk's public.xml, then match the item NAME in the Archiport's framework-res.apk public.xml... If the ID's match, move to the next, fi they do not, correct the ID in Ketguard.apk to match ArchiPort's ID, not sweetroms'
The Following User Says Thank You to Kryten2k35 For This Useful Post: [ Click to Expand ]
 
Anas Karbila
Old
#6  
Senior Member
Thanks Meter 179
Posts: 846
Join Date: Jan 2013
Quote:
Originally Posted by Kryten2k35 View Post
You may need to change the public ID's in the Keyguard.apk to match those from the Note II/ArchiPort

For isntance, decompile Sweetrom's framework-res.apk. ArchiPort's framework-res.apk. Then decompile the Keyguard.apk that you have and look for any ID's that start with "0x10" (Notepad++ has a handy feature to search entire folders's documents for strings like this). You should find any public Id's (that are in public.xml) for the Keyguard.apk, match it with Sweetrom's framework-res.apk's public.xml, then match the item NAME in the Archiport's framework-res.apk public.xml... If the ID's match, move to the next, fi they do not, correct the ID in Ketguard.apk to match ArchiPort's ID, not sweetroms'
thanks but im unable to it because i always get problems with decompiling and recompiling.
if you want to do it i can give you the files so you don't have to download the whole rom.
My Work:
Ace II X
>Deodexed stock rom
https://docs.google.com/file/d/0B0Cr...lzWXRidkE/edit
>PAC-Man rom
http://forum.xda-developers.com/gala...2x-gt-t2791080

Press THANKS if I helped you in any way!
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Add the Xperia Z2 Lock Screen to Your Favorite KitKat ROM

Almost every OEM adds its own unique flair to their stock firmwares. While some of … more

Android App Review: Control Your Phone with Quick Control Panel – XDA Developer TV

Your Android smart device has many features that you … more

Play Music on Android Wear with Stellio Music Player

Android Wear smartwatchesare growing inpopularity every day. Some devices have already … more

Schedule is up for xda:devcon ’14

With xda:devcon ’14 just around the corner, and the venue close to selling out, there is a lot … more