yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] johnw.xda:
I tried export ANDROID_DNS_MODE=local

but it make no different on my nexus 4 :confused:

(my nexus 4 use android stock room 4.3, download from google)

shell@mako:/ $ id

uid=2000(shell) gid=2000(shell) groups=1003(graphics),1004(input),1007(log),1009(mount),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(net_bt),3003(inet),3006(net_bw_stats) context=u:r:shell:s0

shell@mako:/ $ telnet google.com

telnet: bad address 'google.com'

1|shell@mako:/ $ set |grep -i dns

1|shell@mako:/ $ export ANDROID_DNS_MODE=local

shell@mako:/ $ set |grep -i dns

ANDROID_DNS_MODE=local

_='ANDROID_DNS_MODE=local'

shell@mako:/ $ telnet google.com

telnet: bad address 'google.com'

any idea why will that?

thank you.
[Android Q&A, Help & Troubleshooting] cernekee:
Hmm, it looks like this change removed the logic that populates the nameserver list from the system properties. So with ANDROID_DNS_MODE=local, libc will search /system/etc/hosts but it won't actually be able to contact any nameservers:

shell@localhost / $ ANDROID_DNS_MODE=local RES_OPTIONS=debug ping -c1 localhost
;; res_setoptions("debug", "env")..
;;	debug
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=1.85 ms

--- localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.852/1.852/1.852/0.000 ms
shell@localhost / $ ANDROID_DNS_MODE=local RES_OPTIONS=debug ping -c1 google.com;; res_setoptions("debug", "env")..
;;	debug
;; res_nquerydomain(google.com, <Nil>, 1, 1)
;; res_query(google.com, 1, 1)
;; res_nmkquery(QUERY, google.com, IN, A)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28372
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;	google.com, type = A, class = IN
;; res_query: send error
;; res_nquerydomain(google.com, , 1, 1)
;; res_query(google.com., 1, 1)
;; res_nmkquery(QUERY, google.com., IN, A)
;; res_send()
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41613
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;;	google.com, type = A, class = IN
;; res_query: send error
ping: unknown host google.com
shell@localhost / $

There's some code in _resolv_set_nameservers_for_iface() that might help, but I don't think this gets run from ordinary command-line utilities.

You could try applying filesystem ACLs or SELinux rules to /dev/socket/dnsproxyd

Compiling setfacl with Bionic is a hassle, but you could boot e.g. a Debian ARM image in QEMU and build a binary that is statically linked with glibc. You might also need to build a kernel with CONFIG_TMPFS_POSIX_ACL=y; this setting is currently disabled on the CM10.2 grouper builds.

Other possibilities include:

Modify Bionic to reinstate the old nameserver list behavior, and modify /init.rc as above

Modify netd; you could try calling setresuid() to send out each request under the UID of the client instead of UID 0

Write a daemon that intercepts DNS requests intended for netd; this could use a modified version of the netd DnsProxy logic or it could pass the request through to the real netd
[Android Q&A, Help & Troubleshooting] johnw.xda:
Sorry, I forgot to mention before, maybe the reason is, my busybox/telnet is compiled on debian use glibc with -static flags, so telnet/busybox does not use android's libc, and does not use dnsproxy too.

Anyway, is it possible to compile owner libc for android? Where can download android 4.3 libc source code? Do I need to setup ndk to compile it? or can I use gcc to compile it.

Did you do that before?

Thank you again.
[Android Q&A, Help & Troubleshooting] botijo:
I'm using pppwidget to access the network and I think that is affected by this DNS issues. As specific way to get network, is not aware of all this new stuff and thus unable to resolv dns queries.
[Android Q&A, Help & Troubleshooting] cernekee:
I've been building my Android 4.3 ROMs from the CM10.2 sources.

You can try building from AOSP directly (instructions here). CM builds aren't difficult, but they did require a few extra steps.

