1. Download our Official Android App: Forums for Android!

[Verizon] Access settings through a terminal emulator or script

Discussion in 'Android Devices' started by nkk, Jan 13, 2012.

  1. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    So I flash ROMs a lot (big surprise...) and I end up having to change a lot of universal (in all ROMS) settings such as changing click sounds, turning off lockscreen unlock sounds, etc. Is there a way to access and change these options through a script? My end goal would be to have a .sh script I could run or feed through gScript to do this, so every new flash I could just run my new_rom_setup.sh as opposed to spending 20 minutes hunting down all of these settings, realizing I forgot one, going back, etc.

    Thanks,
    Nkk
     

    Advertisement

  2. VoidedSaint

    VoidedSaint Resident Ninja
    Rank:
    None
    Points:
    423
    Posts:
    8,201
    Joined:
    Feb 10, 2010

    Feb 10, 2010
    8,201
    2,090
    423
    Male
    Virginia
    you would have to develop a script to tell it to do that, and not so sure it would really work all that well. you would have to be correct in every aspect of it, or you could mess something up severely
     
  3. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    I know I could screw things up... If I were scared of that, I would not have rooted ;p

    I just want to know if there are ways to do this.

    Thanks
    Nkk
     
  4. Yeahha

    Yeahha Usually off topic
    Rank:
    None
    Points:
    813
    Posts:
    10,472
    Joined:
    Jul 29, 2010

    Jul 29, 2010
    10,472
    4,693
    813
    ...
    FG
    The problem would be that not all devs use the same version of each type of system app so trying to tweak a system setting from one rom to the next may be different. Do you know of any phones that have this capability?

    I agree with VS that you would most likely need to make the script yourself and manually put it in your the rom zip prior to flashing or put it in the correct location on /system manually after flashing.
     
  5. nkk

    nkk Android Expert
    Thread Starter
    Rank:
    None
    Points:
    163
    Posts:
    758
    Joined:
    Mar 10, 2010

    Mar 10, 2010
    758
    565
    163
    No, I do not know of any way to do this anywhere. I was sort of hoping (perhaps a bit optimistically) that since these were in the normal system settings menu (i.e. I am not changing Gmail settings, I am changing system settings) and they were not ROM specific settings that they would be the same for all 4.0.3 bases. I cannot imagine making the script would be that hard, as once you get the command to access it you just put it in the script. In my mind, if this were implemented, the commands would probably be no more complex then (and this is purely made up):

    settings vibrate_on_touch -o

    or if they used plaintext files, a simple cat and sed would replace the lime (probably an =TRUE or =FALSE situation).

    Or something similar.

    Oh well, it was a good idea while it lasted.

    Thanks,
    Nkk
     
Tags:

Share This Page

Loading...