Replacing 'SYSTEM' APK - Desire General

I want to know how I can replace a system apk with a modified version.
I have been unsuccessful by using such tools as 'Root Explorer' where I moved my modified APK to /root/system/app and when I replaced it with 'r/w' permissions all it seem to have done is deleted the original version.
I must not that I am on a DT-A2SD ROM, and figured it has something to do with that, so I placed the apk in /sd-ext directory but as the file names are different such as 'com...' it didn't make any difference.
Many thanks.

You have to be S-OFF to replace a system file while booted.
You can still replace it via the adb method while you are booted into recovery.

Ah, Okay....Could you provide me a guide to replacing system APK using APK preferably. Thank you.

ADB Guide

Related

[Rooted] Unable to install system APKs

Hello,
I'm running into a problem with installing system APKs on a the rooted EL29 GB 2.3.6.
I've extracted system APKs from other EL29 GB2.3.6 ROMs as well as copied APKs from my own current ROM's /system/apps folder (examples would include the calculator and camera APKs.)
I try to follow the guide @ http://forum.xda-developers.com/showthread.php?t=1414355Epic
Using Root Explorer I place these APK files in the /system/app folder, mounting the folder as R/W, adjusting the file permissions to (rw-r--r--), I click the file and choose install, and finally I get a progress bar followed by a message that says "Application not installed."
When I try to use ADB I get the following message:
c:\ADB>adb install camera.apk
* daemon not running. starting it now *
* daemon started successfully *
2672 KB/s (1319121 bytes in 0.482s)
pkg: /data/local/tmp/camera.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Can you please help me or at least teach me why some APKs install just fine and others wont.
TheRealJobe said:
Hello,
I'm running into a problem with installing system APKs on a the rooted EL29 GB 2.3.6.
I've extracted system APKs from other EL29 GB2.3.6 ROMs as well as copied APKs from my own current ROM's /system/apps folder (examples would include the calculator and camera APKs.)
I try to follow the guide @ http://forum.xda-developers.com/showthread.php?t=1414355Epic
Using Root Explorer I place these APK files in the /system/app folder, mounting the folder as R/W, adjusting the file permissions to (rw-r--r--), I click the file and choose install, and finally I get a progress bar followed by a message that says "Application not installed."
When I try to use ADB I get the following message:
c:\ADB>adb install camera.apk
* daemon not running. starting it now *
* daemon started successfully *
2672 KB/s (1319121 bytes in 0.482s)
pkg: /data/local/tmp/camera.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Can you please help me or at least teach me why some APKs install just fine and others wont.
Click to expand...
Click to collapse
Hmmm. I have always just put APK's on the SD card, selected them in rootexplorer and installed. When one won't install, it is usually either a conflict between the apk and the OS version OR a conflict between what I am trying to install and something already installed.
From the error message it sounds like a problem reading the internal manifest of the app .... But this is just a guess.
TheRealJobe said:
Hello,
I'm running into a problem with installing system APKs on a the rooted EL29 GB 2.3.6.
I've extracted system APKs from other EL29 GB2.3.6 ROMs as well as copied APKs from my own current ROM's /system/apps folder (examples would include the calculator and camera APKs.)
I try to follow the guide @ http://forum.xda-developers.com/showthread.php?t=1414355Epic
Using Root Explorer I place these APK files in the /system/app folder, mounting the folder as R/W, adjusting the file permissions to (rw-r--r--), I click the file and choose install, and finally I get a progress bar followed by a message that says "Application not installed."
When I try to use ADB I get the following message:
c:\ADB>adb install camera.apk
* daemon not running. starting it now *
* daemon started successfully *
2672 KB/s (1319121 bytes in 0.482s)
pkg: /data/local/tmp/camera.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
Can you please help me or at least teach me why some APKs install just fine and others wont.
Click to expand...
Click to collapse
That would be because you are trying to "install" a system app to data. This will not work. Try this..
Code:
adb push yourapp.apk /system/app
Code:
adb reboot
enjoy.
sottey said:
Hmmm. I have always just put APK's on the SD card, selected them in rootexplorer and installed. When one won't install, it is usually either a conflict between the apk and the OS version OR a conflict between what I am trying to install and something already installed.
From the error message it sounds like a problem reading the internal manifest of the app .... But this is just a guess.
Click to expand...
Click to collapse
Thanks for the response. Is there an easy way to view/edit the manifest file on the phone. I would like to skip installing the entire Android SDK/Eclipse on my PC.
barnacles10 said:
That would be because you are trying to "install" a system app to data. This will not work. Try this..
Code:
adb push yourapp.apk /system/app
Code:
adb reboot
enjoy.
Click to expand...
Click to collapse
I tried this as well, and I recieved the same problem when attempting to install the app via launching on phone.
Heres where it gets even stranger:
I copied /system/app/protips.apk and protips.odex to /system/
Then I used ROM toolkit to uninstall the protips program.
I rebooted the phone, mounted /system as RW and copied the apk and odex back to /system/app via Root Explorer. I tried to install this via running the apk in Root Explorer from /systme/app and get the same message about the app not being installed.
So here I am with an APK from the very ROM I'm running and I still cant resintall.
TheRealJobe said:
I tried this as well, and I recieved the same problem when attempting to install the app via launching on phone.
Heres where it gets even stranger:
I copied /system/app/protips.apk and protips.odex to /system/
Then I used ROM toolkit to uninstall the protips program.
I rebooted the phone, mounted /system as RW and copied the apk and odex back to /system/app via Root Explorer. I tried to install this via running the apk in Root Explorer from /systme/app and get the same message about the app not being installed.
So here I am with an APK from the very ROM I'm running and I still cant resintall.
Click to expand...
Click to collapse
The point is for system applications, you just need to copy the .apk file to /system/app, fix permissions, and that's it. After the .apk file is placed in that folder, you do NOT need to select the .apk file and try to install it. It already is installed. Just reboot.
Got error as mentioned above
beezar said:
The point is for system applications, you just need to copy the .apk file to /system/app, fix permissions, and that's it. After the .apk file is placed in that folder, you do NOT need to select the .apk file and try to install it. It already is installed. Just reboot.
Click to expand...
Click to collapse
i follow all the steps
1. copy the apk in /system/app
2. edit the permission to rw-r--r--
3. reboot my phone
but not able to see that apk install in my phone can any buddy tell me whats the problem.

