adb equivalents in shell with root access

For the benefit of others experiencing the same issue and arriving at this subject via Google and Co., here are some on-the-phone equivalents to running adb command on the PC:

Always start by getting a root shell on the phone:
user@pc$ adb shell
$ su –

To remount /system read-write (adb remount):
# mount -o remount,rw /dev/block/mtdblock3 /system

To uninstall an application (adb uninstall):
# rm /system/app/PackageYouNoLongerWant.apk
# pm uninstall

To put a file somewhere other than the SD-card (adb push):
Put the file on the SD-card as usual.
# mv /sdcard/file /where/you/want/to/put/the/file

Taken from this helpful post: link


A more detailed, and useful post given that a /dev mappings are not static:

Check how the /system partition is mounted as read-only (ro), In particular note the device

# mount | grep system

/dev/block/stl12 /system ext4 ro,relatime,barrier=1,data=ordered 0 0

Remount the partiton in read-write mode (rw)

# mount -o rw,remount /dev/block/stl12 /system

Finally check if it was mounted in read-write mode (rw)

# mount | grep system
/dev/block/stl12 /system ext4 rw,relatime,barrier=1,data=ordered 0 0

When done, do not forget to remount it read-only again, for safety reasons, obviously

# mount -o ro,remount /dev/block/stl12 /system

 Found in this post

Hide Folders in Finder

to hide: setfile -a V FolderName
to show: setfile -a v FolderName

How to make any salesforce page iframeable

Add ?isdtp=mn to your url

10.7.4 upgrade hackintosh

add Vendor /Device ID to /System/Library/Extension/AppleGraphicsPowerManagement.kext

my hackintosh masquerades as a MacPro5,1, so under that section, i add:



“10de” is the vendor trailing bits from the Graphics/Display output of System Info (0x10de)

“1086” is the device ID found in the same.


Install Nvidia drivers for OSX (must be done as MacPro5,1), and you should be good-to-go.