How To: Ringtones in System - Droid X General

ROOT REQUIRED
This is useful for keeping your custom sounds when you have your SD Card mounted... Or missing!
Make sure you backup your phone first, because bricking your phone is super unhappy face. (This shouldn't brick your phone, but people can screw anything up...)
You can put files in the notifications folder for notifications, or ringtones folder for ringtones. The examples shown are for notifications.
The name that is listed in your menu on your phone is the Title attribute in your mp3.
ADB Method
Connect your phone and fire up ADB.
Issue the following commands:
adb devices - Verify connectivity
adb push C:/mynotification.mp3 /system/media/audio/notifications/mynotification.mp3
adb shell
stop
start - This is my reboot method. Much faster than using the reboot command.
Root Explorer Method
Place files on your SD Card using your desired method.
Navigate to your new sound, long press, and select copy.
Navigate to /system/media/audio/notifications and mount the system as r/w.
Long press and paste the file.
Remount the system as r/o.
Reboot phone using desired method.

Related

[Guide] Adding Files To SD Card While In Android[No Reboot Required]

I haven't seen a guide on this, so I will make one for you guys. I'm sure many of you have noticed that if you copy a file from your PC to the SD card while in Android, then use the file browser, the file doesn't show up unless you reboot. This is an annoyance when installing apps, so I present to you this guide.
1. Download and extract the Android SDK.
2. In the "android-sdk-windows" open up SDK Setup, and install the USB driver package. [thanks memin1857]
3. Open up the "android-sdk-windows/tools" folder, this is the folder you will be putting your files into, in order to copy them to the SD card.
4. Open a command prompt, and cd into the directory containing the folder in Step 3 (IE: If you extracted the folder to C:\ in step 1, you would do
Code:
cd C:\android-sdk-windows\tools
5. Type ADB Shell
6. Type su to get root access
7. Type mount -o remount rw /sdcard to mount the sdcard
8. Type exit to exit the shell
9. Type adb push nameoffile.apk /sdcard replace nameoffile.apk with the filename of whatever you want to copy
10. Success!
You can also copy folders this way, simply type the folder name instead of the file name, in place of nameoffile.apk. Just tested this with several files, and it works perfectly
YAY!!! Waited for a while allready! Thanks!
good job brother!
wow...this is so complicated...can i suggest another way?which is use an app from market called websharing file/media....this is fastest way for me to transfer files...just connect bot your pc and device to the same connection(wifi).Then you can just transfer files from your pc internet browser...there is no need to install any desktop server client...just direct transfer...speedy too...1 mp3 song just about 5or 6 seconds...if you want download this app in full version and free...i think you can find it on www.4shared.com
Easy version
Droid Explorer works from adb too.
http://de.codeplex.com/
It uses the same mechanism (adb) with Android SDK but has a visual interface.
BTW if you will use android sdk only, you don't need to install all sdk packages (takes huge amount of time), you only need usb drivers.
(Droid Explorer has drivers included)
Or u can jus add the files thru USB connection n use Dev Tools's media scanner.
Sent from my HTC HD2 running DarkStone HD2Froyo v1
Good
Nice, iiNFAMOUS CHRiS
What is the difference between this and Auto Mount which is on the Android Market?
nzxtneo said:
What is the difference between this and Auto Mount which is on the Android Market?
Click to expand...
Click to collapse
When you use Auto Mount, it mounts the USB drive so you can drag/drop files onto the SD card, but if you do that method, when you try to find the file on your phone, Android won't see it unless you restart your phone.
iiNFAMOUS CHRiS said:
When you use Auto Mount, it mounts the USB drive so you can drag/drop files onto the SD card, but if you do that method, when you try to find the file on your phone, Android won't see it unless you restart your phone.
Click to expand...
Click to collapse
Weird, maybe it depends on the build but I have never had to restart the device after I move files over with Auto Mount.
I just remove the usb cable from the HD2 and I got a notification on the top left that says "preparing SD card" and after that I am good to go.

[Q] Root acces problem with Hosts and bootanimation file

I rooted my phone with Unrevoked 3.21 and successful, but when I try to adjust a file in my phone (eg hosts and bootanimation) I don't seem to have any success.
In adb I can push it to the phone, but when I reboot my phone I get nothing. I tried to push the bootanimation to various maps that I found that have the bootanimation, but when I reboot I don't get the new animation to load.
When I try to replace the files in root explorer I always get a "not enough space" error and my phone reboots.
I don't know what I did wrong because I got the SU working but I can't get any file from the sd card or my pc on my phone successful.
This was the reason I rooted my phone because I want to edit my hosts file for no ads and a new bootanimation.
I added my bootanimation and the hosts file if anybody can check if maybe that’s the problem. (just remove the zip from the hosts file and open with notepad, I couldn't get it uploaded else)
Reboot recovery, then go partitions/mount system and ./adb push.
Edit : Just noticed.. you need a path.
There you go :
Code:
./adb push hosts /system/etc/hosts
./adb push bootanimation.zip /system/customize/resource/bootanimation.zip
./adb push bootanimation.zip /system/media/bootanimation.zip
Assuming you have those 2 files in your adb path of course..
I uploaded a screen from my cmd window, because I went in recovery and did the adb thing and I can see that my pc did something. But when I rebooted my phone I still get the same old white HTC bootanimation.
Edit: I got it to work with this, thanks for the help madwifi
power off
plug in usb cable
hold volume down+power
volume down once to select recovery and then hit power
now you should be at the clockworkmod recovery menu
select "partitions menu"
select "mount /system"
on my computer, click start, run, and then type "cmd" and hit enter to get a dos prompt
(For noobs like me I found this site: http://www.jonamerica.com/technology/howto-root-the-htc-droid-incredible/#bloat) where I found some extra information
Is there a way to change the Splash screen like with this flasher? http://forum.xda-developers.com/showthread.php?t=794638 on the Wildfire? because it has a lower resolution.
Not until we get the s-off patch from alpha rev
thanks for the information, I didn't know that

ADB vs. Root Explorer vs. Terminal on device

With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
snovvman said:
With certain files, SteelH describes using Root Explorer as "like trying to swap the engine of a car while it's running"
I experienced this as I tried to copy back a modified services.jar file with Root Explorer. I ended up using ADB and it worked fine.
Question 1: I did this while the phone was running/OS loaded, but ADB copy method worked while Root Explorer didn't. Why? Does ADB have higher authority in some way?
Question 2: How about using a terminal window on the phone to copy/replace files (if a computer is not handy)? Does it yield the same function/result as Root Explorer or ADB?
Question 3: If I simply want to back up the file, say services.jar or framework.apk, to be copied to SD, can I use Root Explorer for that?
Thanks.
Click to expand...
Click to collapse
i can't answer all of these authoritatively, but i will say
-i find adb to be the easiest way to do ANY modifications, as long as you know just a handful of commands and remember to remount. also remember to pull anything you are getting ready to mess with, just in case you bork it up. takes a lot less time to push an unmodified file than it does to do a complete restore. especially if you forgot to backup, lol
-if you have a terminal app mounted with rw privileges, you can move whatever you want wherever you want. however, referring back to my last point, adb is easier. i find that trying to type type type things out on a dinky little keyboard is a bigger pain in my butt than using my full size one, especially when i can use cut/paste from the intertubes.
-i think rooted explorere shouldn't have a problem copying a file from /system/ or /data/ to some folder on your sdcard
Thank you for the information. I just copied a file with terminal (on phone) and Root Explorer. Interesting thing: using the CP command, the file that was copied onto the SD showed the current date. The file that was copied using RE has the original date.

How to prevent update/block update

I've been reading a couple of threads on preventing OTA updates and can't seem to figure it out. I'm more interested in the sqlite & ADB method from this thread (http://forum.xda-developers.com/showthread.php?t=933291). I read this thread about 10 times over and over but can't seem to get it to work. Can someone that's knowledgeable please put instructions that an idiot like me can follow?
I have a rooted NC with firmware 1.2.
1. I've downloaded sqlite3 and nookcolor-easyADB to my PC.
2. I've extracted nookcolor-easyADB and install the install.vbs file.
3. Connected my NC to my PC via USB cable
4. My PC recognizes my NC and the microSD card as a different drive.
i followed the following steps from the thread and nothing works:
***************************************************************
Attached is a working sqlite3 binary.
Copy it to /system/bin
(I transfered it to my SD, then used rootexplorer (mount R/W) to copy into /system/bin))
you will now be able to edit sqlite databases on the nook itself.
--------------------------------------------------------------------------------
Attached Files sqlite3.7z (11.9 KB, 56 views)
--------------------------------------------------------------------------------
In your terminal:
$ adb pull /data/data/com.bn.devicemanager/databases/devicemanager.db devicemanager.db
$ sqlite3 devicemanager.db
sqlite> update registry set value='manual' where name='com.bn.device.fota.mode';
sqlite> .q
$ adb push devicemanager.db /data/data/com.bn.devicemanager/databases/devicemanager.db
$ adb reboot
Congrats Your NC is now permanently blocked from any future BN OTA auto updates.
No more build.prop spoof hacks for each release (sideload only),,,,,, yada yada
***************************************************************
Questions:
should I create a directory in my PC (C:/windows/system/bin) and copy sqlite3 to the /bin folder or copy sqlite3 to my microSD card and insert it into my NC?
Please be very elementary in your answers (as you were explaining it to your 6 year old). Thanks in advance.
There is a free version of SQLite with graphic user interface that allows you to change the fota field from "auto" to "manual". Do a search of title only for "block" and you should find it.
crazyasian2 said:
I've been reading a couple of threads on preventing OTA updates and can't seem to figure it out. I'm more interested in the sqlite & ADB method from this thread (http://forum.xda-developers.com/showthread.php?t=933291). I read this thread about 10 times over and over but can't seem to get it to work. Can someone that's knowledgeable please put instructions that an idiot like me can follow?
I have a rooted NC with firmware 1.2.
1. I've downloaded sqlite3 and nookcolor-easyADB to my PC.
2. I've extracted nookcolor-easyADB and install the install.vbs file.
3. Connected my NC to my PC via USB cable
4. My PC recognizes my NC and the microSD card as a different drive.
i followed the following steps from the thread and nothing works:
***************************************************************
Attached is a working sqlite3 binary.
Copy it to /system/bin
(I transfered it to my SD, then used rootexplorer (mount R/W) to copy into /system/bin))
you will now be able to edit sqlite databases on the nook itself.
--------------------------------------------------------------------------------
Attached Files sqlite3.7z (11.9 KB, 56 views)
--------------------------------------------------------------------------------
In your terminal:
$ adb pull /data/data/com.bn.devicemanager/databases/devicemanager.db devicemanager.db
$ sqlite3 devicemanager.db
sqlite> update registry set value='manual' where name='com.bn.device.fota.mode';
sqlite> .q
$ adb push devicemanager.db /data/data/com.bn.devicemanager/databases/devicemanager.db
$ adb reboot
Congrats Your NC is now permanently blocked from any future BN OTA auto updates.
No more build.prop spoof hacks for each release (sideload only),,,,,, yada yada
***************************************************************
Questions:
should I create a directory in my PC (C:/windows/system/bin) and copy sqlite3 to the /bin folder or copy sqlite3 to my microSD card and insert it into my NC?
Please be very elementary in your answers (as you were explaining it to your 6 year old). Thanks in advance.
Click to expand...
Click to collapse
1. Go here and get the sqllite browser and throw it in a directory on your pc.
2. Use adb and pull the database file from your nook to your pc (like the instructions you quoted).
3. Use the sqllite browser and make the changes and save them.
4. Use adb and push the file back to your nook.
5. Reboot your nook
6. Enjoy being free from updates.
Here's the idiot's guide that worked for me:
1. Go download the following 2 files:
nookcolor-easyADB.zip
sqlitebrowser_200_b1_win.zip
2. Extract “nookcolor-easyADB.zip
this will create a file “.android” in the following directory C:/Users/your_user_account
extract “sqlitebrowser_200_b1_win.zip” anywhere
3. Connect your NC to your PC via USB port.
4. Open the command prompt (it’s in your program, accessories directory)
You should have a prompt that looks like this – C:\Users\your_user_name>
5. Type the following command:
adb pull /data/data/com.bn.devicemanager/databases/devicemanager.db devicemanager.db
This command will go grab the file “devicemanager.db” from your NC and place it in the following location: C:/Users/your_user_account on your PC.
6. Now go to the directory where you extracted “sqlitebrowser_200_b1_win.zip” and double click on the file “SQLite Database Browser 2.0 b1.exe”. This will run the browser that will allow you to open the file “devicemanager.db” and edit it.
7. In the browser click file/open database. It should automatically take you to where the file “devicemanager.db” is located. Select that file.
8. Click on the “Browse Data” tab.
9. Click on the “Table:” pull down menu and click on “registry’.
10. If you look at line 7, all the way to the right is the “value” column it should say “auto”.
11. Double click on “auto” and another window will pop up.
12. Change the word “auto” to “manual”.
13. Click on “Apply changes” and close the window.
14. Click on “save” button on the top left and close the browser.
15. Go back to the command prompt and type the following:
adb push devicemanager.db /data/data/com.bn.devicemanager/databases/devicemanager.db
This command will push the file “devicemanager.db” from your PC back to your NC with the updated file.
16. Type the following command to reboot your NC:
adb reboot
DONE!
I would think the simplest method, using materials you should be halfway familiar with from rooting, is to install ClockworkMod Recovery to your NC. I know it will stop the update from installing, but I'm not sure if the update would quit trying to install.
The simplest ways to get CWM on your NC are:
1) get the ROM Manager app and "Flash ClockworkMod Recovery"
2) if you have a CM7 sdcard, it probably already has ROM Manager, and flashing from there will also install CWM to your internal recovery.
Taosaur said:
I would think the simplest method, using materials you should be halfway familiar with from rooting, is to install ClockworkMod Recovery to your NC. I know it will stop the update from installing, but I'm not sure if the update would quit trying to install.
The simplest ways to get CWM on your NC are:
1) get the ROM Manager app and "Flash ClockworkMod Recovery"
2) if you have a CM7 sdcard, it probably already has ROM Manager, and flashing from there will also install CWM to your internal recovery.
Click to expand...
Click to collapse
This is my thinking as well. B&N tried pushing the update to me and a coworker yesterday. CWR blocked it as expected. Rebooted and all is well. As you mentioned, time will tell if B&N will continue to try to push v1.3 to me. If it becomes obnoxious, I may go this route.

