DroidForums.net is the original Verizon Android Forum! Registered Users do not see these ads. Please Register - It's Free!
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: Hidden Shutdown Options - How do they work?

  1. Junior Droid
    jgaikwad's Avatar
    Member #
    71564
    Join Date
    May 2010
    Posts
    14
    Phone
    Motorola Droid
    #11
    Quote Originally Posted by Se7enLC View Post
    Quote Originally Posted by jgaikwad View Post
    Quote Originally Posted by Se7enLC View Post
    Here's the real (working) version. I just tested it out - the volume buttons still do stuff, camera button doesn't.

    Make sure you chmod 0755 the file once you copy it in.
    you sure this is the same one you tested? camera button still shuts down on me
    Positive. But I'm running a non-standard shell for /system/bin/sh, so that could be it. I'll look into it a little closer later, perhaps.
    ah could be it, i'll keep digging. Thanks for the help
  2. Rescue Squad
    Tallica's Avatar
    Member #
    48266
    Join Date
    Mar 2010
    Location
    Middleboro, MA
    Posts
    3,259
    Liked
    6 times
    Twitter
    Tallica21
    Phone
    GSIII-Rooted
    Premium Member
    #12
    This is how you stop it.

    -Hidden Shutdown Options using keys (credit to Pete):
    To Remove These Options Delete /system/bin/shutdown

    to just disable rename the file to shutdown.bak
  3. Junior Droid
    jgaikwad's Avatar
    Member #
    71564
    Join Date
    May 2010
    Posts
    14
    Phone
    Motorola Droid
    #13
    Quote Originally Posted by tallica View Post
    This is how you stop it.

    -Hidden Shutdown Options using keys (credit to Pete):
    To Remove These Options Delete /system/bin/shutdown

    to just disable rename the file to shutdown.bak

    agreed, but i don't want to stop it all, just want to disable the camera button one.
  4. Rescue Squad
    Tallica's Avatar
    Member #
    48266
    Join Date
    Mar 2010
    Location
    Middleboro, MA
    Posts
    3,259
    Liked
    6 times
    Twitter
    Tallica21
    Phone
    GSIII-Rooted
    Premium Member
    #14
    Quote Originally Posted by jgaikwad View Post
    Quote Originally Posted by tallica View Post
    This is how you stop it.

    -Hidden Shutdown Options using keys (credit to Pete):
    To Remove These Options Delete /system/bin/shutdown

    to just disable rename the file to shutdown.bak

    agreed, but i don't want to stop it all, just want to disable the camera button one.
    sorry, my bad
  5. Reserved Name's Avatar
    Member #
    44491
    Join Date
    Mar 2010
    Posts
    59
    Phone
    OG Droid GPA15
    #15

    magnets
  6. Master Droid
    michael_campbell's Avatar
    Member #
    63778
    Join Date
    Apr 2010
    Location
    Atlanta suburbia.
    Posts
    328
    Phone
    Moto Droid 1.
    #16
    Quote Originally Posted by Se7enLC View Post
    ...I'm running a non-standard shell for /system/bin/sh, so that could be it. I'll look into it a little closer later, perhaps.
    What are you running for /bin/sh?
  7. Senior Droid
    ASN-121's Avatar
    Member #
    20021
    Join Date
    Dec 2009
    Location
    Mesa
    Posts
    203
    Liked
    2 times
    Phone
    vs980
    #17
    Quote Originally Posted by Reserved Name View Post

    magnets
    Somebody finally referenced it. I was waiting for it!
    #su|LG G2|CM11
    #su|Samsung Galaxy S3|-Sold!
    #su|Motorola Droid Razr MAXX|-For Sale w/Lapdock!
    #su|htc Thunderbolt|-Sold!
    #su|Motorola Droid|-Traded!
  8. Droid Ninja
    Se7enLC's Avatar
    Member #
    5148
    Join Date
    Nov 2009
    Posts
    1,263
    Liked
    6 times
    Phone
    Samsung Galaxy Nexus
    #18
    Quote Originally Posted by michael_campbell View Post
    Quote Originally Posted by Se7enLC View Post
    ...I'm running a non-standard shell for /system/bin/sh, so that could be it. I'll look into it a little closer later, perhaps.
    What are you running for /bin/sh?
    busybox ash
    Cool CM Tricks
    custom_backup_list.txt - make a list of files in /system that will survive a nightly install (ringtones, notifications, system apps, wallpapers, whatever)
    in Terminal Emulator, set this as your shell command: "/system/xbin/su -c /system/xbin/bash". You get all the features of bash, root access, and you can still use the initial command field for whatever you want (default is adding /data/local/bin to your path)
  9. Senior Droid
    creamers's Avatar
    Member #
    21128
    Join Date
    Dec 2009
    Location
    Tennessee
    Posts
    119
    Phone
    Pm me for it.
    #19
    I would assume there is another file somewhere that takes those key combination's and maps out a shell commands like shutdown, shutdown -r, shutdown -rr

    By changing the shutdown file all your doing is editing the commands not the button remap its self.
  10. Droid Ninja
    Se7enLC's Avatar
    Member #
    5148
    Join Date
    Nov 2009
    Posts
    1,263
    Liked
    6 times
    Phone
    Samsung Galaxy Nexus
    #20
    Quote Originally Posted by creamers View Post
    I would assume there is another file somewhere that takes those key combination's and maps out a shell commands like shutdown, shutdown -r, shutdown -rr

    By changing the shutdown file all your doing is editing the commands not the button remap its self.
    Umm, yes, we know.

    Read the first post in this thread. The change between BB 0.1 and BB 0.2 to enable the hidden shutdown options was JUST adding the shutdown script. No other related file changed. That means that the key commands and resulting script calls were there all along, but there was no shutdown script to call. All pete did was add the script for them to call to make them work. Similarly, because there never was a /system/bin/shutdown file before, it's safe to say that it doesn't get called anywhere else, at least not anywhere important.

    All we are doing is modifying that script to effectively reassign those buttons to different commands (or in this case, no command at all). What that does is disables ONE of the three hidden shutdown commands.

    I'm also thinking of other possible uses for those keys. Perhaps use the power+volup/down keys to adjust the max cpu speed up and down? That would be a trivial change to implement.
    Cool CM Tricks
    custom_backup_list.txt - make a list of files in /system that will survive a nightly install (ringtones, notifications, system apps, wallpapers, whatever)
    in Terminal Emulator, set this as your shell command: "/system/xbin/su -c /system/xbin/bash". You get all the features of bash, root access, and you can still use the initial command field for whatever you want (default is adding /data/local/bin to your path)
Page 2 of 4 FirstFirst 1234 LastLast

Links

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Similar Threads

  1. hidden phone options none of us know anything about.
    By gixxerboy in forum Android General Discussions
    Replies: 5
    Last Post: 05-21-2010, 07:20 AM
  2. Bugless Beast 7.5 Random Shutdown
    By Aviamund in forum Android Hacks and Help
    Replies: 1
    Last Post: 02-15-2010, 06:25 PM
  3. Hidden
    By AJRAS in forum Android Hacks and Help
    Replies: 2
    Last Post: 02-14-2010, 08:19 PM
  4. Shutdown unnecessary apps
    By theproman23 in forum Motorola Droid
    Replies: 0
    Last Post: 02-14-2010, 05:27 PM
  5. 2 Problems need help, Camera and Shutdown
    By snowman in forum Android General Discussions
    Replies: 4
    Last Post: 01-11-2010, 07:46 PM

Search tags for this page

android command line shutdown
,
android halt command
,
android power off command
,

android reboot command

,

android shutdown command

,
android shutdown options
,

android shutdown script

,
droid x2 how to change shutdown
,
shutdown android command
,

shutdown command android

Click on a term to search our site for related topics.
Find us on Google+