[Q] Re-installing HtcFacebook.apk - General Questions and Answers

Before anyone flames me, I've searched a lot for this answer, so if I just missed it, please be kind.
Moving on, here's my problem. I got a little delete happy with Titanium Backup as root. I accidentally deleted HtcFacebook sync. My facebook still works and all that, but no longer can I sync my contacts. I've managed to acquire the .apk and the .odex and I read the little tutorial on droidsp0t.com but I can't seem to get these files moved correctly.
I'm on an EVO, Fresh Rom 3.3.0.1, using Android Terminal Emulator
Here's what I tried:
su
mount -o remount,rw yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/download/HtcFacebook.apk /sdcard/download/HtcFacebook.odex
mount -o remount,ro yaffs2 /dev/block/mtdblock4 /system
My unix is a little rusty. So this could be off by a mile, but I was trying to mount the system folder, specifically so I could copy these 2 files into my /system/app/ folder. Then, unmount the system folder. Both mounting and unmounting should require read/changes I believe. Any thoughts?
Long winded, but I want to be accurate. I hope someone can help me, and thank you in advance.

Bump. Anyone have any input?
Sent from my EVO using XDA App

have you tried installing the apk with astro?

I have. It shows me all the details, but then says "Application not installed". I believe it has to be installed by root recovery, but I can't seem to figure out how to do that.

thistimearound said:
Before anyone flames me, I've searched a lot for this answer, so if I just missed it, please be kind.
Moving on, here's my problem. I got a little delete happy with Titanium Backup as root. I accidentally deleted HtcFacebook sync. My facebook still works and all that, but no longer can I sync my contacts. I've managed to acquire the .apk and the .odex and I read the little tutorial on droidsp0t.com but I can't seem to get these files moved correctly.
I'm on an EVO, Fresh Rom 3.3.0.1, using Android Terminal Emulator
Here's what I tried:
su
mount -o remount,rw yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/download/HtcFacebook.apk /sdcard/download/HtcFacebook.odex
mount -o remount,ro yaffs2 /dev/block/mtdblock4 /system
My unix is a little rusty. So this could be off by a mile, but I was trying to mount the system folder, specifically so I could copy these 2 files into my /system/app/ folder. Then, unmount the system folder. Both mounting and unmounting should require read/changes I believe. Any thoughts?
Long winded, but I want to be accurate. I hope someone can help me, and thank you in advance.
Click to expand...
Click to collapse
This happened to me.. I think wiping oughta do it. Ti backup
Sent from my PC36100 using XDA App

I dont mean to jack this tread but I am having the same issue with teeter and my girl friend LOVES that game I am a bit of a noob but I tried astro same message app not installed and been searching with no result. I am using the same rom and everything some instruction would be great

any solution?

I have the same problem, if you find a solution plz share it with me..

Tried to manually push apk to system/app with permissions?
- - - - - - - - - - - - - - - - - - - - - - - - - -
LIFE!
IT'S WHAT YOU MAKE OUT OF IT!

Related

Issues with root: Cross-device link

Before I begin, I just want to say that I've done my due diligence and searched for an answer for this... both on xda and the interwebs.
I have successfully obtained root on my phone... did it about 4 days ago. At the same time, I was able to successfully move all of my unnecessary HTC provided widgets such as Stock.apk to a folder I created within the /system/app location. But now, I'm having a problem with root access.
I have mounted the phone with the command:
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
but yet when I attempt the following command:
# mv HtcClockWidget.apk /system/app
I get the following error:
failed on 'HtcClockWidget.apk' - Cross-device link
I've rerooted the phone three times now, which is sufficient enough for me to go to you guys and ask. I think I may be doing something wrong. Any ideas? I'm totally lost.
EDIT:
To clarify, I'm attempting to replace the original HtcClockWidget.apk from Sprint to the flip clock from a GSM Hero. I have moved the HtcClockWidget.apk original to /system/app/ap for backup purposes. Upon moving the file and attempting to move the GSM file to the /system/app folder, I get the Cross-device link error. But, if I move the HtcClockWidget.apk original file back from the /ap backup folder to its original location, it has no problem doing so. Is there some kind of protection that the /system/app folder has that can distinguish between two different HtcClockWidget.apk's?
are you using MoDaCo's rom? if so just use cp HtcClockWidget.apk
and is your pwd your sd card?
No, I am using the stock ROM. I just so happened to stumble across this thread:
http://forum.xda-developers.com/showthread.php?t=554826
I guess I can only replace the /system/app files while in recovery with the /system directory mounted! Problem solved!
do you have the gsm htc clock (with animation) apk????
is that why I dont see any animations on my flip clock? Always wondered because my Dream Hero always had (albeit slow) animations. Btw, I seem to be able to mount the system as read/write even with the phone booted normally.

Battery manager fix!

