location of mmssms.db - Nexus One General

registered just to find some help with this...
just got a N1, used to have a G1. both rooted, and i'm trying to migrate my mmss and smss to the N1. copied the mmssms.db out of the G1 and saved it to the sdcard. placing it in the N1's /data/data/com.android.providers.telephony/databases/mmssms.db (via Better Terminal Emulator Pro) does not restore the texts. could this be a permissions issue or did they move the mms and sms database?

How does this fit in the Development Section? I am not trying to be rude... but...

why you dont try an sms backup ap?

Solution
This is because you do not have busybox installed yet (cyan will be posting later). You can push it via adb using the following command:
Code:
adb push c:\mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db
Reboot your N1 after you push to see your messages. Worked like a charm for me.

seraph1024 said:
How does this fit in the Development Section? I am not trying to be rude... but...
Click to expand...
Click to collapse
The problem is that there is no Q&A section and it makes more sense that the General section since it will take a dev's solution to fix the issue. A Q&A section needs to be added.

seraph1024 said:
How does this fit in the Development Section? I am not trying to be rude... but...
Click to expand...
Click to collapse
sorry, i figured this was more tech-y to go in the General section.
also, i'm able to copy the mmssms.db to the location, but after restarting my messaging app crashes (both the default and handcent).
permissions on my mmssms.db file after the copy are:
----rwxr-x 1 0 0 (size) (date) mmssms.db
i'm able to chmod 777 this file and restart and see it, but i assume that the "correct" way to fix this would be to chown to whoever is user "1001" and group "1001" ("1001" because that's the group and owner of the other file in this folder)
quick unix question i guess: how can i find out what "1001" refers to, as "chown 1001 mmssms.db" gives me a "No such user '1001'"?

also, it looks like the MMSs (which were what i was actually trying to save) don't get restored. causes a force close in Messaging and a "Handcent cannot display this" in Handcent.
in case anyone wanted to know. i guess that single database doesn't keep the actual images.

niiiick said:
also, it looks like the MMSs (which were what i was actually trying to save) don't get restored. causes a force close in Messaging and a "Handcent cannot display this" in Handcent.
in case anyone wanted to know. i guess that single database doesn't keep the actual images.
Click to expand...
Click to collapse
The other easy solution is MyBackup Pro. If you don't want to shell out the $5 you can get a 30 trial of the full version (all features work) for free in the Market. It will backup and restore both SMSes and MMSes. Hope this helps.

one of the comments says that even with the 30 day trial you can't restore to a different phone, it has to be to the same phone the backup is from. plus i'd really just kinda like to learn

Hmm...the main reason I wanted to root the phone was to be able to push my old mmssms.db file onto the new Nexus, interesting that it doesn't work.
The db file is just a sqlite database, I wonder if maybe the database schema has changed slightly, hopefully I can pull the one from the Nexus today at work and compare it to my backed up G1 db...

