[Q] Easy answer, many thanks! - Samsung Galaxy Mini

Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:

XDRdaniel said:
Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:
Click to expand...
Click to collapse
It's automatically executed on boot. But i think you can execute it by :
Code:
su
then
Code:
cd /system/miui-bin
then execute the script by mentioning it's name.
Never tried it, but worth a shot !

F4uzan said:
It's automatically executed on boot. But i think you can execute it by :
Code:
su
then
Code:
cd /system/miui-bin
then execute the script by mentioning it's name.
Never tried it, but worth a shot !
Click to expand...
Click to collapse
i tried this
su
cd /system/miui-bin
bootsound
it says
bootsound: not found
my guess is that there is another script that activates miui-bin folder, but wich one?

Try:
export PATH=/system/miui-bin:$PATH
Before doing the rest

XDRdaniel said:
Hi guys. How can i execute scripts found in "miui-bin" folder? A simple drag'n drop didn't solve that:laugh:
Click to expand...
Click to collapse
This means that you are working on an MIUI ROM?

ast00 said:
This means that you are working on an MIUI ROM?
Click to expand...
Click to collapse
yes

XDRdaniel said:
i tried this
su
cd /system/miui-bin
bootsound
it says
bootsound: not found
my guess is that there is another script that activates miui-bin folder, but wich one?
Click to expand...
Click to collapse
Try this
su
cd /system/miui-bin/
./bootsound
If it gives an error other than file not found then check your permissions ...
To change permissions use chmod
If it gives file not found error then use root explorer and see if the path of file is correct ...also if the script boot sound has an extension (like .sh ) then you must mention it in the 3rd line ....
Good luck
Sent from my GT-S5570 using Tapatalk 2

Related

how to remove boot sound

which is a bit noisy during the nite:
mv /system/media/bootscreen/boot.mp3 /system/media/bootscreen/boot.mp3.bak
http://www.htcmania.com/showthread.php?t=89160
Or you could just edit the boot_animation.xml in the same folder and set useAudio="1" to useAudio="0"
theres three of them, just set all three to "0" and the phone will boot silently.
nerozero said:
Or you could just edit the boot_animation.xml in the same folder and set useAudio="1" to useAudio="0"
theres three of them, just set all three to "0" and the phone will boot silently.
Click to expand...
Click to collapse
How can I edit file nerozero?
busybox vi
Or check this out to edit files on your computer easy way...
hxxp://forum.xda-developers.com/showthread.php?t=628138
root and busybox required...
arturo025 said:
How can I edit file nerozero?
Click to expand...
Click to collapse
I used the following method:
Code:
adb pull /system/media/bootscreen/boot_animation.xml .
Use what you like to edit it. I use gedit all the time.
Code:
adb push boot_animation.xml /system/media/bootscreen/
ps. You need to root and insmod tattoo-hack.ko, or flash the mainfram3.boot.img.

[Q] location of etc/init.d

HI
I am running sok 4.7.8 on a Samsung i9000 and need to disable VSF. I know the SOK thread mentions to place a special script in the /etc/init.d directory but it is not available on my phone. I used a file browser with root access to search for it.
Any ideas?
PJ
Pj66 said:
HI
I am running sok 4.7.8 on a Samsung i9000 and need to disable VSF. I know the SOK thread mentions to place a special script in the /etc/init.d directory but it is not available on my phone. I used a file browser with root access to search for it.
Any ideas?
PJ
Click to expand...
Click to collapse
Sure there is a /ect, dl "root explorer" from the market.
ttf said:
Sure there is a /ect, dl "root explorer" from the market.
Click to expand...
Click to collapse
Thanks I do see the /etc folder but there is no init.d folder in it. Do i need to create this folder?
Pj66 said:
Thanks I do see the /etc folder but there is no init.d folder in it. Do i need to create this folder?
Click to expand...
Click to collapse
Weird, yes you can create it (chmod 777 of course)
ttf said:
Weird, yes you can create it (chmod 777 of course)
Click to expand...
Click to collapse
Great thanks for your help.

