[Q] Pushing Scores and stuff to phone. - Desire Q&A, Help & Troubleshooting

Hey y'all!
Got myself into trouble today when I was trying to change to manu kernel.
Was sittning on GV3.3 and phone got into bootloop. Silly as I am, I didnt make a nandroid backup before. But afterwards i got into recovery and made one. The i recovered from a really old nandroidbackup. So right now im back in april appwise and scorewise(fruit ninja, the three angrybirds etc.)
Have updated all my apps and is once again back at gv3.3.
I have extracted the data file from my nandroidbackup i made after i got into bootloop and now want to push back the appdata/saves to some of my apps.
How do i do it? Never pushed anything before so im at total newbie on that one.
What do i need, can do it on my pc or my macbook.
If anyone could help me it would mean the world to me!
Kind Regards
HÃ¥kan

you can either adb push them whilst in recovery if you are s-on or you can use root explorer and put them in thbe right place with s-off.
Theres an adb and fastboot faq in my signature.
Dont bother with the fastboot stuff as that wont help you here.

Managed to get some things to work. Like Angry Birds and Angry Birds Rio. Angry Birds Seasons refuses to use the files that seems to have been pushed.
Also sms/mms pushing do nothing.
Been trying this :
adb push c:\backup\mmssms.db /data/com.android.providers.telephony/databases/
+
adb push c:\backup\.(all flies from app_parts is then in that folder) /data/com.android.telephony/app_parts)
Do i forget something? Have put my desire in recovery mode with update.zip and it mounts fine from my computer. Do I have to mount it in the telephone as well?

I would do this Whilst in recovery from a terminal:
Code:
adb shell
mount /data
exit
adb push c:\backup\mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db

managed to get angry birds seasons score now.
But not my texts. Must i do something to restore them or will they be there automaticly when i reboot the phone?
This time i tried to rm the mmssms.db and all the files in app_parts. Then pushed the backups to their place. When I use ls i. /data/data/com.android.providers.telephony/databases/ and /app_parts/ all the files i pushed there are at their place. But still nothing shows up in the phone

can you push the entire contents of com.android.providers.telephony? After removing the entire contents of whats there?

when i pull it, it still there it seems. Pull only copies it?
So how do i remove a whole folder? And how do i push the folder back?

