AdBlock - Google Pixel XL Questions & Answers

did anybody find away to push adblock to system via rooted.. thx @Chainfire
like terminal emulator? or anyway. thx In advance
Sent From Pixel XL/Rooted
Team Blackout

Try AdAway
http://forum.xda-developers.com/showpost.php?p=69466682&postcount=217

freddienuxx said:
did anybody find away to push adblock to system via rooted.. thx @Chainfire
like terminal emulator? or anyway. thx In advance
Sent From Pixel XL/Rooted
Team Blackout
Click to expand...
Click to collapse
Here you go install go to settings and enable systemless mode https://drive.google.com/file/d/0B6bczptEI-1LNHphSUQxRDg1RWM/view?usp=drivesdk

Here are the instructions for install Adblock without Recovery (e.g. TWRP):
1. Download Adaway from here: https://www.androidfilehost.com/?fid=24588232905720420
2. Download a Terminal emulator from Playstore
3. Give him root (just type in the emulator "su" and allow root
4. Copy/write this in the Emulator and press enter:
mkdir /su/etc; cp /system/etc/hosts /su/etc/hosts; echo "#!/su/bin/sush\nmount -o bind /su/etc/hosts /system/etc/hosts" > /su/su.d/50adaway; chmod 0700 /su/su.d/50adaway
5. Restart your Phone
6. Install Adaway
7. Allow Root
8. Press install and follow the instruction
I hope this helps

Way too complicated. For AdAway there is a check box in pref for systemless now. Just install AdAway and check that box. Don't need to do anything in terminal.

thx brother much appreciated

mrRobinson said:
Way too complicated. For AdAway there is a check box in pref for systemless now. Just install AdAway and check that box. Don't need to do anything in terminal.
Click to expand...
Click to collapse
do you have that adblock apk?
thx

not working for me... downloaded adaway from above link and no systemless box to check in pref that I see. Also tried running the command in terminal emulator but I get an 'event not found' error
update: I had to use the official 'Terminal Emulator for Android', which I wasn't wanting to use at first and used a different one because it would not let me copy and paste the above command line into the emulator, I had to physically type that whole thing out. But it said that the su folder exists which was the only confirmation I received in the emulator. Then I rebooted and installed, all good now!

freddienuxx said:
do you have that adblock apk?
thx
Click to expand...
Click to collapse
in_dmand said:
not working for me... downloaded adaway from above link and no systemless box to check in pref that I see. Also tried running the command in terminal emulator but I get an 'event not found' error
update: I had to use the official 'Terminal Emulator for Android', which I wasn't wanting to use at first and used a different one because it would not let me copy and paste the above command line into the emulator, I had to physically type that whole thing out. But it said that the su folder exists which was the only confirmation I received in the emulator. Then I rebooted and installed, all good now!
Click to expand...
Click to collapse
As Mr. Robinson said too complicated... Just got to the official link below. Download 3.2 and install, open app go to setting and select systemless... Done
http://forum.xda-developers.com/showthread.php?t=2190753

Give Adguard a go, best one I've used yet. Doesn't need root either.
Sent from my Pixel XL using Tapatalk

Adclear from seven is free is just like adguard
But all those non root adblock apps use up battery.
Personally I use Firefox with adblock plus addon

Related

Terminal Emulator

I cannot enter any SU commands in TE since I updated to 3.29. Ex. Reboot and reboot recovery - get "Not Permitted" error message. Anyone else?
Thanks!
I just rooted using the latest Unrevoked (3.21).
The process indicated success.
But attempting "su" in an effort to manipulate "perms" results in "Permission denied".
Does this mean I am not actually "rooted"?
Or do I need a something in addition to being "rooted".
I seem to remember something called "Super User application".
Is this a requirement? If so, where might I find it?
Thank you for all your time and consideration.
--Chris
You can download Superuser from the market. Skull and crossbones icon.
bender1077 said:
You can download Superuser from the market. Skull and crossbones icon.
Click to expand...
Click to collapse
Thank you for your reply bender1077.
Is this app required in order to make changes like deleting apps and stuff on a "rooted" stock ROM?
Thanks again.
--Chris
If you are using an app that requires Superuser permissions yes. Depends on how you are removing the apps. I always delete through ADB.
bender1077 said:
If you are using an app that requires Superuser permissions yes. Depends on how you are removing the apps. I always delete through ADB.
Click to expand...
Click to collapse
Thank you again bender1077.
I used Unrevoked 3.21 to root it. When it had completed, I found that SuperUser was/is
now installed, and available on my HTC-EVO-supersonic.
On the downside, when prompted by SuperUser when I launch Terminal Emulator to allow
su (root), I answer YES. But when attempting (like you) to delete apps, or what-not,
I'm told "read only file system". So the attempt fails.
Seems we're having the same issue - no?
Thanks again.
--Chris
CTH-EVO said:
Thank you again bender1077.
I used Unrevoked 3.21 to root it. When it had completed, I found that SuperUser was/is
now installed, and available on my HTC-EVO-supersonic.
On the downside, when prompted by SuperUser when I launch Terminal Emulator to allow
su (root), I answer YES. But when attempting (like you) to delete apps, or what-not,
I'm told "read only file system". So the attempt fails.
Seems we're having the same issue - no?
Thanks again.
--Chris
Click to expand...
Click to collapse
You have to remount in -rw in order to delete apps iirc.
I'm not trying to delete apps through TE, I do that through ADB.
BUUUUUTTTTTT.... Please just go into TE, and see if you are able to enter a simple command like reboot, and confirm if it works on 3.29.
I still get "not permited!" error.
It is funny that TE has permitted mispelled by the way!
THANKS!
bender1077 said:
I'm not trying to delete apps through TE, I do that through ADB.
BUUUUUTTTTTT.... Please just go into TE, and see if you are able to enter a simple command like reboot, and confirm if it works on 3.29.
I still get "not permited!" error.
It is funny that TE has permitted mispelled by the way!
THANKS!
Click to expand...
Click to collapse
Greetings bender1077,
Code:
% su
message from SuperUser:
permission granted to Terminal Emulator for su
# _
# reboot
permission denied!
# _
I hope that made sense. Superuser granted permission to me
to su. I got the hash in the upper left hand corner (#), indicating
I was root. But as you can see, I was not granted permission to "reboot".
HTH
--Chris
Oh boyzie!
OK... I will run Quick Boot for reboots, and reboot recovery for the time being!
Thanks,
Hey bender are you nand unlocked? I don't know if that would make a difference.
Sent from my GiRLiE Evo
princessakiki said:
Hey bender are you nand unlocked? I don't know if that would make a difference.
Sent from my GiRLiE Evo
Click to expand...
Click to collapse
Yes.
Worked fine on 3.26... there has to be an issue somewhere ..... /system/bin/toolbox?

[How to] Configure Terminal Emulator to use Correct BusyBox & Improve Shell Features

[How to] Configure Terminal Emulator to use Correct BusyBox & Improve Shell Features
A little info on Android, Terminal Emulator, and Busybox
I'm very new to Android. I just got my first device a few months ago(my A100). I have used linux and other forms of unix off and on for over a decade though so I do have some applicable knowlege.
After writing Flashex I have noticed allot of people with miss configured environment variables for Terminal Emulator. The defaults in Terminal Emulator are NOT configured to use the right Busybox. This can make doing ALLOT of the stuff around here seem allot more complex then it is.
How to improve the way Terminal Emulator works
==============================================
(Note: I'm going under the assumption that Busybox is located in /system/xbin. It should be normaly, though it doesn't matter for this as long as you know the correct location and can put in place of /system/xbin in these directions)
1) Launch Terminal Emulator.
2) Look in the Menu in the upper right hand corver and select "Preferences".
3) Scroll down to the "Shell" section of "Preferences".
4) Select "Command Line" within the "Shell" section of "Preferences" and change it to the following;
/system/xbin/sh -u
Then Select "OK".
5) Select "Initial Command" within the "Shell" section of "Preferences" and change it to the following;
export PATH=/system/xbin:$PATH
Then Select "OK"
6) Now you will probably want to scroll up and change the color of the terminal background and text in the "Text" section of "Preferences".
Congratulations! You should now have a Bourne Shell(sh) with, color coded file types, TAB auto complete, and the correct Busybox version in the Terminal Emulator! YAY!
Why do I keep getting permission denied in TM?
helikido said:
Why do I keep getting permission denied in TM?
Click to expand...
Click to collapse
Is your device rooted? Do you have busybox installed?
helikido said:
Why do I keep getting permission denied in TM?
Click to expand...
Click to collapse
You may be getting the permission denied error if you used This root method because it used a non standard install of Busybox to do the job.
It can be updated from what I understand by just downloading the J Rummy Busybox installer from play.google.com and reinstalling Busybox. Also as asked above if you don't have busybox installed you wont be able to point TE to it.
Hope that resolves the issue
Re: [How to] Configure Terminal Emulator to use Correct BusyBox & Improve Shell Featu
I keep getting the same error with terminal emulator and script manager:
Unable to confirm location of BusyBox, please make sure you have busybox installed
Looked in /system/xbin if you have it installed in another location, you can just edit the path at the top of the script
3|[email protected]:/sdcard $
nice share
Confused!
Hey Guys!
After following the steps you mentioned and saved it and closed Terminal emulator and when trying to reopen it it does not open and it is a pre-installed app in my custom ROM so i went to root explorer and deleted it and while am trying to reinstall it from Play store play store does not download any app !!!!! it opens normally it navigates normally and i can press install and accept to the pop up message but keeps making like it is installing while nothing installed !!!
Device : Motorola XT925
ROM : Beanstalk 1009
Android : 4.3.1
Bootloader : Unlocked
BusyBox : BusyBox X+
Please Please Help Me
---------- Post added at 03:48 PM ---------- Previous post was at 03:40 PM ----------
atteya.mohamed said:
Hey Guys!
After following the steps you mentioned and saved it and closed Terminal emulator and when trying to reopen it it does not open and it is a pre-installed app in my custom ROM so i went to root explorer and deleted it and while am trying to reinstall it from Play store play store does not download any app !!!!! it opens normally it navigates normally and i can press install and accept to the pop up message but keeps making like it is installing while nothing installed !!!
Device : Motorola XT925
ROM : Beanstalk 1009
Android : 4.3.1
Bootloader : Unlocked
BusyBox : BusyBox X+
Please Please Help Me
Click to expand...
Click to collapse
I Tried the following :
1. Reboot.
2. Reinstall google play Version 4.4.21
But problem still exist am really upset guys please help me :S
simply go the app settings and clear data. The exact thing is happening to me as soon as i change the path under shell. crashes and when i try opening says . terminal running and immediately closes
atteya.mohamed said:
Hey Guys!
After following the steps you mentioned and saved it and closed Terminal emulator and when trying to reopen it it does not open and it is a pre-installed app in my custom ROM so i went to root explorer and deleted it and while am trying to reinstall it from Play store play store does not download any app !!!!! it opens normally it navigates normally and i can press install and accept to the pop up message but keeps making like it is installing while nothing installed !!!
Please Please Help Me
---------- Post added at 03:48 PM ---------- Previous post was at 03:40 PM ----------
I Tried the following :
1. Reboot.
2. Reinstall google play Version 4.4.21
But problem still exist am really upset guys please help me :S
Click to expand...
Click to collapse
atteya.mohamed said:
Device : Motorola XT925
ROM : Beanstalk 1009
Android : 4.3.1
Bootloader : Unlocked
BusyBox : BusyBox X+
Click to expand...
Click to collapse
Sorry only A100 support allowed here.
But really, eyelash your rom if anything like that happens. Just flash the rom+gapps first and should fix it otherwise factory reset.
Sent from my SPH-L710 using XDA Premium 4 mobile app

