Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Velocity Script
Velocity Script
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:
Open your terminal emulator or start ADB shell
Gain SuperUser access by typing su then enter
Type velocity and press enter
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.
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
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
Last edited by savoxis; August 2nd, 2011 at 10:44 AM.
The Following User Says Thank You to savoxis For This Useful Post:
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
!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!!!
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)
Last edited by dcooterfrog; March 5th, 2011 at 10:36 AM.
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.
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by artcloud
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
The Following User Says Thank You to savoxis For This Useful Post:
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
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!
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by azuma73
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
Quote:
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:
Last edited by savoxis; March 9th, 2011 at 11:24 PM.
The Following User Says Thank You to savoxis For This Useful Post:
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
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
Last edited by savoxis; March 12th, 2011 at 05:35 PM.
The Following 6 Users Say Thank You to savoxis For This Useful Post:
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.
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
Quote:
Originally Posted by tron101
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.
Totally! That would be a cool feature.
The Following User Says Thank You to azuma73 For This Useful Post:
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by tron101
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
Last edited by savoxis; March 13th, 2011 at 05:52 PM.
The Following 2 Users Say Thank You to savoxis For This Useful Post:
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by seen03
:I'm on ver. 25.......I skipped 24 sum how...??I dunno
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
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
Last nite my phone started acting very odd. Kept rebooting at random. I gotn it squared away and I thought it was really screwed by the way it was actin'! Anyhoo, I have the scribble boot anim. and I noticed at the end of scribble it does this cool lookin' sunburst type flashy deal, but it doesn't do it all the time. Is that normal? Does it mean anything I should be aware of? Also, how can I use different tones for different notifications? -----------"Rock on!"
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by azuma73
Last nite my phone started acting very odd. Kept rebooting at random. I gotn it squared away and I thought it was really screwed by the way it was actin'! Anyhoo, I have the scribble boot anim. and I noticed at the end of scribble it does this cool lookin' sunburst type flashy deal, but it doesn't do it all the time. Is that normal? Does it mean anything I should be aware of? Also, how can I use different tones for different notifications? -----------"Rock on!"
For problems like reboots please post a logcat, without a logcat I cannot even begin to tell you where the problem is.
The sunburst only happens sometimes because your phone usually boots up before the animation is complete.
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
Mighty quiet around these parts lately. Maybe that means we got some more medicine being cooked up in the kitchen? Or maybe that means everything is going fine and "if it ain't broke, don't fix it!"
im used the script to move dalvik 2 cache and I noticed something odd earlier today, i wiped my cache in recovery and when i rebooted it took way long like the dalvik was wiped too. So as soon as it booted up i hit my cache mate widget it cleared 2mb. So not sure if i had wiped dalvik on accident.
So i waited all day and wiped my cache and again long reboot and when i used cache mate it cleared 3mb. And when i wipe dalvik in recovery it goes though data:dalvik and cache:dalvik and wipes just fine.
Now i know my method is EXTREMELY techinacal and accurate, jk. But what i want to know is where did my cache go and why wouldnt it clear in recovery but did with cache mate? Now this hasnt caused me any trouble just curious and dont recall (may not have noticed) this with dtapps2sd script for dalvik2cache!
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by KingOfGreen
i wiped my cache in recovery and when i rebooted it took way long like the dalvik was wiped too.
That is because recovery DID wipe your dalvik-cache. Since you have moved your dalvik over to /cache its new location is /cache/dalvik-cache, when recovery wipes cache is mounts the cache partition then deletes everything it can off of it.
Quote:
Originally Posted by KingOfGreen
But what i want to know is where did my cache go and why wouldnt it clear in recovery but did with cache mate?
Recovery did sucessfully wipe your cache, the reason cachemate showed that it cleared more after the phone booted is because there are parts of cache that cannot be wiped in recovery, because they are in use by recovery.
Quote:
Originally Posted by KingOfGreen
Now this hasnt caused me any trouble just curious and dont recall (may not have noticed) this with dtapps2sd script for dalvik2cache!
I don't recall either, however it may be important to take note of what recovery you are using it is possible but not probable that ClockworkMod has a check to see if your dalvik is located on /cache and avoid wiping it if it is.
I also would like to ask why you have been paying so much attention to the cache, and wiping in recovery. Your cache partition is incredibly large (128mb other devices have as little as 56!) and this is why it is being used for optional dalvik-cache migration and the Script's default download location. These two things will be taking up most of your room on cache as it stands, and the script allows you to wipe the download caches within. Also the system takes good care to manage its cache space, most items stored in cache are cleaned automatically.
This being said I think there are other areas you might want to pursue if you are looking for performance enhancing. The easiest being using less apps. I have in the past used apps from the market to disable startup for applications, I find this to boost performance and battery life immensely and plan on incorporating something like this in the script soon.
The Following User Says Thank You to savoxis For This Useful Post:
I wasnt wiping to save space or try to speed things up. Everything has been running just peferct for a while now. Even on my replacment (cant OC as high but catn really notice a big difference) just had been downloading a bunch of stuff and it was more OCD than anything else. Just wanted to know more about what was acutally going on and as always thank you very much because ive learned so much here and for getting back to me so quickly.
Last edited by KingOfGreen; March 24th, 2011 at 01:42 PM.
Reason: Spelling!
I remeber in velocity .3 or .4 you could change clock color, i kinda miss that except with a way to remove it all together to.
Removing the clock is a lot more difficult than you think. Most themes edit the services.jar to fit their needs for the theme to look right. A universal way of removing the clock isnt possible. There would have to be a different services.jar for every theme, making it a pain in the ass.
Sorry about the lack of updates as of late I have been taking a sabbatical from coding.
I did want to get some work done but dont know what project to tackle, if anyone has any ideas let me know
And remember, almost anything is possible.
I would love to see lockscreen gestures incorporated into Velocity. You should also look at making LauncherPro or ADW the default launcher. They are far more customizable and based on a quadrant benchmark LauncherPro improves the speed of your phone. Lastly, it would be great if you could decrease the lag when switching back to the homescreen from a running application. In terms of the lag I would be more than happy to send you a logcat.
Last edited by bendabood; March 25th, 2011 at 02:22 PM.
Reason: Remembered to add somehting on.
Device(s): Lg Velocity(ALLY)/Retired
Samsung Fascinate, TeamHacksung CM9-ICS, Glitch V14beta2 kernel
Carrier: Not Provided
Thanks: 133
Thanked 25 Times in 23 Posts
Yeah, the lag factor seems to be my main looming vex at this point! I have Logcat and would be stoked if someone could explain to me how that works. Sorrry, I've just never messed with it. Thanks guys!!
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by bendabood
I would love to see lockscreen gestures incorporated into Velocity. You should also look at making LauncherPro or ADW the default launcher. They are far more customizable and based on a quadrant benchmark LauncherPro improves the speed of your phone. Lastly, it would be great if you could decrease the lag when switching back to the homescreen from a running application. In terms of the lag I would be more than happy to send you a logcat.
Do you have widgets moved to your sdcard that are in use on the launcher? That would cause some lag. Also is it only certain applications? I cannot seem to reproduce this, a logcat may be crucial.
As far as alt launchers, I do plan on having a tool in the script to remove launcher2 and put in adw as default, but for theming purposes I think we will keep launcher2 as the one that ships with the rom
Do you have widgets moved to your sdcard that are in use on the launcher? That would cause some lag. Also is it only certain applications? I cannot seem to reproduce this, a logcat may be crucial.
As far as alt launchers, I do plan on having a tool in the script to remove launcher2 and put in adw as default, but for theming purposes I think we will keep launcher2 as the one that ships with the rom
Has anyone noticed that in portrait, it's gingerbread dock, but in landscape its froyo
Do you have widgets moved to your sdcard that are in use on the launcher? That would cause some lag. Also is it only certain applications? I cannot seem to reproduce this, a logcat may be crucial.
As far as alt launchers, I do plan on having a tool in the script to remove launcher2 and put in adw as default, but for theming purposes I think we will keep launcher2 as the one that ships with the rom
I do not have any widgets on my SD. In terms of the logcat I will do one later, I'm a bit busy right now. Thanks Oh, and I have noticed that it happens with most applications, but only if I use them for an extended period of time.
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
I cleaned up the thread a little.
Please note I have put a new update to 25 out, this will make sure you have enough room to avoid any "catastrophic events" when odexing. ofcourse make a nandroid before odexing, or moving dalvik like the script says
Also:
Comming soon is a way to have th script automatically boot to recov and amke you a nandroid!
Device(s): Galaxy Nexus (CM10 Nightlies) and too many old devices to list
Carrier: Not Provided
Thanks: 259
Thanked 706 Times in 265 Posts
Quote:
Originally Posted by azuma73
How/where do I send logcat?
If you used alogcat, you can save a copy of it to your sdcard, then you can open the scripts and go to contact developer, make sure to attach the logcat to the email, this goes for any of you having problems, a logcat and a brief description of the problem will get these errors fixed quickly
The Following User Says Thank You to savoxis For This Useful Post:
Glad to see it was cleaned up - it saved me some time. Let's hope there's no repeat to avoid infractions next time, as there's never any excuse for abusive language or accusations on this site. Please bear this in mind for the future.