Android 6.0 - system partition full - hosts file - Nexus 5 Q&A, Help & Troubleshooting

Hi everybody.
I flashed Android 6.0 to my Nexus5 and rooted it with NRT.
Sadly i can't copy a new hosts file to /system/etc because there is to less space.
df shows in fact just 4k of free space.
Any suggestions?

Can I set a symlink for hosts to the /data-partition for example?

A good hosts file should not exceed 3Mb. Can't you free up space by moving some of your system apps to the data partition?

You can uninstall some of the system apps you never use. Removing Keep, Drive, and Android Pay did the trick for me. After rebooting it freed up about 28MB.

Thanks for the advice guys.
Got some error while trying to deinstall system apps.
So i want to create a hosts symlink to /data-partition. For simplicity i let AdAway generate the symlink.
Works flawless!

Related

Backing up apps / data (plus archiving/restore idea)

Ok, even though I have market and browser cache being saved to my sdcard, I still occasionally run into space issues due to the small /data partition. Prior to removing apps, I decided to back up my apps and data.
I have backed up my data partition using:
busybox tar -cvf /sdcard/data_backup_20081206.tar /data
After saving a copy to my computer via USB, I did MD5 checksum checks to make sure no corruption during the copy. I still need to do tests to see if I ever have corruption based on the thread in this forum.
* Anyone else making backups using other methods (rsync, etc.)?
--------------------------------------
This got me thinking to some other phone OS's that don't really run apps from SDCARDS, but rather store them and copy them to the phone prior to running them.
I would think that we could (with root access) write an app that moves files from the /data folders to a /sdcard/dataarchive folder, when you wanted to archive an app you don't use much and wanted to save space. Then the Archiver app could restore the files when you eventually wanted to run the app.
* Is there an easy way to see what files are used by each app? Someone mentioned a manifest file at one point.
For example, it looks like neocore is at minimum using:
/data/dalvik-cache/[email protected]@[email protected]
/data/app/com.qualcomm.qx.neocore.apk
/data/data/com.qualcomm.qx.neocore
* Is there a thread someone could point me to that better explains the whole APK packaging and storage of applications and their data?
** Is the structure usually just as above, except just replacing com.qualcomm.qx.neocore with the proper app name?
** When do things get saved to app-private?
O' great community... thanks for your help.
-oldsk00lz
i was looking for a way to synch my /Music and my /Pictures so I came across this blog. im mounting the g1's sdcard on a linux machine in this scenario
http://philnelson.name/tag/rsync/
heres my script that i use. hope this helps a little.
Code:
#!/bin/bash
echo "Syncing /Music /media/FC30-3DA9/Music for updates to /media/E0E4-AA14................................................................."
rsync -rvv /media/FC30-3DA9/Music /media/E0E4-AA14
echo "Syncing /Music /media/E0E4-AA14 for updates to /media/FC30-3DA9/Music................................................................."
rsync -rvv /media/E0E4-AA14/Music /media/FC30-3DA
echo "Syncing /Music /media/E0E4-AA14 for updates to /media/FC30-3DA9/Music................................................................."
rsync -rvv /media/E0E4-AA14/dcim /media/FC30-3DA9/Pictures/g1Cam

[MOD] Enable / Disable AdBlock in your rooted ROM

This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Thank you
Thanks, works like a charm!
this block adds in apps?
Works very good! Thank you!
pinkolin said:
This MOD is two files:
Enable Adblock Update File
Disable Adblock Update File
Download this two files to your SD card, apply (flash from recovery) first file if you need AdBlock, apply second if you don't need AdBlock. This files works at all rooted Android ROM's and phones, not only for Desire.
Source for AdBlock hosts file:
http://www.mvps.org/winhelp2002/hosts.txt
http://pgl.yoyo.org/adservers/serverlist.php?showintro=0;hostformat=hosts
See also my B&W Theme for Desire :-D.
Click to expand...
Click to collapse
where do we put hosts.txt file?
pinkolin, there are extra lines at the end of the hosts file:
Code:
</pre>
</body>
</html>
I suppose they should not be there, even if they do not cause issues.
kmetek said:
where do we put hosts.txt file?
Click to expand...
Click to collapse
It's in /system/etc but if you flash the ZIP file above, it will put the file at the right place by itself.
Thank you
what is the difference between adblock and ad free? does one block website adverts and the other block adverts in apps, or do they do the same thing?
Another way to do it...
And with this solution you can use AdFree with no freeze :
With ROM Manager, reboot in clockworkmod recovery...
From your computer with adb in DOS mode (adb-windows.exe for me) do this :
> adb-windows.exe shell
you should have now a # prompt
# mount /system
# mount /data
# cd /system/etc/
# mv hosts /data/data/
# ln -s /data/data/hosts hosts
# cd /
# umount /data
# umount /system
Now you can reboot your system from Clockworkmod recovery menu
Install ADFree from the market, and it should work.
It worked well for me.
Use it at your own risk.
Just to explain what it does :
When phone is working the partition /system is in read only. ADFree tries to write in it, it crash.
The solution I give is the same as for bootanimation.zip
Move the file "hosts" from read-only file-system (/system) to a writable file-system (/data) and make a symbolic link to it in /system to fake it position.
Phone believes "hosts" is still in /system. and ADFree can write in it because it is in /data for real....
Thank you so much Orphee. This eventually fixed it for me after struggling for a couple of hours without success. Couldn't write hosts to system/etc/ while system running; couldn't get Droid explorer to mount files (device in recovery mode). Tried with Root Explorer and couldn't copy hosts to /system/etc/ due to 'file too large/not enough room' error. Tried with adb and again couldn't successfully copy hosts file. All very frustrating, and I wish I understood the problem better.
Anyway, your symbolic link solution finally cracked it, though I had to try twice. FIrst time Adfree stalled. Second time I ran 'Revert' first and it then it worked fine.
Hi there. I can't get this to flash. I get:
Code:
E:Failure at line 3:
copy_dir PACKAGE:system SYSTEM:
Installation aborted.
What now?
Orphee said:
Another way to do it......
Click to expand...
Click to collapse
Best explanation and instructions I've seen on this - thanks a lot!
hey guys,
I don;'t know if you already knew this but,
if i've installed adfree on my phone the application
pingchat! wont work anymore it cant get connected to the server
to send the messages :s and when i delete adfree it works normally...
I used the 'enable' zip, but my hosts file still cannot be changed. Using CM 6.0.2
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Edit: Worked like a charm! No more damm ads.
Thanks
Worked like a charm!!
carlos67 said:
Can this be applied from ClockworkMod recovery mode to a stock Froyo sense rooted phone that is odexed and s-on?
Also not answered is does it block website ads when in browser or/& ads that appear when running apps.
Anyone???
Click to expand...
Click to collapse
Yes it blocks the ads from apps & browser
Woah! Great! so, no ads when im playng Angry Birds!
Pure Calendar Widget (Agenda)
I use the "Pure Calendar Widget (Agenda)" from the market, after flashing the MOD and rebooting the widget fails to load my calendar. Have flashed the disable MOD and it's back to working as normal. Weird as its a paid app and there is no advertising in it.