Accidently deleted GoogleServicesFramework.apk, how can I fix the problem?

I searched the forum. It seems a rare case that misdeleting the service application.
The story is quite simple. I wish to maximize the use of internal memory so I moved some applications from /system/app to /vendor, where roughly has 120mb unused space. All these files had been created symbol links under /system/app. Most of them worked fine, except the GoogleServicesFramework.apk, which I reckon verifying its physical path.
So I moved it back. The sad part was that I forgot the symbol link was still there. The file overrode the symbol link which linked to itself therefore axed it to 0 byte. Soon I found how serious it was. All google related service were down, the play store, the talk, the map, etc. The google service must do some verification so I can't simply find a GoogleServicesFramework.apk to replace it. I can't install it either. It failed instantly.
I don't know the background of GoogleServicesFramework.apk. Maybe I should remove all related applications then find a package to install all of them. Is there anyone knowing how to fix this problem?
My Xperia Play is 800a, version 2.3.4 kernel 2.6.32.9-perf build 4.0.2.A.0.42. It is my first andriod device and here is my first post so please be kind.
Wait for someone here to upload the file for you or back up your files and reflash.
well as you said you tried to install it and it instantly failed, it will
you should get that app and copy paste it to system/framework and before that CHANGE ITS PERMISSIONS
how? copy it to system folder go to permissions using root explorer and change them to r-w-r-r i.e tick first three row buttons and 2 column buttons
creative_md said:
well as you said you tried to install it and it instantly failed, it will
you should get that app and copy paste it to system/framework and before that CHANGE ITS PERMISSIONS
how? copy it to system folder go to permissions using root explorer and change them to r-w-r-r i.e tick first three row buttons and 2 column buttons
Click to expand...
Click to collapse
yeah, I've checked the permission. It's rw-r-r. But every GoogleServicesFramework.apk I've downloaded are slightly different in size. I suspect this file is highly sensitive to versions.
xiyue077 said:
yeah, I've checked the permission. It's rw-r-r. But every GoogleServicesFramework.apk I've downloaded are slightly different in size. I suspect this file is highly sensitive to versions.
Click to expand...
Click to collapse
i think you should try them and what you have got to lose? if you want your system (without GSF.apk) back just make a nandroid backup.
and you always got option of flashing stock firmware......
Another thing you can try is download a stock .ftf file, extract it and look for the file within the system files.. Copy paste and Bobs your uncle!
albanezi said:
Another thing you can try is download a stock .ftf file, extract it and look for the file within the system files.. Copy paste and Bobs your uncle!
Click to expand...
Click to collapse
The problem has been fixed. Thanks to every one. You guys gave me a lot of hints. The solution was like that:
1, uninstalled the play store from setup and removed the incorrect version GoogleServicesFramework.apk under /system/app
2, extracted the GoogleServicesFramework.apk from a ftf package carried 2.3.4 version. It should be 2MB around. The previous downloaded one was only 1MB. Maybe that's the reason it failed to install.
3, installed it, not to copy to /system/app! Then there will be a file like com.xxx.gsp.apk under /data/app directory.
4, rebooted the phone and would see the google store appeared. All services returned normal. Hooray!
I didn't try to move it back to /system. Most apps in /data had been moved to /system and /vendor so there are 200mb left in /data, fare enough to me