I'm not aware of a way to build Bionic standalone. Trying the obvious stuff like running "ndk-build" in that directory, or using crosstool-ng, didn't work for me. Others can jump in if they know...
[Android Q&A, Help & Troubleshooting] idcrisis:
Hi,

Thanks for this analysis.

It certainly does look like 4.3 is ignoring net.dns1 value as the nameserver.

I'm running my custom dns server inside Android and now I suddenly find that it's not being queried.

I may have a small step towards solving this problem.

iptables -t nat -I OUTPUT -p udp -d 192.168.1.1 --dport 53 -j DNAT --to-destination 192.168.1.5:53

iptables -t nat -I OUTPUT -p tcp -d 192.168.1.1 --dport 53 -j DNAT --to-destination 192.168.1.5:53

This works by intercepting the DNS requests meant for the remote nameserver and redirecting it to the local DNS server.

Hope this helps someone figure it out.

There may be a way to programmatically change the active interface DNS server?

Or a way to perhaps disable the DNS proxy completely (ANDROID_DNS_MODE=local doesn't work any more as mentioned)?
[Android Q&A, Help & Troubleshooting] cernekee:
This is what I wound up doing: I copied the DnsProxyListener and Bionic resolver code into an experimental new program called "dnsproxy2", and then tweaked the logic a little bit. Sources are posted here and I'm attaching binaries to this message.

Currently it allows you to pass in a single DNS server address which will unconditionally override the OS-provided DNS servers, and when it proxies requests on behalf of an application it will change the thread's UID (Linux fsuid) to match the caller so that the traditional netfilter app/UID restrictions will be honored.

To see it in action, just do:

adb push libs/armeabi-v7a/dnsproxy2 /data/local/tmp
adb shell "su -c '/data/local/tmp/dnsproxy2 -v 8.8.8.8'"

The "-v" flag will show the DNS requests on the console.

This was tested with CM10.2. Note that Firefox appears to bypass the DNS proxy.

If this proves useful it may be worth writing a GUI installer/settings app. Another possible improvement would be to allow selectively overriding the DNS server based on the active connection.
[Android Q&A, Help & Troubleshooting] hardKNOXbz:
Is this method still going strong? At this moment there is no app on the market that can change DNS (mobile data access).
[Android Q&A, Help & Troubleshooting] cernekee:
I'd suggest reading the last few pages of the CrossBreeder thread. I don't think dnsproxy2 is in the official release yet but a number of people have been experimenting with it and posting their results.
[Android Q&A, Help & Troubleshooting] hardKNOXbz:
Thank you, I'll do that.
[Android Q&A, Help & Troubleshooting] DavisNT:
I have created a bug for AOSP regarding broken ANDROID_DNS_MODE=local behavior:

https://code.google.com/p/android/issues/detail?id=75232
[Android Q&A, Help & Troubleshooting] shazzl:
Plz try this to connect throo vpn.

This is not my work i just take it from cm11 and put it to stock rom and it work.

sshtunnel_support.zip

https://docs.google.com/file/d/0BzL6ekv_OuX2cE9uY3pfYzNmdWs/edit?usp=docslist_api
[Samsung Galaxy S Blaze 4G] mikeoconnor:
Yesterday my phone started an issue where it will not stay on when unplugged. I have tried

1) clearing the cache

2) clearing the cache and dalvak cache

3) backup up the phone wiping (reset) wiping cache and dalvak cache.

none of those work

I have found that if I boot with it plugged in the phone works fine till it is unplugged. Also I have noted that when it power downs when I unplug it it will reset the wall paper. Also I have noted if I put the phone in airplane mode and turn off the GPS (I have to do both) it will stay on when unplugged but all wireless connection must be off. Also I don't have this problem in clockworkrecovery mode. (also I have noted that starting with this issue I see another issue, might be related might now, that on some boot up I see Trebuchet has stopped error)

Right now I can "live" with it for a short time if needed (I can turn off all radio com stuff when I unplug it to move it to a battery powered case, and turn everything on, but it will be anoying while I have to do this)

