/system/bin/sh: sm: not found - Android Q&A, Help & Troubleshooting

Hello,
I cannot configure my SD-card for extra memory.
This is what I see:
* daemon not running; starting now at tcp:5037
* daemon started successfully
[email protected]:/ $ adb devices
List of devices attached
[email protected]:/ $ sm list-disks
/system/bin/sh: sm: not found
Can anyone tell me what to do?
PS: device is not rooted, is that necesarry?
Details of my phone:
Samsung Galaxy Grand Prime model SM-G531H
Android 5.1.1.
Thanks!

did you get a fix ???

Related

HELP! I do not know why..

..but this morning after a normal turn off of the phone, "SONY ERICSSON" in my mini pro display don't disappear..
From adb I get:
Code:
C:\android\tools>adb shell
* daemon not running. starting it now *
* daemon started successfully *
$ su
su
link_image[1722]: 1350 could not load needed library 'libandroid_runtime.so' for 'su' (link_image[1722]: 1350 could not load needed librar
y 'libdvm.so' for 'libandroid_runtime.so' (reloc_library[1245]: 1350 cannot locate 'open_memstream'...))CANNOT LINK EXECUTABLE
$
HELP! What can I do???
UNBRICKED !!!!!
Using SuperOneClick and another adb shell I got root (I did not believe to see "UID 0" after a whoami command )
So, I could replace libdvm.so with a fresh copy
now, it's ok!

(TOOL) Perma-Temp Root with *R/W* & Stable!

