[Q] Can't write to system/app in Slimkat - Moto G Q&A, Help & Troubleshooting

Hello people,
I have a moto G XT1032 and I've been using slimkat for about 2 weeks, everything working perfectly, till one day I flashed something wrong and I soft-briked my phone. After fixing it and fresh-installing again slimkat, Titanium Backup doesn't uninstall system apps and I cannot install system apps either - with Root Explorer mount /system/app to R/W, paste the .apk and change permissions, reboot - the app is still not in the app drawer and I can't see in my installed apps, but it is in the /system/app folder with the right permissions.
I've searched a lot about this and I found posts recommending mounting system with some adb commands, but I've been uninstalling/installing system apps since I have android and I never had to do anything like that.
Am I doing anything wrong? Any possible solution without doing a full wipe?
Thanks in advance

Related

uninstall system apps

is there any app tht can be use to uninstall system apps? appart from systemapp remover? thks
Sent from my T-Mobile myTouch 3G Slide using Tapatalk
Root Explorer or Titanium Backup, but you must be rooted.
Keep in mind if you're on a stock ROM you most likely will NOT be able to install OTA updates in the future if you remove apps like this. They will fail to upgrade themselves, since the original copy no longer exists.
well im using cyanogen 6.1.1
then U can delete the app with Root Explorer or Titanium Backup..
Suggestion: do a system backup before!
Sadly the only way to do this is if you root your phone, but if you do decide to root your phone to do this you may as well install a custom rom; as if you try to update a stock rom that doesn't have all its stock apps it will more then likely either not work or brick your phone altogether.
But the good news is that if you decide to do custom roms you are def in the right place.
oh wait how do i uninstall the system app? do i just delete the .apk file in the \system\apps directory?
ok here's some problem. root explorer let me delete the apps in the \system\app directory but whenever i reboot my system n i went in there, all the stuffs i deleted r there again. happend everytime i reboot my phone
jasonnguyen3697 said:
ok here's some problem. root explorer let me delete the apps in the \system\app directory but whenever i reboot my system n i went in there, all the stuffs i deleted r there again. happend everytime i reboot my phone
Click to expand...
Click to collapse
same thing happens to me when i use titanium backup to delete system apps.
try use the adb
you must delete the apk, and then use packet manager to uninstall
if you use cm take a look here
wiki.cyanogenmod.com/index.php?title=Barebones
you will need to use ADB while you're phone is in recovery mode.
if the phone is on and booted and you're just rooted (not S-OFF) then you wont have access to delete from /system....
Instead of deleting it, I disable them just in case I need them back for some OTA update or something:
First find the package name, then go into adb. Using A&T maps as the example: ( com.telenav.app.android.cingular.attmaps )
$ su
# pm disable com.telenav.app.android.cingular.attmaps
Then if it ever needs to be re-enabled:
$ su
# pm enable com.telenav.app.android.cingular.attmaps
Disabled apps won't show up in the All Apps list, just as if they had been deleted.

Contacts Storage Uninstalled - Please Help! (Android 4.0.4 - Allview P5 Mini)

Hi everyone,
I ask your opinions / ideas on the next problem with Android 4.0.4 on AllViewP5 Mini:
Willing to work better, I installed the ExDailer and Go Sms Pro to get rid of stock applications that create so many problems.
So it was a good idea, the applications do very well.
Then I came with a bad idea and that is to uninstall stock applications, namely: Contacts_4.5.1.apk and Messaging_4.4.a.apk.
I used EsFile Explorer, I`v created backup and I`v uninstalled them.
The phone worked very well, except for an error that popped; was something about: android.process.acore
Then I got the worst possible idea, namely to remove Contact Storage_4.5.a.apk.
Since then all contacts were killed, The phone does not read any contact.
I tried to revive the system applications with EsFile Explorer, but it did not work. says "failed to install"
I've copied in system / app, but the system still does not load them after reboot.
I tried to sign the apps again with "Tickle My Android", but it did not work either.
Flashing it is a good solution, but I would need a ROM, plus CWM installed, which am not quite familiar.
Does anyone have any ideas?
PLEASE HELP!
FIXED
The system loads stock apps only if they have a specific name.
In my case I had to rename the apps installed in /system/app as:
Contacts.apk
ContactsProvider.apk
Mms.apk
Hi, I uninstalled mms.apk, but without any backup. Please sent me the Mms.apk at [email protected] . I really need it.
Thanks
Sent from my Galaxy S3 using xda premium
Similar problem - Need Help!
floaca said:
FIXED
The system loads stock apps only if they have a specific name.
In my case I had to rename the apps installed in /system/app as:
Contacts.apk
ContactsProvider.apk
Mms.apk
Click to expand...
Click to collapse
Hey dude, I followed your solution, found a gz file which contained the Contacts provider app, extracted it, and pushed it to the system/app folder (Using root explorer). Then, I tried to install it from there - but for nothing --> It says "application not Installed". Tried to reboot, nothing.
Any idea?
Same problem do you get slution if yes please reply
"Contact Storage" deleted
i am having the same problem. i uninstalled my "contacts storage" from my phone through super user. now my contacts of phone has gone. i have no idea what to do. please advise.