So my questions are

1) what could be causing this?

2) what logs can I look at to see what the issue might be (or logs should I post here for some one with more knowledge then I can look at)

3) is the phone savable, the battery seems to be fine when all the radios are turned off (ether via the OS, or when booted into recovery mode)

Thanks for any advice I can get.

---Edit---

I should note that I can have all the radios on when it is plugged in, I just can not have them on when unplugged right now.
[Samsung Galaxy S Blaze 4G] jparnell8839:
What ROM are you running? Rooted or not?

If you're rooted/on a custom ROM, I would make a backup of all non-system apps and settings and try to start over. The fact that you dont get that when in recovery is the biggest indicator.

First, back up all NON-SYSTEM apps/settings with Titanium backup (or something similar).

Then follow my fix >>>HERE<<< and see if that helps
[Samsung Galaxy S Blaze 4G] mikeoconnor:
I am currently on CM-10-20130728-NIGHTLY, I should also note one thing I did try was to update the ROM yesterday AFTER the problem started (problem started at 4pm I updated the ROM at 7pm), it use to be CM-10-20130526-NIGHTLY. I will look at your link and see if that works.
[Samsung Galaxy S Blaze 4G] tommyboy8125:
To me it sounds like you have a fried battery. It only has enough power to run your phone if everything is turned off or its plugged in.
[Samsung Galaxy S Blaze 4G] mikeoconnor:
I hope you are wrong, but I fear you are right. But I am going to do the steps cited above and see if that helps, right now I am doing a second back up (first was Titanium backup, now is the CWRM backup) and I am going to do the flashing stuff who knows. Don't have much to loss, and I am still open to other ideas, if any one else has them.
[Samsung Galaxy S Blaze 4G] jparnell8839:
That's a distinct possibility, but not the only cause for what he's experiencing. Jumping the gun and buying new hardware usually results in money spent on hardware that wasn't needed a good portion of the time.
[Samsung Galaxy S Blaze 4G] mikeoconnor:
Well I did both wipes, installed the ROM (did not do any data restore, just to be safe) powered it up, unplugged it and it looked like it was going to stay on, I opened the web browser and the phone turned off again. I fear it just might be the battery now, maybe I can get to a t-mobile store and see if they will let me test a new battery to see if it will work (before I buy a new one) unless any one have other things to look at first. (right now I am restoring my phone to a state from before I started all this work, so as if I did nothing)
[Samsung Galaxy S Blaze 4G] jparnell8839:
what color is the battery indicator? If it's still white, Tmo might just replace the battery as is
[Samsung Galaxy S Blaze 4G] mikeoconnor:
It is white (indicating no water damage) also the other indicators on the phone are white. I hope you are right on that that would be sweet, I will stop by the tmo store before I head home tonight. And thanks for all the help (I now have to go back and "Thank" all the posts by you two, it is appreciated)

Funny part is I took the battery out to double check the sticker (even though I was sure it was still white) and the phone died even though it was still plugged in (so I guess I need both the battery and power plug for now)
[Samsung Galaxy S Blaze 4G] jparnell8839:
you might get lucky and get a free one out of it. cant hurt to ask
[Samsung Galaxy S Blaze 4G] mikeoconnor:
Thanks all I picked up a new battery today and I looks like it is working. Sadly T-Mobile did not replace it for free but the phone is working again.
[General Topics] amit@12:
I saw in many devices no option to set a ringtone as notification rather than doing it by an app

Many people would have known this way but still i would like to share it

To make a custom tone a notification tone or other just copy that tone and paste to /system/media/audio/ringtone, alarm, notification as per ur requirement

Reboot

Enjoy

Hit thanks if i helped
[General Topics] kinetix118:
Custom ROMs usually have Notifications and Ringtones directories on the sd card for the sound files. Just load in the file from PC when connected via USB.