This is not my doing or work, I just found it and am sharing it so please don't blame me for stealing or using anyone elses work
This is the script I found in squidlys rom and it is saved in system/xbin, if I can figure out how to post a file on here through the xda app on my phone I can give you guys the files used to run the fix. You can run the command in terminal emulator but im guessing first you may want to create a folder on the sd card named stock and then move the file battery manager to it and then run the script and restart the phone, that's what I did and it worked.
#!/system/bin/sh
if busybox [ -e /sdcard/stock/BatteryReport.apk ];
then
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
busybox cp /sdcard/stock/BatteryReport.apk /system/app
sync
mount -o remount,ro -t yaffs2 /dev/block/mtdblock4 /system
echo 'battery manager fix'
else
echo 'battery manager not fixed'
echo '1) Place battery report App On The SDCard'
echo '2) Turn Off USB Storage'
echo '3) Rerun Script To Try Again'
fi
Sent from my DROID2 using XDA App
Well I can't figure out how to attach a file through the xda app on my phone and I loaded the actual page on my phone and it wont pull up my phones sd card directory so if you want the file I can post them when I get off work but the txt that I posted above is the actual file, I opened it within txt editor and copied it so if you can save it as the same kind of file that is in system/xbin (I don't know the extentions or what kind of files they are) then you could probably do it without my help, the original file name is battmanfix. Thanks for reading
hmm, just looking at the script i'd say it shouldn't work
not sure what squidlys changed in his rom (if it is for droid 2) but the default d2 mount point for /system is /dev/block/mmcblk1p21 and also file system is ext3...
did you test it?
Well I already had the folder on my sd card from the squidly rom and pretty much coppied the file to my xbin in the system folder and ran the command through the terminal emulator and it seemd to work afterwards...there were no errors in the terminal or anything and when I typed in battmanfix it responded with the whole name battery manager fix and I checked my battery manager and it worked... that's exactly what it did with squidlys so idk...
Sent from my DROID2 using XDA App
ok... so here's something funny... Looking at the script, basically all this is doing is replacing (and reactivating) the batteryreport.apk. So... me thinks to myself - "self; what happens if I just try to click on the apk as if I was gonna install it?" obviosly it didn't install, but after doing that, my battery stats were back. Something is obviously happening to where the batteryreport.apk stops syncing with the system, and anything that "reactivates" it allows it to display again...
Just my observations, yours may vary
Well like I said at the begining I just thought it was interesting and I figured id share what I found..and I don't know a whole lot about linux and codes and scripts so thanks for the info and also I didn't write it, just found it..
Sent from my DROID2 using XDA App

[Q] Unable to move apps on tablet

Alright I want to move my location spoofer app to /system/app so I can watch my hometown team on MLB.tv. This worked fine on my LG Nitro running CM10, but when I tried on my stock infinity (rooted, not updated), it won't let me. It just says "paste failed" when I try to move it. Anyone have any advice as to how to fix this?
Have y o u tried mounting the directory as rw so you can paste in there?
Sent from my ASUS Transformer Pad TF700T using xda premium
Sinker1345 said:
Have y o u tried mounting the directory as rw so you can paste in there?
Sent from my ASUS Transformer Pad TF700T using xda premium
Click to expand...
Click to collapse
No I haven't, but just to clarify the app is currently installed on the internal memory, not sd card. I am just trying to move it from one folder to a different folder. Is this still necessary?
It may be, if the directory is mounted as read only you won't be able to copy into it
Sent from my SCH-I535 using xda premium
mgoblueno1 said:
No I haven't, but just to clarify the app is currently installed on the internal memory, not sd card. I am just trying to move it from one folder to a different folder. Is this still necessary?
Click to expand...
Click to collapse
In normal operation, /system is mounted read-only, so you need to remount it as writable first. Root-enabled file managers usually have an option for that.
Thanks guys, will try this out tonight
Alright I tried editing permissions on the system folder, the app, and the root manager app, but they were already all checked (read, write, execute). I also tried just cut/pasting a picture i took to /system/app and I didn't work either...
EDIT: I just tried the remount app, and rewrote the /system folder as rw and it still didn't work
If anyone else has any suggestions on how to fix this let me know!
mgoblueno1 said:
If anyone else has any suggestions on how to fix this let me know!
Click to expand...
Click to collapse
mgoblueno1 said:
Alright I tried editing permissions on the system folder, the app, and the root manager app, but they were already all checked (read, write, execute). I also tried just cut/pasting a picture i took to /system/app and I didn't work either...
Click to expand...
Click to collapse
That's not how you do it. Those are chmod permissions for files and directories. That controls which user groups have rwx permissions for access; nothing to do with mounts. To allow for rw access to /system you need to either do it from within a root browser (ES file explorer, tools), the remount app, or type this into the terminal:
Code:
su
mount -o remount,rw /system
Copy your file or directory, then remount the system back as ro (so you don't accidentally delete something - that's why its mounted ro by default)
Code:
su
mount -o remount,ro /system
mgoblueno1 said:
EDIT: I just tried the remount app, and rewrote the /system folder as rw and it still didn't work
Click to expand...
Click to collapse
I just tried this and it works fine. After you made your selections for /system and rw, did you click the top "Remount" button and get a small pop-up "Success!..." notification that it completed its operation? I also verified that I could copy a test file into /system/app after toggling these settings. You are doing something wrong. Read this all again.
[Edit] The only reason I can think of that it might be failing is you are really not rooted or have a corrupt root. If all else fails, run the Root Checker app to see if you really have valid root. Open up your su app and see if it prompts you to update its binaries and let it if it does (superSU).
elfaure said:
That's not how you do it. Those are chmod permissions for files and directories. That controls which user groups have rwx permissions for access; nothing to do with mounts. To allow for rw access to /system you need to either do it from within a root browser (ES file explorer, tools), the remount app, or type this into the terminal:
Code:
su
mount -o remount,rw /system
Copy your file or directory, then remount the system back as ro (so you don't accidentally delete something - that's why its mounted ro by default)
Code:
su
mount -o remount,ro /system
I just tried this and it works fine. After you made your selections for /system and rw, did you click the top "Remount" button and get a small pop-up "Success!..." notification that it completed its operation? I also verified that I could copy a test file into /system/app after toggling these settings. You are doing something wrong. Read this all again.
[Edit] The only reason I can think of that it might be failing is you are really not rooted or have a corrupt root. If all else fails, run the Root Checker app to see if you really have valid root. Open up your su app and see if it prompts you to update its binaries and let it if it does (superSU).
Click to expand...
Click to collapse
Thanks this worked!
mgoblueno1 said:
Thanks this worked!
Click to expand...
Click to collapse
Glad you got it worked out. Which way worked for you?

