[DONE][GUIDE]StatusBarBrightness! Fully Working! - Galaxy Y GT-S5360 Themes and Apps

this is my second MOD, today i wana share you how to control the brightness by dragging your StatusBar.
Files needed:
Attached smali files
your brain
step:
decompile you SystemUI.apk
extract my smali to your smali folder
open status_bar.xml and find this code:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/icons" android:layout_width="fill_parent" android:layout_height="fill_parent">
put this code below the '@id/icons' layout:
Code:
<com.example.ucupui.StatusBarBrightness android:layout_width="fill_parent" android:layout_height="wrap_content">
don't forget to close the layout before '</LinearLayout>'
open you AndroidManifest.xml and insert this code:
Code:
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
re-compile the SystemUI
SIGN your SystemUI.apk
Push it to /system/app with rw-r--r--
Fix:
Open StatusBarBrightness$2.smali
find this line:
.line 38 and .line 39
Click to expand...
Click to collapse
rename it to:
.line 39 and .line 40
Click to expand...
Click to collapse
put this code above .line 39:
Code:
.line 38
const-string v2, "power"
invoke-static {v2}, Landroid/os/ServiceManager;->getService(Ljava/lang/String;)Landroid/os/IBinder;
move-result-object v2
invoke-static {v2}, Landroid/os/IPowerManager$Stub;->asInterface(Landroid/os/IBinder;)Landroid/os/IPowerManager;
move-result-object v2
invoke-interface {v2, v5}, Landroid/os/IPowerManager;->setBacklightBrightness(I)V
Tester:
Fuad [email protected]

attach ss or video it much better bro

ocoot said:
attach ss or video it much better bro
Click to expand...
Click to collapse
i'm now using CM7, search control brightness from statusbar on youtube.

AuliaYF said:
i'm now using CM7, search control brightness from statusbar on youtube.
Click to expand...
Click to collapse
post the link over here, there is lot of videos in the search results
also there s no such video on your channel

Post any ss....if u any??
Hit
{
"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"
}
Button If This Post Helped You

SS sir. You have? Theres another guide by sir evanlocked. Whats the difference sir?

Too all of you~
http://www.youtube.com/watch?v=qCs6PimukDY
evanlocked's mod using seekbar right? im using statusbar.

AuliaYF said:
http://www.youtube.com/watch?v=qCs6PimukDY
evanlocked's mod using seekbar right? im using statusbar.
Click to expand...
Click to collapse
you said u using cm7. cm7 has statusbar brightness slider by default. how can we be sure if you dont post screenies or a video? the video u showed was:
1.of a htc
2: using cm7
edit: i am not flaming on you, just wanna be sure that this mod is working

SaketJoshi said:
you said u using cm7. cm7 has statusbar brightness slider by default. how can we be sure if you dont post screenies or a video? the video u showed was:
1.of a htc
2: using cm7
edit: i am not flaming on you, just wanna be sure that this mod is working
Click to expand...
Click to collapse
i build this about a month ago with stockrom, but i love cm7 haha
but i tried this and i have some tester outside xda.

AuliaYF said:
i build this about a month ago with stockrom, but i love cm7 haha
but i tried this and i have some tester outside xda.
Click to expand...
Click to collapse
ok then tell that tester to post the video

can you tell where to put the smali files? your instruction was not clear.

Also the codes it <com.example.ucupui.StatusBarBrightness android:layout_width="fill_parent" android:layout_height="wrap_content">
But the attach files includes:

ryan_joshua said:
Also the codes it <com.example.ucupui.StatusBarBrightness android:layout_width="fill_parent" android:layout_height="wrap_content">
But the attach files includes:
Click to expand...
Click to collapse
wtf-_- edited man, thx for reporting :good::good::good::good:

AuliaYF said:
wtf-_- edited man, thx for reporting :good::good::good::good:
Click to expand...
Click to collapse
wrong attachment of smali files?

ryan_joshua said:
wrong attachment of smali files?
Click to expand...
Click to collapse
yah!-__- good luck man:highfive:

youtube tut plz..

<Edited >

i wanna add this mod to my statusbar, but i'm stuck at the part where i have to sign it, do i only need to sign systemui? or do i need to sign the other apks as well? and could anybody please post a link to a guide to signing apks?

mjz2cool said:
i wanna add this mod to my statusbar, but i'm stuck at the part where i have to sign it, do i only need to sign systemui? or do i need to sign the other apks as well? and could anybody please post a link to a guide to signing apks?
Click to expand...
Click to collapse
check the general section, there's a tut how to disable signature check, im using opera mini, i forget the link.

AuliaYF said:
check the general section, there's a tut how to disable signature check, im using opera mini, i forget the link.
Click to expand...
Click to collapse
isn't that for flashable zips?

Related

Add reboot option

I can't find a clear guide on how to modify policy.jar to incorporate reboot options. Anyone know where I can look?
[email protected] said:
I can't find a clear guide on how to modify policy.jar to incorporate reboot options. Anyone know where I can look?
Click to expand...
Click to collapse
if your already rooted just download quick boot, it's what i use for a fast reboot
A2CKilla said:
if your already rooted just download quick boot, it's what i use for a fast reboot
Click to expand...
Click to collapse
Thanks I was aware of other options what I was really looking for is how the android policy jar needs to be modified to add the option to the reboot menu.
[email protected] said:
Thanks I was aware of other options what I was really looking for is how the android policy jar needs to be modified to add the option to the reboot menu.
Click to expand...
Click to collapse
I too would like to see this implemented. Similar to what the Epic or Evo had on it's custom roms. If you ever figure it out...could ya pass it along?
Nerorising said:
I too would like to see this implemented. Similar to what the Epic or Evo had on it's custom roms. If you ever figure it out...could ya pass it along?
Click to expand...
Click to collapse
Sure. Work is a pita right now but afterwords I am going to try and tackle this.
[email protected] said:
Sure. Work is a pita right now but afterwords I am going to try and tackle this.
Click to expand...
Click to collapse
Greetings and Salutations Max
Are there any apps for rebooting your phone if you're not rooted?
I would love to see something like this done to the Photon!
{
"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"
}
[email protected] pull some XML files from CyanogenMod and compare them to ones from the Photon. CM has reboot options built in.
mrinehart93 said:
[email protected] pull some XML files from CyanogenMod and compare them to ones from the Photon. CM has reboot options built in.
Click to expand...
Click to collapse
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
[email protected] said:
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
Click to expand...
Click to collapse
That was pretty sick. What do you use to open/edit XML files?
KTT16 said:
That was pretty sick. What do you use to open/edit XML files?
Click to expand...
Click to collapse
you can use any text editor. I use Gedit in linux
Boot/Reboot/Recovery Options in Power Off Menu
[email protected] said:
I found this guide here, but its for the Vibrant I think. Maybe I can pull CM from a MOTO phone and figure it out... I will try this this weekend.
Click to expand...
Click to collapse
Any luck with this Mod and/or creating a .zip file for it? I would love to see this option modded in Magnifier!!!!
I used the vibrant guide when I ported it to the echo I had to edit policy.jar framework.jar and framework.apk also had add the options to the powercontrol file I can try to tackle this if no one has got it yet
Sent from my MB855 using XDA App
chrystal0925 said:
I used the vibrant guide when I ported it to the echo I had to edit policy.jar framework.jar and framework.apk also had add the options to the powercontrol file I can try to tackle this if no one has got it yet
Sent from my MB855 using XDA App
Click to expand...
Click to collapse
Please go for it!
ok guys i got it working im on skinny rev unlocked with dark fire theme so that is the framework apk i used but its easy to modify for the developers wanting to add this to there theme or rom.. just use my files android.policy.jar and framework.jar
to do this decompile and edit this xml in your framework.apk
"framework-res.apk\res\values\strings.xml"
add
Reboot
Recovery
next add png icons here
"framework-res.apk\res\drawable-hdpi"
make sure they are named
"ic_lock_reboot.png
"ic_lock_recovery.png
then recompile/build etc.. after you have build apk decompile it again
go here
frameworkres.apk\res\values\public.xml
you will see this with different id #s
and
these are what you need to change in the android.policy.jar
com\android\internal\policy\impl\GlobalActions.smali"
at line 661
const v3, 0x1080501 (reboot icon)
const v4, 0x10404ed (reboot string)
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;->(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x5
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$11;
const v3, 0x1080502 (recovery icon)
const v4, 0x10404ee (recovery string)
the first set of icon ids are for reboot
first # is drawable icon second is string #
second set is recovery as in the ( ) 's
so now change these numbers to those in the public.xml as i described above
next recompile your android.policy.jar and its ready to add
thanks!
screenie here http://dl.dropbox.com/u/46879286/20120214113758.jpeg
colors are off sorry

[Guide][GB]Transparent Statusbar.

[Guide]Transparent Statusbar.
Here is the original guide Transparent Bar - DIY
From which I got to learn,and modify to Xperia Sola,.
This method can be used for other GB phones too.
For Xperia S ICS,you can try to follow original guide by pendo.
**********************************************************************************************************************************************************************************************************
{
"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"
}
This is how I got transparent bar
There maybe better way to do it.If you got it working please share it.
1.Decompile SystemUI.apk
Drawable Edits:
2.Find res/drawable-hdpi/statusbar_background.9.png.
3.Erase everything in that statusbar_background.9.png, everything except borders as it 9.png using GIMP or Photoshop or similar image editor.
3.Find values/drawables.xml.
In that change
<item type="drawable" name="shade_bgcolor">#ff282828</item>
Click to expand...
Click to collapse
to
<item type="drawable" name="shade_bgcolor">#00000000</item>
Click to expand...
Click to collapse
Smali Edits
4.Find smali/com/android/systemui/statusbar/StatusBarService.smali
5.Open it with Notepad++.
Find and change
const/4 v6, 0x2
iput v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPixelFormat:I
Click to expand...
Click to collapse
to
const/4 v6, -0x3
iput v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPixelFormat:I
Click to expand...
Click to collapse
Then find and change
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getOpacity()I
move-result v6
iput v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPixelFormat:I
Click to expand...
Click to collapse
to
invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getOpacity()I
move-result v6
const/4 v6, -0x3
iput v6, p0, Lcom/android/systemui/statusbar/StatusBarService;->mPixelFormat:I
Click to expand...
Click to collapse
That's all.
Compile systemui.apk back,
Copy meta-inf from your original systemui.apk to this modded one.
Then copy to system/app ,change permissions to -rw-r-r.
or make a flashable zip.
Hit thanks if helps..
Can you provide the result of this guide please?
not works on S
PrometheusV18 said:
Can you provide the result of this guide please?
Click to expand...
Click to collapse
Updated.
valday456 said:
not works on S
Click to expand...
Click to collapse
What happend?
not include "shade_bgcolor" , StatusBarService.smali
valday456 said:
not include "shade_bgcolor" , StatusBarService.smali
Click to expand...
Click to collapse
Try status_bar_bg_tile.png and PhonStautbar.smali instead?
Make status_bar_bg_tile.png transparent.
Since I had an xperia s I was dying to have a transparent status bar so I searched a lot but no success so Iam hoping someone could manage to do it asap
And thanks in advance for anyone helping us to have what we need
Sent from my LT26i using xda premium
Thanks,
If someone could upload deodexed framework-res.apk and framework.jar of latest firmware,I could try.
Sent from my MT27i using xda app-developers app
guide only for 237 firmware?
valday456 said:
guide only for 237 firmware?
Click to expand...
Click to collapse
It was created for GB.But it could adopted to any firmware.
Sent from my MT27i using xda app-developers app
Thanks man..looks like good.. will try it later and give feedback
Sent from my Amfir Mimi BEK' Xperia™ active "ST17i" using xda premium
Thanks man..looks like good.. will try it later and give feedback
Sent from my Amfir Mimi BEK' Xperia™ active "ST17i" using xda premium
neectron said:
If someone could upload deodexed framework-res.apk and framework.jar of latest firmware,I could try.
Sent from my MT27i using xda app-developers app
Click to expand...
Click to collapse
Would be nice, here you go
This is the files from newest firmware (6.1.A.2.45)
http://www.mediafire.com/?yi9jblivfju75dz
EDIT: Oh.. Don't think it's deodexed..
whooper90 said:
Would be nice, here you go
This is the files from newest firmware (6.1.A.2.45)
http://www.mediafire.com/?yi9jblivfju75dz
EDIT: Oh.. Don't think it's deodexed..
Click to expand...
Click to collapse
Thank you.No need.I successfully decompiled and compiled systemui.apk.
neectron said:
Thank you.No need.I successfully decompiled and compiled systemui.apk.
Click to expand...
Click to collapse
Here is modded SystemUI I dont know from which firmware version it is from.If it causes force closes,pls upload latest one I'll try again.
And Please have backup before testing.If statusbar disappears,try stock one then again try modded one.
Install this through CWM, STransV2.zip
Edit:File removed as it is not working.
neectron said:
Here is modded SystemUI I dont know from which from firmware version it is from.If it causes force closes,pls upload latest one I'll try again.
And Please have backup before testing.If statusbar disappears,try stock one then again try modded one.
Install this through CWM, STransV2.zip
Click to expand...
Click to collapse
It's from http://forum.xda-developers.com/showthread.php?t=1851668
But it isn't working. Statusbar isn't transparrent But it isn't crashing either
whooper90 said:
It's from http://forum.xda-developers.com/showthread.php?t=1851668
But it isn't working. Statusbar isn't transparrent But it isn't crashing either
Click to expand...
Click to collapse
Upload your stock SystemUI.?
my pc can't decompile systemui.apk it say java not installed. but i have install JRE.. can someone help me?
sorry bad english
Sent from my LG-E400
Zeref_Dragneel said:
my pc can't decompile systemui.apk it say java not installed. but i have install JRE.. can someone help me?
sorry bad english
Sent from my LG-E400
Click to expand...
Click to collapse
It needs 7zip..do u use it?
Sent from my Amfir Mimi BEK' Xperia™ S "LT26i" using xda premium

[Q] Port BB10 lockscreen to Stock JB

Hi everyone! I'm trying to port this lockscreen: http://forum.xda-developers.com/showthread.php?p=32385441 to stock JB but I have some problems
The mod basically replace the stock aosp lockscreen editing files in framework.jar and android.policy.jar. ICS_XD told me that it's only for aosp but maybe he's worng.I think he's wrong because of this thread : http://forum.xda-developers.com/showthread.php?t=1538828
How to change the Samsung Circle lockscreen to the Ice Cream Sandwich lockscreen on XXLPH:
1) Decompile android.policy.jar
2) Edit the file called: LockPatternKeyguardView.smali
3) change the line:
iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
to
iput-boolean v1, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z
it's in the beginning of the init contructor (about line 152)
What this does is that it tells the createLockScreen method to use the Lockscreen class instead of the CircleLockscreen class.
4) Compile the android.policy.jar again and you are done.
Click to expand...
Click to collapse
So if it's posible to change the createLockscreen method use LockScreen instead of the stock sammy lockscreen the mod probably work
I'm not a developer and I don't know much about java programming but I am reading a lot and I need some help
There's no iput-boolean v2, p0, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->CIRCLELOCK_MODE:Z on LockPatternKeyguardView, I'm sure it's because it's ics and not jb, and I don't know what to change on similar lines so that's basically what I'm asking
This is my LockPatternKeyguardView : https://www.dropbox.com/s/bkv8uztpfsntutt/LockPatternKeyguardView.smali
the createLock method that I've changed it's on line 1319
All the help will be rewarded with smile faces and many thanks
Of course ICS_XD is wrong!!! Lol! How do I know?....
{
"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 on LSJ.
I cant view your lockpatternkeygyardview. Dropbox says i dont belong there!
You need a logcat of the error.
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Of course ICS_XD is wrong!!! Lol! How do I know?....
View attachment 1519712
...thats on LSJ.
I cant view your lockpatternkeygyardview. Dropbox says i dont belong there!
You need a logcat of the error.
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Here's a logcat ; https://www.dropbox.com/s/kur11w8lwi3q89a/logcat-default.txt
I've found this line on the logcat:
W/LockPatternKeyguardView( 2158): Couldn't find transport control widget
Click to expand...
Click to collapse
at the end of the createLockScreen method :
.line 1325
.local v0, lockView:Landroid/view/View;
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->initializeTransportControlView(Landroid/view/View; )V
Click to expand...
Click to collapse
And here ends my knowledge
Hmmm....not much help. When you get a loop you get dumpstate_sys_error.txt.gz in data/log. That will help more
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Hmmm....not much help. When you get a loop you get dumpstate_sys_error.txt.gz in data/log. That will help more
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Here you go good sir I've flashed the lockscreen, end in bootloop, restored and then pulled out the files it's ok?
https://www.dropbox.com/s/xvufn9iungkfvd4/dumpstate_sys_error.txt.gz
This one was also on /data/log, I don't know if it helps
https://www.dropbox.com/s/xvqb7zqmyrth80c/dumpstate_app_error.txt.gz
Looks to me like your Lockscreen smali is already modified and not compatible
Sent from my GT-I9100 using Tapatalk 2
Goldieking said:
Looks to me like your Lockscreen smali is already modified and not compatible
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
Should I leave it unmodified? I've changed only 3 or 4 things from the patch file on de nexus thread.
I've seen a lot of these lines to:
"11-29 17:00:41.825 1852 1852 I dalvikvm: DexOpt: mismatch dep signature for '/data/dalvik-cache/[email protected]@[email protected]'"
Perhaps I just messed up a lot of smalis Maybe I'll wait to JB AllianceROM

[GUIDE] Hide Status Bar in ICS like Jelly Bean

it's very simple ...
1. decompile SystemUI
SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali
2 find and change 0x7e1 (sola ICS have it line 5101 and 5189) on 0x7de
3 find .method updateExpandedViewPos(I)V and delete this
Code:
.line 1936
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
and lower find
Code:
.line 1948
:cond_1
const/16 v8, -0x2711
if-ne p1, v8, :cond_5
and insert const/4 v3, 0x0 after line :cond_1 must be so:
Code:
.line 1948
:cond_1
const/4 v3, 0x0
const/16 v8, -0x2711
if-ne p1, v8, :cond_5
result like in JB and I'm sorry for the my English
modified SystemUI.apk from stok ICS rom
Anyway to hide it by double tapping n make it reappear again if u double tap again?
Kaushik.Vapiwala said:
Anyway to hide it by double tapping n make it reappear again if u double tap again?
Click to expand...
Click to collapse
it's working on this systemui
{
"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"
}
There is already a guide howto for ICS by @ZN6
Verstuurd van mijn LT22i met Tapatalk
M using Xperia Sola. Can you provide me link to the systemui?
Pandemic said:
There is already a guide howto for ICS by @ZN6
Verstuurd van mijn LT22i met Tapatalk
Click to expand...
Click to collapse
i thinks its different coz wallpaper is static, not auto resizing
@garynych thanks a lot, worked for me. :highfive: Xperia U
inunxelex said:
it's working on this systemui
Click to expand...
Click to collapse
mind sharing it?
sorry i don't know how to decopile apks .
Edit: forgot one line xD. its working perfectly
How do i make the statusbar all black? on mine, the icons is visible in the clock portion due to it being semi transparent
thanks for share,, it's works
menonita_rocker said:
mind sharing it?
sorry i don't know how to decopile apks .
Click to expand...
Click to collapse
thats not mind, check this thread http://forum.xda-developers.com/showthread.php?t=2345681&highlight=ics+quick+settings
inunxelex said:
thats not mind, check this thread http://forum.xda-developers.com/showthread.php?t=2345681&highlight=ics+quick+settings
Click to expand...
Click to collapse
i meant if you could share your systemui since im a completly noob at compiling apks ,
garynych said:
...
Click to expand...
Click to collapse
Thinking about this idea is great, but when I applied it on my sola ICS SystemUI.apk, it looked like the attached screenshot (a layer is covering the notifications and quick settings toggles ). Tell me did I missed something??
(I have to tell you that when I edited PhoneStatusBar.smali, the ".line xxxx" were not like that you have. I found the places which I should edit with different numbers).
menonita_rocker said:
i meant if you could share your systemui since im a completly noob at compiling apks ,
Click to expand...
Click to collapse
i think you dont like it, coz battery percent and clock are removed
JohnHK said:
Thinking about this idea is great, but when I applied it on my sola ICS SystemUI.apk, it looked like the attached screenshot (a layer is covering the notifications and quick settings toggles ). Tell me did I missed something??
(I have to tell you that when I edited PhoneStatusBar.smali, the ".line xxxx" were not like that you have. I found the places which I should edit with different numbers).
Click to expand...
Click to collapse
Give me your unedited phonestatusbar.smali, i edit for you
TakuyaZ said:
Give me your unedited phonestatusbar.smali, i edit for you
Click to expand...
Click to collapse
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Ghabryyl said:
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Click to expand...
Click to collapse
Sure
Sent from my SO-04E using XDA Premium 4 mobile app
Ghabryyl said:
Hi! i have the same problem, can you modify my PhoneStatusBar.smali please?
You can download here my original phonestatusbar.smali
Click to expand...
Click to collapse
Done, rename to PhoneStatusBar.smali and compile
TakuyaZ said:
Give me your unedited phonestatusbar.smali, i edit for you
Click to expand...
Click to collapse
If you want to help me in that, take my unedited PhoneStatusBar.smali in the attachments area. After editing successfully, please give the method that you made (I like to learn ). Thanks in advance. :good:
JohnHK said:
If you want to help me in that, take my unedited PhoneStatusBar.smali in the attachments area. After editing successfully, please give the method that you made (I like to learn ). Thanks in advance. :good:
Click to expand...
Click to collapse
Replaced 0x7e1 to 0x7de in line 5181 and 5273
Removed
Code:
.line 2006
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
line 6776. added
Code:
const/4 v3, 0x0
between
Code:
:cond_1
const/16 v8, -0x2711
And done, Smali in rar file in attachment

(GUIDE)(MOD)Changeable Lockscreen text like Galaxy4.

How to add the Lockscreen Text to any lockscreen.
As most know I have implemented this feature inside the Touchwiz Resurrection rom for galaxy ace i.
As seen below.
{
"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"
}
Basicly this mod was very easy to add .
What is inside the resources.zip ?
LifeCompanionText.apk ( App to change the text )
LifeCompanion smalis for the framework.jar
SpaceFont.ttf for the CoolJazz font from S3/4
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes.
I used “zzz_keyguard_screen_clockwidget.xml” but you would be able to put it inside : “keyguard_screen_tab_unlock.xml” for the normal sliding tab lockscreen and such.
Open the layout you wanted and simply add this line above the clock layout or where you want
Code:
<com.touchwizres.lifecompaniontext.LifeCompanionTextView android:textSize="40.0dip" android:textColor="#ffffffff" android:id="[COLOR="RoyalBlue"]@id/life_companion_tag[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#7f000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
I placed this code just below
Code:
<view android:gravity="left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="7.0dip" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
of the "zzz_keyguard_screen_clockwidget.xml"
Add this to the ids.xml
Code:
<item type="id" name="[COLOR="RoyalBlue"]life_companion_tag[/COLOR]">false</item>
Compile framework-res.apk
Decompile ur compiled framework-res.apk
Now we are going to fix the ID Values. From the smali .
Decompile ur compiled framework.jar
Open
Code:
com/touchwizres/lifecompaniontext/[COLOR="RoyalBlue"]LifeCompanionTextView.smali[/COLOR]
that’s inside the framework.jar
Find
Code:
const v3, 0x[COLOR="Red"]10202cc[/COLOR]
This is the “life_companion_tag” ID (
Code:
<public type="id" name="life_companion_tag" id="0x0[COLOR="Red"]10202cc[/COLOR]" />
) inside public.xml
We need to fix this to yours
Now when u have changed the code from 0x10202cc to something like 0x1020299 or something depends on ur framework-res.apk
U can compile the framework.jar
Now zip the files together and make sure these are set properly.
SpaceFont.ttf inside /system/fonts/**
LifeCompanionText.apk inside /system/apps/**
And then ofcourse you’re modified framework.jar and framework-res.apk inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
As Most of you all know i am a HUGE HUGE Open Source fan so in this case i fully opensourced this aswell
Here is the sourcecode: https://github.com/spacecaker/LifeCompanionLockscreentext
Import in Eclipse.
Compile app.
Export unsigned apk.
Sign apk.
Decompile apk.
Retrieve ur smali codes.
Implement in framework
Some helpers who helped me on some knowledge and ideas:
B16H22
MarioZaWa
Pineappleowl
and testers
It is just awesome! :thumbup:
Sent from my GT-S5360 using Tapatalk 2
nice guide. will try it
Can i include it in my ROM ? I need your permission
bangprovn said:
Can i include it in my ROM ? I need your permission
Click to expand...
Click to collapse
sure
Working perfectly in AOSP.
MuSaddiq said:
Working perfectly in AOSP.
Click to expand...
Click to collapse
Nice to see that someone else except me has implemented it and did it correctly to :thumbup:
Sent from my S500 using xda app-developers app
@SpaceCaker it will work on jellybean?
ocoot said:
@SpaceCaker it will work on jellybean?
Click to expand...
Click to collapse
AFAIK, It should work on jelly bean too.
MuSaddiq said:
AFAIK, It should work on jelly bean too.
Click to expand...
Click to collapse
looping on boot animation. i think i need to check my code again
Sent from my GT-S6310 using Tapatalk
ocoot said:
looping on boot animation. i think i need to check my code again
Sent from my GT-S6310 using Tapatalk
Click to expand...
Click to collapse
ur code either failed
or ID/ const value wrong
or forgot fonts
Sent from my S500 using xda app-developers app
ocoot said:
@SpaceCaker it will work on jellybean?
Click to expand...
Click to collapse
works on JB
should work on any rom
SpaceCaker said:
works on JB
should work on any rom
Click to expand...
Click to collapse
This mod is cool.Btw i want to ask is there any mod to change backgrounds of lockscreen for use in lidroid ,aosp etc
Sent from my GT-S5360 using Tapatalk 2
SpaceCaker said:
works on JB
should work on any rom
Click to expand...
Click to collapse
ok it works well
san122 said:
This mod is cool.Btw i want to ask is there any mod to change backgrounds of lockscreen for use in lidroid ,aosp etc
Sent from my GT-S5360 using Tapatalk 2
Click to expand...
Click to collapse
i am working on that
but should be possible
Great guide sir!
Works flawlessly.
Pinadala mula sa aking Kalawakan Y gamit ang Tapatalk 2
SpaceCaker said:
i am working on that
but should be possible
Click to expand...
Click to collapse
btw, you know how to make lockscreen transparent on JB? trying with another guide i have but still not work
ocoot said:
btw, you know how to make lockscreen transparent on JB? trying with another guide i have but still not work
Click to expand...
Click to collapse
nah not really
i did it on JB Java source once but removed it

Categories

Resources