[GUIDE]How to add customizable 14 statusbar toggle buttons for samsung ROM - Galaxy S II Android Development

I rebuild status bar power button in samsung rom in my national day holiday, now it has 14 buttons now, include all samsung buttons, wifi, data connection, gps, flashlight, sound, auto rotation, bluetooth, brightness, screen timeout, lock screen, sync, reboot and power down. Actually early time I coded some of those function in LidroidToolbox, but not included them in status bar. I actually rebuilt it with java, not just mod of samli.
This code can adapt to samsung i9000/i9100/i897/t959/m110s etc. I will port this in my new rom. The flashflight will display a white and brightest activity when the camera without flashlight, for example i9000/i897/t959/m110s etc.
Next I will explain how to adapt it to samsung 2.3 rom. There are 3 attachments QuickPanelSettings.apk, LidroidSystemUI.apk and lidroid-res.apk.
1. Download LidroidSystemUI.apk and decompile it whit apktool, then you get LidroidSystemUI dir.
2. Decompile SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.
3. Modify SystemUI/AndroidManifeset.xml, add this code before </Application>
Code:
<activity android:name="com.lidroid.systemui.quickpanel.FlashlightActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:clearTaskOnLaunch="true"
android:configChanges="orientation|keyboardHidden"
android:launchMode="singleTask" />
if your model has flashlight, you can skip this step.
4. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, locate fellow codes
Code:
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
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 379
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
modify
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 394
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
5. Compile SystemUI with apktool, Sign it if you have modify AndroidManifest.xml. Push it into /system/app/
6. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.
Simplicity, no need to modify layout, id and Strings which is painful. If you know how to do it, you will know how simple it is. Any android/rom developer can download this code and add more buttons.
Enjoy!

thank you very much for this work!
I will study the code and try to develop also new toggles
Little question, the java source (god bless you! I HATE Smali! xD) is about systemUI, what about lildroid-res.apk?
Is it only a "complementar" framework for icons and string for the toggles? Or whatelse?
Just curiosity and little question to better understand the project!
Thx!

89luca89 said:
thank you very much for this work!
I will study the code and try to develop also new toggles
Little question, the java source (god bless you! I HATE Smali! xD) is about systemUI, what about lildroid-res.apk?
Is it only a "complementar" framework for icons and string for the toggles? Or whatelse?
Just curiosity and little question to better understand the project!
Thx!
Click to expand...
Click to collapse
I compiled all required images, strings and layout that toggle buttons into lidroid-res.apk to make the future ROM transplant work easier and finish the new ROM's mod work faster.

Ok understood thx that was only what I need to know
Maybe with a little more work can try to fuse it with framework.apk or twframework.apk but for now just knowing that will make things clearer to me

Screenshots please...

Nice bro....this is what we need.....nice

akbarhash said:
Screenshots please...
Click to expand...
Click to collapse
I have uploaded screenshots as attachment.

This way you can add a shortcut to the application?
I know silly question
thank you very much
sorry for my English

lidroid said:
I have uploaded screenshots as attachment.
Click to expand...
Click to collapse
Thanks.
Tip: Home Button + Power Button = Screenshot.

This is disgustingly good work i'm really impressed...
Hmm the line numbers don't seem to match on my rom stock ki3 does that matter?

ephumuris said:
This is disgustingly good work i'm really impressed...
Hmm the line numbers don't seem to match on my rom stock ki3 does that matter?
Click to expand...
Click to collapse
you should remain original line number.

I will do this tomorrow and post a direct zip file for xxki3 stock...

Nice one.
Is there a way for the users to select the toggle and the order of the toggles?

great work
i misss my miui from x10 status bar

Will this mod also allow for long-clicking a quickpanel item and it takes you to the respective settings page?

Thank you for your guide, great work!

Cannot get it to work on KI3 (v2.3.5).
Statusbar does not even show.

gcrutchr said:
Cannot get it to work on KI3 (v2.3.5).
Statusbar does not even show.
Click to expand...
Click to collapse
my newest ROM was just based of XXKI3, maybe you missed some works.

lidroid said:
my newest ROM was just based of XXKI3, maybe you missed some works.
Click to expand...
Click to collapse
Thanks for the reply.
Could you be a little more specific about what to copy and where to copy the files/folders from your lidroidSystemUI.apk to the stock SystemUI.apk.
I followed the steps multiple times using a stock, deodexed SystemUI.apk and all times no statusbar showed.
Or...could you post your SystemUI.apk so I can a look at how you inserted the folders into it.
Thanks.

do you have a zip file for this.....it would be nice

Related

[ADV][DEV][MOD] Network/carrier removal

