Getting notification files deleted from gear - Samsung Gear 2 Neo

In pushing the notif .ogg files to the gear 2 neo, ive apparently put duplicates on it (one with an upper case first letter and another with a lower case first letter) which apparently has confused the gear as when i select either, neither work. All the others i put on it seem to have worked just fine, but the one duplicated file is borked. Ive done the Odin tar.md5 flash file to try to get it back to out-of-the-box, but it doesnt fully restore it. I am trying to remove the borked files, but i dont know the sdb commands to do so. Any help would be appreciated!!

nvm, its the same as adb commands *facepalm*
sdb shell rm -r /opt/share/settings/Alerts/<filename>.ogg

So the SDB commands to remove all the not working .ogg files worked, but when I put one specific file back on and select it for the notif tone, it says (null) as the selected notif tone. Other custom tones work fine and the file in question works on my computer also the file transfer process shows successful in the SDB terminal. Still at a loss about this one specific .ogg file I've even renamed the file to no avail

ok, so i fully realize that im talking to myself here, but im posting this stuff so if anyone else was wondering the same thing, they might get the answers they seek here. I have found that the way to see the files in a certain folder in the watch's OS is with another modified ADB command. The command is "adb shell ls /path/to/directory/with/notification/files" but with the method of connecting to the watch being SDB, it'd actually be "sdb shell ls /path/to/directory/with/notification/files" but of course replacing the "/path/to/directory/with/notification/files" with the actual directory path

well your thread helped me figure out how to delete mp3 files off my Gear S Alerts folder but I can't figure out how to delete a file with 2 words in it. I never put a dash so I can't figure out how to delete "AOL IM.mp3"...keeps seeing as two files and wont delete.
Any ideas?
EDIT: Of course I finally figured out after posting this. Just needed to put in ' xxxx ' quote.

Related

Push mp3 folders to phone...?

