[Q] Ad Free and Mounting /system as rw issues - Desire Q&A, Help & Troubleshooting

I am having a really weird problem trying to get ad free working on Cyanogen 7. for some reason Ad Free is failing to write to the hosts file and usually ends up deleting all content instead of updating the file. The symlink option merely leads to the hosts file being completely deleted.
I have tried remounting /system as rw using mount -o rw,remount /system through an SU'ed terminal session but every time I then try to make any changes to the hosts file, either editing the content or manually creating a symlink, I get an Out Of Memory error. This is on a more or less virgin Cyanogen install.
I should mention the reason I installed Cyanogen was because I was seeing pretty much exactly the same behaviour under my previous O2 install.
Does anyone have any ideas what on earth is going on and how I can fix it?

Oh hang on, I am still S-ON. That is bad, right?

i was on s-on till last week and adfree worked for me at this time
but adfree was already included in the ROM is used (Runnymede AIO)

Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

Related

Free memory in /system in new 2.1 Eris Leak ROMS

Ahoy hoy.
Just a quickie, I'm using nprussell's lovely Villain 3.2 atm but I'm having an arse of a time pushing things over using adb because the system is always 99% full. Same goes with the other Eris-leak-based-ROMs.
Is this because the rom is based off of a system dump? And does anyone have any clues on how to free it up some...
I would be soooo grateful for any help.
you can try moving apps from /system/app to /data/app, for example google maps gives you 2.6 mb in /system... also check /system/bin and /system/xbin if you can get some stuff out there to /data/xbin. you can probably get ~10mb back easily. also check for stuff you don't need in /system/app (for me that would be twitter, stock, footprints, quickoffice). remember to delete the .odex aswell if there is one, not only the .apk.
Easier way?
Is there any easier way to remove stuff from system/app than remounting it like this?
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
other than changing it in the rom before you flash it?
kendong2 said:
other than changing it in the rom before you flash it?
Click to expand...
Click to collapse
Yes, I'm talking pre-flashed.
try my latest rom, i have 14mb free which is about 9%
tricky
I tried moving some apps from /system/sd on Villain 3.3 and it works for apps that are not related to the core system .. so if you move google maps it will work
it is also possible to remove twitter, flickr, facebook .. etc .. (unless you need it)
but when I moved some (many) HTC apps I got fc's and the stock lock screen and so on
I knew it was a stupid idea anyway but I have never tried it so I had to see
anyway: dont remove and/or move core htc apps, they seem to highly depend on each other

Removal of bloatare

10 charsssss
usually, if you're trying to remove bloatware, i would suggest downloading and installing a different rom. since its the stock rom, you're going to have a helluva time rm'ing the programs that came with it since its all built in. if you wanted to, you could download one of the nonsense roms or wes's rom that dont have the bloatwares in them to try out
yes i also wld like to know how to do this
Since everyone else is posting like a bunch of morons I guess I will have to continue calling you all out!
THERE IS A Q & A SECTION ... POST IN THERE!
Well I have to call you out this is the q&a section everyone needs to stop being an ass.
Sent from my T-Mobile myTouch 3G Slide using XDA App
DroidHead said:
Since everyone else is posting like a bunch of morons I guess I will have to continue calling you all out!
THERE IS A Q & A SECTION ... POST IN THERE!
Click to expand...
Click to collapse
Yeah, nice job, ****. We have mods for a reason, because they know what they're doing, unlike you. You're just going from topic to topic making a complete ass of yourself. Why?
To follow along the lines of some of your other posts:
POST FAILED.
GTFO.
Wow, that will teach me to switch to XDA. I knew there were some dickheads in this forum which made me hesitant to sign up, but really? That was quick. Thanks for "calling me out." I feel that it was an excellent use of your spare time. Now looking next to your name I don't see Forum Mod spelled anywhere. I think that means you should get the hell out of this thread if you have nothing constructive to say.
Anyway, thank you kingofyo1 for your suggestion and insight. I'm still looking into this issue.
Don't leave just cause of him, if you look through his posts, this is all he's been doing lately. Just trying to get his post count up, and this thread proves it.
We aren't all like that.
Thank you
I have no intention of leaving just yet, as pathetic morons are to be expected in forums.
Adb has an uninstall command. Have you tried this instead of rm?
I would just make sure I was in recovery and mounted before I tried. Good luck and let us know if you get it done
Sent from my T-Mobile myTouch 3G Slide using XDA App
mmmark111 said:
I wasn't sure if it would be appropriate to post this question here but I have seen more asinine threads posted so why not.
I come from a rooted Behold 2. With that phone I could navigate to the /system/app and delete and replace .apks as I saw fit. Now with the MTS it seems I can't remove anything that came preinstalled.
So far I have tried removing some .apks from CMD as well as through clockwork recovery with no luck.
One of the steps I have taken
C:\Android\Tools\adb shell
#mount -o rw,remount /dev/block/mtdblock3 /system
mount -o rw,remount /dev/block/mtdblock3 /system
#rm /system/app/stock.apk
rm failed for /system/app/stock.apk, Directory not empty
#
Any help would be appreciated.
And yes, I have searched and still have not found a working method.
Click to expand...
Click to collapse
You can not write to system while booted normally, the SPL security on this phone does not allow it. You need to have flashed the engineering ROM, then boot in to clockwork mod, mount /system, then enter your shell and delete the apps.
falken98 said:
You can not write to system while booted normally, the SPL security on this phone does not allow it. You need to have flashed the engineering ROM, then boot in to clockwork mod, mount /system, then enter your shell and delete the apps.
Click to expand...
Click to collapse
Unfortunately I have tried this as well as the previous suggestion. Have you done so successfully?
mmmark111 said:
I wasn't sure if it would be appropriate to post this question here but I have seen more asinine threads posted so why not.
I come from a rooted Behold 2. With that phone I could navigate to the /system/app and delete and replace .apks as I saw fit. Now with the MTS it seems I can't remove anything that came preinstalled.
So far I have tried removing some .apks from CMD as well as through clockwork recovery with no luck.
One of the steps I have taken
C:\Android\Tools\adb shell
#mount -o rw,remount /dev/block/mtdblock3 /system
mount -o rw,remount /dev/block/mtdblock3 /system
#rm /system/app/stock.apk
rm failed for /system/app/stock.apk, Directory not empty
#
Any help would be appreciated.
And yes, I have searched and still have not found a working method.
Click to expand...
Click to collapse
I tried everything it didn't work flash new roms
Can you just do a nandroid of stock then pull them from the nandroid and reflash it ?
Sent from my T-Mobile myTouch 3G Slide using XDA App
mmmark111 said:
Unfortunately I have tried this as well as the previous suggestion. Have you done so successfully?
Click to expand...
Click to collapse
You have flashed the engineering rom at some point in time, booted in to clockwork recovery, mounted /system, entered the shell(while still in clockwork) and then tried to remove files from /system/app/ and it didn't work?
It works fine as long as all those steps all followed. Did you get any errors?
there is an option in clockwork called partition menu, you must mount system using the partition menu as the other way does not work for some reason, after that you can adb shell and rm the apps you do not want, or if you like i can send you my ROM with the bloat removed

[Q][S-ON] screwing around with Wildfire S