[Q] Enlarging System folder space?

Is there a terminal command to make the system file partition larger? I have a ton of free space on my sd card, and I have removed all the apk files I will not use, that can be removed, but I'm still having trouble flashing an MM theme, because it's not allowing me to rename the .apk I need to rename due to lack of space in my system folder. It says I need at least 5g free to do the themeing, but I've read that most roms only give you like 125mb in your system folder?
blasph said:
Is there a terminal command to make the system file partition larger? I have a ton of free space on my sd card, and I have removed all the apk files I will not use, that can be removed, but I'm still having trouble flashing an MM theme, because it's not allowing me to rename the .apk I need to rename due to lack of space in my system folder. It says I need at least 5g free to do the themeing, but I've read that most roms only give you like 125mb in your system folder?
Click to expand...
Click to collapse
Something isn't right there... 5g system partition is unheard of...I'm at a loss... I'd believe 5mb.
Sent from my "better than an iPad" tab.
What theme are you trying to apply, and what are you using to do it (MetaMorph, ZipThemer, T-Mobile/CM7 theme manager?).
I'm attempting to theme my swype keyboard. With http://www.4shared.com/file/V0t2yy0a/DarkLimePlasticSwype.html
Using metamorph.
When I run the theme it says "swype.apk" not found in system/apps
Found out that this is because it's named com.swype.android.inputmethod-1.apk, So I attempted to change it using the terminal command
su
cp /system/app/com.swype.android.inputmethod-1.apk /system/app/Swype.apk
but it said "no space on the drive"

[Q] baked-in app (in custom ROM) keeps looking for lib in wrong place

Hi there,
I have a custom ROM in which I integrated many apps (to save /data memory).
For the apps which have dynamic libs I put these in /system/lib.
This works without problems for all apps except for
Code:
com.intsig.BCRLite
(which is Business Card Reader Light)
It keeps looking in
Code:
/data/data/com.intsig.BCRLite/lib/
although the app is in /system/app and its libs are in /system/lib.
If I symlink /system/lib/<bizcardlib>.so to /data/data/com.intsig.BCRLite/lib/ it works, but the symlink sometimes disappears and then the app stops working.
Any ideas why it keeps looking in the wrong place?
EDIT:
This issue still isn't solved, and I have been trying to work around it via symlinking from system to data. I tried to make the symlink from a userinit script. The script runs, but it seems the links are later (during the boot process) deleted:
Code:
I/PackageManager( 184): removed obsolete native libraries for system package /system/app/com.intsig.BCRLite.apk
This happens at every boot, so I have to resort to using script manager to manually run a symlink script.
TIA!

[Tutorial] Install problematic APKs in /system (or /preload)

You may have tried to move some APKs to /system/app/ and end up with continuous crashes, usually resulting in abandoning your plan to save some otherwise wasted space (or preventing to accidentally uninstall all keyboards...)
This is often said to be a permissions issue, yet that's not enough for some packages: those with external libraries.
Copy the APK to /system/app/, then `chmod 644` it as usual.
You can also install to /preload and symlink to system
On your computer (easier but not required), open the APK (as a renamed ZIP).
Go to ./lib/{architecture}/, where on the Ace2 this is lib/armeabi-v7a.
Extract all the (.so) files here and put them in /system/lib.
There's no step 5!
Ryccardo said:
You may have tried to move some APKs to /system/app/ and end up with continuous crashes, usually resulting in abandoning your plan to save some otherwise wasted space (or preventing to accidentally uninstall all keyboards...)
This is often said to be a permissions issue, yet that's not enough for some packages: those with external libraries.
Copy the APK to /system/app/, then `chmod 644` it as usual.
You can also install to /preload and symlink to system
On your computer (easier but not required), open the APK (as a renamed ZIP).
Go to ./lib/{architecture}/, where on the Ace2 this is lib/armeabi-v7a.
Extract all the (.so) files here and put them in /system/lib.
There's no step 5!
Click to expand...
Click to collapse
Thank you very much :good:
All of the above is still true if you want to package apps in CWM format, but people who just are tight on /data (and don't want to repartition) can just use the convert to system app in Link2SD, which now actually works on apps with libraries

Categories

Resources