Pushing a file to system/app folder - EVO 4G Q&A, Help & Troubleshooting

Can someone please tell me how to push an apk file to the /system/app folder? I'm trying to overwrite a file there.
"Read-only file system" is the error i get.
Thanks.

Run "adb remount rw" first.

Related

Swype

I searched around and couldn't find a definative answer. How can I take my backed up copy of swype from my g2 nandroid backup (or the official rom) and install it after installing cyanogenmod"
Sent from my T-Mobile G2 using XDA App
If you want you could always download the stock rom (check dev forums) and take the Swype.apk out of /system/apps. You're also going to need to get the libSwypeCore.so from /system/lib good luck.
*thanks nvigrass, wasnt sure where it was
it is in /system/lib
here's a thread with some instructions: http://forum.xda-developers.com/showthread.php?t=837599
I ended up figuring it out with the first post, after figuring out how to open the /system/ nandroid img.
Sent from my T-Mobile G2 using XDA App
How Do you take swype.apk out of system/apps?
waffleman911 said:
If you want you could always download the stock rom (check dev forums) and take the Swype.apk out of /system/apps. You're also going to need to get the libSwypeCore.so from /system/lib good luck.
*thanks nvigrass, wasnt sure where it was
Click to expand...
Click to collapse
How do you do that? And what program do you have to use since System is an .img file thanks.
Brazildiogo732 said:
How do you do that? And what program do you have to use since System is an .img file thanks.
Click to expand...
Click to collapse
have u heard of google?
http://lmgtfy.com/?q=extract+.img+in+windows
Thanks
waffleman911 said:
If you want you could always download the stock rom (check dev forums) and take the Swype.apk out of /system/apps. You're also going to need to get the libSwypeCore.so from /system/lib good luck.
*thanks nvigrass, wasnt sure where it was
Click to expand...
Click to collapse
sundar2012 said:
have u heard of google?
http://lmgtfy.com/?q=extract+.img+in+windows
Click to expand...
Click to collapse
hey thanks man . i got MagicISO but it is not letting me explore the system file, i can't even open it..what'd you use?
Okay here is what I did and it worked. Using SU File manager (found in the market if you search "root explorer") and on the stock ROM, copy the lib and apk files from /system/app and /system/lib. I copied them to the root of my sd card. Wipe everything and install CM and the addon. Grab SU File manager again and find the lib file on your SD card. copy it. There are two little buttons on the top of SU File manager with an S and a D. I pressed both of them to mount system and data as read/write. Go to system/lib and paste the lib file. Verify that it is there and since there are so many files sort by size its like 998kb. Then just use SU File Manager or astro or whatever to find Swype.apk on your sd card. Install it from there. With Astro click it and "open app manger." Then go to keyboard settings and enable it as an input method. Go to swype settings and it should not FC if you did this stuff correctly. Set your settings and enjoy! Oh yea dont forget to uninstall and refund SU File manager
Brazildiogo732 said:
hey thanks man . i got MagicISO but it is not letting me explore the system file, i can't even open it..what'd you use?
Click to expand...
Click to collapse
If you are using windows, there is a command prompt application called unyaffs.exe that extracts the whole thing in windows. Might even work in linux with wine
jkoenig00 said:
Okay here is what I did and it worked. Using SU File manager (found in the market if you search "root explorer") and on the stock ROM, copy the lib and apk files from /system/app and /system/lib. I copied them to the root of my sd card. Wipe everything and install CM and the addon. Grab SU File manager again and find the lib file on your SD card. copy it. There are two little buttons on the top of SU File manager with an S and a D. I pressed both of them to mount system and data as read/write. Go to system/lib and paste the lib file. Verify that it is there and since there are so many files sort by size its like 998kb. Then just use SU File Manager or astro or whatever to find Swype.apk on your sd card. Install it from there. With Astro click it and "open app manger." Then go to keyboard settings and enable it as an input method. Go to swype settings and it should not FC if you did this stuff correctly. Set your settings and enjoy! Oh yea dont forget to uninstall and refund SU File manager
Click to expand...
Click to collapse
I actually paid for root explorer because its useful enough to be worth the money and someone took their time to write the application. I did use Root Explorer to go in and paste the files into the appropriate directories after getting them extracted.
Opening System
jkoenig00 said:
Okay here is what I did and it worked. Using SU File manager (found in the market if you search "root explorer") and on the stock ROM, copy the lib and apk files from /system/app and /system/lib. I copied them to the root of my sd card. Wipe everything and install CM and the addon. Grab SU File manager again and find the lib file on your SD card. copy it. There are two little buttons on the top of SU File manager with an S and a D. I pressed both of them to mount system and data as read/write. Go to system/lib and paste the lib file. Verify that it is there and since there are so many files sort by size its like 998kb. Then just use SU File Manager or astro or whatever to find Swype.apk on your sd card. Install it from there. With Astro click it and "open app manger." Then go to keyboard settings and enable it as an input method. Go to swype settings and it should not FC if you did this stuff correctly. Set your settings and enjoy! Oh yea dont forget to uninstall and refund SU File manager
Click to expand...
Click to collapse
Hey! When you go about opening /system/apps and system/lib, where do you go to open it? And How do you open it? The only system I've seen cannot been opened Idk how to do it and I'm seriously confused, thanks!!
Brazildiogo732 said:
Hey! When you go about opening /system/apps and system/lib, where do you go to open it? And How do you open it? The only system I've seen cannot been opened Idk how to do it and I'm seriously confused, thanks!!
Click to expand...
Click to collapse
What app are you using? You need to use a root explorer app like SU File Manager or Root Explorer.
thanks! got the files! i am about to intall! thanks!!
Got the Files, but no luck :/
jkoenig00 said:
Okay here is what I did and it worked. Using SU File manager (found in the market if you search "root explorer") and on the stock ROM, copy the lib and apk files from /system/app and /system/lib. I copied them to the root of my sd card. Wipe everything and install CM and the addon. Grab SU File manager again and find the lib file on your SD card. copy it. There are two little buttons on the top of SU File manager with an S and a D. I pressed both of them to mount system and data as read/write. Go to system/lib and paste the lib file. Verify that it is there and since there are so many files sort by size its like 998kb. Then just use SU File Manager or astro or whatever to find Swype.apk on your sd card. Install it from there. With Astro click it and "open app manger." Then go to keyboard settings and enable it as an input method. Go to swype settings and it should not FC if you did this stuff correctly. Set your settings and enjoy! Oh yea dont forget to uninstall and refund SU File manager
Click to expand...
Click to collapse
I got the files, but its not working on Desire Z rom... All it does is force close.. any ideas, anyone?!
you need to make sure the Swype Lib file copied into the /system/lib directory. Even if the app says it copied it, restart the app and navigate to the /system/lib directory and make sure the file is there. Then install swype normally. If the lib file is not successfully copied, swype will FC all the time.
not letting me paste!
jkoenig00 said:
you need to make sure the Swype Lib file copied into the /system/lib directory. Even if the app says it copied it, restart the app and navigate to the /system/lib directory and make sure the file is there. Then install swype normally. If the lib file is not successfully copied, swype will FC all the time.
Click to expand...
Click to collapse
Cool! thanks guys! I found how to do everything, but its not letting me paste into /system/lib :/ any sugestions? :/
it says "this folder is read only" and its refering to the /system/lib ..what do i do?
Open terminal emulator and type this
mount -o remount,rw /system
Then try again.
[G2/HTC Vision]
Still not working
luis86dr said:
Open terminal emulator and type this
mount -o remount,rw /system
Then try again.
[G2/HTC Vision]
Click to expand...
Click to collapse
After I put that in, it comes up "mount [-r] [-w] [-o options] [-t type device directory] and it still doesnt let me paste into the lib folder...whats happening? lol