-kinetix118
[General Topics] ShadowLea:
And technically it's also possible to just put them in (internal) SDcard/Notifications, SDcard/Ringtones and SDcard/Alarm. You don't even need root for it.
[General Topics] amit@12:
Thanks for the reply i tried it this way but nothing happened

So i posted this

sent by typing from my fingers
[General Questions and Answers] puredesire:
I have a folder on my SD card called fonts. The .ttf fonts are there.

Both UCCW and zooper widget pro can't see them, why?

Skickat från min Galaxy S3 via Tapatalk 2
[General Questions and Answers] puredesire:
Nobody who can help?
[Samsung Galaxy Nexus] shyamk:
Hello All;

Has anyone tried compiling cm 10.2 nightly with linaro 4.8 ? I tried doing so using instruction from here (https://github.com/Eug89/android_build/commit/67d47218172c5b708e303bf0ab82cd54cae6d112) .

/prebuilts/gcc/linux-x86/arm/linaro-4.8/bin/arm-eabi-ld: error: arch/arm/boot/compressed/piggy.gzip.o: unknown CPU architecture

/prebuilts/gcc/linux-x86/arm/linaro-4.8/bin/arm-eabi-ld: error: arch/arm/boot/compressed/lib1funcs.o: unknown CPU architecture

I am trying this on Ubuntu 13.04.

Pointers/leads are appreciated.

Thanks

Shyam
[Samsung Galaxy Nexus] Carlos_Manuel:
1. Wrong section

2. You need Fixes and Patches for Linaro toolcahin to build successfully
[Nexus 4 Q&A, Help & Troubleshooting] AlexOliv:
Hey, i never had any issue on 4.2.2, since the update, (first dirty flash + clean install, i am unable to get 3g to work.

the h icon will appear and the bar will get blue (google services connectivity) but i am unable to reach anwy website, playstore same problem.

i tried to switch to different radios .83 and .84 but without success.

the apn settings haven't changed, i checked that too.

Anybody has a similar problem?
[Nexus 4 Q&A, Help & Troubleshooting] Luis_D1:
I flashed and had no problems with connectivity since then.
[Nexus 4 Q&A, Help & Troubleshooting] AlexOliv:
after reverting to 4.2.2, mobile data worked out of the box. I installed a factory image of android 4.3, after booting i get the same symptom,

bluebars and extremely slow connection (google search prediction is kind of working) but the page cannot be loaded.

Nobody?
[Nexus 4 Q&A, Help & Troubleshooting] AlexOliv:
Found an other thread on the galaxy nexus forum. Several people with the same issue

Could be a 4.3 bug

http://xdaforums.com/showthread.php?t=2383865

[Q] Android 4.3 no mobile data working
[Nexus 4 Q&A, Help & Troubleshooting] AlexOliv:
Tried with the lastet build JSS15J, but not improvment. Some notification are sometimes able to get through, aosp browser signals an error message about proxy authentification when trying to load a webpage.
[Nexus 4 Q&A, Help & Troubleshooting] AlexOliv:
At Last! in a desperate attempt, i create a new apn profile manually and it works.

it seems the automatic configuration on android 4.3 adds wrong settings : in my case i had proxy adress and other settings.

when my mobile provider only requires apn username and password
[Nexus 4 Q&A, Help & Troubleshooting] hpcolombia:
I'm having the same problem, but I don't any proxy configured in my APN settings. what settings did you use, and on which carrier?

---------- Post added at 11:17 AM ---------- Previous post was at 11:08 AM ----------

Figured it out. Wrong APN settings. had "fast.tmobile.com" configured instead of the correct "fast.t-mobile.com"
[Windows Mobile Development and Hacking General] david_go:
Hi,

I'm writing a small program for my mini (.NET CF 2.0) and I'd like to programatically *select* the volume profile in response to certain things (eg: time of day, meetings, etc). Does anyone know how to do this? I know it has been achieved (pocketzenphone does it).. I'm just not sure how.

Thanks!
[Nexus 4 Q&A, Help & Troubleshooting] adriangb:
What happens to these images once they're off my phone? Tipically, I unload my pictures to iPhoto every couple months. For the first time, I have a ton of photosphere pictures, which I imagine can't be read by iPhoto. Can they at least be stored as a regular jpg,or will data necesarry to stitch them be lost?
[Micromax A116] vermajai93:
Hi!

I've been wanting to root my Canvas HD for the past month but did get success with sp tool..So I'm gonna try the Motochopper method which has reportedly high success rate... but because that tut was not very detailed, I have some doubts.

•I wanna know if I follow this method will I lose any data, app data, game progress, contacts etc etc.? And if there is a chance of that is there a way to backup these things? Apps like titanium and nandroid require root access which I don't have.

• When trying out the sp tool method some people reported that they lost their IMEI no. after rooting which is clearly a very serious issue and I don't wanna end up like that so does this method poses the same threat? if it does, is there a way so that I can take a backup of my IMEI no.??

•Do I need to take out my memory card/ battery?

Note: I am a noob in android rooting and stuff so please don't be harsh. I am currently in middle of the process

Thank you any help is much appreciated :fingers-crossed:
[Micromax A116] salaigeethan666:
You won't lose any data or IMEI and there is no need to take the battery out. it's not like flashing an entirely new firmware. i assure you it's very very safe. :)
[Micromax A116] vermajai93:
Thank you very much bro! Let me root this biatch right now.:good: :D
[Micromax A116] vermajai93:
I just success bro!! I'm a little nervous though.. there was an app called supersu after the root.. I have a very little knowledge about it.. regardless when I opened it asked me to update binary su should I allow that? Ik it could be very stupid question but still...
[Micromax A116] abhiab002:
YES DUDE OPEN SUPERsu ... yes allow it to update binary su.. actually supersu is an app which grants all other root apps to access the root files ... it is the app in a crude language the main head to control root access ok !!! or in other words in 99% cases it proves that device has been succesfully rooted !!!!!!!!

hitting thnaks would not take much time...please hit thanks if i helped !!!!!!! posting something on xda is very difficult !!
[Micromax A116] vermajai93:
Thanks bud.. actually I was very nervous yesterday

Couldn't believe I succeeded :p

BTW how do I uninstall all the bloat wares? Saw a video on YouTube it said I just have to move the bloat wares to external SD via esexplorer.. :rolleyes:
[Micromax A116] macsenjose18:
the BEST way to root ua fone

vermajai

this is the easir=esy way to root ur fone..

download farmaroot application from the play store

install it

on opening u will see a dropdown menu to install supersu aftr selecting that just tap "boromir"

reboot ua fone and us rooted:o

now if u want to unroot ua fone same steps and tap on "unroot" and den tap boromir

reboot ua fone and ua unrooted:)

the best safest and simplest way to root/unroot ua cHD:o
[Micromax A116] vermajai93:
Thanks for the info Mac.. but I have already rooted my fone.. now for the best way to uninstall the bloat wares..
[Micromax A116] dreamyworld:
Hi Vemajai,

Removing Boaltware is a kind of hit and miss.

The way i do is

1) Open ES file explorer