[Q] su permission denied

Hello there,
I just flashed a new ROM (Gingerbread 2.3.7) last night. After signing in the Google account everything is great; the old apps got redownloaded and all. I noticed that there is no apps listed in the superuser. I tried 'su' command in the emulator terminal & I got permission denied.
Luckily all the apps are working in perfect harmony. However, how do I get the superuser permission back? It seems like my device is not rooted. Do I need to root my phone again? Fingers crossed I don't.
Initially, I tried to flash the Ice Cream Sandwich. I tried multiple times but to no avail. I even tried to change the HBOOT (from CM7 > downgrader > Stock HBOOT) but the process failed. I afraid that this might be the cause my root access got lost. Anyone can verify this?
Thanks!
Su app will be built into the ROM so you should still rooted. Sounds like Su settings are just defaulting to deny. Open Su, menu > settings and check its set at prompt (safer than allow). After flashing new Rom you'll need to launch apps that require root access to allow them permission again. You might need to update the Su app or binaries if permissions don't stick.
Sent from my HTC Desire using Tapatalk 2
beachcomber said:
Su app will be built into the ROM so you should still rooted. Sounds like Su settings are just defaulting to deny. Open Su, menu > settings and check its set at prompt (safer than allow). After flashing new Rom you'll need to launch apps that require root access to allow them permission again. You might need to update the Su app or binaries if permissions don't stick.
Sent from my HTC Desire using Tapatalk 2
Click to expand...
Click to collapse
beachcomber,
1. my Superuser is set at prompt.
2. I am not sure which app that require root access. Could you give me some examples so that I can run them?
3. I tried to update the su binaries, but I got this:
" checking current install path...FAIL!"
" failed to find currently installed su binary. Update cannot continue."
Therefore, what do you suggest?
Thanks.
xuminarc said:
beachcomber,
1. my Superuser is set at prompt.
2. I am not sure which app that require root access. Could you give me some examples so that I can run them?
3. I tried to update the su binaries, but I got this:
" checking current install path...FAIL!"
" failed to find currently installed su binary. Update cannot continue."
Therefore, what do you suggest?
Thanks.
Click to expand...
Click to collapse
Take a backup. Download this. Flash it through recovery. Reboot and check if it works.
Alaa said:
Take a backup. Download this. Flash it through recovery. Reboot and check if it works.
Click to expand...
Click to collapse
Thank you! It works!