I posted this here - http://forum.xda-developers.com/showpost.php?p=18647176&postcount=14 - but never got an answer so I'm posting it to its own thread. I would post to the development section but apparently until I clutter up the place with 10 posts I'm considered a drooling idiot.
I was playing around and I noticed that the problem is with s-on I cannot write to /system meaning no superuser etc. So I remembered from way back when I started linux you could mount over a mounted folder. So I made a small file, put ext3 on on it, transferred it to the sdcard and mounted over /system with
mount -t ext3 -o rw,loop /mnt/sdcard/test.dump /system
it worked and then of course I lost all commands (ls, reboot...) in the shell.
Would it be possible to dump /system with "cat /dev/mtd/mtd3 > /mnt/sdcard/system.img", extract it, put it in an ext3 file, mount it as readable over system and just go to town?
Somebody MUST have tried this in the past. Before I go any further can anyone tell me why this wouldn't work and save me a few hours noodling around lol
baconbacon said:
I posted this here - http://forum.xda-developers.com/showpost.php?p=18647176&postcount=14 - but never got an answer so I'm posting it to its own thread. I would post to the development section but apparently until I clutter up the place with 10 posts I'm considered a drooling idiot.
I was playing around and I noticed that the problem is with s-on I cannot write to /system meaning no superuser etc. So I remembered from way back when I started linux you could mount over a mounted folder. So I made a small file, put ext3 on on it, transferred it to the sdcard and mounted over /system with
mount -t ext3 -o rw,loop /mnt/sdcard/test.dump /system
it worked and then of course I lost all commands (ls, reboot...) in the shell.
Would it be possible to dump /system with "cat /dev/mtd/mtd3 > /mnt/sdcard/system.img", extract it, put it in an ext3 file, mount it as readable over system and just go to town?
Somebody MUST have tried this in the past. Before I go any further can anyone tell me why this wouldn't work and save me a few hours noodling around lol
Click to expand...
Click to collapse
S-on itself got nothing to do with rooting. It just means you can't flash unsigned images as much as I know.
That system is mounted as ro is also at rooted phones the standard behaviour, you have to remount it as rw, but without root it won't accomplish I think.
Cat is for text files not for binaries or whole partitions, to extract the image use the dd command.
Do you have an /dev/mtd folder? My partitions are at /dev/block and there is no /dev/mtd present.
Swyped from my HTC Desire S
Tectas said:
S-on itself got nothing to do with rooting. It just means you can't flash unsigned images as much as I know.
That system is mounted as ro is also at rooted phones the standard behaviour, you have to remount it as rw, but without root it won't accomplish I think.
Cat is for text files not for binaries or whole partitions, to extract the image use the dd command.
Do you have an /dev/mtd folder? My partitions are at /dev/block and there is no /dev/mtd present.
Swyped from my HTC Desire S
Click to expand...
Click to collapse
This issue is that when you remount it as rw you cannot write to it. I want to know if I make my own partitions and mount them after boot if that will work, probably slower but work. This is so lojack I doubt it will work, I just want to know if anyone tried it.
Also "Cat is for text files not for binaries or whole partitions" is wrong, it works fine.
baconbacon said:
This issue is that when you remount it as rw you cannot write to it. I want to know if I make my own partitions and mount them after boot if that will work, probably slower but work. This is so lojack I doubt it will work, I just want to know if anyone tried it.
Also "Cat is for text files not for binaries or whole partitions" is wrong, it works fine.
Click to expand...
Click to collapse
Then it's not rw, because rw stands for read write, but like I said without root...
And no I think no one tried it before, because using an xtc-clip is compared to your solution much less work
But if you want to try it, do it and share your experiences, maybe it helps others
That cat works doesn't mean that it's made for it, you can also hunt for birds with a bazooka
Take a look at cat and dd and choose yourself.
Tectas said:
Then it's not rw, because rw stands for read write, but like I said without root...
And no I think no one tried it before, because using an xtc-clip is compared to your solution much less work
But if you want to try it, do it and share your experiences, maybe it helps others
That cat works doesn't mean that it's made for it, you can also hunt for birds with a bazooka
Take a look at cat and dd and choose yourself.
Click to expand...
Click to collapse
is xtc-clip better? yes, not arguing that. is cat is better then dd? no, I said cat works in this instance the same as dd, the results will be the identical.
I didn't ask this question to argue unrelated linux 101. I'm just going to look into this myself. iow screw you guys, im going home...
Dude, I use Linux too though I'm probably not a guru. I think I understand what you're saying... but if I do, aren't you just talking about editing a copy of /system? How would you mount your edited partition at boot?
Time permitting, I could try a few tricks but I'm not willing to risk bricking my phone though. I'd be stranded without it.
Sent from my HTC Wildfire S A510e using XDA App
First don't blame others, because of things I wrote.
I never said it couldn't work, I just wanted to show you that there are better ways to do it, cause cat also tries to interpret the file and not only copies it, what could mess up your image in some cases.
Also be aware that if your using the same data and cache partition with both of your systems, it could be easy bricked, if you change to much at your 2. system and remember that there aren't many ways left to get it working again cause your still s-on.
I think he wants to mount it himself every time after boot.
If he can root his 2. system (but all by hand, I think) he maybe can mount his 1. system as rw and also root it, but the chance that something goes wrong is pretty high, even mounting itself could freeze the device, cause the first system is still in memory.
I'm also not even close to be a Linux guru.
Swyped from my HTC Desire S

[Q] Superuser update problems HTC Desire

