Themers. and Devs, Enable ink lockscreen in the sgs4. preconfigured

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
UNTESTED

so ink lockscreen comes pre configured in the sgs4, but all it needs is a place in the settings so..
all we have to do is

Decompile SecSettings.apk

Go to \res\xml folder and open lockscreen_settings.xml

Search for "CheckBoxPreference android:title="@string/ripple_effect"
then right below it replace the current inkeffect configuration cmds with these

Code:
    <PreferenceScreen android:title="@string/ink_effect" android:key="ink_effect">
        <intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.InkeffectPreview" />
    </PreferenceScreen>
then save it and Compile *if you can*

the only problem is that most of these SGS4 4.2.2 apks are to hard to decompile and compile so i havent tested this yet, so if anyone is able to
succeed in testing this. please give back feedback for testing :highfive: :highfive: :good: :good:
 
  • Like
Reactions: Blackwolf10

grgsiocl

Senior Member
Nov 9, 2009
2,891
4,546
0
Kurnool, Andhra Pradesh
@cabloomi Doesnt work. I tested both by selecting the rippleeffect and also light effect! i modifed the same at line 25

<PreferenceScreen android:title="@string/ink_effect" android:key="ink_effect">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.InkeffectPreview" />
</PreferenceScreen>

I will have a look further in the smali files!
 

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
@grgsiocl , how are you able to decompile and compile it. i have many mods in mind that include the SecSettings.apk
but it wont go back and compile even if i dont touch or change anything. please zip your work space and send it to me. lol like the apktool and the framwork base's 1 and 2.
and i think it might be CSC activated like we figured out recently that the call recorder mod is also
 

grgsiocl

Senior Member
Nov 9, 2009
2,891
4,546
0
Kurnool, Andhra Pradesh
@grgsiocl , how are you able to decompile and compile it. i have many mods in mind that include the SecSettings.apk
but it wont go back and compile even if i dont touch or change anything. please zip your work space and send it to me. lol like the apktool and the framwork base's 1 and 2.
and i think it might be CSC activated like we figured out recently that the call recorder mod is also
i can easily do it as i am using the newsest version apktool. I also pushed framewrok-res.apk, twframework-res.apk and ssytemui. I will upload the apktool for you in a minute!

Edit uploaded the tool here! Just push the corresponding frameworks after extracting the zip and you are good to go! I am also using the backsmali /smali versio 2.0 , that also will upload it!
 
Last edited:

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
If you already done it, then share please. I always love to have missing features in phone

Sent from my GT-I9500 using Tapatalk 2
the clock wont roll out the way for a notification. so.. help me. this is what i did to get it center

decompile SystemUI.apk
Navigate to res/layout/status_bar.xml

Look for a line that starts with

Code:
<com.android.systemui.statusbar.policy.Clock
and i deleted it.

then added these lines

Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
	<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center" android:paddingTop="3.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_weight="1.0" />
</LinearLayout>
under this line

Code:
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
then i changed the clock from blue to white

from this line

Code:
    <style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
        <item name="android:textSize">16.0dip</item>
        <item name="android:textStyle">normal</item>
        <item name="android:textColor">@*android:color/holo_blue_light</item>
    </style>
I change the

<item name="android:textColor">@*android:color/holo_blue_light</item>

to <item name="android:textColor">#ffffffff</item>

so now its center, but it wont roll out the way for a notification

any ideas @grgsiocl
 

cabloomi

Senior Member
Feb 25, 2012
220
539
0
Iraq
There is lots of info on the net for this mod...... and been for a long time.

I was just asking, not accusing you, because you would have wasted your time otherwise ;)

Sent from my GT-I9500 using xda premium
Remember this from last year

lol. i still have that message in my inbox
 

UpInTheAir

Account currently disabled
Jan 17, 2011
7,965
15,906
0
Phuket, Thailand
Remember this from last year

lol. i still have that message in my inbox
Yeah, do remember and still stick by it mate. :)

I am not criticizing you. I still encourage you to keep at it, but please try and provide links and credits to any "original" work you may have borrowed to edit. That's all. ;)

Cheers,

UITA

BTW off topic .... Noticed you have a ROM out. Nice work. You'll notice on my signature I've been cooking also for the P6810 & P6800. More to do soon as JB just released :D

Sent from my GT-I9500 using xda premium