I have been messing around with ADB and pushing and I was wondering if there is a way to push an entire folder over to the phone. I think I could figure it out, but if someone knows how to do this that would be awesome, I searched but everything came up as ADB for noobs or ADB for dummies and just showed basic ADB commands... anyone know the command for pushing mp3 to sd card... also, i dont have a Music folder on my sd card anymore... if i push directly to SD without the directory, will it be created?
Thanks in advance guys
There might be another way but I just plug a USB cable into the phone, drag down the USB icon in the notification area, press the mount button and then make a new folder called Music and put my mp3's into it.
But like I said, there's a lot of ways to skin a cat and this is only one.
If your looking for some automated way, through a batch file or script, well... that'd be useful too.
i have done that too. but time and time again when i do this, especially after i rooted my phone, it says unable to read sd card and i have to either wipe or re-format my card. i was hoping that ADB would help this from happening...
The command to copy is cp -a so you would navigate to whatever location that folder is in and type
cp -a xxxxxx /sdcard/xxxxxx
That should do it
borodin1 said:
The command to copy is cp -a so you would navigate to whatever location that folder is in and type
cp -a xxxxxx /sdcard/xxxxxx
That should do it
Click to expand...
Click to collapse
Nah, that command is for copying a folder from one location on the phone to another. With adb you need to place the folder of music (we'll call that folder Music in this demo) in the same folder as your adb.exe. Then press start and run cmd, then:
cd location of adb
adb push Music /sdcard/Music/
exit
That will push everything within your Music folder to another folder on the sdcard called Music. Then you can just listen to your music through the Music application. Good luck.
h.nocturna said:
Nah, that command is for copying a folder from one location on the phone to another. With adb you need to place the folder of music (we'll call that folder Music in this demo) in the same folder as your adb.exe. Then press start and run cmd, then:
cd location of adb
adb push Music /sdcard/Music/
exit
That will push everything within your Music folder to another folder on the sdcard called Music. Then you can just listen to your music through the Music application. Good luck.
Click to expand...
Click to collapse
I'm ok with copying it. I am not sure if pushing something leaves a copy in original location, but then again, I just drag and drop files on my sdcard and if I need to do anything else with them I do it from shell.
Your way work though, may be even easier.
borodin1 said:
I'm ok with copying it. I am not sure if pushing something leaves a copy in original location, but then again, I just drag and drop files on my sdcard and if I need to do anything else with them I do it from shell.
Your way work though, may be even easier.
Click to expand...
Click to collapse
I thought that he wanted to know how to transfer files from the computer to the sdcard without mounting since mounting corrupted his sdcard...
h.nocturna said:
I thought that he wanted to know how to transfer files from the computer to the sdcard without mounting since mounting corrupted his sdcard...
Click to expand...
Click to collapse
You're correct.
adb push it is. Thank you for pointing this out.

Remove unwanted ringtones?

Dear all experts...
how can i remove all the ringtones/alert/alarms files from
/system/media/audio/ringtones
/system/media/audio/alarms
/system/media/audio/notifications
and put in a list of my own choice selected from different ROMS...
chris
-------
cm5071
chris4chelsea said:
Dear all experts...
how can i remove all the ringtones/alert/alarms files from
/system/media/audio/ringtones
/system/media/audio/alarms
/system/media/audio/notifications
and put in a list of my own choice selected from different ROMS...
chris
-------
cm5071
Click to expand...
Click to collapse
you can put your own alerts, ringtones, etc by creating separate folders of the same names on the sd card (i.e. /sdcard/ringtones, /sdcard/alarms, /sdcard/notifications) and put whatever files you want in there.
to remove the others, you'd need root access, and depending on the read/write properties, you could shell in, may have to chmod the file properties, then do a rm command.
why bother? just put the sound files you want in folders on the sdcard and use them. much less fuss. just a longer list of files to look through for you to choose, but that's it.
timothydonohue said:
you can put your own alerts, ringtones, etc by creating separate folders of the same names on the sd card (i.e. /sdcard/ringtones, /sdcard/alarms, /sdcard/notifications) and put whatever files you want in there.
to remove the others, you'd need root access, and depending on the read/write properties, you could shell in, may have to chmod the file properties, then do a rm command.
why bother? just put the sound files you want in folders on the sdcard and use them. much less fuss. just a longer list of files to look through for you to choose, but that's it.
Click to expand...
Click to collapse
cool.. tks alot. u r rite, a very long list, thats y i m hoping to just have a list that i wanted. seems quite troublesome to rm those files... =)
Oppps, i need help. i have tried to put my alarms files on the SD card. i went into alarms and noticed newly added tones. i also noticed i have duplicated some tones. i deleted them but after that the tones are still visible under the alarm list. i tried to reboot my phone, but the duplicates are still there, how can i get rid of them... pls help
tks in advance...
problem solved... i see duplicate coz i also have another set of tones under another folder on the SD card...
android seems to be able to find all alarms/notifications/ringtones folder located anywhere on the SD
if you have and know how to use adb, you could try and do (from your sdk/tools folder)
adb remount
adb shell
then, at the # prompts
rm /system/media/alarms/*.*
do the same with the ringtones and notifications folders
that should shorten your list
although, if you ever want to use them again, you may want to start your experience with (before the adb remount command)
adb pull /system/media
that should lift the ringtones, notifications, and alarms folders and put backups in your tools folder

ADB help...

OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Demented71 said:
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
Click to expand...
Click to collapse
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
bobbylx said:
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
Click to expand...
Click to collapse
My backed up framework file was on my PC. The first one I was trying to get to was on my phone, in a folder called Battery Mod, which I could not get into because ADB kept saying wrong substitution or something?
Either way, I was able to get it done, so I learned something new again.
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Click to expand...
Click to collapse
That makes sense, it may not let you Push to the file system while it's in use.
As for 2 names, do you mean from a windows command box or in the android command line. Windows you just type it as is. Linux is a little more picky, I usually try to remove spaces from directory names so I don't run into any problems with that. In linux a backslash works, ie, cd /sdcard/Battery\ Mod
Not sure if it will work on our phones.

How to push files via adb?

Can someone please point me to a place that explains how to push files via adb? I have Android SDK installed and I know how to do a screen shot using Dalvik Debug Monitor using the ddms.bat file. But other than that, I don't know what I am doing. lol Also, I am not rooted.
I know it can't be that difficult, any help is appreciated! Thanks!
Holy crap, apparently I pushed a new bootanimation via adb and really had no idea what I was doing. lol
So I guess my question is different now.
First, I put the bootanimation.zip file in the platform-tools folder.
Then I launched a CMD prompt and then I went into my Android/Android-SDK\platform-tools\
then I typed in "adb push bootanimation.zip /data/local" and I wasn't even sure it did anything.
So my question now is what made it push the bootanimation file to my xoom? Did it have something to do with the file being in the platform-tools folder, along with the adb.exe file?
I don't really get the question... It pushed the file to the Xoom because you told it to. A better question might be why it did not push the file during your previous attempts, but I cannot answer that without knowing what you tried. Anyways, I just wanted to chime in that since you are already familiar with DDMS, right under the screenshot option is a file explorer that you can use to push files.
edit: actually, I think it may not be possible to push to subfolders in /data using ddms since it cannot see them
sangreal06 said:
I don't really get the question... It pushed the file to the Xoom because you told it to. A better question might be why it did not push the file during your previous attempts, but I cannot answer that without knowing what you tried. Anyways, I just wanted to chime in that since you are already familiar with DDMS, right under the screenshot option is a file explorer that you can use to push files.
edit: actually, I think it may not be possible to push to subfolders in /data using ddms since it cannot see them
Click to expand...
Click to collapse
Yea, I didn't do it in ddms because I did not see the local folder. I did it through the CMD prompt. But my question is how does it know where to push the files by just typing "adb push bootanimation.zip /data/local"? No where in that does it say push it to the xoom. When using adb, does it automatically try to push the file to whatever Android is plugged up? How does it know where and what to push it on? That was my question.
Best place I've found to start is http://developer.android.com/guide/developing/tools/adb.html which gives an overview along with some good details on some of the subcommands. Beyond that, use your favorite search engine.
To answer your question more directly, though, if only one Android device is connected, ADB can figure out how to talk with it. With two or more you'll need to specify the device (which you can get from "adb devices").
HTH
short/y said:
Best place I've found to start is http://developer.android.com/guide/developing/tools/adb.html which gives an overview along with some good details on some of the subcommands. Beyond that, use your favorite search engine.
To answer your question more directly, though, if only one Android device is connected, ADB can figure out how to talk with it. With two or more you'll need to specify the device (which you can get from "adb devices").
HTH
Click to expand...
Click to collapse
Ahh.. cool. I did google it to see what came up and learned a little but nothing ever explained how adb knew what or where to push the file.
But just knowing that it does know, then the rest is pretty easy to figure out. I can follow and type commands well... even though I might not know what they do (which is scary, huh?). lol
Edit: Thanks for the link also.
I got this from XDA somewhere so credit to them:
A:android-sdk-windows installed
B: (on your phone) go to menu>settings>applications>developement and make sure usb debugging is checked.
C: the file you are pushing must be placed in the tools folder of adb so if you are pushing file "build.prop.txt" this needs to be downloaded/copy and pasted in C:\android-sdk-windows\tools
1: go to run and type cmd (or just open your command prompt)
2: cd C:\android-sdk-windows\tools
3: adb remount
4: adb devices *if everything is set up right this should output a serial number*
5: adb push FFFFFFF.FFF /#####/###### *i hope my notes help here you need to put the file name in for the F(s) and in the pound signs you put the destination on the devices example adb push build.prop.txt /system/bin
6. repeat step 3 for multiple files
7. adb reboot this is how you finish

How to add custom notifications- folder is read-only...

Hi gang, trying to add custom notification sounds to my S10+ (AT&T, US). When I try to copy files into /system/media/audio/notifications, I get "Permission Denied". Trying this with ADB on my PC yields "Read-Only File System". (The "su" command also doesn't seem to work from the adb shell on my PC). Thinking this should be a simple task, but it's befuddling me. How can I copy some files into /system/media/audio/notifications ??
(the stock sounds on this AT&T device are totally lame!!!)
Thanks!
Try storage/emulated/0
thanks!
my /storage/emulated is empty - no 0.
I wonder if my installing an airwatch container had something to do with this? I had already moved my custom ringtone into /system/media/audio/ringtones, and now that one seems to be locked down also...

Categories

Resources