Hi guys,
As the title mentions I have problems updating my Superuser app. I'm currently running 2.1 and would like to upgrade... The fix program doesn't work for me either...
Is there an other way to upgrade? Or is in imbedded in my Amon_RA V2.0.0 root?
Can someone help me ?
Cheers
Marnix
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A
Try updating your SU package via recovery. You can download the .zip from the official site ("Superuser-3.0.7-efghi-signed.zip").
Be sure to have at least 1 MB of free /system space, because v3 is quite large compared to v2.
Will this erease my data? Or does it only change superuser?
Greetz
No, this will not touch your data. All this does is overwrite the current SU APK [/system/app/Superuser.apk] and SU binary [/system/bin/su] version with the latest one. Note: before flashing, use a root explorer-type app to check if the APK and the binary are in the locations enclosed in brackets (as this is where the script will install them). Some cooks, as ChainsDD has pointed out, put the binary in a different folder than that it should be in. Oh, and again, make sure you have at least 1 MB free on the /system partition.

[Guide]Functional ext4 for external microSD with just a few bumps left

Y.G. said:
I formated my sd card to Ext4 and when insert it in to my phone, it says that's it's blank and has unsupported files. Any reasons for that?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
The SPH-L710 Samsung Stock LJ7 TW 4.1.1 Android doesn't understand/support the change to ext4 external SD card (microSD) without a few things being done.
I'm working this out right now. So far I have manually been able to mount the newly created ext4 partition on the microSD card through adb, and after some chown/chmod I was able to go back to "Settings and Storage" and the "Mount SD Card" picked it up, and I was up and running ext4. But this didn't persist after a restart. So I'm looking into: /etc/vold.fstab MODS to keep it after restart right Now !!
If Some one else already has this perfected please chime in. I'm wanting to do most of the devices in the house this way when I get time because better performance, having a file system with a journal, and getting rid of thins like 4 Gig per file limitations is pretty Sweet in my humble opinion *Grin*
0) Assuming you already have your microSD card formatted ext4. I also happened to label mine extSdCard for the volume label within gparted
1) Can mount with:
mount -w -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard/
2) To get the correct owner and permissions run:
chown root:sdcard_rw /storage/extSdCard
chmod 775 /storage/extSdCard
3) Should make the extSdCard owner/permissons match the regular internal sdcard you can verify this like so:
cd /storage/ && ls -l
drwxrwxr-x root sdcard_rw 2013-01-12 18:16 extSdCard
drwxrwxr-x root sdcard_rw 2013-01-12 17:05 sdcard0
4) After that you can go to the "Settings and Storage" to run "Mount SD" and you will have ext4 extSdCard Show up and it bring up the File System Status !! --> Until you reboot and it goes to crap because I don't have the vold.fstab edit/MOD complete _yet_ ... So, for now a boot script has been put in place to bring our external SD card back online during restart, so the system will acknowledges it, making the world a better place.
Example of how things look file system wise: mount | grep extSdCard
/dev/block/mmcblk1p1 /storage/extSdCard ext4 rw,relatime,user_xattr,barrier=1,data=ordered 0 0
5) Have not been able to resolve the vold.fstab to make this ext4 extSdCard matter fully Legit (in my opinion), but I did manage to make it remount the card on boot, so its online when the system comes up instead of having to manually mount it. Did this by -->
Added the following lines to the very bottom of: /etc/init.qcom.post_fs.sh
## sponix MOD to match with ktoonz kernel for better power management
stop mpdecision
## sponix MOD to mount extSdCard prior to GUI work around to make ext4 function
## read and write extSdCard mount
chown root:sdcard_rw /storage/extSdCard
chmod 775 /storage/extSdCard
mount -w -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard
chown root:sdcard_rw /storage/extSdCard
chmod 775 /storage/extSdCard
## if you want read only extSdCard mount
## mount -r -t ext4 /dev/block/mmcblk1p1 /storage/extSdCard
Still attempting to automate the process so the Stock+root LJ7 can pick up the extSdCard _normally_ without having to do the mount command manually, but so far its kicking my butt. Also this is more a "General, or Question and Answer type Topic" the Kernel(s) obviously support ext4 the system fs uses/requires it *Grin*.. So we might get Our Friendly Neighborhood Moderator to Migrate it to the proper place to help others. Just hoping to get the last few bumps smoothed out, or find someone that already documented the process that I've overlooked *Grin*..
Current Known Issues: If you unmount the card through the "Settings | Storage | Umount SD" or by hand with umount, you will either need to reboot for it to reattach through the /etc/init.qcom.post_fs.sh boot script script addition, or will have to mount it manually if you want to keep the system up and running. Guess you could also probably just run the /etc/init.qcom.post_fs.sh as root from a terminal emulator (or adb).
Still searching for vold.fstab bits of wisdom but that will have to continue next weekend -->
Sexy and You Know it,
Keep on Flashing,
sponix2ipfw (sponix
:fingers-crossed:
Ha! Sorry. Deleted: Didn't understand that you had it running on boot (can't read properly )
Great idea
Am I really the only one who also thinks this idea is the nuts?
Am I the only one who longs to transform the mess that passes for a filing system on the internal sd using symbolic links into a beautifully organized, encrypted and cloud synced system on my external sd?
Is it just me and a few others that want to be able to achieve the above so that we can move from one ROM to another or recover from a lost phone with the minimum of fuss?
Are we freaks? :cyclops:
Say it isn't so XDA!! :crying:
I'm gonna try this on my international S3 running Null_ Rom 25 JB 4.1.2
PS do you have any idea how the entire ExtSD or just a folder can be enrypted using Cryptonite and automatically mounted at boot time?
emp111 said:
PS do you have any idea how the entire ExtSD or just a folder can be enrypted using Cryptonite and automatically mounted at boot time?
Click to expand...
Click to collapse
Is this along the lines of what you're looking for?
http://forum.xda-developers.com/showthread.php?t=1141467
Also your idea is pretty insane, but also genius
If you get that to work please do come back and share
Insane ideas are the best lol
CNexus said:
Is this along the lines of what you're looking for?
http://forum.xda-developers.com/showthread.php?t=1141467
Also your idea is pretty insane, but also genius
If you get that to work please do come back and share
Click to expand...
Click to collapse
Thank you for your prompt reply, yes it is asking a lot I know but I think that it can be done.
Now if you really thought that idea was insane......check this out:
Imagine that we asked every Android app developer to submit the various paths used for their config (and config backup) files to a central database and had the ability to add or own custom paths (which could be added to the central database once approved).
We could build an script/app that would retrieve a list of currently installed apps on your phone then automatically build a symbolically linked file system (and/or backup file system) in the location of your choice that you could either encrypt and/or sync using your current tools or even incorporate this functionality into the app itself along with the ability to choose what was encrypted/backed up and how i.e. either synced to the Cloud or (S)FTP or SMB as either a dd copy or even a cwm flashable zip.
Could I dare hope for a Tasker module or the ability to add custom scripts?
I wish I could do this myself but my coding skills are non existent
Anyway the LUKS manager app won't automatically mount a file system, but I really like it anyways, thank you for pointing me to it!
And on the Ext4 front, the mount command (yes the 1st one ) failed, maybe the op could offer a suggestion. :angel:
BTW is there a place for people to suggest ideas for apps here?
Wait really it wont? I couldve sworn I remembering that it did
But dude....
You need to learn yourself some java and start whipping stuff up
Idk about the whole central database thing, but the rest could definitely be done with root access
I think the main problem with that is the proprietary aspects...i mean even here on XDA where binaries released are supposed to be GPL compliant, many of them arent and its sad because it deteriorates the overall quality of work thats released afterward
This whole thing is just hard work!
CNexus said:
Wait really it wont? I couldve sworn I remembering that it did
Click to expand...
Click to collapse
Doesn't seem to unfortunately
But dude....
You need to learn yourself some java and start whipping stuff up :D :D[/QUOTE said:
You make it sound soooo easy lol, and at another point in my life maybe it would have been but right now I'm operating at a reduced level due to some unforeseen circumstances that have left me lacking focus, motivation etc
You know all the things you need to be creative, learn etc lol
Anyway back to the matter at hand, I have got my ext4 SD card to the stage where I have to manually mount it from within the Settings/Storage as I'm using the international S3 and don't have the init.qcom.post_fs.sh, I think the qcom refers to Qualcomm chipset in US S3's.
As for modifying vold.fstab so we can avoid the above workaround it would seem that maybe thats a dead end as according to a German guy on android-hilfe. de, Vold may have been modified by Samsung to only deadl with exFAT on External SD's.
Looks like I'm not gonna be in Android nirvana for a while :crying:
Unless anyone else on XDA fancies getting in on this !!!!
Click to expand...
Click to collapse
Got it working ..... kinda
Got an app called ezymount (by ezynow) that automounts my ext4 64GB microSD at boot time.
I have to wait a few seconds for the boot process to complete but it's automatic, am pretty happy!!
Now gotta get symlinks, encryption and cloud synchronization sorted :/

Categories

Resources