I am running a stock image on my N5 with root and need to add an apk into the system partition but the problem is that I have only 4mb left on there and the apk does not fit. Is it possible to resize the partitions and:
Still keep your data
and/or
Allow for OTA installations down the road?
Short answer is no. And you certainly can't do it without wiping everything else. Repartitioning Android partitions is not for the faint of heart. It takes a lot of knowledge and can easily brick your device.
Sent from my Nexus 9 using XDA Free mobile app
psychephylax said:
I am running a stock image on my N5 with root and need to add an apk into the system partition but the problem is that I have only 4mb left on there and the apk does not fit. Is it possible to resize the partitions and:
Still keep your data
and/or
Allow for OTA installations down the road?
Click to expand...
Click to collapse
Why don't you just simply delete some unused pre-installed apps from /system?
xnormskix said:
Why don't you just simply delete some unused pre-installed apps from /system?
Click to expand...
Click to collapse
He will need to revert changes in order to run the OTA process.
Sent from my Nexus 5 using Tapatalk
Plus, with a nexus image there really isn't much stuff to delete as there is on a carrier image
Sent from my Nexus 7 using Tapatalk
What i am really trying to do is get the droid circle widget working which should live in priv-app in system. I wonder if I can symlink from the user data partition
psychephylax said:
What i am really trying to do is get the droid circle widget working which should live in priv-app in system. I wonder if I can symlink from the user data partition
Click to expand...
Click to collapse
Stock Google OS comes with a ton of crap on /system that really belongs on /data. You delete all those apps, then download them from the playstore. 300ish MB free on /system.
I wrote a script to do this here, or you could use @vomer CleanRom that gets rid of some crap. My script (from memory) keeps stock keyboard, stock camera, and a stock launcher. Everything else is gone and can be reacquired through the playstore, the way it should have been from the beginning.
If it bothers you, could could use TiBu to back up that app data before you delete them, then restore after playstore install.
Who cares about OTA? Really not of concern.
Thank you for putting me on the right track. What I wound up doing was converting a couple of the apps that are baked into the stock ROM from system to user apps with TiBu. Worked like a charm!
awesome ...
Aerowinder said:
Stock Google OS comes with a ton of crap on /system that really belongs on /data. You delete all those apps, then download them from the playstore. 300ish MB free on /system.
Click to expand...
Click to collapse
Thanks for your awesome and simple script - great idea!
Worked on my Nexus 5, 6 and 7. Boosted free space by 360 MB.
Regards.
Update : your script also worked on my Nexus 6 running Stock Marshmallow Version "mra58r" now that I have 863 MB free on /system.
:: TWRP 2.8.7.1 + ElementalX-N6-3.06 Kernel + SuperSU BETA 2.52
Same issue with CM13
I'm facing low system space when installing CM13.
The ROM installs correctly. However, when I go to flash GAPPS, I get a low system error.
How can I fix this?
Flash back to stock, perform a factory wipe, flash twrp, flash cm and gapps. Hopefully, those fixes the issue.
Aerowinder said:
Stock Google OS comes with a ton of crap on /system that really belongs on /data. You delete all those apps, then download them from the playstore. 300ish MB free on /system.
I wrote a script to do this here, or you could use @vomer CleanRom that gets rid of some crap. My script (from memory) keeps stock keyboard, stock camera, and a stock launcher. Everything else is gone and can be reacquired through the playstore, the way it should have been from the beginning.
If it bothers you, could could use TiBu to back up that app data before you delete them, then restore after playstore install.
Who cares about OTA? Really not of concern.
Click to expand...
Click to collapse
Original link to script above is dead. Any chance we could still get the script, particularly if it would still work okay on Android 6 (Marshmallow) or 7 (Nougat)? Thanks.
Related
Hey,
For the longest time I was running 1.9A and today I decided to update my way to 2.8B. All was going fine until 2.7B. I flashed up to 2.6.1B and then when I flashed 2.7B, it didn't take as long as the other ones to flash. When I checked the settings and the about phone, it was still 2.6.1B. I tried to flash 2.7B twice already, both times still ending up with 2.6.1B. Any suggestions on how to finish up the updates without doing a wipe?
thanks
samtruong200 said:
Hey,
For the longest time I was running 1.9A and today I decided to update my way to 2.8B. All was going fine until 2.7B. I flashed up to 2.6.1B and then when I flashed 2.7B, it didn't take as long as the other ones to flash. When I checked the settings and the about phone, it was still 2.6.1B. I tried to flash 2.7B twice already, both times still ending up with 2.6.1B. Any suggestions on how to finish up the updates without doing a wipe?
thanks
Click to expand...
Click to collapse
What base are you on (Safe Base-R2, Safe Base-R3, Dragon-R2, or Dragon-R3)? If on Safe Base-R2, right around 2.6.1B is when you will run out of room on your system partition. Using TiBu, "Overview" tab, see what your System ROM "free" space is. If on SafeBase-R2, you will need to free up space on system partition (/system/app) by deleting/uninstalling apps (start with S-Voice... it's 30mb) to allow updates to write to your system partition. I would recommend starting over with 2.8 and flash the new Dragon-R3.. then 2.8A... then your addons (follow the OP instructions). Gives you plenty of headroom on system partition, all the functionality you need, and very smooth/fast. I started with safebaseR2 1.7... and progressed to 2.6.1 when I ran out of room... started over with the DragonR3 flash, and couldn't be happier.
DoctorQMM said:
What base are you on (Safe Base-R2, Safe Base-R3, Dragon-R2, or Dragon-R3)? If on Safe Base-R2, right around 2.6.1B is when you will run out of room on your system partition. Using TiBu, "Overview" tab, see what your System ROM "free" space is. If on SafeBase-R2, you will need to free up space on system partition (/system/app) by deleting/uninstalling apps (start with S-Voice... it's 30mb) to allow updates to write to your system partition. I would recommend starting over with 2.8 and flash the new Dragon-R3.. then 2.8A... then your addons (follow the OP instructions). Gives you plenty of headroom on system partition, all the functionality you need, and very smooth/fast. I started with safebaseR2 1.7... and progressed to 2.6.1 when I ran out of room... started over with the DragonR3 flash, and couldn't be happier.
Click to expand...
Click to collapse
Hey thanks for the quick reply, I think I am using the Safebase, but not sure if it's R2 or R3. I also see that I am indeed out of space. I don't really want to do a clean flash again, because it's kind of a pain in a butt haha. But what apps could I delete/remove to free up space? Is it just any apps that's installed on my phone?
Thanks
Just go to system/app folder and see what apps you really don't need. You could back them up just in case. you could also do it from tibu, I think everything red is a system app. And believe me you got enough to delete, even on the dragon base I had some hefty number of apps I could get rid of.
samtruong200 said:
Hey thanks for the quick reply, I think I am using the Safebase, but not sure if it's R2 or R3. I also see that I am indeed out of space. I don't really want to do a clean flash again, because it's kind of a pain in a butt haha. But what apps could I delete/remove to free up space? Is it just any apps that's installed on my phone?
Thanks
Click to expand...
Click to collapse
SafebaseR3 took out 2 apks: voicetalk.apk and GoogleQuickSearchBox.apk. (Sean added GoogleNow in 2.6.1 which maxed out the system partition). Voicetalk.apk (S-Voice) is 30mb. Use your favorite file explorer (i.e., RootExplorer, etc), navigate to /system/app, and sort by descending file size. If voicetalk.apk is there, you are on Safebase R2. If you don't plan on using S-Voice, then use TiBu to uninstall it (that will remove voicetalk.apk from your /system/app folder... and immediately free-up 30mb of space on the system partition). If you want to trim more, review the next few largest apks in /system/app folder and determine if you want/need them.. if not, uninstall with TiBu (google the apk to get the app name.. for example: SevenEngine.apk is the SocialHub app).
DoctorQMM said:
SafebaseR3 took out 2 apks: voicetalk.apk and GoogleQuickSearchBox.apk. (Sean added GoogleNow in 2.6.1 which maxed out the system partition). Voicetalk.apk (S-Voice) is 30mb. Use your favorite file explorer (i.e., RootExplorer, etc), navigate to /system/app, and sort by descending file size. If voicetalk.apk is there, you are on Safebase R2. If you don't plan on using S-Voice, then use TiBu to uninstall it (that will remove voicetalk.apk from your /system/app folder... and immediately free-up 30mb of space on the system partition). If you want to trim more, review the next few largest apks in /system/app folder and determine if you want/need them.. if not, uninstall with TiBu (google the apk to get the app name.. for example: SevenEngine.apk is the SocialHub app).
Click to expand...
Click to collapse
i've been trying to find this /system/app....but i can't seem to find it..... I know I'm not crazy, but it doesn't seem to be there haha. Also, my S-voice got removed by itself somehow while going through the updates.
You need to use a root explorer in order to view it. You could download rom toolbox it has tons of nice features and one of them is a root explorer, if you download ES file explorer you have to mark in the settings view as root.
kishke said:
You need to use a root explorer in order to view it. You could download rom toolbox it has tons of nice features and one of them is a root explorer, if you download ES file explorer you have to mark in the settings view as root.
Click to expand...
Click to collapse
ohh, so that's what I was missing. How much space do I need to clear up to have enough for 2.7B and 2.8B files? just as big as the zip themselves?
You can try deleting a few stuff and then trying to flash, the build.prop is the last files to flash so if you had enough room it should change if not delete some more and try to flash again.
Hey guys,
I am currently running skyICS 4.2F6-2.6.1B and recently, my phone has been crashing alot. I am using the Touchwix UX and that has been crashing, but today the system UI has been crashing as well. I also noticed today that the battery life is significantly lower than what it normally is. The camera fails when I try to use it and the flashlight makes the system lock up.
Do I just need to reflash a new ROM? Before this, it was running perfectly. Could I just clear the cache and will that fix it?
Thanks
samtruong200 said:
Hey guys,
I am currently running skyICS 4.2F6-2.6.1B and recently, my phone has been crashing alot. I am using the Touchwix UX and that has been crashing, but today the system UI has been crashing as well. I also noticed today that the battery life is significantly lower than what it normally is. The camera fails when I try to use it and the flashlight makes the system lock up.
Do I just need to reflash a new ROM? Before this, it was running perfectly. Could I just clear the cache and will that fix it?
Thanks
Click to expand...
Click to collapse
I would try clearing cache and dalvick first. If that doesn't solve your problem ...then full wipe & flash rom fresh . Good Luck
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
samtruong200 said:
Hey guys,
I am currently running skyICS 4.2F6-2.6.1B and recently, my phone has been crashing alot. I am using the Touchwix UX and that has been crashing, but today the system UI has been crashing as well. I also noticed today that the battery life is significantly lower than what it normally is. The camera fails when I try to use it and the flashlight makes the system lock up.
Do I just need to reflash a new ROM? Before this, it was running perfectly. Could I just clear the cache and will that fix it?
Thanks
Click to expand...
Click to collapse
I would probably say reflash the ROM is the correct way to go.
**MAKE SURE YOU PUT THE ROM IN YOUR EXTERNAL MEDIA CARD PRIOR TO PERFORMING THE STEPS PROVIDED!!***
Wipe X3
format /system X3
format /data X3
format /cache X3
format /emmc X3
Then install the ROM you want to install.
On SkyICS 4.2F6, right around update 2.5 / 2.6 is when the system partition got max'd out. If you have TiBu, check your "system ROM" free space... if next to nil, you will start running into issues. Are you on the BaseR2 ROM, BaseR3, or Dragon? If BaseR2, you will need to free up some headroom on the system partition (/system/app). Search the SkyICS 4.2F6 ATT Development thread for previous posts about freeing up space on system partition (I posted on Development thread regarding this). If you're not on R2, you should have enough system partition space, and most likely this is not the cause of your problem.
DoctorQMM said:
On SkyICS 4.2F6, right around update 2.5 / 2.6 is when the system partition got max'd out. If you have TiBu, check your "system ROM" free space... if next to nil, you will start running into issues. Are you on the BaseR2 ROM, BaseR3, or Dragon? If BaseR2, you will need to free up some headroom on the system partition (/system/app). Search the SkyICS 4.2F6 ATT Development thread for previous posts about freeing up space on system partition (I posted on Development thread regarding this). If you're not on R2, you should have enough system partition space, and most likely this is not the cause of your problem.
Click to expand...
Click to collapse
I actually did run out of space when trying to move on with my updates, which is why I stopped there. I am not sure which items i could remove in the system partition so I also just left that. Any suggestions on which to get rid of?
samtruong200 said:
I actually did run out of space when trying to move on with my updates, which is why I stopped there. I am not sure which items i could remove in the system partition so I also just left that. Any suggestions on which to get rid of?
Click to expand...
Click to collapse
It really depends on what apps you use / don't use. If you are on R2 safebase, and don't use "S-Voice" (since Sean added GoogleNow, he removed S-Voice from the R3 bases), start with removing it first. S-Voice is the "voicetalk.apk". I'd recommend first backing it up w/ TiBi (in case you want to restore it later), then using TiBu, uninstall S-Voice (voicetalk.apk). It's 30mb on the system partition and you can probably stop there. But if want to free up more space on system partition, SocialHub (SevenEngine.apk) is 8.5mb. I had removed 10 apps which freed plenty of space... but then at 2.8, I decided to reflash the R3 Dragon... really happy with it... no issues whatsoever.
I already removed S voice. I currently have 49.2MB free, is that good enough? Should I keep figuring what to delete? I would reflash R3 Dragon, but I just don't want to go through all the effort of recreating my home screen and my folders and such. :/ unless there is a way to save and restore that kind of thing.
samtruong200 said:
I already removed S voice. I currently have 49.2MB free, is that good enough? Should I keep figuring what to delete? I would reflash R3 Dragon, but I just don't want to go through all the effort of recreating my home screen and my folders and such. :/ unless there is a way to save and restore that kind of thing.
Click to expand...
Click to collapse
49mb free should be more that sufficient to run without crashes. I think at this point your best best is to restore a recent nandroid (if you did one)... at least the last known good one where you were not encountering crashes and FCs. I use Apex Launcher which I really like, and it gives you the option to backup settings and homescreens. Other than these suggestions you might need to reflash. I'd recommend the R3 Dragon this time with the 2.8A.
Hmm... I've had similar problems when I upgraded to the OFFICIAL ICS update, and was the reason why I rooted in the first place. Now I'm running Jellybean and it's great
It looks like the I727 and ICS don't go along very well...
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Jooni said:
Hmm... I've had similar problems when I upgraded to the OFFICIAL ICS update, and was the reason why I rooted in the first place. Now I'm running Jellybean and it's great
It looks like the I727 and ICS don't go along very well...
Sent from my SAMSUNG-SGH-I727 using xda app-developers app
Click to expand...
Click to collapse
Is there already a Jellybean ROM for skyrocket? How stable is it?
It runs fine, but occasionally it shuts down randomly. Well, it hasnt for the past few days, but I'm keeping a close eye on everything. Also, I have no idea how to set the APN and the phone doesn't hve the right settings. I'm on Rogers and would appreciate any help
Otherwise, I really like it. The ROM is in the android development section of in the skyrocket section.
Sent from my SAMSUNG SGH-I727, the iPhone Killer
Backup2Tar is a Free backup tool that I created to help restore my apps after flashing a new rom.
How it works :
Select which apps to backup from the UI
The app generates a tar file on your sdcard (update.tar.gz) with the package files and data.
Finally, the app will generate restore_tar.zip which contains busybox and a small shell script to find update.tar.gz and extract it.
As of right now it's a very simple app, there are no options at all and I made it for personal use and to (re-)learn Java.
FAQ :
Why tar?
because it's the standard archive format on Linux, preserves permissions and user information.
But all the cool kids use zip files.
Yes, sure you can hack a nice updater-script to fix permissions on all files, but it's bound to screw up permissions some way or the other, specially with apps that have executable files in their /data/data/.
Your icons suck
Feel free to create new icons for the app and I will gladly use them.
Is there anyway to help?
Provide me with ideas, ways to improve it, better artwork and feel free to donate!
TODO :
Toggle saving apps' data and/or cache.
Store other important settings (wifi, gps, etc).
Clean up the source code and publish it.
Tested Devices :
N7000 (running 4.1.2 / Phillz Kernel).
Rooted 3.0.0, 4.0.3, 4.2.2 Android emulators (tested using update-binary, not from recovery).
All comments / suggestions are welcome.
Changelog :
v0.1
Initial alpha release.
Sounds useful, downloading now. Thanks!
Sent from my SGH-I897 using XDA
Will this backup my paid apps or only non "protected" apps?
famewolf said:
Will this backup my paid apps or only non "protected" apps?
Click to expand...
Click to collapse
I'm not sure, I don't have any protected apps at the moment to try with.
If you can test and report back it would be great.
The app copies /data/app/xxx.apk and /data/data/xxx, so if the protected files aren't in /data/data they won't be copied.
life.eq.null said:
I'm not sure, I don't have any protected apps at the moment to try with.
If you can test and report back it would be great.
The app copies /data/app/xxx.apk and /data/data/xxx, so if the protected files aren't in /data/data they won't be copied.
Click to expand...
Click to collapse
I'll see if I can get some time to install and try it.
Have you considered adding /system/app and it's associated data to the list? An app might be included in one rom and not in another so I'd still want the ability to back it up even if it has to back it up to /data
Also I didn't see it in the screenshots but if not there a single checkbox to backup ALL apps in list would be highly useful rather than having to click all of them.
You can backup system apps as well.
I found a bug in restoring, some apps won't restore right without "reinstalling" using the package manager, gonna try to figure out how to call the package manager from recovery.
Workaround to fix the apps that aren't working after restoring is to use adb shell.
PHP:
$ adb shell
$ su
# tar tzf /sdcard/update.tar.gz | grep data/app/ | while read APK; do pm install -r "/$APK"; done
This basicly will use the package manager to "properly" install all the apk.
I will release a fixed version later today.
I will add check-all option as well, I'm still getting the hang of action bars and such.
does this script preserve "move to sd" location? i mean, i used a lot "move to sd" standard android function, to move many big apps to sdcard/.android_secure folder... of course, none of the those that use widgets...
i found that restoring with titanium backup does not preserve this: if i batch restore my apps, it fills up my internal memory (samsung note n7000), and i've to move a bunch of them to sd before redoing restore of the remaining ones... very boring...
is there a way to restore apps EXACTLY in the same location where they were when backupped? thanks
Is it possible to backup the whole ext partition as well? As Im using Link2Sd and to restore it quite tedious. My apps + games are out of the internal space.. So, I extend using ext partition.
Can we flash the backup to stock unrooted rom ,from the stock recovery??
Sent from my GT-I9070 using xda premium
no answers in days from the developer to a fresh project... then no development at all? hope not...
mrshark said:
no answers in days from the developer to a fresh project... then no development at all? hope not...
Click to expand...
Click to collapse
You posted your original question late on the 28th and this most recent complaint early on the 30th at least by my timezone....perhaps you have an unreasonable expectation as to how soon he needs to respond to you.
famewolf said:
You posted your original question late on the 28th and this most recent complaint early on the 30th at least by my timezone....perhaps you have an unreasonable expectation as to how soon he needs to respond to you.
Click to expand...
Click to collapse
3 weeks is enough?
I tried to paste a boot animation in /system ; / media today and says operation failed. It's succesful only with <2 mb boot animations. Why? I am on android 5.1 LMY47I , No custom ROM or Kernel , TWRP installed.
awptiger said:
i tried to paste a boot animation in /system ; / media today and says operation failed. It's succesful only with <2 mb boot animations. Why? I am on android 5.1 lmy47i , no custom rom or kernel , twrp installed.
Click to expand...
Click to collapse
if yor system partition has only 2mb left you cant even paste a file of half a mb!
So the issue is your root explorer try changing it es file explorer is a good option!
Problem isn't with the file explorer, it's with all the Google bloat. You will need to delete some of it.
hope your /system is mounted read only which normally is the case. even with factory image there should be tons of space remaining.
Aerowinder said:
Problem isn't with the file explorer, it's with all the Google bloat. You will need to delete some of it.
Click to expand...
Click to collapse
how can i remove bloat? From what i know google does not delivers bloat with nexus devices.
aWpTiger said:
how can i remove bloat? From what i know google does not delivers bloat with nexus devices.
Click to expand...
Click to collapse
You can delete them with Titanium Backup or similar app.
Or you can run the script I made: https://db.tt/FFg1NiPM
Consider this your first and only warning: that script will wipe almost all Google apps that are on the play store from /system. That's Books, Magazines, Maps, Hangouts, etc. It does not wipe the launcher, keyboard, HTML Viewer, or Camera. Pretty much everything else non-essential will be deleted, though.
You can replace all these apps with the versions from the play store (moving them to /data), and freeing tons of space on /system.
Aerowinder said:
You can delete them with Titanium Backup or similar app.
Or you can run the script I made: https://db.tt/FFg1NiPM
Consider this your first and only warning: that script will wipe almost all Google apps that are on the play store from /system. That's Books, Magazines, Maps, Hangouts, etc. It does not wipe the launcher, keyboard, HTML Viewer, or Camera. Pretty much everything else non-essential will be deleted, though.
You can replace all these apps with the versions from the play store (moving them to /data), and freeing tons of space on /system.
Click to expand...
Click to collapse
I flashed it , thanks! Before flashing it i saw in busybox -2.0mb free space in /system , now there are 376mb. Thanks a lot for your script.
aWpTiger said:
how can i remove bloat? From what i know google does not delivers bloat with nexus devices.
Click to expand...
Click to collapse
No carrier/manufacturer bloat, perhaps. There's tons of bloat with the stock Nexus rom.
aWpTiger said:
I flashed it , thanks! Before flashing it i saw in busybox -2.0mb free space in /system , now there are 376mb. Thanks a lot for your script.
Click to expand...
Click to collapse
Next time you can just delete folders of apps that you don't need in /system/app and /system/priv-app with root explorer. Then go to /data/dalvik-cache and delete content.
Is this a normal thing, that after installing 5.1 I have no free space, I found this the case after attempting to install both xposed for 5.1 and trying to install busybox. Both fail.
Other then uninstalling applications, is there a way to free up space in /system?
What is the reasoning behind the 0 Free space of system partition?
slixzen said:
Is this a normal thing, that after installing 5.1 I have no free space, I found this the case after attempting to install both xposed for 5.1 and trying to install busybox. Both fail.
Other then uninstalling applications, is there a way to free up space in /system?
What is the reasoning behind the 0 Free space of system partition?
Click to expand...
Click to collapse
No. System partition is full and that's it. System partition is 1.05 GB and system.img of 5.1 simply take all of that space.
slixzen said:
What is the reasoning behind the 0 Free space of system partition?
Click to expand...
Click to collapse
Security.
Something's wrong here most apps don't get installed to the system partition
Sent from my Nexus 5 using Tapatalk
ldubs said:
Something's wrong here most apps don't get installed to the system partition
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
...
slixzen said:
install both xposed for 5.1 and trying to install busybox.
Click to expand...
Click to collapse
ldubs said:
Something's wrong here most apps don't get installed to the system partition
Click to expand...
Click to collapse
Yeah. http://forum.xda-developers.com/google-nexus-5/help/5-1-0-integrating-rom-t3051105
I have a script to wipe the Google bloat from /system and I know Vomer has CleanRom. I linked it in another thread a few days ago, if you can't find it PM me and I'll give you a link. I would just put the link here but on mobile.
Aerowinder said:
I have a script to wipe the Google bloat from /system and I know Vomer has CleanRom. I linked it in another thread a few days ago, if you can't find it PM me and I'll give you a link. I would just put the link here but on mobile.
Click to expand...
Click to collapse
It's not problem to remove any of system apps, you can do it with TiB or Root explorer.
zagorteney said:
It's not problem to remove any of system apps, you can do it with TiB or Root explorer.
Click to expand...
Click to collapse
Sure you can. It's just slow. And you have to do it every time Android updates, or you flash a stock-based ROM.