can't remount /system as rw

I think I'm starting to go slightly insane here.
Can't for the life of me mount /system as rw, it's only ro.
Ways I've tried:
- using mount command in terminal emulator
- using rw remount button in total commander
- using adb shell to do the same thhing as terminal emulator
i have supersu and all of the above were granted superuser but still no luck
here's relevant part of console output, but it doesn't do anything.
Code:
D:\Downloads\adt-bundle-windows-x86_64-20131030\sdk\platform-tools>adb shell
[email protected]:/ $ su
su
[email protected]:/ # mount
mount
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 ro,seclabel,relatime,data=ordered 0 0
[email protected]:/ # mount -o rw,remount /dev/block/platform/msm_sdcc.1/by-name/system /system
the directory stays read-only.
the whole reason i'm trying to do this is so i can stick in a boot animation (link) into system/media ...is there an easier way? i've tried 3 different file explorers with super but they all fail because it's not rw.....
and adb cant push to it either because it's rw.......
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit
rootSU said:
mount -o rw,remount /dev/block/mmcblk0p25 /system
Or put it in /data/local
Click to expand...
Click to collapse
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
DryEagle said:
well after trying some more (the terminal command still didnt want to do anything) i managed to get antek explorer to mount it as rw and was able to copy in the new bootanimation.zip
except that now it's unreadable file-
as in, if i try to open the zip in /system/media it just says cannot read file, if i copy it back out to a different folder it opens fine again.
and the boot animation itself, well, it just plays a tiny one with the word 'android' across it, which i guess is the default if it cant find one.
putting the file into /data/local doesn't change anything (doesnt overwrite the nexus one, doesnt overwrite the little word android)
since i'm new to all this stuff i can think probably i missing something simple, but do i have to somehow initialise new bootanimation or something? its the right file in the right place, dont know why it dont work.......
edit: here's an imgur album showing this stuff, maybe you can spot something there? http://imgur.com/a/l9sXa
edit2: just to test, i installed https://play.google.com/store/apps/details?id=com.klpu.android.bootanimation and it did indeed change the animation. so it's just a problem with doing it manually. unfortunately that app doesn't let you load in a custom one, only the preinstalled ones, so it's not much use to me overall...
Click to expand...
Click to collapse
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
rootSU said:
hint, look at the bootanimation.zip file permissions once you moved it to /system/media
Click to expand...
Click to collapse
thank you!! this solved it!
No worries
-----------------------
Sent via tapatalk.
I do NOT reply to support queries over PM. Please keep support queries to the Q&A section, so that others may benefit

[Q] Remove bloat. Read only file system....help!!!

I could really use some help here....I have a Visual Land Prestige 7G running 4.1.1. After much hair pulling I finally managed to root it using cydia, and snappea, but am still unable to remove bloatware (angry birds, play books, etc). I have tried titanium backup, link2sd, es file explorer, and several others. All they manage to do (if anything) is remove the updates. I know nothing about the terminal, but tried this command "mount -o rw,remount -t yaffs2 /dev/block/mtdblock3" but it said "mount: read only file system". So, I'm assuming that is my problem. I tried using Es explorer to change that to r/w, but it won't. Any ideas on how to get around this?
???
No ideas?

Categories

Resources