FOR NOOKIE FROYO ONLY
Usual disclaimers apply. Don't try this if you don't know what you are doing! I won't be responsible for any damage to your NC. This isn't worth taking risks if you're not an experienced user.
Thank you.
I've edited services.jar and android.policy.jar to:
- hide the (no) Signal icon from status bar
- hide Carrier info from lock screen
Both files need to be pushed to system/framework.
For devs interest, this is what is required:
Decompile .jars baksmali, compile with smali: "smali/baksmali". Google it.
To hide network icon on status bar:
In services.jar, find StatusBarPolicy.smali in /com/android/server/status/, change lines 611 to 615 from:
move-result-object v3
iput-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mPhoneIcon:Landroid/os/IBinder;
Click to expand...
Click to collapse
to:
move-result-object v3
invoke-virtual {p2, v3, v6}, Lcom/android/server/status/StatusBarService;->setIconVisibility(Landroid/os/IBinder;Z)V
iput-object v3, p0, Lcom/android/server/status/StatusBarPolicy;->mPhoneIcon:Landroid/os/IBinder;
Click to expand...
Click to collapse
To hide carrier info on lock screen:
In android.policy.jar, find LockScreen.smali in /com/android/internal/policy/impl/, change line 200 from:
const/4 v2, -0x1
Click to expand...
Click to collapse
to:
const/4 v2, -0x0
Click to expand...
Click to collapse
Have fun.
Sam
Great work!
where is the file?
Works for me!
[email protected]+950+thumbkeyboard+GBTheme=loving it
Files are available.
I downloaded smali/baksmali and did this procedure for nf 0.6.7. using the services.jar and android.policy.jar from nf 0.6.7 and everything went smoothly. When I push them back to the nook, it doesn't boot. When I use yours, the nook boots fine. Will using your files from a different build on nf 0.6.7 cause some problems down the road?
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
For those that need this to be as easy as possible:
Originally Posted by nookierookie
This worked for me -- with modified steps. I unzipped the files to my host pc, adb shell mounted system as r/w, shell'd into the device and renamed all 4 files that are going to be replaced in system/framework/ "whatever.jar.bak" ... and so on. Then I pushed the individual files from the OP's zipped archive and rebooted. First boot took a while for the OS to get going -- and I had to re-log-in to my google credentials (weird), but it seems to all be working really well at the moment.
Steps:
1. unzip OP's .zip to the default adb dir on your computer (or anywhere else, just know that when you're pushing those files with adb, you'll have to use the whole path ie: /Users/nookierookie/Desktop/framework.res instead of just framework.res)
2. from the command line on your host computer:
$ adb shell
# mount -o remount,rw /dev/block/mmcblk1p2 /system
# cd /system/framework/
# mv android.policy.jar android.policy.jar.bak
# mv services.jar services.jar.bak
#exit
$ adb push android.policy.jar /system/framework/android.policy.jar
$ adb push services.jar /system/framework/services.jar
$ adb reboot
chrisngrod:
Thanks. This worked. On my tablet I did lose screen rotation. Also, if you notice, the cellular network bars are there. Some people will probably not care for those since we have no radio obviously . The drop down status bar is small like the current, but does not have the gray background. You'll see if you install it. No FC issues noticed though. Almost there solution wise!
I went back to stock.
$ adb shell
# mount -o remount,rw /dev/block/mmcblk1p2 /system
# cd /system/framework/
# mv android.policy.jar.bak android.policy.jar
# mv services.jar.bak services.jar
#exit
adb reboot
Click to expand...
Click to collapse
Pretty much quoting from another status bar mod... The guts are what is important.
Worked for me. Thanks!
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
+1 on this idea!
Well files can be different from one build to another. And make sure the. Jar you push is signed. Just use the original and replace changed files with archive manager..
Sent from my HTC Desire using XDA App
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
+1 for this!
samuelhalff said:
Well files can be different from one build to another. And make sure the. Jar you push is signed. Just use the original and replace changed files with archive manager..
Sent from my HTC Desire using XDA App
Click to expand...
Click to collapse
Thanks, it was the signature.
I wonder how hard this would be to implement over to the cm7 release?
18.4009 said:
I wonder how hard this would be to implement over to the cm7 release?
Click to expand...
Click to collapse
I allready asked refer to this post http://forum.xda-developers.com/showpost.php?p=11486335&postcount=59
mrty4short said:
I allready asked refer to this post http://forum.xda-developers.com/showpost.php?p=11486335&postcount=59
Click to expand...
Click to collapse
Ah, thanks for the heads up.
chhaggerty said:
If these framework changes could be coupled with the status bar soft button mod
http://forum.xda-developers.com/showthread.php?t=932631
We could have the best of both worlds.
Click to expand...
Click to collapse
Another +1 to this! Have the status bar soft button mod installed already, but I'd love to be able to do this modification for the carrier notice removal, as well.
See nightly #15.
Sent from my HTC Desire using XDA App
Thanks, Samuel. Since this was for Nookie Froyo only, does this mean I should just copy android.policy.jar, framework.jar, services.jar, and framework-res.apk from the Nightly #15 package and put them in my system/framework directory (running Nookie Froyo 0.6.8 from an SD card)? Those were the original files in the mod that were changed to add soft buttons to the status bar.
Or do I just need to replace the android.policy.jar and services.jar files, and leave the other two alone?
(Or thirdly, were you suggesting I just run CM7 instead of Nookie Froyo if I want this feature? )
Thanks!
#15 has an updated code allowing Devs to compile cm without the icon.
These attached files will only work for froyo.
Sam
Sent from my HTC Desire using XDA App
I gotcha. I'm definitely not a Dev, so I thought your reply meant that a solution was already done integrating both modifications mentioned (carrier removal and soft buttons in status bar) and to just to grab those files and use them. As you can guess, that didn't end up working when I gave it a try.
So as of right now, there is still no solution that's been put out there to use both the carrier removal and the status bar soft buttons for Nookie Froyo users, it seems.
I know rookie1 decided not to pursue the soft buttons modification any further, and doing just that one ended up putting me into a continuous bootloop anyway, so it looks like I'll have to be content with just the carrier removal for now and SoftKeys (which is pretty great already, so that's not a bad thing).
Thanks for all your work, Samuel!