Request for help: Setting write permission for pppd-ril.options file

Hello,
I need some help with permission setting. Im trying to edit the pppd-ril.options file in system/etc/ppp/peers/ but it is not write enabled.
Using rooted file explorers still brings no avail to setting the write permission.
Tried to use chmod 777 using terminal emulator but it says the system is read only
Also tried exploring with QPST, but can't see the system folder at all.
I need to edit this file as it contains 3G settings I need to adjust.
Help would be much appreciated!
From the terminal
busybox mount -o remount,rw /system
You seem can read chinese
haha
Thanks much! I edited the file and can finally enjoy China Telecom 3G on western ROM!
mvp3 said:
You seem can read chinese
haha
Click to expand...
Click to collapse
Congratulations!
Hashcode said:
Congratulations!
Click to expand...
Click to collapse
just transfered work

[Q] How Check Full ROOT on Z1?

Hey Guys,
I got a simply question, I got root but I don't know if I got FULL ROOT, How to check that?
Yes, on Play Store there are 1000 of apps but I don't trust them.
Any commands from Terminal to Determine if I have Full Root?
eclyptos said:
Hey Guys,
I got a simply question, I got root but I don't know if I got FULL ROOT, How to check that?
Yes, on Play Store there are 1000 of apps but I don't trust them.
Any commands from Terminal to Determine is I have Full Root?
Click to expand...
Click to collapse
Uhm open a terminal and make a file in "/system" I guess. You can do that using the following command: "touch /system/roottest.txt".
Better answer provided here.
B1nny said:
Uhm open a terminal and make a file in "/system" I guess. You can do that using the following command: "touch /system/roottest.txt".
Click to expand...
Click to collapse
I executed that command but I don't get anything, not even the file in Device>System..
See the Pic..
eclyptos said:
I executed that command but I don't get anything, not even the file in Device>System..
See the Pic..
Click to expand...
Click to collapse
Get root in terminal first by typing
Code:
su
Then mount system as RW and make a directory by typing
Code:
mount -o remount,rw system
mkdir /system/test
or, mount system using root explorer and then do this
Code:
su
mkdir /system/test
Trust me, you have full root....
Ok.
I just Check in.
gregbradley said:
Get root in terminal first by typing
Code:
su
Then mount system as RW and make a directory by typing
adb shell mount -o remount,rw system
mkdir /system/test[/code]
Trust me, you have full root....
Click to expand...
Click to collapse
A bit confused here with that code....
adb shell mount -o remount,rw system
mkdir /system/test[/code]
It have to be like that in Terminal?
eclyptos said:
I just Check in.
A bit confused here with that code....
adb shell mount -o remount,rw system
mkdir /system/test[/code]
It have to be like that in Terminal?
Click to expand...
Click to collapse
Check his post again, he corrected himself.
I edited my post
@gregbradley
I think I have a problem, what you think? It tells me that system/test is Read-Only..
use root explorer to mount system then try the mkdir again
or just root explorer to mount system..as soon as you can do that you have root.....
Full root just means you keep root after a reboot and the security of the RIC has been disabled
gregbradley said:
use root explorer to mount system then try the mkdir again
or just root explorer to mount system..as soon as you can do that you have root.....
Full root just means you keep root after a reboot and the security of the RIC has been disabled
Click to expand...
Click to collapse
I am not familiar with that, which Root Explorer are you referring too?
eclyptos said:
I am not familiar with that, which Root Explorer are you referring too?
Click to expand...
Click to collapse
root explorer
look on the play store
or use any explorer that can gain root...and just modify something in system...change permission, delete or make a file...
if you just reboot your phone and run an app that requires root and it works then you have full root.
gregbradley said:
if you just reboot your phone and run an app that requires root and it works then you have full root.
Click to expand...
Click to collapse
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
..I will keep you updated...
eclyptos said:
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
Click to expand...
Click to collapse
then you have root, and if you reboot and can still do this you have "full" root
..I will keep you updated...
Click to expand...
Click to collapse
There is no need... I am really unsure on why you are asking this. Seeing as you have posted loads of help posts about this I would expect you to know the difference and know that you have full root.
Trust me, you have it.
eclyptos said:
ok...I will try...at the moment I was using ES File Explorer and it not allow me to make or paste any file in system folder...
..I will keep you updated...
Click to expand...
Click to collapse
If you are not allowed to modify system that's because is not mounted as Rw. Go to ES, make sure you have turned on root explorer and then click on root explorer. A pop up will appear, then select where says mount system as Rw.
gregbradley said:
then you have root, and if you reboot and can still do this you have "full" root
Click to expand...
Click to collapse
This I don't get it...
gregbradley said:
There is no need... I am really unsure on why you are asking this. Seeing as you have posted loads of help posts about this I would expect you to know the difference and know that you have full root.
Trust me, you have it.
Click to expand...
Click to collapse
I know, sometime I cooking my brain instead of my phone and I missing stupid things...and learn small thing.
luis4ever said:
If you are not allowed to modify system that's because is not mounted as Rw. Go to ES, make sure you have turned on root explorer and then click on root explorer. A pop up will appear, then select where says mount system as Rw.
Click to expand...
Click to collapse
You see! OMG! That was the stupid thing...sooo stupid! You are the man. Now everything is working.
ES was granted by Su and it now allow me to modified System files and folders.
After executing the commands in Terminal I find a new folder named "test" in System. Thanx to @gregbradley
Thank you all!
You see! OMG! That was the stupid thing...sooo stupid! You are the man. Now everything is working.
ES was granted by Su and it now allow me to modified System files and folders.
After executing the commands in Terminal I find a new folder named "test" in System.
Thank you all!
Click to expand...
Click to collapse
Glad you solved the problem
wow....
gregbradley said:
wow....
Click to expand...
Click to collapse
lol...

