[HOWTO] Block Airpush ads - Optimus One, P500, V General

Today i am going to teach you how to block Airpush ads that appear on the notification bar.
Requirements
-> Root
-> Terminal emulator (Search Play store)
-> Basic knowledge of terminal commands (echo, mount, etc.)
Ok, so you've got root. If you don't, root your phone.
1.) Go to the Play Store and search "Android terminal emulator" and click install. Wait for it to finish installing.
2.) Go to the app.
3.) Type in "su" to get root access
Code:
$ su
#
(Don't type in the $ and # symbols just only "su")
Now you have root access.
4.) Remount /system as r/w
Code:
mount -o remount,rw /system
5.) Add Airpush ad server hostname to hosts file
Code:
echo "127.0.0.1 api.airpush.com" >> /system/etc/hosts
6.) Remount /system as r/o
Code:
mount -o remount,ro /system
7.) Reboot device
And you're done! No more ads on your notification bar!
Sent from my lg optimus t

Will this block score updates from ESPN? I'd figure it will and if so how exclude certain one
Sent from my LG-VM670 using xda app-developers app

jaredw444 said:
Will this block score updates from ESPN? I'd figure it will and if so how exclude certain one
Sent from my LG-VM670 using xda app-developers app
Click to expand...
Click to collapse
I don't know. I'll try if i can

Related

[SCRIPT] Remove Cell Standby Service (No Effect on Battery Life!)

WARNING: I've added this to my script and for some reason it has an adverse effect on the "n" button and Lock Screen if used BEFORE you complete the SetupWizard !!!
WARNING: Again BE WARNED if you do this mod before you finish the setup wizard you will loose the functionality of your "n" button and Lock Screen !!!
I have a feeling poster before me copied and pasted this from somewhere because notice how in his first sentence he says "Phone.apk and TelephonyProvider.apk" but then his script says "Mms.apk"....what happened to Phone.apk because there is no Mms.apk in the system folder on any Nook I have. So below is the corrected script and also this entire process in done in dos instead of in adb;
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
There is no adverse effect from doing this & it's confirmed after while in NookTools there is no Cell Standy service running.
Download [REMOVAL]
Want to undo this process?
Code:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.OLD /system/app/Phone.apk
adb shell mv /system/app/TelephonyProvider.OLD /system/app/TelephonyProvider.apk
adb reboot
Download [UNDO REMOVAL]
thanks, just got my NC yesterday, and already updated/rooted + done this hack
xmas_spirit said:
thanks, just got my NC yesterday, and already updated/rooted + done this hack
Click to expand...
Click to collapse
Run my script too from the other post?
xboxexpert said:
Run my script too from the other post?
Click to expand...
Click to collapse
No, I just manually entered commands in adb shell
xboxexpert said:
I have a feeling poster before me copied and pasted this from somewhere because notice how in his first sentence he says "Phone.apk and TelephonyProvider.apk" but then his script says "Mms.apk"....what happened to Phone.apk because there is no Mms.apk in the system folder
Click to expand...
Click to collapse
90% of the internet are sites posting info from other sites. Be glad he didn't slap on some ads.
I'm new here, but trying to learn.
Your code is:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
would it make sense to add:
adb shell mount -o remount,ro /dev/block/mmcblk0p5 /system
before the reboot? Or does that get done automatically upon reboot? I assume it is bad to leave it rw and not reset it to ro?
Thanks for this, I ran 'most' of your other script.
Auto-nooter, your script, adw launcher and it is coming along nicely. Still debating remapping the volume keys to back/menu...
DC_Rob said:
I'm new here, but trying to learn.
Your code is:
adb shell mount -o remount,rw /dev/block/mmcblk0p5 /system
adb shell mv /system/app/Phone.apk /system/app/Phone.OLD
adb shell mv /system/app/TelephonyProvider.apk /system/app/TelephonyProvider.OLD
adb reboot
would it make sense to add:
adb shell mount -o remount,ro /dev/block/mmcblk0p5 /system
before the reboot? Or does that get done automatically upon reboot? I assume it is bad to leave it rw and not reset it to ro?
Thanks for this, I ran 'most' of your other script.
Auto-nooter, your script, adw launcher and it is coming along nicely. Still debating remapping the volume keys to back/menu...
Click to expand...
Click to collapse
yes, the system partition goes back to RO after a reboot
Can this be done using terminal emulator
Sent from my PC36100 using XDA App
Ben74 said:
yes, the system partition goes back to RO after a reboot
Click to expand...
Click to collapse
Great, now I know. I write code for a living so, I try to be tidy....
Thanks
worked perfectly, thanks.......
midnightmaraude said:
Can this be done using terminal emulator
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Just use Root Explorer; rename those two files to anything else and reboot. Really, you could just remove them, renaming is just a precaution.
Thanks for this, makes the nook even better!
Mike
sent from my nookcolor using the xda app
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
wvcachi said:
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
Click to expand...
Click to collapse
I wondered that, but I also have no reason to run unused services so it can't hurt.
wvcachi said:
Just to play devil's advocate, does anyone know if it's really improving battery life, rather than just no longer reporting cell standby under battery use details?
Click to expand...
Click to collapse
I've been playing angry birds for 30 minutes and only lost 4% battery life. Seems to be awesome.
ummmmmm where is the script
ADB commands are only in OP lol
Therefore you need adb
No such file or directory?
I keep getting an error message stating the following:
"failed on '/system/app/phone.apk' - No such file or directory"
If I navigate to that file using Astro File Manager I can see the files, so I can't figure out what I'm missing here.
Salt72 said:
I keep getting an error message stating the following:
"failed on '/system/app/phone.apk' - No such file or directory"
If I navigate to that file using Astro File Manager I can see the files, so I can't figure out what I'm missing here.
Click to expand...
Click to collapse
Try capitalizing the file names.
Not to beat a dead horse, but this can easily be done in Root Explorer. All you're doing is renaming two files.
Not to be a cheapskate, but is there a free version of Root Explorer or a similar app that will do the same?
No
try Astro or Linda, thats free but ads supported