CountZer0 said:
when i pull it, it still there it seems. Pull only copies it?
So how do i remove a whole folder? And how do i push the folder back?
Click to expand...
Click to collapse
No dont pull it.
Code:
adb shell
mount /data
cd /data/data
rm /com.android.providers.telephony/*

Wooah! Somehow that didnt work, so i added -rf after rm. And it deleted the whole data folder. Trying to push the full content of data to /data/data/ know. Rebooting...

Didnt work. Lots of apps were FC. Recovered from nandroid. And tried it again. Was succesful in removing the /com.android.providers.telephony/ from phone. Adb pushed the other one i have on my computer but still no luck. Rom runs without problem but sms/mms is still empty when i check.
You sure i dont have to activate them or something? When i notepad the mmssms.db it sure is all of my texts. And now the whole folder is replaced with the one from my computer... Strange strange.

It should work. Odd. What about wipe of dalvik cache?
Sent from my HTC Desire using XDA App

Will try it, ill be back

Got dammit! Didnt work that either.

I honestly don't know why this isn't working. It works for others. What about trying it straight from a factory reset?
Sent from my HTC Desire using XDA App

Its not that I have to do something with chown radio.radio or chmod -r 775 or something like that from shell?

Related

Moving Files From SD Card To Internal Memory Possible?

Hey guys, I love this site and the outpour of support. This is really the first issue I've run into with my evo thus far.
I want to move some files I made into ringtones from my SD card into the internal memory in the location of the stock ringer sounds. I want to do this so if I ever take out or swap SD cards I never have to worry about losing my ringers. I have been using the astro file browser but it apparently does not let me move or copy and paste the file(s) where I want them.
Is there any way to do this?
thanks a lot!
Also follow up question. My SD Card always mounts when I plug my phone into my PC. Is there a way to stop this? even when I put the phone to charge only, the SD card shows up in Win7.
You need to have root and NAND unlock if you want to do anything like that, but it is possible.
If you have NAND unlocked, you can do it with your phone running normally, but I would use ADB in your particular situation. You can also use something like Root Explorer, but it costs money.
If you do not have NAND unlocked, but you have toast's root, you must go into recovery first.
If you know how to use ADB and you have full root (w/ NAND unlock), you should be able to use a command line in Windows to this effect.
For ringtones:
Code:
adb shell cat /sdcard/ringtone.mp3 > /system/media/audio/ringtones/
For notification sounds:
Code:
adb shell cat /sdcard/notification.mp3 > /system/media/audio/notifications/
For the files on your SD.
Otherwise you can push from the Windows itself. In command line, navigate to the area in Windows where you have the sounds and do something like this:
Code:
adb push ringtone.mp3 /system/media/audio/ringtones/
or
Code:
adb push notification.mp3 /system/media/audio/notifications/
If you do not have NAND unlocked, but you have root and a custom recovery, go into the custom recovery, then apply this command.
Code:
adb shell mount /dev/block/mtblock4 /system
After that, the commands above should work normally.
Is it possible to copy the 8GB SD files to your computer, insert a 16GB into the phone, and them paste the files from the computer to the new SD card? Will I have to re-root?
I'm currently running Damage Control (full root) along with other root tweaks.
@Jykinturah- Won't he need to mount the file system first?
dang, I was hoping to do it without rooting. I was seriously contemplating rooting my phone before 2.2 was announced to be coming out "soon" but I am a little hesitant to take the plunge knowing that we should all have froyo soon. I may still consider this or may try and do some more research. Thanks for the help though! It is greatly appreciated.
GumboChief said:
@Jykinturah- Won't he need to mount the file system first?
Click to expand...
Click to collapse
If you are booted into the OS, no. If you are in recovery, yes.
Code:
adb shell mount /dev/block/mtblock4 /system
Not usually a great idea to write to system when booted up, but if its just a ringtone or something, meh.
rockdrummersrock said:
dang, I was hoping to do it without rooting. I was seriously contemplating rooting my phone before 2.2 was announced to be coming out "soon" but I am a little hesitant to take the plunge knowing that we should all have froyo soon. I may still consider this or may try and do some more research. Thanks for the help though! It is greatly appreciated.
Click to expand...
Click to collapse
I am not the best person to ask about whether you MUST be rooted to do this, but I think you need to.
Not sure if you can write to /system in recovery without being rooted.

[Q] Deleted Rosie.apk and would like it back

Hi All,
I wanted rid of the surplus bumf on my DHD so I installed Visionary+ and Titanium Backup to do so.
the usuall stuff went, Stocks, Facebook and then I saw something called com.HTC.Rosie.
It wasn't until I wanted to add a widget and some Googling that I found out what I did.
I managed to find the Rosie.apk file on my DHD and have tried various methods to reinstall it but to no avail.
I doubt anyone apart from me has been so fullish but can you point me in the right direction in how to get it reinstalled ??
xlcrITSolutions said:
Hi All,
I wanted rid of the surplus bumf on my DHD so I installed Visionary+ and Titanium Backup to do so.
the usuall stuff went, Stocks, Facebook and then I saw something called com.HTC.Rosie.
It wasn't until I wanted to add a widget and some Googling that I found out what I did.
I managed to find the Rosie.apk file on my DHD and have tried various methods to reinstall it but to no avail.
I doubt anyone apart from me has been so fullish but can you point me in the right direction in how to get it reinstalled ??
Click to expand...
Click to collapse
Rosie is the sence launcher lol ok try this, put your device into recovery mode and connect it to your pc, copy rosie.apk to the same folder as adb (tools or platform-tools). Now use adb and type the following commands:
Adb shell
Mount /system
Exit
Adb push rosie.apk /system/app/
Exit
Now wipe the dalvik cache and reboot.
Sent from my Desire HD using Tapatalk
Cheers AndroHero, thanks for your time
Done and dusted.

[Q] Phone isn't reading sd card

First off, apologies if:
-someone has posted something exactly like this
-this is the wrong section
-this is easy to fix and I'm just oblivious to it.
I'll try to keep it short: I had the official 2.2 ROM on my phone. I tried rooting, and when I got to "/data/local/flash_image misc /data/local/mtd0.img", it said that there was no more available memory. I tried uninstalling some things, but no-go. I tried a factory reset, which is where I'm thinking there was a problem. The phone restarted, but then looped the "T-Mobile Mytouch 3G Slide" screen. I left it alone, thinking it needed to get everything in order. An hour later, and no change, I pulled the battery, waited and tried to turn the phone on. It looped again. I then tried without the memory card, which worked. Or so I thought, cause now my phone won't acknowledge the sd card. I've reset, factory reset, flashed ESPRIMG with a goldcard, tried re-updating with the 2.2 RUU, different sd cards, but nothing is working. Basically, is my phone effed, or is there some small sliver of hope that I'll have my Slide up and running normally again?
do you have another Sdcard to try?
ilostchild said:
do you have another Sdcard to try?
Click to expand...
Click to collapse
As I've stated, I've tried other sd cards. It's like the phone doesn't realise that there's an sd card in it at all.
austinbrown92 said:
As I've stated, I've tried other sd cards. It's like the phone doesn't realise that there's an sd card in it at all.
Click to expand...
Click to collapse
sorry its late and tired, but aside that,
Phone is able to boot? if so can you mount the phone?,
also if it does boot check the sdcard prongs, my wife sdcard what wacky and did everything by flashing and buying new sdcards and what i did was slightly lifted them and place the sdcard back in and it was reading it again,
Yeah, it boots. Now when you say mount, you mean in adb or something? Cause when the phone is connected via USB, my only options are Charge and Sync. Either way, when I try adb devices, nothing shows.
Try booting it up and got into settings>storage and try to mount your sd card in there.
jimczyz said:
Try booting it up and got into settings>storage and try to mount your sd card in there.
Click to expand...
Click to collapse
There's no mount option. I dunno if it matters, but when I reboot or factory reset the phone, the "removed SD card" notification is in my status bar. I've tried selecting it, but nothing happens. I'm at a loss here, and, being the pessimist that I am, I'm thinking it's a lost cause. Should anyone have a working solution, you'd have my undying gratitude. My Slide holds a special place, since it was the first Android phone that I rooted, and subsequently led me to learn as much as I can about Android. So please, any help at all is appreciated.
there should be more options like charge sync, usb mode, and something else, as well settings and unmount then click format sdcard, and see if it will remount by itself
ilostchild said:
there should be more options like charge sync, usb mode, and something else, as well settings and unmount then click format sdcard, and see if it will remount by itself
Click to expand...
Click to collapse
Tried. When I go into settings>connect to pc, my only choices are charge or sync.
Same thing in settings>sd card and storage. even with different memory cards inserted, the choice to mount, unmount, or format are greyed out.
I gave up today and called tmobile. My replacement phone will be here in a couple of days. Thanks to those who tried.
hey man hows it going i prob got to you to late but check it out rooting the offical 2.2 rom is a pretty advanced task when i got my mytouch slide it had 2.1 could not stand it so i rooted istalled cm 7 and clockwork mod and turned s-off life was sweet lol then out came offical 2.2 from tmob i was stupdily curious so i flashed it bam root gone s-off gone clockwork the whole shabang. and i didnt like it after i had it so after alot of adb code and programs i found out how to root the offical 2.2 easly without gold cards and that junk you do not want to use a gold card if at all possible when you get your new phone if you want it rooted and all email me email in profile i will be glad to get you going cause if your new phone has 2.2 on it you have to gain temperary abd shell root using superoneclick and then pick up the original way of rooting as listed in xda fourum but lmk glad to help this prob dont make sense anyway lol. and your phone would not reconize sd card because when you typed those commands you changed the directory of the sd card path in shell you could have changed the path back but i just read you got new phone now
ok, got the replacement, tried rooting again, and this is what i got:
C:\Users\Austin>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
SH12VPS03245 device
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>adb push flash_image /data/local
cannot stat 'flash_image': No such file or directory
C:\Users\Austin>cd\
C:\>cd c:\androidsdk\platform-tools\
c:\androidsdk\platform-tools>adb push flash_image /data/local
938 KB/s (76044 bytes in 0.079s)
c:\androidsdk\platform-tools>adb push mtd0.img /data/local
1332 KB/s (655360 bytes in 0.480s)
c:\androidsdk\platform-tools>adb shell
# cd /data/local
cd /data/local
# chmod 04755 *
chmod 04755 *
# /data/local/flash_image misc /data/local/mtd0.img
/data/local/flash_image misc /data/local/mtd0.img
mtd: read error at 0x00000000 (Out of memory)
mtd: read error at 0x00020000 (Out of memory)
#
im scared to do anything else, since this is what happened last time. what should i do next?
ok, i took the phone from dish drive to charge only, then it went through. am i safe now?

Can't write to sdcard

Okay, I'm freaking out a little bit.
The one app I use more than any other is Doggcatcher. It been my most-used app since my first G1. Well, I recently flashed the AOKP Jelly Bean ROM on my VZW GN, and now it seems that Doggcatcher can no longer save anything to the sdcard directory (either sdcard or storage/sdcard0).
What did I do wrong? I had Jelly Bean working on my phone for a while, but my GN's charge port broke and I received a replacement. I believe I restored a nandroid backup of my previous Jelly Bean install (which was a different ROM), and that's when my problems started. When I installed the AOKP ROM I wiped everything, but I still can't get Doggcatcher to save a single file. It seems other apps have trouble storing anything on the phone too, which is clearly a huge problem.
So what do I do? Please help! I'll offer any information I can.
Seems like permission is bit messed up. Have you don't anything that might've changed the permission?
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
kyokeun1234 said:
Seems like permission is bit messed up. Have you don't anything that might've changed the permission?
Swyped on my Galaxy Nexus running AOKP with Franco Kernel, overclocked to 1.4GHz
Click to expand...
Click to collapse
Certainly nothing on purpose. I just flashed these ROMs in the way I would have thought I was supposed to. I loaded ClockworkMod and flashed the zip file from AOKP.
I really have no idea what I might have done or what to do now. I'm completely fine with wiping my phone, I just need to know how to start over!
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
My friend, you are a genius. THANK YOU SO DAMN MUCH!! Seriously, you rock like crazy.
I followed your instructions (I had to learn how to get into the adb shell but that wasn't too tough), restarted the phone, and immediately tried downloading a podcast episode. I then pumped my fist in the air when I saw it successfully downloading.
Again, thank you so much. You rock.
Just passing on info from others...
danger-rat said:
Just passing on info from others...
Click to expand...
Click to collapse
Still, you helped, solved my problem, and fixed a problem for me in a week that's been filled with nothing BUT problems in other parts of my life, so I can't tell you how much I appreciate that.
FYI, I also posted your answer, along with a link to this thread, on the Doggcatcher forums where I also asked for help on this issue, when I thought it was just a problem with that app. I quoted your answer and gave you the credit, in case there's ever a future breakdown in the link I used
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
thanks, you saved me too
johnz said:
thanks, you saved me too
Click to expand...
Click to collapse
Dude, this thread was dead, all you needed to do was press the thanks button, no need to revive this.
Sent from my i9250
danger-rat said:
If you have any directories/files that you can't modify or delete, then boot into CWM recovery, plug in the USB cable, go into adb shell. Also make sure that /data is mounted in the CWM mounts menu. Then:
cd /data/media
chown -R media_rw.media_rw *
Click to expand...
Click to collapse
thanks so much for this!
I was struggeling with this problem, because I couldn't create backups anymore.
before I executed your command I had a look at the current permissions for the files.. some folders were owned by root:root instead of media_rw:media_rw. No wonder apps couldn't create files in those folders..
Too bad this was only shown in the shell when in recovery. While the phone was in Android the permissions showed correctly as root:sdcard_rw .. that's why it never occured to me this was a real problem.

[HELP] cannot read or write to internal storage (/sdcard)

The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
P.S I tired to connect a flash drive so I could flash 4.1.1 (as I cannot copy anything to the internal storage) and see if that would fix it but TWRP won't recognize any flash drives and I'm on the latest official version of TWRP
DarkN3ss61 said:
The title pretty much explains it. I cannot see any of my personal internal files or create an, e.g when it try take a screenshot it won't work as it does not have access to the internal folders.
Even when I boot into TWRP I cannot see all my files. I know all my files are there still as my storage still only has 10gb free even though the file Explorer shows no files visible.
It seems like no app at all has access.
What can I do to get access to my files again, I have some really important stuff I have got in the last few days that I have not backed up yet. As long as I can get some sort of backup of the files I will be happy to reset the phone.
Ok so what I have done since it working fine was.
Copy 2 files from my computer to my phone
Reboot into TWRP and then force shut the phone down after about 1 minute as I was not patient enough (turns out with f2fs you need to wait a bit longer)
After that, booting into the systems had no read or write access in the sdcard folder which is where all the personal data is stored.
Hopefully what I have said has made sense, if you need any other information just ask
Click to expand...
Click to collapse
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
Thanks for the suggestion, I'm not home for another 10 hours so I will try that when I get home. So if anyone has any other suggestions let me know
pvramk said:
If your phone is visible in adb try this command
adb pull /sdcard
This should transfer all the contents from internal storage to your computer into the same folder where your adb tools program is saved.
Click to expand...
Click to collapse
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
DarkN3ss61 said:
This doesnt work.
B:\Backups\OnePlus 3\>adb pull -p /sdcard
remote object '/sdcard' not a file or directory
Any other ideas?
Click to expand...
Click to collapse
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
pvramk said:
I'm not sure about the -p
Did you try without this flag?
you can try adb pull /sdcard/ .
is the phone visible in adb devices ?
Click to expand...
Click to collapse
I tried with and without the flag, also yes the phone is visible in ADB.
I have given up and wiped phone completely, flashed latest version of TWRP, then 4.1.1 and magisk 12. No problems so far, apart from not having my files that were not backed up.
So you can consider this problem abandoned

Categories

Resources