[Q] HTC Locations' App. on other Custom ROMs

Hi,
I need to install HTC's Locations app on any custom ROM (ie: MyOneV or CM9/CM10)
So any1 can help me with this ?
(i tried it though, by moving these files (from MyOneV5.0FX Removed apks) htclocation.apk,locationpicker.apk,locatiooninstaller.apk in System/app folder bt it didn't worked)
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
ckpv5 said:
When you move those files to system app manually, you need to put right permission rw-r--r-- then reboot.
Or the simplest way is, open the Removed_Apks_RC5.x.zip with 7-zip (not extract), delete all apks that you don't need and leave those location files in zip.
Then flash the zip in recovery.
And these files will not work on a CM rom.
Click to expand...
Click to collapse
:good:
Thankz
I tried that too, by removing all apks from zip keeping the said three files & flash it in recovery, still it doesn't appeared in apps!
Though i'll try again may b missed something or some file..
I just tried it, it works.
Your filename looks different, attached here the files from the Removed_Apks_RC5.x.zip, I named it to location.zip. Flash in recovery.
It Worked: Thanx

functions root after restarting

Hi, I have the rom European stock "root" I have used several applications to edit the build.prop and delete some files from /system/app and /system/priv-app, with is file explorer give the root permissions, I delete apps and I modify the build.prop and goes well but when I restart the terminal, applications are back in /system/app and build.prop is as if she had not changed. Any idea what it might be?
Your device, although rooted, still has protection against writing to /system.
Flash the file from THIS thread, then repeat what you did, and the changes will stay this time.
thank you very much, worked very well

How To Guide [GUIDE] Swap Back and Recent_Apps Icons on Navigation Bar (3 button navigation). Should work for most any rooted phone.

This is a simple Mod that can be done without decompiling, editing, and recompiling the SystemUI.
1. Grab the SystemUIGoogle.apk (or SystemUI.apk if you are on a custom Rom). system/system_ext/priv-app/SystemUIGoogle folder for those on Android 11, 12, or 13.
2. Unzip the apk. I do it on my file explorer app (I highly recommend X-plore by lonelcatsgame). The files you need are back.xml and recent_apps.xml. Those are found in the res/layout folder. Switch the names by renaming them.....back.xml to recent_apps.xml......recent_apps.xml to back.xml.
3. Replace the original ones with the edited ones and zip the apk back up. If you use X-Plore, your apk remains apk. If you use a zip program you will need to rename it from .zip to .apk.
You are done. No need to flash, just put the new SystemUIGoogle.apk/SystemUI.apk in the appropriate folder in the module below (contains module for both UI's) and copy to the root drive on your phone:
data/adb/modules
Reboot and your icons should be switched.....as always, I'm not responsible for anything that happens, etc, etc.
This can also be applied to other SystemUI mods you might already have applied on your phone. Find the module where your SystemUI is located. Copy the SystemUI, apply the mod, then copy the SystemUI back to the original module.
I gave up on pixel and switched back to my OnePlus 8 Pro primarily because of the nav buttons... I absolutely can NOT do gesture navigation, far too many issues! And no solution i found worked... It either failed to install or soft bricked the phone...
I'm booting my P6P back up to give this a go!
This did not work for me.
PMad said:
This did not work for me.
Click to expand...
Click to collapse
If this doesn't work, or the attached, and you are flashing via magisk app, I don't know what to say.... other than, do you have anything else installed? It isn't a question whether these work (they do ).
Tulsadiver said:
If this doesn't work, or the attached, and you are flashing via magisk app, I don't know what to say.... other than, do you have anything else installed? It isn't a question whether these work (they do ).
Click to expand...
Click to collapse
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too
PMad said:
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too
Click to expand...
Click to collapse
On step 3, by Root folder I mean the Root of that package I extracted
PMad said:
Maybe I misread a portion of your instructions? All I did was prior to this was a factory reset, updated Android (I was 2 versions behind), rooted it, installed Nova launcher and Root Explorer, updated all the existing apps in the play store, then went through your instructions. Here's what I did:
I went to the following folder and copied SystemUIGoogle.apk to my downloads folder: system/system_ext/priv-app/SystemUIGoogle
I used Root Explorer to extract it. In the extracted folder, I renamed both files. back.xml to recent_apps.xmll, recent_apps.xml to back.xml, and finally recent_apps.xmll to recent_apps.xml
Went back to the Root folder and zipped up the files, then renamed it from SystemUIGoogle.zip back to SystemUIGoogle.apk. I did notice this file is now 15mb instead of the original 37mb. Maybe I need to verify there's no compression in the zip?
Downloaded your navbar and extracted it.
Placed the apk into the system/system_ext/priv-app/SystemUIGoogle folder that I extracted.
Zipped it back up to navbarswap.zip
Moved the zip over to data/adb/modules
Rebooted
After that, no change. I tried to install it with Magisk and that failed too
Click to expand...
Click to collapse
You don't move a zip to data/adb/modules....you move one of the folders from that zip. One is for custom roms (systemui), the other for stock pixel (systemuigoogle). You can't upload folders here so I zipped the two together.
Like this?
PMad said:
Like this?
View attachment 5633585
Click to expand...
Click to collapse
Exactly.
Tulsadiver said:
Exactly.
Click to expand...
Click to collapse
That did it right there. As you could see in the screenshot, I switched over to the app you recommended and that didn't reduce the file size. I'm pretty sure that would have become an issue if I didn't swap.
PMad said:
I gave up on pixel and switched back to my OnePlus 8 Pro primarily because of the nav buttons... I absolutely can NOT do gesture navigation, far too many issues! And no solution i found worked... It either failed to install or soft bricked the phone...
I'm booting my P6P back up to give this a go!
Click to expand...
Click to collapse
I thought the same. I have big muscular hands and right it would be an issue. Been using it over 16 months now and when I use any other phone, I think using the navbar is clumsy. Can't hurt to try it for a weekend.

Categories

Resources