If you are running stock JI6 (you got it from Kies, OTA, or through Odin) then you don't have Voodoo. Just download and flash through Clockwork!
I tried it, but no dice. Only thing I can figure is that the lock screen being referenced here is not the one I'm using although it sounds like what I have.
Hi,
If you're using the stock JI6, then check and see if you .odex files for almost every apk and jar in /system/framework
Now only if someone will find a similar workaround to add Vibrate mode...That would be great
Or you can just hold the power down for 10 seconds
Sent from my SGH-T959 using XDA App
Hi,
If you're using the stock JI6, then check and see if you .odex files for almost every apk and jar in /system/framework
adb shell
su
cd system/framework
ls
if you have odex files, then my zip won't work, sorry.
I can try and talk you through the steps to generate the odex file, but you need to be comfortable with adb and running shell/terminal commands.
Cheers, =)
No kidding. I hate the fact there is silent mode, but no vibrate.
No kidding. I hate the fact there is silent mode, but no vibrate.
I could understand that this might not be possible to do, but could someone please, PLEASE, add the reboot recovery option to this new expanded power menu.
It will be REALLY helpful, rather then go to a terminal, type su, type reboot recovery....or create a shortcut with another program(forgot what it is- since I could never get it to work anyway) on the desktop....
please?
Thanks
adb push android.policy.odex /sdcard
adb shell
su
mount -o remount,rw yaffs2 /system
busybox cp -f /sdcard/android.policy.odex /system/framework
reboot
So I figured out how to do all of the magic and create a android.policy.odex file for stock JI6 builds.
For those of you interested in how to do it, the following thread was very helpful for me:
xdaforums.com/showthread.php?t=779803
Installation instructions:
Nandroid Backup!
Download the attached file and unzip it.
Code:adb push android.policy.odex /sdcard adb shell su mount -o remount,rw yaffs2 /system busybox cp -f /sdcard/android.policy.odex /system/framework reboot
You should now have the reboot option on your menu!
For those of you who know how to make a flashable zip, feel free to use this file but please PM me the steps on how to accomplish this so that I can do it in the future.
Louis
<string name="reboot_recovery">Recovery</string>
<string name="reboot_download">Download</string>
<string name="reboot">Reboot</string>
<public type="string" name="reboot_recovery" id="0x010403c3" />
<public type="string" name="reboot_download" id="0x010403c4" />
<public type="string" name="reboot" id="0x010403c5" />
<public type="drawable" name="reboot" id="0x010803aa" />
<public type="drawable" name="recovery" id="0x010803ab" />
<public type="drawable" name="download" id="0x010803ac" />
.field public static mReboot:I
sget v1, Lcom/android/internal/app/ShutdownThread;->mReboot:I
const/4 v2, 0x1
if-eq v1, v2, :reboot
const/4 v2, 0x2
if-eq v1, v2, :rebootRecovery
const/4 v2, 0x3
if-eq v1, v2, :rebootDownload
.line 531
invoke-static {}, Landroid/os/Power;->shutdown()V
.line 532
return-void
:reboot
const-string v4, "now"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
:rebootRecovery
const-string v4, "recovery"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
:rebootDownload
const-string v4, "download"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
const/4 v0, 0x3
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
const/4 v0, 0x6
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
const/4 v1, 0x3
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7;
const v3, 0x10803aa # reboot icon resource id
const v4, 0x10403c5 # reboot string resource id
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$7;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x4
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;
const v3, 0x10803ab # recovery icon resource id
const v4, 0x10403c3 # recovery string resource id
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, 0x10803ac # download icon resource id
const v4, 0x10403c4 # download string resource id
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 v2, 0x1
sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I
const/4 v2, 0x2
sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I
const/4 v2, 0x3
sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I
someone asked for this so here it is.
decompile android.policy
make a copy of GlobalActions$3.smali and name it to GlobalActions$7.smali open GlobalActions$7.smali
and replace all instances of GlobalActions$3 with GlobalActions$7
replace method onPress with this
Code:.method public onPress()V .registers 3 const-string v0, "Reboot Now" invoke-static {v0}, Landroid/os/Power;->reboot(Ljava/lang/String;)V return-void .end method
save and close
now open GlobalActions.smali
and in method createDialog
the first thing that we need to do is increase the array length by 1 so find this
and change toCode:const/4 v0, 0x3 new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
next we add the new menu item so on line 457 we add this next bit of code after "aput-object v2, v0, v1"Code:const/4 v0, 0x4 new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
framework-res already has a string for reboot so no modifications are needed to framework-resCode:const/4 v1, 0x3 # position in the menu array new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7; const v3, 0x1080030 # power icon const v4, 0x10402af # reboot string invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$7;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V aput-object v2, v0, v1
save and close then compile android.policy
const/4 v1, 0x3
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7;
const v3, 0x10803aa # reboot icon resource id
const v4, 0x10403c5 # reboot string resource id
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$7;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
const/4 v1, 0x4
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;
const v3, 0x10803ab # recovery icon resource id
const v4, 0x10403c3 # recovery string resource id
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, 0x10803ac # download icon resource id
const v4, 0x10403c4 # download string resource id
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, 0x4
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$8;
const v3, 0x1080434
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, 0x1080435
const v4, 0x1040486
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, 0x1080436
const v4, 0x1040487
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