General :: Why Android Ignores /system/etc/hosts File

Jun 19, 2011

i edited /system/etc/hosts file but it looks that my edit is ignored by Android.

In "hosts" file i added line with text "1.1.1.1 customdomain" And then i used "ping customdomain" command in Terminal Emulator but i got error "unknown host am".

General :: Why Android ignores /system/etc/hosts file


Android :: Adb Push Hosts File Into /system/etc/ - No Space Left On Device Error

Mar 22, 2010

I am trying to edit the hosts file to access rest services in my local network. Using adb pull I am able to get the hosts file for the emulator and edit it. However I get the error "No space left on device" when I do an adb push.

Does anyone know how to resolve this issue? Can we increase the space for /system? If so how? Are there any other easier ways to access local area network (without creating a DNS server).

View 7 Replies View Related

General :: Hosts File Resetting On Reboot

Feb 2, 2014

why my hosts file gets reset after a reboot no matter whether I change with adaway or adblock or if I manually replace the hosts file myself and set to read only. Have searched about and only solution I read about was get a custom kernel. Although I am already on a custom kitkat ROM and using dorimanx kernel for galaxy s2. Also never had problems with hosts resetting on jb or ICS. Even creating a symlink to data/data/hosts doesn't work. On reboot the symlink just gets replaced with the original useless hosts file.

View 5 Replies View Related

General :: Droid RAZR Max - How To Delete Hosts File

Jun 2, 2013

I deleted my hosts file on my droid RAZR Max. How to replace it or place a link for it so I can download it.

View 1 Replies View Related

General :: Android Emulator - Edit Hosts File Doesn't Resolve Custom Domain Name

Dec 20, 2010

I'm developing a mobile website and I want to see how it looks in Android Simulator.

I manage to edit my android's /etc/hosts file. Here's what I did:

1. Create an Android Virtual Device (AVD)
2. Open the AVD with this command

Code:
./emulator -avd android -partition-size 128

3. Execute the following commands

Code:
./adb remount

4. Get the android hosts file

Code:
./adb pull /etc/hosts

5. Add my mobile website into the android's hosts file. It looks like the following

Code:
127.0.0.1 localhost
172.19.14.46 m.myweb.localhost

6. Push the hosts file to the simulator

Code:
./adb push hosts /etc/hosts

7. Open the web mobile in the simulator and Host do not found. The web mobile should appear.

Btw I use Ubuntu 10.10 and android-sdk_r08-linux_86 API 7 (Android SDK 2.1)

View 3 Replies View Related

General :: AdAway Not Working - Stuck On (Applying Hosts File)

Jan 27, 2014

Using AdAway v2.8 but end up getting stuck on the final step to enabling ad blocking, "Applying hosts file".

If you are trying to enable AdAway but are stuck on "Applying hosts file" as seen in the screenshot below:

1. Download a root explorer. I prefer using Root Explorer because I think its the best file explorer on the android market. If you have problems with purchasing apps you can always use the free version Explorer, or if you prefer using another file explorer that's fine, just make sure it has root access enabled.

2. Once you have a file explorer installed that has root access enabled, navigate to "system/etc" and find the file labeled "hosts" as seen in the screenshot below.

3. Hold down/select the file labeled "hosts" and select "permissions" from the selection as seen in the screenshot below.

4. After selecting permissions a window should have popped up where you can change the permissions of the file as seen in the screenshot below.

5. Change the permissions of the hosts file to "rw-rw-rw" just like in the screenshot below. Hit "OK" to apply the permission changes and close the file explorer completely and head back over to AdAway.

6. Once you have AdAway back open, click "Download files and apply ad blocking" and try again. Depending on your internet connection it shouldn't take very long, but you should see something like this, hit "Yes".

7. After your phone has rebooted, open AdAway again and you should see something like this saying newest hosts files enabled.

AdAway is now working and ad blocking is enabled!

View 9 Replies View Related

Android :: Geocoder.getFromLocationName Ignores Bounding Box

Oct 8, 2009

How can I convert a street address into a latitude + longitude? I've tried to use Geocoder.getFromLocationName() with a bounding box, but all results I get are outside of the box. Is there a way to limit the hits to a certain area on earth?

View 5 Replies View Related

General :: How To Access Android File System

Sep 25, 2013

My objective is to create a text file in an android file system.

Using java language, I am creating an app. It has a screen with a table of 3columns. Each time a user enters the table row and click on Submit button, the row entry should be created as a separate comma-separated file on an android device. So each time when the table gets updated with new entry and clicks a submit button, a new file is getting created on the device file system. So I am looking for the file connectivity to the internal device memory where I could open the files and access it.

I have done the same in Nokia mobiles using J2ME. But for Android, I am not able to find the device file path.

View 3 Replies View Related

General :: How To Restore Android System File

Apr 17, 2012

I had format my phone's system through cwm.

now i want to restore it but it just stuck when i power on my phone.

View 1 Replies View Related

General :: Does Updating ROM Reset Hosts And DNS Files

Sep 3, 2013