Integration of System Updates to ROM with TB fails

Hi,
anyone else with the same Problem?
Since KitKat (and still with Lollipop 5.1.1) the Titanium Backup function to include Systemapp Updates to the ROM fails. Happens at all Google Apps, FileCommander and Sony Apps.
There is no Error Message. In some cases it only deletes the App completeley and in other cases the progress is running endless (tested for 1 Hour without completion).
Device is Bootloader unlocked, rooted (SuperSU)....... any Hints?
Hmm I had no issue with kitkat, but it definitely does not work with lollipop.
Issue is with tb it's not going to create a subfolder and put libs in subfolder.
If you want to integrate apps, copy the apk from data directory and paste it over system apk, and then replace all the libs using same process.
Reboot phone so it optimized new system apk, then under normal application management uninstall app and replace with factory version (which will be new version)
Reboot and you should be good, restore data if you need to.
Sent from my SCH-I545 using XDA Free mobile app
Can you give me the necessary Directorys for Internal Memory Apps and System Apps, please?
It's /data/app/ and system apps are either in /system/app or /system/priv-app/
If you go into TB backup/restore, find the app, touch it for more options, right under the freeze option touch the name and it'll give you exact locations as well
Sent from my SCH-I545 using XDA Free mobile app
Hi!
Is TB do an update to fix this bug ?
I try to contact them to many times and no one answer me.
Did you find another app to do that ?
Did you still with manual methode ?
Tks
Still broken, only manual method works.
It's like it can't make subfolders in system
Just do it manually not so bad. Copy the updated files from data to system app folder, change permissions and hot reboot.
Android will do the rest.. no data loss or having to install/uninstall.
Sent from my stang5litre Edition 5.0 using XDA Free mobile app

Galaxy S7 SM-G930F (6.0.1) - System Partition Size

