[IDEA] AD Blocking - Nexus One Themes and Apps

There are multiple apps on the market that claim to block ads by turning off all internet access while app is open. This doesn't sound very convenient at all. Say I wanna play angry birds for half an hour or so, no Facebook notifications, no emails, no Skype calls while doing so. Miui have a internet monitor app and under firewall, you can select which apps data usage is monitored. Why can't we create an app that blocks just that apps access to the internet? Unless the ad framework is part of the android system?

AdFree work great.

using adfree for like a year and it always worked fine. If it doesn't work: download & install new hosts

xpatriick said:
using adfree for like a year and it always worked fine. If it doesn't work: download & install new hosts
Click to expand...
Click to collapse
Yep, it sometimes lets the odd ad slip through but on the whole it cuts them out.

Agreed; hosts file modification, which is what Adfree Android uses, is best.

You could also install Gigglebread and remove apps network access permissions when all they use it for is downloading ads. Works well.

omgwowiamatwat
Thanks guys for your replies. I can't even believe I've never found this app. You guys are bloody legends!

+1 for addfree ...it's the best out there!

Adfree used to screw up Words with Friends. Dunno if it still does...

Ummm...droidwall?

overground said:
Ummm...droidwall?
Click to expand...
Click to collapse
Its an option but not for the words-with-friends example which needs internet access.
Apps can detect if their ad-provider is blocked in etc/hosts and refuse to work.
http://strazzere.com/blog/?p=391
http://code.google.com/p/adfree-detector/
Any more ideas?

There is a script that can be ran in terminal to allow access to ads only for word with friends so you can play the game while ADFree continues to block all other adds.
I go searching and post back here when i find it
Here is the script: Open Terminal and type as shown (Press enter after each line) and now words with friends will work with the adds while add free will continue blocking all other adds.
su root
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
vi /system/etc/hosts
?androidsdk.ads
dd
?mydas.mobi
dd
:wq

Chosen_on184 said:
There is a script that can be ran in terminal to allow access to ads only for word with friends so you can play the game while ADFree continues to block all other adds.
I go searching and post back here when i find it
Here is the script: Open Terminal and type as shown (Press enter after each line) and now words with friends will work with the adds while add free will continue blocking all other adds.
su root
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
vi /system/etc/hosts
?androidsdk.ads
dd
?mydas.mobi
dd
:wq
Click to expand...
Click to collapse
So you're just editing the file in vi and deleting two lines. You could also write a gscript script to switch between a stock hosts file and an adblock fille version before and after running the game.
Would removing the global read attribute work?, i.e. do not allow apps to read the file. (system/root still can)

is there a more recent hosts file? I have the 4-15-2010 version

I'd rather support the developers.

You can also push an updated hosts file yourself. This is what I was doing before adfree but it (adfree) works nearly as well without the hassle.

JCopernicus said:
I'd rather support the developers.
Click to expand...
Click to collapse
+1. I like the revenue generation mechanisms in Android, they allow me to play great games and use excellent programs without paying for them, for a price of seeing ads. Those who want to ads, should pay to support the developers and buy ad-less versions.

You could also install Gigglebread and remove apps network access permissions when all they use it for is downloading ads. Works well.
How do you do that?
(Nexus S Android 2.3.3 - NO ROOT)

Related

[GUIDE] Removing system apps without a PC

Sometimes, you want to remove an app without a PC near by, or ADB is being a pain on your PC and Moxier is really annoying you.
So here is a quick step-by-step guide to removing apps without needing one of those pesky computers
You will need... your rooted Android phone with Terminal Emulator installed.
Open up Terminal Emulator.
The first step here is to mount the system directory with read/write permissions:
mount -o rw,remount /dev/block/mtdblock3 /system
Now, for system apps, we need to change directory to the system apps folder:
cd /system/app
Next, to list all the apps in here simply type:
ls (thats lower case L, not upper I)
Finally, the actual removal of the app, I will use Moxier Mail as an example, as this is everyone's favourite app to Remove, but as long as it is in the above list, this works:
rm -r moxiermail.apk (this IS case sensitive)
Hope this will help someone out there.
All of the above has been found from Google, I just put it here because I have needed it recently and thought others may too.
I just used titanium backup.. no need to fiddle with codes ;-)
Sent from my X10i using XDA App
Wait, Titanium Pro can uninstall Moxier and Quadrapop ? So we can just root the phone and with that app remove apps that we dont want ?
Yup.. Got rid of alot of apps including the ones above, mediascape and timescape an all
although slight issue with timescape removal (i think) was error when you wanted to view a contact in detail.. although I've alwayz preferred long holding contact name to call, sms, etc.. I'm sure a contact app could be a solution to this.
hope it helps!!
Sent from my X10i using XDA App
Mobzter said:
although slight issue with timescape removal (i think) was error when you wanted to view a contact in detail.. although I've alwayz preferred long holding contact name to call, sms, etc.. I'm sure a contact app could be a solution to this.
Click to expand...
Click to collapse
Did the same with titanium, thanks, the long press won't let you choose other then the default number... installed phone book app from the market, works fine but cannot select to call from the search widget what was a must for me.
By the way, did you try to uninstall the phonebook.apk?
Also, does anyone knows how to re install timescape?
Sent from my X10i using XDA App
Mobzter said:
Yup.. Got rid of alot of apps including the ones above, mediascape and timescape an all
although slight issue with timescape removal (i think) was error when you wanted to view a contact in detail.. although I've alwayz preferred long holding contact name to call, sms, etc.. I'm sure a contact app could be a solution to this.
hope it helps!!
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Then I really dont know why are people messing with those instructions and entering them in cmd, I was hoping to have this easy way for it.
Tnx
excellent thread
this is great for complete and utter n00bs like me. im learning more because of threads like these. thanks
Nope joel.. I didn't try remove the phonebook app lol god knowz if anything would have worked then. I went on to instal the r2ba023 root so I knew what to avoid this time.. so far running really well unfortunately not havin a really good time with the battery though.. was similar to when I had r2ba020 root.. some reason it actually drains more than when I had the r1fa016 firmware lolz think I'm gonna try an extra charge overnight wish me luck!!
Sent from my X10i using XDA App
I wonder your results... Keep us posted please!
Sent from my X10i using XDA App
Well I actually knocked off so didn't get to extra charge lol but it was charged over 80% anyway so wasn't too fussed.. what I've noticed so far is in standby in an hr I've lost nothing, but when I use 3g/wifi I lose like 2% in like 10 mins or so!! wierd!!
Sent from my X10i using XDA App
Its say read only file system...
$ export PATH=/data/local/bin:$PATH
$
mount -o rw,remount /dev/block/mtdblock3 /system$ $
mount: Operation not permitted
$
If the command line method isn't working for you, you may have to enter
$ su
first to enter super user mode. Then follow thefunkaygibbon's great guide.
And if you're using Titanium Pro, Freeze works great if you're shy about uninstalling a system app. You can always unfreeze it if you run into problems.
I need help, I removed news widget with Android Titanium backup. First, I back up the widget and then uninstall and reboot. I did this because the news widget/news app stock in my HTC DHD stop working. After reinstall with back up the news app working but the widget disappear when i search it through widget area to add it to my home screen.
Help appreciated.
Thx
Titanium Backup is the best.....if you are Rooted.....
You can remove System/User Application.....you can freez system aplication(better than uninstall)...you can backup system data/user application+data........on the fly.....
:0
The best part about Titanium, is if you've purchased it, you can freeze apps if you're unsure if removing them will cause problems. If there are no problems after a few days, they should be fine to delete. If problems arise, just unfreeze the app.
Hi!
I tried:
$ export PATH=/data/local/bin:$PATH
$
mount -o rw,remount /dev/block/mtdblock3 /system$ $
mount: Operation not permitted
$
Wan't work, I also tried the same with "su"
I also become "permision denied"
I rooted the phone with z4rooot
I wan't to remove moxier mail, need never Version 2.8
What's wrong????
thanks
Root manager is the best.
thefunkaygibbon said:
Sometimes, you want to remove an app without a PC near by, or ADB is being a pain on your PC and Moxier is really annoying you.
So here is a quick step-by-step guide to removing apps without needing one of those pesky computers
You will need... your rooted Android phone with Terminal Emulator installed.
Open up Terminal Emulator.
The first step here is to mount the system directory with read/write permissions:
mount -o rw,remount /dev/block/mtdblock3 /system
Now, for system apps, we need to change directory to the system apps folder:
cd /system/app
Next, to list all the apps in here simply type:
ls (thats lower case L, not upper I)
Finally, the actual removal of the app, I will use Moxier Mail as an example, as this is everyone's favourite app to Remove, but as long as it is in the above list, this works:
rm -r moxiermail.apk (this IS case sensitive)
Hope this will help someone out there.
All of the above has been found from Google, I just put it here because I have needed it recently and thought others may too.
Click to expand...
Click to collapse
Sent from my X10i using XDA App

Aura crashing and buggy? FIX

Not sure if it's just me but I have been using Sygic Aura for a few weeks now and find it crash prone and buggy. However it remains the best option I have seen without data. I have e-mailed their support but that looks a limited path so far.
From the feedback on the market I am not the only one. So I have decided to post my work around here.
What I will say is that it's great software when it's working but often crashes and sometimes (I think when you try to start it too soon after a crash) it loses it's settings completely not great when you happen to use your phone for other things during a journey like making calls.
So on to the workaround, you will need :-
one rooted phone
gscript lite (available free app on the market developed by someone on this forum)
my script:-
Code:
busybox mv /sdcard/Aura/Android/settings.dat /sdcard/Aura/Android/settings.old
busybox mv /sdcard/Aura/Android/weather.dat /sdcard/Aura/Android/weather.old
busybox cp /sdcard/download/aurafiles/settings.dat /sdcard/Aura/Android/
busybox cp /sdcard/download/aurafiles/weather.dat /sdcard/Aura/Android/
busybox mv /sdcard/Aura/Res/db/items.dat /sdcard/Aura/Res/db/items.old
busybox mv /sdcard/Aura/Res/db/main.dat /sdcard/Aura/Res/db/main.old
busybox cp /sdcard/download/aurafiles/items.dat /sdcard/Aura/Res/db
busybox cp /sdcard/download/aurafiles/main.dat /sdcard/Aura/Res/db
am start -a android.intent.action.MAIN -n com.sygic.aura/com.sygic.aura.SygicAuraActivity
exit
How to do it.
firstly configure aura how you want it and exit the program.
secondly copy the following files :-
/sdcard/Aura/Android/settings.dat
/sdcard/Aura/Android/weather.dat
/sdcard/Aura/Res/db/items.dat
/sdcard/Aura/Res/db/main.dat
In to the directory/folder:-
/sdcard/download/aurafiles/ (you will need to make this folder)
(you may not need all these files but it does work with all of them if you add favourites you may want to redo this stage regularly probably worth scripting itself.)
Open up gscript lite on your droid, select add script input a name and paste my script in and save
best of all you can add a shortcut directly to the script in your homescreens.
no more lost settings in Aura.
I have only done a few tests so far but these have had the desired effect even when the software has reset. I will update the post if I bump into any unforseen site effects. This script is provided without warranty or blame if it doesnt work for you!!
Enjoy!
new favourites are retained they are in another file.
nope I was wrong it resets favourites so a script to copy them in the first place!
Sent from my GT-I9000 using XDA App
aura is pretty much unuseable on my galaxy s cap.
not only does it crash all the time, it sometimes reboots my phone.
i like the UI, but it's way too buggy.

