[QUESTION] *.apk Gets overwritten on Reboot - G1 Q&A, Help & Troubleshooting

For some reason, on the G1 with AOSP1.6_r1.2 & expansion, When i write the new maps.apk (3.2) From Here, over the origonal GoogleMaps.apk, It installs Fine. And loads fine, But Once Android is rebooted, the old file comes back... Reminds me of microsoft's shadow copy..... Anybody have a clue on how to stop it or force a particular file????

are you replacing the file in system/app? since that is where most roms store maps?

david1171 said:
are you replacing the file in system/app? since that is where most roms store maps?
Click to expand...
Click to collapse
You are correct.. thats where my GoogleMaps.apk is.

if you are replacing that file, then you could try to remove it, then install maps like a normal app onto the data partition.

david1171 said:
if you are replacing that file, then you could try to remove it, then install maps like a normal app onto the data partition.
Click to expand...
Click to collapse
Im in the middle of trying that right now.... It installed again without problems, now just waiting for the reboot to test if it got overwritten.
EDIT - Still no luck.... Just keeps getting Overwritten..... Can i change the Name of the new Google Maps so it has a new icon???

Any ideas anyone? Is this in the Wrong Forum??????

did you rm the file from /system/app/ and install it like a normal app? did you copy the .apk file from your sdcard to its location in /system/app/?
do you need commands on how to do this?

I deleted system/app/GoogleMaps.apk , and watched it disappear from the app drawer. then Moved the new GoogleMaps.apk into data/app/ . Installed it and ran it no problem... can exit and even go back into 3.2 no problem. but as soon as i reboot,the original GoogleMaps.apk is back in system/app/ ..... so im clueless.

I just installed successfully by copying the file to /system/app/Maps.apk
... not GoogleMaps.apk

Technochris1 said:
I deleted system/app/GoogleMaps.apk , and watched it disappear from the app drawer. then Moved the new GoogleMaps.apk into data/app/ . Installed it and ran it no problem... can exit and even go back into 3.2 no problem. but as soon as i reboot,the original GoogleMaps.apk is back in system/app/ ..... so im clueless.
Click to expand...
Click to collapse
how are you deleting it?
do that in the recovery console and see if that works
Code:
mount system
rm /system/app/GoogleMaps.apk
reboot

did what you said, after reboot the old googlemaps.apk is still there......

ls /system/app
remove maps.apk

david1171 said:
ls /system/app
remove maps.apk
Click to expand...
Click to collapse
in recovery or terminal?

Technochris1 said:
in recovery or terminal?
Click to expand...
Click to collapse
in terminal
Code:
su
ls /system/app/
(will give you a long list of .apk files)
(find the correct name for maps.apk)
reboot recovery
then in the recovery console
Code:
mount system
rm /system/app/-insert appname form above-.apk
reboot

I just did the above and as soon as you reboot again the old google maps is back!
Perhaps you could copy the new maps over while in recovery after deleting the old one?
The Maps apk file is named "GoogleMaps.apk" btw.
Phil