[Guide] AdAway for systemless hosts file

About the only reason I root my phone is to install AdAway. I'd prefer to not modify the system partition to help make OTA's easier to get and to allow Android Pay to work. AdAway has a flashable .zip file that preps the hosts file to use the systemless root structure that comes along with SuperSU. Unfortunately, that script depends on being able to access the /data partition inside of TWRP which isn't going to happen any time soon on the HTC 10. Fortunately, it is easy for us to manually replicate what the flashable .zip is trying to do.
This isn't a detailed how-to, but more of a set of guidelines. Don't blame me if your phone explodes.
Root the phone with the latest SuperSU.
Download the AdAway_systemless_hosts_v2.zip file from the Unofficial AdAway thread.
Extract the files from inside the zip. We are only interested in two files in the support folder.
Connect the phone to your PC and turn on file transfer mode.
Copy "hosts" and "0000adaway.script" that you just extracted to the internal storage of your phone.
Use a program file Root Explorer to move "hosts" into /su/etc and move "0000adaway.script" into /su/su.d (this probably could have been done with ADB push, but I got permission errors when I tried it that way and I'm impatient and lazy).
Chmod 0755 /su/su.d/0000adaway.script (I used a root shell on the phone via ADB)
Install AdAway (I used the link in the Unofficial AdAway thread.)
Reboot the phone.
Run AdAway like normal. By default it should use /system/etc/hosts which is what you want.
If something doesn't work, figure out why and fix it. I'm happy to answer questions to the best of my ability.
AdAway works without problems here, with simple press activate button.
starbase64 said:
AdAway works without problems here, with simple press activate button.
Click to expand...
Click to collapse
Yup
Sent from my HTC 10 using Tapatalk
starbase64 said:
AdAway works without problems here, with simple press activate button.
Click to expand...
Click to collapse
Yes, but it modifies the /system partition unless you do the trick in OP. If I'm correct, you will have problems with OTA updates and Google Pay if you let AdAway directly modify the hosts file on /system.
Now that TWRP can access /data, can we just flash the zip?
goodtimes50 said:
Now that TWRP can access /data, can we just flash the zip?
Click to expand...
Click to collapse
Yes, you can. I downloaded that zip and apk from the Unofficial AdAway thread linked above. Booted into TWRP, flashed the newest betaSuperSU2.74-2-forceencrypt (not related to this, just so I'd be on the latest version), then the AdAway_systemless_hosts_v2.zip, rebooted and installed the apk and let it run. Rebooted. Showing hosts location as /system32/etc/hosts as the OP says is a good thing, and both files mentioned are in their correct places per Root Browser. [emoji106]
Sent from my HTC 10 using XDA-Developers mobile app
Sorry that it doesn't completely match the thread here but I think my question could fit in here anyway.
Do I suggest correctly that with systemless root, systemless AdAway and the stock recovery OTAs should be fully usable? Since there's no other modification to /system then.
bmwbasti said:
Sorry that it doesn't completely match the thread here but I think my question could fit in here anyway.
Do I suggest correctly that with systemless root, systemless AdAway and the stock recovery OTAs should be fully usable? Since there's no other modification to /system then.
Click to expand...
Click to collapse
I believe that is correct. There hasn't been a new OTA for my phone yet so I can't verify. However, when I do the check for new software it tells me no new updates (as opposed to the message about the files system being corrupt). I believe Android Pay should also work. I have it installed and added a new card, but I haven't tested making a purchase yet.
Thanks for the guide.
My device is rooted, but I didn't found su folder in anywhere when I use Root Explorer with root access, does anyone tell me how to get su folder and make AdAway work?
Fix for AdAway.
matif525 said:
Thanks for the guide.
My device is rooted, but I didn't found su folder in anywhere when I use Root Explorer with root access, does anyone tell me how to get su folder and make AdAway work?
Click to expand...
Click to collapse
Your device may use su, & still not have an su folder (at all) that is used for hosts file (ie systemless root). Just do this..
Download... Terminal emulator.
https://play.google.com/store/apps/details?id=jackpal.androidterm
Open terminal
Then enter these commands.. "Quote"
su
mount -orw,remount /system
rm /system/etc/hosts
ln -s /data/data/hosts /system/etc/hosts
mount -orw,remount /system
Now open AdAway go to preferences and select option to " Target hosts file"
Select /data/data/hosts
Enjoy..
If you still have ads in apps do this!!!
githyanki said:
Open the 3 dot menu in adaway, chose log DNS request. Enable TCP dump.
Open the app with ads, when ad loads, go back to adaway, and open log.
Long press any entries and chose black list.
Profit
Click to expand...
Click to collapse
All credit where credit is due. I just shared what I read else where.
Read here for more details..
https://github.com/AdAway/AdAway/issues/770
&
http://forum.xda-developers.com/showthread.php?t=2190753&page=143#post68988079
There is a known issue in HTC devices involves S-off. If the above doesn't solve this for you message here I'll follow. Or pm me. I work wierd hours be patient.
Rom Maximus 3.0.0 ( Android 7 ).Any instruction don't works,adaway no blocked ads.
regarding su folder to move files to
FreydNot said:
About the only reason I root my phone is to install AdAway. I'd prefer to not modify the system partition to help make OTA's easier to get and to allow Android Pay to work. AdAway has a flashable .zip file that preps the hosts file to use the systemless root structure that comes along with SuperSU. Unfortunately, that script depends on being able to access the /data partition inside of TWRP which isn't going to happen any time soon on the HTC 10. Fortunately, it is easy for us to manually replicate what the flashable .zip is trying to do.
This isn't a detailed how-to, but more of a set of guidelines. Don't blame me if your phone explodes.
Root the phone with the latest SuperSU.
Download the AdAway_systemless_hosts_v2.zip file from the Unofficial AdAway thread.
Extract the files from inside the zip. We are only interested in two files in the support folder.
Connect the phone to your PC and turn on file transfer mode.
Copy "hosts" and "0000adaway.script" that you just extracted to the internal storage of your phone.
Use a program file Root Explorer to move "hosts" into /su/etc and move "0000adaway.script" into /su/su.d (this probably could have been done with ADB push, but I got permission errors when I tried it that way and I'm impatient and lazy).
Chmod 0755 /su/su.d/0000adaway.script (I used a root shell on the phone via ADB)
Install AdAway (I used the link in the Unofficial AdAway thread.)
Reboot the phone.
Run AdAway like normal. By default it should use /system/etc/hosts which is what you want.
If something doesn't work, figure out why and fix it. I'm happy to answer questions to the best of my ability.
Click to expand...
Click to collapse
Hi there, ive got a mate 8, not sure if this adblocker will work on it but i want to try it out anyway. Ive unzipped the file but which folder in su do i move the files to? screenshot of the folders i have in su

EFS Backup

I need to make an EFS backup, never have before and flashed tonnes of roms, lol. But after reading it's probably a good idea.
Currently on CM13.
However, I've run into an issue. I downloaded Terminal Emulator. I enter "su" and it says on a new line: 255|[email protected]:/
So I then tried to enter: dd if=/dev/block/sdf1 of=/sdcard/modemst1.bin bs=512 - and it says permission denied?
Any help? :]
Root access
Are you sure the terminal has root access?
I use a CM13 variant as well and I had to disable and reenable root access from the developer options before any apps were able to get root. After doing that the first time its worked ever since. Even on cm13 you should get a permission prompt when an app requests root.
JoshAulder said:
Are you sure the terminal has root access?
I use a CM13 variant as well and I had to disable and reenable root access from the developer options before any apps were able to get root. After doing that the first time its worked ever since. Even on cm13 you should get a permission prompt when an app requests root.
Click to expand...
Click to collapse
Uh, 'su' is apparently supposed to give the terminal root access, apparently? lol
Sorta new to this.
ritchiedrama said:
Uh, 'su' is apparently supposed to give the terminal root access, apparently? lol
Sorta new to this.
Click to expand...
Click to collapse
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
JoshAulder said:
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
Click to expand...
Click to collapse
Thannks, where are these files once I did this?
It says internal storage but I don't see them.
edit: I see them on my phone but not on my PC when I plug my phone in, weird, lol.
ritchiedrama said:
Thannks, where are these files once I did this?
It says internal storage but I don't see them.
edit: I see them on my phone but not on my PC when I plug my phone in, weird, lol.
Click to expand...
Click to collapse
It should come to /storage/emulated/0
Aka the main internal storage folder which includes things like the downloads and pictures folders. The file should be called modemst1.bin
Hope this helps
Edit: I have no idea why it doesn't show when you plug in your phone. Maybe the file is set to be hidden and you dont have show hidden files and folders enabled on your pc? In any case I just backed mine to my google drive
JoshAulder said:
When running the terminal app for the first time, entering su does not instantly grant it root access, but instead makes the app request access. If it has never been given you will get a prompt over the screen asking if you want to give the app root access. If you are not getting this prompt, then do this:
Go to developer options in settings
Tap on root access
Set it to disabled
Tap again and select Apps (or apps and adb)
Then run the terminal again and enter su
Click to expand...
Click to collapse
JoshAulder said:
It should come to /storage/emulated/0
Aka the main internal storage folder which includes things like the downloads and pictures folders. The file should be called modemst1.bin
Hope this helps
Click to expand...
Click to collapse
I found them on my phone, not my pc.
They were 2mb each and I emailed them to myself and uploaded them to my dropbox, so all good? I can delete them now from my phone?
ritchiedrama said:
I found them on my phone, not my pc.
They were 2mb each and I emailed them to myself and uploaded them to my dropbox, so all good? I can delete them now from my phone?
Click to expand...
Click to collapse
Yep, the terminal only made a copy of the files, so as long as you can get them back when you need them they're safe to delete

Categories

Resources