here's my script for nightly builds.
i can add anything you want. just ask
FEATURES:
- checks if script has been run before. ( on current build )
- removes unneeded apps
- changes wifi scantime
- remaps keys ( only if you have a file on sdcard called jeffv2 "/sdcard/jeffv2" )
- has option to change lcd density ( you must manually change the value in the script for now )
- reboots the phone if you have /sdcard/reboot file
put on the root of sdcard & run
HTML Code:su . /sdcard/setup.txtHTML Code:#!/bin/bash # #######edit these values lcd=240 wifi=90 heap=24m ####### file=/system/.setup remap=/sdcard/jeffv2 reboot=/sdcard/reboot if [ -f "$file" ]; then echo "no need to run twice !!!" else sed -i 's/ro.sf.lcd_density=240/ro.sf.lcd_density=240/g' /system/build.prop sed -i 's/wifi.supplicant_scan_interval = 15/wifi.supplicant_scan_interval = $wifi/g' /system/build.prop sed -i 's/ro.telephony.call_ring.delay=3000/ro.telephony.call_ring.delay=1000/g' /system/build.prop sed -i 's/ro.media.dec.jpeg.memcap=20000000/ro.media.dec.jpeg.memcap=24000000/g' /system/build.prop sed -i 's/dalvik.vm.heapsize=24m/dalvik.vm.heapsize=$heap/g' /system/build.prop rm /system/app/Calendar.apk rm /system/app/CalendarProvider.apk rm /system/app/CarHomeLauncher.apk rm /system/app/GoogleCalendarSyncAdapter.apk rm /system/app/GoogleQuickSearchBox.apk rm /system/app/LatinImeTutorial.apk rm /system/app/LiveWallpapers.apk rm /system/app/LiveWallpapersPicker.apk rm /system/app/MagicSmokeWallpapers.apk rm /system/app/PicoTts.apk rm /system/app/Protips.apk rm /system/app/SetupWizard.apk rm /system/app/SoundRecorder.apk rm /system/app/TtsService.apk rm /system/app/VisualizationWallpapers.apk rm /system/app/VoiceDialer.apk rm /system/app/VpnServices.apk rm /system/app/FileManager.apk rm /system/app/ADWLauncher.apk echo > $file if [ -f "$remap" ]; then sed -i 's/key 114 VOLUME_DOWN WAKE/key 114 VOLUME_UP WAKE/g' /system/usr/keylayout/qwerty.kl sed -i 's/key 114 VOLUME_DOWN WAKE/key 114 VOLUME_UP WAKE/g' /system/usr/keylayout/sholes-keypad.kl sed -i 's/key 212 CAMERA/key 212 VOLUME_DOWN WAKE/g' /system/usr/keylayout/qwerty.kl sed -i 's/key 212 CAMERA/key 212 VOLUME_DOWN WAKE/g' /system/usr/keylayout/sholes-keypad.kl else echo > $file if [ -f "$reboot" ] then reboot else echo "thanks for using my script" fi fi fi

LinkBack URL
About LinkBacks
Reply With Quote
Fox and I were discussing this earlier in the main nightly thread. He/she prefers the longer scripting like yours. I tend to break mine up, using Gscript. The definate advantage to your method is being able to use the native terminal program if you choose. Me, I gotta hit the market to get Gscript. Does help showcase why a basic terminal and file manager is stock. Options, options. And thankfully our ADB days are mostly behind us, unless you are really hard core.