Removing Bloat

I posted something similar in the GPS thread for the Galaxy S 4G. I used the One Click Root method and Root Explorer to go in and delete a bunch of bloat from my /system/app and /data/app folders. I pulled out Telenav.apk, DoubleTwist.apk, Layar.apk, VisualVoicemail.apk (replaced with the older, mostly black version that isn't hideous), and Slacker.apk as well as the various .odex files where appropriate.
However, since then I've seen two problems: News and Weather doesn't want to find my location via GPS anymore, and I have to be on Wifi for it to find me. A small annoyance and makes me wonder if the new ROM references Telenav for some location data (which is a good theory following problem two).
The second, more concerning problem, is I'm seeing what I can only call "phantom force closes". It happens after rebooting, randomly when enabling Bluetooth or wifi, and in the stock browser on random websites, the phone vibrates several times indicating errors, will crash out the application (and one time the phone itself), but does not give me the force close error message telling me what app or why. It's definitely looking for either doubletwist or telenav but I can't figure out why it would need to do that as they are 3rd party apps. I've removed these apps before on the Vibrant 2.1 and 2.2 roms without any real problems.
If anyone can provide some helpful information it would be much appreciated. The phone has been more stable the last few hours since several reboots but will likely start acting up again later.
Any thoughts?
I removed all those apps and more without getting a problem on my phone. But I left telenav cause its free and its not beta. I also used terminal emulater and systemapp remover to remove them. Then I used root explorer to delete the odex files of the apps I removed. Maybe the way your removed them was bad.
How do you remove the odex files? Where are they located?
Remove Stock Files / Apps
Here is a quick way to remove the apps that come preinstalled on the T-Mobile Samsung Galaxy S 4G. (you could also follow this for the ones that have .odex files as well. See ls command at the end).
I pieced this together from several forums. Hopefully it will save someone the trouble of doing this themselves (or serve as a refresher like it did for me).
Sorry I couldn't post formal links to the source files (forumn rules), apparently I don't contribute enough . Just put the server names in internet explorer and it should get you there.
1.) Download the Samsung Galaxy S 4G Root app. from mediafire.com/?096oxx07q6d88b3
2.) Download the Samsung USB Device Drivers from here:
-Windows 32 Bit drivers.softpedia.com/get/MOBILES/Samsung/Samsung-Galaxy-S-USB-Driver-for-Windows-x86.shtml
-Windows 64 Bit drivers.softpedia.com/get/MOBILES/Samsung/Samsung-Galaxy-S-USB-Driver-for-Windows-x64.shtml
3.) Install the drivers.
4.) Extract (unzip) the root app to a familiar folder.
5.) Enable USB debugging on your phone: Settings -> Development -> USB Debugging
6.) Plug your phone into your computer (wait till the drivers install)
7.) Open the Root app and click Shell Root
8.) Open a command shell (Start -> Run -> cmd)
9.) Type each line, pressing enter after each line:
cd <replace this text and these brackets with the folder location of the root app>
adb shell
cd /system/app
mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
10.) Next type the following two commands (replace the <...> with your app name, press enter after each line) for each app you wish to remove
chmod 777 <insert your ap name here.apk>
rm <insert your ap name here.apk>
Here is a list of the one's I removed. You can get a list of others by typing the two letters "ls" without quotes into the shell and press enter:
Note: Do not type in the app names in front of the file names, they are just there to let you know what you are deleting.
Kindle App - Kindle-OEM-1.1.1.90750089-20100927.apk
Facebook App - FBAndroid-1.4.1.apk - Facebook App
T-Mobile TV - com.mobitv.client.tmobiletvhd.apk
Doubetwist - doubleTwist.apk
Amazon MP3 - AmazonMp3.apk
Layar - Layar-samsung.apk
Slacker Radio - slackerradio.apk
More Double Twist - doubleTwistPro.apk
Gogo Link (It's expired anyway) - GoGo.apk
Media Hub - MediaHub.apk
Telenav - TN6.2-6201036.apk
Inception Link - MovieShortcut.apk
11.) Restart your phone.
I don't recommend uninstalling bloat via root explorer. The safest way to remove the bloatware is to uninstall it via Titanium backup. Otherwise you might delete a bunch of stuff you really didn't mean to.
Yeah I used TB to remove the stuff.
EDIT: I just did a "Clean up the Dalvik cache" on TB and it removed 26MB of unwanted stuff! Total free 166MB.
rcoulsell said:
Here is a quick way to remove the apps that come preinstalled on the T-Mobile Samsung Galaxy S 4G. (you could also follow this for the ones that have .odex files as well. See ls command at the end).
I pieced this together from several forums. Hopefully it will save someone the trouble of doing this themselves (or serve as a refresher like it did for me).
Sorry I couldn't post formal links to the source files (forumn rules), apparently I don't contribute enough . Just put the server names in internet explorer and it should get you there.
1.) Download the Samsung Galaxy S 4G Root app. from mediafire.com/?096oxx07q6d88b3
2.) Download the Samsung USB Device Drivers from here:
-Windows 32 Bit drivers.softpedia.com/get/MOBILES/Samsung/Samsung-Galaxy-S-USB-Driver-for-Windows-x86.shtml
-Windows 64 Bit drivers.softpedia.com/get/MOBILES/Samsung/Samsung-Galaxy-S-USB-Driver-for-Windows-x64.shtml
3.) Install the drivers.
4.) Extract (unzip) the root app to a familiar folder.
5.) Enable USB debugging on your phone: Settings -> Development -> USB Debugging
6.) Plug your phone into your computer (wait till the drivers install)
7.) Open the Root app and click Shell Root
8.) Open a command shell (Start -> Run -> cmd)
9.) Type each line, pressing enter after each line:
cd <replace this text and these brackets with the folder location of the root app>
adb shell
cd /system/app
mount -o remount,rw -t yaffs2 /dev/block/mtdblk3 /system
10.) Next type the following two commands (replace the <...> with your app name, press enter after each line) for each app you wish to remove
chmod 777 <insert your ap name here.apk>
rm <insert your ap name here.apk>
Here is a list of the one's I removed. You can get a list of others by typing the two letters "ls" without quotes into the shell and press enter:
Note: Do not type in the app names in front of the file names, they are just there to let you know what you are deleting.
Kindle App - Kindle-OEM-1.1.1.90750089-20100927.apk
Facebook App - FBAndroid-1.4.1.apk - Facebook App
T-Mobile TV - com.mobitv.client.tmobiletvhd.apk
Doubetwist - doubleTwist.apk
Amazon MP3 - AmazonMp3.apk
Layar - Layar-samsung.apk
Slacker Radio - slackerradio.apk
More Double Twist - doubleTwistPro.apk
Gogo Link (It's expired anyway) - GoGo.apk
Media Hub - MediaHub.apk
Telenav - TN6.2-6201036.apk
Inception Link - MovieShortcut.apk
11.) Restart your phone.
Click to expand...
Click to collapse
So you don't report any weirdness or phantom force closes? The last few days since I made the post the phone has been almost entirely stable. GPS is still a little touchy but no more errors or lock-ups.
Also, on a side- note: am I the only person on XDA that doesn't remove Amazon MP3? I actually use it pretty frequently. That is, until I see how good Google Music is going to be (if it's actually a music purchasing service).
stellarvelocity said:
So you don't report any weirdness or phantom force closes? The last few days since I made the post the phone has been almost entirely stable. GPS is still a little touchy but no more errors or lock-ups.
Also, on a side- note: am I the only person on XDA that doesn't remove Amazon MP3? I actually use it pretty frequently. That is, until I see how good Google Music is going to be (if it's actually a music purchasing service).
Click to expand...
Click to collapse
I haven't had any GPS issues. Additionally I use the ADB way to remove apps because I'm develop apps and like the shell best.
Rooted mine yesterday...used TB to get rid of all that bs...bye bye evo!
Sent from my DAMN Galaxy 4G¡!
removing touchwiz
has anyone tried removing TouchWiz?
I removed touchwiz and use the gingerbread launcher. No problems
I recently found myself having those problems too. I assumed it was because of setcpu. I delete my appz with uninstaller for root....I don't know if that was any good. However, I was hoping that I would be able to start from scratch with everything but I don't know how I can start from scratch. I am completely new to this, so alot of the terminology and thing of that nature are Vulcan to me. So if someone can help me, that, finally, would be great.
Feel Your Pain, Deleted "My Account 1.0" and now hurting
I was trying to get rid of "My Account", AKA T-Mobile My Acount, to keep it from constantantly running in the background, but actually deleted "My Account 1.0" with Titanium Pro... I tried to freeze it but it kept appearing in my task list, so I deleted it.
Soon as I did, I got a buzz... buzz buzz buzz... the buzzes of death... I now get force closes when ending a phone call, when trying to read SMS, and when trying to view my call log.
This is killing me, and I have no idea how to fix it...
Any experts out there, please help!
RadFly said:
I was trying to get rid of "My Account", AKA T-Mobile My Acount, to keep it from constantantly running in the background, but actually deleted "My Account 1.0" with Titanium Pro... I tried to freeze it but it kept appearing in my task list, so I deleted it.
Soon as I did, I got a buzz... buzz buzz buzz... the buzzes of death... I now get force closes when ending a phone call, when trying to read SMS, and when trying to view my call log.
This is killing me, and I have no idea how to fix it...
Any experts out there, please help!
Click to expand...
Click to collapse
Never mind, I had frozen Logsprovider...
stellarvelocity said:
So you don't report any weirdness or phantom force closes? The last few days since I made the post the phone has been almost entirely stable. GPS is still a little touchy but no more errors or lock-ups.
Also, on a side- note: am I the only person on XDA that doesn't remove Amazon MP3? I actually use it pretty frequently. That is, until I see how good Google Music is going to be (if it's actually a music purchasing service).
Click to expand...
Click to collapse
I rooted my Samsung Vibrant 4G and used Titanium Backup to delete allot of the same T-Mobile BS bloatware that you did. Had that same "phantom force closes" that you described. Mid phone call today the phone vibrated a few times and force close phone application and hung up on my call. Has this problem remained stabilized for you?
Titanium
aloneinshadow said:
I don't recommend uninstalling bloat via root explorer. The safest way to remove the bloatware is to uninstall it via Titanium backup. Otherwise you might delete a bunch of stuff you really didn't mean to.
Click to expand...
Click to collapse
How do I uninstall the software using Titanium? I tried following the instructions via another thread but I only got so far. I was told to click Problems - get busybox - and then long press the apps I want to remove and force delete. However, I am able to get as far as downloading busybox. After that, are my apps supposed to show within the program Titanium or am I supposed to go to the applications itself or what? Im stuck from there....can you help????

