Velocity Script


  1. savoxis

    savoxis Well-Known Member Developer

    Velocity Script
    [​IMG]

    I have decided to keep a thread to track the Velocity Script, to make it easier to find updates, FAQs, and pull ideas from the community. Please post any issues you are having with the script, ideas you might have for new features, or any questons or comments you have.

    The Velocity Script is included only in Versions of the ROM greater than 1.0 the script is incompatible with any other version of Velocity.

    Script Features:
    • OTA Update Capabilities for both Script and Velocity ROM
    • Menu Driven
    • Dynamic for Easy Updating
    • Goodies are downloaded on demand to save space on your phone
    • Boot Animation Changer
    • System Font Changer
    • Theme Changer
    • LCD Density Adjustment
    • CPU Information and Overclocking Tools
    • FROYO A2SD Selector
    • Ad Toggler
    • ROM Odexing Script
    • Disk Free Information
    • Stagefright Toggler
    • Keypress Sound Toggling
    • Both Online and Offline Modes Available
    • Manifest System to Control DLC
    • Smart Zipalign Tool
    • Dalvik2Cache Toggler
    • RAM Freedom Script
    • Boot Sound Toggling
    • Boot Sounds Changer
    • Downloaded Application Backup and Restore (Including A2SD {Thx Trident})
    • Mirror System with 3 Servers

    Script Usage:
    1. Open your terminal emulator or start ADB shell
    2. Gain SuperUser access by typing su then enter
    3. Type velocity and press enter
    4. The Script will Check for Updates at Launch

    Backdoors:
    To use these type velocity then the command (eg velocity -sd)
    • -offline offline -ol ol
      Starts in Offline Mode
    • -update update ud -ud
      Starts the Script Updater
    • -force -forceupdate force forceupdate
      Forces an update
    • -sdcard -sd sdcard sd sdinstall script2sd
      Sets script download / workspace up as sdcard instead of cache, use this if you are out of space on cache.
    • adson|adsoff
      Turns ads on and off, respectively
    • a2sdoff|a2sdon|a2sdauto
      Sets a2sd default install location
    • bootsound on|off
      Enable/Disable Bootsounds (1.1 Only)
    • dalvikvm X
      Set Dalvik VM heapsize to X
    • clearcache
      Clears cache and market cache
    • cleardalvik
      Clears dalvik-cache
    • clearbatt
      Clears Battery Status
    • stagefrighton|stagefrightoff
      Turns stagefright off or on
    • sysapp X
      Removes sysapp named X where X=App Name without .apk (eg YouTube)


    Advertisement
    :
    eitucatsuj, dautley, yohobojo and 5 others like this.
  2. savoxis

    savoxis Well-Known Member Developer

    Current Version 39

    Changes in the latest Version:
    • New market and app FC auto fix


    Previous Changes:
    37/38
    • Boot Sounds!
    • Preview Pics for Themes!
    • Added MD5 checking for.... something that previously didn't have it! (don't remember which)
    • Added a failsafe for splash flashing. Say goodbye to blue screens?
    • Update nag auto fix

    35/36
    • Added "Free Memory" script, which will free all available memory
    • Improved System App menu. Now VERY dynamic
    • Took out old servers slated for removal
    • Cleaned up code, removed un-needed deps
    Version 34
    • More failsafe checks
    • Cleaned up script 100% POSIX compliant!
    • Cleaned up 10k worth of code (about 400 lines)
    • Streamlined menus, X for main menu in all areas
    • Added Donate to Dev link
    • Probably a lot more that I am forgetting, spent a lot of time on this one, whent thru line by line
    Version 31
    • Added d2as server as a mirror made all servers git compliant for easy, dynamic sync
    • Fixed StockTheme:please apply stock theme in between other themes
    • Made default script download on sdcard
    Version 30
    • Updated OTA Rom options, added md5 check
    • Various script updates for cleaner code
    • Added 12 backdoors for cmdline script execution
    Version 28
    • MIRRORS!!!!
    Version 27
    • Help options integrated to all menus
    • Startup Function cleaned
    • OTA Style Splash Changer (fixed)
    • Dalvik-Cache Cleaner in Script Menu
    • Ability to Toggle between SD and Cache for downloads

    Version 24
    • Fixed Dalvik2Cache so you can wipe in recov
    • Fixed Dalvik2Cache so if your low on space it halts
    • Some Verbage Updates
    Version 23
    • Added Dalvik2Cache Toggler *fixed but still a little experimental
    • Added Zipalign
    • Added Random Intro Message
    • Updated manifests
    • Im sure theres alot more I forgot

    Version 19:
    • Added Dynamic Manifest System for Content - Downloadables list will now be retrieved on the fly!
    • Added check to make sure you enter a number in menus
    • Added a bunch of behind the scenes features to be used later

    Version 18:
    • Added Keypress Sound Toggling
    • Added Elegant GB Theme
    • Added AndroidKris' Boot Animation
    • Rewrote CPU (You wont see a difference)
    • Added some new Metamorph function for future use
    • Reworked menus
    • Removed Color changer menu

    Version 17:
    • Added support for ROM OTA

    Version 16:
    • Added Stagefright Toggle
    • Added LCD Density Changer
    • Added Used Space Checker

    Version 15:
    • Changed servers to a *offsite* solution
    • Added version # on main menu

    Version 14:
    • Added themes from userspace
    • Added script check in the begining
    • Cleaned Piped output of wget for smaller files to /dev/null
      for cleanliness

    Version 13:
    • Added check to make sure your online
    • and disable OTA features if you are not
    j2cool2012, dautley, yohobojo and 5 others like this.
  3. savoxis

    savoxis Well-Known Member Developer

    FAQS


    After reflashing my rom the script will not update itself, how can I fix this?
    Unfortunately the original script version had a hardcoded IP address for the OTA server, this server was moved to a better solution. You can force an update manually by opening a terminal emulator and typing the following:
    su
    wget -O /system/bin/velocity http://50.56.77.160/velocity/scripts/velocity
    chmod 777 /system/bin/velocity



    When I flash a splash image and reboot, the splash appears distorted or as a blue screen. Why did this happen and how can I fix it?
    The splash images are a little finicky and easily get corrupted, you can fix this by reflashing or flashing a different splash image. If you still have trouble try clearing your download cache and try again to purge any possibly corrupted downloads (script menu 4 then 3)

    I have tried everything and it still doesn't work!
    Then please flash this zip in recovery, do not wipe anything it will give you v39 and a new wget binary courtesy of delocated
    Slayer72 and Matt's 175 like this.
  4. KingOfGreen

    KingOfGreen Well-Known Member


    You can, under options there is an inital command i believe and you can do it there. Ive used it just to enter su when i open it
  5. azuma73

    azuma73 Well-Known Member

    !Did Dalvik move and holy balls! Int. Mem went from @74mb to 124mb. And talk about fast! Sav you are the allly ninja. Or velocity wizard or whichever you prefer! Anyhoo.....keep up the kickass work and rock on! Thanx man!!!
  6. dcooterfrog

    dcooterfrog Well-Known Member

    I thought I would post here as well
    it looks like dalvik 2 cache is working well (see my other post) thanks for making this happen on the basis of me asking a question. and fast too

    the only things I suggest is to add a stronger warning abou the d2c toggle. 'did yo do a nandroid yet, this could break'

    also there any way to see how large dalvik is and how much space is left on cache before it starts. (or maybe make it refuse if it dalvik > cache remaining)
  7. KingOfGreen

    KingOfGreen Well-Known Member

    In the script you can check the space of all 3 partitions of your phone
  8. dcooterfrog

    dcooterfrog Well-Known Member

    yes, but I meant ot actually compare dalvik to the space remaining in cache and stop if it won't fit.
  9. j0eh4x

    j0eh4x Active Member

    After I updated the scripts I get
    /system/bin/velocity: 912: Syntax Error: end of file unexpected
    When I execute velocity... how can I fix
  10. savoxis

    savoxis Well-Known Member Developer

    Thats new, the only thing I can guess is the update got corrupted.

    in a terminal type

    Code (Text):

    su
    wget -O /system/bin/velocity http://184.106.76.138/velocity/scripts/velocity
    chmod 777 /system/bin/velocity
    velocity
     
    KingOfGreen likes this.
  11. bobbyb

    bobbyb Member

    how do u work with the lcd denstity? i been trying to find out all day how do i put video files on my sd card and were to put them
  12. artcloud

    artcloud Well-Known Member

    Dalvik2cache is awesome 20mb free before running, 90mb free after! Wiped dalvik cache in recovery looks like all is still good.

    Very important! I wiped cache after that just to see what would happen. As suspected it wipes davlik-cache too but dalvik rebuilt on the data partition after I rebooted. I had to toggle dalvik2cache off and back on again for the dalvik cache to rebuild in cache.
  13. XPeteX47

    XPeteX47 New Member

    Is it possible to make the zipalign function work on apps stored on the sd card also?
  14. savoxis

    savoxis Well-Known Member Developer

    I have an idea to resolve this. Ill try and push an update in the morrow
    artcloud likes this.
  15. azuma73

    azuma73 Well-Known Member

    Is there a way to find out what LCD density is set to without tweaking it? Increments of 5 or 10, or is that a stupid inquiry? It says default is 240. Also, You got any tips on the lag between apps and home screens? If not, no sweat. You've gotta be one busy dude and you're doin' an awesome job!
  16. savoxis

    savoxis Well-Known Member Developer

    in a rooted term:
    Code (Text):

    getprop ro.sf.lcd_density
     
    I have included this already in the script, just trying to get more work done before I push

    azuma73 likes this.
  17. savoxis

    savoxis Well-Known Member Developer

    Script update to 24, OP updated.

    I included a nice backup and restore utility for downloaded applications, it even backs up apps from sdcard, and will restore them back!
    EDIT:
    I forgot to mention, it backs them up AND archives them as a .tgz in /sdcard/velocity-backup/DataBackups


    Fixed dalvik2cache idiosyncrasies

    Updated verbage of lcd density to give a little more help, also lists your current value

    Added backdoor commands
    velocity update > runs updater
    velocity force > forces update
    velocity ol > runs script in offline mode
    velocity -sd > sets download/workdir to sdcard if out of space on cache

    I think I got all of your concerns, if I missed something, let me know
    Caddlad, seen03, tron101 and 3 others like this.
  18. tron101

    tron101 Member

    Great work savoxis! I just want to throw out a sugestion real quick...is it possible to have examples of the fonts in the menu? Or even have what font your currenty using listed, cuz i always forget. Just throwing that out there.
  19. azuma73

    azuma73 Well-Known Member

    Totally! That would be a cool feature.
    tron101 likes this.
  20. savoxis

    savoxis Well-Known Member Developer


    I can have it show what font your currently using fairly easily.

    However displaying examples is not something I can do, I am unaware of any ways to render images in a terminal. There may be something I can look into perhaps having it launch Browser.apk to a url containing an image... im not sure But I will try

    EDIT:
    I have a solution up and running, its live on the server but I didnt push it as a version update, so to get it early you guys can type
    velocity fu

    in a rooted term, it will update, then type velocity again and it launches the new ver, go to font menu and let me know what you think, its the back button to get back to the script from the browser
    azuma73 and tron101 like this.
  21. seen03

    seen03 Well-Known Member

    :I'm on ver. 25.......I skipped 24 sum how...??I dunno
  22. savoxis

    savoxis Well-Known Member Developer

    If you do a velocity fu
    you will be on 24, I had it named 25 for about 10 mins, you musta caught it before I canged it, do a velocity fu to get new opts
  23. tron101

    tron101 Member

    I was unsucessful in forcing the update by typing velocity fu.
  24. AndroidKris

    AndroidKris Well-Known Member

    I forced the update, love the font preview function. Just throwing in my $00.02
  25. artcloud

    artcloud Well-Known Member

    Great job, Dalvik now rebuilds in cache partition if you wipe cache in recovery.

    Can't wait to see what else you guys have in store for Velocity 1.1!
Loading...

Share This Page