Moving apps to /system on Marshmallow - Android Q&A, Help & Troubleshooting

Hello,
can someone explain me how to move apps to /system partition on marshmallow ?
When i try to do that as i did on lollipop (with success) apps disappear after reboot. I've tried to use Lucky Patcher and Titanium Backup but without success.
P.S. Im on stock Marshmallow Galaxy S5 (with root ofcourse )

prostozsadu said:
Hello,
can someone explain me how to move apps to /system partition on marshmallow ?
When i try to do that as i did on lollipop (with success) apps disappear after reboot. I've tried to use Lucky Patcher and Titanium Backup but without success.
P.S. Im on stock Marshmallow Galaxy S5 (with root ofcourse )
Click to expand...
Click to collapse
Have you set permission to app r/o after moving to system.

@Ashwinrg
I was trying to change permissions of moved apps (following to some guides found on Google) but that didn't help. Maybe i was doing something wrong. I even tried to mount system partition as R/W with Root Essentials but without results.

prostozsadu said:
@Ashwinrg
I was trying to change permissions of moved apps (following to some guides found on Google) but that didn't help. Maybe i was doing something wrong. I even tried to mount system partition as R/W with Root Essentials but without results.
Click to expand...
Click to collapse
Have you tried Mount /system RO/RW app.

@Ashwinrg You mean to mount system as R/W with that app and then use LP or TB to move my apps ?

prostozsadu said:
@Ashwinrg You mean to mount system as R/W with that app and then use LP or TB to move my apps ?
Click to expand...
Click to collapse
Yes. Try and see if it worked.

@Ashwinrg it doesn't work, moved apps just disappear

Related