Market Fix - Froyo Apps + Tegra 2 Apps

In addition to the standard Market Fix to get protected applications working (clearing cache/data), we also need to trick Google to think we have a Tegra 2 device.
We simply need to change the following line in /system/build.prop
ro.product.device=olympus
This tells Google Market we are using a Motorola Atrix 4G and will give us the missing Tegra 2 apps when applying our market fix.
However, since we are mimicking a phone, Tablet specific apps will not show up (NYTimes app for Tablets is an example)
Cheers!
Edit:
It is well known that the Google Web Market is hit and miss on our GTablets. This thread indicates it may take a few days for our tablet's to show up on the web interface. However, what this fix does is allow you to download most of the Froyo + Tegra2 apps via the Market Application within our tablets. There will be applications that will refuse to install through the web market interface (if your tablet can actually show up on the darn thing) because of missing capabilities, but will install just fine via the Market app.
If you want to install apps using a web browser from your Desktop computer, I recommend the use of Appbrain to generate your list of desired apps and then syncing your list on the tablet to install.
Hi,
SUPER!!
This build.prop change, just by itself, on stock 3588, allows me to see a bunch of apps I haven't been able to see before, including Firefox, Flash, Tank Hero, etc. Didn't have to do anything else, no fingerprint changes, etc.
Thanks!
Jim
AWESOME! The only thing I can't find is message ease which is no great loss and I'm not seeing it on the web either -- I think they are pulling it on and off the market. But YES -- Laucher Pro, Saumari, Silver Creek games, Flash 10.2, tv.com, both opera browsers, dolphin HD -- all there. FANTASTIC. THANK YOU!
Even Vlingo shows up which was never found before. Truth is I don't even want it but it was one of my indicators.
wd5gnr said:
AWESOME! The only thing I can't find is message ease which is no great loss and I'm not seeing it on the web either -- I think they are pulling it on and off the market.
Click to expand...
Click to collapse
Are you looking for MessagEase?
https://market.android.com/details?id=com.exideas.mekb
Whoops! Helps if you spell it right. I always think that should be a faster keyboard but then I give up and go back to BetterKeyboard or the word predicting one which is great until you need to do Linux command lines and such.
Sorry for the confusion. I even found Astro Bluetooth Module another I used to have to switch for. Very cool.
Hmmm... the market.android.com site no longer shows my device since I made the above fix! It only shows my older device. I tried just clearing the market cache and rerunning but no go. I am now running the regular market fix (clear cache in market, stop, clear data in service framework, stop, reboot).
I did install things off the market, but it had to be from the device.
Ok tablet is booted back up.... drum roll....
Nope. And now I am -- for now -- only showing my paid apps off the market, none of the freebies I had previously installed.
UPDATE: I killed the market data and cache along with the service framework data and rebooted. This made no difference to the web site (unless it takes time for it to catch up) but it did -- after installing something else -- restore my existing apps. On the other hand, having the market working on the device beats the web site, but it still means something is "off".
How do we request this be made a sticky?
I know I've tried just about every market tweak for the last 3+ months and this is the only 1 that made a huge diff.
Jim
I haven't tried this fix (heck I don't even know how to apply it, someone mind helping a noob out?) but I had the same problem you did where the web market doesn't show your device. I tried spamming the regular market fix and still no good.
However I logged back into the web store today and it showed my device, weird.
Not sure how to fix it but yesterday I changed my password so I was forced to sign in again. Of course that didn't work at the moment but I guess it worked since I can now see my device now.
Hope this helped.
wd5gnr said:
Hmmm... the market.android.com site no longer shows my device since I made the above fix! It only shows my older device. I tried just clearing the market cache and rerunning but no go. I am now running the regular market fix (clear cache in market, stop, clear data in service framework, stop, reboot).
I did install things off the market, but it had to be from the device.
Ok tablet is booted back up.... drum roll....
Nope. And now I am -- for now -- only showing my paid apps off the market, none of the freebies I had previously installed.
UPDATE: I killed the market data and cache along with the service framework data and rebooted. This made no difference to the web site (unless it takes time for it to catch up) but it did -- after installing something else -- restore my existing apps. On the other hand, having the market working on the device beats the web site, but it still means something is "off".
Click to expand...
Click to collapse
Yeah I tried logging out of the web site and back in. I've tried forcing a google account sync. And I've tried making sure Talk is running (apparently the website uses talk to send things to your device.).
Just for fun I put my ro.product.name/device/board back to Vega and with no reboot or anything the web site immediately found the device.... curious....
Well now that I'm back on the web site, my market is back to how it was even after I put the olympus line in. Getting too late. Will look at it tomorrow :-(
Hachi2Go said:
I haven't tried this fix (heck I don't even know how to apply it, someone mind helping a noob out?) but I had the same problem you did where the web market doesn't show your device. I tried spamming the regular market fix and still no good.
However I logged back into the web store today and it showed my device, weird.
Not sure how to fix it but yesterday I changed my password so I was forced to sign in again. Of course that didn't work at the moment but I guess it worked since I can now see my device now.
Hope this helped.
Click to expand...
Click to collapse
I did the change by:
- get temp root via z4root
- make /system R/W via root explorer
- start a terminal
- cd /system
- Edit build.prop: busybox vi build.prop
- did regular market fix
- reboot
Jim
wd5gnr said:
Hmmm... the market.android.com site no longer shows my device since I made the above fix! It only shows my older device. I tried just clearing the market cache and rerunning but no go. I am now running the regular market fix (clear cache in market, stop, clear data in service framework, stop, reboot).
I did install things off the market, but it had to be from the device.
Ok tablet is booted back up.... drum roll....
Nope. And now I am -- for now -- only showing my paid apps off the market, none of the freebies I had previously installed.
UPDATE: I killed the market data and cache along with the service framework data and rebooted. This made no difference to the web site (unless it takes time for it to catch up) but it did -- after installing something else -- restore my existing apps. On the other hand, having the market working on the device beats the web site, but it still means something is "off".
Click to expand...
Click to collapse
You're right that having market work on the device beats the website! The web market issues may be a whole separate battle.
Jim
jimcpl said:
I did the change by:
- get temp root via z4root
- make /system R/W via root explorer
- start a terminal
- cd /system
- Edit build.prop: busybox vi build.prop
- did regular market fix
- reboot
Jim
Click to expand...
Click to collapse
I'm quite new to the Android OS so I'm not really sure how to do this.
I installed z4root and got temp root. I'm not sure if I needed it as I read somewhere that Vegan 5.1.1 (which I am using) gives me root already.
But I installed it and ran it anyways.
I'm stuck on giving my /system read and write permissions. Is this 'root explorer' app needed? Or can I use my 'iFileExplorer' app to do so, if so how? (It came with the vegan ROM)
Not sure if you meant to type ifileManger, but it will not get you write permissions. Root explorer will allow you to write. It looks as though you may have to
open a terminal up as discussed above, to change the build prop.
Hachi2Go said:
I'm quite new to the Android OS so I'm not really sure how to do this.
I installed z4root and got temp root. I'm not sure if I needed it as I read somewhere that Vegan 5.1.1 (which I am using) gives me root already.
But I installed it and ran it anyways.
I'm stuck on giving my /system read and write permissions. Is this 'root explorer' app needed? Or can I use my 'iFileExplorer' app to do so, if so how? (It came with the vegan ROM)
Click to expand...
Click to collapse
Hachi2Go said:
I'm quite new to the Android OS so I'm not really sure how to do this.
I installed z4root and got temp root. I'm not sure if I needed it as I read somewhere that Vegan 5.1.1 (which I am using) gives me root already.
But I installed it and ran it anyways.
I'm stuck on giving my /system read and write permissions. Is this 'root explorer' app needed? Or can I use my 'iFileExplorer' app to do so, if so how? (It came with the vegan ROM)
Click to expand...
Click to collapse
Hi,
If you don't have root explorer, there's a free app on market called something like "system mount r/w" that is free that will mount /system as r/w for you. Or, I think that you can do it using a terminal and a mount command (something like mount -remount....).
Normal file explorers won't do the remount.
Jim
mount -o remount,rw /system /system
Watch out for the spaces and you need to be root so do an su command first.
When done, repear the mount command but use ro instead of rw. You can do this with a terminal program or the adb.
Root Explorer is what, $3.99? Worth it for the time savings. I bought the Ti Pro too. $300+ on a tablet...spend $9 on some software to make life easier.
iam a noob. i have stock rom 3588. how do i get market working?
By the light of morning I got back to a full market! But it again broke the web site connection. Is anyone seeing this behavior? Or is it just me?
For the new guys.
1) This appears like it MAY break your connection with the market web site [Update: Wait a few hours and it appears to catch up with you]. It may have other unknown effects. If you are not comfortable with making mods you might wait until more people have reported success or failure with this. For the record I did NOT find this fix (thanks Isira -- see OP of this thread). Just writing up my take on what you need to do. This applies to VEGAn 5.1.1 with supplement. It has been noted that with a stock rom you may need to put "busybox" before commands like cp (which you don't need to use if you have Root Explorer, by the way). If you get this to work (or not) on a different ROM, report it in this thread.
2) That being said, you need a file explorer that will look at / and edit text files, an su utility (comes with your root kit; as far as I know all the custom ROMs are pre rooted) and a command shell/terminal. Or you could spring a few bucks and get Root Explorer which is well worth it and does all of these things. Others have suggested Absolute Root tools which I do not know about. You could also use adb for all of it (which is what I did) but if you know how to do that, you probably don't need me to tell you what to do. We will be changing your build.prop file in the /system directory.
IF YOU ARE NOT USING ROOT EXPLORER GO DOWN TO STEP 3B. IF YOU ARE, GO TO STEP 3A.
3A) Open root explorer. Find /system and press the "Mount R/W" button.
4A) Long press on build.prop and select Copy. Then navigate somewhere like /mnt/sdcard and press the paste button at the bottom of the screen. This is your backup. Please backup.
5A) Go back to /system
6A) Long press on build.prop again. The menu is scrollable. You want Open in Text Editor.
7A) Find the line that says ro.product.device=XXXX (where XXXX is probably Vega). Make it read:
ro.product.device=olympus
Don't change anything else.
8A) Save the file by pressing the menu key and selecting Save & Exit.
9A) Scroll to the top of the /system directory and press the Mount R/O button.
10A) Reboot your tablet. Wait for things to settle down on restart. Open Market. Look for Saumari 2. Look for LauncherPro, Opera Mobile, etc. It will all be there.
If you don't have root explorer:
3B) Open the terminal. At the prompt, enter (spaces and lower case matter):
su
mount -o remount,rw /system /system
HINT: If you think you will do this a lot grab Script Manager off of the market. You can put the mount line in a script, tell it to execute as root (which is the same as su) and then you can run the script when you want to make changes.
4B) Start your file manager and find the /system directory. Your file manager probably starts in /sdcard or /mnt/sdcard. You'll need to go "up" a directory or two to root and then back down. Either way, when you find it, make a backup copy of build.prop somewhere you can write to. Seriously. Do not skip this step. Make the copy.
5B) Edit build.prop. You are looking for a line that sys ro.product.device=XXXX (probably Vega; I don't know about other ROMs and if this works for other ROMs but for VEGAn 5.1.1 its Vega). Carefully replace whatever you have as XXXX to olympus. So the line should read:
ro.product.device=olympus
Note: Some of us had other changes to build.prop. Not clear if these had any effect or not.
6B) Save your changes. If your file explorer is not root, you probably need to save the file to where you can write (your sdcard for example) and the copy from a terminal, such as:
su
cp /mnt/sdcard/new-buildprop.txt /system/build.prop
or
su
busybox cp /mnt/sdcard/new-buildprop.txt /system/build.prop
7B) Open your terminal and enter:
su
mount -o remount,ro /system /system
Remember spaces and case count! Also if you are in the same terminal window as before you don't have to keep entering su since you stay root.
NOTES FOR BOTH SETS OF INSTRUCTIONS
I did the original market fix after saving the file, but some people say it is not necessary. But at least a few people have said they don't see much or anything in market until the redo the fix (the one where you delete the market cache and the google services framework data and reboot).
Things that appear to work:
1) Installing free programs
2) Updating existing programs
3) Amazon market web site oddly enough
4) The official market Web site AFTER WAITING SEVERAL HOURS
5) Buying an app off the build in application
Some of us had other changes to build.prop but I don't think any of them were significant. If you have trouble you might apply it (shouldn't hurt). Also, if your "my apps" only shows your paid apps (or nothing if you have no paid apps), try downloading anything off the market and that will usually restore it. There is also an update local cache key that might do the trick, but loading some freebie off the market is easier. Also check to make sure gtalk is logged in. You can try forcing a resync on your Google accounts (in the main menu under Accounts).
Hope that helps someone. Its early so I probably made mistakes and will edit any that are found.
wd5gnr,
I don't know how "unusual" it is, but on my Gtab, where I had 3452 for awhile, then now 3588, I've always noted that I don't have a "cp" command, so I have to use "busybox cp".
Just FYI, in case anyone encounters this when they try your instructions.
Jim
wd5gnr said:
By the light of morning I got back to a full market! But it again broke the web site connection. Is anyone seeing this behavior? Or is it just me?
Click to expand...
Click to collapse
Based on this thread ( http://forum.xda-developers.com/showthread.php?t=941205 ), it seems it may take a few days for the tablets to register on the market.
I have 3 tablets and I'm trying to change the identifier for each tablet through the ro.product.model and seeing if each of the tablets will show up on the market. So far, only one tablet is showing on the web market, but it's still using the old ro.product.model identifier (GTablet-TnT-Lite).
However, the web market is still pretty wonky. Certain apps may refuse to install through the web market because of missing capabilities on our tablets, but will install just fine through the market app.

Auto Mount SMB shares when connected to WiFi with Tasker + Execute + scripts

So I've really grown to like having my local SMB shares from my media server mounted to my Xoom so that I can stream video and/or music or whatever on the fly. I don't like the mountpoints getting all messed up when I leave the network though, and I had less than stellar experiences with both Mount Manager and CIFSManager.
CIFSManager worked, but didn't integrate with Tasker, so I couldn't automate it. Mount Manager (the paid version anyway) came with a Tasker plugin, but I don't think it was fully compatible with the Honeycomb OS and I had a lot of issues with it (called the developer and left a message a few hours after buying it, hopefully I can get a refund for my $2.99).
Then I found the (free!) Locale Execute plugin and decided to just script the behavior I wanted myself. If you have Tasker and local SMB shares as well this could be a good solution for you. Just install the Locale Execute plugin from the market and follow these instructions. I'll post them here because I can't post to the dev section yet, and I'm not really sure if this is dev worthy anyway.
First I setup a profile for my home WiFi network (WiFi Connected > SSID [my home WiFi SSID]. Then I added an Enter action with the Execute plugin:
Code:
@!sh /[path]/[to]/[chk_and_mnt_script]/cifs_chk_and_mnt.sh
But I needed to make sure the mount points are cleaned if I disconnect for any reason so I added an Exit action with the Execute plugin as well:
Code:
@!sh /[path]/[to]/[umnt_script]/cifs_umount.sh
In Execute the "@" symbol is used to keep the program from echoing commands to "toasts" (the little black notification boxes you get sometimes, like when an app is "granted SuperUser permissions") and the "!" symbol is used to grant the line of Execute code root access.
I removed the toasts but I still wanted some notification as to what was going on and a quick google revealed this xda post: http://forum.xda-developers.com/showthread.php?t=773232
In that post I found a little .apk that would allow me to call a toast from a bash script. I've attached it to this post.
In the mount script I run a little check to find out if the "cifs.ko" kernel module is already loaded. If it is I skip that block, but if not I go ahead and load it. This way I always know that the kernel module is available before I try to mount the SMB shares.
Here's the Enter bash script I wrote called "cifs_chk_and_mnt.sh":
Code:
#!/bin/bash
lsmod | grep -q 'cifs' #check if cifs module is loaded
if [[ $? -eq 1 ]] #if not
then
am start -a android.intent.action.MAIN -e message 'cifs.ko kernel module not yet loaded. Loading now...' -n com.rja.utility/.ShowToast #displays toast
insmod /system/lib/modules/cifs.ko #loads kernel module
fi
am start -a android.intent.action.MAIN -e message 'Mounting local SMB network shares...' -n com.rja.utility/.ShowToast #displays toast
mount -o username=[windows login],password=[your password] -t cifs //[host ip]/[share] /[path]/[to]/[mount]/[point] #actually mounts share
#replace "[]" info with your own with NO "[]" and copy and paste line for as many shares as you want to mount
And here's the Exit script called "cifs_umount.sh":
Code:
#!/bin/bash
am start -a android.intent.action.MAIN -e message 'Home network lost. Clearing local SMB share mount points...' -n com.rja.utility/.ShowToast #displays toast
umount /[path]/[to]/[mount]/[point]
#replace "[]" info with your own with NO "[]" and copy and paste line for as many shares as you have mounted in the Enter script
Now, like I said, I used the linked (and attached) .apk to display toasts from the BASH scripts, but if you don't want it or care enough to use it then feel free to delete the toast lines or throw a "#" in front of them. If you do want the toasts displayed then you'll have to download it and install it. It won't show in your app drawer.
Anyway, here are the files (I had to add a ".txt" extension to the .sh files to comply with xda's attachment rules, but you can just rename them):
Thanks for this, looks great! I literally just paid for one of the premium smb apps only to find it didn't do quite what I wanted. I'm sure this will be what I'm looking for, cheers.
Edit:
Something for users to note: The umount script wasn't working for me, after some investigation it turns out that though when mounting, '/sdcard/dir' is acceptable, though the mount command actually considers my sdcard to actually be at '/mnt/sdcard' , so *that* was the dir I had to use when unmounting afterwards. This may be true for others too. I am using CM7 on a Desire.
Looking into this, I found that on my CM7 Desire, mounting the shares worked even if "lsmod | grep cifs" returns nothing, and the file is not in the place mentioned in your script either. To streamline the whole process, I just removed all the complicated stuff from the script and ran the mount command directly, saving time. Just a heads up for others, try it and see if it works for you.
Thanks so much for this!
Unfortunately, I have a couple of problems... When the share mounts, it is not in utf-8 format, so folders with odd characters do not show, even though I have that preference set in Mount Manager!
In addition, the unmount script does not work for some reason. When disabling wifi, I recieve a toast that Tasker got the message and executed my exit task, but there is no toast for the unmount script. I've triple checked for grammatical or directory errors, but there are none. Any idea why the unmount script isn't working?
cavemandaveman said:
Thanks so much for this!
Unfortunately, I have a couple of problems... When the share mounts, it is not in utf-8 format, so folders with odd characters do not show, even though I have that preference set in Mount Manager!
In addition, the unmount script does not work for some reason. When disabling wifi, I recieve a toast that Tasker got the message and executed my exit task, but there is no toast for the unmount script. I've triple checked for grammatical or directory errors, but there are none. Any idea why the unmount script isn't working?
Click to expand...
Click to collapse
To be honest, I completely forgot I ever wrote this. Still, the unmount issue could be due to your busybox version. Have you tried executing the relevant commands at a root enabled terminal? Do they work there?
Moreover, you should understand that I apparently wrote this to be completely independent of "Mount Manager" or any related app and these scripts are dependent only on: busybox, Tasker, and the Execute plugin.
-Mike
mikeserv said:
To be honest, I completely forgot I ever wrote this. Still, the unmount issue could be due to your busybox version. Have you tried executing the relevant commands at a root enabled terminal? Do they work there?
Moreover, you should understand that I apparently wrote this to be completely independent of "Mount Manager" or any related app and these scripts are dependent only on: busybox, Tasker, and the Execute plugin.
-Mike
Click to expand...
Click to collapse
I tried executing from terminal and the mount script works fine, but the unmount does not work. It gives me a "no closing quote" error. I'm pretty noobish when it comes to scripts, but it doesn't look like there are errors in the script itself...
Also, if it is independent of Mount Manager, is there a way to include utf-8 formatting in the script?
Sent from my Galaxy Nexus
mikeserv said:
So I've really grown to like having my local SMB shares from my media server mounted to my Xoom so that I can stream video and/or music or whatever on the fly. I don't like the mountpoints getting all messed up when I leave the network though, and I had less than stellar experiences with both Mount Manager and CIFSManager.
CIFSManager worked, but didn't integrate with Tasker, so I couldn't automate it. Mount Manager (the paid version anyway) came with a Tasker plugin, but I don't think it was fully compatible with the Honeycomb OS and I had a lot of issues with it (called the developer and left a message a few hours after buying it, hopefully I can get a refund for my $2.99).
Then I found the (free!) Locale Execute plugin and decided to just script the behavior I wanted myself. If you have Tasker and local SMB shares as well this could be a good solution for you. Just install the Locale Execute plugin from the market and follow these instructions. I'll post them here because I can't post to the dev section yet, and I'm not really sure if this is dev worthy anyway.
snip...
Click to expand...
Click to collapse
I dont care this post is 5 years old, i dont care that i'm bumping this thread...this little gold brick of information was FINALLY what i needed to figure out how to mount cifs without that "never-gonna-be-updated-ever-ever-again-cifsmanager" apk. I just threw the same basic code into tasker and finally got a mount. thank you! if i was more secure in my manhood, i just might embarrass myself.
the real reason for the bump, instead of mere word wasting, is to help anyone anyone searching for the cifs manager apk, or getting the error "no such device" when trying to mount. The issue is connected to the both the "mount name space separation" in SUPERSU, the old android sdcard permissions and who knows what else.
heres' the code I put into tasker:
su --mount-master -c busybox mount -o username=[USERNAME],password=[PASSWORD],rw,file_mode=0777,dir_mode=0777,iocharset=utf8,context=ubject_r:rootfs:s0 -t cifs //192.168.xxx.xxx/cifsync /sdcard/cifsync
no brackets of course.
that popped it right online, no issues but my kernel provides cifs.io support through synapse settings app. so it was easy to load the module at startup
loogielv said:
I dont care this post is 5 years old, i dont care that i'm bumping this thread...this little gold brick of information was FINALLY what i needed to figure out how to mount cifs without that "never-gonna-be-updated-ever-ever-again-cifsmanager" apk. I just threw the same basic code into tasker and finally got a mount. thank you! if i was more secure in my manhood, i just might embarrass myself.
the real reason for the bump, instead of mere word wasting, is to help anyone anyone searching for the cifs manager apk, or getting the error "no such device" when trying to mount. The issue is connected to the both the "mount name space separation" in SUPERSU, the old android sdcard permissions and who knows what else.
heres' the code I put into tasker:
su --mount-master -c busybox mount -o username=[USERNAME],password=[PASSWORD],rw,file_mode=0777,dir_mode=0777,iocharset=utf8,context=ubject_r:rootfs:s0 -t cifs //192.168.xxx.xxx/cifsync /sdcard/cifsync
no brackets of course.
that popped it right online, no issues but my kernel provides cifs.io support through synapse settings app. so it was easy to load the module at startup
Click to expand...
Click to collapse
in code format so there will be no syntax issues -
Code:
su --mount-master -c busybox mount -o username=[USERNAME],password=[PASSWORD],rw,file_mode=0777,dir_mode=0777,iocharset=utf8,context=u:object_r:rootfs:s0 -t cifs //192.168.xxx.xxx/cifsync /sdcard/cifsync

Categories

Resources