ADB help??

I was advised to rename a file and I did. My phone will not boot. Can you tell me how to use adb to rename the file back. It's in /data/data/com.android.providers.telephony/telephony.db I renamed it to telephony.db.old
I got to the data/data directory, but now I am stumped on how to get into com.android.providers.telephony
It's telling me that com.android.telephony/providers is not a directory..
Try wiping your dalvik-cache/cache from your recovery
Sent from my PC36100 using XDA App
EVOme said:
I was advised to rename a file and I did. My phone will not boot. Can you tell me how to use adb to rename the file back. It's in /data/data/com.android.providers.telephony/telephony.db I renamed it to telephony.db.old
I got to the data/data directory, but now I am stumped on how to get into com.android.providers.telephony
Click to expand...
Click to collapse
Try:
Code:
adb shell mount /data<enter>
adb shell mv /data/data/com.android.providers.telephony/telephony.db.old /data/data/com.android.providers.telephony/telephony.db<enter>
This is assuming you renamed the file in question and kept it in the same directory.

[Resolved] how to copy apk to /system/app?

How to copy apk to /system/app?
My phone is Arc and installed cm9 fxp126, and I want to install this theme "AOSP themed Lockscreen" at http://forum.xda-developers.com/showthread.php?t=1724602.
At cmd, I did as shown at attached picture.
Also I tried with "root explorer, but when moving file to "system/app" the error message came "read only". I can change "r/w" and "r/o" at root directory, but I could not change directory permissions at "/system" and "/system/app".
Please let me know how to move or copy thi apk to "/system/app".
Thanks in advance.
You've not remounted system to be r/w, I believe in root explorer there should be an option to enable remount.
Edit- do you have root?
Sent from my LT18i using XDA
In command prompt
adb remount first and then push the file to /system/app
Chmod the file to change the permissions
Sent from my LT15i using XDA
comocandle said:
How to copy apk to /system/app?
My phone is Arc and installed cm9 fxp126, and I want to install this theme "AOSP themed Lockscreen" at http://forum.xda-developers.com/showthread.php?t=1724602.
At cmd, I did as shown at attached picture.
Also I tried with "root explorer, but when moving file to "system/app" the error message came "read only". I can change "r/w" and "r/o" at root directory, but I could not change directory permissions at "/system" and "/system/app".
Please let me know how to move or copy thi apk to "/system/app".
Thanks in advance.
Click to expand...
Click to collapse
so root explorer wont mount the system partition?
it is easy to mount the file system from command prompt but if root explorer cant do it there could be a problem with your rooting
can you confirm that in the system folder you cant press the "mount r/w" button
Pvy.
[Please ignore. Posted without reading properly. Just read the title].
Swyped from my SE Xperia arc (LT15i) using Tapatalk 2
smartarse93 / yes, I have root with "DooMLoRD_v4.307_ROOT-zergRush" script.
zangetsu2188 / I'll try "adb remount", then Chmod.
pvyParts / I can press "r/w" button at "/" root directory, but could not press at "/system" and "/system/app".
Thanks, "adb remount" works!
comocandle said:
Thanks, "adb remount" works!
Click to expand...
Click to collapse
No problem
Sent from my LT15i using XDA

can delete file/ folder in sd card!

Its really bothering me. When flashing a Rom in the aroma I choose this red theme I never used. Well in the vrtheme folder on my SD card (internal storage) there is a bunch of. PNG files that show up in my gallery. If I try to delete from gallery they just come back. And if try to delete from file explorer with root permissions. It says file can not be deleted. This doesn't make sense or am I missing something?
Help would be appreciated.
Thank you
Give this a shot (assuming you are rooted)
find the folder they are in (for arguments' sake let's say they are in /storage/sdcard0/vrtheme/
download terminal emulator app
open it and type the following commands without quotes...
"su"
"rm /storage/sdcard0/vrtheme/*.png"
see if they are gone now.
Admiral Sir Manley Power said:
Give this a shot (assuming you are rooted)
find the folder they are in (for arguments' sake let's say they are in /storage/sdcard0/vrtheme/
download terminal emulator app
open it and type the following commands without quotes...
"su"
"rm /storage/sdcard0/vrtheme/*.png"
see if they are gone now.
Click to expand...
Click to collapse
Thank for trying to help. But if I go to directory all the way down to the PNG file I would have to repeat like 150 times
But anyways when I tried it. I was granted rights for su. Then received the # in terminal.
Then I did rm followed by file path.
It said permissions denied :/
Just wanted to report my findings. If you do a search for aroma file manager on xda. With that you can delete anyfile on SD card if given operation denied with any normal file explorer with root access.
FYI - sdcard0 is not really your SD Card at all. sdcard0 is the internal storage memory. extSdCard is your actual SD Card. And UsbDriveA, UsbDriveB, etc.. are your external drives like USB thumb drive, USB external drive, etc.
If you deleted file/s and then later came back that is because the file/s are being put back with the related app/s that the file/s are related too. Deal with the related app/s in order to stop the deleted file/s from reappearing.
If you can't delete the file/s at all then change the permissions of the file/s you want to delete and/or change the permissions with the folder that holds the file/s to be deleted. Then you can delete the file/s. You can change permissions with a file manager like Root Explorer, though you need to be rooted to change some permissions. Be careful. Deleting the wrong file/s can make your device bricked.
---------- Post added at 01:08 PM ---------- Previous post was at 12:34 PM ----------
trevor7428 said:
Thank for trying to help. But if I go to directory all the way down to the PNG file I would have to repeat like 150 times
But anyways when I tried it. I was granted rights for su. Then received the # in terminal.
Then I did rm followed by file path.
It said permissions denied :/
Click to expand...
Click to collapse
You wouldn't have to delete each .png file separately. Just type exactly what Admiral Sir Manley Power typed. The line command he wrote uses the wild card ( * ) so the command would delete all .png files within that folder at the same time.
Change the permissions of the folder that holds the files. Then try it. Make sure the app related to the files are not still caching the files. Caching the files would make the files to be currently in use. That would make the files not available to be deleted. You can also use another theme app, force kill the app related to the .png files, then delete the files. Then go back to that theme app.
JaguarXT said:
FYI - sdcard0 is not really your SD Card at all. sdcard0 is the internal storage memory. extSdCard is your actual SD Card. And UsbDriveA, UsbDriveB, etc.. are your external drives like USB thumb drive, USB external drive, etc.
If you deleted file/s and then later came back that is because the file/s are being put back with the related app/s that the file/s are related too. Deal with the related app/s in order to stop the deleted file/s from reappearing.
If you can't delete the file/s at all then change the permissions of the file/s you want to delete and/or change the permissions with the folder that holds the file/s to be deleted. Then you can delete the file/s. You can change permissions with a file manager like Root Explorer, though you need to be rooted to change some permissions. Be careful. Deleting the wrong file/s can make your device bricked.
Click to expand...
Click to collapse
I no SD card should be external. But on our note 2 the directory for internal is labeled SD card. Then vrtheme was in a folder named. " 0" I tried to change permissions and even the owner of file and folder, but it wouldn't let me with root permissions. That's why I was so stumped I had to post on xda.
And its not that the file would get deleted then put back it was I couldn't delete at all. There was no app to my knowledge for vrtheme.
trevor7428 said:
Thank for trying to help. But if I go to directory all the way down to the PNG file I would have to repeat like 150 times
But anyways when I tried it. I was granted rights for su. Then received the # in terminal.
Then I did rm followed by file path.
It said permissions denied :/
Click to expand...
Click to collapse
try this instead...
rm -f /storage/sdcard0/vrtheme/*.png"
if that doesn't work... try this....
chmod 777 /storage0/vrtheme
chmod 777 /storage0/vrtheme/*.png
rm -rf /storage/storage0/vrtheme
Admiral Sir Manley Power said:
try this instead...
rm -f /storage/sdcard0/vrtheme/*.png"
if that doesn't work... try this....
chmod 777 /storage0/vrtheme
chmod 777 /storage0/vrtheme/*.png
rm -rf /storage/storage0/vrtheme
Click to expand...
Click to collapse
I thanked everyone who replied, but I actually got it figured out. I flashed this zip file in recovery called aroma file manager. While let me delete whole folder from recovery. I appreciate all who helped.

Cant Create Folder in Internal Memory '/' - rooted

I'm at bit of a loss here. Been rooting and all that for quite a long time.
Anyway, my freind has a mobile network not found error, upon investigation, it appeared he has *4999* IMEI problem. Fortuately, it appears he has EFS folder back up. I'm trying to restore it etc, but just am unable to create any folders in the internal memory of the phone, I'm rooted and on latest omnirom.
Create on your Phone Memory(Not Extrenal sd!!) a folder called "efsbackup"(without quotes)
Copy all files & folders from the EFS backup into "efsbackup" folder(The files are like in the picture)
Using root explorer, go to "efsbackup folder, select all files & folders there, and click Copy.
Still in root explorer, go to "efs" folder of your device(It is located where all main folders like data, system, etc.).
In "efs" folder, click paste. It will ask you if you want to replace your files, select replace to all files(So all your files from "efsbackup" folder will be in "efs" folder)
Now open terminal emulator
Write the following:
Code:
su
Then click enter. It will ask for super user permission, give it permissions.
Now write:
Code:
busybox chown 1001:1001 /efs/nv_data.bin
Then click enter.
Now write:
Code:
busybox chmod 06755 /efs/nv_data.bin
Then click enter.
Reboot device. Now everything should work.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=2389426
Please help
[SOLVED]
Just tried another program from playstore called 'Root Browser'
phrozenflame said:
[SOLVED]
Just tried another program from playstore called 'Root Browser'
Click to expand...
Click to collapse
Ok apparentely it copies the files but not the folders or i cant see the original folders and it copies them with 'folderame-copy' affix :|

Categories

Resources