[HOWTO] Enable 2G/3G Toggle from Statusbar/Launcher - G2 Android Development

* ARTICLES MADE IN MACHINE LG G3 ANDROID 4.4.2 MACHINE DO THE SAME AND FLEXIBLE THINKING.
Preparation:
computers
Preset apktool
You must know how to use apktool okay.
File LGPhone.apk and LGSystemUI.apk was taken in Rom deodex you want Mod okay.
Begin.
A. Working with files this most important LGPhone.apk okay.
1. Decompile LGPhone.apk out
2. Navigate to the path LGPhone / smali / com / android / phone
Find PhoneGlobals.smali open in Notepad + +
> Find the following keywords.
Code:
.field private final mMediaButtonReceiver:Landroid/content/BroadcastReceiver;
> Add the following line immediately below it.
Code:
.field private final mModeReceiver:Landroid/content/BroadcastReceiver;
> Find Next line after.
Code:
mReceiver:Landroid/content/BroadcastReceiver;
> Add the following line immediately below it.
Code:
.line 236
new-instance v0, Lcom/android/phone/NetworkModeReceiver;
invoke-direct {v0}, Lcom/android/phone/NetworkModeReceiver;-><init>()V
iput-object v0, p0, Lcom/android/phone/PhoneGlobals;->mModeReceiver:Landroid/content/BroadcastReceiver;
> Find next keyword.
Code:
registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
> Add the following line immediately below it.
Code:
.line 633
new-instance v0, Landroid/content/IntentFilter;
const-string v1, "com.android.phone.CHANGE_NETWORK_MODE"
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
iget-object v1, p0, Lcom/android/phone/PhoneGlobals;->mModeReceiver:Landroid/content/BroadcastReceiver;
invoke-virtual {p0, v1, v0}, Lcom/android/phone/PhoneGlobals;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
> Save PhoneGlobals.smali
3. NetworkModeReceiver Download this file to extract and copy all the files in the path LGPhone smali / smali / com / android / phone
4. Recompile the LGPhone.
5. Fixing what replaces it back old LGPhone.apk file.
-------- 2G/3G toggle mod Guide --------- Choimobile
B. How on LGSystemUI.apk
1. Decompile LGSystemUI.apk out
2. Navigate to the path LGSystemUI/smali/com/lge/quicksettings/
> Open QuicksettingsItemList.smali using Notepad + +
> Find and fix all the 2GOnlyHandler EcoHandler
> Save QuicksettingsItemList.smali back
3. Find LGsystemUI/res/values-xx/
> Open strings.xml by Notepad + +
> Sp_quicksettings_eco_mode_NORMAL edit> Eco mode <a> The 2G <
> Save the strings.xml
4. Find LGSystemUI/res/values
> Open bools.xml using Notepad + +
> Find eco edit keywords >false< >true< save.
5. Download the file, unzip
> Copy smali in LGSystemUI/smali/com/lge/quicksettings/handlers
> Copy image to LGSystemUI/res/drawable-xxhdpi
6. Recompile the LGSystemUI
Replace the following items in LGSystemUI/build/apk file into the root LGSystemUI.apk
- 2 image file in res/drawable-xxhdpi on LGSystemUI.apk/res/drawable-xxhdpi
- Resources.arsc on LGSystemUI.apk
- Classes.dex into LGSystemUI.apk
C. Copy LGPhone.apk and LGSystemUI.apk have to edit the system/app and set 644 memory and delete files LGPhone.odex LGSystemUI.odex go. Reboot the machine and see the results.
Note: The tutorial is done on LG G3 Android 4.4.2 on another machine thinking you have flexibility with each release and each code.
Mod Guide Choimobile 2G/3G toggle.
-Thank: chuc by choimobile.vn/forums
- source: http://choimobile.vn/threads/huong-dan-mod-toggle-2g-3g-2g-only-len-cac-may-android-lg.27391/

Great guide
Thanks

Seems not the same lines can be found on KK.
Also, LGPhone.apk is LGTeleService.apk on my ROM.
Also the lines on smali files are not totally the same.
Thanks for the guide though.

Hi, I know this is an old thread, but I was wondering if you would do "how to enable flashlight toggle"
I have a LG Gpro 240K running one of your lollipop roms. I would REALLY appreciate it.
:good::good::good::good::good:

hi please fix network toggle for lgsystemui and lgteleservice
hi please help
i can't do this changes to my rom
here is files you need
LGTeleService.apk
View attachment LGTeleService.apk
the network toggle is here but don't work ( it can't change network )
i spend a lot of time , i hope some one can fix it
actually can't understand what should i do with lgteleservice.apk ( how to add toggles to this apk?) how to add this codes to lgteleservice?
sorry for my bad english

hi please help
i can't do this changes to my rom
here is files you need
LGTeleService.apk
View attachment 4269150
the network toggle is here but don't work ( it can't change network )
i spend a lot of time , i hope some one can fix it
actually can't understand what should i do with lgteleservice.apk ( how to add toggles to this apk?) how to add this codes to lgteleservice?
sorry for my bad english

EAGLEBOOY said:
hi please help
i can't do this changes to my rom
here is files you need
LGTeleService.apk
View attachment 4269150
the network toggle is here but don't work ( it can't change network )
i spend a lot of time , i hope some one can fix it
actually can't understand what should i do with lgteleservice.apk ( how to add toggles to this apk?) how to add this codes to lgteleservice?
sorry for my bad english
Click to expand...
Click to collapse
hi i fixed it
you should change this line in build.prop
ro.build.user=cloudyfa
to
ro.build.user=matrix_neo
+++++++++++++++++++++++++++++++
this is because
in SystemUI\smali\com\lge\systemui
a file with this name "ModelFeature.smali" in lines 527 and 541
const-string v0, "matrix_neo"
const-string v0, "matrix_neo"
should same as line in build.prop
ro.build.user=*********

Related

[HOW TO] Extended Power Menu with no header (reboot / download / recovery)

