Hello every one... I rooted the gear 2 and installed a custom tone... now question is, how do i remove them??
jlopez1286 said:
Hello every one... I rooted the gear 2 and installed a custom tone... now question is, how do i remove them??
Click to expand...
Click to collapse
Use the rm path/filename command to delete, just like DOS.
JimSmith94 said:
Use the rm path/filename command to delete, just like DOS.
Click to expand...
Click to collapse
I tried this command.
sdb root on
sdb shell mount -o remount,rw /
sdb rm /opt/share/settings/Alerts/stock_sound.ogg
sdb shell mount -o remount,ro /
is that correct??
.
jlopez1286 said:
I tried this command.
sdb root on
sdb shell mount -o remount,rw /
sdb rm /opt/share/settings/Alerts/stock_sound.ogg
sdb shell mount -o remount,ro /
is that correct??
.
Click to expand...
Click to collapse
Looks good to me, but I haven't tried to delete anything.
JimSmith94 said:
Looks good to me, but I haven't tried to delete anything.
Click to expand...
Click to collapse
I need to figure this out cuz i tried it again and no go...
jlopez1286 said:
I need to figure this out cuz i tried it again and no go...
Click to expand...
Click to collapse
"sdb ls /opt/share/settings/Alerts/stock_sound.ogg" should do a DIR of the file to be sure the file exists. You might have missed or added a capitalized letter. Unix/Linux are case sensitive.
"sdb ls /opt/share/settings/Alerts/" should give you a DIR of the whole directory so you can double check the spelling.
JimSmith94 said:
"sdb ls /opt/share/settings/Alerts/stock_sound.ogg" should do a DIR of the file to be sure the file exists. You might have missed or added a capitalized letter. Unix/Linux are case sensitive.
"sdb ls /opt/share/settings/Alerts/" should give you a DIR of the whole directory so you can double check the spelling.
Click to expand...
Click to collapse
what if the terminal tells you "unsupported command: rm"
jlopez1286 said:
what if the terminal tells you "unsupported command: rm"
Click to expand...
Click to collapse
Sorry, I'm only guessing now. Try "sdb shell rm /opt/share/settings/Alerts/stock_sound.ogg" Same with the ls commands.
that worked!!! thanks!!
Related
Anyone find a terminal app that works well on 2.1? Better Terminal Emulator FC's on me, and I haven't found another that works decently with the soft keyboard.
angst911 said:
Anyone find a terminal app that works well on 2.1? Better Terminal Emulator FC's on me, and I haven't found another that works decently with the soft keyboard.
Click to expand...
Click to collapse
ConnectBot works great - just choose connection type local.
I use Android Terminal Emulator. Just up the font size and its good to go
Thomas1218 said:
I use Android Terminal Emulator. Just up the font size and its good to go
Click to expand...
Click to collapse
how do you enter any symbols? like a * ? I tried and I get j* always
Ya I had that problem too but the best workaround I found was to use the 12# key to bring up all the numbers and symbols and I enter them that way
f00kie said:
ConnectBot works great - just choose connection type local.
Click to expand...
Click to collapse
I'm liking connectbot so far
angst911 said:
I'm liking connectbot so far
Click to expand...
Click to collapse
It's also by far the best SSH/telnet client for android.. it should be a great local terminal client as well
The help for soft keyboards should cover any questions on missing keys.
But when I try to remove a file it does not work? (I am rooted)
I have run
cd /system/app/
rm HtcLockScreen*
and
cd /system/app/
sudo rm HtcLockScreen*
chaos67731 said:
But when I try to remove a file it does not work? (I am rooted)
I have run
cd /system/app/
rm HtcLockScreen*
and
cd /system/app/
sudo rm HtcLockScreen*
Click to expand...
Click to collapse
you gotta mount it read/write.
/system is read only
Still very new to this,
How Do I do that?
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
I do not have adb installed and am doing it from my phone so I am guessing I need to just do
cd /system/app/
rm HtcLockScreen*
exit
chaos67731 said:
Still very new to this,
How Do I do that?
cd C:\android-sdk-windows\tools
adb remount
adb shell
cd /system/app/
rm HtcLockScreen*
exit
I do not have adb installed and am doing it from my phone so I am guessing I need to just do
cd /system/app/
rm HtcLockScreen*
exit
Click to expand...
Click to collapse
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
# cd /system/app
# ls
there ull have the list of all ur system apps just, rm appname.apk or .odex
I was hoping that would give me the Android 2.1 lock screen but it did not work..
Well it did get rid of the htc lock screen
It did not have a way to slide to unlock the screen.
Thanks for the help!
I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
$ adb push email.apk /system/app
failed to copy 'email.apk' to '/system/app/email.apk': Read-only file system
Click to expand...
Click to collapse
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
$ adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
Then I tried open shell first. no go
$ adb shell
$ mount -o remount rw system/app
mount: Operation not permitted
Click to expand...
Click to collapse
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
$ adb shell
$ su
Permission denied
Click to expand...
Click to collapse
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
tangyoulei said:
I have read many posts about ADB push/remount permission issues, etc. But unfortunately I still have not figured out what's wrong with my situation. First of all, I don't have a micro SD card, so I have to push files directly to the phone memory.
I firstly tried "adb push" but seems it doesn't work for me
Then I searched online and people said you need to remount first. Then I got the infamous permission problem
Then I tried open shell first. no go
I searched more and found it can get su permission so to make things work. But when I hit "su(enter)" after open adb shell, I don't see the "#" showing up but still got an error message after waiting for a while
Any one can please tell what's wrong with my operation? I rooted my G2x but didn't flash it. I installed the ROM manager and installed CWM but didn't proceed to reboot into recovery mode.
Click to expand...
Click to collapse
you need to look at your phone and allow superuser app to grant permission
crazythunder said:
you need to look at your phone and allow superuser app to grant permission
Click to expand...
Click to collapse
su app? how should I set it? I didn't see anyone mentioned that. Do you care to give a bit more details? Thanks.
I think I figured out. I have to manually run the superuser app and let it say in active. Then when I type in "adb shell" the app on the handset will ask my permission. Thanks for the reminder.
Plus I am doing the following as the following that I read from another thread
adb shell
$ su
# mkdir /data/yourname
# chmod 777 /data/yourname
# exit
$ exit
adb push gps.conf /data/yourname
adb shell
$ su
# mount -o remount,rw /dev/block/mtdblock6 /system (copy biggrin.gif)
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system (copy biggrin.gif)
# mv /data/yourname/gps.conf /system/etc
Click to expand...
Click to collapse
So I wanted to install APK-Multi Tool to my PC. But in order to set it up it is required to have a"framework-res.apk" and a "SystemUI.apk", am I right?(Ι am not sure if I forget anything) But where to find them? Do they mean that I have to use these that I got in my phone? OK lets say yes... I have found the framework-res.apk which is located in my system/framework. But I really dont know what is going on... I cant find the systemUI.apk in system/app !
Any help is appreciated! Thanks!
Additional Device Info:
Phone Model:LG-E986 G Optimus Pro
Android Version: 4.1.2
Kernel Version: 3.4.0
Root: Yes
ROM: Stock
Recovery: Yes
The Proof: Here
You can install titanium backup and search for SystemUI.apk and make a backup of it !!!
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
D-J Mutant said:
So I wanted to install APK-Multi Tool to my PC. But in order to set it up it is requered to have a"framework-res.apk" and a "SystemUI.apk", am I right?(Ι am not sure if I forget anything) But where to find them? Do they mean that I have to use these that I got in my phone? OK lets say yes... I have found the framework-res.apk which is located in my system/framework. But I really dont know what is going on... I cant find the systemUI.apk in system/app !
Any help is appreciated! Thanks!
Click to expand...
Click to collapse
What version of android do you have?
androidrocks23 said:
You can install titanium backup and search for SystemUI.apk and make a backup of it !!!
Sent from my GT-S5360 Using tapatalk 2
PreSS ThanKs If i HelPeD YoU ?!?
Click to expand...
Click to collapse
No results?? --> http://imgur.com/jZ87lHA,KRlB4QY#0
Lgrootnoob said:
What version of android do you have?
Click to expand...
Click to collapse
I wrote some additional info for the device.
D-J Mutant said:
I wrote some additional info for the device.
Click to expand...
Click to collapse
Anomaly.
Ive had some hidden apks too but i've always been able to back them up.
huh? confused4life.
All i can say is try this:
Code:
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
post the datalist.txt and syslist.txt files here as attachments.
Lgrootnoob said:
Anomaly.
Ive had some hidden apks too but i've always been able to back them up.
huh? confused4life.
All i can say is try this:
Code:
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
post the datalist.txt and syslist.txt files here as attachments.
Click to expand...
Click to collapse
Confused? Lol! What do you have to say about this?
D-J Mutant said:
Confused? Lol! What do you have to say about this?
Click to expand...
Click to collapse
lol
You need to have a root shell first.
Try this in the terminal:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Lgrootnoob said:
lol
You need to have a root shell first.
Try this in the terminal:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Click to expand...
Click to collapse
Oh... Where can I find one? For the above commands I used Terminal Emulator which has Superuser permissions.
D-J Mutant said:
Oh... Where can I find one? For the above commands I used Terminal Emulator which has Superuser permissions.
Click to expand...
Click to collapse
You have type su then the console will go from $ to # meaning you have root perms.
In the picture you provided you definitely have a user shell as denoted by the $ prompt.
If you are unsure you can always type whoami and if that returns "uid 0" then you have root permissions on the current shell.
Just because the terminal emulator has the ability to become the superuser doesn't mean you are always the superuser when you run the app.
The app has to request su permissions so you have to use the su command.
I had updated the code I wanted you to type into the emulator that you were using.
Please use the new code:
Code:
su
ls -l -R /system > /sdcard/syslist.txt
ls -l -R /data > /sdcard/datalist.txt
Please run this code then upload the datalist.txt and syslist.txt files from the sdcard here as attachments.
Ohh yes you are right..I forgot it.I have so much time to use the terminal
Here you go :
~~~The attached files have been deleted.~~~
To install busybox on a rooted gear 2, turn root on (sdb root on) and then push this package (download.tizen.org/snapshots/2.3-wearable/common/tizen-2.3-wearable_20140605.1/repos/tizen/armv7l/packages/armv7l/busybox-1.17.1-2.3.armv7l.rpm) to the device. Install the package (from a sdb shell on the watch) by typing "rpm -i busybox-1.17.1-2.3.armv7l.rpm".
This gets you VI (a CLI text editor) on the device. Very useful when editing xml and config files.
kylgore said:
To install busybox on a rooted gear 2, turn root on (sdb root on) and then push this package (download.tizen.org/snapshots/2.3-wearable/common/tizen-2.3-wearable_20140605.1/repos/tizen/armv7l/packages/armv7l/busybox-1.17.1-2.3.armv7l.rpm) to the device. Install the package (from a sdb shell on the watch) by typing "rpm -i busybox-1.17.1-2.3.armv7l.rpm".
This gets you VI (a CLI text editor) on the device. Very useful when editing xml and config files.
Click to expand...
Click to collapse
Awesome. Thanks jumping straight on it
This is very good. Thanks.
But I wonder; do we have a use for Busybox on the Gear 2 yet ?
Thx.
Hi, when I try any install, I get "installing package busybox-1.17.1-2.3.armv71 needs 188KB on the / filesystem"
I've tried putting the package on the "SD card" (storage for music, pictures etc.) but still nothing
You guys know any solutions?
Make sure root is on and that you mount the filesystem r/w (then be sure to mount r/o after)
sdb root on
sdb shell mount -o remount,rw /
for read-only------>
sdb shell mount -o remount,ro /
mrmrmrmr said:
This is very good. Thanks.
But I wonder; do we have a use for Busybox on the Gear 2 yet ?
Thx.
Click to expand...
Click to collapse
I'm serious: do we have a use for Busybox on Gear 2 ?
thx.
mrmrmrmr said:
I'm serious: do we have a use for Busybox on Gear 2 ?
thx.
Click to expand...
Click to collapse
I am just tinkering and exploring at this point. Other than that... no not really.
mrmrmrmr said:
I'm serious: do we have a use for Busybox on Gear 2 ?
thx.
Click to expand...
Click to collapse
I said this in my initial post. It provides VI. Without VI (or another text editor), there's no way to edit files on the device without a push/pull. Maybe you don't need that, but it's very helpful to me, and I assume to others.
Bash 4.3.46 for Android
Safe from Shellshock
All right guys im just going to keep this real nice and simple. Purpose of thread:
I compiled this binary from source and patched it get safe from ShellShock bug. It's compiled using arm-linux-gnueabihf toolchain from Linaro (CFLAGS = "-g -Ofast -static -pipe")
[*]You Should Now Have Bash
[*]To run it just type in termial "bash" or "bash --login" if you want to load /etc/profile
Download Link
Click The Text To Download
Flashable ZIP (thanks to Primokorn)
Flashable ZIP md5sum
Shellshock Test (thanks to ronaldteune)
Code:
busybox mount -o remount,rw /
busybox ln -s /system/xbin /bin
# download from browser https://shellshocker.net/shellshock_test.sh and place it in /data
busybox chmod 777 /data/shellshock_test.sh
/data/shellshock_test.sh
rm -f /data/shellshock_test.sh
busybox rm /bin
busybox mount -o remount,ro /
Thanks For Reading :good:
P.S.#1 Bash binary always be updated
P.S.#2 to mount system rw run from terminal
Code:
mount -o remount,rw /system
P.S.#3 if you don't have root put it in /data/local/bin and add it to your PATH
3lo0sh said:
Bash 4.3.30 for Android
Safe from Shellshock
All right guys im just going to keep this real nice and simple. Purpose of thread:
I compiled this binary from source and patched it get safe from ShellShock bug. It's compiled using arm-none-linux-gnueabi toolchain from Mentor Graphics
How To Use:
Download the binary and put it into /system/xbin ( you should mount your system part (r/w)
know run from terminal "chmod 777 /system/xbin/bash"
You Should Now Have Bash
To run it just type in termial "bash" or "bash --login" if you want to load /etc/profile
Download Link
Click The Text To Download
Always lastest Bash
Source Code
Thanks For Reading :good:
P.S. Bash binary always be updated
Click to expand...
Click to collapse
I'm trying to mount my /system using the following commands in Terminal Emulator:
su
mount -rw /system
When I try and type the chmod line above, I keep getting the message:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
What am I doing wrong to mount the /system file in order to perform the chmod command? I've also used ~/system, same result.....it's probably something super simple, but I'm flummoxed. Any assist would be appreciated, thanks!
Joshmccullough said:
I'm trying to mount my /system using the following commands in Terminal Emulator:
su
mount -rw /system
When I try and type the chmod line above, I keep getting the message:
Usage: mount [-r] [-w] [-o options] [-t type] device directory
What am I doing wrong to mount the /system file in order to perform the chmod command? I've also used ~/system, same result.....it's probably something super simple, but I'm flummoxed. Any assist would be appreciated, thanks!
Click to expand...
Click to collapse
The currect syntax is
mount -o remount,rw /system
?
It never even occurred to me that android is vulnerable!! I hope Google patches this in AOSP Android L!!
I have in /system/xbin an old bash file ( coming with the ROM), I must overwrite it or that's enough?
i hope the cm team will include this
nadejo said:
i hope the cm team will include this
Click to expand...
Click to collapse
I'm running CM 11 M11 and I have the bash file but it's different from this one in size.
hp420 said:
It never even occurred to me that android is vulnerable!! I hope Google patches this in AOSP Android L!!
Click to expand...
Click to collapse
Android will never be vulnerable (unless installed unpatched bash)
abidifethi said:
I have in /system/xbin an old bash file ( coming with the ROM), I must overwrite it or that's enough?
Click to expand...
Click to collapse
If the original bash is patched (no need) just copy it as bash-arm
If it's not patched (overwrite it)
nadejo said:
i hope the cm team will include this
Click to expand...
Click to collapse
I don't think they will include it
I think they will just patch theirs
@3lo0sh Getting an error like this 'unable to chmod 777 /system/xbin/bash: Read-only file system. Where i am wrong?
EDIT:- I'm sorry for that. After typing this 'mount -o remount,rw /system' command in terminal I am not getting the above error but when i issue bash command this error returns 'bash: precmd: command not found. Herewith attaching screenshot
abidifethi said:
I'm running CM 11 M11 and I have the bash file but it's different from this one in size.
Click to expand...
Click to collapse
Is it bigger ?
Trilochanaaya said:
Getting an error like this 'unable to chmod 777 /system/xbin/bash: Read-only file system.
Click to expand...
Click to collapse
dude did you read the OP
you must mount your system rw
just run from terminal
"mount -o remount,rw /system"
3lo0sh said:
Is it bigger ?
Click to expand...
Click to collapse
no t's smaller (about 417kb)
abidifethi said:
no t's smaller (about 417kb)
Click to expand...
Click to collapse
It's even include bash_history ??
Sadly it isn't import bash.bashrc by default ?
3lo0sh said:
It's even include bash_history ??
Sadly it isn't import bash.bashrc by default ?
Click to expand...
Click to collapse
So what's your advise?I overwrite it and "Maoulaha RABBI"
3lo0sh said:
dude did you read the OP
you must mount your system rw
just run from terminal
"mount -o remount,rw /system"
Click to expand...
Click to collapse
I did that pls see the post again! I have attached screenshot also.
abidifethi said:
So what's your advise?I overwrite it and "Maoulaha RABBI"
Click to expand...
Click to collapse
Overwrite it
It's smaller,lastest and patched
Trilochanaaya said:
I did that pls see the post again! I have attached screenshot also.
Click to expand...
Click to collapse
I think it's will not work in adb shell ? I am not developer so i think you should wait untel i search for patch to make it work ?
Trilochanaaya said:
I did that pls see the post again! I have attached screenshot also.
Click to expand...
Click to collapse
Pls se the picture
Add this function to your /etc/profile and do "bash --login"