• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Velocity Script

Status
Not open for further replies.

savoxis

Android Expert
Aug 10, 2010
812
708
38
Pacific NW
www.savoxis.com http
Velocity Script
velocity_script.png


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)

 
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
 
Upvote 0
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
 
Upvote 0
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)
 
Upvote 0
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.
 
Upvote 0
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.

I have an idea to resolve this. Ill try and push an update in the morrow
 
  • Like
Reactions: artcloud
Upvote 0
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!
 
Upvote 0
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!

in a rooted term:
Code:
getprop ro.sf.lcd_density

I have included this already in the script, just trying to get more work done before I push

This script allows you to set your
LCD Screens Density
Changing the density will essentially
change the resolution

Default is: 240
Your Current Setting is: 300

Enter a number between 150 and 300:
 
  • Like
Reactions: azuma73
Upvote 0
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
 
Upvote 0
is it possible to have examples of the fonts in the menu?


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
 
  • Like
Reactions: azuma73 and tron101
Upvote 0
Current Version 24


Changes in the latest Version:
  • Fixed Dalvik2Cache so you can wipe in recov
  • Fixed Dalvik2Cache so if your low on space it halts
  • Some Verbage Updates
Previous Changes:
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

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!
 
Upvote 0
Status
Not open for further replies.

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones