Restore SMS/MMS db through CWM? - Samsung Galaxy Nexus

Is it possible to backup the SMS app data (all texts/picture messages) on the stock rom (4.1.1 JellyBean) by just copying the data at /data/data/com.android.telephony/ ? And then to restore just copy these back after the reflash or data wipe through adb in CWM?
I'm trying to do this with as little app installs as possible, and also trying to learn where things are stored and in what format, etc.

Just in case anyone else was interested in this, you can do this. You need these files:
/data/data/com.android.providers.telephony/databases/mmssms.db and mmssms.db-journal, and then if you have any pictures in the threads you need to also copy the /data/data/com.android.providers.telephony/app_parts folder as well. Permissions for mmssms.db should be 660 with the owner and group = radio. mmssms.db-journal should have 600 permissions and same group and owner = radio.

dmarmstr said:
Just in case anyone else was interested in this, you can do this. You need these files:
/data/data/com.android.providers.telephony/databases/mmssms.db and mmssms.db-journal, and then if you have any pictures in the threads you need to also copy the /data/data/com.android.providers.telephony/app_parts folder as well. Permissions for mmssms.db should be 660 with the owner and group = radio. mmssms.db-journal should have 600 permissions and same group and owner = radio.
Click to expand...
Click to collapse
I'm pretty sure I followed these directions to a 'T', when I open messenger it's not showing any conversations. I did everything through a script and copied it out to "sdcard", then just copied everything back in when i got done flashing a new rom....pretty straight forward concept, idk....just no dice. I can even view the .db file I restored in sqlite and it looks like everything's legit. what might I be missing?

Did you set permissions and groups correctly? Can you do a screen shot of the adb output?
I have attached a screen shot of what the permissions and group/owner should look like.
Here are the steps that I needed to do to get this to work:
adb push mmssms.db /data/mytemp
adb push mmssms.db-journal /data/mytemp
adb shell
<inside shell now in CWM so you have root>
mv data/mytemp/* data/data/com.android.providers.telephony/databases
chmod 600 data/data/com.android.providers.telephony/databases/mmssms.db-journal
chmod 660 data/data/com.android.providers.telephony/databases/mmssms.db
chgrp radio data/data/com.android.providers.telephony/databases/mmssms.db
chgrp radio data/data/com.android.providers.telephony/databases/mmssms.db-journal
chown radio data/data/com.android.providers.telephony/databases/mmssms.db
chown radio data/data/com.android.providers.telephony/databases/mmssms.db-journal
rm -rf data/mytemp
Also, if you do have app_parts to move, you need to do the same, but the chmod should do this:
chmod 666 data/data/com.android.providers.telephony/app_parts/*
chgrp radio data/data/com.android.providers.telephony/app_parts/*
chown radio data/data/com.android.providers.telephony/app_parts/*

Help
dmarmstr said:
Did you set permissions and groups correctly? Can you do a screen shot of the adb output?
I have attached a screen shot of what the permissions and group/owner should look like.
Here are the steps that I needed to do to get this to work:
adb push mmssms.db /data/mytemp
adb push mmssms.db-journal /data/mytemp
adb shell
<inside shell now in CWM so you have root>
mv data/mytemp/* data/data/com.android.providers.telephony/databases
chmod 600 data/data/com.android.providers.telephony/databases/mmssms.db-journal
chmod 660 data/data/com.android.providers.telephony/databases/mmssms.db
chgrp radio data/data/com.android.providers.telephony/databases/mmssms.db
chgrp radio data/data/com.android.providers.telephony/databases/mmssms.db-journal
chown radio data/data/com.android.providers.telephony/databases/mmssms.db
chown radio data/data/com.android.providers.telephony/databases/mmssms.db-journal
rm -rf data/mytemp
Also, if you do have app_parts to move, you need to do the same, but the chmod should do this:
chmod 666 data/data/com.android.providers.telephony/app_parts/*
chgrp radio data/data/com.android.providers.telephony/app_parts/*
chown radio data/data/com.android.providers.telephony/app_parts/*
Click to expand...
Click to collapse
When i do these steps the message app just tells me that it stopped working and needs to quit. Any thoughts?

Hi, I have a quick question. I got this file or whatever as a group thing from a friend. Looks wierd to me since there are regular apps or regular group text msgs that can send pictures to a group of friends. I was told it was just to let me see the pics of him fishing with his buddies and all that other file stuff looks...well fishy to me lol. Is he trying to track me or something?

Related

[THEME] NEW Hero skinning and theme AND Hero Cleanup

There was an older thread started by johnnylicious and I am going to be starting a new one that has the new files to skin/theme the lockscreen, phone, htccontacts, and Rosie. for the lockscreen the credits go to goldenarmz.
He created the batch file, I just edited the apk and the png files in there to make it work on the new roms.
BEFORE GOING ANY FARTHER, YOU NEED ADB OR YOU NEED TO KNOW HOW TO DROP INTO RECOVERY CONSOLE OR RUN COMMANDS IN TERMINAL. If you do not have it, stop, go to the stickies, get it going and then come back here. do not junk this up with questions that you can search for.
"what is adb" - part of the SDK. it is a huge help, check out the stickies to get it.
"how do i get adb" - go to the stickies
"can i run this without root" - no
"can i run this on cyanogen" - no, this is for hero roms
"will you make this for non-rooted phones" - no, not possible.
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
-INSTALL INSTRUCTIONS-
Transparent Rosie.apk with wallpapers
adb remount
adb shell rm -r /system/sd/app_s/Rosie.apk
adb push directory\Rosie.apk /system/sd/app_s/
Click to expand...
Click to collapse
Ophone Dialer.apk
adb remount
adb push directory\Phone.apk /system/sd/app_s/
Click to expand...
Click to collapse
HtcContacts.apk
adb remount
adb push directory\HtcContacts.apk /system/sd/app_s/
Click to expand...
Click to collapse
ANOTHER OPTION FOR OPHONE DIALER AND HTCCONTACTS
Launcher Themed to look like Hero
adb remount
adb push directory\Launcher.apk /system/sd/app_s/
Click to expand...
Click to collapse
you can either adb shell reboot after each file is pushed or you can wait after all three are pushed to shell reboot
adb shell reboot
Click to expand...
Click to collapse
transparent lockscreen
for the lockscreen- unzip and run the .bat file, follow the instructions.
-FOR THOSE NOT USING ADB FOLLOW THESE INSTRUCTIONS-
COURTESY OF NOLIMIT78​CHOOSE WHICH OPTION YOU ARE DOING, EITHER TERMINAL OR RECOVERY CONSOLE, AND THEN FOLLOW THE INSTRUCTIONS "FOR BOTH"​
This is to move the Rosie.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
This is for both
Code:
rm -r /system/sd/app_s/Rosie.apk #cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
This is to move the Phone.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
This is for both
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
This is to move the HtcContact.apk
This is for terminal
Code:
su
This is for Console
Code:
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
This is for both.
Code:
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
This is for Hero CleanUp
This is for terminal
Code:
su
This is for console
Code:
mount /system/sd
This is for both
Code:
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
DISCLAIMER- I take no responsibility for what happens to your phone, as the screenshots show, it works for me but that does not mean it will work for you. I will be glad to help if you run into problems.
These files have been tested are on working on the newest jacxhero builds from 1.8 on up so far. they should work on most of the other roms as well since they are all using jacxski newest kernel. enjoy.
credits to go goldenarmz for the lockscreen .bat file. if you seek credits just ask, i will be glad to give credit where necessary
-Clean up Hero-
Before doing any modifications to anything on ANY rom do a switchrom save or a nandroid backup.
Since I started running hero roms, i have come to realize that most of the stuff is junk and is not needed. Thus, I have removed many widgets, and many extra .apks that i do not use such as quickoffice, pdfviewer, java, flash, photo album widget, weather widget, music widget, contacts widget, messages widget, mail widgets. I am going to post the commands you can run in ADB to remove these items and speed up hero a little bit. rather than just do a .bat file, i will post them here so the n00bs can just copy and paste into ADB.
TO COPY AND PASTE INTO ADB, HIGHLIGHT THE LINE OF THE ITEM YOU WANT TO REMOVE, PRESS CTRL+C, GO TO THE CMD WINDOW RUNNING ADB AND CLICK IN THE WINDOW AND NOW PRESS ALT+SPACE ADN NOW "E" "P" (WITHOUT THE QUOTES) AND THE LINE SHOULD PASTE OVER. NOW PRESS ENTER AND IT SHOULD RUN.
COMMANDS TO REMOVE FILES
THESE COMMANDS ARE CASE SENSITIVE
adb remount
adb shell rm -r /system/sd/app_s/BizCardReader.apk
adb shell rm -r /system/sd/app_s/com.htc.MusicWidget.apk
adb shell rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
adb shell rm -r /system/sd/app_s/FlashPlayer.apk
adb shell rm -r /system/sd/app_s/HtcClockWidget.apk
adb shell rm -r /system/sd/app_s/htccontactwidgets.apk
adb shell rm -r /system/sd/app_s/htcmailwidgets.apk
adb shell rm -r /system/sd/app_s/htcmsgwidgets.apk
adb shell rm -r /system/sd/app_s/HtcPhotoWidget.apk
adb shell rm -r /system/sd/app_s/HTCSetupWizard.apk <-dont remove this one until you set up your phone!
adb shell rm -r /system/sd/app_s/Jbed.apk
adb shell rm -r /system/sd/app_s/Launcher.apk <- only delete this if you dont use it! This is what the secondary program looks like on Hero, basically cupcake looks.
adb shell rm -r /system/sd/app_s/PDFViewer.apk
adb shell rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
adb shell rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
When removing widgets and some applications, the screen may flash and do the loading screen, this is normal.
Hope this helps you guys running hero roms get things going a little speedier, once again any questions, just let me know, I am working on removing other things here and there to pick up speed, if I find things that can be removed I will post them here.
here is a video of my g1 running my phone as is with all these edits
Console/terminal?
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
akycia said:
Is it possible to run commands from recovery/terminal? if so, could you please post them in this thread as well? Looks very nice, and i would love to give this a try!
Click to expand...
Click to collapse
I'm at work right now, I will post terminal commands when I get home.
Docavelli said:
Im gonna try using terminal when i get a minute. Im sure it should work.
Thanks palosjr
Click to expand...
Click to collapse
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
palosjr said:
Sounds good. If you get to it before I do feel free to post the command here.i will then add them to the OP.
Click to expand...
Click to collapse
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
thanks for butting in. im home now. about to to add rosie and lock screen. i love the transparent look.
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
nolimit78 said:
Not trying to be rude or butt in.. but I had some time and typed it up
EDIT: And I like what you're doing here. Looking good!
EDIT:2 Did that lockscreen come from goldenarmZ? If it did you may want to give a shoutout. Alot of people have been getting all up in arms about stuff like that. Not being a ***** just keeping an eye out
Code:
su
mount /system/sd
mount /sdcard (if you put the HtcContacts.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/HtcContacts.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Phone.apk on the root of your SD Card)
#cp (which will copy) or mv (which will move)
cp /sdcard/Phone.apk /system/sd/app_s/
Code:
su
mount /system/sd
mount /sdcard (if you put the Rosie.apk on the root of your SD Card)
rm -r /system/sd/app_s/Rosie.apk
#cp (which will copy) or mv (which will move)
cp sdcard/Rosie.apk /system/sd/app_s/
Code:
su
mount /system/sd
rm -r /system/sd/app_s/BizCardReader.apk
rm -r /system/sd/app_s/com.htc.MusicWidget.apk
rm -r /system/sd/app_s/com.htc.WeatherWidget.apk
rm -r /system/sd/app_s/FlashPlayer.apk
rm -r /system/sd/app_s/HtcClockWidget.apk
rm -r /system/sd/app_s/htccontactwidgets.apk
rm -r /system/sd/app_s/htcmailwidgets.apk
rm -r /system/sd/app_s/htcmsgwidgets.apk
rm -r /system/sd/app_s/HtcPhotoWidget.apk
rm -r /system/sd/app_s/Jbed.apk
rm -r /system/sd/app_s/PDFViewer.apk
rm -r /system/sd/app_s/Quickoffice_HTC_1.0.1.apk
rm -r /system/sd/app_s/teeter.apk
Click to expand...
Click to collapse
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
palosjr said:
Thanks for loading those commands on here! Ill add them to the OP and give you the credit! Also the lockscreen did come from goldenarmZ, credit has been given both at the beginning and the end of the OP. I will edit it and make more obvious.
What else would you guys like to see skinned/themed? I am going to work with market and peep. Anything else in particular?
Click to expand...
Click to collapse
What a difficult question! Because cupcake wants to be hero.. but since we're on hero.. hmmmmmm
..for the lockscreen the credits go to goldenarmz.
Click to expand...
Click to collapse
well sir, thats just me not reading! lol
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
Did you get this to work on jacxheroski 2.1??
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
bigchi2000 said:
Did you get this to work on jacxheroski 2.1??
Click to expand...
Click to collapse
As far as I know it should work. The thing that was keeping these mods from working before was the kernel changes. I am going to keep up with these and when the kernels change i will edit the files accordingly. If you want to be safe, just do this
adb remount
adb pull /system/framework/com.htc.resources.apk
Click to expand...
Click to collapse
This will pull your stock lockscreen, now run the .bat file and let your phone reboot. If it reboots and you cant get past the htc screen do this
adb remount
Adb push (the com.htc.resources.apk file you pulled\com.htc.resources /system/sd/app_s/
Click to expand...
Click to collapse
This will get you back to where you were before. Hope this helps, but like i said it should work just fine.
harpreet1988 said:
I actually like the lockscreen from Drizzy's 1.4r1 rom. If you want that, just grab the com.htc.resources.apk from his build, push it to yours and...no more arc .
The Phone.apk does not change the theme of the phone app on the 1.5.1 rom(link in sig).
Click to expand...
Click to collapse
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
palosjr said:
I will make a different phone.apk and htccontacts.apk when i get home that will work with those builds. Its drizzys 1.5.1 right? Sorry im at work still and am trying to keep up with you guys on the fly. For a quicker response hit me up on gtalk - [email protected]
Click to expand...
Click to collapse
nope it's the MoDaCo 1.5.1 but Drizzy's 1.4
harpreet1988 said:
Gotten what to work? Phone.apk?
I've used 2.1 for a day, but then flashed back to 1.5.1. 1.5.1 is faster, at least in my experience it has been. But pushing Phone.apk to 1.5.1 ROM doesn't work.
Though pushing com.htc.resources.apk from Drizzy's 1.4r1 to 1.5.1 ROM got rid of the ARC in the lockscreen.
Click to expand...
Click to collapse
try this file for phone.apk ... i took the Phone.apk directly from that build and edited it. If it works i will do the HtcContacts.apk as well. follow same instructions as in the OP
1.5.1 Phone.apk
before pushing, rename the file to Phone.apk
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
palosjr said:
ok guys so after messing with peep.apk i got it to be white and transparent, but for some reason, as soon as the app actually starts and shows the tweets, it goes back to normal, i know it has something to do with .9.png and thats fine, i can mess with them, its just going to take more time. so in the meantime, what else would you guys like to see?
Click to expand...
Click to collapse
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
bigchi2000 said:
Just pushed the edits thru on jacxheroskiv2.1, everything but the lockscreen worked perfectly, did everything exactly as mentioned, don't know where I could've went wrong... the arc is still there, and when i personalize my phone it gives me the option of the transparent theme, i chose it and and my lockscreen is now a solid black picture with an arc over it...
pushed everything else first,
pulled my lockscreen to C:\
extracted zip to my sdcard, ran bat file...
files were copied and then i get the above mentioned.
Click to expand...
Click to collapse
dont zip the files to the sdcard, just zip them to the directory you downloaded them from, and then run the .bat, i think maybe when you put it on your sd it isnt finding the new files. also, if you push everything and then pull the lockscreen, there arent going to be any new images there because you pulled them off the phone.
Wassup palos? Nice to see you getting your hero theming on. Awesome work
Click to expand...
Click to collapse
whats going on bro, yea its nice to be able to know enough to give back now

Changing file permissions in adb shell

Ok so I:
adb shell
su
cd /system/
cd /app/
rm htcblahblahblah.apk
I get something about it being read only.
This is just an example, I think i actually have full privileges in system/app, but i was messing with something else and i didn't, so how do i change privileges ?
skydeaner said:
Ok so I:
adb shell
su
cd /system/
cd /app/
rm htcblahblahblah.apk
I get something about it being read only.
This is just an example, I think i actually have full privileges in system/app, but i was messing with something else and i didn't, so how do i change privileges ?
Click to expand...
Click to collapse
you need to mount /system as read/writeable. before you shell in, just use
adb remount
ok cool thanks tim
I get remount failed >.> Help? LOL
skydeaner said:
Ok so I:
adb shell
su
cd /system/
cd /app/
rm htcblahblahblah.apk
I get something about it being read only.
This is just an example, I think i actually have full privileges in system/app, but i was messing with something else and i didn't, so how do i change privileges ?
Click to expand...
Click to collapse
Tried chmod?
Example:
Code:
# chmod 0777 This.apk
# rm -f This.apk
EDIT: Also, try sysrw command, if enabled on your ROM or manually remount rw from within adb shell

Epic and upgrades

Is there a clockwork3 in an update.zip? When I do it manually, the screen locks on the Samsung screen.
I used oden with d18 and d28. Also do the CM7 nightlies work as well as they do on the evo!
Thanks so much.
Sent from my PC36100 using XDA App
Sent from my PC36100 using XDA App
Do you have root and a terminal app?
Yes sir
Sent from my PC36100 using XDA App
The first thing you need is the OneClickRootCWM3.zip. You need a few files out of it.
Below is a copy of the code from the run.bat that does all the clockwork stuff. We're going to be translating this into something you can do without a computer.
Code:
:Redirector
echo Installing clockworkmod redirector
adb push recovery /system/bin/recovery
adb push recoveryfiles /system/bin/recoveryfiles/
adb push recoveryres /system/bin/recoveryres/
adb shell busybox chmod -R 0755 /system/bin/recoveryfiles/*
adb shell busybox chmod -R 0755 /system/bin/recoveryres/*
adb shell chmod 0755 /system/bin/recovery
adb shell sync
goto:Clockwork
:Clockwork
echo Installing clockworkmod recovery...
adb push redbend_ua /data/local
adb shell chmod 755 /data/local/redbend_ua
adb push zImage /data/local/tmp/zImage
adb shell /data/local/redbend_ua restore /data/local/tmp/zImage /dev/block/bml8
If you paid attention to the code, you probably noticed which files we want. They are:
recovery
recoveryfiles/* (the whole folder)
recoveryres/* (the whole folder again)
redbend_ua
zImage
Put these files somewhere easy to find on your sdcard, such as a folder named cwm.
Now, open a terminal on your phone. We'll start with the redirect, just like the one-click does. If you put the files in a folder called cwm, then enter the lines below one at a time into the terminal.
Code:
remount rw
cp /sdcard/cwm/recovery /system/bin/
cp /sdcard/cwm/recoveryfiles /system/bin/
cp /sdcard/cwm/recoveryres /system/bin/
##Then you *may* have to copy the subfolder in recovery res by doing the following
cp /sdcard/cwm/recoveryres/* cp/system/bin/recoveryres/
busybox
chmod -R 0755 /system/bin/recoveryfiles/*
chmod -R 0755 /system/bin/recoveryres/*
exit (to exit busybox and drop back to toolbox)
chmod 0775 /system/bin/recovery
sync
I don't remember for sure, but your phone may reboot now. If it does, then enter "remount rw" again so that you have write access to the system. Now to finish installing cwm.
Code:
cp /sdcard/cwm/redbend_ua /data/local/
chmod 755 /data/local/redbend_ua
cp /sdcard/cwm/zImage /data/local/tmp/zImage
/data/local/redbend_ua restore /data/local/tmp/zImage /dev/block/bml8
That last line calls redbend_ua with the "restore" flag and puts "/data/local/tmp/zImage" into the place where the recovery belongs, or "/dev/block/bml8" The phone should reboot now and you will have your new recovery.
Then if you want to clean up the left over stuff
Code:
rm /data/local/redbend_ua
rm /data/local/tmp/zImage
Have fun.

[Q] restoring sms db not working via adb push

Hey guys,
I have been doing this for quiet a while i.e. whenever i install a new rom, I take these 4 files and backup them up like
Code:
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db
adb pull /data/data/com.android.providers.telephony/databases/mmssms.db-journal
adb pull /data/data/com.android.providers.telephony/databases/telephony.db
adb pull /data/data/com.android.providers.telephony/databases/telephony.db-journal
and then restore them as
Code:
adb push mmssms.db /data/data/com.android.providers.telephony/databases/
adb push mmssms.db-journal /data/data/com.android.providers.telephony/databases/
adb push telephony.db /data/data/com.android.providers.telephony/databases/
adb push telephony.db-journal /data/data/com.android.providers.telephony/databases/
It was working fine i.e. my all the previous SMS get restored. But last night when i tried this on 4.2.2 Official rom. It didn't work. the adb shell showed me that the file has been pushed (transferred byte etc information) but when i booted the phone and checked my sms, it was empty.
Can someone tell me whats going on here ?
P.S:
Don't ask why i am not using an app to backup and restore my sms. Long story. Right now i just want these files to replace my original files and restore my texts.
AW: [Q] restoring sms db not working via adb push
I hadn't the time to take a look at the update and the database layer. There is the possibility that Google changed the sqlite version or the schema of the mms database. If this would be the issue, restore through xmls is nearly the only way to solve it.
And you are sure that the database is valid and not corrupted?
Sent from my Nexus 7
-star- said:
I hadn't the time to take a look at the update and the database layer. There is the possibility that Google changed the sqlite version or the schema of the mms database. If this would be the issue, restore through xmls is nearly the only way to solve it.
And you are sure that the database is valid and not corrupted?
Sent from my Nexus 7
Click to expand...
Click to collapse
I haven't checked the databases yet since i didn't expect this to happen. I will spend time to compare the schema and perhaps some manual fix.
Meantime, are you aware of any utility which can export sms from mmssms.db to xml ?
so i did a little bit of google and some reading and finally i am able to restore my files. Probably the issue was with permissions. Here is what i do after copying files to the desired location
Code:
adb shell
cd /data/data/com.android.providers.telephony/databases/
chown 1001 mmssms.db
chown 1001 mmssms.db-journal
chown 1001 telephony.db-journal
chown 1001 telephony.db
chgrp 1001 mmssms.db
chgrp 1001 mmssms.db-journal
chgrp 1001 telephony.db-journal
chgrp 1001 telephony.db
chmod u=rw mmssms.db
chmod u=rw mmssms.db-journal
chmod u=rw telephony.db-journal
chmod u=rw telephony.db
chmod g=rw mmssms.db
chmod g=rw mmssms.db-journal
chmod g=rw telephony.db-journal
chmod g=rw telephony.db
chmod o= mmssms.db
chmod o= mmssms.db-journal
chmod o= telephony.db-journal
chmod o= telephony.db
reboot
Now the question is that I have never done this permission modification earlier. Why i have to do now ?
Thanks for above info, sorted my phone, for the record if you set the wrong permissions on those files it will put you in a boot loop (with CM9 at least). Phone starts up, Telephony force closes about 3 times then the device reboots.
Thanks heaps, fixed my problem too!!

[MOD] Remove CarrierIQ

The T-Mobile One M8 has CarrierIQ.
To remove it you need to be S-off or have a writable booted system. If you haven't made your system writable you can use TWRP's file manager to delete the files.
This also removes HTC logging apps too.
Use a file Manager like Solid Explorer or Root Explorer and go to and delete the following (Make a backup of all if you want to OTA later):
/system/app
QXDM2SD.apk
QXDM2SD.odex
HtcResetNotify.apk
HtcResetNotify.odex
Htcloglevel.apk
Htcloglevel.odex
Smith.apk
Smith.odex
Udove.apk
Udove.odex
/system/priv-app
IQ-tmobile-release-signed.apk
IQ-tmobile-release-signed.odex
IQToggle.signed.apk
IQToggle.signed.odex
MyBreeze.apk
MyBreeze.odex
/system/lib
system/lib/libiq_service_tmobile_2.2.so
/data/data
com.carrieriq.tmobile
com.carrieriq.tmobile.IQToggle
You can use an app like https://play.google.com/store/apps/details?id=com.lookout.carrieriqdetector to check if CarrierIQ is gone (You can use it to check that it's there also).
Viper ROM has it removed
Sent from my HTC One_M8 using Tapatalk
Not everybody wants to flash a custom ROM.
Sent from my HTC One_M8 using Tapatalk
Thank you for posting this, I never knew about carrier iq until now.
Sent from my HTC One_M8 using Tapatalk
What's it for?
Nexus 7
fmedrano1977 said:
What's it for?
Nexus 7
Click to expand...
Click to collapse
http://en.wikipedia.org/wiki/CarrierIQ
Thank You!
SmiLey497 said:
The T-Mobile One M8 has CarrierIQ.
To remove it you need to be S-off or have a writable booted system. If you don't I think you can use TWRP's file manager to delete it.
Use a file Manager like Solid Explorer or Root Explorer and go to and delete the following:
/system/app
QXDM2SD.apk
QXDM2SD.odex
HtcResetNotify.apk
HtcResetNotify.odex
Htcloglevel.apk
Htcloglevel.odex
Smith.apk
Smith.odex
/system/priv-app
IQ-tmobile-release-signed.apk
IQ-tmobile-release-signed.odex
IQToggle.signed.apk
IQToggle.signed.odex
/system/lib
system/lib/libiq_service_tmobile_2.2.so
/data/data
com.carrieriq.tmobile
com.carrieriq.tmobile.IQToggle
You can use an app like https://play.google.com/store/apps/details?id=com.lookout.carrieriqdetector to check if it's gone (You can use it to check that it's there also).
Click to expand...
Click to collapse
Thank you! I was having trouble finding the iq it is much different from the lg g2 as I used system tuner to disable carrier iq and was having trouble doing the same on the m8! thanks again!
Technowhiteboi said:
Thank you! I was having trouble finding the iq it is much different from the lg g2 as I used system tuner to disable carrier iq and was having trouble doing the same on the m8! thanks again!
Click to expand...
Click to collapse
NP
Will this work if I don't remove the .odex files? I don't see the .odex files using solid explorer or fx file explorer root.
Love u smiley.U had a great contribution for the g2 now this.
---------- Post added at 03:34 PM ---------- Previous post was at 03:21 PM ----------
How do u like it m8 from the g2
erapmicks said:
Love u smiley.U had a great contribution for the g2 now this.
---------- Post added at 03:34 PM ---------- Previous post was at 03:21 PM ----------
How do u like it m8 from the g2
Click to expand...
Click to collapse
Been pretty good so far.
Thank you! I didn't have the ODEX files, but following your guide removed carrierIQ from my M8.
Worked for me
SmiLey497 said:
The T-Mobile One M8 has CarrierIQ.
To remove it you need to be S-off or have a writable booted system. If you haven't made your system writable you can use TWRP's file manager to delete the files...
Click to expand...
Click to collapse
Thanks for this guide. I was able to use it to remove CarrierIQ from the 4.4.3 T-Mobile version (used the RUU to get a fresh, stock setup first).
At first I tried just renaming the files (adding a "z" to the front of every name), but the phone still loaded some of the services even though the name was different. I ended up doing a chmod 0000 to all the files to stop them from loading.
I did everything from the TWRP file manager because I wanted to make sure I could reverse all my actions in case it failed to boot up.
Good stuff. Thanks OP!
I found I had to restore the CarrierIQ files in order to take an OTA update. To make it easier, I threw these together in order to enable and disable CarrierIQ easily...
It needs to run as root in a shell on the phone. The mount command makes the system partition writable. You should reboot after this for the changes to take effect (and for the system partition to go back to read only).
I take no responsibility. If you don't know what you are doing, don't use these.
Code:
# Disable CarrierIQ
mount -o rw,remount -t ext4 /dev/block/mmcblk0p45 /system
chmod 000 /system/app/HtcLogLevel.apk
chmod 000 /system/app/HtcLogLevel.odex
chmod 000 /system/app/HtcResetNotify.apk
chmod 000 /system/app/HtcResetNotify.odex
chmod 000 /system/app/QXDM2SD.apk
chmod 000 /system/app/QXDM2SD.odex
chmod 000 /system/app/Smith.apk
chmod 000 /system/app/Smith.odex
chmod 000 /system/app/UDove.apk
chmod 000 /system/app/UDove.odex
chmod 000 /system/priv-app/IQ-tmobile-release-unsigned.signed.apk
chmod 000 /system/priv-app/IQ-tmobile-release-unsigned.signed.odex
chmod 000 /system/priv-app/IQToggle_v1.1.3.signed.apk
chmod 000 /system/priv-app/IQToggle_v1.1.3.signed.odex
chmod 000 /system/priv-app/MyBreeze.apk
chmod 000 /system/priv-app/MyBreeze.odex
chmod 000 /system/lib/libiq_service_tmobile_2.2.so
chmod 000 /data/data/com.carrieriq.tmobile
chmod 000 /data/data/com.carrieriq.tmobile.IQToggle
Code:
# Enable CarrierIQ
mount -o rw,remount -t ext4 /dev/block/mmcblk0p45 /system
chmod 644 /system/app/HtcLogLevel.apk
chmod 644 /system/app/HtcLogLevel.odex
chmod 644 /system/app/HtcResetNotify.apk
chmod 644 /system/app/HtcResetNotify.odex
chmod 644 /system/app/QXDM2SD.apk
chmod 644 /system/app/QXDM2SD.odex
chmod 644 /system/app/Smith.apk
chmod 644 /system/app/Smith.odex
chmod 644 /system/app/UDove.apk
chmod 644 /system/app/UDove.odex
chmod 644 /system/priv-app/IQ-tmobile-release-unsigned.signed.apk
chmod 644 /system/priv-app/IQ-tmobile-release-unsigned.signed.odex
chmod 644 /system/priv-app/IQToggle_v1.1.3.signed.apk
chmod 644 /system/priv-app/IQToggle_v1.1.3.signed.odex
chmod 644 /system/priv-app/MyBreeze.apk
chmod 644 /system/priv-app/MyBreeze.odex
chmod 644 /system/lib/libiq_service_tmobile_2.2.so
chmod 644 /data/data/com.carrieriq.tmobile
chmod 644 /data/data/com.carrieriq.tmobile.IQToggle
So if I had busybox installed, I could run these as shell scripts from a root terminal on the phone? [Obviously I would chmod 744 or 755 them first.]
syntropic said:
So if I had busybox installed, I could run these as shell scripts from a root terminal on the phone? [Obviously I would chmod 744 or 755 them first.]
Click to expand...
Click to collapse
I believe that is correct. I'm pretty sure you will need to be S-off in order to write to the system partition.
I use ADB with a root prompt, so you will need to do a su command at the start if you are using this in a terminal.
FreydNot said:
I believe that is correct. I'm pretty sure you will need to be S-off in order to write to the system partition.
I use ADB with a root prompt, so you will need to do a su command at the start if you are using this in a terminal.
Click to expand...
Click to collapse
I would probably opt for using ADB as well, but it would be nice to set up two shortcuts on the desktop that execute these scripts. Something that would su - && run the script, and then back again.
But thanks a lot for sharing them!
anyone know where I can get these files back so I can apply the OTA updates? thanx
Hey... Strangely, I was about to run a bash script with all the chmod commands above. However, I decided to download a few Play store apps that detect it. Each app said I did not have it installed.
I checked the files in the list above and confirmed they were there. Anyone have any idea why CarrierIQ is not present?
About the only thing I have done outside of this which may affect it is that I had disabled the my-t-mobile app since it has that option to monitor your "experience". Since I wanted to avoid this, I just disabled the app.
Could this app be tied to CarrierIQ's functionality??
And then I found this:
http://support.t-mobile.com/docs/DOC-10849
Which seems to confirm my theory above. Of course, as cool as T-Mobile can be, I don't necessarily trust them.
But still, has anyone used an app that has alerted them to the presence of Carrier IQ, while also opting out of allowing T-Mobile to collect diagnostics (which is in the My T-Mobile or My Account app)?
Please let me know.

Categories

Resources