Hi All
I am hoping someone can help... I have the Galaxy S7 (SM-G930F / 6.0.1 / UK / EE) and have come up with an issue.
I use Cerberus Apps in case my phone is lost - you are able to install this into the system to avoid someone wiping the phone and removing the software. To do this the phone must be rooted and then I usually use Link2SD to transfer the app to make it a system app. This has always worked on my old phones - but alas not this time.
The problem is that the system partition (4Gb) is full!! I have deleted all the language packs to try and clear some space - but it is still full! Strangely enough I also uninstalled an "Amazon" app which was listed as being a system app and quite large (from memory I think it was just under 100Mb)... but when I removed it and rebooted the system partition free space remained unchanged! It's possible that Amazon was a user app and I mis-read it... but anyway - I thought that the only way to clear some space was to resize the system partition - so I installed TWRP (3.0.2), have done a complete backup (system/efs/etc) apart from \data as this showed 0Mb and "failed to mount" when I tried to back it up originally.
So, my question is - can anyone help me to free some space from the system partition to allow Cerberus App to be stored there? I did think about uninstalling the VR Gear files as I dont have a VR device and assumed I could re-load these from Google Play if needed - but I do have the Galaxy Gear watch - so decided not to remove these files in case it screwed this up. Not sure which Google Apps I can remove and re-install if needed... so if anyone knows this, then that would be a help too
I thought you could resize the partition in TWRP but cant find any clear details on how to do this, so thought I'd ask here before I screw the phone up :silly:
Any ideas/help greatly received.
TWRP doesn't support encryption so that's likely why /data won't mount. Resizing partitions is typically done via Odin with PIT files, but it's very dangerous, so I wouldn't recommend it.
Luxembourg ROMs have around 130mb free system space, so there must be a ton of carrier bloat in yours. This doesn't sound right though, it's required that there is some space for expansion. Could you run the following command in a root terminal and post the results please?
df -k | grep system
CurtisMJ said:
df -k | grep system
Click to expand...
Click to collapse
Thanks Curtis - I left my phone at home today, so will try this tonight and post results. After deleting all the unwanted language files I have about 40Mb space free, but this still doesnt seem to be enough as when I run Link2SD and reboot the phone, Cerberus has vanished and has to be re-installed... although when it re-installs it shows it as an "update" which would indicate that it is installed already - just 'lost' ???
Will update tonight when I get a moment.
Thanks
That's interesting actually. It seems to be indicative of permission issues. The app was successfully moved to the system, but the permissions on its files were wrong and the system refuses to load it(Link2SD's fault, essentially) . It's still acknowledged by the app manager though, which is why it can be "updated". Can you try move it with something apart from Link2SD? I recommend titanium backup.
CurtisMJ said:
Can you try move it with something apart from Link2SD? I recommend titanium backup.
Click to expand...
Click to collapse
Thanks Curtis - I have Titanium Backup (free version) installed already so can give it a go - I have only used it for backups (a long while ago) and have never used it to relocate an app... is it fairly self explanatory how to do it?
Will look tonight when I get in
Thanks
Just tried with titanium myself and it fails in a similar manner. Seems Marshmallow is a little fiddly and Link2SD puts out a generic message when it has issues. Titanium just freezes. You'll have to do it manually
First you'll need to clear the system of failed attempts. Look in the /system/app and /system/priv-app with a root Explorer for Cerberus apks or folders. Next, look in the /data/app folder and find the Cerberus folder. Take note of this path.
Next, fire up a root terminal and enter the following commands. In my case I was moving Greenify.
mount -o remount,rw /system
cp - a /data/app/com.oasisfeng.greenify-1 /system/app/Greenify
Replace the data folder with your noted path. The system path can be anything.
Then reboot and the app should be system.
Hi Curtis
Thanks for spending so much time on this.
OK, I skipped straight to the manual relocation method that you said. Whilst the app is Cerberus the APK etc is called System Framework as I have installed the 'hidden' version rather than the one which shows as Cerberus on the phone. However using OI File Manager, when I look in /system/app and /system/priv-app folders there is nothing called Cerberus or System Framework... so I am assuming that there are no orphaned APKs or other files.
But, this is where the strange thing starts, when I look in the /data/app folder, it is empty... so I am guessing I am looking in the wrong place as there are loads of apps! I am looking from home then selecting data, etc... any thoughts?
Oh, I have checked that hidden files are shown too!
Thanks again
i used to install the same app on my S7
please follow this guide & let me know the result.
1- uninstall Cerberus App, Link2SD, TTb, etc. and reboot
2- install SystemCleanup.
3- from the app SystemCleanup swip to tab apps and remove some bloatware like Google books, music, games, google TTS.
4- Reboot & install Cerberus App, do not run it.
5- from the app SystemCleanup go to apps tab and move Cerberus App to system/app & reboot again.
6- That's all.
Click to expand...
Click to collapse
Hi Abuzar
Thanks for the help... I tried using System Cleanup and initially it didn't work... it didn't show System Framework after cleaning up which made me think it was uninstalled properly. But when I tried to re-install it I got a message asking if I wanted to update the the built in application... so I said yes and re-checked in System Cleanup and it was visible, so I tried uninstalling it and after a couple of attempts it succeeded.
Then I re-installed and it installed it as a new app and it was visible in System Cleanup as installed in /data. So, I moved it to /system and configured it. It now lists in System Cleanup as being installed @auto system+data... so I am assuming it has installed properly... but not 100% sure as it lists some of it in data - so not sure if after a reset it will wipe the user profile from Cerberus or not.
I took a backup in TWRP and thought I would do a factory reset and test it... but on the S7 using factory reset in O/S it asks for my samsung password etc so looks like it may delete my Samsung/Google account's so didn't proceed as I didn't want to delete any online info. So... I tried factory wipe in TWRP but it just said failed "could not mount /data and unable to find crypto footer" and a few more "failed to mount /data" errors... so I gave up and will have to assume its installed properly as a system app
Thanks for all your help.
Just as a final note, the system+data combo sounds normal. Under regular conditions, the system partition is read only, so in order to install any updates to system apps, Android actually installs them as data apps, but cross-references them to system apps and gives them the relevant permissions. You can remove the data part by selecting "Uninstall Updates" in the app info page.

System file is reset after every reboot

I am trying to install a system app on my HTC One M7 dual SIM m7dug 5.0.2. Bootloader is unlocked using htcdev.com and phone is rooted (flashed supersu with TWRP). Checked that the phone is rooted with 2 apps.
Whenever I make changes to system app or even system bin, they disappear upon reboot, tried multiple apps ES file explorer with root explorer and system rw permissions, tried root explorer and a bunch of other dedicated apps.
Nothing works. If I move a file from apps to system apps it is completely gone off of the phone after I reboot.
Would really appreciate any help!
klanecek said:
I am trying to install a system app on my HTC One M7 dual SIM m7dug 5.0.2. Bootloader is unlocked using htcdev.com and phone is rooted (flashed supersu with TWRP). Checked that the phone is rooted with 2 apps.
Whenever I make changes to system app or even system bin, they disappear upon reboot, tried multiple apps ES file explorer with root explorer and system rw permissions, tried root explorer and a bunch of other dedicated apps.
Nothing works. If I move a file from apps to system apps it is completely gone off of the phone after I reboot.
Would really appreciate any help!
Click to expand...
Click to collapse
After converting to system app, boot to recovery and wipe cache and dalvik then reboot. If you're rooted correctly and have your root explorer on and r/w permissions mounted, it should work correctly this time.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Categories

Resources