Thanks goes to #TeamWin for Temp Root
This is For Windows only, if you wish to make it work for linux or mac help your self...
Remember, This is still a Temp Root & any Changes made will be Rest back to stock on a Reboot
It's stable & works 100%
I Personally have not lost Root with this new Method
Q. I thought RW was Fixed?
A. Caused by Deleting an apk / file that was already deleted. Journaling shows it still there!
Keep Track of what you delete, as trying to delete something off system that you alread di hangs the /system into RO state.
Before Using!!​HTC Sync Must be Turned OFF
Put the Phone into Charge Mode only ( Not Disk Drive )
USB Debugging Must be Turned on
What's Fixed:
Revamped due to new Method:
~ Superuser Apps now Function
~ If you Lose Root, all you have to do is Open terminal & type SU then type fixit! > No More Rebooting & running the exploit again for R/W on system to get Root back in place
~ Fixed R/O Bug!!
~ R/W is now Forced
~ /system is fully editable now! until reboot that is.
~ Busybox is installed to /vendor/bin
~ hex Edited libext4
~ hex edited libfuse.so
~~ This is the Last Update due to it working & Stable ~~
Download for RW HTC Sensation 4G:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Evo 3D:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Flyer 16GB/32GB:
````````````````````````````````````````````````````````````````````````````````````````````
Download for RW HTC Evo View:
Q. Is this permanent?
A. no, it's a temp root method..
Q. Will I lose SU Access at some point while running the OS?
A. You might, but open terminal & type fixit to get root back!.
Q. What about apps that need a reboot to use superuser?
A. Use Fast Reboot form the market for app that need a reboot..
Q. Can I push & remove items to system & will it work?
A. Yes, but all changes are reset on a reboot.​
Once Downloaded, Unzip & double click on the Run_ME_fre3vo_Root.bat File & Enjoy long lasting Root!
OLD NEWS:
Everyone knows that currently with any temp root, you still lose links to the SU Binary & Busybox links, it's just a matter of time before it happens!!
So after digging around somewhat I found an over sight that HTC might use later for system updates via /vendor/bin, who knows at this point though... Anyways, after amount of time the SU Binary along with busybox links if be in system/bin or /system/xbin gets deleted / removed..
Now, what I did was enable the $Path to /vendor/bin which is in the Sensation export PATH..
Any Calls made from this point either be SU or Busybox don't get deleted nor touched from any App requesting the SU Binary!! I've tested this with alot of apps & the Root sticks in place..
Other than Reboot, it might as well be a Perma-Temp-Root!!
Thanks. Hope you got this tablet Mr!
Sent from my HTC Sensation 4G using XDA Premium App
Thanks Eugene for the script!
A few notes though:
1) You are using the older version of re3vo it seems which does not work on he flyer.
2) I replaced the fre3vo version with the current and ran this. it ended successfully however superuser was FCing on me so i had to run the script again and now it works.
I'll check to see how long the root lasts with this
Thanks again!
Could this also be done for the View? I assume you would need the build.prop, init.rc and other view specific files? if so let me know I can get you whatever you need. Actually on second thought I will just attach the files I believe you will need, let me know if you need anything else...
clubtech said:
Thanks Eugene for the script!
A few notes though:
1) You are using the older version of re3vo it seems which does not work on he flyer.
2) I replaced the fre3vo version with the current and ran this. it ended successfully however superuser was FCing on me so i had to run the script again and now it works.
I'll check to see how long the root lasts with this
Thanks again!
Click to expand...
Click to collapse
Sent from my HTC Sensation 4G using XDA App
Can you upload the correct free3vo you are using so I correct my download package.
~Eugene
mark920 said:
Could this also be done for the View? I assume you would need the build.prop, init.rc and other view specific files? if so let me know I can get you whatever you need. Actually on second thought I will just attach the files I believe you will need, let me know if you need anything else...
Click to expand...
Click to collapse
I'll look at this in the morning when I get time.
Sent from my HTC Sensation 4G using XDA App
Sent from my HTC Sensation 4G using XDA App
I used the last temp root u had and it worked perfectly but it seemed to have broke my hdmi capability with my mhl adapter so it stopped working. I had to factory reset my flyer to get it to work again and it did. So I'm reluctant root again for the time being. If anyone has rooted there flyer with this method and has a mhl adapter can u see if it still works. Thanks.
Sent from my HTC Flyer using XDA Premium App
eugene373 said:
Sent from my HTC Sensation 4G using XDA App
Can you upload the correct free3vo you are using so I correct my download package.
Click to expand...
Click to collapse
Attached is the recent version.
vj092887 said:
I used the last temp root u had and it worked perfectly but it seemed to have broke my hdmi capability with my mhl adapter so it stopped working. I had to factory reset my flyer to get it to work again and it did. So I'm reluctant root again for the time being. If anyone has rooted there flyer with this method and has a mhl adapter can u see if it still works. Thanks.
Sent from my HTC Flyer using XDA Premium App
Click to expand...
Click to collapse
My HDMI works just fine after using this. no problem at all.
Also i have not lost root for 3+ hours now
is it normal:
Code:
C:\Users\Mathieu\Downloads\RW_Flyer>adb wait-for-device
C:\Users\Mathieu\Downloads\RW_Flyer>adb push fre3vo /data/local/tmp
613 KB/s (9796 bytes in 0.015s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 777 /data/local/tmp/fre3vo
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell /data/local/tmp/fre3vo
fre3vo by #teamwin
Please wait...
C:\Users\Mathieu\Downloads\RW_Flyer>adb wait-for-device
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell sleep 1
C:\Users\Mathieu\Downloads\RW_Flyer>adb remount
remount succeeded
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell mount -o rw,remount rootfs /
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell mount -o remount,suid /dev/block/m
mcblk0p29 /data
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell mkdir /vendor/bin
mkdir failed for /vendor/bin, No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /system/bin/sh
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./sqlite3 /vendor/bin
failed to copy './sqlite3' to '/vendor/bin': No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./libext4_utils.so /system/lib
1668 KB/s (39292 bytes in 0.023s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./libfuse.so /system/lib
2422 KB/s (101728 bytes in 0.041s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 655 /system/lib/libext4_util
s.so
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 000 /system/lib/libfuse.so
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./default.prop /default.prop
12 KB/s (125 bytes in 0.010s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./init.rc /init.rc
914 KB/s (20608 bytes in 0.022s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./init.flyer.rc /init.flyer.rc
363 KB/s (5218 bytes in 0.014s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 755 /default.prop
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 755 /init.rc
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 755 /init.flyer.rc
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./fixit /vendor/bin
failed to copy './fixit' to '/vendor/bin': No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./su /sbin
1028 KB/s (26324 bytes in 0.025s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./su /data/bin
2336 KB/s (26324 bytes in 0.011s)
C:\Users\Mathieu\Downloads\RW_Flyer>adb push ./busybox /vendor/bin
failed to copy './busybox' to '/vendor/bin': No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /sbin
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /sbin/su
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /data/bin/su
Unable to chmod /data/bin/su: Not a directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /vendor/bin/fixit
Unable to chmod /vendor/bin/fixit: No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 4755 /vendor/bin/busybox
Unable to chmod /vendor/bin/busybox: No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell chmod 755 /vendor/bin/sqlite3
Unable to chmod /vendor/bin/sqlite3: No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell busybox --install -s /vendor/bin
busybox: not found
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell rm -r /vendor/bin/ls
rm failed for /vendor/bin/ls, No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell rm -r /vendor/bin/reboot
rm failed for /vendor/bin/reboot, No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell rm -r /vendor/bin/chmod
rm failed for /vendor/bin/chmod, No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell rm -r /vendor/bin/chown
rm failed for /vendor/bin/chown, No such file or directory
C:\Users\Mathieu\Downloads\RW_Flyer>adb install ./Superuser.apk
2743 KB/s (196640 bytes in 0.070s)
pkg: /data/local/tmp/Superuser.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
C:\Users\Mathieu\Downloads\RW_Flyer>adb install ./androidterm.apk
3939 KB/s (92780 bytes in 0.023s)
pkg: /data/local/tmp/androidterm.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]
C:\Users\Mathieu\Downloads\RW_Flyer>adb wait-for-device
C:\Users\Mathieu\Downloads\RW_Flyer>adb shell sync
C:\Users\Mathieu\Downloads\RW_Flyer>pause
Appuyez sur une touche pour continuer...
doesnt work for me.
Any idea what I am doing wrong?
C:\Temp\RW_Flyer>adb wait-for-device
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb push fre3vo /data/local/tmp
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb shell chmod 777 /data/local/tmp/fre3vo
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb shell /data/local/tmp/fre3vo
adb server is out of date. killing...
* daemon started successfully *
Locating access point...
This device does not support this exploit.
This device does not support this exploit.
The exploit has failed.
C:\Temp\RW_Flyer>adb wait-for-device
C:\Temp\RW_Flyer>adb shell sleep 1
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\Temp\RW_Flyer>adb remount
adb server is out of date. killing...
* daemon started successfully *
remount failed: Operation not permitted
C:\Temp\RW_Flyer>adb shell mount -o rw,remount rootfs /
adb server is out of date. killing...
* daemon started successfully *
mount: Operation not permitted
C:\Temp\RW_Flyer>adb shell mount -o remount,suid /dev/block/mmcblk0p29 /data
mount: Operation not permitted
C:\Temp\RW_Flyer>adb shell mkdir /vendor/bin
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
mkdir failed for /vendor/bin, No such file or directory
C:\Temp\RW_Flyer>adb shell chmod 4755 /system/bin/sh
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /system/bin/sh: Read-only file system
C:\Temp\RW_Flyer>adb push ./sqlite3 /vendor/bin
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./libext4_utils.so /system/lib
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./libfuse.so /system/lib
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb shell chmod 655 /system/lib/libext4_utils.so
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /system/lib/libext4_utils.so: Read-only file system
C:\Temp\RW_Flyer>adb shell chmod 000 /system/lib/libfuse.so
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Unable to chmod /system/lib/libfuse.so: Read-only file system
C:\Temp\RW_Flyer>adb push ./default.prop /default.prop
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./init.rc /init.rc
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./init.flyer.rc /init.flyer.rc
C:\Temp\RW_Flyer>adb shell chmod 755 /default.prop
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Unable to chmod /default.prop: Read-only file system
C:\Temp\RW_Flyer>adb shell chmod 755 /init.rc
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /init.rc: Read-only file system
C:\Temp\RW_Flyer>adb shell chmod 755 /init.flyer.rc
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /init.flyer.rc: Read-only file system
C:\Temp\RW_Flyer>adb push ./fixit /vendor/bin
C:\Temp\RW_Flyer>adb push ./su /sbin
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./su /data/bin
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb push ./busybox /vendor/bin
adb server is out of date. killing...
* daemon started successfully *
C:\Temp\RW_Flyer>adb shell chmod 4755 /sbin
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Unable to chmod /sbin: Read-only file system
C:\Temp\RW_Flyer>adb shell chmod 4755 /sbin/su
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /sbin/su: Permission denied
C:\Temp\RW_Flyer>adb shell chmod 4755 /data/bin/su
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /data/bin/su: No such file or directory
C:\Temp\RW_Flyer>adb shell chmod 4755 /vendor/bin/fixit
Unable to chmod /vendor/bin/fixit: No such file or directory
C:\Temp\RW_Flyer>adb shell chmod 4755 /vendor/bin/busybox
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
Unable to chmod /vendor/bin/busybox: No such file or directory
C:\Temp\RW_Flyer>adb shell chmod 755 /vendor/bin/sqlite3
adb server is out of date. killing...
* daemon started successfully *
Unable to chmod /vendor/bin/sqlite3: No such file or directory
C:\Temp\RW_Flyer>adb shell busybox --install -s /vendor/bin
adb server is out of date. killing...
* daemon started successfully *
busybox: permission denied
C:\Temp\RW_Flyer>adb shell rm -r /vendor/bin/ls
rm failed for /vendor/bin/ls, No such file or directory
C:\Temp\RW_Flyer>adb shell rm -r /vendor/bin/reboot
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
rm failed for /vendor/bin/reboot, No such file or directory
C:\Temp\RW_Flyer>adb shell rm -r /vendor/bin/chmod
adb server is out of date. killing...
* daemon started successfully *
rm failed for /vendor/bin/chmod, No such file or directory
C:\Temp\RW_Flyer>adb shell rm -r /vendor/bin/chown
adb server is out of date. killing...
* daemon started successfully *
rm failed for /vendor/bin/chown, No such file or directory
C:\Temp\RW_Flyer>adb install ./Superuser.apk
C:\Temp\RW_Flyer>adb install ./androidterm.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
adb server is out of date. killing...
* daemon started successfully *
adb server is out of date. killing...
* daemon started successfully *
adb server is out of date. killing...
* daemon started successfully *
adb server is out of date. killing...
* daemon started successfully *
Click to expand...
Click to collapse
clubtech said:
My HDMI works just fine after using this. no problem at all.
Also i have not lost root for 3+ hours now
Click to expand...
Click to collapse
Ok cool. Thanks for checking this out for me
Sent from my HTC Flyer
Has anybody tested this with a View?
WOW, thanks to all involved, I had just recently aquired my Flyer and thought I would have to sit for the next two months for a root to become available, less than a week later (for me) and we have ROOT albeit temporary, fantastic work !!!!
Will def try this soon after i reach home. Perm-temp- root at the moment is better than nothing ;-i
Nop, doesn't work on mine too. Same errors as nvidia32.
I think it's the same for everyone, am I wrong?
Code:
vendor/bin, No such file or directory
Nvidia32 said:
I think it's the same for everyone, am I wrong?
Code:
vendor/bin, No such file or directory
Click to expand...
Click to collapse
Same here. However, my Flyer still got ROOT after running the Run_ME_Fr3vo_ROOT.bat (with latest fre3vo).
When I enter the terminal, I type su and get the superuser right. But when I type fixit, it returns "not found".
Excellent! Very close to perma-root and we'll be set. Great work!
Hi, I don't know, maybe I'm doing something wrong, but when I'm typing "su" in terminal emulator, there is "permission denied"...
Fixing Post now with Correct Fre3vo root file.. This could be everyone issue that was posted in #2
***EDIT***
HTC Flyer Perma-Temp Root is now Fixed with the Correct Fre3vo. in OP ( 7/18/2011 @ 11:05AM )
Also can somebody do in adb shell
#
echo $PATH ( enter )
And Post the Results of this, Also no I don't have this Device but was requested to add support from a DM by clubtech
Thanks,
~Eugene

device not available, only in adb shell

C:\ADBTOOLS>adb devices
List of devices attached
da4d4717 device
C:\ADBTOOLS>adb shell
[email protected]:/ $ su
su
[email protected]:/ # adb devices
adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
List of devices attached
[email protected]:/ #
my device connects to adb,
however as soon as I go into adb shell, the device is no longer found.
What is going on here?
mdelaney1986 said:
C:\ADBTOOLS>adb devices
List of devices attached
da4d4717 device
C:\ADBTOOLS>adb shell
[email protected]:/ $ su
su
[email protected]:/ # adb devices
adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
List of devices attached
[email protected]:/ #
my device connects to adb,
however as soon as I go into adb shell, the device is no longer found.
What is going on here?
Click to expand...
Click to collapse
Of course that happens when you run adb shell you are entering in your phone using the debbuging shell. You are in your phone. This happens to me also when i am using adb shell no devices will be shown. If you can run any command from adb shell then your device is there. Nothing to worry about. It is normal.
If you disconnect your device when in adb shell you will see it will automatically exit the shell!
Hit Thanks if i helped you!

error: only position independent executables (PIE) are supported. andriod 6.0

helloo greetings i have a problem with adb i want to connect with IDA pro but i got error
Code:
C:\adb>adb kill-server
C:\adb>adb start-server
* daemon not running; starting now at tcp:5037
* daemon started successfully
C:\adb>adb shell
[email protected]:/ $ su
2|[email protected]:/ # cd data/tmp/files
[email protected]:/data/tmp/files # ls
android_server
armlinux_server
armuclinux_server
linux_server
linux_serverx64
[email protected]:/data/tmp/files # ./android_server
error: only position independent executables (PIE) are supported.
Thanks in advance sorry for bad english

Can I recover my personal files (audio and photo) by usiing ADB?

Hello,
my phone (I think it is not rooted because adb shows the dollar character) is stuck into the recovery for an unknown reason. Is there a way to access the phone folders through ADB / shell commands?
I'm a newbie and I tried to do by myself but unfortunately I cannot reach my objective.
for example, I (think) I successfully reached the sdcard (is this the android folder name where all the personal data si saved?) but when I try the command adb pull -p It doesn't work. Here what it happens:
1|[email protected]:/ $ cd sdcard
[email protected]:/sdcard $ adb pull -p
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
1|[email protected]:/sdcard $
Any Idea? Thanks
Howl55 said:
Hello,
my phone (i think it is not rooted because adb shows the dollar character) is stuck into the recovery for an unknown reason. Is there a way to access to phone folders through ADB / shell commands?
I'm a neewbie and I tried to do by myself. Unfortunately I cannot reach my objective.
for example, I (think) I successfully reached the sdcard (is this the android folder name where all the personal data si saved?)
but when I try the command adb pull -p It doesn't work. Here what it happens:
1|[email protected]:/ $ cd sdcard
[email protected]:/sdcard $ adb pull -p
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
error: device not found
1|[email protected]:/sdcard $
Any Idea? Thanks
Click to expand...
Click to collapse
Is there someone who could help me???

Categories

Resources