Swervo said:
Hmm...the main reason I wanted to root the phone was to be able to push my old mmssms.db file onto the new Nexus, interesting that it doesn't work.
The db file is just a sqlite database, I wonder if maybe the database schema has changed slightly, hopefully I can pull the one from the Nexus today at work and compare it to my backed up G1 db...
Click to expand...
Click to collapse
actually it was my mistake, it works, just so far not the MMS part. copy the mmssms.db to your new phone, restart. i had to change the permissions to 777 (because i don't yet know who to chown to). is the mmssms.db supposed to hold the actual images too? do you know how that's supposed to work?

AndroidAppCritic said:
The other easy solution is MyBackup Pro. If you don't want to shell out the $5 you can get a 30 trial of the full version (all features work) for free in the Market. It will backup and restore both SMSes and MMSes. Hope this helps.
Click to expand...
Click to collapse
thanks for the suggestions. one of the comments says that restored MMS's can't be viewed.
this is the only problem i'm running into doing it manually. i just need to know where the mms's are kept in the system or why they won't read from mmssms.db...

ok, if anyone cares, i've successfully manually moved my SMSes and MMSes from my rooted G1 to my rooted N1.
had to use ADB.
used superuser'd terminal in the G1 to copy the following to the sdcard (though i suppose you could ADB pull them off the G1)
/data/data/com.android.providers.telephony/databases/mmssms.db
/data/data/com.android.providers.telephony/app_parts/*
copied them to my comp
then
adb push c:\mmssms.db /data/data/com.android.providers.telephony/databases/mmssms.db
adb push c:\app_parts /data/data/com.android.providers.telephony/app_parts/
or somethin like that. basically move mmssms.db and all the files in app_parts to the nexus one, same directory.
if you don't do it through adb, then you might have some permission errors and the messaging apps would force close. just chmod 777 all of these files (and the app_parts folder) unless you know who to chmod to (cuz i didn't) and it should work. let me know if you do it that way, cuz i haven't tested it.
edit: after this, sending an MMS would force close, and trying to download one would fail. back in the adb shell:
cd /data/data/com.android.providers.telephony/
chown radio app_parts
chmod 771 app_parts
i suspect that this is because i had created the app_parts folder via ADB instead of letting the system create one when the first mms is sent/received on an N1. either way, afaik all mmses work now.

I missed your reply to this, doh!
[Removing bad instructions]
The method I posted works great, as long as you never try to send any texts. Once I sent some, they ended up in random order in the thread, then the phone started spewing multiple copies of the same message, at least 15 or so to my wife in about 30 seconds, I had to go into airplane mode to stop them, and then just restored from a nandroid backup. And I don't have unlimited texts...oops...

Related

Can we try EVO's new root method for 1.49?

Ran across this thread in the evo section, seeing how we also have htc's flash lite. It made me hopeful of attaining root. Ive tried every card mentioned as being successful on three different systems:-(
http://forum.xda-developers.com/showthread.php?t=718889
bowtieduece said:
Ran across this thread in the evo section, seeing how we also have htc's flash lite. It made me hopeful of attaining root. Ive tried every card mentioned as being successful on three different systems:-(
http://forum.xda-developers.com/showthread.php?t=718889
Click to expand...
Click to collapse
Even though I didn't really think it would work, I gave it a shot anyway. Naturally, it was unsuccessful. The Eris take FOREVER to load that website, and it never triggers the shell script to ask for a reload, therefore permission is denied for the second part when you reboot with adb shell.
Interesting exploit, though. I wonder if there is some way to modify it for the Eris. Maybe you could contact the devs.
Really, nobody else is interested in this?
MyFixofAndroid said:
Yep that's what I expected. Yea there's gotta be someone here that can do the changes to the EVO files so they work with Eris, and upload the proper files to file sites and have us downloading in no time, so we can get root finally. Yes please anyone here up and willing
Click to expand...
Click to collapse
Toastcfh used to do some work for the Eris someone may want to start there since he provided what looks to be a pretty main part of the EVO root.
sickbox said:
Toastcfh used to do some work for the Eris someone may want to start there since he provided what looks to be a pretty main part of the EVO root.
Click to expand...
Click to collapse
Thanks for the tip. I sent him a PM. Will report back when I find something.
Anyone with an Eris can help out - rooted or unrooted.
I looked at those scripts last night - what seems like the necessary conditions for the beginning of the exploit (part1) are:
(1) there is a directory read/write/traversal permission security flaw in the data area for flash-lite;
(2) apparently, when flash-lite is running it must have root privilege at a moment when it performs a file "chmod" operation
So, an unprivileged user goes in, and makes a symlink (at the correct moment in time) in flash-lite's data area that points to a mtd partition - moments later, flash-lite "chmods" what it thinks is a file in it's data area, but instead, it is chmod'ing the target of a symlink - the normally protected mtd partition.
This allows use of flash_image to write whatever is wanted to that partition - even as an unprivileged user.
It should be easy enough for someone with Linux/Unix command line scripting experience to test to see if these conditions prevail on the Eris. You don't even need to be root - make your symlink point to something in /data/local if you are worried about something bad happening to a mtd partition. Chmod it initially to 600, and see if it get's changed by flash-lite when (and if) you drop the symlink into place.
I would do it, but I've got to go buy all the parts for ( & build) a new computer (no dev station as of last night ).
bftb0
bftb0 said:
Anyone with an Eris can help out - rooted or unrooted.
bftb0
Click to expand...
Click to collapse
Thank you for the detailed explanation. I'll have a look at the scripts, though it's more about learning new things for me, as this exceeds the current state of my unix knowledge. Hope others with more immediate knowledge of the subject will take a crack at it.
The shell script points to sharedobjects within /data/data/com.android.browser/flashlite, but sharedobjects, nor any folder for that matter, exists within that directory on the Eris. Is there a different place this could point; does the Eris have the same objects stored in a different location?
UPDATE: I'm searching my filesystem on my Eris right now to find it. I will report back later with results.
Also If we find a sharedobjects folder (and the right one) then we can point the script in the proper direction and have root very soon.
MyFixofAndroid said:
Maybe the "sharedobjects" folder and other missing folders are really on the Eris, one of you should look for them. Use ASTRO or a different file manager and search most of the whole filesystem and see if you can find "sharedobjects" on your Erises.
In the meantime I'll try the same thing. Maybe there's a search engine for the file system of the Eris that you can get in the Android Market, that would do the trick. A file and/or folder search engine.
If we find a sharedobjects folder (and the right one) then we can point the script in the proper direction and have root very soon.
Click to expand...
Click to collapse
From what I see (and this may just be my eris), the directory probably does exist but we can't touch it:
ls -l
...
drwxrwx--x system system 2010-04-15 02:23 data
...
No read or write permissions to the directory using adb or Astro.
I do have permissions for /sdcard/data on my Eris:
d---rwxr-x system sdcard_rw 2010-06-26 13:26 data
but it doesn't contain the referenced folders and I don't think the browser downloads temporary files to the SD card.
I checked on my other Eris which is rooted. It seems that these may be the directories that we are looking for. However I don't find anything in an app-cache directory.
# find / -name *flashlite
find / -name *flashlite
/data/data/com.android.browser/flashlite
find: /proc/851: No such file or directory
# find / -name com.android.browser
find / -name com.android.browser
/data/data/com.android.browser
Well this appears to be the deal breaker then. Because non-root users of Eris cannot access /data as non-root, they cannot see anything in app-cache, and therefore cannot root yet, at least with this particular method unless there's another way to do it.
We should think of a way to still exploit Flash Lite on Eris, but use a different folder/folders in the Part? scripts that they point to for the operations of the script. This may be possible to do, however, still unlikely to work, and it is still going to be hard at this point.
But does anyone want to give my modified EVO method but for Eris a try? One of you should, so that we can root this thing and get it over with.
jimbonj said:
From what I see (and this may just be my eris), the directory probably does exist but we can't touch it:
ls -l
...
drwxrwx--x system system 2010-04-15 02:23 data
...
No read or write permissions to the directory using adb or Astro.
I do have permissions for /sdcard/data on my Eris:
d---rwxr-x system sdcard_rw 2010-06-26 13:26 data
but it doesn't contain the referenced folders and I don't think the browser downloads temporary files to the SD card.
Click to expand...
Click to collapse
I dont think we would need read write permissions to begin with to use this root, if we had them to start we would be rooted
Because is he using a exploit in flash lite to write to a restricted folder, hes not just found a folder where the permissions aren't set correctly.
If flash lite can invoke admin access and we can exploit it there should be a way to root this.
I am going to the bar going to get some beers for my friends birthday, when I get home I am going to see if I can modify this into an eris root
Yeah JVWARD!
On your rooting effort, all the better, try modifying it for Eris and let all of us know if you succeed, hope you can, so we can get root too. Keep trying it with different changes until you get it to work.
Thanks.
You are able to cd directly into /data/data/com.android.browser/ and then ls, so all hope may not be lost yet. The flashlite directory does not show up, I'm guessing because I haven't used my browser yet so I need to try and get to a flash site and see if it is created. I'm having some problems with the touch screen my leak Eris right now that I'm trying to fix right now if anyone else wants to give it a shot.
You are able to cd directly into /data/data/com.android.browser/ and then ls, so all hope may not be lost yet. The flashlite directory does not show up, I'm guessing because I haven't used my browser yet so I need to try and get to a flash site and see if it is created. I'm having some problems with the touch screen my leak Eris right now that I'm trying to fix right now if anyone else wants to give it a shot.
Click to expand...
Click to collapse
Yes sickbox, by all means, keep trying stuff, and finding that "flashlite" directory etc. till you get it to root. Hope your touchscreen returns to normal, and that you can create the directory that you mentioned in your previous post by using a flash site.
Hey guys, I know this is a tall order, but I want to help. Any chance you could do a "step by step" set of instructions, or at least copy & paste the Evo instructions with the appropriate changes to try this on the Eris? I'm still not rooted, and the SD card Timing root method isn't working for me. I'd like to try something different.
hey can someone with a rooted Eris using a an almost 100% stock Rom setup dump there file system and post it. Anyone using a highly customized Rom don't bother.
Sent from my Eris using Tapatalk
lostpilot28 said:
Hey guys, I know this is a tall order, but I want to help. Any chance you could do a "step by step" set of instructions, or at least copy & paste the Evo instructions with the appropriate changes to try this on the Eris? I'm still not rooted, and the SD card Timing root method isn't working for me. I'd like to try something different.
Click to expand...
Click to collapse
Link to the Evo instructions is in the OP. Currently working to see if it's possible on the Eris, so that's a no-go for now.
Stay tuned.
Team,
I've been working with the scripts with the awesome folks on IRC and have currently gotten thus far:
Part1 - http://pastebin.com/FUJWM3zW
Part2 - http://pastebin.com/6h07zrdm
I believe at this point I've screwed up my FlashLite plugin with my testing, so I'm going to try to recover that and keep moving along.
LR

Please help me, i Lost my "Accounts &sync"

I was using Titanium Backup to uninstall some of the apps that came with my Vibrant. I made sure to hit the back up button in Titanium Backup before I un-installed "Accounts & Sync" (I wanted to uninstall it because the icon in the app draw was annoying to me). So i deleted it and now I cant access my account and Titanium Backup wont let me restore. I was wondering if someone could please help me. Thank you..
The app was only a shortcut to Accounts & Sync.. just go into settings -> Accounts & Sync.
Thats my problem, It isnt there in the setting app..
Thats weird because I uninstalled it and it was still there even after i rebooted the phone.
You could always use ADB and push the .apk back into /system/app
How do I do that? And where can I find the .apk ?
MichaelB91 said:
How do I do that? And where can I find the .apk ?
Click to expand...
Click to collapse
Mhmmm thought you backed it up? do you have a ADB environment set up properly? It'll take a little bit of time to fully set that up.
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
MichaelB91 said:
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
Click to expand...
Click to collapse
Download: http://de.codeplex.com/releases/view/48865
Driver: http://forum.xda-developers.com/showthread.php?t=728929
-- Download corresponding to your OS (whether its running on x64 or x86)
Once that's done and the SDK environment is fully setup by Droid Explorer. Make sure it downloads SDK files and such.
1. Settings -> Applications -> Developement.. make sure that USB debugging is enabled
2. Connect phone via USB
aaaaaaaand follow this guide http://forum.xda-developers.com/showthread.php?t=532719 starting at
Check if your phone is detected by ADB once you fully installed Droid Explorer + Drivers
except for the first part where it says:cd C:\android-sdk-windows\tools === Press Enter
do
cd C:\Program Files\Droid Explorer\SDK\tools
Click to expand...
Click to collapse
instead
It'll take some time to set this all up and when you finally do just put AccountAndSync.apk and AccountAndSync.odex to /system/app and it everything should be good again.
Update: Backed up my apps before i started deleting them and uploaded you a backup of AccountAndSync http://www.mediafire.com/?d95wccd37kfgaic
I will give it a try, Thank you very much. Ill let you know how it goes.
for ADB:
* adb remount
* adb shell cp /sdcard/AccountAndSync.apk /system/app
* adb shell cp /sdcard/AccountAndSync.odex /system/app
Click to expand...
Click to collapse
^^ for this to work place the two files in the .zip that i made into the root of /sdcard/ (14GB not the 2GB)
After looking around.. you could possibly get a app called Root Explorer (paid app) and have the same result.
* In Root Explorer, copy the apk file you want to put in /system/app
* Navigate to the /system/app directory
* Tap the Mount R/W button on the top right
* Tap Paste
* Scroll down to the pasted apk, long press on it and select Permissions (you'll see 9 check boxes when you do this)
* Check the Read and Write buttons for User, and only the Read boxes next to Group and Others, then tap OK (once you're done, the read/write permissions under the app name should be the same as all the other apps listed (rw-r--r--))
* Reboot.
Click to expand...
Click to collapse
I'm off to bed though. I'll check in tomorrow.
I tired using Droid Explorer but that didnt work, so then I went and bought "root explorer" and did everything as you said but it didnt work.. I dont know if this makes a difference but when I went into the properties for accountsandsync it said Owner: System
Group is sdcard_rw
While everything else in the /system/app folder says
Owner: Root
Group: Root.
made a new thread, did not want to hijack someone else help thread.
MichaelB91 said:
All I did was hit the back up button in titanium backup, and I dont know how to reinstall it from that. No I dont, I dont even know what that is..
Click to expand...
Click to collapse
I am in the exact same place. I used Titanium Backup to remove Account & Sync and now it is missing completely. I did do a backup from within Titanium Backup, but when I went to use the Restore feature, it wasn't available. I found a support page for Titanium Backup (http://matrixrewriter.com/android) and FAQ #10 states:
#10: Why is the "Restore" button disabled for some system apps ?
◦System apps are part of your ROM, so Titanium Backup will only backup their data (not the apps themselves). For this reason, if you backup a system app, and then switch to a ROM where that app is missing, Titanium Backup obviously cannot restore the data for it.
I just wish it would have made this more clear when I was doing the backup in the app.
zephiK said:
The app was only a shortcut to Accounts & Sync.. just go into settings -> Accounts & Sync.
Click to expand...
Click to collapse
At first, after removing Accounts & Sync using Titanium Backup, the option was still available from Settings -> Accounts & Sync. However, when I actually tried to go into it, it failed to start and it was somehow removed completely from the menu.
I have followed your steps for setting up Droid Explorer. I can get it to communicate with the phone, although it does show a '$' instead of a '#' when typing "adb shell" into the Command Prompt. I have copied the .apk and .odex files from the Zip you provided into the root of the device.
When I attempted to use the adb commands you listed, I get errors for all of them. For "adb remount" it says "remount failed: No such file or directory." For both "adb shell cp /sdcard/AccountAndSync.apk /system/app" and "adb shell cp /sdcard/AccountAndSync.odex /system/app" it says "cp: not found."
I then moved on to trying the Root Explorer app directly from the phone. I found the .apk and .odex files in the root of the /sdcard folder. I tried to copy and paste them into the the /system/app folder, but they never appear to paste correctly. It does not give me an error, but it never shows up in the correct spot, either. One thing is that you said I must press Mount R/W, however the system/app folder already says it's opened in R/W. The only option on the top right is Mount R/O, but pressing it doesn't appear to do anything.
I'm not sure what to do from here. Any help would be appreciated.
Thanks,
Yogi
Okay, I figured out what happened. Titanium Backup shows two "Accounts and Sync" apps... one is the actual app and the other is the icon that links to the app. I had removed both accidentally. I downloaded the AccountAndSync.apk someone posted in another thread and installed it with ADB. It brought the icon back, but not the actual application. Could someone please upload the .apk for the actual Accounts and Sync app?
Yogi76 said:
Okay, I figured out what happened. Titanium Backup shows two "Accounts and Sync" apps... one is the actual app and the other is the icon that links to the app. I had removed both accidentally. I downloaded the AccountAndSync.apk someone posted in another thread and installed it with ADB. It brought the icon back, but not the actual application. Could someone please upload the .apk for the actual Accounts and Sync app?
Click to expand...
Click to collapse
http://www.mediafire.com/?r1mrbtsep2k84kb uploaded.. i was tired that day :X
includes BOTH settings and actual app.
Thank you soooo much! it worked!
Worked for me, too. Thanks!
Just to help everyone else in the case you deleted some other pre-installed app and you do not have a backup -
http://samsungvibranthacks.com/samsung-vibrant-hacks/samsung-vibrant-system-dump-default-apps/
Awesome, thanks. that will probably come in handy
MichaelB91 said:
Thank you soooo much! it worked!
Click to expand...
Click to collapse
Thank yogi for reminding that there are two apps for accounts and settings. Been busy and didn't look now in depth and the other night I was pretty tired. Only the settings need to be installed. But I included both for the hell of it.
Sent from my SGH-T959 using XDA App

[Q] Removing apps that came with CM6

I'm not sure if this is the right place to post this. Feel free to move it.
I am wondering how to remove some things that came with CM6 when I installed it. When I go to applications > manage applications I cannot delete anything other than the things I've installed. Here is a list of things that I want to delete.
Amazon mp3
The stock browser
Stock Camera
stock messaging
stock music player
Google Talk
Google Voice
All the wallpapers
Home screen tips
I don't have a use for any of these and would rather free up the space and keep down the clutter from things I don't use.
http://forum.xda-developers.com/showthread.php?t=735255
*************** NOTE ***************
Removing some of these may cause instability/FC issues with your phone. Just fair warning.
***
After reading that thread; the files you need to delete are... (located in System/App)
com.amazon.mp3.apk
Browser.apk
Camera.apk
(Not sure about messaging - might be mms.apk)
music.apk
talk.apk
I'm not totally sure about the others.
deleting mms.apk will remove your ability to receive texts. i know cause i tried to replace it with handcent at one point. removing music and amazon should be fine.
Thanks for the replies. I'm gonna try to remove the Amazon mp3 and Music now. What do you think would happen if I move the apps to my SD card and then access and delete them from my computer? Does this run the same risk of instability issues? In theory, I should be able to back them up on my computer and restore them if things go wrong, agree?
Anthony1s said:
Thanks for the replies. I'm gonna try to remove the Amazon mp3 and Music now. What do you think would happen if I move the apps to my SD card and then access and delete them from my computer? Does this run the same risk of instability issues? In theory, I should be able to back them up on my computer and restore them if things go wrong, agree?
Click to expand...
Click to collapse
Ya. You can back them up to your SD card or PC, whichever is easier.
Sent from my Liberty using XDA App
Here's what I did along with some instructions from attn1. (he's the best!) Maybe this information will be helpful to someone. I am running CM6 A012 on my phone.
I booted up the Ubuntu LiveCD that I used to root my phone.
Rebooted my phone into Clockwork Recovery... power & volume down > wait for system check > Recovery
Once in ClockWork Recovery I linked my phone via USB to my computer and clicked 'partitions menu' then 'mount /system'
I accessed the terminal in Ubuntu and I couldn't get permissions to access the phone's files
In terminal, attn1 had me type the following commands before I could access the app list.
1) echo $PATH
2) sudo su
3) cd /opt/android-sdk-linux_86/tools
4) ./adb kill-server
5) ./adb remount
After that, to list the apps type: ./adb shell ls -l /system/app
To remove apps type: ./adb shell rm /system/app/filename.apk
To check if they're removed type: ./adb shell ls /system/app/filename.apk
I removed Music.apk, com.amazon.mp3.apk, and Browser.apk. When trying to remove Gmail.apk, Ubuntu wouldn't let me do anything else. I am assuming that the LiveCD has a time limit on it for the trial version. I then unmounted my phone on ClockWork and the rebooted it. The apps that I removed are gone from my phone and everything related to them still works fine.
Here is a link I used to find out which .apk files were safe for removal. http://forum.sdx-developers.com/android-2-1/(list)-apk's-and-odex's-safenot-safe-to-delete/
I will do some more research and try to remove other .apk files in a couple hours. I didn't try the 'move to SD' method that I mentioned above and would still like someone's opinion on it.
I forgot to mention. It's probably best to do a nandroid back up before doing all this. I didn't do one that time and will do it next time. I will also leave a list of everything I removed for future reference. If anyone else has a list, I would appreciate seeing that. This is my first time doing all this so I am constantly bugging attn1 for knowledge.
It didn't seem right to complain about AT&T bloatware, but still have to deal with the apps cyanogen installed.
Correct me if I am wrong. I did it this way and so far haven't found any issue YET. BTW, I didn't delete mms.apk though. Use Winrar (or other programs, not tested) to open cm6-liberty-A0xx-signed.zip. Navigate to system/app and then remove the apk files from there. Close winrar and install the modified cm6-liberty-Axxx-signed.zip like normal. It saves me a lot of time dealing with adb.
penpower said:
Correct me if I am wrong. I did it this way and so far haven't found any issue YET. BTW, I didn't delete mms.apk though. Use Winrar (or other programs, not tested) to open cm6-liberty-A0xx-signed.zip. Navigate to system/app and then remove the apk files from there. Close winrar and install the modified cm6-liberty-Axxx-signed.zip like normal. It saves me a lot of time dealing with adb.
Click to expand...
Click to collapse
You know, that's a much easier idea. Even testing by taking one .apk out at a time would be faster, I think. And my Winrar is expired and it still let's remove files! I would just have to remember to save a backup on the .zip before and after removing each .apk.
Anthony1s said:
1) echo $PATH
Not required. Only had you do that because I knew shad0wf0x put the tools in the path, but didn't know exactly where. Just made it easier for moving there once you did the next step.
2) sudo su
3) cd /opt/android-sdk-linux_86/tools
Required.
4) ./adb kill-server
Not required - only had you do it because the server was initially started from the regular user account and wasn't connecting properly.
5) ./adb remount
After that, to list the apps type: ./adb shell ls -l /system/app
To remove apps type: ./adb shell rm /system/app/filename.apk
To check if they're removed type: ./adb shell ls /system/app/filename.apk
This is fine....
I removed Music.apk, com.amazon.mp3.apk, and Browser.apk. When trying to remove Gmail.apk, Ubuntu wouldn't let me do anything else. I am assuming that the LiveCD has a time limit on it for the trial version. I then unmounted my phone on ClockWork and the rebooted it. The apps that I removed are gone from my phone and everything related to them still works fine.
Here is a link I used to find out which .apk files were safe for removal. http://forum.sdx-developers.com/android-2-1/(list)-apk's-and-odex's-safenot-safe-to-delete/
I will do some more research and try to remove other .apk files in a couple hours. I didn't try the 'move to SD' method that I mentioned above and would still like someone's opinion on it.
Click to expand...
Click to collapse
FYI there is no expiration on the Ubuntu LiveCD. If it stopped working for you, it was for some other reason.
Thanks for correcting that attn1. I haven't tried to do anything further yet, but will after a nap. Does anyone know if you edit the ROM in Winrar, do you have to sign it or w/e?
Anthony1s said:
Thanks for correcting that attn1. I haven't tried to do anything further yet, but will after a nap. Does anyone know if you edit the ROM in Winrar, do you have to sign it or w/e?
Click to expand...
Click to collapse
When I modified both of N1 and Aria CM rom, I don't have to sign it again.
Ok here is the basics of what I did. I didn't modify the CM .zip from my computer because I thought it would take more time to nandroid backup and reflash the ROM. If I install a new ROM, I am more likely to do that. I loaded the Ubuntu LiveCD and proceeded with what I was doing before. I still had to put in every command that attn1 taught me.
Here is a list of everything I removed.
- Music.apk Successful. No problems.
- com.amazon.mp3.apk Successful. No problems.
- Browser.apk Successful. No problems.
- Gmail.apk Successful. No problems.
- CMWallpapers.apk Successful. No problems.
- LiveWallpapers.apk Successful. No problems.
- MagicSmokeWallpapers.apk successful except the 'Many' live wallpaper option doesn't load without this. I didn't care cause I was getting rid of all of them.
- LiveWallpapersPicker.apk Deleting this changes some things. When you go to menu >wallpaper it takes me directly to Astro File Manager instead of the wallpaper menu. I can still access and change my wallpaper though the Gallery app
I didn't remove Camera.apk because I read somewhere that it will mess up your camera even if you have another app install. I also didn't remove any Google apps yet. I might try those any other day. They aren't bothering me right now.
I was thinking about moving my nandroid backup to my computer to save space, but I didn't. I realized that if my SD is full, I won't have space on it to move it back when I needed it.
Thanks for all the tips.
what are the apps you upgraded to after deleting these?
i dont want to delete the stock once i've been using if there alternatives arent any better.
dh4645 said:
what are the apps you upgraded to after deleting these?
i dont want to delete the stock once i've been using if there alternatives arent any better.
Click to expand...
Click to collapse
For Music, I'm using Mixzing. For Browser, I'm using Dolphin HD. For E-mail, I'm using K9. For Messaging, I'm using Handcent. For Camera, I have a bunch of different apps.
I heard that your camera and messaging won't work without the 'Camera' and 'Messaging' that are currently on the phone. I'm assuming that your email won't work without the 'Email'. I deleted Gmail without any problems though. All the rest that I removed were just Wallpapers that came on the phone. I can pull up the wallpapers that I want from gallery still.
I don't think I freed up much memory space. My main concern was to get all those 'Music' widgets off my widget list and make everything else less cluttered.
So you can still get and send email from your email account after removing gmail or do you have to buy/download another email client. I am trying to figure out the differences between the gmail and email apps at the moment. The email app seems to have changed in Froyo to something less than it was. Are you using the standard "email" app after you delete gmail app?
anika200 said:
So you can still get and send email from your email account after removing gmail or do you have to buy/download another email client. I am trying to figure out the differences between the gmail and email apps at the moment. The email app seems to have changed in Froyo to something less than it was. Are you using the standard "email" app after you delete gmail app?
Click to expand...
Click to collapse
I use k9 mail. Everything worked after i removed gmail.apk
Sent from my Liberty using XDA App
What I did before I installed the addon apps is opened the zip file and just deleted the apk files I didnt want.
I forgot to delete Twitter tho. Doh.
Hey, tried running Skyfire browser after uninstalling the default browser?? Cause all I am getting is a black screen when trying to run Skyfire.Other browsers work fine, but no Skyfire.
Know of any way to reinstall the defautl browser???
mharrissmith said:
Hey, tried running Skyfire browser after uninstalling the default browser?? Cause all I am getting is a black screen when trying to run Skyfire.Other browsers work fine, but no Skyfire.
Know of any way to reinstall the defautl browser???
Click to expand...
Click to collapse
I think I read somewhere that Skyfire is meant to run on top of the default browser, kind of like an add-on.
For the stock browser, download cm6 and unzip it. Then go into the unzipped file >system>app>browser.apk. Just push Browser.apk to /system/app on your phone via adb and you're good to go.
EDIT: just realized you might not be running cm6. Not sure if theres a difference between the browser in cm6 and the one from the stock rom. If there is a difference you just follow the same procedure from whichever rom you're running.

errors when using adb and CM6 on HTC aria

I wonder if other people are having these issues, story follows.
I was trying to install the updated ADW.launcher via the adb install command and was getting errors such as "/sbin/sh pm not found". This led to an investigation and it turns out that all the standard applications used to install stuff under android are in /system/bin BUT... The path in the CM6 rom does not have /system/bin in the PATH variable. The only path element as far as I can tell is /sbin. So the solution I came up with was to copy over all the tools from /system/bin to /sbin and this worked.
So here is the real question. How do I change the path on the android device? I have already tried export PATH=$PATH:/system/bin but this does not stick after I close the adb shell.
Update: oh great when you reboot the phone all the copied tools disappear and you have to do it all over again to install another file. Did not expect that one. This makes my need to change the path even more urgent.
Update2: I found it easier to just push the new file over top of the old one in /system/app. This will work for system apps and if I need to install other apps I can just load them from the sdcard.
Is there a reason you are not installing it from market? ADW is the default launcher in CM6, so the one from market is not the same, but they can coexist.
so the one from market is not the same, but they can coexist.
Click to expand...
Click to collapse
Yea I was not really sure about that so I felt it was safer to download the one for CM6. If that works I will do that in the future. I ended up just doing a push over the older version in /system/app, this worked fine.
Is there a reason this rom does not have /system/bin in its path? Is it to avoid toolbox?
anika200 said:
Yea I was not really sure about that so I felt it was safer to download the one for CM6. If that works I will do that in the future. I ended up just doing a push over the older version in /system/app, this worked fine.
Is there a reason this rom does not have /system/bin in its path? Is it to avoid toolbox?
Click to expand...
Click to collapse
It is in the path.
# echo $PATH
/sbin:/system/sbin:/system/bin:/system/xbin
#
Can you help me to change the path? Mine is only /sbin for some reason.
Normal export command did not work for me. Thanks
Maybe its baked into the boot.img? What about the init scripts? Any clues where to start? Maybe I will just flash on a new nightly, would that over write the existing path info?
Ok, I found some clues. A document on the android init scripts describes the path settings. I will poke around in there and see what I can muck up. http://www.netmite.com/android/mydroid/1.6/system/core/init/readme.txt
Sent from my Liberty using XDA App
Answered my own post.
To change the path you need to edit init.rc and add the correct path.
For some reason the nightly I was using had the wrong path in there and would not let me use adb install correctly. I would get an error back "/sbin pm not found". The adb installer was looking for a tiny program (a shell script really) named "pm" but it could not find it because pm is located in /system/bin which was not in the search path. Probably would have caused other problems too.
On a side note, why could I not get an answer to this simple question on a developement thread. Seems like rom creators/moders would know this second hand. Not complaining just makes me wonder.
Sounds a lot like a complaint to me.
I've been busy working on issues that are not isolated to a bad nightly, such as why we can't read telnos and contacts from the sim card.
/system/bin/sysinit gets pulled in from the cm6 repository, so things on nightlies are very fluid - I never know what to expect. Looking at my build, there is no way I could answer your question in any definitive way that would explain the discrepancy. Since I could not verify the problem, I deemed it a non-issue and moved on.
That did sound like a complaint, sorry. It was not really directed at you as I assume there is more than one developer on this site. I got it solved no problems. Maybe this will help someone else down the road. I have seen a few of these posts around and never saw a concrete answer.
I am surprised the phone ran so well with the path mangled so bad. I am also a little surprised that init.rc gets touched at all on a nightly cycle. One of those things I guess.
anika200 said:
I am also a little surprised that init.rc gets touched at all on a nightly cycle. One of those things I guess.
Click to expand...
Click to collapse
I was a little surprised as well.

[Q] Push using adb fail (no room)

Hey guys. I'm trying to push a libwebcore.so file from one .zip onto my current MyTouch phone that has CM 6 on it. The reason why I'm doing this is to have the Arabic browser support. This file causes the letters to be connected which they are in text messages, but not the browser. I heard pushing the libwebcore.so from a downloaded source (or from a rom .zip that has it from another rom) will do the trick.
However, everytime I try to push it to /system/lib it gives me an error saying that there is no room on the device. That's pretty unprobable since I'm sure I have a lot of space. How do I fix this and sucessfully push the file?
Shadowafs8 said:
Hey guys. I'm trying to push a libwebcore.so file from one .zip onto my current MyTouch phone that has CM 6 on it. The reason why I'm doing this is to have the Arabic browser support. This file causes the letters to be connected which they are in text messages, but not the browser. I heard pushing the libwebcore.so from a downloaded source (or from a rom .zip that has it from another rom) will do the trick.
However, everytime I try to push it to /system/lib it gives me an error saying that there is no room on the device. That's pretty unprobable since I'm sure I have a lot of space. How do I fix this and sucessfully push the file?
Click to expand...
Click to collapse
Do "adb shell df -h" to see how much room is available in your system partition. You may have to remove some unused system apps to make room.
I'm trying that now...but is it safe to delete the current libwebcore.so now and add the new one? If so what's the command. Also, if the libwebcore.so was for a testing version of CM 6 (specifically RC3), will it still work?
Also, is there a way to take some space from other parts of the system?
First of all, i'm going to move this to General since I fail to see how this is regarding the Development of anything. Some good information, but not related to Development.
Secondly, have you considered performing a nandroid backup, booting to recovery, mount the /system directory, then 'adb shell rm /system/lib/webcore.so' to remove your file then 'adb push webcore.so /system/lib'
Also, if you use the file directly from SOURCE it may not work since it may need to be compiled first. I'm not sure about that though since I've never tried it.
If any of the above goes wrong you can always nandroid restore and try again.
I personally use Clockwork Recovery since you can restore specific partitions individually (such as System) so it saves time.
Good luck.
I'm pretty much done trying...unless somebody can comply the file for me and test it. I'm really done trying this when all it does is fail over and over again. Hopefully somebody can come up with something

Categories

Resources