As mentioned, my build.prop doesn't have anything related to this (I prefer to modify it as less possible due to the pesky checks done by Market). The shell script is at /system/bin/customboot.sh and contains the two commands mentioned above (with setprop). The /init.smdk4210.usb.rc is in the / filesystem (root). However I don't remember if it came with the stock ROM or after flashing Chainfire's kernel.
Ok, I'll try to make a small tutorial since it's been asked already (standard disclaimer, no liabilities or responsibilities, test on your own will; it shouldn't break anything though):
#0. This will work only with a kernel supporting init.d scripts. Currently, only CF-Root does this, so... get CF-Root.
#1. Copy/paste the following in a text file exactly as it is:
Code:
#!/system/bin/sh
/system/bin/setprop sys.usb.config mass_storage,adb
/system/bin/setprop persist.sys.usb.config mass_storage,adb
/system/bin/setprop sys.usb.state mass_storage,adb
Save this file as "customboot.txt".
#2. Remount your /system with ADB (through command prompt or whatever):
Code:
> adb remount /system
remount succeeded
#3. Push the new file on your phone:
Code:
> adb push customboot.sh /system/bin/customboot.sh
#4. Reboot.
After rebooting, check the properties listed above in a shell (obtained with ADB or Terminal Emulator):
Code:
root@android:/ # getprop | grep usb
It should look like this:
Code:
[persist.sys.usb.config]: [mass_storage,adb]
[sys.usb.config]: [mass_storage,adb]
[sys.usb.state]: [mass_storage,adb]
And when you plug the USB cable, the familiar "USB connected" notification should appear.