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

Help Help with use of adb on mac desktop

sookieball

Well-Known Member
Dec 24, 2010
164
18
I have adb installed and running on my mac desktop.
I can run
Adb shell
$su
#
But i cant seem to push thunder recovery or clockwork recovery either.
Nor can i push .apks

Im totally new to adb and slowing find commands on my own(i mean the ones that seem to work)
Like i can get the commands list by entering adb then enter
But i dont know how exactly to enter a command to push recovery
 
Well what you must realize is that most people on here are using windows which has a different file system. So whenever you're using a command you will for sure need to change anything that designates a folder or particular file to the location on your computer. For instance in one if the rooting tutorials one of the commands uses a file on the root directory of the windows computer I.e. c:/somefile.type but you would need to change that to something like /User/Documents/somefile.type or wherever it's l located. You just need to be careful because if the command you find doesn't use the fully qualified path name (the full path to the file) but rather just the file name in the current directory you are going to need to make sure your current directory has the file in it. Like anything else, stick with it and you can only get better. We have a great community here. If you run into trouble just ask. I hope this helps
 
  • Like
Reactions: sookieball
Upvote 0
Well yes that helped. I know now the way i was inputing the directory
I.e. user/file.type is rght.
And i dont type in the directory.
I drag anddrop
So im not miss spelling none. Im gonna keep on truckin for sure.
Miketoolz is the only person i know on this forum tha uses a mac and adb.
 
Upvote 0
if from os x terminal command line:

./adb remount

should do the trick!

ok thank you, ill give it a shot right now and report back!!! :)


edit: nope. didnt work.


Last login: Tue Mar 29 12:38:03 on ttys000
wiifiiiiii:~ stevenavarro$ ./adb remount
-bash: ./adb: No such file or directory
wiifiiiiii:~ stevenavarro$ adb shell
$ adb remount
adb: permission denied
$ ./adb remount
./adb: not found
$ su
# remount
remount: not found
# ./adb remount
./adb: not found
# /adb remount
/adb: not found
#
 
Upvote 0
i got this next


wiifiiiiii: platform-tools stevenavarro$ adb devices
List of devices attached
AXXXXXXXXXXXX device

wiifiiiiii: platform-tools stevenavarro$ adb shell<remount>
-bash: syntax error near unexpected token `newline'
wiifiiiiii: platform-tools stevenavarro$ adb shell /remount
/remount: not found
wiifiiiiii: platform-tools stevenavarro$ adb usb
restarting in USB mode
wiifiiiiii: platform-tools stevenavarro$ adb root
restarting adbd as root
wiifiiiiii: platform-tools stevenavarro$ adb remount
remount failed: Operation not permitted
wiifiiiiii: platform-tools stevenavarro$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
wiifiiiiii: platform-tools stevenavarro$
 
Upvote 0
Ah - looks like you've launched the terminal and you're in your home directory - not the one where adb is located.

First, cd to the directory where adb is located. Post back if that's at all unclear.

In the command "./adb ..." the ./ means that abd has not been added to the path of known system executable files, so "system, please find adb as an executable right here in this directory" - that's standard unix, by the way.

Then, ensure you've prefixed all adb requests, such as "adb shell" as "./adb shell" - then once inside the adb shell, issue commands as you'd expect.
 
Upvote 0
i got this next


wiifiiiiii: platform-tools stevenavarro$ adb devices
List of devices attached
AXXXXXXXXXXXX device

wiifiiiiii: platform-tools stevenavarro$ adb shell<remount>
-bash: syntax error near unexpected token `newline'
wiifiiiiii: platform-tools stevenavarro$ adb shell /remount
/remount: not found
wiifiiiiii: platform-tools stevenavarro$ adb usb
restarting in USB mode
wiifiiiiii: platform-tools stevenavarro$ adb root
restarting adbd as root
wiifiiiiii: platform-tools stevenavarro$ adb remount
remount failed: Operation not permitted
wiifiiiiii: platform-tools stevenavarro$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
wiifiiiiii: platform-tools stevenavarro$

OK - in this case, you are in platform-tools, where adb is located and it _seems_ you have it in your path.