I've just set up a adblock to block some specific ads and websites. I want to know if I update my rom, cm10.2 nightlies will it reset those files.

View 3 Replies View Related

General :: Custom Hosts Files - How To Deactivate

Feb 2, 2012

Many roms use custom host files for adblocking purposes. How could you deactivate that? I'm using CyberGR now and I don't like this tweak.

Large hosts, it slows dns requests.

View 2 Replies View Related

General :: Temp Directories In Android File System

Apr 4, 2012

Are there any temp, volatile directories in the Android file system that get wiped once the device is off? In Linux we have /tmp, but this doesn't seem to exist in Android.

View 3 Replies View Related

General :: Restore Android Deleted System File?

Jun 11, 2012

2 days ago I tried to update my aunts sensation xl and told her that it is better to update its ROM from 2.3.5 to 4.0.3. So i created a google account in phone and added it in order to sync contacts....and after 2 hours, I thought that it has been synced...After upgrading device to ICS, and adding the previous account that i made before upgrading, I was waiting for contacts to restore, but nothing happend.. I opened the gmail account on PC and saw that there was no contacts. So the only way for me to restore the contacts is to find a way to restore them from Phone device. So,is there any software, either on phone or PC, to restore contacts from phone? or is there a way to have access to root folders and files of phone on PC to use a recovery program to restore "Contacts.db" file that was erased while flashing ICS?

View 5 Replies View Related

General :: Why Android Not Support NTFS File System

May 14, 2012

why android not support NTFS file system. I think NTFS more speeder than FAT and FAT 32 and other file systems. So is it technical or patent issue? I think NTFS file system developed by Microsoft

View 7 Replies View Related

General :: Android Won't Boot After Modifying System File

Sep 28, 2013

I have a HUAWEI Y300-0100, and it comes with a funny feature: every time it can't connect to WIFI a popup message appears saying that if you switch to data plan charges may apply.

I am constantly switching between WIFI/no-WIFI zones so that message really bothered me, and I searched a way to disable it.

Presumably, the only way to do that is by modifying a system file called "build.prop". I already had my phone rooted so doing so wasn't very hard.I used Jota+ to change a setting from "true" to "false" (ro.config.hw******), and saved the file in the root of the SD card. Then, with ES File Explorer, I renamed the "build.prop" in /system to "build.prop.bak" and copied there the "build.prop" I previously saved in the SD root.All seemed to be fine, except that after rebooting my phone it could not get past the HUAWEI logo.

Android recovery mode seems to work, but I don't know how to use a lot of its options nor I want to do a Factory Reset if there's a better alternative.Is there a way to modify system files before booting Android? I really would like to try to delete the "build.prop" file and rename the "build.prop.bak" back to "build.prop".

View 6 Replies View Related

General :: Can Mount Android File System Image?

Dec 10, 2013

So after a failed attempt to upgrade from CyanogenMod 10.1.3 to 10.2, I was unable to access /data or /sdcard because both systems were encrypted. I ended up having to factory reset my phone because it refused to co-operate or let me access my files. However, before I did that, I was able to run

Code:
adb shell "dd if=/dev/block/mmcblk0p2" > data.img
and

Code:
adb shell "dd if=/dev/block/mmcblk0p3" > sdcard.img

