Question /bin/sh file doesn't exist - OnePlus Nord 2 5G

/bin/sh file doesn't exist anyone know how to fix it I'm on a rooted device

reset device.

Related

[Q][Help] Chmod not found

I am trying to root my Tab. ICS 4.04. But i thing chmod file get corrupted. It is there in bin folder , but adb saying not found. Please anybody help me to fix this. And 2nd thing how can i dump my rom. No mtd file in proc so can't do anything. Please help
AW: [Q][Help] Chmod not found
techfreeks.com said:
I am trying to root my Tab. ICS 4.04. But i thing chmod file get corrupted. It is there in bin folder , but adb saying not found. Please anybody help me to fix this. And 2nd thing how can i dump my rom. No mtd file in proc so can't do anything. Please help
Click to expand...
Click to collapse
Restore a chmod from another rom and try to install it. Busybox comes also with chmod, but it could be risky to install it to the bin folder not the xbin. (Or dual install them, busybox in /xbin and copy the chmod to the /bin folder)
A complete dump like a backup or a dump without /data? Cwm offers the features for both ways.
Sent from my Nexus 7

[Q] - exec '/system/bin/sh' failed: Permission denied (13) -

Does anyone know how to use linux to push an original sh file or even just the whole bin folder?
I am unable to use the shell command in adb because I really messed that up by replacing my bin folder with another phones bin folder (same phone make and model - Samsung Proclaim).
(whoops, as you can tell I don't understand much about the system files and therefore I shouldn't be messing with them but my phone was stuck in a bootloop and I got google happy and desparate)
But I've read a few things about possibly using linux to get in there and put the originals back. I have been using linux for a short while but I lack the skills necessary to do this.
Does anyone know if this is something that I can learn to do in a few days or is this something that only years of experience can accomplish?
I'm willing to search and read whatever is necessary I just need a push in the right direction.
Download Stock ROM
Open and decompress zip file (or whatever)
not just adb push the sh executable but all /system folder
remount /system
Code:
adb remount
Code:
adb push ./STOCK_DECOMP/system /system
if you get errors on copying app, just copy each internal folder one by one
at least i got internal shell on a Kindle doing this way (just copying an original sh didn't resolve my problem), but all environment was a little messy.
good luck.

Help using the "find" command to install apk files

Hi all,
I have been trying for the majority of this night to try and make a, more or less, simple concept into a reality.
I would like to "deploy" .apk files to a set of tablets for student use in the school. Every now and then I will be required to install new apps across a range of devices. I have sorted out the transfer of the apk files to the tablets using an app called "FolderSync" so that the files will be local on the SD Card. Hopefully this part should not be problematic. Due to the fact that the tablets will be used by students, I want to make the process of installing the apps as automated as possible. Using the command "pm install <app.apk>" command I have achieved this step also. My trouble is that I will require the script to improvise and find all apk files in a folder and install them. So far I have tried the following:
Code:
su
cd /sdcard/FolderSync/
find *.apk -exec "pm install {}" \;
However this returns "find: pm install app.apk: No such file or directory"
This may be more of a Linux issue than android, or maybe even just me missing something obvious, however I have tried adjusting the syntax here and there and can't figure out how to successfully install a directory of .apk files.
Any ideas?
Thanks in advanced,
tylergard702
Any ideas anyone?
Or any alternate ideas of how to install a directory of .apk files without any user verification?
Ah never mind
Ha ha, using:
Code:
find *.apk -exec sh -c "pm install {}" \;
worked a treat . just thought I'd update in the unlikely event that someone is as silly as me :L
Solved.

[Q] Manual rooting Android?

I do hope this is posted in correct area.
I have scoured the internet to find out how to manually root KitKat.
I dont want to depend on a one click tool. As far as I understand, you push via ADB superuser, busybox and su files into data/local/tmp but issue seems to be getting those files into system folderm I use linux and tried mounting my galaxy 3 just to practice and nautilus as root user in linux doesnt show my device. How do you guys root manually?
I also read I can use dd command in linux to clone the data on phone and extract boot.img to make insecure then recompile the image and flash it but is this method old?
Advice?

[Q] Additional Command on Booting

Hi guys. I couldn't install cwm and I want to insert a command to /system/etc/init.goldfish.sh to execute additional script to change files on device booting.
Script file /mnt/external_sd/rv.sh. When it exists it will be executed. I just wanna add "sh /mnt/external_sd/rv.sh". Will this code be a problem when it is just like that.
I hope I could tell everything readable
Thanks.

Categories

Resources