So I have and LOVE collins battery tweak.
I'm running CMrc1.
I got tired of having to type in the whole:
su
batt-cfg
2
exit
exit
crap
so i looked into automating it a bit.
but i'm stuck!
if you go into menu~preferences~initial command
and type:
Code:
su
batt-cfg
You'll knock out the first part of the problem as soon as Terminal starts.
i'm looking to add a pause after that to wait for all of the options to load and then to hit "2" and continue on it's way.
and then pause again and have it type "exit" enter "exit"
to close the program.
i've tried the "sleep" command to no avail.
anybody have any idea how i might accomplish this?
i know it's only typing a few things, but i've got my heart set on getting it fully automated!
thanks everyone.
got it!
so i've figured it out.
all you have to do now is type in which option you want after opening terminal.
mine is option 2.
just type this code exactly as shown to get it to finish after you type in your option.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
this will then exit terminal emulator the correct way and save your settings.
this will save time and make the whole process easier.
i guess it'll do until tweaktool finally comes out!
Code:
su
batt-cfg
sleep
2
sleep 1
exit
sleep 1
exit
so is anyone else using this?
is it working like it should for you?
rideascooter said:
so is anyone else using this?
is it working like it should for you?
Click to expand...
Click to collapse
So if we were to use it then teminal would only be usable for the tweak, correct? Because it would come on, run the commands and exit every time. This would mean you couldn't use teminal to run any other commands, or even change the tweak settings.
EDIT: I like the idea for sure. Would be super cool if someone could write a script that would work as a stand-alone app. Say for instance "CBT Starter". Then just have the app (when clicked/opened) open terminal, run those commands and them close. Does the same thing but allows for terminal to be used aside from the tweak.
that's where i was hoping this would go.
i just have two different terminal apps to achieve this now.
but i just got my app developer status and haven't messed around much in writing one.
that is my next step.
rideascooter said:
that's where i was hoping this would go.
i just have two different terminal apps to achieve this now.
but i just got my app developer status and haven't messed around much in writing one.
that is my next step.
Click to expand...
Click to collapse
LUCKY! I'm still waiting, lol. How do you remember which terminal is which in the programs menu? Or do you put them on different home screens?
i do have different ones one different screens.
the collins one stays on my launcher!
the other, if i ever need it, is just in my app drawer.
i hardly ever use it.
if i need adb, i just use ADB Wireless.
Related
Ok, so I'm definitely no expert, and I've done a bit of searching seeing that people are trying to find ways to backup their proprietary google bits when it comes to the Cease and Desist order laid down upon Cyanogen. I was messing around in Terminal Emulator today and found a way to list all of the proprietary bits. I was wondering why it gives me this message, when I try to copy one of these files to the SD card?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Once I understand why it "omits" the directory, and fails to copy the file, I will continue working on getting these bits to backup, so we can keep our google apps. Me personally, I use Google Maps like it's going out of style, so losing it is not an option for me, but I love CyanogenMod Roms. Thanks for any help. I can post the rest of the code if need be.
RicFusion said:
Ok, so I'm definitely no expert, and I've done a bit of searching seeing that people are trying to find ways to backup their proprietary google bits when it comes to the Cease and Desist order laid down upon Cyanogen. I was messing around in Terminal Emulator today and found a way to list all of the proprietary bits. I was wondering why it gives me this message, when I try to copy one of these files to the SD card?
Once I understand why it "omits" the directory, and fails to copy the file, I will continue working on getting these bits to backup, so we can keep our google apps. Me personally, I use Google Maps like it's going out of style, so losing it is not an option for me, but I love CyanogenMod Roms. Thanks for any help. I can post the rest of the code if need be.
Click to expand...
Click to collapse
Nevermind. I messed around with it a bit more and found out how to do it. I can now copy the proprietary google apps, to the sd card. Here is the command I used in order to make it work.
$ su
cd /data/data
ls
(It will list all of the software on your device)
cp -r "insert app name here"
cd /sdcard
ls
Click to expand...
Click to collapse
If you look now, whatever named app you copied, will now be on your sd card!
So, is anyone up for helping me write a script, and or app that will allow this to run?
**So I uninstalled and reinstalled RE and now I can change permissions... In fact, some of the icons are different. Don't know if I had update issues or what, but I don't care. This thread is a moot point now, thanks anyways and if a mod comes across this, feel free to delete it.**
Ok, so here is my issue. I'm trying to remove the data throttling per this post
When I get into root explorer, there are certain folders that allow me to, but others that won't. I have SU granted and still nothing. I attempted using SSH and still can't change the permissions. I'm sure there are other ways, but it's beyond my current experience and was wondering if anyone could help or point me in the right direction. Below are some screenshots, the 1st showing what has SU permissions, the 2nd the opening screen of root explorer showing as being granted and the 3rd show the one thing I've noticed on all the folders that won't allow me to change permissions. If you look in the upper right hand corner, a file destination is listed "/dev/block/mmcblk0p1" yet, when I look in /dev/block/ it offers no visible files.
Anyways, any help is appreciated, I did search but couldn't find anything posted and I want to know why my phone is the one G2x that is resisting!?!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
bump
Experiencing the same issue with a coworker trying to chmod permissions on build.prop file.
Phone rooted and verified by Root Checker. Have Terminal Emulator, etc.
No matter what, can't change permissions or edit files.
(Trying to get Netflix to work on G2x). Following the guide, but it won't work if we can't edit the build.prop.
Thanks.
My problem was caused by my version of Root Explorer. Turns out, I had DL a counterfeit one. At the time, I didn't want to pay for it so I searched for it and found it free... Well, found a cheap imitator.
Meh, call it karma, call it getting what you pay for. I uninstalled it and bought the *AUTHENTIC* Root Explorer [after trying to use SSHDroid in conjunction w/WinSCP and other methods] and voila! Like magic, r/w appears!
I've also used RE in attempts to change my build.prop to run Netflix, but to no avail... Well, for the app itself that is, changed the build.prop flawlessly. When I start the app, the screen fades to black for a second, then brings me right back to where I started [typically the app drawer] doesn't even give me the chance to log in.
Honestly, RE is completely worth the purchase price. I tried MANY different avenues, none of which would allow me to remount to r/w in the /system file [or several others] whereas RE doesn't skip a beat in smashing down those walls. If you're like me, and pretty much everyone here at XDA, you will get your money's worth out of this program w/all the access you're given.
Finally got my own G2x now.
I've rooted it.
Installed CWM.
I downloaded Terminal Emulator.
Gone in to try and chmod permissions to edit files like build.prop.
Get the error that it's a read-only file system.
What do I have to do to be able to edit these bad boys? If I'm using SU in Terminal Emulator (which has root access) why can't I change permissions?
Hi.
I assume that someone spies against me. look at these 3 reasons:
1. my notification list contains a transparenr/black icon. see image (i marked the "hole" yellow frame):
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
how can i know which app activates it? the active apps list seems pretty ok.
2. after i turn on my device (samsung galaxy s2) and wait for about a minute or so, i turn on the screen, want to draw my pattern but it screen tells me that i should wait 30 seconds, means that someone or somewhat has previousely tried to guess the pattern and failed to do so for 5 times. it happens every time i turn on the device.
3. my waze app sometimes loads by itself, even while i'm not touching the device.
what do you guys think?
Thanks!
albergo said:
Hi.
I assume that someone spies against me. look at these 3 reasons:
1. my notification list contains a transparenr/black icon. see image (i marked the "hole" yellow frame):
how can i know which app activates it? the active apps list seems pretty ok.
2. after i turn on my device (samsung galaxy s2) and wait for about a minute or so, i turn on the screen, want to draw my pattern but it screen tells me that i should wait 30 seconds, means that someone or somewhat has previousely tried to guess the pattern and failed to do so for 5 times. it happens every time i turn on the device.
3. my waze app sometimes loads by itself, even while i'm not touching the device.
what do you guys think?
Thanks!
Click to expand...
Click to collapse
well first of your image link is broken anyways i am assuming your phone is rooted if it were you could try installing greenify to see which apps are running in background also if you think you have a R.A.T on your phone (p.s a R.a.t stands for remote administration tool and is a type of spyware) if i were you i would try installing a free anti-virus like avast run that see what happens if that doesn't show up as anything and you are still feeling like you are being watch maybe flash to a nandroid backup?
thanks
RichHomieQuan said:
well first of your image link is broken anyways i am assuming your phone is rooted if it were you could try installing greenify to see which apps are running in background also if you think you have a R.A.T on your phone (p.s a R.a.t stands for remote administration tool and is a type of spyware) if i were you i would try installing a free anti-virus like avast run that see what happens if that doesn't show up as anything and you are still feeling like you are being watch maybe flash to a nandroid backup?
Click to expand...
Click to collapse
i'll give it a chance
10x
So here is the thing. I want to use the gestures control with navigation bar, and did some dig about it.
It seems that fluid NG is my best option here(if there is anything better with rooted system, you are more than welcome to make me a suggestion xD).
So I downloaded it and installed. So far so good except one thing : The original navigation buttons still there ! T-T
like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
They are not functioning anymore, but just stayed there on top of the bottom apps' icons.
So is there something like adb commands, or other addons to completely remove them as they won't be needed anymore?
P.S. I have tried :
Code:
adb shell settings put global policy_control immersive.navigation=*
But once you click around the bottom area they comeback for a short duration.
i found this on stackoverflow. maybe it works for you:
There are Two ways (both requiring device root) :
1- First way, open the device in adb window command, and then run the following:
adb shell >
su >
pm disable com.android.systemui >
and to get it back just do the same but change disable to enable.
2- second way, add the following line to the end of your device's build.prop file :
qemu.hw.mainkeys = 1
then to get it back just remove it.
Ezdilan said:
So here is the thing. I want to use the gestures control with navigation bar, and did some dig about it.
It seems that fluid NG is my best option here(if there is anything better with rooted system, you are more than welcome to make me a suggestion xD).
So I downloaded it and installed. So far so good except one thing : The original navigation buttons still there ! T-T
like this:
They are not functioning anymore, but just stayed there on top of the bottom apps' icons.
So is there something like adb commands, or other addons to completely remove them as they won't be needed anymore?
P.S. I have tried :
Code:
adb shell settings put global policy_control immersive.navigation=*
But once you click around the bottom area they comeback for a short duration.
Click to expand...
Click to collapse
hi! i tryed the app now, and you can disable the navigation Buttons in the fluid app, it works for me at the fist start.
Maybe u should install the app again ?
Hi guys!
I've been downloading some watch faces from the web and I would like to know if there is a way to transfer them, in a way that it works, to my HW2 via ADB command, without the need to use apps like WatchMaker, Facer Watch Faces, etc.? If yes, wath I need to do?
Thanks.
Literally what you just said. Plug the watch to your machine with supplied usb charger, make sure you have ADB installed, see if your machine detects your watch with `adb devices` command. If it's on the list, just do `adb install path/to/xyz.apk` and voila.
This obviously only works for watch faces that you have .apk files for, for example from this forum. Facer/WatchMaker faces usually work in a different way, e.g. there is a "share code" that you paste into your phone app and it will download that custom face to your watch automatically.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
mestiso said:
Literally what you just said. Plug the watch to your machine with supplied usb charger, make sure you have ADB installed, see if your machine detects your watch with `adb devices` command. If it's on the list, just do `adb install path/to/xyz.apk` and voila.
This obviously only works for watch faces that you have .apk files for, for example from this forum. Facer/WatchMaker faces usually work in a different way, e.g. there is a "share code" that you paste into your phone app and it will download that custom face to your watch automatically.
Click to expand...
Click to collapse
Command return it:
TKQ7xxxxxxxx unauthorized.
What it means (unauthorized)?
[email protected] said:
What it means (unauthorized)?
Click to expand...
Click to collapse
Apologies, I don't really check XDA that often.
You need to enable ADB on the watch and authorize your PC to access it when you plug it in.
See https://developer.android.com/training/wearables/apps/debugging and search for queries like "adb unauthorized" or "adb wear os" for reference.
Thank you man.