[HOW TO] Extended Power Menu (reboot / download / recovery) with no header
This HOW TO is rewritten from a French tutorial (HERE) itself rewritten from a XDA tutorial (HERE, and modified using this other one : HERE
Thanks to :
Okarin
untermensch
PaoloM70
Click to expand...
Click to collapse
warnings :
- This tutorial is for people who know what they will do, a mistake can fit your phone unusable so ...
- A modification of system files is always a delicate operation, pay attention and do not rush
Click to expand...
Click to collapse
Prerequisites :
First and foremost, you must master the decompilation / recompilation of APK and JAR using APK_Manager and smali/baksmali.
Click to expand...
Click to collapse
Mod the power menu :
Here is the way to add the options "Reboot", "Recovery" and "Download" to the Power menu (long press the power button)
For this part, we will work on 2 files:
framework res.apk
android.policy.jar
Click to expand...
Click to collapse
You can decompile the first with APK Manager, and the second with baksmali.
1/ framework-res.apk :
Extract it with APK_Manager (extracted in /project folder)
a/ Then, before going any further, you will have to find three new .PNG images to be displayed in the power menu, and name them :
"ic_lock_reboot.png" for reboot menu
"ic_lock_recovery.png" to enter recovery
"ic_lock_download.png" for download Mode
Click to expand...
Click to collapse
Place these 3 images in the : APK_Manager/project/framework-res.apk/res/drawable-hdpi
where you will find the other pictures already in the menu concerned.
It is easier for beginners to add customised icons (like for power off, silent or plane modes icons )after recompilation, using 7zip for example. .
b/ With NotePad + +, edit the file " res/values/strings.xml "
Go to the end of the file, and add before the last line "</resources>", the three lines:
Code:
<string name="reboot_recovery">Recovery</string>
<string name="reboot_download">Download</string>
<string name="reboot">Reboot</string>
This should give you something like 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"
}
c/ Save your file.
d/ Now you can recompile the file "framework-res.apk" with APK Manager.
Remember that this is an APK system and delete the "keep/resources.arsc", since we have modified an XML file.
You will have a your moded apk here : "place-apk-here-for-modding/unsignedframework-res.apk"
Warning: You should not have errors when you re-compil. don't forget to add 3 new icons;
e/ using APK-Manager, decompil "place-apk-here-for-modding/unsignedframework-res.apk".
*Go to res/values/public.xml and edit with Notepad ++
*public.xml is auto-generated from others modifications during APK_MANAGER re-compilation. 6 new lines have been added, with 6 new Hex numbers. You will need these numbers later ...
Look for :
Code:
<public type="string" name="reboot" id="[B]0x01040488[/B]" />
<public type="string" name="reboot_recovery" id="[B]0x01040489[/B]" />
<public type="string" name="reboot_download" id="[B]0x0104048a[/B]" />
and for :
Code:
<public type="drawable" name="ic_lock_reboot" id="[B]0x010803d2[/B]" />
<public type="drawable" name="ic_lock_recovery" id="[B]0x010803d3[/B]" />
<public type="drawable" name="ic_lock_download" id="[B]0x010803d4[/B]" />
f/ Now you just have to rename "place-apk-here-for-modding/unsignedframework-res.apk" to "framework-res.apk" and voila!
Edit : never sign a system File using APK_Manager.
Here is the first part ended.
A tip, try this file on your phone, if it restarts fine, then the mod is correct, otherwise you can start over
It is important to test step by step, because it lets you know exactly from witch file comes the error.
2/ Now, we attack the second file "android.policy.jar".
Once decompiled with baksmal, edit the "out/com/android/internal/policy/impl/GlobalActions.smali."
Caution: Do not confuse it with the file "GlobalActions$Action.Smali"
a/ Find the line ".method private createDialog()Landroid/app/AlertDialog;"
then a few lines below, replace "const/4 v9, 0x4" with "const/4 v9, 0x7".
This line indicates the number of menu entries of extinction, we move from 4 to 7 (3 mor entries). You should have this after the changes made:
b/ Then find the line "
Code:
invoke-static {v0}, Lcom/google/android/collect/Lists;->newArrayList([Ljava/lang/Object;)Ljava/util/ArrayList;
" and insert just above:
Code:
const/4 v1, 0x4
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;
const v3, 0x10803d2
const v4, 0x1040488
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$8;-><init>(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$9;
const v3, 0x10803d3
const v4, 0x1040489
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$9;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x6
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$10;
const v3, 0x10803d4
const v4, 0x104048a
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$10;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
You will notice in the code, the previous hex numbers generated. You have to modify the hex numbers quoted with the hex numbers you found in step 2 after decompilation of unsignedframework-res.apk
Warning in this code, the hex numbers have a 0 in less after the "0x" like : 0x1234567... and not 0x011234567 like in string.xml[/COLOR]...
Please not in the code you just added the GlobalActions$8, GlobalActions$9, GlobalActions$10 : you will add files .smali with same name later. If in your firmware GlobalActions$8 is already existing, then modify the "$X" to follow last used number
To help, here's what you should have:
3/ If you want to remove the header of the extended power menu, not having to scroll,
a/ search for ".method private prepareDialog()",
then look a few lines below, you should find "const v4, 0x104014a"
where This hexadecimal digit corresponds to the entry "<public type="string"name="global_actions" id="0x0104014a" /> in the "public.xml" file, which itself refers to the text of the menu in" string.xml " :
b/ find the corresponding hexadecimal number 0xXXXXX to the entry "<string name="config_tether_apndata" />" in the "string.xml" file. This entry has no text.
Now replace in "const v4, 0x104014a" with "const v4, 0xXXXXX," so it will not show anything in the power menu.
Save the file.
c/ Come on, we're almost there ...
Now copy the "out/com/android/internal/policy/impl/GlobalActions$4.Smali" to "out/com/android/internal/policy/impl/GlobalActions$8.Smali".
We choose #4 because it is one that contains the shutdown of the phone. We will rename it 8 because it's 8 in the next free issue ...
Remember this if ever in a future version of the files they are change.
d/ Now open the new file "out/com/android/internal/policy/impl/GlobalActions$8.Smali" and replace in, all occurrences of "\GlobalActions$4" with "\GlobalActions$8"
Then, Replace :
Code:
const/4 v1, 0x1
invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V
With :
Code:
const/4 v1, 0x1
const-string v2, "now"
invoke-static {v0, v2, v1}, Lcom/android/internal/app/ShutdownThread;->reboot(Landroid/content/Context;Ljava/lang/String;Z)V
e/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$9.Smali"
Open it and replace in, all occurrences of "\GlobalActions$8" with "\GlobalActions$9
and
const-string v2, "now" with const-string v2, "recovery"
f/ Save the file and copy it to "out/com/android/internal/policy/impl/GlobalActions$10.Smali"
Open it and replace in, all occurrences of "\GlobalActions$9" with "\GlobalActions$10
and
const-string v2, "recovery" with const-string v2, "download"
Save the file and then ... compile it all!
The result, you will see that I also forgot to replace an icon:
Thanks you! finally someone willing to write a tutorial on this.
great tutorial.
thanx, we all need help sometimes
Excellent. Now for a tutorial on how to get the mobile data toggle in the notification bar and we can all build custom roms.
Sent from my GT-I9100 using Tapatalk
Wow, u really went the whole 9 yards explaining this, thanks, as always grateful for ur sharing....
Seems like you put a lot of time and effort in this post.
Very good and clear instructions on something I wanted to add to my custom rom for a long time. (without just adding some files)
Thank you very much.
No credit for the how to you copied this from?
what a shame
http://forum.xda-developers.com/showthread.php?t=811532
Nice guide. Two things when using apkmanager:
1) Never ever edit the public.xml
2) When Recompiling: Never sign system files. Copy their signature!
Sent from my GT-I9100 using XDA Premium App
designgears said:
No credit for the how to you copied this from?
what a shame
http://forum.xda-developers.com/showthread.php?t=811532
Click to expand...
Click to collapse
as Cognition user i can only agree with "my" developer, that most of the statings above are simply coppied - Ctrl+a--->Ctrl+V ---> well done
_JKay_ said:
Nice guide. Two things when using apkmanager:
1) Never ever edit the public.xml
2) When Recompiling: Never sign system files. Copy their signature!
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
If we don't edit Public.xml, how are going to achieve this? I keep getting errors while recompiling using apkmanager? They sometimes don't even extract the resources.arsc and throw a lot of errors.
I'm working on adding a few options in the settings apk and neither apkmanger nor apktool is letting me decompile settings apk. It always throws errors. I need to decompile to edit a few xml in values which i don't find if i unzip it with 7-zip or winrar! Editing smali files is not a prob for now!
Any solutions?
@ sicopat
All three options call the Shutdown thread and present the "Your phone will shutdown" dialog. How do we change this?
And i also want to add the subtext in all three options in the main options, where are those located?
Ghostbustersin said:
If we don't edit Public.xml, how are going to achieve this? I keep getting errors while recompiling using apkmanager? They sometimes don't even extract the resources.arsc and throw a lot of errors.
I'm working on adding a few options in the settings apk and neither apkmanger nor apktool is letting me decompile settings apk. It always throws errors. I need to decompile to edit a few xml in values which i don't find if i unzip it with 7-zip or winrar! Editing smali files is not a prob for now!
Any solutions?
Click to expand...
Click to collapse
public.xml is auto-generated! Try add a string or a png and compile then decompile again. You will see that the new resources has been added to the public.xml
The ids MUST be unique and increased by one! Its all done in the apktool!
designgears said:
No credit for the how to you copied this from?
what a shame
http://forum.xda-developers.com/showthread.php?t=811532
Click to expand...
Click to collapse
You are totaly right.
I didn't find lines to modify,
I just built a new How To, from a french one I found here : http://www.galaxys-team.fr/viewtopic.php?f=6&t=14562
I believe this french How To took its inspiration from this thread : http://forum.xda-developers.com/showthread.php?t=811532
I didn't found this thread myself, you found it for me.
I finished to write this thread at 1h30 AM and I am going just now correct this mistake ...
Sorry for this
_JKay_ said:
Nice guide. Two things when using apkmanager:
1) Never ever edit the public.xml
2) When Recompiling: Never sign system files. Copy their signature!
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
1/ Why never edit public.xml ?
2/ You are right for that
_JKay_ said:
public.xml is auto-generated! Try add a string or a png and compile then decompile again. You will see that the new resources has been added to the public.xml
The ids MUST be unique and increased by one! Its all done in the apktool!
Click to expand...
Click to collapse
Ok but i never had errors using this How To and so, modifing public.xml.
But I will add your recommandation for people to try this How To, without modifing public.xml.
Thanks
sicopat said:
I insist on it here: only perform additions, never modify the images during the decompilation / recompilation of APK with APK_Manager.
Thanks
Click to expand...
Click to collapse
Why this statement? I'd rather say ONLY edit PNGs when decompiled!
_JKay_ said:
Why this statement? I'd rather say ONLY edit PNGs when decompiled!
Click to expand...
Click to collapse
Cause when using Apk manager, during re-compilation a keep folder is created and if you don't delete every files (and png) you modified in this keep folder, then after recompilation you will have olds .png from the keep folder and not your new png from your project folder.
It is easier to just push your new .png after recompilation.
I am just a noob who want to help a little with my short experience.
I am ready to learn and to optimise my how to
Sent from my GT-I9100 using XDA Premium App
sicopat said:
Cause when using Apk manager, during re-compilation a keep folder is created and if you don't delete every files (and png) you modified in this keep folder, then after recompilation you will have olds .png from the keep folder and not your new png from your project folder.
It is easier to just push your new .png after recompilation.
I am just a noob who want to help a little with my short experience.
I am ready to learn and to optimise my how to
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Its true you need to delete the files you modify from the keep folder. But you should never try and modify 9patch pngs if they are not decompiled!!
_JKay_ said:
Its true you need to delete the files you modify from the keep folder. But you should never try and modify 9patch pngs if they are not decompiled!!
Click to expand...
Click to collapse
Yes i agree with you.
But in this How to, you don't need to edit 9patch.png
For begginers i think it's easier to push the customised reboot, power off, download mode icons ... after recompilation.
Sent from my GT-I9100 using XDA Premium App
sicopat said:
Yes i agree with you.
But in this How to, you don't need to edit 9patch.png
For begginers i think it's easier to push the customised reboot, power off, download mode icons ... after recompilation.
Sent from my GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
Ok...... But I think this could make beginners believe that this is always the case and how it should always be done. I rather teach them the right way