Technochris1 said:
For some reason, on the G1 with AOSP1.6_r1.2 & expansion, When i write the new maps.apk (3.2) From Here, over the origonal GoogleMaps.apk, It installs Fine. And loads fine, But Once Android is rebooted, the old file comes back... Reminds me of microsoft's shadow copy..... Anybody have a clue on how to stop it or force a particular file????
Click to expand...
Click to collapse
I see you are running Enomther's ROM. I was having the same problem - it turns out that Enomther's ROM had an easy fix all along. Run expsetup in terminal and choose Option 15 - you can delete Google Maps right there (I took advantage of deleting a few other apps that I don't use at the same time).
Then just reboot - place your new GoogleMaps.apk in the /system/app folder and you are golden.

Thanks dude. Thats the solution to my question....

I posted in the other thread...It is in the following folder
/system/sd/expstick/vsapps/GoogleMaps.apk
I am running the new app and am on Enoms latest AOSP 1.6.

Great! That worked a treat. Got it working just fine.
Phil

Related

Teeter for G1

Anyone have this apk that would work for JF's builds?
Just take it from one of the magic roms. It works fine on my g1
Not to savy on how to do that little help please?
Joeriginal said:
Not to savy on how to do that little help please?
Click to expand...
Click to collapse
I have uploaded attached it for you. However I've not tested it but I see no reason to why it shouldnt work.
Just so you know, this isn't a normal installation apk. In order to install it you're gonna have to move it to /data/app through a terminal with superuser permissions. i.e. through terminal emulator:
su
mv /sdcard/teeter.apk /data/app
[email protected] said:
Just so you know, this isn't a normal installation apk. In order to install it you're gonna have to move it to /data/app through a terminal with superuser permissions. i.e. through terminal emulator:
su
mv /sdcard/teeter.apk /data/app
Click to expand...
Click to collapse
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Keeps force closing.
Joeriginal said:
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Click to expand...
Click to collapse
I get the same thing. Cant move it over to /system/sd/app
EDIT: Had to do it via adb shell
Wow I had it install straight up as soon as xmoo released the /system folder of the magic. I didn't need to use adb & its on my sdcard
Joeriginal said:
It says it fails cause of something cross-linked I have apps to sd, how would I install this through terminal
Click to expand...
Click to collapse
Has anyone been able to install this app via the terminal emulator if so will you post the commands? I have been searching around for quite a while and I still can't find it. Any assistance will be greatly appreciated.
hello i too am having problems installing apk. tried to install from adb but got same error and force close. can someone point me in the right direction? thanks
You need the HTC frameworks and a ramdisk that puts them into the BOOTCLASSPATH. My CM2-ADP build has this (and Teeter). I doubt you'll get it working on a US firmware, though, because you can't change the BOOTCLASSPATH without breaking the preinstalled apps.
ok got it. I did try your build yesterday but had too many problems with the camera and video force closing. didnt see any real proformance change from jf1.51 either maybe need to update spl.
thank for the answer.
I found the teeter that can be installed using a regular installer app like Lindas. Its off the sapphire build. It does work but it is rather buggy on the g1.
http://forum.xda-developers.com/showthread.php?t=494533
Sorry, wrong thread
http://www.megaupload.com/?d=UL4HK3DZ
heres another apk

Script To Enable Voice Navigation in Google Maps for Cyanogen ROM's

Google Maps Voice Navigation was much simpler to set up on a Cyanogen ROM then reading the thread made it seem, so I made a script that follows the same process I did, and though it should work, I have not tested it, so please let me know if it needs any fixes. It will back-up any necessary files to the sdcard, so there are no real worries in giving it a try.
1. Download Google Voice from the market
2. Unzip the file, and make sure the two files, build.trout.prop, and mapsnav.sh are on the root of the sdcard.
3. Open the terminal and enter
Code:
su
sh sdcard/mapsnav.sh
This will do its work then reboot the phone. When it is back up, you should be set.
Doesn't seem to work for me. Upon running the script, I got a few errors ("Google not found," "Cannot locate dalvik-cache on sd," etc.; the phone rebooted before I could get a look at all of them). After the reboot, I still had the same old Maps. I tried installing the APK provided in the zip, which seemed to be a successful install, but still, no navigate feature.
jay652 said:
Doesn't seem to work for me. Upon running the script, I got a few errors ("Google not found," "Cannot locate dalvik-cache on sd," etc.; the phone rebooted before I could get a look at all of them). After the reboot, I still had the same old Maps. I tried installing the APK provided in the zip, which seemed to be a successful install, but still, no navigate feature.
Click to expand...
Click to collapse
Are you using a Cyanogen ROM, with apps2sd?
cloverdale said:
Are you using a Cyanogen ROM, with apps2sd?
Click to expand...
Click to collapse
Yupp, 4.2.3.1, or whatever the second-latest one is.
The problem is that your dalvik-cache and maps folders seem to be somewhere other than on my phone. If you first clear your dalvik cache, find the maps folder in /data/data/, and erase it, then run the script, it should work. I will figure this out and post when I get off of work.
I got the "no google found" error.
Also on boot up im missing gmaps all together.
edit: i also forgot to mention while the script was running scoreboard and mixzing forceclosed.. and on boot up advanced launcher foreclosed about 5 times.
[Script] droidNavi
Try this to have the DROID maps w/Navi correctly installed.
Download the droidNavi.zip file
1: place DroidMaps folder on the root of your /sdcard
2: go into terminal
3: su
4: sh /sdcard/DroidMaps/naviScript.sh
and let it do its thing, also you must reboot once the script is done
ravenjr said:
Try this to have the DROID maps w/Navi correctly installed.
Download the droidNavi.zip file
1: place DroidMaps folder on the root of your /sdcard
2: go into terminal
3: su
4: sh /sdcard/DroidMaps/naviScript.sh
and let it do its thing, also you must reboot once the script is done
Click to expand...
Click to collapse
Will this work got the Magic too or just the Dream?
works for me thanks alot, i was hoping someone would make a script.... it did tell me google not found but it works =)
ravenjr said:
Try this to have the DROID maps w/Navi correctly installed.
Download the droidNavi.zip file
1: place DroidMaps folder on the root of your /sdcard
2: go into terminal
3: su
4: sh /sdcard/DroidMaps/naviScript.sh
and let it do its thing, also you must reboot once the script is done
Click to expand...
Click to collapse
i did this. Everything seems to have worked out fine... but i get forceclose upon opening navigate
got it to work. I had to install the speechsynth stuff from the settings.
Works great thx.
ravenjr said:
Try this to have the DROID maps w/Navi correctly installed.
Download the droidNavi.zip file
1: place DroidMaps folder on the root of your /sdcard
2: go into terminal
3: su
4: sh /sdcard/DroidMaps/naviScript.sh
and let it do its thing, also you must reboot once the script is done
Click to expand...
Click to collapse
This worked great! only problem is Google Voice doesn't work afterward. It force closed at first, then I reinstalled it, now it just will not download messages and will not call out.
almus said:
This worked great! only problem is Google Voice doesn't work afterward. It force closed at first, then I reinstalled it, now it just will not download messages and will not call out.
Click to expand...
Click to collapse
did you set it back up after the reinstall?
almus said:
This worked great! only problem is Google Voice doesn't work afterward. It force closed at first, then I reinstalled it, now it just will not download messages and will not call out.
Click to expand...
Click to collapse
I am having the exact same problem. This has happened to me before, and this fixed it at the time. But the solution does not apply here... anyone else with Google Voice problems?
--- fixed! ---
ok in debug mode I see these:
11-13 23:35:17.845: ERROR/GoogleVoice(2939): Unable to prepare post-Donut Contact API
11-13 23:35:17.845: ERROR/GoogleVoice(2939): java.lang.ClassNotFoundException: android.provider.ContactsContract$Contacts
...
Click to expand...
Click to collapse
I tried messing around with swapping out the contacts but gave up for now. I've replaced my build.prop and build.trout.prop files with the backed up ones and GV is working again. I've read that some people have seen the navigation menu disappear when they do this - it doesn't sound likely, but I'll be watching out for that for the next few days I guess.
So - go back to your prop files and GV and GM will both work, at least for now.
fixed! (I think)
hmm how do I delete a dupe post?