Can't run a script

hello I'm trying to run a script but I can't it gives me the errors in screenshot. I run it as root. I'm s-off.
here's the script. (note that I can do this manually with a file explorer)
chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /sdcard/htcm8awb/awb_cal /sys/android_camera_awb_cal/awb_cal
MaRcIuPT said:
hello I'm trying to run a script but I can't it gives me the erros in screenshot. I run it as root. I'm s-off.
here's the script. (note that I can do this manually with a file explorer)
chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /sdcard/htcm8awb/awb_cal /sys/android_camera_awb_cal/awb_cal
Click to expand...
Click to collapse
Need some more information, please. First off, do you have an HTC One m7 (Sprint) or an HTC One M8? From your script, it looks like it is made for the M8. This is the thread for the m7 Sprint variant.
MarkBell said:
Need some more information, please. First off, do you have an HTC One m7 (Sprint) or an HTC One M8? From your script, it looks like it is made for the M8. This is the thread for the m7 Sprint variant.
Click to expand...
Click to collapse
I have the m7 international (I believe this section is for m7 any version), I'm only replacing a file with the script.
MaRcIuPT said:
I have the m7 international (I believe this section is for m7 any version), I'm only replacing a file with the script.
Click to expand...
Click to collapse
Did you ever have any luck? Can you try asking the question to the person who wrote the script?
It's quite possible the script is for the m8 since the script names an m8 folder, but I'm not an expert on scripts by any means. @clsA: Do you know what may be going on here?
Do those directories referred to in your screenshot actually exist on your phone?
Also: I was wrong about this being Sprint variant exclusive. My bad on that.
MaRcIuPT said:
hello I'm trying to run a script but I can't it gives me the errors in screenshot. I run it as root. I'm s-off.
here's the script. (note that I can do this manually with a file explorer)
chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /sdcard/htcm8awb/awb_cal /sys/android_camera_awb_cal/awb_cal
Click to expand...
Click to collapse
Try using SManager to run the script. It might help.
MarkBell said:
Did you ever have any luck? Can you try asking the question to the person who wrote the script?
It's quite possible the script is for the m8 since the script names an m8 folder, but I'm not an expert on scripts by any means. @clsA: Do you know what may be going on here?
Do those directories referred to in your screenshot actually exist on your phone?
Also: I was wrong about this being Sprint variant exclusive. My bad on that.
Click to expand...
Click to collapse
I can rename the folder.... it's simply a folder. the scrip is made for m7. not m8. It does work for some in init.d and some don't.. like me. and I tried to run the script to see why and this is what happens. the folders are there because as I said I can do that step by step in ES explorer, change permissions then replace the file I want.
Atishay Jain said:
Try using SManager to run the script. It might help.
Click to expand...
Click to collapse
with Smanager I get the message is attached. :\
I tried to run a cp command in a terminal (root) and it says the same thing " I/O error" the other steps in script I did successfully in a terminal.
Tried too with 'busybox cp' command and I get " cp: can't create '/sys/android_camera_awb_cal/awb_cal': File exists " so I know the file exists that's why I wan't to replace it xD my head hurts. Searched a lot why I can't copy and no success.
MaRcIuPT said:
I can rename the folder.... it's simply a folder. the scrip is made for m7. not m8. It does work for some in init.d and some don't.. like me. and I tried to run the script to see why and this is what happens. the folders are there because as I said I can do that step by step in ES explorer, change permissions then replace the file I want.
with Smanager I get the message is attached. :\
I tried to run a cp command in a terminal (root) and it says the same thing " I/O error" the other steps in script I did successfully in a terminal.
Tried too with 'busybox cp' command and I get " cp: can't create '/sys/android_camera_awb_cal/awb_cal': File exists " so I know the file exists that's why I wan't to replace it xD my head hurts. Searched a lot why I can't copy and no success.
Click to expand...
Click to collapse
I am not able to get the exact reason for the problem but most such things get solved on updating busybox. Try doing that. Use the tool by jrummy from the market or download the busybox wraithdu installer script from the v6 supercharger thread by zeppelinrox.
MaRcIuPT said:
hello I'm trying to run a script but I can't it gives me the errors in screenshot. I run it as root. I'm s-off.
here's the script. (note that I can do this manually with a file explorer)
chmod 777 /sys
chmod 660 /sys/android_camera_awb_cal/awb_cal
cp /sdcard/htcm8awb/awb_cal /sys/android_camera_awb_cal/awb_cal
Click to expand...
Click to collapse
i would guess you're using Windows Notepad (or similar) to edit/create that script?
you need to use UNIX style EOL delimiters for those commands to work.
EDIT: i've attached an example, the same script (just lists directory contents), looks the same in the Script Runner, once saved with Windows EOL delimiters, gives the first output,
same script with UNIX EOL, gives the second output.
nkk71 said:
i would guess you're using Windows Notepad (or similar) to edit/create that script?
you need to use UNIX style EOL delimiters for those commands to work.
EDIT: i've attached an example, the same script (just lists directory contents), looks the same in the Script Runner, once saved with Windows EOL delimiters, gives the first output,
same script with UNIX EOL, gives the second output.
Click to expand...
Click to collapse
Yes I used the notepad to edit the original. now with your help I did understand and used the notepad++, converted to UNIX EOL and saved as script (sh). No errors now on missing directories but I can't copy/replace the file even with cp -f to force it. I can't understand which command ES explorer uses when I manually copy the file, because it replaces the file successfully.
MaRcIuPT said:
Yes I used the notepad to edit the original. now with your help I did understand and used the notepad++, converted to UNIX EOL and saved as script (sh). No errors now on missing directories but I can't copy/replace the file even with cp -f to force it. I can't understand which command ES explorer uses when I manually copy the file, because it replaces the file successfully.
Click to expand...
Click to collapse
Not sure, but
Are you running the script as root?
And maybe you need file permission to be 666 instead of 660.
Sent from my HTC One using Tapatalk
nkk71 said:
Not sure, but
Are you running the script as root?
And maybe you need file permission to be 666 instead of 660.
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
Yeah Always run on root. Tried 666 and 777. Tried with cp, cat, rm first then CP. No success.
Sent from my HTC One using XDA Free mobile app

Categories

Resources