2) Click on Root Explorer

3) Mount Write Permissions

4) go to /system/app

5) Cut the Apps that I dont need and paste them into any folder on external card.

6) Go to CWM recovery, wipe cache, wipe dalvik cache, and fix permissions.

Choosing the apps to remove/delete is important, you can search internet to which apps are safe to remove, but it will be device specific.

There are few scripts available on the xda that do this job automatically, but we dont have one for our A116 (correct me if i am wrong).

If you remove a wrong apk accidentally, you can end up with FC's(Force Closes) and few functions or apps may not work.

So its better to have a Nandriod Backup (can be taken using Recovery like CWM or TWRP) so that if some thing goes wrong we can go back to working state.

-- I am not responsible if some thing goes wrong with your device, do the above at your own risk.
[Android Q&A, Help & Troubleshooting] Bawl:
I'm looking for a way to mount NFS-shares directly to my Android-devices (Nexus 4 & 7 (2012) both running CM10.1.2 "stock"/unmodified) upon boot (/request) as 16 and 32 GB don't exactly leave me that much space for my CD FLAC-rips.

And at the same time, this would give me the option of making backups without FTP etc.

XBMC for Android actually allows me to browse (with slight modifications to the "/etc/exports" the "insecure_locks" option must be just "insecure"), (temp-) mount and access my NFS-shares, (and the music plays fine) but I'd like to be able to use another player. (PowerAMP or others)

