Related
You can find the latest version of this app on the slideme app store.
http://slideme.org/application/adfree
This is the old thread, I started a new thread in the general section => http://forum.xda-developers.com/showthread.php?p=40759351
================================================================================================================================================
Spoiled by ad free browsing on my normal desktop computer it became increasingly annoying seeing all the ads on my phone. However it's really easy to make them disappear, although you most likely will need root on the phone.
Download the hosts.txt file from http://www.mvps.org/winhelp2002/hosts.txt, you may need to run dos2unix over the file to remote \r characters, rename the file hosts and copy it to /system/etc on your phone and say goodbye to most ads.
You may find the list to be imperfect, for example some feedburner URLs are "blocked" as a result which can screw with RSS feeds, although it's annoying giving too much info to Google but like everything else in life some things are a trade off.
If you want to root your phone, try this article.
Thanks for this!
As soon as I read the topic title I realised what you were doing and I never thought of it myself.
My hosts file was /etc/hosts though, not /system/etc/hosts
Dark X Dragon said:
As soon as I read the topic title I realised what you were doing and I never thought of it myself.
Click to expand...
Click to collapse
I've been using this technique for a bit, just didn't think to post about it before did a quick search and noticed no one else had so thought I might as well
My hosts file was /etc/hosts though, not /system/etc/hosts
Click to expand...
Click to collapse
Doesn't seem to matter, I just checked the /etc dir and it has the same hosts file.
Actually, /etc is a symbolic link to /system/etc, so your hosts file is really at /system/etc -- however, accessing the file through either path is equivalent.
Ha ha hosts exists on android!? I had no idea. I'm also a spoiled ad-less pc user. This is great. Thanks.
If you can't download the file above (it appears as text in browser), replace .txt with .zip at the end of the url. This will download the zip file which u can later unzip with an unzip app in the market.
Ok. I can't paste over the original hosts file using the phone? Astro and lynda file managers don't do it for me. And yes I am rooted, running 1.5 dudes build. Can this be done only from a PC?
ShatBag1105 said:
Ok. I can't paste over the original hosts file using the phone? Astro and lynda file managers don't do it for me. And yes I am rooted, running 1.5 dudes build. Can this be done only from a PC?
Click to expand...
Click to collapse
You have a couple of options, you can download the terminal app from the market and use it, or you can use ADB to shell into the phone, or wait for someone to code an app to do it all for you.
For the time being go with installing terminal, then type 'su' to become root. That is unless you have a copy of adb handy, if you can 'adb shell' the following commands are the same, except you can copy and paste.
Then remount the system partition read-write.
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
Then you go into the etc dir
Code:
cd /system/etc
Then you can rm the hosts file
Code:
rm hosts
Then grab the hosts.txt file
Code:
wget http://www.mvps.org/winhelp2002/hosts.txt -O hosts
Always more than one way to skin a cat, but the above works for me(tm)
lbcoder said:
Actually, /etc is a symbolic link to /system/etc, so your hosts file is really at /system/etc -- however, accessing the file through either path is equivalent.
Click to expand...
Click to collapse
Ugghh, I read that ages ago but really didn't commit it to memory. It is now. =)
There's a fair chance I won't get around to it but I'm tempted to take this ad blocking further. Namely an automatic app but there might be more to add to it.
Thanks for the help delta. I figured it had to be done in terminal. And you know, this would definitely become very popular as an app.
I'm a dummy its etc not ect
delta_foxtrot2 said:
Then grab the hosts.txt file
Code:
wget http://www.mvps.org/winhelp2002/hosts.txt -O hosts
Always more than one way to skin a cat, but the above works for me(tm)
Click to expand...
Click to collapse
(I am using the terminal program on the phone)
Until the above step, no problems
After typing in the above I get the following message:
"bad address "www.mvps.org"
I checked for typing errors, tried it 3 times but get the same error message
Any suggestions please?
thanks
nyayo99 said:
(I am using the terminal program on the phone)
Until the above step, no problems
After typing in the above I get the following message:
"bad address "www.mvps.org"
I checked for typing errors, tried it 3 times but get the same error message
Any suggestions please?
thanks
Click to expand...
Click to collapse
Try it without the http://www. It might work like that. This is a lot harder than it should be lol. The g1 is putting up a fight!
ShatBag1105 said:
Try it without the http://www. It might work like that. This is a lot harder than it should be lol. The g1 is putting up a fight!
Click to expand...
Click to collapse
Thanks, but this didn't work either.
Some googling indicated a possible DNS issue.
So I looked up the IP address (209.68.48.119), substituted that into your instructions and presto, everything worked!
Many thanks for the ad killer option for the G1
Aah beautiful work. Just to clarify for newbs like me. The last line is (# wget http://209.68.48.119/winhelp2002/hosts.txt -O hosts). Make sure that -O hosts is a captialized O.
ShatBag1105 said:
Aah beautiful work. Just to clarify for newbs like me. The last line is (# wget http://209.68.48.119/winhelp2002/hosts.txt -O hosts). Make sure that -O hosts is a captialized O.
Click to expand...
Click to collapse
Yes, capital letter o, lower case o stores the output of wget into the file which isn't the desired outcome
I plan on suggesting the following URLs to the hosts.txt guy to block admob ads in apps
p.admob.com
analytics.admob.com
r.admob.com
In the mean time you can manually add it to the hosts file yourself, just copy and past from another line.
After updating the hosts file you may need to reboot or wait for the hostname to expire from the internal lookup cache, unless someone knows a quick way to flush the cache to speed up the process that is.
Thanks for this. Worked great for me. Very helpful tutorial.
Just uploaded "AdFree" to android market, this does all the steps I laid out manually at the touch of a button.
Its funny how
127.0.0.1 localhost
is the only thing blocked in the /system/etc/hosts file. lol.
andonnguyen said:
Its funny how
127.0.0.1 localhost
is the only thing blocked in the /system/etc/hosts file. lol.
Click to expand...
Click to collapse
That isn't "blocked" and in fact nothing gets blocked by the hosts file it just points hostnames to the local system, which usually has no web server running so the connection fails immediately.
However you MUST have localhost listed or various things will fail and cause all sorts of issues.
New version of AdFree is now up, I have the app adding the admob hostnames to the bottom of the list.
Seeing as some of the framework needs to be modded for a pre-rooted version of the 1.2 ROM I figured I would throw a little zip together with some stuff to play with. Its nothing special. Instructions:
1. Download the attached zip file to your computer and extract it onto your desktop, your documents, your "taxes 1993" folder, "kittens folder", or wherever you want for that matter.
NOTE: THIS IS NOT CWM FLASHABLE, DON'T EVEN THINK ABOUT IT.
2. Download one of Nemith's ROMs from here.
3. Use winrar, archive manager or any other software you have that can open up zip files and open the rom you downloaded in step 2. Once thats open, click on "system", then "bin".
4. Go back to the files you downloaded and extracted in step 1 and you will see something called 'su' simply drag and drop the 'su' file into that "bin" folder you opened in step 3. It might take a minute to add it to the zip archive so be patient.
5. Once that is done, click the back button in winrar or whatever your using so you will now be in the "system" folder and no longer in /system/bin. You should see a folder called "app", click on it. Once thats open, drag and drop the apks that were included in the zip into there and give them a second to be added in.
6. Once that is done, your free to add any additional apks that you either downloaded or have backed up from a previous setup. (extract some from root explorer before flashing the update if you would like, then copy those on there.)
7. Now that you have all the apks you want added in there, close the zip, put it on your sdcard and flash that bad boy up.
Note: I included 2 launchers in there, VTL and ADW free. You can add both of them if you want and try them out or just pick one or the other. The apk that says something about gojimi is the VTL launcher. Also, feel free to add apps that require root since you have root access thanks to that business with su earlier. This doesnt have the market because BN is gay and their custom framework needs to be hacked, (thank you for the Nook though. ) also, youll need to select one of the custom launchers if you wanna use all of the apps you added. Superuser.apk and the nookcolor tools utility are included in the zip.
I believe this is not considered warez since all the files included are free, mods feel free to correct me if I'm wrong. Once again, this doesnt have market, just a guide to adding apps and being able to use root.
Hit thanks if I helped you.
RileyGrant said:
Seeing as some of the framework needs to be modded for a pre-rooted version of the 1.2 ROM I figured I would throw a little zip together with some stuff to play with. Its nothing special. Instructions:
1. Download the attached zip file to your computer and extract it onto your desktop, your documents, your "taxes 1993" folder, "kittens folder", or wherever you want for that matter.
NOTE: THIS IS NOT CWM FLASHABLE, DON'T EVEN THINK ABOUT IT.
2. Download one of Nemith's ROMs from here.
3. Use winrar, archive manager or any other software you have that can open up zip files and open the rom you downloaded in step 2. Once thats open, click on "system", then "bin".
4. Go back to the files you downloaded and extracted in step 1 and you will see something called 'su' simply drag and drop the 'su' file into that "bin" folder you opened in step 3. It might take a minute to add it to the zip archive so be patient.
5. Once that is done, click the back button in winrar or whatever your using so you will now be in the "system" folder and no longer in /system/bin. You should see a folder called "app", click on it. Once thats open, drag and drop the apks that were included in the zip into there and give them a second to be added in.
6. Once that is done, your free to add any additional apks that you either downloaded or have backed up from a previous setup. (extract some from root explorer before flashing the update if you would like, then copy those on there.)
7. Now that you have all the apks you want added in there, close the zip, put it on your sdcard and flash that bad boy up.
Note: I included 2 launchers in there, VTL and ADW free. You can add both of them if you want and try them out or just pick one or the other. The apk that says something about gojimi is the VTL launcher. Also, feel free to add apps that require root since you have root access thanks to that business with su earlier. This doesnt have the market because BN is gay and their custom framework needs to be hacked, (thank you for the Nook though. ) also, youll need to select one of the custom launchers if you wanna use all of the apps you added. Superuser.apk and the nookcolor tools utility are included in the zip.
I believe this is not considered warez since all the files included are free, mods feel free to correct me if I'm wrong. Once again, this doesnt have market, just a guide to adding apps and being able to use root.
Hit thanks if I helped you.
Click to expand...
Click to collapse
awesome!!!
so no market means no gapps either?
what about amazon appstore?
This is great. I already have it up and running with a bunch of other apks and a third party launcher using this same method, but the nook color tools and root will be helpful too (enabling the installation of "unknown apps" will be very good).
Canadoc said:
awesome!!!
so no market means no gapps either?
what about amazon appstore?
Click to expand...
Click to collapse
Amazon App store should work now that you mention it. Just download the apk online and put it in there. Hahah Im working on a full rooted rom but I figured Id give you all something easy to do for now.
do all apk have to into system app as i think amazon installs to data folder
You can sideload the Amazon app (or download it through the browser) after you do the steps in the OP. After it boots, open Nook Color Utils (tools?) and then uncheck and check the unknown apps option at the top. After that you should be able to download and install or sideload anything into data/app.
Canadoc said:
do all apk have to into system app as i think amazon installs to data folder
Click to expand...
Click to collapse
You can push to /data/app also.
Sent from my PC36100 using Tapatalk
elessarelfstar said:
You can sideload the Amazon app (or download it through the browser) after you do the steps in the OP. After it boots, open Nook Color Utils (tools?) and then uncheck and check the unknown apps option at the top. After that you should be able to download and install or sideload anything into data/app.
Click to expand...
Click to collapse
doesnt work. won'tinstall from a web download
also titanium backup cant find root so this doesn't work. not sure what value su has
In the stock 1.2 zip thread here
http://forum.xda-developers.com/showthread.php?t=1050520&page=5
I suggested loading one of the one-click root apps into the ROM? Does that work?
I did try installing with z4root in system/apps and it didn't work. Though that may have been because it needs to run from data/app (maybe?). Don't know. Haven't tried it that way yet.
RileyGrant said:
Seeing as some of the framework needs to be modded for a pre-rooted version of the 1.2 ROM I figured I would throw a little zip together with some stuff to play with. Its nothing special. Instructions:
1. Download the attached zip file to your computer and extract it onto your desktop, your documents, your "taxes 1993" folder, "kittens folder", or wherever you want for that matter.
NOTE: THIS IS NOT CWM FLASHABLE, DON'T EVEN THINK ABOUT IT.
2. Download one of Nemith's ROMs from here.
3. Use winrar, archive manager or any other software you have that can open up zip files and open the rom you downloaded in step 2. Once thats open, click on "system", then "bin".
4. Go back to the files you downloaded and extracted in step 1 and you will see something called 'su' simply drag and drop the 'su' file into that "bin" folder you opened in step 3. It might take a minute to add it to the zip archive so be patient.
5. Once that is done, click the back button in winrar or whatever your using so you will now be in the "system" folder and no longer in /system/bin. You should see a folder called "app", click on it. Once thats open, drag and drop the apks that were included in the zip into there and give them a second to be added in.
6. Once that is done, your free to add any additional apks that you either downloaded or have backed up from a previous setup. (extract some from root explorer before flashing the update if you would like, then copy those on there.)
7. Now that you have all the apks you want added in there, close the zip, put it on your sdcard and flash that bad boy up.
Note: I included 2 launchers in there, VTL and ADW free. You can add both of them if you want and try them out or just pick one or the other. The apk that says something about gojimi is the VTL launcher. Also, feel free to add apps that require root since you have root access thanks to that business with su earlier. This doesnt have the market because BN is gay and their custom framework needs to be hacked, (thank you for the Nook though. ) also, youll need to select one of the custom launchers if you wanna use all of the apps you added. Superuser.apk and the nookcolor tools utility are included in the zip.
I believe this is not considered warez since all the files included are free, mods feel free to correct me if I'm wrong. Once again, this doesnt have market, just a guide to adding apps and being able to use root.
Hit thanks if I helped you.
Click to expand...
Click to collapse
This is unbelievable! Thanks so much for this.
I use my nook for 70% reading + 30 % for emailing and web browsing.
I installed CM7 on emmc, but the battery sleep issue is killing (goes from 100 to 0% in a day) + I cannot use the stock Nook reading App. The Nook market app sucks compared to the stock nook app.
I was ideally looking for a solution which would allow me to use the stock nook reader + email + good web browser.
So can I sideload apps such as Dolphin HD browser and Any email client, using this method? Is there any limit to sideloading apps in the system/app folder? I do have a bunch of apk's that I would love to use.
Thanks in advance!
Canadoc said:
doesnt work. won'tinstall from a web download
also titanium backup cant find root so this doesn't work. not sure what value su has
Click to expand...
Click to collapse
Works for me, try adb shell
Cd /system/app
Chmod su 4755
imjimmy said:
This is unbelievable! Thanks so much for this.
I use my nook for 70% reading + 30 % for emailing and web browsing.
I installed CM7 on emmc, but the battery sleep issue is killing (goes from 100 to 0% in a day) + I cannot use the stock Nook reading App. The Nook market app sucks compared to the stock nook app.
I was ideally looking for a solution which would allow me to use the stock nook reader + email + good web browser.
So can I sideload apps such as Dolphin HD browser and Any email client, using this method? Is there any limit to sideloading apps in the system/app folder? I do have a bunch of apk's that I would love to use.
Thanks in advance!
Click to expand...
Click to collapse
Yes you can do all of that! And I dot think you'll run into any problems unless you have like 600 Mbs of apps. Hahaha
How to flash this?
Please excuse the Noob questions.
How do I go about flashing this? Do I just insert the sd card and boot? Do I hold the n and power buttons? Some other way?
Also, will this all be wiped out if B&N force-upgrades over wifi?
Thanks in advance.
Here's an alternative way to gain more RAM and performance without odexing.
Get more RAM and faster responses by disabling verify-bytecode!
This process will usually give just as much as performance boost as odexing SYSTEM and USER app.
Click to expand...
Click to collapse
AS WITH ANY MODDING PROCEDURE/SCRIPTS FOR YOUR PHONE, THIS SCIPT ALSO COMES WITH NO WARRANTY. AUTHOR HOLDS NO RESPONSIBILITY FOR ANY DIRECT AND INDIRECT CONSEQUENCES OF RUNNING THIS SCRIPT. MAKE SURE YOU HAVE MADE A NAND BACKUP BEFORE PROCEEDING. MAKE SURE YOU HAVE AT LEAST 15% FREE ON /SYSTEM, THIS IS IMPORTANT BECAUSE IF YOU RUN OUT OF SPACE THINGS WILL GO BADLY WRONG..
Requires busybox.
If your system partition is almost full, have a look at http://forum.xda-developers.com/showthread.php?t=734236.
This script will *attempt* to odex all apks found at /system/app. Theming would be impossible once the ROM is odexed. Themes applied at the time of odexing will be preserved. If you plan on applying a theme, apply it before odexing. If you want to theme after odexing, you must deodex the ROM before theming. If you change themes often, odexing is not for you.
Quick Instructions for Windows:
Connect the phone with USB cable and enable USB debugging. (No wireless or Android Terminal shell)
Put the phone in airplane mode.
Download and extract the attached file and run odex.bat
Instructions for advanced users:
This attachment contains a folder called odex. Push that folder to data and set the permission of odex.sh to 4755. Mount system as r/w(could be done via adb remount system). Next, execute odex.sh. All of this should be done via USB using ADB shell. Do not use wireless adb or Android Terminal.
Advantages:
More free space in system partition.
Faster booting.
More free RAM(I was able to gain 20-30MB.)
Faster access to system apps.
Disadvantages:
Cannot be themed after odexing.
APK tweaks cannot be applied.
Might break some of the non-AOSP system apps such as Root Explorer if they are installed as system app.
Acknowledgments:
Only the odex.bat was created by me. Similar projects were done in past but most of the downloads are broken. So, I collected together different stuff from different places to put together this package.
adb.exe is from the RATC batch ROOT.
adb dlls are from Android SDK
odex.sh is from Paul O Brian from MoDaCo (pastebin.com/EZLWUdea)
zip, zipalign and dexopt-wrapper are from XDA (http://forum.xda-developers.com/showthread.php?t=734236)
Next aim: Odex for apps in data/app
Update:
I got 1017 on quadrant and 61.8fps on swiftdroid 2.0 M6 overclocked to 844MHz(offline mode with wifi on. No apps except system apps). It must be noted that sometimes odexed ROM performs slightly slower in benchmarks but the difference is very small. However, this does not mean their performance is lower. Odex means apps could load fast thereby making app switching, app loading really fast. And, it also reduces system RAM usage which means more apps could stay in memory making multi-tasking easier. Odexing is something like swap or compcache. Sacrifice something to gain something else. This is for some people who think odexing is useless. The drop in speed is so small that it cannot be noticed without a benchmark but the performance of the phone increases noticeably due to more space in dalvik and RAM.
Nice work.
Few remarks.
1) you need busybox installed for find
2) "busybox --install" defaults to /usr/bin (not available on android)
use "busybox --install ." when you cat-ed it to /system/xbin
Something seems not OK though with the odex.sh script?
Code:
Unable to create './Contacts.odex': File exists
zip warning: name not matched: classes.dex
zip error: Nothing to do! (./Contacts.apk)
Unable to open './Contacts.apk' as zip archive
failed on './Contacts.apk.new' - No such file or directory
Unable to create './VoiceSearch.odex': Permission denied
Unable to create './Music.odex': File exists
zip warning: name not matched: classes.dex
Cheers
Hmm, sorry, I just started to assume busybox is default since the two ROMs of concern(Joe's. Gingerbread and swiftdroid) had busybox.
Those apks are already odexed. You are on a partially odexed rom. Nothing to worry.
tweakradje said:
Nice work.
Few remarks.
1) you need busybox installed for find
2) "busybox --install" defaults to /usr/bin (not available on android)
use "busybox --install ." when you cat-ed it to /system/xbin
Something seems not OK though with the odex.sh script?
Code:
Unable to create './Contacts.odex': File exists
zip warning: name not matched: classes.dex
zip error: Nothing to do! (./Contacts.apk)
Unable to open './Contacts.apk' as zip archive
failed on './Contacts.apk.new' - No such file or directory
Unable to create './VoiceSearch.odex': Permission denied
Unable to create './Music.odex': File exists
zip warning: name not matched: classes.dex
Cheers
Click to expand...
Click to collapse
Sent from my GT540 using XDA App
i just applied a cm7 theme and the rom is still stable and the theme was applied after running the batch file
That depends on the theme. A theme that modifies odexed system apks will break things while an apk that modifies only the unodexed system apks will work. So, for most users, it would be safer to say that you shouldn't apply themes.
Sent from my GT540 using XDA App
First post has been updated.
Sent from my GT540 using XDA App
if you want to get even more ram odex your framework ... On my froyo with odexed framework i got 123mb ram with stock autokiller values This is only odexing system/app so you are able to theme your framework without problems ...
mikegapinski said:
if you want to get even more ram odex your framework ... On my froyo with odexed framework i got 123mb ram with stock autokiller values This is only odexing system/app so you are able to theme your framework without problems ...
Click to expand...
Click to collapse
I will try that. I was trying to odex data/apps. I odexed quadrant apk and saw a small gain of around 1% but it could be purely due to error or differences in conditions.
Framework isn't odexed doesn't mean all themes would work. Some themes modify other apks for more customizations. So, if you apply such a theme, it will break things. Better be safe than sorry. Saying that most themes would work, people might try to flash all themes thinking it won't break anything. It's just safer to deodex before theming. Of course, if you know what theme modify only framework and what theme modifies other apks, this shouldn't be a concern.
Update: odexing framework apk has reduced free memory to 60MB from previous 75MB
Might try add this into my app Root Toolbox if that's ok?
lukemovement1 said:
Might try add this into my app Root Toolbox if that's ok?
Click to expand...
Click to collapse
Hmm. You can but it's not a good idea. I tried odexing via terminal emulator but it fails.
Basically, this would not work if you try via root toolbox or rather it increases chances of being bricked. However, I noticed you had the scripts needed to flash an update.zip. If that's the case, you'll need to prepare an update.zip in real time and flash it via recovery.
http://forum.xda-developers.com/showthread.php?t=734236 This script moves the apps to SD and odexes. You will have to remove the appsupdate.sh and instead create an update.zip from odexed apps in sdcard. My script on the other hand, directly odexes without any user interaction.
On the other hand, I'd be glad to see this being simplified enough to pressing a button in root tool box. Only the bat script is mine. The rest are from other sources. I guess it shouldn't be a problem as long as you give credit to Paul O Brian from MoDaCo and the person who wrote deoxopt-wrapper.
And, btw, I noticed a small issue in your app. It has NO WARNINGS and NO CONFIRMATIONS! This is a real downer for an app like Root Toolbox which could brick your phone. You should ask for user confirmation whenever an user attempts to do a task that might brick your phone.
I am planning on adding the confirmation dialogs as soon as I can get back to my computer. For the odexing at runtime ill see if it works with app that don't have a GUI. If not ill do some kind of update.zip.
I'm on m6 and want to odex including framework how do I do this?
Sent from my GT540 using XDA App
Danzano said:
I'm on m6 and want to odex including framework how do I do this?
Sent from my GT540 using XDA App
Click to expand...
Click to collapse
Read start post.
And, to odex framework, you need to modify the line which says cd /system/app to cd /system/framework in odex.sh and go through same procedure.
I odexed framework but it made my ROM very unstable.
Hmmm maybe not such a good idea then
Sent from my GT540 using XDA App
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
starting odexing...it might take a few minutes to finish...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
this process connot access the file because it is being used by another process...
your device is now odexed
is this right or is something wrong?
what way did you try and odex the rom?
the quick windows way
have you want to the system/app folder to see if any odex files there?
system/apps all apks no odex
try using script manager and set the script to run on boot to see if it work that way.
Hi,
I have updated my HTC One to android 4.4, sense 5.5 (latest update from HTC). After the update I see that the emoticons in the Google hangouts app have been changed to HTC emoticons.
I was used to the emoticons in my hangouts app and now they have been changed and I am very disappointed.
Is there a way to get the Google emoticons back? I don't like the ones that HTC provides.
I have attached a screen shot.
If I could also change the emoticons/emojis to Google system-wide I would be more glad.
183.amir said:
Hi,
I have updated my HTC One to android 4.4, sense 5.5 (latest update from HTC). After the update I see that the emoticons in the Google hangouts app have been changed to HTC emoticons.
I was used to the emoticons in my hangouts app and now they have been changed and I am very disappointed.
Is there a way to get the Google emoticons back? I don't like the ones that HTC provides.
I have attached a screen shot.
If I could also change the emoticons/emojis to Google system-wide I would be more glad.
Click to expand...
Click to collapse
I'd like to know this as well. I much prefer the Google emoticons in Hangouts.
imminentwill said:
I'd like to know this as well. I much prefer the Google emoticons in Hangouts.
Click to expand...
Click to collapse
I think this should either be provided by Google Hangouts app or we need to use a custom framework.
Finally figured it out myself and thought I should share! You need root for this to work.
Get a file browser app that can browse system files. I suggest Root Browser or ES File Explorer.
Navigate to /system/fonts/
While in the fonts folder, you should see a font named "AndroidEmoji-htc.ttf" and a "AndroidEmoji.ttf".
Rename "AndroidEmoji-htc.ttf" to "AndroidEmoji-htc.ttf.nothankyou" or whatever file extension you prefer. Just make sure it's not .ttf or any other font file extension or the system will still read it.
Doing this will make the system fall back to "AndroidEmoji.ttf" which contains the hangous emojis.
Reboot and you will see the results.
Enjoy!
Okay, so you changed the Emoji in your conversation to match your keyboard. What if I wanted to go the other way ’round and skin my keyboard Emoji to match what’s in the conversation?
Musenkishi said:
Finally figured it out myself and thought I should share! You need root for this to work.
Get a file browser app that can browse system files. I suggest Root Browser or ES File Explorer.
Navigate to /system/fonts/
While in the fonts folder, you should see a font named "AndroidEmoji-htc.ttf" and a "AndroidEmoji.ttf".
Rename "AndroidEmoji-htc.ttf" to "AndroidEmoji-htc.ttf.nothankyou" or whatever file extension you prefer. Just make sure it's not .ttf or any other font file extension or the system will still read it.
Doing this will make the system fall back to "AndroidEmoji.ttf" which contains the hangous emojis.
Reboot and you will see the results.
Enjoy!
Click to expand...
Click to collapse
do you think there is a way to get the emoticons used in whatsapp for hangouts also?
herwegan said:
do you think there is a way to get the emoticons used in whatsapp for hangouts also?
Click to expand...
Click to collapse
Well... I don't know. In my post, I basically just remove the emojis that HTC put in the Android system and let it fall back on the original emojis in KitKat, which is the same as the Hangouts.
If there is an emoji font inside the whatsapp APK, then it might be possible to rename it to "AndroidEmoji-htc.ttf", and put it in /system/fonts/. This way, your phone would think it's loading the HTC emojis, but in reality it would be the whatsapp emojis. Might be possible with any emoji font pack actually.
thank you this worked perfectly!
Musenkishi said:
Finally figured it out myself and thought I should share! You need root for this to work.
Get a file browser app that can browse system files. I suggest Root Browser or ES File Explorer.
Navigate to /system/fonts/
While in the fonts folder, you should see a font named "AndroidEmoji-htc.ttf" and a "AndroidEmoji.ttf".
Rename "AndroidEmoji-htc.ttf" to "AndroidEmoji-htc.ttf.nothankyou" or whatever file extension you prefer. Just make sure it's not .ttf or any other font file extension or the system will still read it.
Doing this will make the system fall back to "AndroidEmoji.ttf" which contains the hangous emojis.
Reboot and you will see the results.
Enjoy!
Click to expand...
Click to collapse
is there a way to do this without having root?
Any ideas on making this work without root?
Sent from my HTC One using Tapatalk
robgee789 said:
Any ideas on making this work without root?
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
I'd love to find a non rooted solution as well. Anyone got any ideas?
IIIMik3 said:
I'd love to find a non rooted solution as well. Anyone got any ideas?
Click to expand...
Click to collapse
I also need a non rooted solution for my HTC One M8. This is driving me crazy.
Musenkishi said:
Finally figured it out myself and thought I should share! You need root for this to work.
Get a file browser app that can browse system files. I suggest Root Browser or ES File Explorer.
Navigate to /system/fonts/
While in the fonts folder, you should see a font named "AndroidEmoji-htc.ttf" and a "AndroidEmoji.ttf".
Rename "AndroidEmoji-htc.ttf" to "AndroidEmoji-htc.ttf.nothankyou" or whatever file extension you prefer. Just make sure it's not .ttf or any other font file extension or the system will still read it.
Doing this will make the system fall back to "AndroidEmoji.ttf" which contains the hangous emojis.
Reboot and you will see the results.
Enjoy!
Click to expand...
Click to collapse
Obviously I have not rooted yet. What type of root does this require to have permissions to do this? Thanks in advance.
Musenkishi said:
Finally figured it out myself and thought I should share! You need root for this to work.
Get a file browser app that can browse system files. I suggest Root Browser or ES File Explorer.
Navigate to /system/fonts/
While in the fonts folder, you should see a font named "AndroidEmoji-htc.ttf" and a "AndroidEmoji.ttf".
Rename "AndroidEmoji-htc.ttf" to "AndroidEmoji-htc.ttf.nothankyou" or whatever file extension you prefer. Just make sure it's not .ttf or any other font file extension or the system will still read it.
Doing this will make the system fall back to "AndroidEmoji.ttf" which contains the hangous emojis.
Reboot and you will see the results.
Enjoy!
Click to expand...
Click to collapse
I have a rooted M7, I've granted ES File Explorer SuperUser, and I get "task failed" when i try to rename it, and "Read only file system" when I try to delete it. Nothing is working
EDIT: Using Root Explorer instead of ES File Explorer worked. Not sure why, but I'm glad I know Root Explorer will work for me.
JMB2772 said:
I have a rooted M7, I've granted ES File Explorer SuperUser, and I get "task failed" when i try to rename it, and "Read only file system" when I try to delete it. Nothing is working
EDIT: Using Root Explorer instead of ES File Explorer worked. Not sure why, but I'm glad I know Root Explorer will work for me.
Click to expand...
Click to collapse
still hoping for a non-root solution to this. :fingers-crossed:
Me too mate but I don't think it's gonna happen
Sent from my HTC One using Tapatalk
Just run the weaksauce root for your HTC One M8 guys and you'll have no problems following the OP's instructions- literally takes 1 minute to root, 30 seconds to change the emoticons and you are good to go!
I rooted on my first day picking up the M8 and it's been awesome since
JMB2772 said:
I have a rooted M7, I've granted ES File Explorer SuperUser, and I get "task failed" when i try to rename it, and "Read only file system" when I try to delete it. Nothing is working
EDIT: Using Root Explorer instead of ES File Explorer worked. Not sure why, but I'm glad I know Root Explorer will work for me.
Click to expand...
Click to collapse
Just an FYI for anyone else who gets the "read only file system error" in ES File Explorer. There are actually two steps required to configure ES to be able to access and modify files on the system partition.
Step one, you've done, is grant ES superuser access. But all this does is give ES read-only access to the protected system partition. In order to actually make changes to any files on system, you also need to enable read-write access to system.
Step two, In the same place you enable superuser access in ES, you can tap the option to open up another menu, choose Mount R/W, and then select /system.
Now you will be able to actually modify files on the system partition. This is essentially what root explorer does in the background, it just starts up with system mounted as readwrite. But since ES can be used by users without root, it defaults to read-only for system, and must be specifically configured for read-write.
---------- Post added at 02:23 PM ---------- Previous post was at 02:15 PM ----------
IIIMik3 said:
still hoping for a non-root solution to this. :fingers-crossed:
Click to expand...
Click to collapse
Well, there's no way for a non-root device to modify files on the system partition. This is what root gives you, access to modify /system. So without root, there's just no way to accomplish this modification. If the emoji files were stored on /data, then you'd be able to make some changes. But they're stored on /system, which the user on a non-root device is blocked from accessing.
A little background on the "why" this is:
If the user had full read-write to /system by default on a stock device, then any app in the Play Store or sideloaded could compromise your security and make unauthorized changes to your device. This is why /system is protected. By rooting your device, you are removing this protection. You the user are essentially taking on the responsibility to ensure that anything you install from that point forward is safe and trusted. If you install something and grant it root access, it then has access to every file on your device. Because of the very real security dangers involved with rooting, no device will ever come rooted from the factory, and no Play Store app will be able to access /system without being rooted.
trjlive said:
Just an FYI for anyone else who gets the "read only file system error" in ES File Explorer. There are actually two steps required to configure ES to be able to access and modify files on the system partition.
Step one, you've done, is grant ES superuser access. But all this does is give ES read-only access to the protected system partition. In order to actually make changes to any files on system, you also need to enable read-write access to system.
Step two, In the same place you enable superuser access in ES, you can tap the option to open up another menu, choose Mount R/W, and then select /system.
Now you will be able to actually modify files on the system partition. This is essentially what root explorer does in the background, it just starts up with system mounted as readwrite. But since ES can be used by users without root, it defaults to read-only for system, and must be specifically configured for read-write.
---------- Post added at 02:23 PM ---------- Previous post was at 02:15 PM ----------
Well, there's no way for a non-root device to modify files on the system partition. This is what root gives you, access to modify /system. So without root, there's just no way to accomplish this modification. If the emoji files were stored on /data, then you'd be able to make some changes. But they're stored on /system, which the user on a non-root device is blocked from accessing.
A little background on the "why" this is:
If the user had full read-write to /system by default on a stock device, then any app in the Play Store or sideloaded could compromise your security and make unauthorized changes to your device. This is why /system is protected. By rooting your device, you are removing this protection. You the user are essentially taking on the responsibility to ensure that anything you install from that point forward is safe and trusted. If you install something and grant it root access, it then has access to every file on your device. Because of the very real security dangers involved with rooting, no device will ever come rooted from the factory, and no Play Store app will be able to access /system without being rooted.
Click to expand...
Click to collapse
Ah, thanks for this! I'm glad I was able to get it to work with root explorer before this, but I'm glad I know how ES works now.
Hello everyone
I just want to get feedback on something... I use Go SMS Pro, but people using hangouts that I speak with, because I use the emoji provided by the app (iPhone emoji), they don't get most of them, which is very annoying... has anyone faced this? Is this happening just because of the emojis not being integrated? (If I press the button for emojis on the app, I get iPhone' s emojis, but not if i use the SwiftKey shortcut...)
Btw, I tried sending about 50 emoji. Hangouts got 25... :S
Sent from my GT-N5110 using XDA Free mobile app
I have an LG V60 phone and I would like to put the phone in "high impedance mode" all the the time for more power to the earphones even if they are less than 50 ohm impedance.
In LG V40/50, it was very simple by rooting the phone and making some modifications in the one of the files that was in the "vendor/etc" directory. The problem with LG V60 is it does not allow any write access to the vendor folder at all.
So the only feasible option that I can think of is to create a Magisk module that replaces the original file with the modified one. My biggest disadvantage is not knowing anything about writing codes including Magisk module ones. So I was wondering if anyone could create a Magisk module that would replace the original file through Magisk?
ADDTIONAL INOFRMATION:
I am running Magisk 25 on a fully rooted LG V60.
The file that needs to be changed is mixer_paths.xml and it resides in the "vendor/etc" folder. I have created the modified file.
So if someone is able to develop a module to accomplish this, I will place the modified file in the "system/vendor/etc" folder of the Magisk module, as I understand it.
Many thanks for your support!
You can use this template system in future as its super easy
The template itself is here
GitHub - Zackptg5/MMT-Extended: Magisk Module Template Extended
Magisk Module Template Extended. Contribute to Zackptg5/MMT-Extended development by creating an account on GitHub.
github.com
click the Code button, then download zip
then extract the zip into a folder and rename the folder "MMT-Extended-master" to the something more meaningful, like the name of your module
Read the wiki and docs here to go step by step to create your first module:
Home
Magisk Module Template Extended. Contribute to Zackptg5/MMT-Extended development by creating an account on GitHub.
github.com
Notably the heading:
How do I make a MMT Extended mod?
The steps for a simple file addition/replacement module, which are simple, should be steps 1-4, then 8. Then zip up the modules (as a zip) and test.
For you, if you read along (in Step 3) you will need to create a folder vendor, under the existing system one, and then a further etc folder under vendor, and put the necessary file (mixer_paths.xml in there.
If you try and fail, post back and someone will assist. But we prefer people to at least read the documentation and try first, ideally...this is the way the great didgeridoohan mentored myself and many others, he was not big on spoonfeeding
Imagine the satisfaction you might get finding out youre capable of such feats...i promise its not rocket surgery
Feel free to PM even, if you get stuck and think you have a silly question - of course knowing me, and i do, you'll probably get an even sillier, and off topic answer as well...
hint: you can knock out this basic module in far far less time than it took me to write all this
Thank you!
So my changes look like this:
1. Put the modified file in the system/vendor/etc folder of the Magisk module.
2. Made the needed changes to the customize.sh as attached.
Royaltiger said:
Thank you!
So my changes look like this:
1. Put the modified file in the system/vendor/etc folder of the Magisk module.
2. Made the needed changes to the customize.sh as attached.
Click to expand...
Click to collapse
Yes, though you'll need to uncomment (remove the leading #) from the set_perm lines to make them active, also you only really need the 2nd one
Royaltiger said:
Thank you
73sydney said:
Yes, though you'll need to uncomment (remove the leading #) from the set_perm lines to make them active, also you only really need the 2nd one
Click to expand...
Click to collapse
Click to expand...
Click to collapse
So I made the module with the suggested changes in customize.sh and put the modified mixer_path.xml file in the system/vendor/etc folder of the module. Module installs fine with Magisk but when it reboots, the device hangs on the initial LG screen and does not go anywhere from there.
I am attaching the customize.sh snapshot. Also, attached is the module file.
See here under "Disabling/uninstalling modules manually" if youre not able to boot
Module Issues:Magisk and MagiskHide Installation and Troubleshooting guide
www.didgeridoohan.com
I am assuming that it is not possible to accomplish what I wanted to achieve.
Royaltiger said:
I am assuming that it is not possible to accomplish what I wanted to achieve.
Click to expand...
Click to collapse
mixer_paths files have been replaced for years, long before magisk even...i did it back as far as the Galaxy S2 from memory, so im not sure why this didnt work for you, was the mxer_paths file specifically for your device? i have no clear idea why it hasnt worked for you
this thread has a guide to making /system RW, so you could manually copy the file and overwrite it, but id really consider how much you want to replace mixer_paths before i set out to do that
V60 Bootloader Unlock and Magisk Root
Earlier today I was alerted to https://www.cnblogs.com/yanhua-tj/p/15525593.html which has the actual firehose and steps to unlock! However it seems to be in Simplified Chinese so I'll translate it here for you. The firehose is attached below...
forum.xda-developers.com
73sydney said:
mixer_paths files have been replaced for years, long before magisk even...i did it back as far as the Galaxy S2 from memory, so im not sure why this didnt work for you, was the mxer_paths file specifically for your device? i have no clear idea why it hasnt worked for you
this thread has a guide to making /system RW, so you could manually copy the file and overwrite it, but id really consider how much you want to replace mixer_paths before i set out to do that
V60 Bootloader Unlock and Magisk Root
Earlier today I was alerted to https://www.cnblogs.com/yanhua-tj/p/15525593.html which has the actual firehose and steps to unlock! However it seems to be in Simplified Chinese so I'll translate it here for you. The firehose is attached below...
forum.xda-developers.com
Click to expand...
Click to collapse
Actually I had no problem in editing the mixer_tavil.xml file in LG V40/50. But when it comes to LG V60, the file is read-only. There is no way to edit it due to dynamic partition. Hence, I was seeking the only option available i.e., via Magisk module.
Royaltiger said:
Actually I had no problem in editing the mixer_tavil.xml file in LG V40/50. But when it comes to LG V60, the file is read-only. There is no way to edit it due to dynamic partition. Hence, I was seeking the only option available i.e., via Magisk module.
Click to expand...
Click to collapse
So, I encountered the same problem and found what you did wrong. I was able to write my own Magisk module and it works wonderfully. It took so much time to understand how to do it because there is no proper tutorial.
If you are still active and trying to know how to do it the right way, here comes the explanation:
The Replace = " /system/vendor/etc/ " must not be written as it completely wipes the actual folder from your phone. This is why you were not able to turn the phone on. It should be like this:
Replace = " " (That part must be blank)
The rest of the code is good. If you try it like this now, you will see it will work, just like mine did.
Cheers
Does not work. May I see your module? Please upload it here as attachment.
I even put my edited file under /data/adb/modules/<my directory>/system/vendor/etc. It shows up in Magisk as a module and the file loads (as it is not visible in file explorer) but there is no change in volume. So the thing is not working.