You can start the daemon with the device command automagically -

./adb devices

Now - set phone/system for read-write:

./adb remount

Now - you can do adb push, shell, or whatever commands as you like.
 
  • Like
Reactions: sookieball
Upvote 0
i just got this. alls i entered was mount at the last command and i got a bunch of stuff.

thanks so much by the way!!!

wiifiiiiii:platform-tools stevenavarro$ adb shell
$ ./adb devices
./adb: not found
$ adb devices
adb: permission denied
$ remount
remount: permission denied
$ mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mtdblock1 /cache yaffs2 rw,nosuid,nodev,noatime,nodiratime 0 0
/dev/block/mtdblock5 /system yaffs2 ro,relatime 0 0
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock8 /persist yaffs2 rw,nosuid,nodev,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
/dev/block/vold/179:1 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:1 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0
$
 
Upvote 0
wiifiiiiii:platform-tools stevenavarro$ ./adb devices
List of devices attached
Axxxxxxxxx device

wiifiiiiii:platform-tools stevenavarro$ ./adb remount
remount failed: Operation not permitted
wiifiiiiii:platform-tools stevenavarro$


lol that : Platform keeps making smileys when i post

I've had the remount sometimes fail -and never have learned why.

No matter there are workarounds for that.

Start with this one:

./adb shell
# remount rw
 
  • Like
Reactions: sookieball
Upvote 0
OK - please slow down.

When you enter adb - you've entered an environment.

When you said - adb shell - and then got the $ prompt, you were no longer in your mac environment, you were in the phone - further prefixing of commands with adb is the issue.

So - from you mac prompt of (machinename) platform-tools (yourname)$ -- enter this:

./adb shell

Now, you'll see just the $ prompt, from there, enter the su, get the # root prompt, then proceed like this:

$ su
# remount rw
 
  • Like
Reactions: sookieball
Upvote 0
GGGRRRRRRRRRRR


wiifiiiiii:~ stevenavarro$ cd /android/platform-tools
wiifiiiiii:platform-tools stevenavarro$ adb shell
$ remount rw
remount: permission denied
$ su
# remount rw
remount: not found
#



this is frustrating..... now i wish i hadn't dropped outta skewl


edit: oh and when i enter the "./" in front of "adb" i get an error. so i just enter "adb" without the "./"
 
Upvote 0
Hmmmm.

OK - your command sequence is completely correct this time around.

When you rooted your phone - did you install Superuser Permissions, Titatnium Backup and then Busybox (from within Titanium Backup is easiest way - and the free Titanium Backup will do for our purposes).

And please take no offense at this suggestion - are you sure that spelled remount correctly and that you had no space entered by you between the # and the remount?

(Always check the small stuff.) ;)
 
  • Like
Reactions: sookieball
Upvote 0
hey thanks a bunch! ill give it a try as soon as i get home...

oh and i rooted using z4root.
i havent installed titaniam backup yet, maybe thats the prob?

oh and dont worry about offending me. thats a hard task to do.
i understand and take constructive critisizm well.



wiifiiiiii:~ stevenavarro$ cd /android/platform-tools
wiifiiiiii:platform-tools stevenavarro$ adb shell
$ su
# /system/bin/remount rw
/system/bin/remount: not found
#
 
Upvote 0
lmao!


wiifiiiiii:platform-tools stevenavarro$ adb shell
$ su
# /system/bin/remount rw
/system/bin/remount: not found
# ls /sbin/remount
/sbin/remount: No such file or directory
#

i think im destined not to have adb

tried this


# mount ls /sbin
Usage: mount [-r] [-w] [-o options] [-t type] device directory
#
 
Upvote 0
i wasnt sure which part u wanted but heres the whole.
i see nothing but rw

no ro
... lol.. just found ro.

# mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
/dev/block/mtdblock1 /cache yaffs2 rw,nosuid,nodev,noatime,nodiratime 0 0
/dev/block/mtdblock5 /system yaffs2 ro,relatime 0 0 <--- this part?
/dev/block/mtdblock6 /data yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock8 /persist yaffs2 rw,nosuid,nodev,relatime 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
#
 
Upvote 0

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