Emoji Keyboard for Galaxy Nexus Stock..Work together!

Hi to all! I'm new here but I read xda forum from several months!
So.. my mission is modify a bit the new Google Keyboard KitKat Edition with Emoji and make it compatible for devices with under Android SDK.
I decompiled the APK (v 2.0.19003.893803a) and I found this class:
Code:
..\smali\com\android\inputmethod\keyboard\EmojiPalettesView$EmojiCategory.smali
Then, converted in .java class and detected this code:
Code:
addShownCategoryId(0x0);
if((Build.VERSION.SDK_INT > 0x12) || (Build.VERSION.CODENAME.equalsIgnoreCase("KeyLimePie")) || (Build.VERSION.CODENAME.equalsIgnoreCase("KitKat"))) {
addShownCategoryId(0x1);
addShownCategoryId(0x2);
addShownCategoryId(0x3);
addShownCategoryId(0x4);
mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, 0x1);
} else {
mCurrentCategoryId = Settings.readLastShownEmojiCategoryId(mPrefs, 0x5);
}
addShownCategoryId(0x5);
addShownCategoryId(0x6);
I know that new GK have 7 fragments for Emoji (checked on tablet with 4.4) and the code is pretty clear.
They make a control, if SDK>12 or the version name is "KitKat", then we hide the fragments 1,2,3,4.
As you can see on official Android Developer Page, SDK>12 is equal to say SDK>JELLY_BEAN_MR2, then starts with KITKAT (13).
Let's try to change this value? For example "10 (JELLY_BEAN, 4.1)" ?
I don't know what could be happens, but...i will have to try!
Let's go to smali file, I found my interested code:
Code:
.line 158
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, [COLOR="Red"][B]0x12[/B][/COLOR] ---> we change it with [COLOR="Black"][B][I]0x10[/I][/B][/COLOR]
if-gt v1, v2, :cond_1
sget-object v1, Landroid/os/Build$VERSION;->CODENAME:Ljava/lang/String;
const-string v2, "KeyLimePie"
So now, i rebuild all with keytool and additionally i make a bit of modifications:
Android Manifest
Code:
changed
<provider android:authorities="@string/authority"
TO
<provider android:authorities="com.google.android.inputmethod.dictionarypack"
Renamed package name with apktool.yml
Code:
rename-manifest-package: com.google.android.inputmethod.latin
Then, opened the built APK and drop in it with WinRar original lib folder and WEB-INF from original APK.
Then, I signed APK with cmd:
Code:
C:\apk\apktool>java -jar SignApk.jar testkey.x509.pem testkey.pk8 c:\apk\apktool
\keyboard\dist\keyboard.apk keyboard_signed.apk
So now..let's try to install the update.....
Code:
[COLOR="Red"][B]New package has a different signature: com.google.android.inputmethod.latin[/B][/COLOR]
How to solve? My experience is focused to write my apps but not modifying the others..
Hope that my work helps other and please help me to fix that problem :good:
is there any possibility to import the key signature from the original APK to modified APK?
I tried to create another APK, with another package name, but Android says that Dictionary Provider is actually used from the original Google Keyboard, it can't continue with installation.
I don't want to remove the original system keyboard app because i want give modified APK to community and i suppose that not all users have phone with root enabled.