I have googled around, and all I could find were little hints, and the closest I've come is:

busybox mount -o nolock,hard,intr,vers=3 -t nfs 192.168.0.111:/music /storage/emulated/0/NFS/music

But that just gives me the following error:

failed: Protocol not supported

I suppose I'm looking for a Busybox with NFS or a fitting kernel to CM, with NFS baked in.

Anyone out there trying to do the same and have succeded or does anyone know of another way.

Any and all help, pointers etc. are of course much appreciated.
[General Questions and Answers] smartAgent47:
S4 and S3 lock screen for ICS users which devices are not rooted ....

So is there any way or a good apk with full features for any device which has ICS 4.0.4 ???

If yes please send the link or the procedure ....

Please reply !!!
[General Questions and Answers] innocent_:
without rooting you cant do that. s3 lock screen is also cool i guess.
[AT&T Samsung Galaxy Note II] taylormade772:
Was wondering if any dev working on cm10.2 since they have merged majority of the codes...
[AT&T Samsung Galaxy Note II] cnote74:
I am sure devs are working hard on cm10.2 but its best to wait a little longer on it so bugs like no cell data and calls can be fixed.
[One (M7) Q&A, Help & Troubleshooting] TeamDraven:
Hi all.

Can just flashing a custom rom change the CID of your phone?

Mt CID used to be H3G_001 but after flashing ARHD my CID is now HTC_001.

Cheers. :)
[One (M7) Q&A, Help & Troubleshooting] IINexusII:
no it shouldnt, you must have done something else to change it. are you S-OFF?
[One (M7) Q&A, Help & Troubleshooting] TeamDraven:
Nope not s-off.

Other than unlocking bootloader, flashing custom recovery and ARHD I've done nothing towards changing the cid.
[One (M7) Q&A, Help & Troubleshooting] gunnyman:
Where are you getting the Cid information from?
[One (M7) Q&A, Help & Troubleshooting] JHyde92:
You get it from the bootloader - when you power up your phone press volume down and you will be presented with it, one of the details will be the cid number :)
[One (M7) Q&A, Help & Troubleshooting] gunnyman:
I know that. I'm asking the OP where he is getting it from. Sheesh. People need to read.
[Android Q&A, Help & Troubleshooting] i3mFreak:
screen just black with backlight touch works and android too.

btw any way to recover calendar data?
[Android Q&A, Help & Troubleshooting] apad:
You need to flash custom ROM to fix the issue.
[HTC Desire X] AkumDX:
Just Got Trace Keyboard update from HTC :)
[HTC Desire X] RishiChhikkara:
could you upload the zip...
[HTC Desire X] GtrCraft:
Is it true that the wallpaper scrolling bug and low speaker sound in stock music player is fixed?
[HTC Desire X] AkumDX:
Sure :)
[HTC Desire X] AkumDX:
I didn't got any system updates yet...xcept trace Keyboard...
[HTC Desire X] funkybone:
is the trace keyboard the default keyboard when you buy HTC DX? :D
[HTC Desire X] Blue3125:
Nope just got one and I don't have any trace but the stock one is still pretty good without the trace too
[HTC Desire X] monitorstudioworker:
Isn't it available before ?

Or only on ICS ?