Which appears to have copied the raw partition images from the phone (at least, they're the right sizes).

According to my reading, Android (and, I'm inferring, CyanogenMod) encrypts filesystems using dm-crypt, with a AES-CBC ESSIV:SHA256 cipher, with the key being derived from the password using PBKDF2. Knowing the precious little I do about encrypted file systems, my guess is that if I configure the image in cryptsetup to create a drive mapping, I can mount the mapped drive and recover the data from the images.

According to /fstab.herring on my ahem, fresh, install of Android, the /data partition is in ext4 format whereas the /sdcard partition is vFAT. So, once I've gotten through the encryption on the partition images, they should mount normally, right?

I know that dm-crypt accepts plain, LUKS, LoopAES and TrueCrypt device formats. I'm inferring from the PBKDF2 extension that Android goes the LUKS route for encrypting. Is this conclusion correct?

Whether it's possible to decrypt a dumped android image? I'm really hoping that the cypher information is stored on the file system and not on some key file that I nuked in the factory reset. If it can, in theory, be decrypted, am I using the right tools to approach the matter? If so, I'll continue fiddling with cryptsetup and mount, but no sense in wasting time if it's an impossible task.

View 3 Replies View Related

General :: Deleted System File On Android And Phone Doesn't Turn On

Aug 20, 2013

I deleted (accidentally) some system files, and then nothing happened, but i hit the restore or backup from setting and it went fine untill the loading screen, i mean it shut down then the first loading image fine and the next one doesn't load my system.. What can i do? (I think i know what software i shouldn't have deleted).

View 3 Replies View Related

General :: Android SDK Installed From Multiple Sources - System Cannot Find File Specified

May 18, 2012

I've searched to no prevail. id like to start developing apps but am having issues getting the environment set up. I have the jdk properly installed.

issue 1 (main major ):

I've installed the android sdk from multiple sources, but when i try to start sdk tools, the command prompt flashes/ opens briefly and i get this message:

"Failed to execute toolsandroid.bat: The system cannot find the file specified."

Do i need to change a PATH variable or something...

I cannot get eclipse to run. when i try to open the exe file ( because there is no short cut icon...?) it gives a message about not finding a companion library... ive try to change the properties in the file that is supposed to fix it, but it was already set the way its supposed to be. this is not major as i can use a different IDE.

so im completely lost as to th sdk tool. I just tried adding the file path to the android sdk ( PATH variable) and it still did not work... I also just tried start the android,bat file and the cmd promt flashes briefly saying somthing about xcopy is not an operable command...etc couldn't read all of it... I am on windows 7 home premium

View 9 Replies View Related

General :: Impossible To Root Android Tablet - Read Only File System?

Dec 24, 2013

I have a android tablet and I have tried rooting it and I get things like "read only file system" and I looked into it and my /system is read only.. Rooting is putting .su in the xbin or bin inside of the /system. But my /system is read only so i can't root my tablet?

View 2 Replies View Related

General :: Log File Of System Activity

Nov 17, 2013

Is there some sort of log file that will show phone activity? I don't have a password lock on my phone and don't need one, but I suspect someone is using my phone while I'm sleeping. Is there a log that might show events such as someone unlocking the screen and viewing my calls or other applications?

View 2 Replies View Related

General :: Tab Using UBIFS As File System?

Nov 27, 2012

I recently got to know, that my tab is using UBIFS as file system...what are the advantages compared to the normal ext2-ext4?

I thought about migrating to the ext filesystems, but if UBIFS is better, I'd stay on UBIFS...

View 9 Replies View Related

General :: How To Install System File On SE LWW For ICS

Sep 7, 2012

my problem is that when i turned on the power button of my se LWW. it's stuck at screen displaying "Free Experia Project".it happened due to i accidently format the system file...all those things needed to startup the phone is missing.what shud i do to fix my phone back so that i can start it like normal?

*I can only go to recovery when press+hold volume rocker button when it's starting up till that "Free Experia Project".

View 3 Replies View Related

General :: Delete File System

Dec 2, 2013

i have a thl w100 and i delete a folder on system, starting hence never got boot.works only via fastboot ou recovery. i can just copy the folder ? how ?

View 1 Replies View Related

General :: System File Read Only?

May 31, 2013

I am trying to revive white Pandigital using ADB commands to push files on the system's folder of the device then flashing them.

The computer sees the device, adb has root access, yet when trying to push files is gives me an error indication that the system/data/midc is a read only. tried adb remount over and over with no lick. Is there any other way to get to write on the system folder?

View 2 Replies View Related

General :: Repackage And Run Emulator File System

Mar 10, 2013

I have 1 rom, I pulled the file system, for example: system.rfs or system.img.ext4 or factoryfs.rfs. I added, customize the apk and want to put it back and want to be first to run the emulator software to check for errors before running Core issues, problems I faced.

1. how to repackage the system files that (system.rfs, system.img.ext4, factoryfs.rfs, system.img)
2. Using software to run the emulator

View 1 Replies View Related

General :: Deleted System File On Impression 10

Nov 5, 2012

OK the system folder was deleted on the Impression 10. It boots but gets hung on the "Impression" logo. I hook it up to the computer, the computer recognzes it but I cannot access the files on both the SD Card nor the internal memory. Android Commander and ADB cannot access it. I have the stock system image file from leader, I also backed-up my system folder. how I can push the files from the computer to the tablet or is it too far gone?

View 1 Replies View Related

General :: Deleted System File From Tablet?

Mar 15, 2014

Well, I accidentally deleted bootanimation.zip from my android tablet and now when I turn it on, it reboots once and then the android system recovery appears.

View 1 Replies View Related

General :: Rooting - Read Only File System

Nov 27, 2011

I get as far as being able to push su and busy box but get "failed, read file system only" or "directory doesn't exist".

model PMID700
Android version 2.3.1
kernel version 2.6.32.27
build number 20110918.170336
Firmware version 2.2

View 9 Replies View Related

General :: SD Card Blank Or Unsupported File System

Jul 6, 2011

Seen this error. My sd card is not readable on any android phone or computer ive tried it on.

What I think broke it was the NEW SD CARD storage optimizer by Kalyani, I opened it up after downloading off the android market and used a feature called file explorer. It took forever to read all the files on my card and eventually I closed it out before its completion and immediately noticed my sd card is now inaccesable.

Is that error fixable or should I throw out the card?

View 19 Replies View Related

General :: Can't Paste File In System After Setting Permissions To RW

Jul 21, 2013

I can't copy the file 'hosts' back to system/etc. after I cut it out of the folder a couple mins ago. When I use ES File Explorer (don't wanna pay 4euros for Root Explorer..) to try and paste it back (with everything set to RW and having root permissions) it says 'permission denied'. I don't know what I'm doing wrong..

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved