[MOD][GUIDE][Lollipop] SecMms_Delight_Open TouchWiz Mods - Unlimit SMS - Galaxy S6 Themes and Apps

Update for Android 6.0.1:
http://forum.xda-developers.com/galaxy-s6/themes-apps/mod-secmmsepiccommon-touchwiz-mods-t3350454
Vietnamese guide
HOW TO DISABLE THE SMS TO MMS AUTO, UNLIMIT-CONVERSION WHILE EXCEED 3 SMS
WHAT DOES THIS MOD DO: This mod will let you type very long text messages and it won't automatically convert it into MMS.
★ Go into your system/priv-app/SecMms_Delight_Open folder and take out your "SecMms_Delight_Open.apk"
★ Then use one of the applications such as apktools or baksmali and then use the commands to decompile the SecMms_Delight_Open.apk
★ Once you have decompiled the SecMms_Delight_Open.apk, go to:
smali/com/android/mms/l.smali
Click to expand...
Click to collapse
Now open up "l.smali" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"] sput v0, Lcom/android/mms/l;->Q:I[/COLOR]
{
"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"
}
NOW REMOVE:
Code:
.line 213
[COLOR="Red"] const/4 v0, 0x4[/COLOR]
[COLOR="Green"] sput v0, Lcom/android/mms/l;->Q:I[/COLOR]
AND CHANGE TO:
Code:
.line 213
[COLOR="Blue"] const/16 v0, 0x3e8[/COLOR]
[COLOR="Green"] sput v0, Lcom/android/mms/l;->Q:I[/COLOR]
NOW SEARCH FOR:
Code:
[COLOR="Green"] sget v0, Lcom/android/mms/l;->Q:I[/COLOR]
AND REMOVE:
Code:
.method public static e()I
.locals 1
.prologue
.line 881
[COLOR="Red"] sget v0, Lcom/android/mms/l;->Q:I[/COLOR]
return v0
.end method
AND CHANGE TO:
Code:
.method public static e()I
.locals 1
.prologue
.line 881
[COLOR="Blue"] const/16 v0, 0x3e8[/COLOR]
return v0
.end method
NOW SEARCH FOR:
Code:
[COLOR="Green"] sput v1, Lcom/android/mms/l;->Q:[/COLOR]I
ABOVE THIS SAME LINE YOU HAVE TO ADD A NEW LINE WHICH IS IN BLUE:
Code:
.line 2481
const-string/jumbo v1, "pref_key_threshold"
const/4 v2, 0x4
invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I
move-result v1
[COLOR="Blue"] const/16 v1, 0x3e8[/COLOR]
[COLOR="green"] sput v1, Lcom/android/mms/l;->Q:I[/COLOR]
Once done now save changes, Recompile your SecMms_Delight_Open.apk and that's it you are now DONE!!!
HOW TO CHANGE THE MESSAGING TIME STAMPS TO ITS ORIGINAL TIME
WHAT DOES THIS MOD DO: This mod will show the exact sent time of received messages, not the moment when you actually received it on your phone.
★ Go into your system/priv-app/SecMms_Delight_Open folder and take out your "SecMms_Delight_Open.apk"
★ Then use one of the applications such as apktools or baksmali and then use the commands to decompile the SecMms_Delight_Open.apk
★ Once you have decompiled the SecMms_Delight_Open.apk, go to:
smali/com/android/mms/transaction/SmsReceiverService.smali
Click to expand...
Click to collapse
Now open up "SmsReceiverService.smali" with your notepad++ for editing.
Now for this part of this guide what I have highlighted in "GREEN" text is what you have to find using Notepad++, What you see in "RED" is the line you have to remove/delete completely, And also what you see in "BLUE" is the line you have to make changes to:
SEARCH FOR:
Code:
[COLOR="Green"] invoke-static {}, Ljava/lang/System;->currentTimeMillis()J[/COLOR]
THIS SAME LINE THAT YOU HAVE JUST LOOKED FOR, IS ALSO THE LINE YOUR GOING TO HAVE TO REMOVE WHICH SHOULD LOOK LIKE THIS:
Code:
.line 2668
:cond_8
const-string/jumbo v2, "date"
[COLOR="Red"] invoke-static {}, Ljava/lang/System;->currentTimeMillis()J[/COLOR]
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
goto/16 :goto_1
.end method
AND THEN CHANGE IT TO THIS:
Code:
.line 2668
:cond_8
const-string/jumbo v2, "date"
[COLOR="Blue"] invoke-virtual {p1}, Landroid/telephony/SmsMessage;->getTimestampMillis()J[/COLOR]
move-result-wide v4
invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
invoke-virtual {v1, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V
goto/16 :goto_1
.end method
Once done now save changes, Recompile your SecMms_Delight_Open.apk and that's it you are now DONE!!!
Comming soon...
Credit:
@jovy23

SecMms_Delight_Open (G920FXXU1AOCV): https://www.androidfilehost.com/?fid=23991606952591971
Mod by @Manh_IT
Test for TW Android 5.1.1 ROM (G925FXXU2BOGB) [July, 30 2015]:https://www.androidfilehost.com/?fid=24052804347783614
DISABLE THE SMS TO MMS AUTO-CONVERSION WHILE EXCEED 480 WORD
CHANGE THE MESSAGING TIME STAMPS TO ITS ORIGINAL TIME
ENABLE THE SCREEN ON/OFF TOGGLE
Click to expand...
Click to collapse

Great! nice work mate why dont u make thread on samsungviet.vn mate

nambavuong said:
Great! nice work mate why dont u make thread on samsungviet.vn mate
Click to expand...
Click to collapse
Ok, I will make thread on samsungviet.vn
Để chút em lên luôn

You can achieve this same thing without editing smali. CSC has a line for this.

Manh_IT said:
SecMms_Delight_Open (G920FXXU1AOCV): https://www.androidfilehost.com/?fid=23991606952591971
Mod by @Manh_IT
Click to expand...
Click to collapse
Can you please make a mod to send contacts in text format without turning it into a vcard file??

can you make a guide to mod unlimited text in popup windows?

Can you please update this guide for the 5.1.1 update?
The no SMS->MMS conversion mod doesn't work anymore on the 5.1.1 firmwares.

My S6 converts to MMS if there are more than 1 recipients, is it possible to edit this feature? Thanks!

edgarf28 said:
Can you please update this guide for the 5.1.1 update?
The no SMS->MMS conversion mod doesn't work anymore on the 5.1.1 firmwares.
Click to expand...
Click to collapse
I'll update soon!

SecMms_Delight_Open Mods for TW 5.1.1
Test for TW Android 5.1.1 ROM (G925FXXU2BOGB) [July, 30 2015]:https://www.androidfilehost.com/?fid=24052804347783614
DISABLE THE SMS TO MMS AUTO-CONVERSION WHILE EXCEED 480 WORD
CHANGE THE MESSAGING TIME STAMPS TO ITS ORIGINAL TIME
ENABLE THE SCREEN ON/OFF TOGGLE
Click to expand...
Click to collapse
@nambavuong @edgarf28 You can help me test it? Thank!!!

Manh_IT said:
Test for TW Android 5.1.1 ROM (G925FXXU2BOGB) [July, 30 2015]:https://www.androidfilehost.com/?fid=24052804347783614
@nambavuong @edgarf28 You can help me test it? Thank!!!
Click to expand...
Click to collapse
Dl now to test on edgars rom
Living on the edge

Manh_IT said:
Test for TW Android 5.1.1 ROM (G925FXXU2BOGB) [July, 30 2015]:https://www.androidfilehost.com/?fid=24052804347783614
@nambavuong @edgarf28 You can help me test it? Thank!!!
Click to expand...
Click to collapse
Thanks for this...
But unfortunately the screen on/off toggle mod isn't there... can't find any setting about this under the messaging app settings. Also the screen still turns on when receiving an message.
The SMS -> MMS conversion mod works though.
I don't know about the time-stamps mod (don't know how I can test this)

edgarf28 said:
Thanks for this...
But unfortunately the screen on/off toggle mod isn't there... can't find any setting about this under the messaging app settings. Also the screen still turns on when receiving an message.
The SMS -> MMS conversion mod works though.
I don't know about the time-stamps mod (don't know how I can test this)
Click to expand...
Click to collapse
"DISABLE THE SMS TO MMS AUTO-CONVERSION WHILE EXCEED 480 WORD" mod work ?
"CHANGE THE MESSAGING TIME STAMPS TO ITS ORIGINAL TIME"
WHAT DOES THIS MOD DO: This mod will show the exact sent time of received messages, not the moment when you actually received it on your phone.

Manh_IT said:
Test for TW Android 5.1.1 ROM (G925FXXU2BOGB) [July, 30 2015]:https://www.androidfilehost.com/?fid=24052804347783614
@nambavuong @edgarf28 You can help me test it? Thank!!!
Click to expand...
Click to collapse
Can this be done for back-to-n0t3 port ? Or tell me how to ?
Thanks

hi,
where can i find the screen on/off toggle mod
THX

Just flashed it over sixperience rom, and working like a charm lel thx for the mod tho ))

hi mate @Manh_IT
i try your guide for 5.1.1 COH2 firmware
but i have problem becouse in l.smali i don't have sput v0, Lcom/android/mms/l;->Q:I
regards ambasadii
edit:
no matter ,resolved!

Anyone know the way to get split view in landscape working?
Sent from my S4 via the NSA network
Bump... anyone please?

Would you perchance know where the wallpaper is being called upon when a theme is being applied? We have a ported s6 rom to the note 3 and everything works brilliant except for the bubbles and background portion of the apk. It seems that something is broken and it doesn't see the bubble images or the backgrounds when a theme is applied. We did figure out the bubbles finally but the background images elude us. Thank you for any assistance. We assume it's an xml file but not seeing where it calls the image for background.

Related

[HOW-TO][MOD][JB] Transparent Statusbar & NavBar [upd:10.05.2013]

So..My friends asked me to write a manual how to make a transparent virtual buttons and status bar on JB. Ready? :angel:
Screenshots from my Sola JB eek:
{
"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 android.policy.jar and open android.policy\smali\com\android\internal\policy\impl\PhoneWindowManager.smali
Blue- and to find through search
Red - Remove
Green- Add
Code:
.line 2552
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemTop:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]top:I[/color]
.line 2553
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemRight:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]right:I[/color]
.line 2554
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->[color="blue"]bottom:I[/color]
[color="red"] .line 2555
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_0
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 2557
:goto_0
return v0
.line 2556
:cond_0
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_1
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_0
.line 2557
:cond_1
const/4 v0, 0x0
goto :goto_0[/color]
[COLOR="SeaGreen"][B]const/4 v0, 0x0
return v0[/B][/COLOR]
.end method
Compile android.policy.jar
2. Decompile SystemUI.apk and...
Open \SystemUI\res\values\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>
5A - Transparency.
Open \SystemUI\res\layout\navigation_bar.xml and correct the same
Code:
<item type="drawable" name="status_bar_background">#[B]5a[/B]000000</item>
3. Open SystemUI\smali\com\android\systemui\statusbar\phone\PhoneStatusBar.smali and find "IIIII", near the code should be.
Green- Add, Red- Remove:
Code:
const/16 v3, 0x7e3
const v4, 0x4800068
[B][COLOR="Green"] const/4 v5, -0x3[/COLOR][/B]
move v2, v1
[COLOR="Red"] move v5, v1[/COLOR]
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>([COLOR="Blue"]IIIII[/COLOR])V
Find "showNav" (second result in Notepad++) or "mPixelFormat:I", this code. Green- Add:
Code:
.line 417
.end local v3 #[COLOR="Blue"]showNav[/COLOR]:Z
:cond_1
:goto_2
[COLOR="Green"] const/4 v5, -0x3[/COLOR] [B][I](or [COLOR="Green"]const/4 v9, -0x3[/COLOR] for Z)[/I][/B]
iput v13, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="Blue"]mPixelFormat:I[/COLOR]
Compile SystemUI.apk.
upd: 10.05.2013
For the transparency of the open status bar (where the switches and notification)
Step 1:
Open PhoneStatusBar.smali (from SystemUI.apk) and find "PhoneStatusBar$FastColorDrawable". Immediately after that string is different, with "setBackground". Remove it. This line can appear twice.
Step 2:
We will adjust the transparency in the folder SystemUI\res\layout.Open-head status bar- status_bar_expanded_header.xml
Code:
android:background="@drawable/notification_header_bg"
change to
Code:
android:background="#[B]5A[/B]000000"
It is found in the file twice. Do everywhere.
The file status_bar_expanded.xml do by analogy, replace the reference to the background image on the color code. In this file, the background transparency notifications.
Download and Test​
Click to expand...
Click to collapse
Bugs:​- Transparency navibar only on the desktop \ status bar everywhere
- Works on stock launcher \ Apex, but the others were not checked​
Click to expand...
Click to collapse
Do not say thanks, press thanks:angel:
Please,
Can you just post modded android.policy.jar and systemui.apk? I'm having troubles with decompiling
How make it completly transparent?
Sent from my C6603 using xda premium
alvizu said:
How make it completly transparent?
Click to expand...
Click to collapse
5A=>00
mmamedov said:
Can you just post modded android.policy.jar and systemui.apk? I'm having troubles with decompiling
Click to expand...
Click to collapse
I'm not sure that these files from my smartphone you fit. (Sola)
But ...
Archive for CWM. Do not forget to backup!
Nope, in Xperia Z is in framework-res.apk, thx anyway
Sent from my C6603 using xda premium
Thank you will try
u should've mentioned that it's only for deodexed system :good:
alvizu said:
Nope, in Xperia Z is in framework-res.apk, thx anyway
Click to expand...
Click to collapse
Not...:angel: Transparency of the whole system to do in \framework-res.apk\res\values\styles.xml, But it looks awful in applications. Background is taken from the wallpaper on your desktop.
What value would you use to achieve around 10-20% transparency?
fcb13 said:
What value would you use to achieve around 10-20% transparency?
Click to expand...
Click to collapse
Use this:
2,55 х (100-20%)=204
Find 204 in image= CC
This 20% transparency:angel:
I get a little confused, so many with C6603 chatting here.
Anyway, can you make it work for Xperia V (LT25i) with .140 firmware and give a download link to be flashed with CWM, Please?
Spaun_Studio said:
Use this:
2,55 х (100-20%)=204
Find 204 in image= CC
This 20% transparency:angel:
Click to expand...
Click to collapse
Im confused, how did you get that number of 204
datagubben said:
I get a little confused, so many with C6603 chatting here.
Click to expand...
Click to collapse
They may have changed the product model to use social life...like I have done in my rom...
Spaun_Studio said:
5A=>00
I'm not sure that these files from my smartphone you fit. (Sola)
But ...
Archive for CWM.
Click to expand...
Click to collapse
Thanks, but not working( my systemui is changed, but it's still not transparent. I will try to do by myself :fingers-crossed: .
Thank you for easy manual!
Dear Spaun, here is my Lt29i system file, please make a transparent status bar for me? Thank alot :fingers-crossed:
https://docs.google.com/file/d/0B0czuSfsIjehWVk1aTRGWEl2cDg/edit?usp=sharing
Edited
Sorry, i'm upload wrong file
so sad.:crying:
Im just a player ,not a dev.
I try my best to search how to decompile ,but I fail.
Help me ,please!
Please make it for me
Xperia V LT25i_4.1.2_9.1.A.1.140
http://www.mediafire.com/?fka0ja60vi90633
will dis mod enable navigation bar on phones dat doesnt have it before?
thanks...
help please..... i get smali error when recompiling!!!!
please dis is my decompiled SystemUI.apk in zip archieve, just unzip!!!! http://www12.zippyshare.com/v/18413360/file.html
please let me know what yhu edit.
whalesplaho said:
will dis mod enable navigation bar on phones dat doesnt have it before?
Click to expand...
Click to collapse
No, it is included in the framework. Therefore, if before that it was not, and never will.
ikarus_0209 said:
Dear Spaun, here is my Lt29i system file, please make a transparent status bar for me? Thank alot :fingers-crossed:
Click to expand...
Click to collapse
Can not download. On the other file storage, please.
knnam said:
Please make it for me
Xperia V LT25i_4.1.2_9.1.A.1.140
Click to expand...
Click to collapse
Wait, now let me do.
whalesplaho said:
help please..... i get smali error when recompiling!!!!
please dis is my decompiled SystemUI.apk in zip archieve, just unzip!!!!
.
Click to expand...
Click to collapse
I made all the changes and compiled.

{TUTORIAL}[How To] 4-Way Reboot + Theminig MediaTeK Devices - MTK & Low End Device

{TUTORIAL}[How To] 4-Way Reboot + Theminig MediaTeK Devices - MTK & Low End Device
Hello Everyone,
First Of All and Everything, Let me Thank Some People First To made it possible what I am posting Today.
Credits​@iBotPeaches - Without Him Decompiling and Recompiling any apk is a dream. So we must thank him for this (ApkTool).
@Ticklefish - For His Wonderful Tool TMA. Just loving to work with that at ease,
@Adi Aisiteru Reborn - A Wonderful Person, Very Helpful and have so many nice guides to go through and learn.
@majdinj- A wonderful Guide to get 4-way reboot method.
@bombaybadboy - A nice person and a really a nice contributor to this community.
@joehanh88 - A Good Guide to follow and will help you in everything you do.
@akash akya- A good friend who helped me in doing some nice thing for MediaTek Device and So many guides are also by him to follow with.
@ XDA Forum - Can't Say anything, As Its my school and being a student I will never like to hear anything wrong related to it.
@ To All Other Dev Who Made It possible or If I am including anything from yours so please PM to mention your name in Credits. Please....
Now Let's Star With this Guide :-
-: Transparent Status bar & Notification Full Down:-
​
The Most Common thing to get first but then also a difficult thing to figure it out.
Decompile your SystemUI.apk and go to SystemUI/res/values--
So the First thing is Changing the "Drawables.xml" -
Find this
Code:
<item type="drawable" name="status_bar_background">#[COLOR=Red]3f000000[/COLOR]</item>
Change this RED Values with anything that you want to as accordingly with the HEX Color values.
Wait we are not done with that.
Now Copy these lines at the end of drawable before this line "</resources>"
Code:
<item type="drawable" name="notification_header_bg">#[COLOR=Red]88000000[/COLOR]</item>
<item type="drawable" name="notification_panel_bg">#[COLOR=Red]88000000[/COLOR]</item>
<item type="drawable" name="status_bar_bg_tile">#[COLOR=Red]00000000[/COLOR]</item>
Again Same Change RED values with what your need is.
Now Open "Colors.xml"
and change this line -
Code:
<color name="notification_panel_solid_background">#[COLOR=Red]3f000000[/COLOR]</color>
The Transparency Values are like :-
Code:
#00000000 - black with 100% transparency
#3F000000 - black with 75% transparency
#7F000000 - black with 50% transparency
#BF000000 - black with 25% transparency
Now You need to find some ".9.png" and delete it.
So Go to - SystemUI/res/drwable-hdpi (as per the resolution of your devices).
Notification_panel_bg.9.png
Status_bar_bg_tile.9.png
Notification_header_bg.9.png
Delete this image where ever you find it in your SystemUI.apk
"Notification_panel_bg.9.png"
Deleting this will give you your notification panel transparency.
Now Lets Move To Editing Smali. So now go to SystemUI/smali/com/android/systemui/statusbar/phone/
And Open "PhoneStatusBar$FastColorDrawable.smali"
Find this
Code:
.parameter "canvas"
And in that method change this line
Code:
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I
To This
Code:
const v0, 0x[COLOR=Red]00000000[/COLOR]
. Again change RED to the transparency level to suit your need.
Now Decompile your "android.policy.jar"
And go to android.poliy.jar.out/smali/com/android/internal/policy/impl/---
Open "PhoneWindowManager.smali"
There do like mentioned below.
Delete RED Lines
Code:
.line 2627 ------*******
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->bottom:I ------ Find This line.
[COLOR=Red]
.line 3061
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_1b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mStatusBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
.line 3063
:goto_1a
return v0
.line 3062
:cond_1b
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
if-eqz v0, :cond_26
iget-object v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mNavigationBar:Landroid/view/WindowManagerPolicy$WindowState;
invoke-interface {v0}, Landroid/view/WindowManagerPolicy$WindowState;->getSurfaceLayer()I
move-result v0
goto :goto_1a
[/COLOR]
.line 3063 ------- *****This line number can be different in yours .
:cond_26
const/4 v0, 0x0
[COLOR=Blue]goto :goto_1a[/COLOR] -------- Change this to "[COLOR=Blue]return v0[/COLOR]"
.end method
Make Sure that the line marked with "******" will have a difference of 3.
So After Doing this it will look like this
Code:
.line 2627
iget v0, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mSystemBottom:I
iput v0, p1, Landroid/graphics/Rect;->bottom:I
.line 2630
:cond_1
const/4 v0, 0x0
return v0
.end method
Now Recompile your SystemUI.apk & android.policy.jar and flash it.
4-Way Reboot Menu - Thanks to majdinj sir​
Decompile Your "android.policy.jar"
Go To android.poliy.jar.out/smali/com/android/internal/policy/impl/
Open GlobalActions$3.smali and find this-***
Code:
invoke-interface {v0, v1}, Landroid/view/WindowManagerPolicy$WindowManagerFuncs;->reboot(Z)V
If its there then proceed and if not then find above line in all files with name "GlobalActions$#.smali" where "#" will be number.
Ok you find that so lets proceed.
Now in the same folder open "GlobalActions.smali"
And Change the lines (There will be two lines only) -
Code:
Lcom/android/internal/policy/impl/GlobalActions$3
Please Note :- You have to find the number same as in which you find the above *** mentioned lines.
So please make sure for this.
Now Change the "3" or "#" to "99" where "#" is the number in which you find the *** lines.
Done That.
Now Open - "GlobalActions$SinglePressAction.smali"
And Do like given -
Add the BLUE lines in that like its given below
Code:
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/android/internal/policy/impl/GlobalActions;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation
[COLOR=Blue][COLOR=Black] -----------------------Make Sure the gap will be of 2(two) lines[/COLOR]
# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;[/COLOR]
[COLOR=Blue][COLOR=Black] -----------------------Make Sure the gap will be of 2(two) lines[/COLOR][/COLOR]
# instance fields
.field private final mIcon:Landroid/graphics/drawable/Drawable;
Now Find "#direct methods"
and paste these lines just after this and whithout any gap between "#direct methods" and the lines you pasted.
Code:
.method static constructor <clinit>()V
.registers 3
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "Normal Reboot"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string v2, "Soft Reboot"
aput-object v2, v0, v1
const/4 v1, 0x2
const-string v2, "Hard Reboot"
aput-object v2, v0, v1
const/4 v1, 0x3
const-string v2, "Recovery"
aput-object v2, v0, v1
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method
Now Download the given zip file and extract it. Copy all the files of the zip to -
"android.poliy.jar.out/smali/com/android/internal/policy/impl/ here" (here=files downloaded from this guide).
Done That. Now Recompile it and Flash it. Make sure to make a backup before you flash any MOD.
You Successfully Modded these things then Don't Forget To Hit "THANKS" Button for all the persons mentioned in the "CREDITS" section and to Me Also p) and Rate This Thread 5 star.
If you Got in Trouble then post it here. I will be there to help you out. I work as machine but very Unfortunate to say that I am also a human being and I too have Office work, personal life, friends, families, etc. So please have patience. The Time I will see your post, I promise, I will try my best to help you out.
Need More Guides- Find those in post #3.
Want To See My Contributions [ SuperDroid-BOND ]
Though I know, I haven't contributed much to the Community, but here are few of my Works:-
Older Ones (Till 2015)
External Apps Modded :-
SlimKat Camera for CM11 & CM12 ROMs
ROM :-
TURBO-Zet™ ROM for Micromax A110
SLT-Nexus-TSUNAMI for Micromax A110
SLT-HYBRID-Rainbow for Micromax A110
RECOVERY :-
Carliv Touch Recovery & CWM Recovery 6.0.4.0 for Micromax A110 | Cynus T2 | Wiko Cing King
Cannibal Open Touch [COT] Recovery for Micromax A110 | Cynus T2 | Wiko Cing King
MODS :-
1) Sony Xperia Small App For 4.2.2
2) Sony Small Apps For 4.1.1
3) The Hybrid-UI MOD
4) The Transparency MOD
5) The Lockscreen MOD
GUIDES :-
1) The Power Menu + Screenshot GUIDE
2) The 4-Way Reboot Menu Guide
3) The Extra Theme to Device and Moving Toggles to Bottom
#@# My Dev-Host Account
Newer Ones [Since 2017]
MODs :-
1) Sultan SnapCam
ROMs :-
1) Vanir AOSP for OnePlus 3/T Unified
2) ColtOS for OnePlus 3/T Unified
Usefull Links - For MediaTek Buddies & Other Low End Devices
1) MTK Referrence Thread By @akash akya
2) Moving Toggles To the Bottom of Pull Down Menu By BOND1987.
More Will be Added After wards. Just Have Patience......:victory::victory::victory:
BOND1987 said:
1) MTK Referrence Thread By @akash akya
2) Moving Toggles To the Bottom of Pull Down Menu By BOND1987.
More Will be Added After wards. Just Have Patience......:victory::victory::victory:
Click to expand...
Click to collapse
good one... :good:
small tip, also make sure in dimensions (res/values/dimen.xml) :
Code:
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
else transparency look bit odd...
Nice work m8 and a well put together guide, here is your first 5☆ :thumbup:
Sent from my GT-I9100 using xda premium
bombaybadboy said:
Nice work m8 and a well put together guide, here is your first 5☆ :thumbup:
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
All of your works sir but with MTK modification.
akash akya said:
good one... :good:
small tip, also make sure in dimensions (res/values/dimen.xml) :
Code:
<item type="dimen" name="status_bar_icon_drawing_alpha">100.0%</item>
else transparency look bit odd...
Click to expand...
Click to collapse
Will add that also brother. I know it's auto dimming feature by "daxgirl".
""Hitting Thanks Don't Cost You Anything, then, Why You All Are Getting Bothered in Doing So. Hitting Thanks Increases My Motivation to Work for this Community....""
Hi Bond, Very nice guide.. Now i'll also give it a try.. :good:
Implementing Auto-Close SystemUI feature
@ Devs @BOND1987 , @akash akya ,
There is no need to edit any thing else but only systemuiservice.smali.....
I have taken these resources from Suvi v12 rom by bsuhas. So actual credits to bsuhas
Just Replace your entire OnClick Method by the below method:-
Code:
[B][COLOR="black"].method public [COLOR="red"]SettingsButton[/COLOR](Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 2431
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 2432
const-string v1, "[COLOR="Red"]com.android.settings[/COLOR]"
const-string v2, "[COLOR="red"]com.android.settings.Settings[/COLOR]"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v2, 0x1000
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
const-string v1, "statusbar"
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/StatusBarManager;
[COLOR="red"]invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V[/COLOR]
.line 1720
return-void
.end method[/COLOR][/B]
and then make the following changes
* replace red ones with the following -
in the 1st line, give any name to the button u want to define . eg:- .method public ProfileButton(Landroid/view/ViewV
in const-string v1, " * put target class name here*
in const - string v2, " * put the target class name as well as an activity to call it *
for eg:-
in const - string v1 ----- target class is to call the complete app ---------> com.android.contacts
and in const - string v2 ----- add package name + an activity to call it --------> com.android.contacts.activities.PeopleActivity
Lets take an example for defining a method and calling it . i'll call Settings here
Code:
.method public [COLOR="red"]settingsButton[/COLOR](Landroid/view/View;)V
.locals 3
.parameter "v"
.prologue
.line 2431
new-instance v0, Landroid/content/Intent;
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
.line 2432
const-string v1, "[COLOR="red"]com.android.settings[/COLOR]"
const-string v2, "[COLOR="red"]com.android.settings.Settings[/COLOR]"
invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
const/high16 v2, 0x1000
invoke-virtual {v0, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;
move-result-object v0
.line 2433
invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
const-string v1, "statusbar"
invoke-virtual {p0, v1}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/app/StatusBarManager;
invoke-virtual {v0}, Landroid/app/StatusBarManager;->collapse()V
.line 1720
return-void
.end method
after this we have to call it on clicking a tile . so lets define it in the quickpanel_quick_settings_space.xml
Add this wherever you want the tile to appear .
Code:
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tile_toggle" android:layout_width="125.0px" android:layout_height="150.0px" android:layout_weight="1.0">
<Button android:layout_gravity="center_horizontal" android:background="@drawable/set" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR="Red"][SIZE="4"]android:onClick="settingsButton"[/SIZE][/COLOR] />
<TextView android:textSize="14.0dip" android:textColor="#ffffffff" android:gravity="center" android:background="#00000000" android:layout_width="240.0px" android:layout_height="wrap_content" android:layout_marginBottom="3.0px" android:text="Settings" android:singleLine="true" android:layout_alignParentBottom="true" />
</RelativeLayout>
Video to Confirm it working. :highfive:
Sorry if the above explaination is too long :fingers-crossed::fingers-crossed:
easy & nice tut...
@BOND1987
-: Transparent Status bar & Notification Full Down:-
Click to expand...
Click to collapse
4-Way Reboot Menu - Thanks to majdinj sir
Click to expand...
Click to collapse
I've successfully made my own transparent statusbar & 4 way rebooter according to ur guide & works very charm on my stock deodex rom.
thanks alot bro... :good::good:
1 question: how to increase statusbar height?
sir
recovery reboot doesn't work please help
Hi, I tried the 4-way reboot menu and it just replaced the shutdown function on the dialog box. It says reboot, but when I tap it, phone shutsdown. I'm on MT6575 running GB 2.3.6 which doesn't have reboot/restart function.
iZLeeP said:
Hi, I tried the 4-way reboot menu and it just replaced the shutdown function on the dialog box. It says reboot, but when I tap it, phone shutsdown. I'm on MT6575 running GB 2.3.6 which doesn't have reboot/restart function.
Click to expand...
Click to collapse
OK brother,
Upload you android policy. Jar and I'll try to solve this in my free time.
WinchyHanepp said:
recovery reboot doesn't work please help
Click to expand...
Click to collapse
Brother,
Regarding your problem, I asked my ""MAGIC BOWL"" that what's the problem, but....
Come on Guys,
I'm not a astrologer to judge what's gone wrong. I need logs and apps for checking what's the problem.
Sent from my A110 using Tapatalk
SuperDroid-BOND said:
OK brother,
Upload you android policy. Jar and I'll try to solve this in my free time.
Attached file as requested. Thanks mate.
Click to expand...
Click to collapse
Hey @SuperDroid-BOND sir... I tried for transparency but when i recompile the apk then gets this error.. Please can you help me.. Hope you will help me..
See error here :::-
{
"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"
}
Abhinav_Rocks said:
Hey @SuperDroid-BOND sir... I tried for transparency but when i recompile the apk then gets this error.. Please can you help me.. Hope you will help me..
See error here :::-
Click to expand...
Click to collapse
Brother,
You have mentioned notification_header_bg two times in your drawable.xml inside the values folder.
Try deleting it. It will recompile easily.
Sent from my A110 using Tapatalk
SuperDroid-BOND said:
Brother,
You have mentioned notification_header_bg two times in your drawable.xml inside the values folder.
Try deleting it. It will recompile easily.
Sent from my A110 using Tapatalk
Click to expand...
Click to collapse
No sir.. Its only one time, See ::
Abhinav_Rocks said:
No sir.. Its only one time, See ::
Click to expand...
Click to collapse
If it's not there then how apktool is giving it's entries 2 times at line number 3 and 14.
If it's not there then get to compile it and if error occurs then give screenshot of the full error.
Sent from my A110 using Tapatalk
SuperDroid-BOND said:
If it's not there then how apktool is giving it's entries 2 times at line number 3 and 14.
If it's not there then get to compile it and if error occurs then give screenshot of the full error.
Sent from my A110 using Tapatalk
Click to expand...
Click to collapse
Sorry sir i m doing mistake.. really sorry.. mistake is that you say.. sorry again.. and now SystemUI.apk is recompiling done..
But in jar file recompiling this error, please help me out ::-
Here is my android.policy.jar file ::- Download
---------- Post added at 01:46 AM ---------- Previous post was at 12:54 AM ----------
Now trying once again.. working awesome.. Thanks a lot bro.. I m beginner and you are GURU of mine and i m CHELA.. I have learn so much from you.. Thanks again sir for this awesome thread with simple steps..
---------- Post added at 02:41 AM ---------- Previous post was at 01:46 AM ----------
Sir.. Can you please tell me whats the work of these lines.. please sir.. and check screen that i m right or wrong..?? If i m wrong then please guide me.. Thanks in advance sir..
Sir please reply.. its only take 2 mint.. Please..
SuperDroid /QUOTE said:
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[27,4] Error for input '.parameter': Invalid directive
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,4] Error for input '.parameter': Invalid directive
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[43,4] Error for input '.parameter': Invalid directive
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99$1.smali[42,15] mismatched input '"dialog"' expecting END_METHOD_DIRECTIVE
..\Decompiled_jar\android.policy\com\android\internal\policy\impl\GlobalActions$99.smali[78,4] Invalid literal value: 260. Low 16 bits must be zeroed out.
hmmm any advice?
Click to expand...
Click to collapse

[MOD][GUIDE][GB] WIFI & BT ON/OFF Switches on Settings ***HOT***

Hey dudes!
Ace-I Team is back with a new guide. One of the most advanced ICS Features now comes on Gingerbread! Admit it, Everyone has been attracted by this feature! That's why : THIS IS THE MOST WANTED GUIDE FOR GINGERBREAD DEVICES EVER!!
Wifi and bluetooth ON/OFF Switches on Settings!
Requirements :
-APK Multi Tool
-Notepad++
-Sources on the attachments
-High Smali & xml knowledge
-Brain
-Patience
Click to expand...
Click to collapse
Let's go!
PART I
1. Decompile Settings.apk
2. Extract the sources. Copy switch_holo_dark.xml from sources and paste it on drawable folder.
3. Copy the PNGs from the sources and paste them on drawable-mdpi folder.
4. Copy icon_checkbox_preference.xml from the sources and paste it on layout folder.
5. Go to res/values/styles.xml.
Paste this text on the end of the file before
Code:
<style name="Switch">
<item name="android:checkboxStyle">@style/Widget.CompoundButton.CheckBox.Holo.Dark</item>
</style>
<style name="Widget.CompoundButton.CheckBox.Holo.Dark" parent="@android:style/Widget.CompoundButton.CheckBox">
<item name="android:button">@drawable/switch_holo_dark</item>
</style>
6. Go to res/values/public.xml
Paste this text on the end of he file before
Code:
<public type="layout" name="icon_checkbox_preference" id="0x7f03005a" />
</resources>
7. Go to xml/Settings.xml
Replace this :
{
"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"
}
With this :
Code:
<com.android.settings.IconCheckBoxPreference android:title="WIFI" android:key="toggle_wifi" settings:icon="@drawable/ic_settings_wireless" />
<com.android.settings.IconCheckBoxPreference android:title="Bluetooth" android:key="toggle_bluetooth" settings:icon="@drawable/ic_settings_bluetooth2" />
After editing it will look like this :
8. Recompile Settings.
Click to expand...
Click to collapse
PART II
1. Decompile Settings.apk again
2. Go to smali/com/android/settings
3. Copy icon_checkbox_preference.smali from the source on the that folder.
4. Open R$Styleable
- Find :
Code:
# static fields
.field public static final BatteryHistoryChart:[I
Below that paste :
Code:
.field public static final IconPreference:[I
.field public static final IconPreference_icon:I
Click to expand...
Click to collapse
- Find :
Code:
const v1, 0x7f010001
aput v1, v0, v2
Below that paste :
Code:
sput-object v0, Lcom/android/settings/R$styleable;->IconPreference:[I
.line 6450
new-array v0, v3, [I
const v1, 0x7f010001
aput v1, v0, v2
After the edit it will look like this :
Code:
const v1, 0x7f010001
aput v1, v0, v2
sput-object v0, Lcom/android/settings/R$styleable;->IconPreference:[I
.line 6450
new-array v0, v3, [I
const v1, 0x7f010001
aput v1, v0, v2
sput-object v0, Lcom/android/settings/R$styleable;->IconPreferenceScreen:[I
Click to expand...
Click to collapse
5. Open Settings.smali
Below # instance fields paste this text :
Code:
.field private mBtEnabler:Lcom/android/settings/bluetooth/BluetoothEnabler;
.field private mWifiEnabler:Lcom/android/settings/wifi/WifiEnabler;
2 Lines Above # instance fields paste this text :
Code:
# static fields
.field private static final KEY_TOGGLE_BLUETOOTH:Ljava/lang/String; = "toggle_bluetooth"
.field private static final KEY_TOGGLE_WIFI:Ljava/lang/String; = "toggle_wifi"
After edition it will look like this :
Code:
# static fields
.field private static final KEY_TOGGLE_BLUETOOTH:Ljava/lang/String; = "toggle_bluetooth"
.field private static final KEY_TOGGLE_WIFI:Ljava/lang/String; = "toggle_wifi"
# instance fields
.field private mBtEnabler:Lcom/android/settings/bluetooth/BluetoothEnabler;
.field private mWifiEnabler:Lcom/android/settings/wifi/WifiEnabler;
.field private mIntentReceiver:Landroid/content/BroadcastReceiver
;
Click to expand...
Click to collapse
- Find :
Code:
invoke-virtual {p0, v4}, Lcom/android/settings/Settings;->addPreferencesFromResource(I)V
- Below that paste this text :
Code:
const-string v0, "toggle_wifi"
invoke-virtual {p0, v0}, Lcom/android/settings/Settings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
check-cast v0, Landroid/preference/CheckBoxPreference;
new-instance v1, Lcom/android/settings/wifi/WifiEnabler;
invoke-direct {v1, p0, v0}, Lcom/android/settings/wifi/WifiEnabler;->(Landroid/content/Context;Landroid/preference/CheckBoxPreference;)V
iput-object v1, p0, Lcom/android/settings/Settings;->mWifiEnabler:Lcom/android/settings/wifi/WifiEnabler;
const-string v0, "toggle_bluetooth"
invoke-virtual {p0, v0}, Lcom/android/settings/Settings;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
check-cast v0, Landroid/preference/CheckBoxPreference;
new-instance v1, Lcom/android/settings/bluetooth/BluetoothEnabler;
invoke-direct {v1, p0, v0}, Lcom/android/settings/bluetooth/BluetoothEnabler;->(Landroid/content/Context;Landroid/preference/CheckBoxPreference;)V
iput-object v1, p0, Lcom/android/settings/Settings;->mBtEnabler:Lcom/android/settings/bluetooth/BluetoothEnabler;
- Find :
Code:
.method protected onPause()V
- Replace the whole method with this method :
Code:
.method protected onPause()V
.locals 1
invoke-super {p0}, Landroid/preference/PreferenceActivity;->onPause()V
iget-object v0, p0, Lcom/android/settings/Settings;->mWifiEnabler:Lcom/android/settings/wifi/WifiEnabler;
invoke-virtual {v0}, Lcom/android/settings/wifi/WifiEnabler;->pause()V
iget-object v0, p0, Lcom/android/settings/Settings;->mBtEnabler:Lcom/android/settings/bluetooth/BluetoothEnabler;
invoke-virtual {v0}, Lcom/android/settings/bluetooth/BluetoothEnabler;->pause()V
iget-object v0, p0, Lcom/android/settings/Settings;->mIntentReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {p0, v0}, Lcom/android/settings/Settings;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
.line 78
return-void
.end method
- Find :
Code:
.line 65
invoke-super {p0}, Landroid/preference/PreferenceActivity;->onResume()V
- Below that paste this text :
Code:
iget-object v1, p0, Lcom/android/settings/Settings;->mWifiEnabler:Lcom/android/settings/wifi/WifiEnabler;
invoke-virtual {v1}, Lcom/android/settings/wifi/WifiEnabler;->resume()V
iget-object v1, p0, Lcom/android/settings/Settings;->mBtEnabler:Lcom/android/settings/bluetooth/BluetoothEnabler;
invoke-virtual {v1}, Lcom/android/settings/bluetooth/BluetoothEnabler;->resume()V
Click to expand...
Click to collapse
8. Follow Part III by iamareebjamal
Click to expand...
Click to collapse
Part III : Adding switched and disabling signature check
Adding Buttons in Settings.apk by custom style and Disabling Signature Verification
If you were successful in accomplishing the above procedure. Be happy, but not too much because the key part is left, and that is - Adding those custom ICS Buttons in Settings by overriding the default GB tickview. Or else, you will get checkboxes instead of Switches. You don't wanna do that? Do you?
Enough talking let's roll
Part III (a)
1. Open AndroidManifest.xml located in decompiled Settings.apk
2. Find this:
Code:
<activity android:label="@string/settings_label_launcher" android:name="Settings"
3. Modify it like this:
Code:
<activity android:theme="@style/Switch" android:label="@string/settings_label_launcher" android:name="Settings"
It means you have to add android:theme="@style/Switch" between <activity and android:label="@string/settings_label_launcher"
4. Save the file.
5. Now, as you have edited the AndroidManifest.xml . Android system won't accept your app and refuse to load it as its signature should be changed.
So, sign the recompile the apk and sign it
6. But again, there's one little problem. Android doesn't load system apps with modified signatures for stability of OS, so your app will disappear from app drawer and if you try to open it from any other source, it will say "App isn't installed"
So?
So, sign ALL system apps and framework apps with same key
...OR...
Follow the workaround in (b) part
Click to expand...
Click to collapse
You may have accomplished the above thing but still something needs to be done to complete the procedure. Believe me, it's the last thing
Android System doesn't accept the apks that are signed by default. So we, here, will render that option obsolete by editing some files.
Let's start
Part III (b)
1. Pull services.jar from /system/framework/
2. Extract it's classes.dex and decompile it via my ROM Tolls
3. Go to com/android/server/PackageManagerService.smali
4. Open it and search for
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
5. Look below it, you should see something like this
Code:
.prologue
.line 1936
if-nez p1, :cond_1
6. Add this below .line 1936
Code:
const/4 v6, 0x0
return v6
Finally, it should look like this:
Code:
.method checkSignaturesLP([Landroid/content/pm/Signature;[Landroid/content/pm/Signature;)I
.locals 7
.parameter "s1"
.parameter "s2"
.prologue
.line 1936
const/4 v6, 0x0
return v6
if-nez p1, :cond_1
7. Save the file and recompile classes.dex and then add it to services.jar
8. Now push services.jar and Settings.apk in their respective places and reboot the phone so that signature check changes are affected
9. Enjoy
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Sources
The source : http://www.mediafire.com/download.php?bvcj2fa8r1lv0h7
PNG source only :
- SGS3 : Adding ASAP
-JellyBean/Holo : Adding ASAP
F.A.Q
Q: SGS3 Switches are small even if the image is large enough?
Solution :
1. Go to Res/layout/icon_check box_preference.xml
2. Find android:layout_width="68.0 px"
3. Change it to "85.0 px"
4. Find android:layout_height="20.0px"
5. Change it to "40.0 px"
Actually changing those pixels will not resize the switch pngs. It will make height's and width's available space larger, therefore switches can be strechted easily on their original size.
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Q: On Part II, when editing .method onPause()V, should I delete only the title "method on pause()V" or from method on pause to .end method?
Solution :
You must replace whole method. Delete the on pause()V method then place the code I have written on the same place.
Click to expand...
Click to collapse
Screenshots:
SGS3
Jelly Bean
​
Credits:
Biggest biggest thanks and full credits to b16h22 for making this awesome mod and his open source heart to share it with us and guiding us through on how to accomplish it and giving us permissions to make this thread
loSconosciuto for Signature Verification Disabling Guide
Click to expand...
Click to collapse
Sniper Killer for starting this initiative
iamareebjamal for fixing the AndroidManifest to display the switches in Settings and applying idea of signature verification
Click to expand...
Click to collapse
Ace-i Team for bringing this to you
More UI Changes for Ace-i... Thanks @Sniper Killer :good:
.....
Give a screenshot of those Wifi & BT ON/OFF Switches on Settings in the OP... :fingers-crossed:
brijeshep said:
More UI Changes for Ace-i... Thanks @Sniper Killer :good:
.....
Give a screenshot of those Wifi & BT ON/OFF Switches on Settings in the OP... :fingers-crossed:
Click to expand...
Click to collapse
Y u only Thank him
Wait till the guide is complete
brijeshep said:
More UI Changes for Ace-i... Thanks @Sniper Killer :good:
.....
Give a screenshot of those Wifi & BT ON/OFF Switches on Settings in the OP... :fingers-crossed:
Click to expand...
Click to collapse
SS on the OP.
And btw, thank areeb too as he found the fix of the image. Follow the tut later. I will upload the sources when areeb will complete editing his post.
Cant wait
Sent from my GT-S5830i using xda premium
This is what i am talking about ...wooohoo
All the devs from ace-i section Rockz
Nice team work .
Thanks for the guide.
Sent from my GT-S5830i using xda app-developers app
brijeshep said:
More UI Changes for Ace-i... Thanks @Sniper Killer :good:
.....
Give a screenshot of those Wifi & BT ON/OFF Switches on Settings in the OP... :fingers-crossed:
Click to expand...
Click to collapse
Brijeshep, next version of Ace-i-Sure. Could you put this mod on your next version ROM? I'm got feeling excited!
Hohoho . Guys! Where is the sourses????
Sent from my GT-S5830i using xda premium
misha1996 said:
Hohoho . Guys! Where is the sourses????
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
**** my computer is broken I will fix it today and will upload sources
Sent from my GT-S5830i using Tapatalk 2
If we edit AndroidManifest.xml we must resign all apk of the rom.
If we not do it, app be work before first wipe. And it will work, if we install it from stokk app(settings for example) if we install it for clean system it will say "not installed"
Sent from my GT-S5830i using xda premium
misha1996 said:
If we edit AndroidManifest.xml we must resign all apk of the rom.
If we not do it, app be work before first wipe. And it will work, if we install it from stokk app(settings for example) if we install it for clean system it will say "not installed"
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Read my post again.
PS - Part III (b) to be specific
Oh....im noob noob noobest in english:banghead:
And i understand only part A
Else....is it be work with stock settings.apk??
Sent from my GT-S5830i using xda premium
---------- Post added at 06:53 PM ---------- Previous post was at 06:50 PM ----------
Also....can try do update-script with textkey, which be resign all apk, what install
Sent from my GT-S5830i using xda premium
misha1996 said:
If we edit AndroidManifest.xml we must resign all apk of the rom.
If we not do it, app be work before first wipe. And it will work, if we install it from stokk app(settings for example) if we install it for clean system it will say "not installed"
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
As @iamareebjamal has already mentioned,
iamareebjamal said:
Android System doesn't accept the apks that are signed by default. So we, here, will render that option obsolete by editing some files.
Click to expand...
Click to collapse
I'd suggest you to read Part III (b) of the guide.
Hope you got your answers.
What about stock settings.apk?
Sent from my GT-S5830i using xda premium
misha1996 said:
What about stock settings.apk?
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Not tested but you can give it a try.
Sent from my GT-S5830i using Tapatalk 2

[Guide][T/V]How to make your lockscreen FULL SCREEN

As we all know,the lockscreen of Xperia T and V is not full screen ,there's my method to make a full screen lokscreen.
Step1:decomplie your android.policy.jar use apktool
Step2: open KeyguardViewManager.smali use notepad2 or other editor,add the following code at the very end of this file
Code:
.method public setFullscreen(Z)V
.locals 2
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
if-nez p1, :cond_0
const/4 v0, 0x1
:goto_0
invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setFitsSystemWindows(Z)V
iget-object v0, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->requestFitSystemWindows()V
return-void
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
Step3: open LockPatternKeyguardView.smali add the following code at the very end of this file
Code:
.method private isFullscreen(Lcom/android/internal/policy/impl/KeyguardScreen;)Z
.locals 3
const/4 v1, 0x0
instance-of v2, p1, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;
if-eqz v2, :cond_0
move-object v0, p1
check-cast v0, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;
invoke-interface {v0}, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;->isFullscreen()Z
move-result v1
:cond_0
return v1
.end method
Step4: open KeyguardWindowController.smali add the code below
Code:
.method public abstract setFullscreen(Z)V
.end method
Step5: add the ExtendedKeyguardScreen.smali (attachment) to android.policy
Setp6:compile the jar file
Setp7:replace the UxpNxtLockScreen.apk with the one from LT29
enjoy!
all the best
Untitled Xperia Team
thanks for dis mate.... bin wanting dis for a while!!!
Doesn't work on my lt30p, get bootloops...
sj8023ld said:
As we all know,the lockscreen of Xperia T and V is not full screen ,there's my method to make a full screen lokscreen.
Step1:decomplie your android.policy.jar use apktool
Step2: open KeyguardViewManager.smali use notepad2 or other editor,add the following code at the very end of this file
Code:
.method public setFullscreen(Z)V
.locals 2
iget-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
if-nez p1, :cond_0
const/4 v0, 0x1
:goto_0
invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->setFitsSystemWindows(Z)V
iget-object v0, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
invoke-virtual {v0}, Landroid/widget/FrameLayout;->requestFitSystemWindows()V
return-void
:cond_0
const/4 v0, 0x0
goto :goto_0
.end method
Step3: open LockPatternKeyguardView.smali add the following code at the very end of this file
Code:
.method private isFullscreen(Lcom/android/internal/policy/impl/KeyguardScreen;)Z
.locals 3
const/4 v1, 0x0
instance-of v2, p1, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;
if-eqz v2, :cond_0
move-object v0, p1
check-cast v0, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;
invoke-interface {v0}, Lcom/android/internal/policy/impl/ExtendedKeyguardScreen;->isFullscreen()Z
move-result v1
:cond_0
return v1
.end method
Step4: open KeyguardWindowController.smali add the code below
Code:
.method public abstract setFullscreen(Z)V
.end method
Step5: add the ExtendedKeyguardScreen.smali (attachment) to android.policy
Setp6:compile the jar file
Setp7:replace the UxpNxtLockScreen.apk with the one from LT29
enjoy!
all the best
Untitled Xperia Team
Click to expand...
Click to collapse
Good work, please could you indicate the files to be modified in the file UxpNxtLockScreen.apk
thanks
working like a charm here..... just modded tha lockscreen to meet my needs though!
{
"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"
}
me n my gf.....
thanks for showing a result, but i'm not sure if i get it. for me it seems not fullscreen. isnt it your status bar at the top?
shown status bar=no fullscreen?
immerblind said:
thanks for showing a result, but i'm not sure if i get it. for me it seems not fullscreen. isnt it your status bar at the top?
shown status bar=no fullscreen?
Click to expand...
Click to collapse
seems dats how it works........ maybe OP ll give answers & how to hide status bar!
It`s seems this mod is for TX but not for T.
I have made android.policy.jar using this guide and have extracted android.policy.odex for the odex ROM on my Xperia T, and
the phone boots without problem with my (native) lockscreen - non-fullscreen. But with attached UxpNxtLockScreen.apk i have bootloops.
It seems for Xperia T we have to use another UxpNxtLockScreen.apk with the other parameters inside. Which one ? ...)
alex_307 said:
It`s seems this mod is for TX but not for T.
I have made android.policy.jar using this guide and have extracted android.policy.odex for the odex ROM on my Xperia T, and
the phone boots without problem with my (native) lockscreen - non-fullscreen. But with attached UxpNxtLockScreen.apk i have bootloops.
It seems for Xperia T we have to use another UxpNxtLockScreen.apk with the other parameters inside. Which one ? ...)
Click to expand...
Click to collapse
Odex rom? dnt think it ll work buddy...
nreuge said:
Doesn't work on my lt30p, get bootloops...
Click to expand...
Click to collapse
even on my lt30p
maybe, the file that causes the bootloop is ExtendedKeyguardScreen.smali... any solution?
alex_307 said:
It`s seems this mod is for TX but not for T.
I have made android.policy.jar using this guide and have extracted android.policy.odex for the odex ROM on my Xperia T, and
the phone boots without problem with my (native) lockscreen - non-fullscreen. But with attached UxpNxtLockScreen.apk i have bootloops.
It seems for Xperia T we have to use another UxpNxtLockScreen.apk with the other parameters inside. Which one ? ...)
Click to expand...
Click to collapse
juniorbryant said:
even on my lt30p
maybe, the file that causes the bootloop is ExtendedKeyguardScreen.smali... any solution?
Click to expand...
Click to collapse
Same for me, with attached UxpNxtLockScreen.apk i get bootloops...
Update :
- Flashing UxpNxtLockScreen.apk alone does not cause bootloops
- Flashing moded android.policy.jar alone does not cause bootloops
- Flashing both causes bootloops...
nreuge said:
Same for me, with attached UxpNxtLockScreen.apk i get bootloops...
Update :
- Flashing UxpNxtLockScreen.apk alone does not cause bootloops
- Flashing moded android.policy.jar alone does not cause bootloops
- Flashing both causes bootloops...
Click to expand...
Click to collapse
guess dia is something wrong.
whalesplaho said:
guess dia is something wrong.
Click to expand...
Click to collapse
During compiling android.policy.jar, I get the warning : "Could not find ressources". Maybe the cause of the problem...
It's normal it cannot find resources, because there are no resources, because it's jar, not apk.
i do use ApkMultiTool to decompile jar files...... nreuge yhu mind posting yur steps here?
i use Thebyani_baksmail-smali tool and i obtain bootloop without any error during compiling of android.policy.jar...
whalesplaho said:
i do use ApkMultiTool to decompile jar files...... nreuge yhu mind posting yur steps here?
Click to expand...
Click to collapse
I use apktool and get no error while decompiling and recompiling.
If someone succeed in getting full lock screen with no bootloops applying this how-to on xperia T, just tell me.
nreuge said:
I use apktool and get no error while decompiling and recompiling.
If someone succeed in getting full lock screen with no bootloops applying this how-to on xperia T, just tell me.
Click to expand...
Click to collapse
lets see whether another person ll get it working....
whalesplaho said:
lets see whether another person ll get it working....
Click to expand...
Click to collapse
This MOD( http://forum.xda-developers.com/showthread.php?t=2421770 ) works on my T, Only there is no navi bar when on Vertical screen.
davidment said:
This MOD( http://forum.xda-developers.com/showthread.php?t=2421770 ) works on my T, Only there is no navi bar when on Vertical screen.
Click to expand...
Click to collapse
no nav bar in landscape mode here but status bar didnt occupy all, dere was a little space remaining!

[Guide]Move lidroid toggles freely

First this is not my work. original thread http://forum.xda-developers.com/showthread.php?t=1952943
credits
@dcsms original poster
@samsoul16 the one i pulledout the codes from his mod
Steps
1.decompile systemUI.apk
2. go to public.xml... find the last id and add one more... in my case the last id is 0x7f090028 ....and then i add one id with name="lidroid" id="0x7f090029"
3. then open ids.xml and add new id name lidroid and give
it false value.
4. open statusbarservice.smali paste these code below #instance fields
Code:
.field powerwidget:Landroid/widget/LinearLayout;
5. on the statusbarservice.smali ...go to .line 334 and paste this below thoose group's line
Code:
.line 335
const v26, 0x7f090029 //these id must define in public.xml and ids.xml also
move-object v0, v10
move/from16 v1, v26
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v26
check-cast v26, Landroid/widget/LinearLayout;
move-object/from16 v0, v26
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
6. then search for .line 418 and make it look like this
Code:
.line 418
.local v12, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v12}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
move-object/from16 v26, v0
const/16 v27, 0x0
move-object/from16 v0, v26
move-object v1, v12
move/from16 v2, v27
invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V
7.then on statusbar_expanded.xml and statusbar_expanded_dual_sim.xml. paste this in the place u want
Code:
<LinearLayout android:orientation="vertical" android:id="@id/lidroid" android:layout_width="fill_parent" android:layout_height="wrap_content" />
then recompile apk and push
this have been tested and worked on galaxy y duos and y pro duos
{
"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"
}
any questions ????
Oh...I was going to post it ... anyway nice guide.....i used @PineappleOwl's SystemUI to move lidroid
Himan Boro said:
Oh...I was going to post it ... anyway nice guide.....i used @PineappleOwl's SystemUI to move lidroid
Click to expand...
Click to collapse
I posted it before u
I would appreciate if u hit thanks.
Sent from my GT-B5512 using Carbon rom
acermedo said:
I posted it before u
I would appreciate if u hit thanks.
Sent from my GT-B5512 using Carbon rom
Click to expand...
Click to collapse
earn thnkx bro..dnt ask it lioe tht
acermedo said:
First this is not my work. original thread http://forum.xda-developers.com/showthread.php?t=1952943
credits
@dcsms original poster
@samsoul16 the one i pulledout the codes from his mod
Steps
1.decompile systemUI.apk
2. go to public.xml... find the last id and add one more... in my case the last id is 0x7f090028 ....and then i add one id with name="lidroid" id="0x7f090029"
3. then open ids.xml and add new id name lidroid and give
it false value.
4. open statusbarservice.smali paste these code below #instance fields
Code:
.field powerwidget:Landroid/widget/LinearLayout;
5. on the statusbarservice.smali ...go to .line 334 and paste this below thoose group's line
Code:
.line 335
const v26, 0x7f090029 //these id must define in public.xml and ids.xml also
move-object v0, v10
move/from16 v1, v26
invoke-virtual {v0, v1}, Lcom/android/systemui/statusbar/ExpandedView;->findViewById(I)Landroid/view/View;
move-result-object v26
check-cast v26, Landroid/widget/LinearLayout;
move-object/from16 v0, v26
move-object/from16 v1, p0
iput-object v0, v1, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
6. then search for .line 418 and make it look like this
Code:
.line 418
.local v12, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v12}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/systemui/statusbar/StatusBarService;->powerwidget:Landroid/widget/LinearLayout;
move-object/from16 v26, v0
const/16 v27, 0x0
move-object/from16 v0, v26
move-object v1, v12
move/from16 v2, v27
invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V
7.then on statusbar_expanded.xml and statusbar_expanded_dual_sim.xml. paste this in the place u want
Code:
then recompile apk and push
this have been tested and worked on galaxy y duos and y pro duos
View attachment 2710461
any questions ????
Click to expand...
Click to collapse
Thankx to do this. I had wrote a whole guide on how to add all modes of my systemui to all ui's and not once but twice but lost the file due to pc issues both times so gave up. Was working on my own toggles and learning java but took a break on development since February now I have a moto g so this fone is with my mom. But still I gonna release the mod which I had made soon which has my own java made toggles and which don't need any Id comparison to add in other systemui + all other toggle mods u can get
Sent from my XT1033 using Tapatalk
samsoul16 said:
Thankx to do this. I had wrote a whole guide on how to add all modes of my systemui to all ui's and not once but twice but lost the file due to pc issues both times so gave up. Was working on my own toggles and learning java but took a break on development since February now I have a moto g so this fone is with my mom. But still I gonna release the mod which I had made soon which has my own java made toggles and which don't need any Id comparison to add in other systemui + all other toggle mods u can get
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
Waiting for your mod.
I'm sure it will be great and will help us a lot
Sent from my GT-B5512 using Carbon rom
is this gonna work for galaxy Y sir ? im desperately looking for similar guide like this
my problem is , every time i modded SystemUI.apk i lost my Status bar ... i dont know why :S on stock rom ..

Categories

Resources