Samsung Note 3 clock widget on lockscreen .
Description
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Steps
1.) Decompile framework-res.apk
2.) Download s4clokwidget.zip ,get the pngs and put it inside res/drawable of framework.
3.) Go to res/values/ids.xml and open it. And BEFORE </resources> put this code:
Code:
[COLOR=Red]<item type="id" name="first_digital">false</item>
<item type="id" name="second_digital">false</item>
<item type="id" name="dot_digital">false</item>
<item type="id" name="third_digital">false</item>
<item type="id" name="fouth_digital">false</item>
<item type="id" name="current_date">false</item>
<item type="id" name="time2">false</item>[/COLOR]
IT WILL BE LIKE THIS:
Click to expand...
Click to collapse
Code:
[COLOR=Red]<item type="id" name="first_digital">false</item>
<item type="id" name="second_digital">false</item>
<item type="id" name="dot_digital">false</item>
<item type="id" name="third_digital">false</item>
<item type="id" name="fouth_digital">false</item>
<item type="id" name="current_date">false</item>
<item type="id" name="time2">false</item>[/COLOR]
</resources>
and go to res/value/bool.xml open it add this code
<bool name="config_lock_screen_battery_animation_horizontal">true</bool>
Click to expand...
Click to collapse
before resources.
Now layout step
open res/layout/keyguard_screen_unlock_portrait.xml :
search for this
Code:
<com.android.internal.widget.DigitalClock android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="20.0dip" android:layout_marginTop="15.0dip" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="70.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/timeDisplay" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="6.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="18.0sp" android:ellipsize="none" android:gravity="bottom" android:id="@id/am_pm" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="4.0dip" android:singleLine="true" android:shadowColor="#c0000000" android:shadowDx="0.0" android:shadowDy="0.0" android:shadowRadius="3.0" />
</com.android.internal.widget.DigitalClock>
Replace it with
Code:
<com.ninjask.internal.policy.impl.LockScreenDigitalClock android:gravity="center" android:layout_gravity="center" android:orientation="vertical" android:id="@id/time" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="25.0dip">
<LinearLayout android:id="@id/time2" android:layout_width="wrap_content" android:layout_height="58.0dip" android:layout_marginTop="40.0dip" android:layout_alignParentTop="true" android:layout_centerHorizontal="true">
<ImageView android:id="@id/first_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/second_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/dot_digital" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/zzz_unlock_clock_colon_s" />
<ImageView android:id="@id/third_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
<ImageView android:id="@id/fouth_digital" android:layout_width="wrap_content" android:layout_height="58.0dip" />
</LinearLayout>
<TextView android:textSize="21.0sp" android:textColor="#fff0ffbb" android:gravity="center" android:id="@id/current_date" android:layout_width="fill_parent" android:layout_height="wrap_content" android:shadowColor="#ff000000" android:shadowDx="0.0" android:shadowDy="1.0" android:shadowRadius="2.5" android:layout_below="@id/time2" android:layout_alignParentTop="true" />
</com.ninjask.internal.policy.impl.LockScreenDigitalClock>
</LinearLayout>
4.) Save and recompile it THEN get the recompiled framework-res.apk and decompile it AGAIN.
5.)Open framework-res/res/values/public.xml and REMEMBER this codes:
Code:
<public type="id" name="first_digital" id="public1" />
<public type="id" name="second_digital" id="public2" />
<public type="id" name="third_digital" id="public3" />
<public type="id" name="fouth_digital" id="public4" />
<public type="id" name="current_date" id="public5" />
<public type="string" name="full_wday_month_day_no_year" id="public6" />
<public type="bool" name="config_lock_screen_battery_animation_horizontal" id="public7" />
<public type="drawable" name="zzz_unlock_clock_0" id="clock0" />
<public type="drawable" name="zzz_unlock_clock_1" id="clock1" />
<public type="drawable" name="zzz_unlock_clock_2" id="clock2" />
<public type="drawable" name="zzz_unlock_clock_3" id="clock3" />
<public type="drawable" name="zzz_unlock_clock_4" id="clock4" />
<public type="drawable" name="zzz_unlock_clock_5" id="clock5" />
<public type="drawable" name="zzz_unlock_clock_6" id="clock6" />
<public type="drawable" name="zzz_unlock_clock_7" id="clock7" />
<public type="drawable" name="zzz_unlock_clock_8" id="clock8" />
<public type="drawable" name="zzz_unlock_clock_9" id="clock8" />
REMEMBER THIS: when you remeber the public ids, remove the 0 next to x, (FOR EXAMPLE: 0x01234567 change it to this: 0x1234567).
6.) Decompile android.policy.jar.
7.) Download ninjask.zip and extract it to smali folder.
8.) Now..... (I hate this ids ids ids... xD) Open LockScreenDigitalClock.smali FIND this line and REPLACE the highlighted code:
Code:
const v2, [COLOR=Red]0x108048b[/COLOR]
REPLACE 0x 0x108048b with your YOUR clock0
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]108048c[/COLOR]
REPLACE 0x108048c with your YOUR clock1
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]108048d[/COLOR]
REPLACE 0x108048d with your YOUR clock2
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, [COLOR=Red]0x108048e[/COLOR]
REPLACE 0x 0x108048ewith your YOUR clock3
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]108048f [/COLOR]
REPLACE 0x 0x108048f with your YOUR clock4
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]1080490 [/COLOR]
REPLACE 0x 0x1080490 with your YOUR clock5
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]1080491 [/COLOR]
REPLACE 0x 0x1080491 with your YOUR clock6
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]1080492 [/COLOR]
REPLACE 0x 0x1080492 with your YOUR clock7
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]1080493 [/COLOR]
REPLACE 0x 0x1080493 with your YOUR clock8
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v2, 0x[COLOR=Red]1080494 [/COLOR]
REPLACE 0x 0x1080494 with your YOUR clock9
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v8, 0x[COLOR=Red]10400a7 [/COLOR]
REPLACE 0x10400a7 with your YOUR public6
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v0, [COLOR=Red]0x1020254 [/COLOR]
REPLACE 0x1020254 with your YOUR public1
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v0, [COLOR=Red]0x1020255 [/COLOR]
REPLACE 0x1020255 with your YOUR public2
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v0, [COLOR=Red]0x1020257 [/COLOR]
REPLACE 0x1020257 with your YOUR public3
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v0, [COLOR=Red]0x1020258 [/COLOR]
REPLACE 0x1020258 with your YOUR public4
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v0, [COLOR=Red]0x1020259 [/COLOR]
REPLACE 0x1020259 with your YOUR public5
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
Code:
const v1, [COLOR=Red]0x10d0021 [/COLOR]
REPLACE 0x10d0021 with your YOUR public7
Click to expand...
Click to collapse
THEN AFTER THAT, FIND THIS LINE AND ALSO REPLACE THE HIGHLIGHTED CODE:
Click to expand...
Click to collapse
9.) Save LockScreenDigitalClock.smali.
10.) Almost There! recompile android.policy.jar.
11.) Flash your recompiled android.policy.jar and framework-res.apk
12.) If it works, JUMP! if not, tell me, maybe i forgot somethin
I provided this flashable zip you can use it for your Flashing lockscreen (FLASHABLE.ZIP)
Now thread is updated:fingers-crossed:
1 .if you are using my work so plz give me credit . because i spend many night and days for getting success.
and
If you are porting this guide to To another inform me first . then i will create a seprate guide for your device.
by giving you credit and tester
nice guide trying tommorow
Great JOB
awesome guide bro
trying now & let me inform u whats the result:laugh:
no link to download s4clokwidget.zip... ¿?
soory now link updated
Carl_47 said:
no link to download s4clokwidget.zip... ¿?
Click to expand...
Click to collapse
sorry link updated now
No more of it...??
Wanna try it in A63..!!
Related
Purpose : Create a live-wallpaper out of a bunch of images
Instructions :
- Download zip
- Extract zip
- Run Run.bat (follow instructions)
- Once done, install the resulting apk
Tip : Pre-attached with the zip comes the "haters gonna hate" animation, so if u want to test it, just Run.bat and enter 14 as the # of images.
Requirements :
- Java in ur environmental path (to check go start -> run -> cmd -> java -jar
Do u see "command not found" ? if so go to java.com and install it, otherwise ur fine.
Capabilities :
- Customizable live wallpaper w/o coding
- Change application name / icon
- Adjust loop invariant to ensure no skipping
- Change app description
- Now u have up to 100 images to use
- Automatically inserts the place-holders
- Change package name
- Apk produced now takes on the package name (easier to identify)
- Option to install the app to ur phone at end of script
- Added java check, it'll tell u if java is in ur path or not
- Now u have up to 300 images to use (thanks olivvv59)
- Added vista compatibility (delete's $.tmp files if they exist)
- Cleaned up the code a bit.
Note : The naming convention of the images are n01.png,n02.png,n03.png..n32...n100.png
Thanks : Goes to the andrew121 who created this link I just took his apk, modified it and made it customizable.
Heres his site : Link
once done, where do we find the .apk file?
mytouch slide
cant get ./loop running on my phone
h_zee13 said:
once done, where do we find the .apk file?
Click to expand...
Click to collapse
U'll find it in the root directory where u extracted the zip. It'll b called repackaged-signed.apk.
pbedard said:
cant get ./loop running on my phone
Click to expand...
Click to collapse
Im confused, please clarify ur post.
h_zee13 said:
once done, where do we find the .apk file?
Click to expand...
Click to collapse
pbedard said:
cant get ./loop running on my phone
Click to expand...
Click to collapse
Just realized i hadn't posted requirements, u need java on ur machine and in ur path.
Ive updated the OP so please use the "check method" and then proceed.
ok let me try again
Alright so here is a little TEST LWP
First thing I realized is that when when we add a name to the LWP, it never appears anywhere so it's useless....other than that it works great and its really easy
do you think you can make full size LWP with this? like currently its only like a static LWP...any chance to make it move when you change screens?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
thats awesome! why only 49 pngs? I tried more and obviously it didn't work...
*edit nevermind I figured it out
ogdobber said:
thats awesome! why only 49 pngs? I tried more and obviously it didn't work...
*edit nevermind I figured it out
Click to expand...
Click to collapse
dude what did you figure out? Share with us......
h_zee13 said:
dude what did you figure out? Share with us......
Click to expand...
Click to collapse
its in the >public.xml< more pngs can be added with a change here
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<public type="drawable" name="icon" id="0x7f020000" />
<public type="drawable" name="n01" id="0x7f020001" />
<public type="drawable" name="n02" id="0x7f020002" />
<public type="drawable" name="n03" id="0x7f020003" />
<public type="drawable" name="n04" id="0x7f020004" />
<public type="drawable" name="n05" id="0x7f020005" />
<public type="drawable" name="n06" id="0x7f020006" />
<public type="drawable" name="n07" id="0x7f020007" />
<public type="drawable" name="n08" id="0x7f020008" />
<public type="drawable" name="n09" id="0x7f020009" />
<public type="drawable" name="n10" id="0x7f02000a" />
<public type="drawable" name="n11" id="0x7f02000b" />
<public type="drawable" name="n12" id="0x7f02000c" />
<public type="drawable" name="n13" id="0x7f02000d" />
<public type="drawable" name="n14" id="0x7f02000e" />
<public type="drawable" name="n15" id="0x7f02000f" />
<public type="drawable" name="n16" id="0x7f020010" />
<public type="drawable" name="n17" id="0x7f020011" />
<public type="drawable" name="n18" id="0x7f020012" />
<public type="drawable" name="n19" id="0x7f020013" />
<public type="drawable" name="n20" id="0x7f020014" />
<public type="drawable" name="n21" id="0x7f020015" />
<public type="drawable" name="n22" id="0x7f020016" />
<public type="drawable" name="n23" id="0x7f020017" />
<public type="drawable" name="n24" id="0x7f020018" />
<public type="drawable" name="n25" id="0x7f020019" />
<public type="drawable" name="n26" id="0x7f02001a" />
<public type="drawable" name="n27" id="0x7f02001b" />
<public type="drawable" name="n28" id="0x7f02001c" />
<public type="drawable" name="n29" id="0x7f02001d" />
<public type="drawable" name="n30" id="0x7f02001e" />
<public type="drawable" name="n31" id="0x7f02001f" />
<public type="drawable" name="n32" id="0x7f020020" />
<public type="drawable" name="n33" id="0x7f020021" />
<public type="drawable" name="n34" id="0x7f020022" />
<public type="drawable" name="n35" id="0x7f020023" />
<public type="drawable" name="n36" id="0x7f020024" />
<public type="drawable" name="n37" id="0x7f020025" />
<public type="drawable" name="n38" id="0x7f020026" />
<public type="drawable" name="n39" id="0x7f020027" />
<public type="drawable" name="n40" id="0x7f020028" />
<public type="drawable" name="n41" id="0x7f020029" />
<public type="drawable" name="n42" id="0x7f02002a" />
<public type="drawable" name="n43" id="0x7f02002b" />
<public type="drawable" name="n44" id="0x7f02002c" />
<public type="drawable" name="n45" id="0x7f02002d" />
<public type="drawable" name="n46" id="0x7f02002e" />
<public type="drawable" name="n47" id="0x7f02002f" />
<public type="drawable" name="n48" id="0x7f020030" />
<public type="drawable" name="n49" id="0x7f020031" />
<public type="xml" name="settings" id="0x7f030000" />
<public type="xml" name="wallpaper" id="0x7f030001" />
<public type="array" name="size_names" id="0x7f040000" />
<public type="array" name="size_values" id="0x7f040001" />
<public type="string" name="app_name" id="0x7f050000" />
<public type="string" name="settings_title" id="0x7f050001" />
<public type="string" name="description" id="0x7f050002" />
<public type="string" name="preference_fps_title" id="0x7f050003" />
<public type="string" name="preference_fps_summary" id="0x7f050004" />
<public type="string" name="preference_size_title" id="0x7f050005" />
<public type="string" name="preference_size_summary" id="0x7f050006" />
</resources>
Click to expand...
Click to collapse
h_zee13 said:
Alright so here is a little TEST LWP
First thing I realized is that when when we add a name to the LWP, it never appears anywhere so it's useless....other than that it works great and its really easy
do you think you can make full size LWP with this? like currently its only like a static LWP...any chance to make it move when you change screens?
Click to expand...
Click to collapse
Ok, firstly the name changing does work, atleast on my end. The name should change when u go into the live wallpaper picker. Second, the static property is tied to the apk, remember i have not created this app, just modified it for our needs.
ogdobber said:
its in the >public.xml< more pngs can be added with a change here
Click to expand...
Click to collapse
Ur on the right path but not that easy, those are just identifiers, u still gotta implement them Dont worry i'll try to make the next version have 100 images, that should be more than enough lol
Daneshm90 said:
Dont worry i'll try to make the next version have 100 images, that should be more than enough lol
Click to expand...
Click to collapse
This would be awesome! 100 images should suffice!
Thanks and great stuff!
notxel21 said:
This would be awesome! 100 images should suffice!
Thanks and great stuff!
Click to expand...
Click to collapse
Guess wht i just did it
Gonna post it soon, yea 100 should b enough u hungry ppl
Daneshm90 said:
Guess wht i just did it
Gonna post it soon, yea 100 should b enough u hungry ppl
Click to expand...
Click to collapse
You have a Twitter account? I need to keep up and you have great stuff (mods) all over the place!
Thanks!
notxel21 said:
You have a Twitter account? I need to keep up and you have great stuff (mods) all over the place!
Thanks!
Click to expand...
Click to collapse
I do but i barely post lol. its @daneshm if ur interested.
Ugh 100 images are taking long. Just to give u an idea i have to
change stuff like this
from .field public static final n50:I = 0x7f020032 increment it all the way to
.field public static final n100:I = 0x7f020032(diff id as well)
in 3 files
Daneshm90 said:
Ok, firstly the name changing does work, atleast on my end. The name should change when u go into the live wallpaper picker. Second, the static property is tied to the apk, remember i have not created this app, just modified it for our needs.
Click to expand...
Click to collapse
K maybe i missed something....but so far everything else is good oh and yeah 100 images would be great...keep up the good work
Daneshm90 said:
I do but i barely post lol. its @daneshm if ur interested.
Ugh 100 images are taking long. Just to give u an idea i have to
change stuff like this
from .field public static final n50:I = 0x7f020032 increment it all the way to
.field public static final n100:I = 0x7f020032(diff id as well)
in 3 files
Click to expand...
Click to collapse
Totally understandable! (Take your time and much appreciated)
At least post on your mod updates on Twitter if anything at all!
Now following! (twitter)
Alright guys i posted v2.0. New features are highlighted in green. Let me know how it goes.
Daneshm90 said:
Alright guys i posted v2.0. New features are highlighted in green. Let me know how it goes.
Click to expand...
Click to collapse
Going to do a test now.
The images in the "placeimages" folder are referred to as placeholder images and must stay there when I add my own images?
Thanks!
How to increase the font size?
Not with a App! I need it for my rom ...
I need a how to ;-)
Cheers DQiB
Sent from my GT-S5670 using XDA
i don no how to for a rom but do for an app even without root
Spare parts pro wil do it
Maybe romtool box will help you,!!!
Sent from my GT-S5670 using XDA
Font size in style.xml of framework-res or twframework-res
But Mostly it is in style.xml or in side a xml in layout-abcxyz folder of each apk
Detail:
with system apk: most using style in framework
So just find TextAppearance and change font size
Code:
<style name="TextAppearance.Medium" parent="@style/TextAppearance">
<item name="textSize">[COLOR="Red"]18.0sp[/COLOR]</item>
<item name="textStyle">normal</item>
<item name="textColor">?textColorPrimary</item>
</style>
If an apk dont use style.xml to define font side, you have to change font size in layout folder
Code:
<FrameLayout android:orientation="vertical" android:id="@id/power_widget_button" android:background="@drawable/stat_power_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="76.0dip" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/power_widget_button_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.669983dip" />
<TextView android:textSize="[COLOR="red"]12.0dip[/COLOR]" android:textStyle="bold" android:textColor="#ff000000" android:lineSpacingExtra="-5.0dip" android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:id="@id/power_widget_button_text" android:paddingTop="45.669983dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:shadowDx="1.0" android:shadowDy="1.0" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/power_widget_button_indic" android:paddingLeft="2.3299866dip" android:paddingRight="2.3299866dip" android:layout_width="fill_parent" android:layout_height="5.3299866dip" android:layout_marginBottom="4.5dip" android:scaleType="fitXY" />
</FrameLayout>
Hi!
I figureout how to set transparent background color in CM10
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
1. Decompile SystemUI.apk (I'm using apktool 1.4.9)
2. Go to: %apktool_folder%\SystemUI\smali\com\android\systemui\statusbar\phone
3. Open in text editor file: PhoneStatusBar$FastColorDrawable.smali
4. replace whole line:
Code:
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I
with
Code:
const v0, 0x6033b5e5
6033b5e5 => aarrggbb (a=alpha, r=red, g=green, b=blue) => this is semi-transparent ICS-blue color
After this method draw looks like:
Code:
.method public draw(Landroid/graphics/Canvas;)V
.locals 2
.parameter "canvas"
.prologue
.line 2632
const v0, 0x6033b5e5
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V
.line 2633
return-void
.end method
4a. For 'HighEndGfx' devices (like HTC One X) need to make something more:
4aa. Open file: %apktool_folder%\SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
4ac. Replace tree lines of code ( do not copy numbers!!):
Code:
1. invoke-static {v0}, Landroid/app/ActivityManager;->isHighEndGfx(Landroid/view/Display;)Z
2.
3. move-result v0
wiht one line of code ( do not copy numbers!!):
Code:
1. const v0, 0x0
4ad. Now fragment of method makeStatusBarView() looks like:
Code:
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplay:Landroid/view/Display;
const v0, 0x0
if-nez v0, :cond_0
5. Open SystemUI.apk with WinRAR or 7zip.
6. Compile SystemUI folder and go to %apktool_folder%\SystemUI\build\apk
7. Copy only classes.dex to SystemUI.apk.
8. Move SystemUI.apk to /system/app in phone.
9. Reboot.
10. Set permissions to rw-r-r (644)
11. ... and be happy to have transparent notification drawer.
---------------------------------------------------------------------------------
If you want to change toggles background you must decompile framework-res and see in colors.xml (res/values/colors.xml) which colors are described in this file.
Go to SystemUI decompiled folder ->open res/drawable/stat_power_background.xml with text editor -> change
Code:
<item android:state_pressed="false" android:drawable="@android:drawable/input_method_fullscreen_background" />
with
Code:
<item android:state_pressed="false" android:drawable="@android:color/black" />
---------------------------------------------------------------------------------
This is 100% working in CM10, don't know what about others JB roms.
Nice guide, it's really helpful!
Update!
Working for all devices with CM10!!
reaper61616 said:
Update!
Working for all devices with CM10!!
Click to expand...
Click to collapse
I got it because of you.
status bar for something, I just go crazy and find nothing.
sorry for my english
hello
thank you for your tutorial, I managed to have transparency, but I have a problem with the toggle who do transparent and are not very visible in your screen while the tutorial you can see the toggle with black background??
If you have an idea?
Thank you in advance.
Romu313 said:
hello
thank you for your tutorial, I managed to have transparency, but I have a problem with the toggle who do transparent and are not very visible in your screen while the tutorial you can see the toggle with black background??
If you have an idea?
Thank you in advance.
Click to expand...
Click to collapse
See first post
just a question
First, thank you for giving us such a good method. But there I have a question:
"If you want to change toggles background you must decompile framework-res and see in colors.xml (res/values/colors.xml) which colors are described in this file.
Go to SystemUI decompiled folder ->open res/drawable/stat_power_background.xml with text editor..."
You say to decompile framework-res, but modify parameter in SystemUI. That is what to make me confused.
sorry for my poor english!
PS:I dont find code like <item android:state_pressed="false" android:drawable="@android:drawable/input_method_fullscreen_background" /> in my stat_power_background.xml, this is mine:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
</selector>
SmallZG said:
First, thank you for giving us such a good method. But there I have a question:
"If you want to change toggles background you must decompile framework-res and see in colors.xml (res/values/colors.xml) which colors are described in this file.
Go to SystemUI decompiled folder ->open res/drawable/stat_power_background.xml with text editor..."
You say to decompile framework-res, but modify parameter in SystemUI. That is what to make me confused.
sorry for my poor english!
PS:I dont find code like <item android:state_pressed="false" android:drawable="@android:drawable/input_method_fullscreen_background" /> in my stat_power_background.xml, this is mine:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
</selector>
Click to expand...
Click to collapse
In your stat_power_background.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
</selector>
Add:
Code:
<item android:state_pressed="false" android:drawable="@android:color/[COLOR=red]<color from framework-res e.g. black -> @android:color/black>[/COLOR]" />
after:
Code:
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
Your stat_power_background.xml now will be like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
<item android:state_pressed="false" android:drawable="@android:color/[COLOR=red]<color from framework-res e.g. black -> @android:color/black>[/COLOR]" />
</selector>
Where red colored font place color described in framework-res/res/values/colors.xml, e.g. black, white, transparent, etc.
reaper61616 said:
In your stat_power_background.xml:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
</selector>
Add:
Code:
<item android:state_pressed="false" android:drawable="@android:color/[COLOR=red]<color from framework-res e.g. black -> @android:color/black>[/COLOR]" />
after:
Code:
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
Your stat_power_background.xml now will be like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
<item android:state_pressed="false" android:drawable="@android:color/[COLOR=red]<color from framework-res e.g. black -> @android:color/black>[/COLOR]" />
</selector>
Where red colored font place color described in framework-res/res/values/colors.xml, e.g. black, white, transparent, etc.
Click to expand...
Click to collapse
Thank you for the method. i will try it.
How about statusbar itself, not drawer?
When I use transparent image then it's transparent everywhere not only on my 'desktop'.
ZduneX25 said:
How about statusbar itself, not drawer?
When I use transparent image then it's transparent everywhere not only on my 'desktop'.
Click to expand...
Click to collapse
For now statusbar can not be transparet cozz there are no background under wallpaper, we got strange effect if statusbar is transparent...
This is idea and no other way, it is transparent everywhere...
Nice!
Some colours table?
pabloltg said:
Nice!
Some colours table?
Click to expand...
Click to collapse
Don't understand question...
My question its if you have a colour table in numeric values like 0x6033b5e5.
pabloltg said:
My question its if you have a colour table in numeric values like 0x6033b5e5.
Click to expand...
Click to collapse
Here is a nice site for RGB colours in hex. u have to calculate transparency separately..
RGB colours in HEX: http://www.perbang.dk/rgb/00FFEE/
Transparency calculation guide: http://www.telerik.com/support/kb/aspnet-ajax/chart/setting-hexadecimal-value-for-color-transparency-of-radchart-elements.aspx
---------- Post added at 12:49 AM ---------- Previous post was at 12:38 AM ----------
I have a problem here. I cant get the black background for toggles. I did everything specified in the OP.
Here is the screenshot:
https://www.dropbox.com/s/www3kjzh0mg1x7z/2012-09-01%2000.44.07.png
Any solution for this?[
vaibhav palande said:
[/COLOR]I have a problem here. I cant get the black background for toggles. I did everything specified in the OP.
Here is the screenshot:
https://www.dropbox.com/s/www3kjzh0mg1x7z/2012-09-01%2000.44.07.png
Any solution for this?[
Click to expand...
Click to collapse
See this: http://forum.xda-developers.com/showpost.php?p=30762808&postcount=9
pabloltg said:
My question its if you have a colour table in numeric values like 0x6033b5e5.
Click to expand...
Click to collapse
http://reaper61616.xaa.pl/colors.php
Have nothing else to say...
reaper61616 said:
See this: http://forum.xda-developers.com/showpost.php?p=30762808&postcount=9
Click to expand...
Click to collapse
I read it. Should i enter that red line too???
---------- Post added at 06:05 PM ---------- Previous post was at 05:30 PM ----------
That is not helping. My stat_power_background.xml code is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
<item android:state_pressed="false" android:drawable="@android:color/black" />
</selector>
here is screenshot: https://www.dropbox.com/s/www3kjzh0mg1x7z/2012-09-01%2000.44.07.png
vaibhav palande said:
I read it. Should i enter that red line too???
---------- Post added at 06:05 PM ---------- Previous post was at 05:30 PM ----------
That is not helping. My stat_power_background.xml code is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector android:exitFadeDuration="@android:integer/config_mediumAnimTime"
xmlns:android="http://schemas.android.com/apk/res/android"
>
<item android:state_pressed="true" android:drawable="@android:drawable/notification_item_background_color_pressed" />
<item android:state_pressed="false" android:drawable="@android:color/black" />
</selector>
here is screenshot: https://www.dropbox.com/s/www3kjzh0mg1x7z/2012-09-01%2000.44.07.png
Click to expand...
Click to collapse
Which files are you replacing in original apk? You need to replace res folder resources.arcs and classes.dex
Hi reaper61616
Galaxy S III has no "invoke-static {v0}, Landroid/app/ActivityManager;->isHighEndGfx(Landroid/view/DisplayZ"
What should I do?
How to add Lockscreen and Recent app shortcut on notification panel
Assuming know how to use Apk-Multi-Tools (I am using majdini repacked one) , decompile SystemUI and go to layout folder, seek for tw_status_bar_expanded_header.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
substitute it to
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Red lines are for this mod. First line is for Recent Apps icon and the second one for LockScreen icon.
Also after modifying mentioned XML you need to add corresponding .png photo to drawable-xhdpi which is called ic_sysbar_lock.png for lockscreen (sensitive must be added) and ic_sysbar_recent.png for recent Apps which is already there in drawable-xhdpi and I just resized it.
Compile and done.
Good Luck
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now you can download it here:
This mod is made for ALL Sammy 4.1.2 JB base roms. If want to try please make a backup first.
New pack would only add this mod to your SystemUI and you can freely flash it while keeping all of you previous mods on SystemUI.
- Added Universal Pack for ALL Firmwares, one pack for both System and preload - Working on LSZ,LT4, LT5,... 11.5.2013
- Added Lock Screen and Recent Apps on notification panel
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download HERE
How to change Notification Background and Text Color on drop down panel:
Thanks majdini for his turorial but as my this theme is kinda associated together I have no choice to repeat first part for Notification background.
Notification Background color
A- First of all you need to make notification background independent (I call it) from systemui.apk so that the color can be changed by hex code in framework.
1- Go to SystemUI/smali/com/android/systemui/statusbar/phone/ folder and open PhoneStatusBar.smali and search for "-0x100". There will be two lines; change them from
Code:
const/high16 v15, -0x100
to
Code:
const/high16 v15,[COLOR="Red"] 0x0[/COLOR]
there are two lines for -0x100, change theme both
2- Now go to framework-res/res/values/ folder and open drawables.xml and look for this line:
Code:
<item type="drawable" name="notification_item_background_color">#ff000000</item>
I changed it to
Code:
<item type="drawable" name="notification_item_background_color">[COLOR="Red"]#ffececec[/COLOR]</item>
This was for the background part.
Notification Text color
B- So now we need to change the notification's text color that should be done in framework:
Just search for StatusBar in Style.xml and change it as you like. Following are my changes:
Code:
<style name="TextAppearance.StatusBar.Title" parent="@style/TextAppearance.StatusBar">
<item name="textStyle">bold</item>
</style>
<style name="TextAppearance.StatusBar.Icon" parent="@style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">15.0dip</item>
<item name="textColor">[COLOR="Red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
<item name="textSize">20.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#[COLOR="red"]#ff000000[/COLOR]</item>
</style>
<style name="Theme.WithActionBar" parent="@style/Theme">
<item name="windowActionBar">true</item>
The first #ff2e2e2e is for subtext's color (second row of notification)
Code:
<style name="TextAppearance.StatusBar.Ticker" parent="@style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.EventContent.Line2" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">@dimen/notification_subtext_size</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Info" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">@dimen/notification_subtext_size</item>
<item name="textColor">[COLOR="red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Time" parent="@style/TextAppearance.StatusBar.EventContent.Time">
<item name="textSize">15.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">[COLOR="Red"]#ff000000[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Emphasis" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textColor">#[COLOR="red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.Small.CalendarViewWeekDayView" parent="@style/TextAppearance.Small">
<item name="textStyle">bold</item>
Code:
<style name="TextAppearance.DeviceDefault.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
<item name="textSize">20.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#[COLOR="red"]#ff000000[/COLOR]</item>
So for these changes would result in this theme (only notification part)
Is it only for deodex ROM?
It'd be great to make it for Odex ROM too
cheyenne said:
Is it only for deodex ROM?
It'd be great to make it for Odex ROM too
Click to expand...
Click to collapse
You can make a backup and then rename/delete .odex file and then flash. This is an experimental way which I have been told in Arman theme and seems working.
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
OT, what font do u use on screenshot?
Sent from my GT-N7000 using Tapatalk 2
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
zai89 said:
OT, what font do u use on screenshot?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
It's called Caviar. So the font was more attention drawer than the mod
Sent from my GT-N7000 using Tapatalk HD
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
kmokhtar79 said:
This mod is made base on LSZ base rom, about other frameworks I haven't test this zip may work or not. If want to try please make a backup first.
- Added Lock Screen and Recent Apps on notification panel
Download
Preload, System
Click to expand...
Click to collapse
Thanks! One question, what type letter using?
Enviado desde mi GT-N7000 usando Tapatalk 2
Vibo7 said:
Thanks! One question, what type letter using?
Enviado desde mi GT-N7000 usando Tapatalk 2
Click to expand...
Click to collapse
Look at one post above. Caviar
Any chance we can get just the lock screen toggle on an existing status bar? I am running ultimate rom v5.2 with alliance mods for the various customisations. Only thing missing on that is a lock screen toggle like yours. Any way i can add it to that?
thanks
kmokhtar79 said:
Look at one post above. Caviar
Click to expand...
Click to collapse
Thanks friend, sorry, i missed.
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
Hello sir if i want to delete the recent what i need to do..pls help.thanks sir
Sent from my GT-N7000 using xda premium
How to for this mod added to OP
- Universal Pack for ALL 4.1.2 Sammy base firmwares
Downloadhttp://d-h.st/nrG
just one question, if i flash this mod, is my green circle battery mod still be there?
because there's one same mod here, after flashing, green circle battery is back to stock
sunrider07 said:
just one question, if i flash this mod, is my green circle battery mod still be there?
because there's one same mod here, after flashing, green circle battery is back to stock
Click to expand...
Click to collapse
This mod would add only recent apps and lock screen icon to your notification panel anf you would have all of previous mods. Just make a backup and flash over.
Sent from my GT-N7000 using Tapatalk HD
I've Just flashed it on Ultimate ROM v6 XXLT4. Works like a charm! thank you Kmokhtar79.
Sent from my GT-N7000 using xda app-developers app
kmokhtar79 said:
- Universal Pack for ALL 4.1.2 Sammy base firmwares
Downloadhttp://d-h.st/nrG
Click to expand...
Click to collapse
Can you please tell the font name you have installed on your phone as displayed in the picture?
Ubuntu font?
Sent from my GT-N7000 using Tapatalk 2
abhinav quietly brilliant said:
Can you please tell the font name you have installed on your phone as displayed in the picture?
Ubuntu font?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
It's called Caviar.
Sent from my GT-N7000 using Tapatalk HD
kmokhtar79 said:
It's called Caviar.
Sent from my GT-N7000 using Tapatalk HD
Click to expand...
Click to collapse
Thanx mate, in case anyone else need it http://d-h.st/WgP
Sent from my GT-N7000 using Tapatalk 2
kmokhtar79 said:
This mod is made for ALL Sammy 4.1.2 JB base roms. If want to try please make a backup first.
New pack would only add this mod to your SystemUI and you can freely flash it while keeping all of you previous mods on SystemUI.
- Added Universal Pack for ALL Firmwares - Working on LSZ,LT4, LT5,... 11.5.2013
- Added Lock Screen and Recent Apps on notification panel
Download HERE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is a how to for this mod:
Assuming know how to use Apk-Multi-Tools (I am using majdini repacked one) , decompile SystemUI and go to layout folder, seek for tw_status_bar_expanded_header.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
substitute it to
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Red lines are for this mod. First line is for Recent Apps icon and the second one for LockScreen icon.
Also after modifying mentioned XML you need to add corresponding .png photo to drawable-xhdpi which is called ic_sysbar_lock.png for lockscreen (sensitive must be added) and ic_sysbar_recent.png for recent Apps which is already there in drawable-xhdpi and I just resized it.
Compile and done.
Good Luck
Click to expand...
Click to collapse
1 thing to note. Press and hold the lockscreen shortcut will bring out the power button menu. Lockscreen shortcut act as a power button.
***Here are some of my guide/mod links for Samsung ICS Devices***
These guides are specially for GT-S7562. But should work for other Samsung ICS devices also. Values may differ.
New Guide(s) added - 1st April, 2014 - 9:00 PM (GMT +5:30)
Code:
[CENTER][B][U][SIZE="5"]--Contents--[/SIZE][/U][/B]
*******************************[/CENTER]
[SIZE="4"][LIST]
[*]Post #1 - [U]Guide Links[/U]
[*]Post #2 - [U]Small guides[/U]
[*]Post #3 - [U]Reserved for future use[/U]
[*]Post #4 - [U]Reserved for future use[/U]
[/LIST][/SIZE]
[CENTER]*******************************[/CENTER]
AOSP Lockscreen with on/off toggle
Click to expand...
Click to collapse
0-100% Battery Mod
Click to expand...
Click to collapse
Most stable center clock mod for dual sim devices
Click to expand...
Click to collapse
Transparent status bar and pull down notification background
Click to expand...
Click to collapse
Add Hide Time and AM/PM toggle
Click to expand...
Click to collapse
System Black background to Transparent background
Click to expand...
Click to collapse
----------------------------------------------
***More will be there soon***
----------------------------------------------
Don't forget to PRESS THANKS :good: BUTTON
***Here are some of my small guides/mods for Samsung ICS Devices***
***New guide(s) added [29th March, 2014 | 11:57 AM | GMT +5:30]***
----------------------------------------------
Things you need:
Tool for decompiling/compiling work (I will not cover this, there are many guides for this)
Notepad++
Patience
Some common sense
Click to expand...
Click to collapse
Remove Carrier label in AOSP Lockscreen
Decompile framework-res.apk
Open res/layout/keyguard_screen_tab_unlock.xml
edit this line:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="Red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip
Do the same with keyguard_screen_tab_unlock_dual.xml for dual sim phone
edit these lines:
Code:
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
<TextView android:textAppearance="?textAppearanceMedium" android:textSize="@dimen/keyguard_lockscreen_status_line_font_size" android:textColor="?textColorSecondary" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/carrier2" android:layout_width="[COLOR="red"]wrap_content[/COLOR]" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:layout_marginBottom="12.0dip" android:singleLine="true" android:layout_alignParentBottom="true" />
Change that red part to 0.0dip
Save it and recompile framework-res.apk
Thats it
Click to expand...
Click to collapse
Disable Auto scrolling animation for notification toggles (quickpanel)
Decompile SystemUI.apk
Open com\android\systemui\statusbar\policy\quicksetting/QuickSettingPanel.smali
Search-
Code:
.method public prepareTranslationX(Z)V
Replace whole method with this
Code:
.method public prepareTranslationX(Z)V
.locals 3
.parameter "isExpanded"
return-void
.end method
Now Search-
Code:
.method public startScrollAnimation()V
Replace whole method with this
Code:
.method public startScrollAnimation()V
.locals 5
return-void
.end method
Save it and recompile SystemUI.apk
Thats it.
Credits:
majdinj
BOOTMGR
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Remove quickpanel toggles from expanded status bar
Decompile SystemUI.apk
Open res/layout/tw_status_bar_expanded.xml
Look for this
Code:
<HorizontalScrollView android:id="@id/quicksetting_scroller" android:scrollbars="none" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.quicksetting.QuickSettingPanel android:orientation="horizontal" android:id="@id/quicksetting_container" android:layout_width="[COLOR="red"]wrap_conten[/COLOR]t" android:layout_height="[COLOR="red"]wrap_content[/COLOR]" android:divider="@drawable/tw_black_bg" android:showDividers="middle" />
</HorizontalScrollView>
Change red part to 0.0dip
On dual sim device
Do the same with res/layout/tw_status_bar_expanded_dual.xml
Now open res/layout/tw_quick_setting_button.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_height[/COLOR]">
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height=[COLOR="red"]"@dimen/quick_setting_button_image_height[/COLOR]" android:layout_marginTop="2.0dip" />
<TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_status_height[/COLOR]" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Change red part to 0.0dip
Save it and recompile SystemUI.apk
Thats it. :good:
Click to expand...
Click to collapse
Remove label text of quickpanel toggles
Decompile SystemUI.apk
Open res/layout/tw_quick_setting_button.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<merge
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:focusable="false" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_height">
<ImageView android:layout_gravity="center" android:id="@id/btn_image" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_image_height" android:layout_marginTop="2.0dip" />
<TextView android:textSize="[COLOR="red"]@dimen/quick_setting_button_text_size[/COLOR]" android:textColor="#ff9eb2c3" android:gravity="center" android:id="@id/btn_text" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]@dimen/quick_setting_button_text_height[/COLOR]" android:includeFontPadding="false" android:shadowColor="#ff000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
<ImageView android:layout_gravity="center" android:id="@id/btn_status_image" android:paddingLeft="4.0dip" android:paddingTop="@dimen/quick_setting_button_status_padding" android:paddingRight="4.0dip" android:paddingBottom="@dimen/quick_setting_button_status_padding" android:layout_width="fill_parent" android:layout_height="@dimen/quick_setting_button_status_height" android:scaleType="fitXY" android:drawable="@drawable/tw_quick_panel_off" />
</LinearLayout>
</merge>
Change red part to 0.0dip
Save it.
Open res/values/dimens.xml
Search
Code:
quick_setting_button_height
Now decrease the size of this dimen value to exclude the size of text.(quick_setting_button_text_height)
Example-
If "quick_setting_button_height"=80.dip and "quick_setting_button_text_height"=30.0dip
Then change the value of "quick_setting_button_height" from 80.0dip to 50.0dip
Click to expand...
Click to collapse
Save it and recompile SystemUI.apk
Thats it. :good:
Click to expand...
Click to collapse
Hide Status Bar in expanded view like Jelly Bean
Decompile SystemUI.apk
Open smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
Search for 0x7e1 and replace all with 0x7de
Now search this method
Code:
.method updateExpandedViewPos(I)V
Remove red lines
Code:
.method updateExpandedViewPos(I)V
.locals 12
.parameter "expandedPosition"
.prologue
const/16 v11, -0x2710
const/4 v7, 0x1
[COLOR="Red"].line 2638
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarView:Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;->getHeight()I
move-result v3[/COLOR]
.line 2639
.local v3, h:I
iget-object v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mDisplayMetrics:Landroid/util/DisplayMetrics;
iget v2, v8, Landroid/util/DisplayMetrics;->heightPixels:I
.line 2643
.local v2, disph:I
iget-boolean v8, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mExpandedVisible:Z
if-nez v8, :cond_1
Go some lower or just search
const/16 v8, -0x2711
Click to expand...
Click to collapse
Add blue one
Code:
.line 2644
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updateExpandedInvisiblePosition()V
.line 2731
:cond_0
:goto_0
return-void
.line 2650
:cond_1
[COLOR="blue"]const/4 v3, 0x0[/COLOR]
const/16 v8, -0x2711
if-ne p1, v8, :cond_6
.line 2651
move v6, v3
Save it and recompile SystemUI.apk
Thats it.
Enjoy!
Click to expand...
Click to collapse
Transparent status bar on lockscreen
Decompile android.policy.jar
Open com/android/internal/policy/impl/KeyguardViewManager.smali
Search-
Code:
.method public declared-synchronized show()V
Under this method:
Search
Code:
0x10100800
Change this value to
Code:
0x1010900
Recompile android.policy.jar
Thats it:good:
Credits:
xperiacle
Click to expand...
Click to collapse
Click to expand...
Click to collapse
----------------------------------------------
***More will be there soon***
----------------------------------------------
Don't forget to PRESS THANKS :good: BUTTON
Reserved
Reserved....
Appreciation
THank u bro ! very useful for begginers like me :good::good:
Keep updating and adding New guide ,
if u got time plz make a guide about adding default wallpaper in Secsettings.apk
Good...everything at one place
Sent from my GT-S7562 using xda app-developers app
@Mohitash : Tool for decompiling/compiling work
Can you tell which tools we should prefer ? #THANKS
NiTesh said:
@Mohitash : Tool for decompiling/compiling work
Can you tell which tools we should prefer ? #THANKS
Click to expand...
Click to collapse
There are many guides for this.
Use that tool which is best for you
I use ApkMuktiTool its best for me.
Tapatalk Signature
Sent from PMP U751 (GT-S7562)
I am still a noob...
Sharique244777 said:
THank u bro ! very useful for begginers like me :good::good:
Keep updating and adding New guide ,
if u got time plz make a guide about adding default wallpaper in Secsettings.apk
Click to expand...
Click to collapse
Thanks for appreciation
HELP!
Plz Expplain me bro About android.policy.jar
Mohitash said:
There are many guides for this.
Use that tool which is best for you
I use ApkMuktiTool its best for me.
Tapatalk Signature
Sent from PMP U751 (GT-S7562)
I am still a noob...
Click to expand...
Click to collapse
can you upload systemui.apk for expanded view in statusbar
New guide updated :good:
Mohitash said:
New guide updated :good:
Click to expand...
Click to collapse
i am having error while dwcompile systemui.apk
what to do?