[Q] Link2sd Problem Help :(

Help please, this is the second time I faced this problem. The first time I faced this, I did a complete data wipe and reinstalled everything again from fresh. The problem is after using link2sd for some time, it comes to a time that link2sd is not able to link any more apps even though my 2nd partition has 300mb+ free space. An example of error:
create_link.com.dj.golocker.theme.icecream:cannot create /data/sdext2/dalvik-cache/[email protected]@[email protected]: read-only file system
Similar errors occur for any further apps I try to install, it's like link2sd has reached it's limit of linking apps. However the apps that are already linked are all working fine, just can't link any apps any further. I don't want to do another data wipe and reinstall all my apps again..it's so tiring.. Please help anyone?
leviathian said:
Help please, this is the second time I faced this problem. The first time I faced this, I did a complete data wipe and reinstalled everything again from fresh. The problem is after using link2sd for some time, it comes to a time that link2sd is not able to link any more apps even though my 2nd partition has 300mb+ free space. An example of error:
create_link.com.dj.golocker.theme.icecream:cannot create /data/sdext2/dalvik-cache/[email protected]@[email protected]: read-only file system
Similar errors occur for any further apps I try to install, it's like link2sd has reached it's limit of linking apps. However the apps that are already linked are all working fine, just can't link any apps any further. I don't want to do another data wipe and reinstall all my apps again..it's so tiring.. Please help anyone?
Click to expand...
Click to collapse
Try using root explorer to navigate to the directory and manually mount it as r/w.
Can you explain more? I'm not really familiar with mounting using root explorer, but I do have root explorer.
I tried going to data/sdext2 and try clicking on Mount R/W on the top but nothing happens, it supposed to change to R/O right? It remains Mount R/W
leviathian said:
I tried going to data/sdext2 and try clicking on Mount R/W on the top but nothing happens, it supposed to change to R/O right? It remains Mount R/W
Click to expand...
Click to collapse
No. Leave it as r/w. Try re-booting, check what it is mounted as (if it's r/w, leave it. If it is r/o, try changing it) then try linking again.
What I meant is, it's r/o as default, but when I click on mount as r/w, it doesn't change. it remains as r/o
leviathian said:
What I meant is, it's r/o as default, but when I click on mount as r/w, it doesn't change. it remains as r/o
Click to expand...
Click to collapse
Mine changes perfectly. Do you have the latest Superuser app and binary installed?
I'll try that, thanks for responding to my problem I'll let you know if it fixes the problem
I have updated superuser binary and the problem still persists. I guess I might just do a data wipe and reinstall everything again.
leviathian said:
I have updated superuser binary and the problem still persists. I guess I might just do a data wipe and reinstall everything again.
Click to expand...
Click to collapse
It was worth a shot . Anyways, you gotta do what you gotta do .
Thanks for your effort, it's much appreciated

[Q] Restore Android Market using gapps

Accidentally I uninstalled Google Play using Titanium Backup. I believe I would have to use gapps to restore it since none of the apks i tried installing, worked.
But i am unable to hboot [using Power + Vol down] to select the .zip archive of gapps.
Can someone please give a guide on how to install gapps and restore Market on LG Optimus P500
Gingerbread 2.3.3
Rooted phone
Default ROM
shabbirzk said:
Accidentally I uninstalled Google Play using Titanium Backup. I believe I would have to use gapps to restore it since none of the apks i tried installing, worked.
But i am unable to hboot [using Power + Vol down] to select the .zip archive of gapps.
Can someone please give a guide on how to install gapps and restore Market on LG Optimus P500
Gingerbread 2.3.3
Rooted phone
Default ROM
Click to expand...
Click to collapse
Try Home+Vol Down+Power to enter into Recovery>Install GApps.
no need to flash the entire gapps on your case
download the latest google play apk in the themes and apps section of optimus one
search ES file manager/explorer (forgot exact name) apk on google from your pc (legit because the app itself is free)
now move the two apks to ur phone with usb
DONT INSTALL GOOGLE PLAY
install es file manager
open root mode something like that and grant the app root permission
now copy and paste ur google play apk to /system/app
AND LONG PRESS IT, CHANGE PERMISSIONS to rw-r--r-- (as same as all other system apps in the same folder)
save permissions
reboot ur phone at this point
bam!! google play is now back there in ur app drawer
becareful next time and do backups before touching red buttons in TB next time, mate
Sent from my LG-P500 using xda premium
Google Play is back
Thank you so much Miasmic.
1. for getting my query resolved with detailed explanation
2. For getting me introduced to ES file explorer. Ive been diving into its utilities since then.
Update: For anyone trying out this solution, you shall find the option to give root permission to ES under ES settings, also make /system as mount to write.
shabbirzk said:
Thank you so much Miasmic.
1. for getting my query resolved with detailed explanation
2. For getting me introduced to ES file explorer. Ive been diving into its utilities since then.
Update: For anyone trying out this solution, you shall find the option to give root permission to ES under ES settings, also make /system as mount to write.
Click to expand...
Click to collapse
youre welcome! dont forget to uninstall the independent ES explorer apk for now and get one from google play so u have future updates
Miasmic said:
youre welcome! dont forget to uninstall the independent ES explorer apk for now and get one from google play so u have future updates
Click to expand...
Click to collapse
i have followed step by step your explanations but no succes.
no google play on app drawer
any ideas?
iozefini said:
i have followed step by step your explanations but no succes.
no google play on app drawer
any ideas?
Click to expand...
Click to collapse
Considering that flashing gapps from recovery takes about half a minute, I do not understand what this thread is about. Flash the zip and move on, what is the problem here?
lolphirae said:
Considering that flashing gapps from recovery takes about half a minute, I do not understand what this thread is about. Flash the zip and move on, what is the problem here?
Click to expand...
Click to collapse
can you explain a lilttle bit more?
thanks
iozefini said:
i have followed step by step your explanations but no succes.
no google play on app drawer
any ideas?
Click to expand...
Click to collapse
Explain what you did step by step.. i will tell you where you went wrong.
Another thing.. tell me.. have you rooted your phone..
if yes.. have you flashed (installed) Recovery??
And which ROM are you using in phone??
rr0yy said:
Explain what you did step by step.. i will tell you where you went wrong.
Another thing.. tell me.. have you rooted your phone..
if yes.. have you flashed (installed) Recovery??
And which ROM are you using in phone??
Click to expand...
Click to collapse
1.playstore apk 3.5.19 i've moved it in system/app with ES File Explorer Manager
2.permissions change to rw -r -r
3.reboot
result nothing
i have Android 2.3.3 stock.
yes, the Optimus is rooted.
i didnt install Recovery.
my problems have started when i've changed the microsd card with a bigger one. i've made a copy of previous card but some native Android apps like playstore, maps,navigation just simply disappear but somehow maps and navi are back now.
later edit
until your answer i will prepare a backup if i will need to restore (factory reset).
iozefini said:
1.playstore apk 3.5.19 i've moved it in system/app with ES File Explorer Manager
2.permissions change to rw -r -r
3.reboot
result nothing
i have Android 2.3.3 stock.
yes, the Optimus is rooted.
i didnt install Recovery.
my problems have started when i've changed the microsd card with a bigger one. i've made a copy of previous card but some native Android apps like playstore, maps,navigation just simply disappear but somehow maps and navi are back now.
later edit
until your answer i will prepare a backup if i will need to restore (factory reset).
Click to expand...
Click to collapse
Why can't you just do this?
1. Download Gapps from goo.im/gapps/.
2. Put the .zip on your SD Card.
3. Boot into recovery and clear your cache and Dalvik cache.
4. Flash the Gapps .zip and reboot.
And you're done.
iozefini said:
1.playstore apk 3.5.19 i've moved it in system/app with ES File Explorer Manager
2.permissions change to rw -r -r
3.reboot
result nothing
i have Android 2.3.3 stock.
yes, the Optimus is rooted.
i didnt install Recovery.
my problems have started when i've changed the microsd card with a bigger one. i've made a copy of previous card but some native Android apps like playstore, maps,navigation just simply disappear but somehow maps and navi are back now.
later edit
until your answer i will prepare a backup if i will need to restore (factory reset).
Click to expand...
Click to collapse
Do you use link2sd or app2sd?? There is no other reason your system apps will disappear because
of changing card. First you check the permissions again.
If they are all ok and still doesnt work.. then download any gb gapps.. unzip it in your pc.
You will find two files.. MarketUpdater.apk and Vending.apk.. place it in same folder system/
app. Same permissions for both.. not sure if this works on Stock gb.
And we dont know what all files you are missing.
ok.thanks a lot now its all back.
thanks guys

[q] convert user app to system app

Hi everyone.
I'd like to know how to move some user apps stored in /data/app to /system/app, and don't get force close. I tried with link2sd, romtoolbox, rootexplorer, but always got fc.
I've deleted a lot of system apps and I want to use that unused storage for some user apps.
I hope you understand what I want to do.
Anybody can help me? :good:
mortadelax said:
Hi everyone.
I'd like to know how to move some user apps stored in /data/app to /system/app, and don't get force close. I tried with link2sd, romtoolbox, rootexplorer, but always got fc.
I've deleted a lot of system apps and I want to use that unused storage for some user apps.
I hope you understand what I want to do.
Anybody can help me? :good:
Click to expand...
Click to collapse
Well... The best way to do that is to edit the ZIP for the ROM you want and flash the changed ZIP through CWM. If you're doing it on the phone, make sure you set the permissions to 644, after you move them.
SmG67 said:
Well... The best way to do that is to edit the ZIP for the ROM you want and flash the changed ZIP through CWM. If you're doing it on the phone, make sure you set the permissions to 644, after you move them.
Click to expand...
Click to collapse
I checked permissions under rootexplorer. I gave the same permissions as every system app has. Should I go to terminal and type chmod 644 ...?
I'll try with the modified zip. Thanks for help. I'll tell you what happens.
EDIT: I tried the 644 method. Sitill force closing.
EDIT2: With Zip modified method works with some apps. I'm still looking for a phone method with rootexplorer.

[Q] Remove apps from rom itself

I have an xperia p rooted bootloader unlocked . And now on stock rom . Every time i reset my phone some sony apps kinda come up which i dont want to . I have uninstalled them using titanuim backup life gone forever thing but still when i reset my phone they come up
ANYWAY TO NOT LET THEM SHOW UP WHEN MY PHONE IS RESET >?
AND HOW CAN I INTEGRATE AN APP TO ROM ( IF I RESET MY PHONE THAT INTEGRATED APP MUST BE INSTALLED AUTOMATICALLY
Kaushik124 said:
I have an xperia p rooted bootloader unlocked . And now on stock rom . Every time i reset my phone some sony apps kinda come up which i dont want to . I have uninstalled them using titanuim backup life gone forever thing but still when i reset my phone they come up
ANYWAY TO NOT LET THEM SHOW UP WHEN MY PHONE IS RESET >?
AND HOW CAN I INTEGRATE AN APP TO ROM ( IF I RESET MY PHONE THAT INTEGRATED APP MUST BE INSTALLED AUTOMATICALLY
Click to expand...
Click to collapse
Look at /system/etc/customisation and /system/etc/product.for bloatware.
You can simply delete the apps you don't want from /system/app but be carful not to delete one that is needed by system.
Any app you want to survive reset copy to /system/app with permissions 644
ChikeD said:
Look at /system/etc/customisation and /system/etc/product.for bloatware.
You can simply delete the apps you don't want from /system/app but be carful not to delete one that is needed by system.
Any app you want to survive reset copy to /system/app with permissions 644
Click to expand...
Click to collapse
With permission 644 ? I dint get you . By the way deleting apps from that location says operation failed - ESFILEMANAGER
Kaushik124 said:
With permission 644 ? I dint get you . By the way deleting apps from that location says operation failed - ESFILEMANAGER
Click to expand...
Click to collapse
Did you mount /system RW? (open the sidebar where you enabled root access with the menu button, scroll down to "root explorer" and click it instead of its on/off button, select the remount option, change / and /system to RW)
Ryccardo said:
Did you mount /system RW? (open the sidebar where you enabled root access with the menu button, scroll down to "root explorer" and click it instead of its on/off button, select the remount option, change / and /system to RW)
Click to expand...
Click to collapse
Ah thank you .. Easier with root explorer . Moving an app to system/app will get that app installed right away when reset ?
Kaushik124 said:
Ah thank you .. Easier with root explorer . Moving an app to system/app will get that app installed right away when reset ?
Click to expand...
Click to collapse
Well, it just won't be removed
But it will also break the app if it uses external libraries, use Link2SD "convert to system app" that will do the hard job itself if needed
Ryccardo said:
Well, it just won't be removed
But it will also break the app if it uses external libraries, use Link2SD "convert to system app" that will do the hard job itself if needed
Click to expand...
Click to collapse
Titanium backup has some sort of same option right convert to system app. And if I remove all from/system/app it won't be installed next time I reset? I hope so and how do I make some apps install themselves when phone is reset
Kaushik124 said:
With permission 644 ? I dint get you . By the way deleting apps from that location says operation failed - ESFILEMANAGER
Click to expand...
Click to collapse
Files has permissions, like files on windows do, 644 = owner can read and weite, group can read, other can read.
To delete/copy file from/to /system you need RootExplorer o FX explorer with root add-on.
If you "remove everything from /system/app" as you said you'll end up with an unusable OS
Factory reset doesn't touch /system anyway, if you're looking for an easy way to have your apps back when you switch ROMs the closest thing is keeping the apks on your computer and installing them with adb...

[Q] Titanium Backup

Has anyone been able to backup using Titanium. Titanium Pro tells me "Backup interrupted...not enough space." I have lots of space. I have tried all the google search solutions and none work.
I have the same problem. Initially, I thought that the sdcards were not mounted (for su root) but that wasn't the issue.
TB will currently backup VIRTUAL items (e.g. Accounts, WiFi access points) which have the TB logo next to it. It seems to fail for all other items.
gale2000 said:
Has anyone been able to backup using Titanium. Titanium Pro tells me "Backup interrupted...not enough space." I have lots of space. I have tried all the google search solutions and none work.
Click to expand...
Click to collapse
Same problem here. According to this post:
http://forum.xda-developers.com/showthread.php?t=2391363&page=7
the small app called sdfix could solve the problem. I haven't tried yet.
cr2069 said:
Same problem here. According to this post: http://forum.xda-developers.com/showthread.php?t=2391363&page=7 the small app called sdfix could solve the problem. I haven't tried yet.
Click to expand...
Click to collapse
Sorry, I've already tried sdFix along with other possible fixes.
(see rooting thread http://forum.xda-developers.com/showpost.php?p=55286180&postcount=55 and http://forum.xda-developers.com/showpost.php?p=55339398&postcount=85)
sdFix fixes the issue with not having write permission to the EXTERNAL SD card. TB is able to write to both INTERNAL and EXTERNAL sd cards -- for VIRTUAL items but it may not have sufficient permission for backing up apps, etc. I sent a log to TB support a few days ago without reply.
Anybody have luck with Helium?
https://play.google.com/store/apps/details?id=com.koushikdutta.backup
iammudd said:
Sorry, I've already tried sdFix along with other possible fixes.
(see rooting thread http://forum.xda-developers.com/showpost.php?p=55286180&postcount=55 and http://forum.xda-developers.com/showpost.php?p=55339398&postcount=85)
sdFix fixes the issue with not having write permission to the EXTERNAL SD card. TB is able to write to both INTERNAL and EXTERNAL sd cards -- for VIRTUAL items but it may not have sufficient permission for backing up apps, etc. I sent a log to TB support a few days ago without reply.
Click to expand...
Click to collapse
Too bad, seems to be TB's problem. Waiting for any progress...The main reason I want rooting is to use TB, but it's not working...
TB will now work if you RE-root your device:
Use SuperSU (settings option) to fully un-root.
Use Modding.MyMind's TWRP custom recovery from http://forum.xda-developers.com/ascend-mate2/orig-development/2014-09-22-teamwin-recovery-project-t2885144
Code:
adb reboot bootloader
fastboot boot TWRP_MT2-L03_RECOVERY.img
Backup your stock recovery.
Backup your stock bootloader.
Backup your system.
When you reboot, TWRP will notice that you're NOT rooted and ask if you wish to be rooted. Choose YES.
Reboot to System.
Start SuperSU and follow the prompts to update SuperSU binaries.
Good luck but you assume all risks. If there are errors in the above instructions, please reply in this thread.
Thanks again to all those involved in bringing TWRP to this device.
iammudd said:
TB will now work if you RE-root your device:
Use SuperSU (settings option) to fully un-root.
Use Modding.MyMind's TWRP custom recovery from http://forum.xda-developers.com/asc.../2014-09-22-teamwin-recovery-project-t2885144
Code:
adb reboot bootloader
fastboot boot TWRP_MT2-L03_RECOVERY.img
Backup your stock recovery.
Backup your stock bootloader.
Backup your system.
When you reboot, TWRP will notice that you're NOT rooted and ask if you wish to be rooted. Choose YES.
Reboot to System.
Start SuperSU and follow the prompts to update SuperSU binaries.
Good luck but you assume all risks. If there are errors in the above instructions, please reply in this thread.
Thanks again to all those involved in bringing TWRP to this device.
Click to expand...
Click to collapse
Shouldn't it be "fastboot flash recovery TWRP_MT2-L03_RECOVERY.img"?
I like the above method though because you get to back up the original recovery first. Just reboot to bootlloader and do "fastboot flash recovery TWRP_MT2-L03_RECOVERY.img" after the backup.
On another note, Titanium Backup still fails for me.
foltz61 said:
Shouldn't it be "fastboot flash recovery TWRP_MT2-L03_RECOVERY.img"?
I like the above method though because you get to back up the original recovery first. Just reboot to bootlloader and do "fastboot flash recovery TWRP_MT2-L03_RECOVERY.img" after the backup.
On another note, Titanium Backup still fails for me.
Click to expand...
Click to collapse
Yes, fastboot boot TWRP_MT2-L03_RECOVERY.img allowed me to try it out first. If it had failed, then hopefully I would still have had the stock recovery. (After playing around with TWRP a bit, I DID eventually flash it.)
foltz61 said:
On another note, Titanium Backup still fails for me.
Click to expand...
Click to collapse
Just now, TB failed again (insufficient storage error).
Had to rerun SdFix to check the platform.xml modifications, FULLY UNROOT and then RE-rooting with TWRP and reinstalling SuperSU again.
Now TB is working again. Very strange. (Will report back if I find out what triggered the problem.)
iammudd said:
Just now, TB failed again (insufficient storage error).
Had to rerun SdFix to check the platform.xml modifications, FULLY UNROOT and then RE-rooting with TWRP and reinstalling SuperSU again.
Now TB is working again. Very strange. (Will report back if I find out what triggered the problem.)
Click to expand...
Click to collapse
TB still didn't work for me after flashing recovery and rerooting. What did work was:
Set backup path to /data/media/0/TitaniumBackup.
Had to change owner on data and media and 0 to Root.
Changed permissions to read write and execute for owner, group, and other just to be safe.
I don't know if all of this was necessary, but it it working now.
I tried the same thing for the sdcard1, and Titanium said backup successful, but I couldn't find the backup on sdcard 1???
gale2000 said:
TB still didn't work for me after flashing recovery and rerooting. What did work was:
Set backup path to /data/media/0/TitaniumBackup.
Had to change owner on data and media and 0 to Root.
Changed permissions to read write and execute for owner, group, and other just to be safe.
I don't know if all of this was necessary, but it it working now.
I tried the same thing for the sdcard1, and Titanium said backup successful, but I couldn't find the backup on sdcard 1???
Click to expand...
Click to collapse
Same problem and this also fixed it for me thanks
gale2000 said:
TB still didn't work for me after flashing recovery and rerooting. What did work was:
Set backup path to /data/media/0/TitaniumBackup.
Had to change owner on data and media and 0 to Root.
Changed permissions to read write and execute for owner, group, and other just to be safe.
Click to expand...
Click to collapse
This workaround has been made obsolete. See next post:
I didn't know what the drawbacks are to using this folder so I was initially reluctant but I've given up and went down this path as well. However, I've reduced some permissions and here's what appears to be working for me:
Use ES Explorer to create the new folder and change its permissions to rwx for group and others. (I didn't need to change owners for any of the folders.)
Use ES Explorer to TEMPORARILY add read-only permission to /data for OTHERS.
Change TiBu backup folder location by manually navigating to the new folder.
Once the new folder has been selected, I restore /data to its original permissions. (The read permission was only needed temporarily for TiBu to find the new folder.)
Copying the files back to my PC, I can see that the zip files for the apks appear to have "reasonable" apk sizes (i.e. not zero-length as before).
I ran across this thread while digging into a Titanium Backup "Insufficient Storage" error and digging into an error thrown by Helium backup. In newer versions of SuperSU there is an option "Mount namespace separation" that's enabled by default. Running su and ls in a terminal shows that the /storage/sdcard0 and /storage/sdcard1 mount points don't come through into the root name space. Unchecking this option and rebooting will let both sdcards into the root namespace fixing the problem with Titanium backup.
Still trying to figure out what's going on with Helium. I have a hunch it may be due to use of a password without encryption, not sure yet.
kemonine96 said:
In newer versions of SuperSU there is an option "Mount namespace separation" that's enabled by default. Running su and ls in a terminal shows that the /storage/sdcard0 and /storage/sdcard1 mount points don't come through into the root name space. Unchecking this option and rebooting will let both sdcards into the root namespace fixing the problem with Titanium backup.
Click to expand...
Click to collapse
Thanks, this appears to have done the trick. It was very baffling when TiBu would work for some tasks but not others. Glad you stumbled onto this thread.
And another follow up for those using Helium or looking for an "adb backup" based solution
This device does not appear to include the full adb backup stack. From some limited testing tonight the pop-up prompt when running "adb backup' or using Helium Backup does not produce prompt on the device so it just fails. This is a known problem on some devices and it's too bad Huawei decided this wasn't a necessary inclusion.
kemonine96 said:
I ran across this thread while digging into a Titanium Backup "Insufficient Storage" error and digging into an error thrown by Helium backup. In newer versions of SuperSU there is an option "Mount namespace separation" that's enabled by default. Running su and ls in a terminal shows that the /storage/sdcard0 and /storage/sdcard1 mount points don't come through into the root name space. Unchecking this option and rebooting will let both sdcards into the root namespace fixing the problem with Titanium backup.
Still trying to figure out what's going on with Helium. I have a hunch it may be due to use of a password without encryption, not sure yet.
Click to expand...
Click to collapse
helium has never worked right for me. I bought it sight unseen since he's such a great dev, but just could not get it to work either rooted or unrooted. I did learn how to do adb backup though because if that.
nrfitchett4 said:
helium has never worked right for me. I bought it sight unseen since he's such a great dev, but just could not get it to work either rooted or unrooted. I did learn how to do adb backup though because if that.
Click to expand...
Click to collapse
Were you able to get adb backup to work at all? I never was able to get it to work.
I solved my titanium backup issues by going into SuperSU, then settings for SuperSU, and unchecked the mount namespace seperation box, then reboot
kemonine96 said:
Were you able to get adb backup to work at all? I never was able to get it to work.
Click to expand...
Click to collapse
It worked just fine for me. Used it to backup kids unrooted phones. That's been a couple years though.

Categories

Resources