statusbar transparency in FXP109

I was using FXP104 before, and I flashed transparent statusbar zip (generated from UOT) in it, I was working fine, but now I updated to FXP109, I made another UOT zip using FXP109 framework-res and SystemUI, but after flashing it, my Ststusbar force closes, any Idea why this happens or any other method of getting transparent statusbar in FXP109?
metalrawk said:
I was using FXP104 before, and I flashed transparent statusbar zip (generated from UOT) in it, I was working fine, but now I updated to FXP109, I made another UOT zip using FXP109 framework-res and SystemUI, but after flashing it, my Ststusbar force closes, any Idea why this happens or any other method of getting transparent statusbar in FXP109?
Click to expand...
Click to collapse
use ics theme for cm7 it has transparent status bar
akshay13071990 said:
use ics theme for cm7 it has transparent status bar
Click to expand...
Click to collapse
all CM7 themes need transparent statusbar patch. else you will get ghost shadow effect in statusbar if your theme have transparent statusbar bg image.
metalrawk said:
I was using FXP104 before, and I flashed transparent statusbar zip (generated from UOT) in it, I was working fine, but now I updated to FXP109, I made another UOT zip using FXP109 framework-res and SystemUI, but after flashing it, my Ststusbar force closes, any Idea why this happens or any other method of getting transparent statusbar in FXP109?
Click to expand...
Click to collapse
Try do it by hand.
- Decompile your SystemUI, go to smali/com/android/systemui/statusbar/StatusBarService.smali
- search line that have
Code:
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;->
- above that line, you should see
Code:
const/4 v5, 0x2
- change it to
Code:
const/4 v5, -0x3
- recompile
Thanks feed3, I have now installed ICS, I will try it if i reinstall CM7.

[MOD][GUIDE][HOW TO]Add Home and Lock Button on Status bar - S5 Toggle Settings