[FIX]Obsidian FIX Thread 11/11/2010

11/11/2010 - Ive been busy with school so I apologize for slacking in the updates with stuff found in the thread. I also believe some new bugs have appeared in V2 of Obsidian. Don't quote me on this but I do believe a V3 is in the works but it could be a while to MAKE SURE ALL THE BUGS ARE OUT. So don't ask when it will be released. I also heard there is Z4Mod and Voodoo kernels being released with V3 as well. Till this, check here for fixes.
Fixed in V2, for those having issues with sync on the calendar
http://forum.xda-developers.com/showpost.php?p=9073317&postcount=239
Fixed in V2, for those experiencing FC on acore, reboot
for those experiencing FC on com.sec.android.screencapture (what ever the apk name is) uninstall it from titanium.
Fixed in V2, Live wallpapers are fixed.
FCC, FFC DOES WORK! (still banding on the rear camera) here is the Epic Camera. FFC is at 90 degrees for some reason?!?
LagFix, Some are reporting to get it to work, others are not. I was able to get it to work in V1 with OCLF, but I can't seem to get it to work in V2. (even with a modified kernel I'm probably building it wrong) but you can check this link.
Read-Only Bookmarks, the bookmarks are locked in the browser. fix here thanks to PaiPiePia
http://forum.xda-developers.com/showpost.php?p=9081134&postcount=19
Read-Only System manual copy.
For those having problems with a read-only system try these commands to manually copy the file. (THX srqt I believe)
adb shell
su
busybox mount -o rw,remount /dev/block/stl9 /system
busybox cp /sdcard/external_sd/app.apk /system/app/
reboot
for lock-ups on mounting SD You have to turn off the usb debugging, then use the Media Player option under usb settings. If not, the internal sd card shows up as a cd drive and you can not copy files to the internal sd ~BiiGreeN
I will be adding more fixes as the appear in #teamwhiskey or this thread when I can.
Keep in mind, this is based 99.9% off the Vibrant Froyo Rom. Its the 2.2 STOCK Kernel (no OC/UV yet), that means NONE of the 2.1 Kernels will work with it. there are also no custom lock screens yet either.... that work.
Im also known as FlyingPoo on the Team Whiskey forums and chat room.
What about Bootanimation sounds?
Or maybe add a lockscreen choice like 2.2 aosp lockscreen
TheExpertNoob said:
First, for those having issues with sync on the calendar
http://forum.xda-developers.com/showpost.php?p=9073317&postcount=239
Second, for those who want a LagFix, you will need to push the playlogos and playlogos1 manually.
http://forum.xda-developers.com/showpost.php?p=9075146&postcount=345
I will be adding more fixes as the appear in #teamwhiskey.
Click to expand...
Click to collapse
...why do you have to push playlogos manually? OCLF will do it for you. It gives you the option. Just install ext 2 tools, hit the playlogos option, then enable lagfix 2.2+
OCLF is available in the market...
mikeyinid said:
...why do you have to push playlogos manually? OCLF will do it for you. It gives you the option. Just install ext 2 tools, hit the playlogos option, then enable lagfix 2.2+
OCLF is available in the market...
Click to expand...
Click to collapse
OCLF woulnt let me install the playlogos for some reason, i had to add them manually.
TheExpertNoob said:
OCLF woulnt let me install the playlogos for some reason, i had to add them manually.
Click to expand...
Click to collapse
Hmmm. I had no problems, but couldnt disable it. Had to odin
Also, for those who have screencapture FC problems, you can use root explorer or adb to delete ScreenCapture apk from /system/app.
TheExpertNoob said:
OCLF woulnt let me install the playlogos for some reason, i had to add them manually.
Click to expand...
Click to collapse
Which version are you usng? I read that only a certain version works. I have that version, Im ironing so I cant look right now
The problem with this is that we disabled the playlogos files via the kernel and we're using a custom init script called 'sombionixInit' in /bin where the playlogos would originally be.
sombionix said:
The problem with this is that we disabled the playlogos files via the kernel and we're using a custom init script called 'sombionixInit' in /bin where the playlogos would originally be.
Click to expand...
Click to collapse
bad som >.> what should we do about it? cause i did get OCLF to work with the OP above method.
I tried that for calendar but now my calendar force closes. I moved that apk into system /app
Sent from my SGH-T959 using XDA App
sombionix said:
The problem with this is that we disabled the playlogos files via the kernel and we're using a custom init script called 'sombionixInit' in /bin where the playlogos would originally be.
Click to expand...
Click to collapse
I flashed one of eugenes kernels and oclf did work. but i wasnt able to disable it.
i restored boot animation and got the lag fix option green but it fails to install.
knicks235 said:
i restored boot animation and got the lag fix option green but it fails to install.
Click to expand...
Click to collapse
try NOT restoring boot animation. transfer over the playlogos again.... because "restoring boot animation" replaces playlogos1
TheExpertNoob said:
try NOT restoring boot animation. transfer over the playlogos again.... because "restoring boot animation" replaces playlogos1
Click to expand...
Click to collapse
adb is not on this comp, can i push through astro or a root explorer?
knicks235 said:
adb is not on this comp, can i push through astro or a root explorer?
Click to expand...
Click to collapse
yes, its actually how i ended up doing it
Nice thread, good work...any idea how to fix the issue that you can not delete the bookmarks from web browser?
VICosPhi said:
Nice thread, good work...any idea how to fix the issue that you can not delete the bookmarks from web browser?
Click to expand...
Click to collapse
yea i noticed that too about the bookmarks cause it wouldn't let me edit the facebook for "m.facebook.com" cause i like it better than the touch.... ill look into it more later. it could be "hard coded" in to the browser now? part of the FS may still be locked also seeing as how those are the "default" bookmarks you get after a wipe.
Edit: VICosPhi has pin-point the reason why the bookmark can't be deleted, use his modified and down-loadable Browser.db. Credit goes to him for figuring out the exact problem!
VICosPhi said:
Hey, from the solution you provided, I was able to pinpoint the cause of "undeletable" bookmark and changed the target folder.
For other folks,
Download the attached browser.zip file and extract the "browser.db" from it and then overwrite the browser.db located in your phone's /dbdata/databases/com.android.browser/ with the extracted file from the downloaded zip package.
Now you should be able to delete the bookmarks. You will need root explorer to do this.
NOTE: Credit goes to PaiPiePia for addressing this bug.
Click to expand...
Click to collapse
http://forum.xda-developers.com/attachment.php?attachmentid=436351&d=1289193826
-----------------------------------------------------------------------------------------------
Here's a fix written by me, posted in the original thread too.
1) Use this open source Sqlite Editor (doesn't have to be this one, it is just a free one that I found that worked for me). It is great because it is portable version thus no installation required.
http://sourceforge.net/projects/sqlitebrowser/
2)Using Root Explorer or any other Root Capable File Manager.
3)Browse to /dbdata/data/com.android.browser
4)Scroll down until you see "browser.db"
5)Copy that file on to your desktop (Via sdcard then mount the sdcard)
6)Open the Sqlite Editor you downloaded above, and Open the Browser.db you had copied to your windows desktop
7) Select Tab "Browse Data" at the top right corner (unless you understand what you are doing, please don't edit anything else.)
8) Under Table (drop-down menu), Select Bookmarks
9) The is how the file is structured:
-At the top portion are those bookmarks that can't be deleted
-At the bottom contains your personal browser history & additional bookmarks you added manually.
if you don't care about your history and your manually added bookmarks, you can delete every entries you see there by selecting one entry and click "Delete Record at the top right", repeat until the entire table is done/blank.
10) Save the change to Browser.db
11) Copy the modified Browser.db to the original "/dbdata/data/com.android.browser"
12) Use build in Task Manager to "End" the browser
13) Restart Browser and you will have a blank Bookmark Tab!
-Note, user added bookmark can be removed without doing this method (I haven't figure out why that is yet).
sombionix said:
The problem with this is that we disabled the playlogos files via the kernel and we're using a custom init script called 'sombionixInit' in /bin where the playlogos would originally be.
Click to expand...
Click to collapse
Can you post a version of the ROM that acts normally and...doesn't do that... please

New Market .apk

Just found this on Android Central
Grab the new market apk while its hot
Either get it from the source link on the post or I've attached it below.
Put it on your SD card and then use file explorer to find it and install.
I just installed it on mine and seems to work pretty good. Nicer look than the old market.
How did I know that the Eris would be one of the first places for new apks.
Thanks!!!
wow thanks will try it out.
imma bout to try it
EDIT: It doesnt install with MP3[SPEED] rom that sux
Just flashed this and all i can say is AWESOME! No bugs as of yet.
Rick
emaninthenation said:
imma bout to try it
EDIT: It doesnt install with MP3[SPEED] rom that sux
Click to expand...
Click to collapse
Try this:
This should pull the market apk currently on your phone and save it on your computer as a backup:
adb pull /system/app/com.android.vending.apk com.android.vending-backup.apk
Then push the new apk. This should rename the file as the previous apk and push it to your system/app folder:
adb push com.android.vending-1.apk /system/app/com.android.vending.apk
Then reboot:
adb reboot
Then try launching the market.
I am going to load it on a GB and XTRSense5 tonight and see how it works. any one else have any input on this ?
Input about how it runs? I am running GSB 3.7 Odexed and it is very stable. It takes a little time to load initially, but after that, I find the user experience much better than the previous market design.
synesthete said:
Try this:
This should pull the market apk currently on your phone and save it on your computer as a backup:
adb pull /system/app/com.android.vending.apk com.android.vending-backup.apk
Then push the new apk. This should rename the file as the previous apk and push it to your system/app folder:
adb push com.android.vending-1.apk /system/app/com.android.vending.apk
Then reboot:
adb reboot
Then try launching the market.
Click to expand...
Click to collapse
will do. I'll report back later
I'm pretty new to rooting seen, so I appoligize if this question is dumb. But, on my Eris, all I have is a vending.apk file. So, is this the file that I need to replace with the new market apk?
It should run with either name, but I would make sure that you don't have more than one in there. That should be the one that you replace, though.
badjedi said:
I'm pretty new to rooting seen, so I appoligize if this question is dumb. But, on my Eris, all I have is a vending.apk file. So, is this the file that I need to replace with the new market apk?
Click to expand...
Click to collapse
Arabic Accent"My friend my friend" just get on this forum on your phone, click the link, when its finished downloading just click the notification that says its done downloading and it will let you install.
no need to have a rooted device.
This apk works on my Eris running Tazz ginger-sense 2.3.3
I can't complete the last request. I don't seem to have that same .apk
No way for me to backup
Running MacRom MR7
sjpritch25 said:
I can't complete the last request. I don't seem to have that same .apk
No way for me to backup
Running MacRom MR7
Click to expand...
Click to collapse
It's listed as Vending.apk in your screenshot. Same thing happened on my phone (GSB 3.7), and it worked fine after I replaced and rebooted.
Noob, first time posting...
Came to this site on my phone (via xda app). Downloaded file. Hit "open" and it went through the install process but finished with "Not Installed". Any thoughts.
Rooted Eris, Froyo 2.2.1, CM7, KaosFroyo V39
Edit: Never mind. Did the adb pull/push after flashing GSB CM7. Everything works great.
Has anyone seen this......
I can search the Market for games, books, and movies and find results. When I search for apps, I get no matches for my search. I've tried this with multiple versions of the market and multiple ROMs.
I've got content filtering set to show all.
Any suggestions.
Same here. Works perfect.
emaninthenation said:
This apk works on my Eris running Tazz ginger-sense 2.3.3
Click to expand...
Click to collapse

Anolog clock resets o reboot

Hi all,
Was not really sure where to put this apologies if its the wrong place.
I recently created my own analog clock, I'm using CM7 RC0, I simply replaced the clock background .png in the original desktopclock.apk, renamed it, signed it and then installed it through filemanager.
Now, it works fine! I was very happy, until I rebooted my phone today, got back onto the desktop and it had reset to the original anolog clock! Tried it again and sure enough everytime I reboot I have to reinstall the .apk!
Anybody have any idea why on earth this would happen?
Many thanks,
Sean
This was originally brought to my attention with the HTC_IME mod by Jonasl. I installed a themed version over the top of the one already installed by default in /system/app and on reboot the original (quite frankly ugly) keyboard was back...
for some reason I do not know, you have to manually un-install the previous version. Don't know why...
use this http://forum.xda-developers.com/showthread.php?t=644909
to un-install the original apk for the clock, then push your app into /system/app using adb. reboot and it should all be sorted... I hope.
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
wiiija said:
Great stuff, thank you for your help. Now I wonder how to do this using linux, I will look into it, at least I know what the problem is
Click to expand...
Click to collapse
I'm on linux right now, and I did this to remove my stock messaging app not 3 hours ago...
Just open up your terminal and use adb, assuming you have the androidsdk on your computer...
If you don't it's going to be a little harder, you're going to have to find a root exploring file manager and delete the analog clock app from /system/app and then you're going to have to put the new one there AFTER rebooting.
If you want adb just ask and I'll tell you how to get it.
1. download the android sdk from http://dl.google.com/android/android-sdk_r12-linux_x86.tgz
2. open up the .tgz and extract it to /home/-your_user_name/androidsdk
3. open up terminal and type
su
PATH=$PATH:/home/-your_user_name/androidsdk/tools
adb
adb devices <-------(make sure your device is connected and in debug mode. If that fails just boot into recovery)
qiuness said:
adb shell
su
cd /system/app
mount -o rw,remount /system
rm -r analogclock.apk
Click to expand...
Click to collapse
4. install your new, themed app
abd push /path/to/your/app.apk /system/app
5. reboot.
Brilliant guys thank you very much, its all sorted, easy once you know how

Categories

Resources