........ 10 chars.
Can you be more specific? That does not help us at all. Which ROM are you running and what is your error message?
Sent from my Eris using XDA App
Hello, my names Alex and I've been trying to install this battery tweak as well, but I can't. I follow the instructions. It says to run the terminal emulator and type "su" to grant superuser. Ok. That part works fine. BUt when it says to type "batt-cfg, then 1 and then press enter. It says batt-cfg1 not found.. Ans I can't get passed that part... What am I doing wrong?
Palexo said:
Hello, my names Alex and I've been trying to install this battery tweak as well, but I can't. I follow the instructions. It says to run the terminal emulator and type "su" to grant superuser. Ok. That part works fine. BUt when it says to type "batt-cfg, then 1 and then press enter. It says batt-cfg1 not found.. Ans I can't get passed that part... What am I doing wrong?
Click to expand...
Click to collapse
The instructions assumed a level of familiarity with the command line. You need to put a space between "batt-cfg" and "1".
Related
Hi Guys,
I've just followed a guide to rooting my phone as it seems to be the 'in' thing round these parts
Just 1 question is there an easy way to check it's now rooted successfully?
Cheers
Paul
this topic has been answered multiple times in these forums!
but the answer is "adb shell su"
i have searched but not found the info you mention.
Ok i have run that command from windows and it just seems to freeze with
#
If i run this from CommandBot i get
adb: permission denied
so i presume the root didnt work?
If i look in the applications window i now have an option in there now called 'Superuser permissions' - there were 2 entries in here which i pressed on and now they've dissapeared, shouldnt i have done this?
Download terminal editor.
Type "su"
do you have a # now? No? Well you are not root.
So I feel like a total Noob, which i am, but I cannot get this new Kernel to work for me. I do the following steps:
1) Open Terminal Emulator (install it from market if you don't have it).
2) Type "su" (without quotes) and hit enter.
3) Type "speedtweak.sh" (without quotes) and hit enter.
When I type in and I get speadtweak.sh and i get Speedtweak.sh not found... what in the world am I doing wrong?
when terminal boots up I get:
$ export PATH=/data/local/bin:$PATH
$
when your terminal boots up-
$ export PATH=/data/local/bin:$PATH
$
-- You need remember ALWAYS lower sensitive case characters
type su hit return
it will come up #
then
type speedtweak.sh hit return
There you will access the dialog output from speedtweak.sh.
Good luck
You have to install BusyBox. If you haven't it'll show up as "not found".
Having same issue. Busybox is installed even tried using adb shell. Any advice?
Did you install the kernel through Rom Manager or through Recovery? If it was through Rom Manager it could have been a bad flash.
Also, you can try this
I found this thread through google, searching for "speedtweak.sh not found." I dislike necroposting but I tried various suggestions found on multiple websites and none of them worked for me. I kept getting the same error code. Hopefully this will help someone else with the same issue. I don't know much about Linux/Unix so I am always extremely methodical about typing in commands precisely as they're posted, double-checking each step so I'm certain I did everything correctly.
I finally solved the issue for me by entering in the following in Terminal Emulator.
su
/sbin/speedtweak.sh
Typing in the full path for the speedtweak script worked for me. Perhaps someone with more experience can explain why that was necessary. Were we working in DOS, I'd know to add C:/sbin/ to the autoexec.bat path line... :silly:
Terminal emulator from the market had something changed in the last update so for some reason now you have to manually enter it or change the path in the settings.
Sent from my ADR6400L using Tapatalk 2
Looking for a little advice on swap. Just making sure I did it correct and didn't miss anything. Typed "su" enter. "speedtweak.sh" enter. Chose from the list and pressed enter. If this post is annoying or unnecessary than feel free to let me know.I'm just looking for a little light.
Sent from my SCH-I800 using XDA App
Type:
"su"
"free"
without the quotes. It will show if swap is being used or not.
Beastclaw said:
Type:
"su"
"free"
without the quotes. It will show if swap is being used or not.
Click to expand...
Click to collapse
"free" does not require root privileges, so just typing "free" by itself will work fine.
mar5hal said:
Looking for a little advice on swap. Just making sure I did it correct and didn't miss anything. Typed "su" enter. "speedtweak.sh" enter. Chose from the list and pressed enter. If this post is annoying or unnecessary than feel free to let me know.I'm just looking for a little light.
Sent from my SCH-I800 using XDA App
Click to expand...
Click to collapse
What you did was change the speed settings of your kernel. As stated above, check if swap is enabled by typing "free" if it shows 000000s, then you can enable it (if you've flashed the enable zips), by typing:
sh data/imoseyon/swap.sh create
After that, if you reboot and type "free", you should have some values for swap instead of 00000s.
You can remove it with:
sh data/imoseyon/swap.sh create
oh and if you flash a new kernel you have to re-enable it
joshnichols189 said:
What you did was change the speed settings of your kernel. As stated above, check if swap is enabled by typing "free" if it shows 000000s, then you can enable it (if you've flashed the enable zips), by typing:
sh data/imoseyon/swap.sh create
After that, if you reboot and type "free", you should have some values for swap instead of 00000s.
You can remove it with:
sh data/imoseyon/swap.sh create
oh and if you flash a new kernel you have to re-enable it
Click to expand...
Click to collapse
Thanks a bunch, this is exactly what I was looking for.
Sent from my ADR6400L using XDA Premium App
So, every time I need to use the terminal emulator I type and the line stays blank till I press enter. I can't read what I type in real time. This causes command errors. Also I have to remember to clear the whole line if I mess up and it won't show back spacing if the letters haven't been manifested yet so that also leads to errors. I'm using Multirom now but have had this problem in many ROMs. It also happens in all forms of terminal emulators I try. From all apps. ROM toolbox pro, terminal emulator pro, etc.
Anyone else have that happen?
Supermatt01 said:
So, every time I need to use the terminal emulator I type and the line stays blank till I press enter. I can't read what I type in real time. This causes command errors. Also I have to remember to clear the whole line if I mess up and it won't show back spacing if the letters haven't been manifested yet so that also leads to errors. I'm using Multirom now but have had this problem in many ROMs. It also happens in all forms of terminal emulators I try. From all apps. ROM toolbox pro, terminal emulator pro, etc.
Anyone else have that happen?
Click to expand...
Click to collapse
first: how about screenshots?
and WHICH errors?
Terminal Emulator need some time after the boot .. so 10-15 secs ..
diedmaster said:
first: how about screenshots?
and WHICH errors?
Terminal Emulator need some time after the boot .. so 10-15 secs ..
Click to expand...
Click to collapse
Thanks for a reply but screen shots won't really show you anything because it wouldn't be a distinct error you'd be able to pick out from a pic. You'd just have to have the same issue and you'd understand. I'm not talking about running a command at boot so that's not related to the issue.
Supermatt01 said:
Thanks for a reply but screen shots won't really show you anything because it wouldn't be a distinct error you'd be able to pick out from a pic. You'd just have to have the same issue and you'd understand. I'm not talking about running a command at boot so that's not related to the issue.
Click to expand...
Click to collapse
yea. I think I know what you mean .. but there must have been some errors .. does terminal emulator not having all needed permission? e. g. file permission? And I wasn't talking about the boot from the phone, I talked about the boot of the APP. I should more clearify that sorry
Per this issue, and specifically this comment, I'm trying to grant the BATTERY_STATS permission to GSam Battery Monitor. I've tried the adb command "pm grant com.gsamlabs.bbm android.permission.BATTERY_STATS" but can't get it to work. I've also tried "pm grant com.gsamlabs.bbm android.Manifest.permission.BATTERY_STATS" but the results are the same. Doing it through ConnectBot gives me the following error:
Operation not allowed: java.lang.SecurityException: grantRuntimePermission: Neither user 10338 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
Doing it through adb gives me this:
Bad argument: java.lang.IllegalArgumentException: Unknown package: com.gsamlabs.bbm
This is on a stock Moto Z Play, 7.1.1
kernel:
3.18.31-perf-g757c8d9
[email protected] #1
Build number NPN26.118-22
Are you running the pro version? Then it needs to be com.gsamlabs.bbm.pro
The error is because it can't find a package named com.gsamlabs.bbm, so I would investigate why that's occurring. Either there's a typo (I don't see one) or that's not the correct package name.
ConnectBot won't work because ConnectBot doesn't have superuser permissions. Unless your device is rooted it'll have to be done through adb or using a PC-side program which effectively does the same thing.
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
vertigo_2_20 said:
Thanks! I think that was it, as adding .pro to the end didn't give an error. But it didn't actually say it was successful, either. It just spit out all the adb usage info like if you just type "adb" with no parameters. Any idea how I know if it worked?
Click to expand...
Click to collapse
Do the advanced stats in BBM work now? Also, are you on the paid version of BBM? That's the pro version, iirc.
You are typing "adb -d shell pm grant com.gsamlabs.bbm.pro android.permission.BATTERY_STATS", right?
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Yea, I had a feeling after re-reading your original post that you were missing the "adb -d shell" portion, glad it's working.
vertigo_2_20 said:
Got busy with other stuff and just now got back to this, but I got it working. The reason I got the output I did before was because I was typing an invalid command, since pm grant isn't one of the commands of adb.exe. I had to type adb shell THEN type the command, and then it worked (and I just noticed you said that, I must have overlooked that when I looked at it before since I was busy). Also, for anyone that might come across this trying to do this, GSam didn't automatically recognize that this was done. I had to go through the steps of having it show me how to do it and at the end of that it worked. One final note, I had to update to the latest SDK for it to work, the version I was using was too old. Thanks again for the help apraetor!
Click to expand...
Click to collapse