Statusbar mods collection galaxy y

Hello everyone,
It has been quite a time on xda and i found that there are a number of tweaks availble for our mini GALAXY Y especially for the status bar.
But the problem is that all these tweaks are located in different threads which makes them a lot more messy.
Therefore I present you a compilation of the common but most used tweaks for galaxy y.
THREADS WILL BE UPDATED.........SO LOOK OUT FOR NEW AMAZING TWEAKS !!!!!!!!!!!!!!
Click to expand...
Click to collapse
PLEASE PM ME IF YOU FIND ANY OTHER TWEAKS FOR OUR GALAXY Y AND I WILL ADD IT HERE
CREDITS :--
@marcussmith2626
 @dcsms
 @jpdesuasido
[Guide] [Mod] How to make any gingerbread or cm7 status bar transparent​There's two ways to make the statusbar bar Transparent and I'll post them both
One way works with any gingerbread rom (deodex & rooted) and one with cyanogen 7.
I have not tried it on ics or jelly bean but you can try (for people who stumble across this thread who are not galaxy y users) ..
Please dont ask for support unless you are using a custom rom on galaxy y.:good:
Any other phones please goto your own phone forum for support.
You also need a launcher that is capable of transparency .:angel:
Adw works but you need to disable wallpaper hack in settings .
Holo launcher works.
any other launcher if it doesn't work look in it's settings & try & disable wallpaper hack or manage internally .
1-)Method one for non cm
You need apk tool installed - if you don't know how to use it see marcussmith2626's guide here --
http://forum.xda-developers.com/showthread.php?t=2206938
Once you have decompiled SystemUI.apk using apk tool goto res/layout Open status_bar.xml in notepad
1.Find the following line
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background="#000000"[/COLOR] android:focusable="true" android:descendantFocusability="afterDescendants"
Notice android:background is normally a hexadecimal value or it could be an @drawable value
either way change it to the following
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" [COLOR="Red"]android:background=" [user=3944923]@drawab[/user]le/nameofpng" [/COLOR]android:focusable="true" android:descendantFocusability="afterDescendants"
Notice that android:background is now a @drawable value
2.Detete the space between the " and the @
(the is because the forum has changed the @ to mentions and I cant work out how to stop it doing it)
3.Change nameofpng to the name of your transparent background image (just the name - do not include the file extension .png)
4.Place this image with the same name as the @drawable value in res/drawable-ldpi
(of course other devices might be in mdpi or hdpi)
5.Recompile and sign apk
Put in a flashable zip and flash with system mounted
6.You can download and use the pngs in the attachment (for ldpi like galaxy y) or create your own
To create a transparent status bar image just take a non Transparent one and edit it in a photo application to make it Transparent (make sure image dimensions stay the same and is for your phone resolution)
2-)Method two for cm7
Note you will need apk tool installed and notepad++ installed
1.Download the patcher tool by Z25
2.Unzip the contents to a folder
3.Place your SystemUI.apk and framework-res.apk in files_to_patch
4.Run patcher.bat
5.Select status bar tweaks and enable only transparent status bar
6.Edit the smali file as described in the text file that pops up
7.Select option build and sign
8.Select option to create zip files
You now have a zip file called patch.zip
Flash this in cwm to enable transparency
To actually make it Transparent you need to apply a theme with a transparent status bar
First disable wallpaper hack from adw launcher settings
Then either download a transparent Theme from playstore for theme chooser and apply in theme chooser
Or create your own theme
Goto UOT kitchenhttp://uot.dakra.lt/kitchen
Code:
1.Take cyanbread.apk from the app folder of your cm7 rom & place on pc (or any other Theme Chooser Theme you wish to make transparent)
2.Rename it to what you want to call theme
3.Upload it to kitchen (under cm7 theme in file upload)
I4.n status bar tweaks set background transparency to around 70% Transparent and any other settings you need like carrier or footer - don't forget to generate preview once done
5.Make sure you have selected ldpi in statusbar tweak settings and ldpi/mdpi for theme chooser preview in file upload (other devices may vary) and in file upload change update binary to galaxy
6.Then goto summary section
7.If everything is green create the theme
8.If not make sure you have clicked generate preview on status bar tweaks
kitchen will then create theme for you
Once it's done download it flash in cwm with system mounted & then apply it in theme chooser
here are some of the statusbar my marcussmith2626--
http://forum.xda-developers.com/showthread.php?t=2123899
r
[GUIDE]How to add EDT Tweak support on your SystemUI
Hi guys
This time I will make a tutorial on how to add "EDT" tweak support on your SystemUI:fingers-crossed::fingers-crossed:
Features of EDT Tweaks
1.Battery Options
Show/Hide Battery Icon (Doesn't work)
Battery Text Style (Regular,Hide and Small %)
Prepend/Append Battery Text
Change Charging Color (For Battery Text)
Change Regular Color (For Battery Text)
Change Medium Level Color (For Battery Text)
Change Low Level Color (For Battery Text)
2.Clock Options:laugh:
Show AM/PM
Small AM/PM
Hide AM/PM
Hide Clock
3.Signal Options
Show Signal Bars (Doesn't work)
Show Signal Strength (Not available yet)
Show dBm Text (Not released)
Bug List
1.Show/Hide Battery Icon
2.Show Signal Bars
3.Show Signal Strength
4.Show dBm Text
Click to expand...
Click to collapse
Requirements
1.EDT Files (download in attachment)
2.EDT Tweaks apk (download in attachment)
3.SystemUI.apk
4.Apktool or similar
Click to expand...
Click to collapse
How to Install
1.Download the EDT Files zip package on your Computer and extract it anywhere in your desktop
2.Now on your phone, Pull your SystemUI.apk and paste it on your sd card
3.Now connect your phone to your Computer and Connect USB Storage
4.Copy the pulled SystemUI.apk and paste it on your apktool folder
5.Decompile your SystemUI.apk (You know how to do it right?)
6.Now copy the extracted smali from the EDT Files zip package and paste it on smali/com/android/systemui/statusbar/. Replace if asked
7.Go to res/layout/ and open status_bar.xml
8.Copy this code
Code:
[COLOR="Purple"]<com.android.systemui.statusbar.BatteryText android:textAppearance="@*android:style/TextAppearance.StatusBar.Icon" android:gravity="center_vertical" android:orientation="horizontal" android:paddingRight="2.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />[/COLOR]
9.Paste it belowabove this code
Code:
[COLOR="Purple"]com.android.systemui.statusbar.Clock[/COLOR]
10.Compile the SystemUI.apk (You know how to do it right?)
11.On your phone, push the SystemUI.apk to system/app using Root Explorer or similar.
12.Now install EDT.apk and you can now use it's features
rr
[GUIDE]How to add lidroid 14 statusbar toggle buttons for Galaxy Y​All Credits belongs to dcsms
Please refers to lidroid original thread below
http://forum.xda-developers.com/showthread.php?t=1289896
Requirements :--
1. A Computer with JAVA DEVELOPMENT KIT [JDK] installed
2. Apktool
3. Notepad++ / other UNIX editor
4. Knowledge about how to compile/decompile apk (dont ask me.. just use the search bar.. there a bunch of tuts how to do that)
Click to expand...
Click to collapse
firstly download this file :
1. lidroid-res
http://forum.xda-developers.com/attachment.php?attachmentid=750399&d=1318661697
2. LidroidSystemUI
http://forum.xda-developers.com/attachment.php?attachmentid=750756&d=1318701014
3. QuickPanelSettings
http://forum.xda-developers.com/attachment.php?attachmentid=751238&d=1318747162
Click to expand...
Click to collapse
Procedure :--
1. Download LidroidSystemUI.apk and decompile it with apktool, then you get LidroidSystemUI dir.
2. Pull and Decompile your SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.
3. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, change codes below
Code:
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030002
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 352
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
with
Code:
const v7, 0x3030003
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;
.line 352
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
4. Compile SystemUI with apktool,
5. open up your SystemUI.apk with winrar or 7zip
6. locate to SystemUI/build/apk/ and find classes.dex onto the winrar/7zip
7. Then Push it into /system/app/
5. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.
Click to expand...
Click to collapse
More mod :
Originally Posted by [email protected]
To have 6 visible toggles : edit : SystemUI/smali/com/lidroid/systemui/quickpanel/PowerWidget.smali
change :
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x5
to
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6
Code:
div-int/lit8 v2, v2, 0x5
to
Code:
div-int/lit8 v2, v2, 0x6
Note: i skip editing androidmanfest.xml (cuz when we do this... we should sign all of the apk in /system/app and /system/framework. ..but if u insist.. please see the original thread above how to do that...unless if u dont do editing androidmanifest.xml u'll got FC when pressing Flashlight button. anyway i dont need it.. so its not a big deal)
DONT FORGET TO PRESS ATHANKS :laugh::laugh::laugh:
[GUIDE]BRIGHTNESS SLIDER IN STATUS BAR​
UPDATE ZIP FILES FOR JELLY BLAST ND HYPERION ADDED CHK AT THE END OF POST
GUYS THOSE WHO ARE TRYING IT AFTER COMPILNG UR APP PLZ DECOMPILE AND CHK WHETHER TAT ""in"" FOLDER IS IN SMALI FOLDER
REQUIREMENTS :--
1> DECOMPILING/ COMPILING TOOL (LIKE VTS OR APKTOOL OR APKMULTITOOL OR ANY OF UR CHOICE
2>UR SYSTEMUI.APK
3>STATUSBARGREEPER( PLZ SEARCH XDA FOR ITS DOWNLOAD LINKS)
Click to expand...
Click to collapse
STEPS
1) DECOMPILE UR SYSTEMUI.APK
2)NAVIGATE TO res/layout/status_bar_expanded.xml
3) OPEN IT FOR EDITING
4) SEARCH FOR THE FOLLOWING CODE
Code:
<FrameLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0">
[COLOR="Indigo"]
[/COLOR]
5) PLACE THE FOLLOWING CODE ABOVE CODE U SEARCHED ABOVE
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingTop="20.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<in.jmkl.dcsms.statusbargreper.SlideBrightness android:layout_width="fill_parent" android:layout_height="wrap_content" />
</LinearLayout>
6) ADD THE FOLLOWING FOLDER IN smali/*here*
DOWNLOAD HERE--
IN.ZIP
7)RECOMPILE THE THE SYSTEMUI APP ND PUSH IT........
8) RESTART UR DEVICE ND UR DONE..:
9) ND YADO INSTALL STAUSBARGREEPER APK
Click to expand...
Click to collapse
FOR JB FLASH VIA CWM--
1)HYPERION----HERE
2)JB--->>>HERE
DO VISIT THIS POST TOO
http://forum.xda-developers.com/showthread.php?t=2084127​
Its much better to actually link to the orig thread and just have an index type thread instead of just posting the entire guide here
this is because threads are updated and its also much eaiser for people to get support from the person who wrote the thread then just having spam "help me" stuff here
also you didnt seek permission to repost all these guides - well at least you didnt ask me
creating a thread which indexes guides is fine and links to the thread but just copy and past the entire guide is not good
you can get an idea of what an index thread is by clicking on the link in my signature as that will take you to my index thread
Bro You Could give Links to original thread instead of re posting all guides..its look messy
Thread Closed as it is nothing but duplication of existing work present in the device forum.
A.cid
Forum Moderator

[MOD][GUIDE]Porting PlatLogo Activity from S5 resources

Hi to all! In this guide I explain how to port the kitkat platlogo activity from S5 resource to S2.
Requirements:
- use apktool, backsmali and smali tool;
- notepad++;
- framework-res.apk;
- framework.jar and framework2.jar;
- patience and brain.
1)First decompile framework-res.apk with apktool and download attach file.
Extract the drawable-nodpi folder from the archive and insert and replace the platlogo.png in the res/drawable-nodpi folder of the framework-res.
Recompile and sign the framework-res.
For sign the framework insert in the build/apk folder the original meta-inf folder and AndroidManifest.xml from the original framework-res.apk.
2)Then, decompile framework.jar with backsmali tool (1.bat)
Extract the smali folder from the archive and insert the file in com/android/internal/app.
After insert the file, open the PlatlogoActivity and search this:
Code:
const v0, [COLOR="Red"]0x10805b8[/COLOR]
Open the public.xml from res/values folder of the framework-res and search:
Code:
type="drawable" name="platlogo"
Now replace the red line with the public id of platlogo image.
At the end recompile the framework.jar with smali tool (2.bat)
3)Decompile framework2.jar with backsmali tool (1.bat)
Go to android/widget/ and open FrameLayout$LayoutParams.smali
Insert this method at the end of the file.
Code:
.method public constructor <init>(Landroid/widget/FrameLayout$LayoutParams;)V
.locals 1
.parameter "source"
.prologue
.line 667
invoke-direct {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
.line 609
const/4 v0, -0x1
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 669
iget v0, p1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 670
return-void
.end method
Now recompile with smali tool (2.bat).
Insert the framework-res.apk, framework.jar and framework2.jar in the installer that I attached. Insert in system/framework folder.
That is all
Thanks for this guide and for all the other.
Awesome Guide.
THANKS AND RATED 5*
Thanks for this guide
@gerryS2,
Hey mate, thanks to your guide I finally got what I wanted. But could you please tell me how to replace replace the "J" with a "K".. thanks in advance
Sami Kabir said:
@gerryS2,
Hey mate, thanks to your guide I finally got what I wanted. But could you please tell me how to replace replace the "J" with a "K".. thanks in advance
Click to expand...
Click to collapse
maybe this thread can help you
http://forum.xda-developers.com/showthread.php?t=2580249
thanks
Troubadour666 said:
maybe this thread can help you
http://forum.xda-developers.com/showthread.php?t=2580249
thanks
Click to expand...
Click to collapse
Thanks mate, but I am already aware of that thread. I would have continued with that thread but instead I went with this one because it didn't require any additional app to be installed
I will go through the smali codes once more to find this "J" and replace it with a "K"...
Sami Kabir said:
Thanks mate, but I am already aware of that thread. I would have continued with that thread but instead I went with this one because it didn't require any additional app to be installed
I will go through the smali codes once more to find this "J" and replace it with a "K"...
Click to expand...
Click to collapse
post 2 of the thread :
const-string v0, "K"
Troubadour666 said:
post 2 of the thread :
const-string v0, "K"
Click to expand...
Click to collapse
My PlatLogoActivity.smali doesn't contain any const-string v0, "K".. the closest thing I found is const-string v1, "Android "
in AICP rom, all things are in framework2.jar .
gerryS2 said:
Hi to all! In this guide I explain how to port the kitkat platlogo activity from S5 resource to S2.
Requirements:
- use apktool, backsmali and smali tool;
- notepad++;
- framework-res.apk;
- framework.jar and framework2.jar;
- patience and brain.
1)First decompile framework-res.apk with apktool and download attach file.
Extract the drawable-nodpi folder from the archive and insert and replace the platlogo.png in the res/drawable-nodpi folder of the framework-res.
Recompile and sign the framework-res.
For sign the framework insert in the build/apk folder the original meta-inf folder and AndroidManifest.xml from the original framework-res.apk.
2)Then, decompile framework.jar with backsmali tool (1.bat)
Extract the smali folder from the archive and insert the file in com/android/internal/app.
After insert the file, open the PlatlogoActivity and search this:
Code:
const v0, [COLOR="Red"]0x10805b8[/COLOR]
Open the public.xml from res/values folder of the framework-res and search:
Code:
type="drawable" name="platlogo"
Now replace the red line with the public id of platlogo image.
At the end recompile the framework.jar with smali tool (2.bat)
3)Decompile framework2.jar with backsmali tool (1.bat)
Go to android/widget/ and open FrameLayout$LayoutParams.smali
Insert this method at the end of the file.
Code:
.method public constructor <init>(Landroid/widget/FrameLayout$LayoutParams;)V
.locals 1
.parameter "source"
.prologue
.line 667
invoke-direct {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
.line 609
const/4 v0, -0x1
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 669
iget v0, p1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 670
return-void
.end method
Now recompile with smali tool (2.bat).
Insert the framework-res.apk, framework.jar and framework2.jar in the installer that I attached. Insert in system/framework folder.
That is all
Click to expand...
Click to collapse
will it work on galaxy s advance with stock 4.1.2
psycho_boy52 said:
will it work on galaxy s advance with stock 4.1.2
Click to expand...
Click to collapse
Yes it will. I did it
gerryS2 said:
Hi to all! In this guide I explain how to port the kitkat platlogo activity from S5 resource to S2.
Requirements:
- use apktool, backsmali and smali tool;
- notepad++;
- framework-res.apk;
- framework.jar and framework2.jar;
- patience and brain.
1)First decompile framework-res.apk with apktool and download attach file.
Extract the drawable-nodpi folder from the archive and insert and replace the platlogo.png in the res/drawable-nodpi folder of the framework-res.
Recompile and sign the framework-res.
For sign the framework insert in the build/apk folder the original meta-inf folder and AndroidManifest.xml from the original framework-res.apk.
2)Then, decompile framework.jar with backsmali tool (1.bat)
Extract the smali folder from the archive and insert the file in com/android/internal/app.
After insert the file, open the PlatlogoActivity and search this:
Code:
const v0, [COLOR="Red"]0x10805b8[/COLOR]
Open the public.xml from res/values folder of the framework-res and search:
Code:
type="drawable" name="platlogo"
Now replace the red line with the public id of platlogo image.
At the end recompile the framework.jar with smali tool (2.bat)
3)Decompile framework2.jar with backsmali tool (1.bat)
Go to android/widget/ and open FrameLayout$LayoutParams.smali
Insert this method at the end of the file.
Code:
.method public constructor <init>(Landroid/widget/FrameLayout$LayoutParams;)V
.locals 1
.parameter "source"
.prologue
.line 667
invoke-direct {p0, p1}, Landroid/view/ViewGroup$MarginLayoutParams;-><init>(Landroid/view/ViewGroup$MarginLayoutParams;)V
.line 609
const/4 v0, -0x1
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 669
iget v0, p1, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
iput v0, p0, Landroid/widget/FrameLayout$LayoutParams;->gravity:I
.line 670
return-void
.end method
Now recompile with smali tool (2.bat).
Insert the framework-res.apk, framework.jar and framework2.jar in the installer that I attached. Insert in system/framework folder.
That is all
Click to expand...
Click to collapse
Sami Kabir said:
Yes it will. I did it
Click to expand...
Click to collapse
bro can u plz upload those framework.jar n freamework2.jar cz those baksmali n smali tool r not workin on my pc....
psycho_boy52 said:
bro can u plz upload those framework.jar n framework2.jar cz those baksmali n smali tool r not workin on my pc....
Click to expand...
Click to collapse
Okay. But it might contain some other mods because they are from my ROM.. The zip is not flashable, extract it and place the files to their respective location.
Link: https://www.mediafire.com/?q5e9jnfvuapu73j
PS: I have a feeling that this might not work for you, if it doesn't then please tell me asap
Sami Kabir said:
Okay. But it might contain some other mods because they are from my ROM.. The zip is not flashable, extract it and place the files to their respective location.
Link: https://www.mediafire.com/?q5e9jnfvuapu73j
PS: I have a feeling that this might not work for you, if it doesn't then please tell me asap
Click to expand...
Click to collapse
thnx bro lets try!!!... btw dont u use stock jb on ur i9070???
psycho_boy52 said:
thnx bro lets try!!!... btw dont u use stock jb on ur i9070???
Click to expand...
Click to collapse
I use my ROM. Which is based on stock firmware
Sami Kabir said:
Okay. But it might contain some other mods because they are from my ROM.. The zip is not flashable, extract it and place the files to their respective location.
Link: https://www.mediafire.com/?q5e9jnfvuapu73j
PS: I have a feeling that this might not work for you, if it doesn't then please tell me asap
Click to expand...
Click to collapse
wow!!!.... its working bt cnt we write jb instade of j
psycho_boy52 said:
wow!!!.... its working bt cnt we write jb instade of j
Click to expand...
Click to collapse
You should ask that to the creator of this thread, not me (because even I don't know how to change this letter to some other letter)
Sami Kabir said:
You should ask that to the creator of this thread, not me (because even I don't know how to change this letter to some other letter)
Click to expand...
Click to collapse
anyways !!! thnx a lot bro for helping me
bt buddy dere is a problm wid dis mod... its not cumming lyk d 2nd scrnsht.... how to fix it

[Guide][TUT][MM] Dynamic StatusBar (lib based) [DSB] Official [All Devices MM]

Hello guys
After a long time here is a new Guide
Thanks to @kingdj and dedy (my friends)
a ParaS.H.I.T team
We worked for months spent sleepless nights on this mod
This mod got extinct on 4.4 seems lol
Now we successfully done till MM
This works for all variety of devices (samsung/sony/ all devices running MM )
Sony theme works so no worries
Check the Video on how it look like
Requirements:-
1. Make sure you had SuperUserMod
2. SystemUI.apk (deodexed)
3. Settings.apk (deodexed)
4. TickleMyAndroid by @Ticklefish or Advanced APK Tool
Start:- (also included with 3 Dot Menu)
1. Download this View attachment SystemUI.apk.zip
2. Decompile SystemUI.apk
3. Merge the complete files to your SystemUI.apk (no worries)
4. Open systemui.apk/res/values/colors.xml
add these
Code:
<color name="status_bar_background_opaque">@color/system_bar_background_opaque</color>
<color name="status_bar_background_semi_transparent">@color/system_bar_background_semi_transparent</color>
<color name="status_bar_background_transparent">@color/system_bar_background_transparent</color>
<color name="navigation_bar_background_opaque">@color/system_bar_background_opaque</color>
<color name="navigation_bar_background_semi_transparent">@color/system_bar_background_semi_transparent</color>
<color name="navigation_bar_background_transparent">@color/system_bar_background_transparent</color>
<color name="keyguard_default_primary_text_color">#ffffffff</color>
<color name="keyguard_default_secondary_text_color">#b3ffffff</color>
<color name="keyguard_default_icon_color">#ffffffff</color>
5. Compile and decompile
6. Compare Public ids and replace or Use this Amazing tool Public ID Converter by @loserskater as this tool replaces IDS
The Remain part continued in next post
SystemUI part 2
Continuation
1. Open SystemUI.apk/smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
look for this code
Code:
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$DozeServiceHost;,
After this line
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$DozeServiceHost;,
Add this Annotation
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBar$100000023;,
Find this
Code:
# static fields
Below that add this
Code:
.field public static mExpandedVisible:Z
Find this line and Delete
Code:
.field mExpandedVisible:Z
Find this
Code:
# instance fields
Below add these lines
Code:
.field private mOverrideIconColor:I
.field private mPreviousOverrideIconColor:I
1.2. Now Find this method
Code:
.method public constructor <init>()V
find this line (v3 may vary)
Code:
iput v3, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mNaturalBarHeight:I
Below add these lines
Code:
iput v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPreviousOverrideIconColor:I
iput v1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mOverrideIconColor:I
1.3 Find this method
Code:
.method private addNavigationBar()V
Before that method add these methods
Code:
.method static synthetic access$L1000016(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)I
.locals 1
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPreviousOverrideIconColor:I
return v0
.end method
.method static synthetic access$L1000017(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;)I
.locals 1
iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mOverrideIconColor:I
return v0
.end method
.method static synthetic access$S1000016(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;I)V
.locals 0
iput p1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPreviousOverrideIconColor:I
return-void
.end method
.method static synthetic access$S1000017(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;I)V
.locals 0
iput p1, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mOverrideIconColor:I
return-void
.end method
1.4 now you need to change Instance to Static
Using Notepad++ find this mExpandedVisible:Z
so you get similar lines like this
Code:
[COLOR="red"]i[/COLOR]get-boolean v0, [COLOR="Blue"]p0,[/COLOR] Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="red"]mExpandedVisible:Z[/COLOR]
In the above line do changes
Replace iget-boolean to sget-boolean and delete blue p0,
and it look like this after Edit
Code:
[COLOR="Red"]s[/COLOR]get-boolean v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;-[COLOR="red"]>mExpandedVisible:Z[/COLOR]
So like this you need to change them (Around 8 need to be changed )
Comparing files are available below
1.5 Find this method
Code:
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
at the end of that method find this line
Code:
invoke-static {v4, v5}, Landroid/view/ThreadedRenderer;->overrideProperty(Ljava/lang/String;Ljava/lang/String;)V
After that line add these lines
Code:
const/4 v2, 0x1
new-array v2, v2, [Lcom/android/systemui/statusbar/phone/BarBackgroundUpdater$UpdateListener;
const/4 v3, 0x0
new-instance v4, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$100000023;
move-object/from16 v0, p0
move-object/from16 v1, p0
invoke-direct {v4, v0, v1}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$100000023;-><init>(Lcom/android/systemui/statusbar/phone/PhoneStatusBar;Ljava/lang/Object;)V
aput-object v4, v2, v3
invoke-static {v2}, Lcom/android/systemui/statusbar/phone/BarBackgroundUpdater;->addListener([Lcom/android/systemui/statusbar/phone/BarBackgroundUpdater$UpdateListener;)V
Now find this method
Code:
.method public setSystemUiVisibility(II)V
in that find this lines
Code:
move-object/from16 v0, p0
iget-object v5, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mIconController:Lcom/android/systemui/statusbar/phone/StatusBarIconController;
above move-object/from16 v0, p0
Add this line
Code:
sget-boolean v5, Lcom/android/systemui/statusbar/phone/BarBackgroundUpdater;->mStatusEnabled:Z
save and close PhoneStatusBar.smali
2. Search for this mExpandedVisible:Z in child files of PhoneStatusBar$xx.smali
in Sony i found in PhoneStatusBar$11.smali
so same
from
Code:
[COLOR="Red"]i[/COLOR]get-boolean v0, [COLOR="Blue"]v0,[/COLOR] Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="red"]mExpandedVisible:Z[/COLOR]
to
Code:
[COLOR="red"]s[/COLOR]get-boolean v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[COLOR="red"]mExpandedVisible:Z[/COLOR]
3. Now open SystemUI.apk/smali/com/android/systemui/statusbar/phone/StatusBarIconController.smali
find this line
Code:
.field private final mHandler:Landroid/os/Handler;
Replace that line to this
Code:
.field public final mHandler:Landroid/os/Handler;
Now save and Close all
Complie and replace
For compare Download this files View attachment dsb_compare_statusbar.zip
Now you need to place the Lib to you SystemUI.apk
Merge this lib to system/priv-app ( use any root explorer )
For 64 bit devices :- View attachment 64bit_lib_systemui_dsb.zip
For ARM / 32 bit devices :- View attachment arm_32bit_lib_systemui_dsb.zip
For x86_x64 devices :- View attachment 3940776
After Placing lib replace systemUI.apk and reboot tada
Video soon available
For settings Look for next post
settings.apk final part and Video
Settings Final part:-
1. Decompile Settings.apk
2. Download this View attachment settings.apk.zip
3. Extract and Merge it
4. Open Settings.apk/res/values/strings.xml
add these lines
Code:
<string name="dynamic_system_bars_category_title">Dynamic system bars</string>
<string name="dynamic_status_bar_title">Dynamic status bar</string>
<string name="dynamic_status_bar_summary">Automatically update the background of the status bar</string>
<string name="dynamic_navigation_bar_title">Dynamic navigation bar</string>
<string name="dynamic_navigation_bar_summary">Automatically update the background of the navigation bar</string>
<string name="dynamic_system_bars_gradient_title">System bar gradient</string>
<string name="dynamic_system_bars_gradient_summary">Overlay a gradient on the system bars</string>
<string name="dynamic_status_bar_filter_title">Darker status bar</string>
<string name="dynamic_status_bar_filter_summary">Overlay a darkening filter on the status bar</string>
5. Add this any where to your settings (display_settings.xml or your wish)
Code:
<PreferenceScreen android:icon="@drawable/kryp_dsb" android:id="@+id/dsb" android:title="Dinamic Engine" android:summary="Amaze Your view of Status and Navigation Bar" android:fragment="com.android.settings.kryp.Dsb" />
6. As this mod also contain 3 Dot mod to add settings Follow this post
7. Compile and Decomopile the Settings.apk
Compare ids (provided my public.xml) and replace the Ids
Recompile and replace
reboot and test
This is Part of My Rom Kryptonian
Dont Forget to mention me if you use My work
That feels me Happy
does this framework running just like as flat style colored bar module on xposed?
Intriguing. I'll have to keep an eye on this thread..
SystemUI.apk.zip not failed extrack?
ryandxter said:
does this framework running just like as flat style colored bar module on xposed?
Click to expand...
Click to collapse
Check video below bro
Ticklefish said:
Intriguing. I'll have to keep an eye on this thread..
Click to expand...
Click to collapse
Sure i can seen your Blink eye
vandiaz_sairavinz said:
SystemUI.apk.zip not failed extrack?
Click to expand...
Click to collapse
download again and try bro
Here is the Video On how the mod works
@venkat kamesh as always , your done best
DSB to lolipop bro...
Do you Have tutorial....
Nice, great work Sir VK
and thanks you.
excuse me,,could you please help me,.. im in step 1,after this one :
3. Merge the complete files to your SystemUI.apk (no worries)
4. Open systemui.apk/res/values/colors.xml
add these
5. Compile and decompile
6. Compare Public ids and replace or Use this Amazing tool Public ID Converter by @loserskater as this tool replaces IDS
I have read the tool,and we need Source smail file for compare IDs,,but could you please tell me which smail file in this file 1. Download this SystemUI.apk.zip is Source smail
Nice nice
Does this require UB? also, can I install on X system UI on a z3c? The framework res is from z3c
panzerox123 said:
Does this require UB? also, can I install on X system UI on a z3c? The framework res is from z3c
Click to expand...
Click to collapse
You don't need UB and it will work on that framework and systemUI
DavidMKD said:
You don't need UB and it will work on that framework and systemUI
Click to expand...
Click to collapse
Thanks!
Will it work if I used zervices.Jar SuperUserMod by Rajeev?
panzerox123 said:
Thanks!
Will it work if I used zervices.Jar SuperUserMod by Rajeev?
Click to expand...
Click to collapse
It should, just backup in case
DavidMKD said:
It should, just backup in case
Click to expand...
Click to collapse
Ok. Thanks!
And will it work with Xperia X SystemUI on z3c?
panzerox123 said:
Ok. Thanks!
And will it work with Xperia X SystemUI on z3c?
Click to expand...
Click to collapse
It should work on any SystemUI as long it is MM and it has those lines
DavidMKD said:
It should work on any SystemUI as long it is MM and it has those lines
Click to expand...
Click to collapse
Ok thanks!
Question: HOW DO I REPLACE PUBLIC IDS!! omg im hyperventilating..... sorry/// But how do I replace public ids?

Categories

Resources