reverting add block

I am using dragon pics 3.3 . Some of my favourite apps are not working due to add blocks may be " by default" in Rom. How can I use my apps while keeping same Rom?
Please guide........
Advertisement blocking? If so, grab Android Terminal Emulator and run the following:
Code:
su
mount -o remount,rw /system
echo "127.0.0.1 localhost" > /system/etc/hosts
reboot
The above commands will remove ad blocking
if you are not good with terminal then install adaway from play store.. block ads once again and later disable blocking the ads after a reboot..

Useful Commands in Terminal Emulator

Hi guys!
I created this thread mainly because many useful things can be done in Terminal emulator. I will show you some simple commands which are useful.
Very useful if you don't have Root explorer when you need it.
Make sure you take a Nandroid backup before you try out just in case you can restore when you do something wrong!
You can get terminal Emulator from here: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
Note: Most commands need root. So type su and press enter and grant superuser permissions to Terminal Emulator!
First type this command before using any of the commands below just in case(needs root)
Code:
su
Some useful commands:
Turning device off (Turns your device off very fast!! ):
Code:
poweroff
Rebooting:
Code:
reboot
Rebooting to Recovery
Code:
reboot recovery
Rebooting to download mode:
Code:
reboot download
Forcing Most Apps to install to SDcard(Root needed with Terminal Emulator, no need root with ADB):
Code:
pm setInstallLocation 2
Alternatively, you can type 0 at the end instead of 2 for Auto location install mode or 1 for Internal memory install mode
To check what the current install location is:
Code:
pm getInstallLocation
Mounting R/W in system(Use with caution)
Code:
mount -o rw,remount -t /system
If above one doesnt work, try this.
Code:
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
Unmounting R/W in system.
Code:
mount -o ro,remount -t /system
If above code doesn't work, try this
Code:
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
Moving files from sdcard to system (Use after mounting R/W):
Code:
busybox cp /sdcard/<path> /system/<path>
Example: busybox cp /sdcard/demo/framework-res.apk /system/framework/
Changing file permissions to rw-r--r-- (Use after mounting R/W):
Code:
chmod 644 <path>
Example 1: chmod 644 /system/app/mms.apk
Example 2: chmod 644 /system/app/*.apk (This command changes the file permission of all apps in the folder to rw-r--r--)
Changing the current directory:
Code:
cd <path>
Example: cd /sdcard
Listing all the files and folders under the current directory:
Code:
ls
If you want to view all the files and folders in your sdcard, type:
cd /sdcard
ls
Making a new folder:
Code:
mkdir <path>
Example: mkdir /sdcard/newfolder
Removing files (For System files, Use after mounting R/W)
Code:
rm <path>
Example: rm /system/app/demoapp.apk
Removing Folders:
Code:
rmdir <path>
Get info of your build.prop values
Code:
getprop
That's all for now. I will add a few more later!
If you have any more new commands or if I have given an improper command, feel free to post it in the thread
Thanks for reading.
Have you any idea on why if I were to enter pm set-install-location 2(SD card), the next line would be "Killed"?
UserU said:
Have you any idea on why if I were to enter pm set-install-location 2(SD card), the next line would be "Killed"?
Click to expand...
Click to collapse
I don't understand your question...
Anyways...Thanks for reminding me of that command!
system.img said:
I don't understand your question...
Anyways...Thanks for reminding me of that command!
Click to expand...
Click to collapse
No problem. This is the output from the Terminal Emulator. The bold command changes the default install dir to the SD card:
u0 [email protected]:/ $ pm set-install-location 2
Killed
137|u0 [email protected]:/ $
Click to expand...
Click to collapse
UserU said:
No problem. This is the output from the Terminal Emulator. The bold command changes the default install dir to the SD card:
Click to expand...
Click to collapse
I never got that problem on adb.
Let me see....
This:
mount -o remount rw system
Is much easier than the previous one to mount readwrite.
Sent from my GT-P7300 using xda app-developers app
panpjp said:
This:
mount -o remount rw system
Is much easier than the previous one to mount readwrite.
Sent from my GT-P7300 using xda app-developers app
Click to expand...
Click to collapse
Isnt it /system?
ok...will add to op.
Thanks.
system.img said:
Isnt it /system?
ok...will add to op.
Thanks.
Click to expand...
Click to collapse
Not necessary for it to be /system
Sent from my Desire using xda app-developers app
panpjp said:
Not necessary for it to be /system
Sent from my Desire using xda app-developers app
Click to expand...
Click to collapse
Ok....
system.img said:
I never got that problem on adb.
Let me see....
Click to expand...
Click to collapse
Here's a thread which shed some light on the similar issue.
http://forum.xda-developers.com/showthread.php?t=1495423
UserU said:
Here's a thread which shed some light on the similar issue.
http://forum.xda-developers.com/showthread.php?t=1495423
Click to expand...
Click to collapse
I got it.
It needs root.
So type
su
pm set-install-location 2
Then you are done!
wow thanks !!
Bassesh said:
wow thanks !!
Click to expand...
Click to collapse
Welcome!
Useful
A question: once i tried to type
bootanimation
Click to expand...
Click to collapse
The boot animation started but..i couldn't stop it!! I could "use" the phone (i caught 4 or 5 screens) but the only thing i saw was the bootanimation.. i had to pull the battery off and restart my ace.. any solution??
Toni5830 said:
Useful
A question: once i tried to type
The boot animation started but..i couldn't stop it!! I could "use" the phone (i caught 4 or 5 screens) but the only thing i saw was the bootanimation.. i had to pull the battery off and restart my ace.. any solution??
Click to expand...
Click to collapse
That is the use of the bootanimation command. You can stop it either by pulling battery or closing terminal emulator!
But what I did to stop it was to rotate my phone to landscape and somehow close terminal emulator.
But in ADB it is easier to stop using exit command.
how to get info about /system memory and /data memory ?
rajxelton said:
how to get info about /system memory and /data memory ?
Click to expand...
Click to collapse
What info do you exactly want? Free Space, Partition Size or Used space?
system.img said:
What info do you exactly want? Free Space, Partition Size or Used space?
Click to expand...
Click to collapse
partition size. well can you tell me for all.
Anyone know a command to trigger media scanner?
Thanks for the commands. Quite new to all of this and these will help me understand things a little better

How remove the Blotwares in terminal STEP by STEP

With the intention of helping all those who have difficulties in removing blotwares even with programs like TITANIUM and others..
Here is a small step by step that I did to remove the blotwares..
STEP - 1
You install the app available in the playstore, called System app remover Https://play.google.com/store/apps/d...emapp&hl=en_US
1.1)
You need to install the app available in the playstore, called Termux Https://play.google.com/store/apps/d...ermux&hl=en_US
1.2)
grants root access to the 2 apps.
STEP - 2
Perform apk removal With the Termux application open,
you enter as root
-> su (enter as root)
You should now allow to modify the directory system
-> mount -o remount, rw -t rfs /dev/stl5 /system
Now you need to get into the "System app remover" application and pick up the APP directory you want to remove.
-> rm -r [DIRECTORY]
Now you need to return the directory system to read only, 'ro', to prevent malicious activities
-> mount -o remount, ro -t rfs /dev/stl5 /system
Restart your phone and you can see that the app is no longer on your device.
NOTE: If you can not go back to read only, after the system reboot you will be able to.
My mobile got much faster and with no crashes after deleting these apps ...
I had difficulty removing blotwares from a rom I downloaded that is available on this link for ZUK Z2 PRO
https://forum.xda-developers.com/zuk-z2-pro/development/miui-8-version-zuk-z2-pro-t3563578
ALERT: As all androis have the same command system, should work for any device, but be careful not to remove applications essential for system operation. It can cause an infinite loop in system reboot.

[APP][NO ROOT] Access Fire TV Settings without Amazon Launcher

If anyone wants to develop the program further, I have made it publicly available here.
https://github.com/rainman74/FireTV-Settings/releases
I hereby discontinue support for my Fire TV Guides and Apps. I've been a big fan of Fire TV devices for the last 2-3 years, but Amazon has now with each firmware further limited the possibilities of a configurable Android environment and even destroyed standard Android commands. This goes too far for me now.
I can recommend the following devices to anyone who wants to have a reasonable and much better Android TV experience, which I now use myself and am enthusiastic about:
Mi Box
Mi Box S
Sony Android TV (ATV3 platform, eg. XF7, XF8, XF9 or higher)
Awesome, thanks for sharing this! Will be using this on my ‘Playing With Fire’ Leanback Launcher configuration!
Are there any activities missing that could still be included in the conFIREator?
Ideas?
@rainman74
can you add this function:
-Restart Device
-ADB Debugging
-USB Debugging
-Apps from Unknown Sources
-Network Info (to look ip address from device)
-System Info (to look Software version from device)
droidpaine said:
@rainman74
can you add this function:
-Restart Device
-ADB Debugging
-USB Debugging
-Apps from Unknown Sources
-Network Info (to look ip address from device)
-System Info (to look Software version from device)
Click to expand...
Click to collapse
Thanks for the ideas. But this is not only possible with activities, you need a modified settings app for these commands (except for restarting, you need root privileges for this, or a corresponding authorized app).
Okay, let's see:
Restart Device -> Simple Reboot
turn on ADB/USB -> you have to install modified settings app from PlayFire as system app
Network Info (to look ip address from device) -> you have to install modified settings app from PlayFire as system app
System Info (to look Software version from device) -> you have to install modified settings app from PlayFire as system app
turn on unknown sources -> you have to install modified settings app from PlayFire as system app
ok thanks for the explanation
restart with the app works
rainman74 said:
Thanks for the ideas. But this is not only possible with activities, you need a modified settings app for these commands (except for restarting, you need root privileges for this, or a corresponding authorized app).
Okay, let's see:
Restart Device -> Simple Reboot
turn on ADB/USB -> you have to install modified settings app from PlayFire as system app
Network Info (to look ip address from device) -> you have to install modified settings app from PlayFire as system app
System Info (to look Software version from device) -> you have to install modified settings app from PlayFire as system app
turn on unknown sources -> you have to install modified settings app from PlayFire as system app
Click to expand...
Click to collapse
Is there a tutorial on how to install an app as a system app? Or can you point me in the right direction.
BRICK0044 said:
Is there a tutorial on how to install an app as a system app? Or can you point me in the right direction.
Click to expand...
Click to collapse
For this you need root rights!
First you have to download the modified Android TV Settings app from PlayFire:
View attachment TvSettings.apk
Then copy the app into the system app folder and MUST restart your Fire TV to install it automatically.
Code:
adb push C:\TvSettings.apk /sdcard/
adb shell su -c mount -o remount,rw /system
adb shell su -c mkdir /system/priv-app/TvSettings
adb shell su -c chmod 755 /system/priv-app/TvSettings
adb shell su -c cp /sdcard/TvSettings.apk /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chmod 644 /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chown root:root /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c mount -o remount,ro /system
adb shell su -c rm /sdcard/TvSettings.apk
rainman74 said:
For this you need root rights!
First you have to download the modified Android TV Settings app from PlayFire:
View attachment 4475903
Then copy the app into the system app folder and MUST restart your Fire TV to install it automatically.
Code:
adb push C:\TvSettings.apk /sdcard/
adb shell su -c mount -o remount,rw /system
adb shell su -c mkdir /system/priv-app/TvSettings
adb shell su -c chmod 755 /system/priv-app/TvSettings
adb shell su -c cp /sdcard/TvSettings.apk /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chmod 644 /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c chown root:root /system/priv-app/TvSettings/TvSettings.apk
adb shell su -c mount -o remount,ro /system
adb shell su -c rm /sdcard/TvSettings.apk
Click to expand...
Click to collapse
Thanks again worked great!
Updated app in first post (Access to SuperSU Settings)
Updated app in first post (Access to Xposed and VMLite VNC Server)
Also added Google Play Store, Android Terminal, Mouse Toogle and Reboot
Updated app in first post
If you use XInstaller, other basic Amazon activities can be called up (which are normally only possible with the Amazon TV Launcher) and I will include them in an upcoming version of conFIREator, e.g. screen and sound settings, sdcard menu, Fire TV info, etc.
This allows you to access all Amazon settings even if Amazon Launcher is disabled.
Updated app in first post with two versions: 1) possible settings without root and 2) really all settings with root & Xinstaller
New version added which removed access to notifications, because they no longer work with the Leanback Launcher.
If you still need it, please continue to use version 2.1.
All new version of Fire TV Settings
@rainman74 hello, first of all thank you for your work. i have an fire tv stick 2nd using halauncher and amazon launcher removed. no root. i want to acces display&sound is it posibile ? i want the overscan option. thks
xhostluv said:
@rainman74 hello, first of all thank you for your work. i have an fire tv stick 2nd using halauncher and amazon launcher removed. no root. i want to acces display&sound is it posibile ? i want the overscan option. thks
Click to expand...
Click to collapse
No that's not possible, you need root privileges and Xposed/XInstaller and you can't get them on a Fire TV Stick 2.
rainman74 said:
No that's not possible, you need root privileges and Xposed/XInstaller and you can't get them on a Fire TV Stick 2.
Click to expand...
Click to collapse
Did you use the Magisk xposed or the standalone xposed. I understand everything has to be flashed in twrp. thanks

Categories

Resources