Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,784,272 Members 44,050 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
DarkAngel
Old
(Last edited by DarkAngel; 13th July 2014 at 01:31 PM.)
#1  
DarkAngel's Avatar
Senior Member - OP
Thanks Meter 192
Posts: 404
Join Date: Aug 2006
Location: Arizona
Default [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!
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2014-07-12-17-01-54.png
Views:	133
Size:	207.0 KB
ID:	2848152   Click image for larger version

Name:	Screenshot_2014-07-12-17-02-57.png
Views:	124
Size:	109.6 KB
ID:	2848153   Click image for larger version

Name:	android policy permissions.png
Views:	119
Size:	38.3 KB
ID:	2848160  
Attached Files
File Type: zip NE4_4WAY_Reboot.zip - [Click for QR Code] (397.3 KB, 30 views)
File Type: jar android.policy.jar - [Click for QR Code] (272.9 KB, 16 views)
File Type: zip Stock NE4 JAR.zip - [Click for QR Code] (264.0 KB, 19 views)
SGN2 (SPH-L900) - NE2/Running 4.4.2 TW Community Rom/Philz Recovery
SGS3 (SPH-L710) - ND8/Stock, Rooted w/ All the Goodys/Philz Recovery
SGS4 (SPH-L720) - NAE/Stock, Rooted/Philz Recovery
SGM (SPH-L600) - NE4/Stock, Rooted/Philz Recovery
Nabi2 (NABI2-NV7A) - 4.1 JB/Stock, Rooted & Monarch UI Removed/TWRP 2.6.3.0 Recovery

"Fuhu Nabi Wiki" <----Click to view & feel free to add to the knowledge base......
The Following 3 Users Say Thank You to DarkAngel For This Useful Post: [ Click to Expand ]
 
izzibew26
Old
#2  
izzibew26's Avatar
Senior Member
Thanks Meter 81
Posts: 130
Join Date: Jul 2012
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.
 
VimanAdrian
Old
#3  
Junior Member
Thanks Meter 1
Posts: 13
Join Date: Jan 2014
really nice. thanks for this
 
seanroot
Old
#4  
seanroot's Avatar
Senior Member
Thanks Meter 26
Posts: 113
Join Date: Apr 2012
Location: sacramento
Thanks ! This is a start ! Getting the ball rolling for the 600 nice

Sent from my SPH-L600 using XDA Premium 4 mobile app
 
NQMinhQuan
Old
#5  
Junior Member
Thanks Meter 9
Posts: 22
Join Date: Jun 2014
help me to change lang in 4 way boot menu
The Following User Says Thank You to NQMinhQuan For This Useful Post: [ Click to Expand ]
 
DarkAngel
Old
(Last edited by DarkAngel; 20th July 2014 at 12:22 PM.)
#6  
DarkAngel's Avatar
Senior Member - OP
Thanks Meter 192
Posts: 404
Join Date: Aug 2006
Location: Arizona
Quote:
Originally Posted by NQMinhQuan View Post
help me to change lang in 4 way boot menu
@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:
const-string v2, "Reboot Menu"
 
invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
 
move-result-object v1
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:
# direct methods
.method static constructor <clinit>()V
.registers 3
 
const/4 v0, 0x4
 
new-array v0, v0, [Ljava/lang/String;
 
const/4 v1, 0x0
 
const-string v2, "Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x1
 
const-string v2, "Hot Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x2
 
const-string v2, "Download"
 
aput-object v2, v0, v1
 
const/4 v1, 0x3
 
const-string v2, "Recovery"
 
aput-object v2, v0, v1
 
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
 
return-void
.end method
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.
SGN2 (SPH-L900) - NE2/Running 4.4.2 TW Community Rom/Philz Recovery
SGS3 (SPH-L710) - ND8/Stock, Rooted w/ All the Goodys/Philz Recovery
SGS4 (SPH-L720) - NAE/Stock, Rooted/Philz Recovery
SGM (SPH-L600) - NE4/Stock, Rooted/Philz Recovery
Nabi2 (NABI2-NV7A) - 4.1 JB/Stock, Rooted & Monarch UI Removed/TWRP 2.6.3.0 Recovery

"Fuhu Nabi Wiki" <----Click to view & feel free to add to the knowledge base......
The Following User Says Thank You to DarkAngel For This Useful Post: [ Click to Expand ]
 
NQMinhQuan
Old
#7  
Junior Member
Thanks Meter 9
Posts: 22
Join Date: Jun 2014
Quote:
Originally Posted by DarkAngel View Post
@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:
const-string v2, "Reboot Menu"
 
invoke-virtual {v1, v2}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
 
move-result-object v1
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:
# direct methods
.method static constructor <clinit>()V
.registers 3
 
const/4 v0, 0x4
 
new-array v0, v0, [Ljava/lang/String;
 
const/4 v1, 0x0
 
const-string v2, "Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x1
 
const-string v2, "Hot Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x2
 
const-string v2, "Download"
 
aput-object v2, v0, v1
 
const/4 v1, 0x3
 
const-string v2, "Recovery"
 
aput-object v2, v0, v1
 
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
 
return-void
.end method
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.
thank bro
 
DarkAngel
Old
#8  
DarkAngel's Avatar
Senior Member - OP
Thanks Meter 192
Posts: 404
Join Date: Aug 2006
Location: Arizona
Quote:
Originally Posted by NQMinhQuan View Post
thank bro
Your Welcome
SGN2 (SPH-L900) - NE2/Running 4.4.2 TW Community Rom/Philz Recovery
SGS3 (SPH-L710) - ND8/Stock, Rooted w/ All the Goodys/Philz Recovery
SGS4 (SPH-L720) - NAE/Stock, Rooted/Philz Recovery
SGM (SPH-L600) - NE4/Stock, Rooted/Philz Recovery
Nabi2 (NABI2-NV7A) - 4.1 JB/Stock, Rooted & Monarch UI Removed/TWRP 2.6.3.0 Recovery

"Fuhu Nabi Wiki" <----Click to view & feel free to add to the knowledge base......
 
NQMinhQuan
Old
(Last edited by NQMinhQuan; 20th July 2014 at 01:58 PM.)
#9  
Junior Member
Thanks Meter 9
Posts: 22
Join Date: Jun 2014
Quote:
Originally Posted by DarkAngel View Post
@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:
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 !
Attached Files
File Type: jar android.policy.jar - [Click for QR Code] (250.4 KB, 1 views)
 
DarkAngel
Old
#10  
DarkAngel's Avatar
Senior Member - OP
Thanks Meter 192
Posts: 404
Join Date: Aug 2006
Location: Arizona
Quote:
Originally Posted by NQMinhQuan View Post
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 !
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:
# direct methods
.method static constructor <clinit>()V
.registers 3
 
const/4 v0, 0x4
 
new-array v0, v0, [Ljava/lang/String;
 
const/4 v1, 0x0
 
const-string v2, "Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x1
 
const-string v2, "Hot Reboot"
 
aput-object v2, v0, v1
 
const/4 v1, 0x2
 
const-string v2, "Download"
 
aput-object v2, v0, v1
 
const/4 v1, 0x3
 
const-string v2, "Recovery"
 
aput-object v2, v0, v1
 
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
 
return-void
.end method
SGN2 (SPH-L900) - NE2/Running 4.4.2 TW Community Rom/Philz Recovery
SGS3 (SPH-L710) - ND8/Stock, Rooted w/ All the Goodys/Philz Recovery
SGS4 (SPH-L720) - NAE/Stock, Rooted/Philz Recovery
SGM (SPH-L600) - NE4/Stock, Rooted/Philz Recovery
Nabi2 (NABI2-NV7A) - 4.1 JB/Stock, Rooted & Monarch UI Removed/TWRP 2.6.3.0 Recovery

"Fuhu Nabi Wiki" <----Click to view & feel free to add to the knowledge base......

Tags
galaxy, l600, mega, ne2, sprint
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Prevent Apps from Locking Screen Orientation with HaveOwnOrientation

Most applications on Android play nicely with both landscape and … more

Create Your Own Launcher with HTMLauncher

There are hundreds of launcher replacement applications available for Android. Most of them are … more

First ROMs Appear for the Nvidia Shield Tablet

TheNvidia Shield Tablethas only been available for a little over a month. In that short time, … more

How to Root the LG G Watch – XDA Developer TV

In this episode, XDA Developer TV Producer RootJunky Tom shows you how to root and unlock … more