Cracked screen- no touch. ADB unauthorized - how to pull nandroid backup?

I sadly dropped my nexus 4 on hard tiles yesterday face down and the whole front cracked everywhere! The phone still turns on, I can copy internal storage off fine, but since the touchscreen doesn't work anymore I'm having trouble with getting system data off e.g. sms.
I've managed to get non touch CWM installed, made a nandroid, but now I can't copy the damn thing off! ADB gives me unauthorised for every command, and obviously I can't use the phone to authorise my PC. Am I now essentially screwed? Been googling for ages and can't find a way round the fact I can't use ADB or force my phone to authorise my PC without using the screen.
Any other ideas would be massively appreciated. The phone is rooted, CM10.2, and luckily usb debugging is enabled.
Cheers!!
You said you can copy internal storage right? so why not pull the nandroid from /clockworkmod/backup?
Sent from my Nexus 4 using Tapatalk 4
I do not use CWM, but I do use TWRP and it allow me to access to the /data and /sdcard partition just fine, /system is off limit though. I don't know where your nandroid is backed up in, but I assume its in /sdcard.
Try this: Flash TWRP in fastboot mode, then press the volume button either up or down twice, then press Power to access the recovery. Then on the main menu of TWRP, you can do adb commands right away.
I can then simply back up my whole /sdcard partition by: adb pull /sdcard/ C:\backup
Or backup the all the apps data: adb pull /data/data/ C:\backup
Thank you both for the advice. I've tried using adb in recovery, but it says: remote object '/sdcard' is not a file or directory.
If I type adb devices, I get my phone ID along with 'recovery' next to as expected.
Any ideas?
Thanks.
EDIT: Ignore this, just added a / after /sdcard and now its pulling ok. Thanks so much!
I was typing this up before I read your edit:
If you don't know where certain files are, you can type "adb shell" to enter the phone itself, there you can look at the phone directory structure and find where your files are located.
Use the cd and ls commands to navigate in the phone: http://afrodita.rcub.bg.ac.rs/~ivica/nlm/part1/cd_ls.html
Once you're done, type "exit" to get out of adb shell. Then you can use the "adb pull" command to copy the files.

Categories

Resources