:good: Hit THANKS button if you like this :good:
=====:Credits:=====
Inspired from a post by @galaxy1210, i got the line code from there..
i dont know anything, i did this just by reading in this forum.. so, many thanks to XDA forum and all members..
so here you go..​
Requirements:
> Any tools to decompile and recompile apk (e.g ApkTool/AndroidMultitool)
> Notepad++
> Apks from your system; SystemUI.apk and framework-res.apk
GUIDE:
STEP 1:
Open your ApkTool/Multitool.. Install framework-res.apk then Decompile your SystemUi.apk
STEP 2:
Go to your Decompiled_apk folder and navigate to res/layout/ and open status_bar.xml with notepad++
This steps will add Home Button on the left side status bar...;
STEP 3:
Find this line;
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" android:alpha="@dimen/notification_icon_area_alpha">
make an enter space before of line <LinearLayout android
at that blank space, paste the code below;
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:gravity="right" android:id="@id/home" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:src="@drawable/ic_sysbar_recent" android:singleLine="true" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_back" systemui:keyCode="3" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
And this steps will add Lock Button on the right side status bar...;
STEP 4:
Find this line;
Code:
<com.android.systemui.statusbar.policy.Clock android:textSize="@dimen/status_bar_clock_text_size" android:textColor="#ffffffff" android:ellipsize="none" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" />
make a space (enter) after of line android:includeFontPadding="false" />..
at that blank space, paste the code below;
Code:
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="0.0dip" android:src="@drawable/ic_sysbar_lock" android:singleLine="true" android:layout_toRightOf="@id/recent_apps" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
STEP 5:
And then save the modded status_bar.xml
STEP 6:
make your pict (*.png) for both buttons, name it "ic_sysbar_lock.png" and "ic_sysbar_recent.png" then paste it to folder drawable-xhdpi (res/layout/drawable-xhdpi)
or you can use pictures from the link below..
Follow this steps, if, and only if you want to change with S5 Toggles Setting
STEP 7:
download drawable-xhdpi.rar from the link below, extract it, then copy all pictures (81 pngs), to drawable-xhdpi folder (res/layout/drawable-xhdpi)
STEP 8:
if you want to remove the line below toggles, do this..
navigate to res/values-sw360dp-xhdpi/ and open dimens.xml with notepad++
change the value of quick_setting_button_status_height and quick_setting_button_status_padding into 0.0dip
then save it..
do that again, the same thing with dimens.xml at res/values-sw360dp-hdpi/
change the value of quick_setting_button_status_height and quick_setting_button_status_padding into 0.0dip
then save it..
LAST STEP:
Recompile your SystemUi
Dont forget to copy META-INF and AndroidManifest.xml from your old apk to your new apk (compiled apk)
LINK: https://drive.google.com/folderview?id=0B3YK8r-4xeLXV2p1ZDFWQTMwN2M&usp=sharing
Screenshot as attached, mine looks great with 240dpi mod.. :highfive:
FAQ:
> both button will act like physical button, home as home, and lock as power button
> so if you long press the button, the home button will shows recent apps, and the lock button will shows Device options
> if the lock button doesn't work, press the home button first..
> if you use wanam exposed, you can center the clock, and change color to get S5 blue color theme;
- go to Notification panel > Clock position=center
- go to Notification panel > Remove gaps between titles
- go to Theme:
Header background color > change color to : FF20738D
Text label color > change color to : FFFFFFFF
Tile background color > change color to : FF20738D
- reboot and done
THANKS MATE
i hope this guide works for you..​
reserved
PhoenixRom V18.5 SystemUI.apk
this is only for PhoenixRom user, dont flash it for the other Rom...
as i promised, here you go the modded SystemUI with HomeLock Button on Status bar for PhoenixRom V18.5.. :good:
Screenshot of HomeLock_StatusBar_PhoenixRomV18.5.zip
View attachment 2755919
View attachment 2755920
IMPORTANT;
- please make a backup first, or just copy your current SystemUI.apk (located in system/priv-app) and paste it somewhere in your device before flash this mod.. just in case if you want to revert back..
- then just flash it via recovery..
if you want the different mod of HomeLock Button, you can check this link..
GreenOrange_HomeLock_StatusBar_PhoenixRomV18.5.zip
Hidden_HomeLock_StatusBar_PhoenixRomV18.5.zip
for detail about this mod, please read FAQ above.. ENJOY..
and dont forget to hit THANKS button..
older version;
for PhoenixRom v17;
choose first, what kind of mod you want, codename indicates the mod inside..:
HomeLock = include home and lock button on status bar
KK = kitkat theme; white icon for signal, data signal, and battery (maybe battery doesn't work because of ogg battery)
S5Toggles = S5 toggles setting only
then download and flash it via recovery.. you can always backup first, just in case..
DOWNLOAD for PhoenixRom v17;
View attachment StatusBar_S5Toggles.zip
View attachment StatusBar_KK_S5Toggles.zip
View attachment StatusBar_HomeLock.zip
View attachment StatusBar_HomeLock_S5Toggles.zip
View attachment StatusBar_HomeLock_KK_S5Toggles.zip
View attachment PhoenixV17_Stock_SystemUI.zip
Click to expand...
Click to collapse
HurricaneRom v11 SystemUI.apk
and this is only for HurricaneRom v11 user, dont flash it for the other Rom...
p.s.
this mod use framework-res.apk from HurricaneRom v11 original note2, not from HurricaneRom v11 with note3 app package v5 installed..
if you test it and its not work please report and send me your SystemUI.apk and framework-res.apk so i can mod it for you..
choose first, what kind of mod you want, codename indicates the mod inside..:
HomeLock = include home and lock button on status bar
KK = kitkat theme; white icon for signal, data signal, and battery
S5Toggles = S5 toggles setting only
IMPORTANT; if you already using other theme/mod, please make a nandroid backup, then wipe cache - dalvik cache before flash this mod.. just in case..
read FAQ above.. ENJOY..
and dont forget to hit THANKS button.. :good:
4.4.2 Kitkat TW Modded SystemUI.apk
for detail about this mod, please read FAQ above..
IMPORTANT;
- please make a backup first, or just copy your current SystemUI.apk (located in system/priv-app) and paste it somewhere in your device before flash this mod.. just in case if you want to revert back.
- then just flash it via recovery..
Screenshot
4.4.2 Kitkat TW Modded SystemUI - For Common 4.4.2 Kitkat TW ROM
DN3RC2_Modded_SystemUI - Special for DN3 RC2 ROM
ENJOY..
and dont forget to hit THANKS button.. :good:
wifi not working
hotdroid said:
for other request
Click to expand...
Click to collapse
ops ... wifi is not working now
1st I installed your patch with complete toggles and everything
Then I installed small zip file you gave me
Then I enabled WANAM to try some tweaks
Now I checked wifi and its not working ... so I disabled framework
and I installed your patch with only buttons and without toggles
Still same problem ... wifi not working
---------------------------------------------
reinstalled rom and reinstalled the mod with buttons only
now all is good
thanks
MehruNisa said:
ops ... wifi is not working now
1st I installed your patch with complete toggles and everything
Then I installed small zip file you gave me
Then I enabled WANAM to try some tweaks
Now I checked wifi and its not working ... so I disabled framework
and I installed your patch with only buttons and without toggles
Still same problem ... wifi not working
---------------------------------------------
reinstalled rom and reinstalled the mod with buttons only
now all is good
thanks
Click to expand...
Click to collapse
oops.. sorry mate..
maybe that small zip causing your problem, i'll remove that file so others wont get the same problem..
thanks for your report, glad you solved it..
Can I flashed on s3 v4.3
thereassaad said:
Can I flashed on s3 v4.3
Click to expand...
Click to collapse
NO, you can not.. its ROM system apk related..
even for the the same device but with different ROM will cause problems, moreover if you flash it for other device..
that's why i made the guide, so another maybe can make it for other devices..
hotdroid said:
and this is only for HurricaneRom v11 user, dont flash it for the other Rom...
p.s.
this mod use framework-res.apk from HurricaneRom v11 original note2, not from HurricaneRom v11 with note3 app package v5 installed..
if you test it and its not work please report and send me your SystemUI.apk and framework-res.apk so i can mod it for you..
choose first, what kind of mod you want, codename indicates the mod inside..:
HomeLock = include home and lock button on status bar
KK = kitkat theme; white icon for signal, data signal, and battery
S5Toggles = S5 toggles setting only
IMPORTANT; if you already using other theme/mod, please make a nandroid backup, then wipe cache - dalvik cache before flash this.. just in case..
read FAQ above.. ENJOY..
and dont forget to hit THANKS button.. :good:
Click to expand...
Click to collapse
hi
i installed in hurricane rom v11
but i found kk normal icons in status bar home lock kk theme s5toggles zip
pls make white icons
thank U in advance
JGKUMAR1976 said:
hi
i installed in hurricane rom v11
but i found kk normal icons in status bar home lock kk theme s5toggles zip
pls make white icons
thank U in advance
Click to expand...
Click to collapse
oops, sorry i miss that..
thanks for reporting, i'll recompile it again.. stay tune..
hotdroid said:
oops, sorry i miss that..
thanks for reporting, i'll recompile it again.. stay tune..
Click to expand...
Click to collapse
Sorry same again
Sent from my GT-N7100 using Tapatalk
JGKUMAR1976 said:
Sorry same again
Sent from my GT-N7100 using Tapatalk
Click to expand...
Click to collapse
hi mate..
please re-download and try it again, i hope i dont miss anything again..
and kindly if you dont mind to try every one of mod, just let me know if there something's wrong..
thanks
Hello hotdroid...is there any way to remove all the toggles and the space for it from the notification side of the status bar? I mean like aosp roms...so the notification drawer dont have any toggles at all....and we can use the toggle drawer only.
I dont know if you will understand me...sorry for my english
Enviado desde mi GT-N7100 mediante Tapatalk
hotdroid said:
and this is only for HurricaneRom v11 user, dont flash it for the other Rom...
. :good:
Click to expand...
Click to collapse
Mine on Hurricane V11 without Note 3 Mod.
I want to flash Home and lock.
I think I must flash:
File Type: zip StatusBar_HomeLock.zip - [Click for QR Code] (2.81 MB, 4 views)
But I still confused, what for this link?
File Type: zip HurricaneV11_Stock_SystemUI.zip - [Click for QR Code] (2.81 MB, 10 views)
Thanks
---
=Edit=
Wa,,,,, may be that link for back to original Hurricane, isn't it?
Cocolopes said:
Hello hotdroid...is there any way to remove all the toggles and the space for it from the notification side of the status bar? I mean like aosp roms...so the notification drawer dont have any toggles at all....and we can use the toggle drawer only.
I dont know if you will understand me...sorry for my english
Enviado desde mi GT-N7100 mediante Tapatalk
Click to expand...
Click to collapse
yeah mate.. maybe i understand what you mean.
but i'm not sure which xml should be edited and code line should be removed.
if you have a clue, let me know..
injulia said:
Mine on Hurricane V11 without Note 3 Mod.
I want to flash Home and lock.
I think I must flash:
File Type: zip StatusBar_HomeLock.zip - [Click for QR Code] (2.81 MB, 4 views)
But I still confused, what for this link?
File Type: zip HurricaneV11_Stock_SystemUI.zip - [Click for QR Code] (2.81 MB, 10 views)
Thanks
---
=Edit=
Wa,,,,, may be that link for back to original Hurricane, isn't it?
Click to expand...
Click to collapse
that's right mate. that's the stock aka the original one.
in case if you want to revert back without mod at all..
hotdroid said:
that's right mate. that's the stock aka the original one.
in case if you want to revert back without mod at all..
Click to expand...
Click to collapse
Just installed.
Thank you bro Hotdroid.
Sent from my GT-N7100 using Tapatalk
What about DN3 ?
I mean, can I flash it on DN3 4.4.2 ?
Sent from Gallifrey using TARDIS
Nonta72 said:
What about DN3 ?
I mean, can I flash it on DN3 4.4.2 ?
Sent from Gallifrey using TARDIS
Click to expand...
Click to collapse
NO, i dont think so. because 4.3 and 4.4.2 using the different framework-res.apk
even for the same rom 4.3 if using the different framework-res.apk will causing problem..
hotdroid said:
NO, i dont think so. because 4.3 and 4.4.2 using the different framework-res.apk
even for the same rom 4.3 if using the different framework-res.apk will causing problem..
Click to expand...
Click to collapse
Oh ! So sad
Thanks anyway for your Work
Hope you will manage to do the port.
Sent from Gallifrey using TARDIS

[MOD] L600 Sprint Mega 4-Way Reboot Menu TW 4.4.2 [KK]

Extended Reboot Menu TW 4.4.2 NE4 ( De-Odexed )​Don't see a lot of development for the L600 Sprint so I decided to make this Mod. This is the extended Reboot Menu only and not the "Power Menu" . This is for the STOCK TW ROM 4.4.2 NE4. Although this is De-Odexed, one could possibly use this on an Odexed system as long as same odex file is deleted. The Flashable ZIP is made taking into account the user is De-Odexed. I do not recommend flashing to a Custom Rom as the ROM may contain special permissions/policies ( if added ) that the Rom Developer may have implemented or even may be require so the Custom Rom may run or function properly.
Knowing there is no Sprint Specific Custom Rom for the L600 ATM I guess we are safe from this LOL. ​
​The Extended Reboot Menu Includes:​​REBOOT
( Normal Complete Reboot)
HOT BOOT
( Quick Reboot for restarting the Android Shell only )
DOWNLOAD
(Odin Mode)
RECOVERY
( Restarts phone in your Recovery )​
​
===================================================================
DISCLAIMER:
=================================================================== ​
==================================================================
By YOU, the USER, flashing this file or manually pasting to modify your Android System, YOU understand and know what YOU are doing. I nor anyone will be held liable nor responsible for YOUR doing if your phone bricks. As always, as is suggested by many and myself, please make sure you perform a complete
NANDROID BACKUP
before flashing and/or modifying your OS or the mentioned stock .jar file. I also suggest YOU keep a separate copy of the stock .jar file handy, like in your External SDcard, if the phone decides not to boot up. Knowing this, YOU assume all responsibility for what happens as YOU, the USER, know and comprehend what YOU are doing and understand the consequences or severity of damages that can be brought to your
device by flashing or modifying your OS incorrectly.
You Have Been Warned !!
===================================================================
​
​
What's Needed/Recommended: ​Rooted Devise ( to extract the needed files Manually for backup )
Custom Recovery ( TWRP or CWMR/PhilZ for Flashing the ZIP )
Aroma File Browser/Explorer ( file type browser in CWMR/PhilZ Recovery )
If you can do it via ADB Commands then all power to you.....
I provided BOTH , the stock Sprint ( Stock NE4 JAR ) and modded Sprint .jar ( android.policy.jar ) files and the flashable zip (NE4_4WAY_Reboot.zip) below. If the flashable ZIP does not work for you let me know please. ​What To Do:​
You have two choices on installing the .jar file. You can either Flash the ZIP in your Custom Recovery or you can use some form of File Explorer via Custom Recovery ( like the Aroma File Explorer for CWMR ) or other means to copy & paste or push the .jar file to system/framework/. If you decide to do this manually, you will then need to set the file permissions to the modified android.policy.jar file to 0644 and/or check mark off as the picture provided below shows using the method chosen through the root permissions it provides. You can rename the stock .jar file with " .bak " at the end so you don't have to delete it from the framework folder if you so choose.
Clear " cache " and " dalvik cache " ONLY .........after flashing or manually pasting the mod.​
​Words of caution.....​if you attempt to do this manually and are still actively booted in your Android OS while modifying or deleting the .jar file, there is the highest probability that your phone will immediately reboot and you will not be able to boot up the OS again and remain stuck on the Samsung boot screen as the android.policy.jar is no longer visible to your OS. This is why you need to do this before booting up like in recovery.
​
​ Other Galaxy Mega Variants - Disclaimer:​​I do not know if this will work on other carriers/models as they all are different and can or will have different permissions/policies set forth so you will be trying at your own risk. The .jar file is easily modified and the required files are easily found by searching the forums as I have. If this .jar file works for a different Samsung Galaxy Mega devise then please advise and give proper credit. Use, extract, exhume, etc the files as you choose or please.​===================================================================​
Thanks and credits go out to :​
@tdunham
@CNexus
for the How-Too and the files needed for this MOD. If I missed someone please PM me or let me know.....​​
Enjoy!
More Stock TW mods for the Sprint Mega L600 are sure to come!​
Thanks for sharing. Would love to see a Moar port for this baby but it seems there's only 3 people who have this phone that haven't bricked it. I appreciate your effort none the less. C'mon note 4.......
Sent from Uranus, the only planet with a ring on the inside.
really nice. thanks for this
Thanks ! This is a start ! Getting the ball rolling for the 600 nice
Sent from my SPH-L600 using XDA Premium 4 mobile app
help me to change lang in 4 way boot menu
NQMinhQuan said:
help me to change lang in 4 way boot menu
Click to expand...
Click to collapse
@NQMinhQuan
This is assuming you know how to baksmali/smali the jar files.........
You will need to decompile ( baksmali ) the .jar file and locate GlobalActions$99.smali in your classout folder location:
com/android/internal/policy/impl
===================================================
From here I would use NotePad++ to modify the smali files.
===================================================
First, to change the top section "Reboot Menu" to your language of choice, locate this section ( about line 50 )
Code:
[COLOR=black][FONT=Verdana]const-string v2, "[B][COLOR=red]Reboot Menu[/COLOR][/B][/FONT][/COLOR][COLOR=black][FONT=Verdana]"[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]move-result-object v1[/FONT][/COLOR]
Erase the words highlighted in Red with what you want. After your done, save the modifications.
=================
Next, locate the GlobalActions$SinglePressAction.smali in the same directory and locate these lines ( about line 38-39 ) :
Code:
[COLOR=black][FONT=Verdana]# direct methods[/FONT][/COLOR]
[COLOR=black][FONT=Verdana][COLOR=black][B].method static constructor <clinit>()V[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B].registers 3[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const/4 v0, 0x4[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]new-array v0, v0, [Ljava/lang/String;[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const/4 v1, 0x0[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const-string v2, "[COLOR=red]Reboot[/COLOR]"[/B][/COLOR][/FONT]
[COLOR=black][FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT][/COLOR]
[COLOR=black][FONT=Verdana][B]const/4 v1, 0x1[/B][/FONT][/COLOR]
[COLOR=black][FONT=Verdana][B]const-string v2, "[COLOR=red]Hot Reboot[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]const/4 v1, 0x2[/B][/FONT]
[FONT=Verdana][B]const-string v2, "[COLOR=red]Download[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]const/4 v1, 0x3[/B][/FONT]
[FONT=Verdana][B]const-string v2, "[COLOR=red]Recovery[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;[/B][/FONT]
[FONT=Verdana][B]return-void[/B][/FONT]
[FONT=Verdana][B].end method[/B][/FONT]
[/COLOR][/COLOR]
The highlighted words in Red are the ones you want to look for and replace with your desired words in the language of choice. After your done, save. From here you recompile the .jar file and then place it back in your Galaxy Mega as I described above.
DarkAngel said:
@NQMinhQuan
This is assuming you know how to baksmali/smali the jar files.........
You will need to decompile ( baksmali ) the .jar file and locate GlobalActions$99.smali in your classout folder location:
com/android/internal/policy/impl
===================================================
From here I would use NotePad++ to modify the smali files.
===================================================
First, to change the top section "Reboot Menu" to your language of choice, locate this section ( about line 50 )
Code:
[COLOR=black][FONT=Verdana]const-string v2, "[B][COLOR=red]Reboot Menu[/COLOR][/B][/FONT][/COLOR][COLOR=black][FONT=Verdana]"[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]move-result-object v1[/FONT][/COLOR]
Erase the words highlighted in Red with what you want. After your done, save the modifications.
=================
Next, locate the GlobalActions$SinglePressAction.smali in the same directory and locate these lines ( about line 38-39 ) :
Code:
[COLOR=black][FONT=Verdana]# direct methods[/FONT][/COLOR]
[COLOR=black][FONT=Verdana][COLOR=black][B].method static constructor <clinit>()V[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B].registers 3[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const/4 v0, 0x4[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]new-array v0, v0, [Ljava/lang/String;[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const/4 v1, 0x0[/B][/COLOR][/FONT]
[FONT=Verdana][COLOR=black][B]const-string v2, "[COLOR=red]Reboot[/COLOR]"[/B][/COLOR][/FONT]
[COLOR=black][FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT][/COLOR]
[COLOR=black][FONT=Verdana][B]const/4 v1, 0x1[/B][/FONT][/COLOR]
[COLOR=black][FONT=Verdana][B]const-string v2, "[COLOR=red]Hot Reboot[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]const/4 v1, 0x2[/B][/FONT]
[FONT=Verdana][B]const-string v2, "[COLOR=red]Download[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]const/4 v1, 0x3[/B][/FONT]
[FONT=Verdana][B]const-string v2, "[COLOR=red]Recovery[/COLOR]"[/B][/FONT]
[FONT=Verdana][B]aput-object v2, v0, v1[/B][/FONT]
[FONT=Verdana][B]sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;[/B][/FONT]
[FONT=Verdana][B]return-void[/B][/FONT]
[FONT=Verdana][B].end method[/B][/FONT]
[/COLOR][/COLOR]
The highlighted words in Red are the ones you want to look for and replace with your desired words in the language of choice. After your done, save. From here you recompile the .jar file and then place it back in your Galaxy Mega as I described above.
Click to expand...
Click to collapse
thank bro
NQMinhQuan said:
thank bro
Click to expand...
Click to collapse
Your Welcome:good:
DarkAngel said:
@NQMinhQuan
This is assuming you know how to baksmali/smali the jar files.........
You will need to decompile ( baksmali ) the .jar file and locate GlobalActions$99.smali in your classout folder location:
Click to expand...
Click to collapse
thank for support , but it's not work . I using S4 4.4.2
screenshoot :
can't you help me change china language in 4way extended power menu to ENG, please !
NQMinhQuan said:
thank for support , but it's not work . I using S4 4.4.2
screenshoot : Picture
can't you help me change china language in 4way extended power menu to ENG, please !
Click to expand...
Click to collapse
Wait, are you using this jar file in your S4 or are you using another different one? If so does it work for you?
To change the bottom 4 you need to locate the GlobalActions$SinglePressAction.smali in the same directory and locate these lines ( about line 38-39 ) :
Code:
[B]# direct methods[/B]
[B].method static constructor <clinit>()V[/B]
[B].registers 3[/B]
[B]const/4 v0, 0x4[/B]
[B]new-array v0, v0, [Ljava/lang/String;[/B]
[B]const/4 v1, 0x0[/B]
[B]const-string v2, "Reboot"[/B]
[B]aput-object v2, v0, v1[/B]
[B]const/4 v1, 0x1[/B]
[B]const-string v2, "Hot Reboot"[/B]
[B]aput-object v2, v0, v1[/B]
[B]const/4 v1, 0x2[/B]
[B]const-string v2, "Download"[/B]
[B]aput-object v2, v0, v1[/B]
[B]const/4 v1, 0x3[/B]
[B]const-string v2, "Recovery"[/B]
[B]aput-object v2, v0, v1[/B]
[B]sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;[/B]
[B]return-void[/B]
[B].end method[/B]
if I want to add something to do?
example: Flashlight, Screen Shots
[email protected] said:
if I want to add something to do?
example: Flashlight, Screen Shots
Click to expand...
Click to collapse
LOL.....
I have been deciding whether to release some things I have finished / been working on as I wanted to see what was causing some issues on some......
I have the Flashlight mod done already and working. It just stalls a bit at first for a few seconds at every reboot but then after works great every time you press ( no torch apk needed ) . Screen Shot I am working on at the moment as well. I have everything ready to modify and then compile. If I have time today I will get it done.
I also have the S5 Launcher 95% done, both Auto Rotation and non-Auto Rotation to include the Lock Screen Rotation. I just can't figure why the Home Screen Edit Page looks small when I have everything set. I have to be missing something. I am also adding Pull Up to the Auto Rotate launcher as it is missing. Everything as far as Magazine, Pull Up, Theming & Wall Paper Picker work perfect on it with no errors. Oh and also I can not add pages in the edit page screen as well. Only in landscape mode ......
Anyways been busy trying to come out with things for the Mega and use them for my other devices as well.
Hey. Has anyone tried this on Sprint NG2?
nyfl2004 said:
Hey. Has anyone tried this on Sprint NG2?
Click to expand...
Click to collapse
It's not the same for the N2 but if u want to take the chance go ahead. I have already made some for other N2 TW Roms, just search under my name. It's SecSettings and SystemUI that have to be modded.
DarkAngel said:
It's not the same for the N2 but if u want to take the chance go ahead. I have already made some for other N2 TW Roms, just search under my name. It's SecSettings and SystemUI that have to be modded.
Click to expand...
Click to collapse
Thanks man. I just gave up my S3 after 2 yrs and bought an S4. I'm pretty much starting from scratch again. Going to start working on an S5 theme, and I definitely want the 4-in-1 reboot menu. I'm currently @mxmr Stock Rooted Deodexed NG2 Refitted rom. I've got pretty much all S5 apps working with the exception of IncallUI, it crashes when making a call. I hope to have working this weekend. I'll definitely check out your other threads. Thanks again!
nyfl2004 said:
Thanks man. I just gave up my S3 after 2 yrs and bought an S4. I'm pretty much starting from scratch again. Going to start working on an S5 theme, and I definitely want the 4-in-1 reboot menu. I'm currently @mxmr Stock Rooted Deodexed NG2 Refitted rom. I've got pretty much all S5 apps working with the exception of IncallUI, it crashes when making a call. I hope to have working this weekend. I'll definitely check out your other threads. Thanks again!
Click to expand...
Click to collapse
Your Welcome. Big thanks go to the Devs that made this happen. We need more members developing for the L600.....

[guide/How-To] Disable Verizon CD Installer

This is based on Verizon Note 2 ND7 Android 4.4.2 Deodexed. This was a group effort by Versatile1 and myself, please don't forget to thank Versatile1.
First thing you need to do is have a current Nandroid or backup. Then grab your services.jar from /system/framework.
Decompile with APKTOOL of your choice.
First step is to edit /smali/com/android/server/usb/UsbDeviceManager$UsbHandler.smali
Look For: 2 instances of "const v6, 0x104073c" and change to "const v6, 0x104073a"
Then edit /smali/com/android/server/KiesConnectivity/KiesUsbManager.smali
Look for: 1 instance of "const-wide/16 v2, 0x7530" and change to "const-wide/16 v2, 0x0"
That's it. Compile and Enjoy!!!
If you want to use this in your ROM please don't forget to give credit to Versatile1 and myself.
Do not re-post our work!!! If you have questions or need this Mod on another phone just ask in a post!!!
Please don't forget to hit THANKS!!!

Categories

Resources