Can't really believe this hasn't been covered for the Sensation, so here goes nothing:
Many custom ROMs that come with their own hosts file (ones that don't use AdFree Android to manage it) will automagically break apps like Hulu out of the box. Hulu will get to the point where it should start streaming an ad before your video, and it will just hang there. Eventually it gives you a message about your connection being bad, and returns you to the video list.
ROM chefs that create their own hosts file know this, but seem reluctant to fix it. I understand that a large hosts file is a popular feature in ROMs, but not when it breaks apps.
If anyone shares my concern, there is an easy way to fix this. The way I'm going to get around it for now is to first download (if you haven't already) adb. Then run
Code:
adb pull /etc/hosts
which pulls it to the local folder. Open the file in notepad, wipe it clean (or remove the hulu advertisers, if anyone can advise on what they are, I would appreciate that so I can have a nice hosts file). Save the file, then run
Code:
adb remount
followed by
Code:
adb push hosts /etc/hosts
You should now be able to watch Hulu on your Sensation with a custom ROM.
(x-posted from a Sensation ROM thread because I know it will get lost there. Posted here for posterity when people have the question)
Related
i just bought an x10 phone and wanted to know how to install applications and themes... PLEASE HELP ME...
OK,
for apps:
From the market it should be pretty obvious, so I'm assuming you mean from an apk on your SD card.
You'll need a file explorer like Estrong (from the market) or RootExplorer (only works with 'root' (see below)).
You also need to allow 'applications from unknown sources' (Settings -> Applications)
Then just browse to the apk in the file explorer and selecting it should prompt the installation. After that you're good to go.
Themes:
this is a bit trickier (is that a word).
1. First up, you'll need root (kind of like admin rights on windows). The easiest way is to use the one-click root app from the development section, this installs as above and then on launching there's a 'Root' and an 'Unroot' button. Click root and you're done.
2. What you're doing when you install a theme is replacing the apk files for the phones framework and certain key apps. The modified versions that are copied mostly just contain updated resources (almost always .png files).
This is the reason you need root, you are replaced protected system files. It is also the reason that you can only have one theme at a time and can't 'hot-swap' them like in timescape, for example.
The best way to go about this, in my opinion, is to download one of chewitts themes. Before you install it take a look at the installer bat - open it in Notepad - sorry I'm just assuming everyone uses windows , probably get shot for those sort of assumptions here
It is my firm belief that, if you don't understand what is going on in that installer file then you need to do some more research, start with the stickies here (maybe the one about how to use chewitts installer) and check this thread out as well:
http://forum.xda-developers.com/showthread.php?t=714288&highlight=modify
Hope this is enough to get you started. Let me know if something isn't clear.
I tried and I got the unsupported platform message.
I could never get it to work but look here
http://forum.xda-developers.com/showthread.php?t=856318
Hulu Tips
The trick for getting Hulu working is to do these things:
1) Use Either Dolphin Browser or SkyFire
2) In the browser, Settings...set User Agent to "Desktop"
3) In Advanced Settings set Plugins to "Always On"(Default is "on demand"))
4) Install either the Adobe flash player hacked apk or hexedit the libflashplayer.so file yourself. I had issues using the hacked apk, I just hexedited my own on the PC and moved it over. Instruction and hacked apk in first post of this thread: http://forum.xda-developers.com/showthread.php?t=856318&highlight=hulu
5) Install AdFree from the marketplace
6) Delete/Rename the Host file in /system/etc (TNT Lite Builds)
7) Start AdFree, it will want to create the Host file. If it exists when you run it, it will hang and not complete the installation.
8) When AdFree comes up there is an option to "Revert" click this button to allow ads, Hulu needs this to work.
9) Reboot to clear the host cache.
10) Turn back on AdFree Host file restrictions if you like after you're done with the Hulu Goodness! Enjoy!
rooted?
Is there anything special that needs to be done in order to delete "system/etc/hosts" file? I am running TNT lite 2.4 with Cwm, and/\ have had superuser capabilities for everything else, I'm assuming it's not root related?
I did it - I can see the video but when clicked after waiting for a while to run I'm getting the "unfortunately Hulu is not supported on your platform...
Well it works, sort of. It played real nice until it reached a commercial. Then it paused for a few seconds and Dolphin crashed. Tried again and had no sound. Re-booted, tried again and it worked again. Haven't watched long enough to see if it crashes at the commercials again.
Full screen sort of worked. Had to disable the popup blocker in Dolphin. Then it played for a few seconds until the video froze. Still had sound, but frozen video.
I wish there was something not as touchy as flash too...
Update.. Made it past the commercials this time. Seems pretty touchy but it works...
thaigai - you can use root explorer to delete the hosts file. All the firmware distros get you to root. You will need root in order to access the /system/etc and the /data/data/com.adobe.flashplayer/lib directories.
jcarlospr - Unfortunately.... message is usually caused by either the User Agent is not set to "Desktop" or your libflashplayer.so is not set correctly.
Download this file, unzip it, and use Root Explorer to copy it into the /data/data/com.adobe.flashplayer/lib directory
http://www.megaupload.com/?d=K4C7N34D
You can use this with both the Folio 100 Adobe Flash apk and the GLES Optimized Flash apk. The GLES Optimized is linked in Roebeet's TNT Lite Thread - http://forum.xda-developers.com/showthread.php?t=842004
Copy the libflashplayer.so file after installing the Adobe Flash Player apk.
dkhilo said:
thaigai - you can use root explorer to delete the hosts file
jcarlospr - Unfortunately.... message is usually caused by either the User Agent is not set to "Desktop" or your libflashplayer.so is not set correctly.
Download this file, unzip it, and use Root Explorer to copy it into the /data/data/com.adobe.flashplayer/lib directory
http://www.megaupload.com/?d=K4C7N34D
You can use this with both the Folio 100 Adobe Flash apk and the GLES Optimized Flash apk. The GLES Optimized is linked in Roebeet's TNT Lite Thread - http://forum.xda-developers.com/showthread.php?t=842004
Copy the libflashplayer.so file after installing the Adobe Flash Player apk.
Click to expand...
Click to collapse
No luck!!!
But I also notice that I didn't have the /data/data/com.adobe.flashplayer/lib directory - so I create it myself - is that right??
jcarlospr said:
No luck!!!
But I also notice that I didn't have the /data/data/com.adobe.flashplayer/lib directory - so I create it myself - is that right??
Click to expand...
Click to collapse
That doesn't sound right. Try uninstalling your flash player and reinstalling with the new GLES optimized Flash apk, then copy the libflashplayer.so file. Like I mentioned I had issues with the hacked apk.
dkhilo said:
That doesn't sound right. Try uninstalling your flash player and reinstalling with the new GLES optimized Flash apk, then copy the libflashplayer.so file. Like I mentioned I had issues with the hacked apk.
Click to expand...
Click to collapse
Ok, This is what I did
1. Re-downloaded Adobe Flash Player 10.1.12.1 from http://forum.xda-developers.com/showthread.php?t=842004
2. Went to settings/Applications/downloaded applications and uninstall the Adobe Flash Palyer 10.1
3. Using ES File Explorer I put the adobe flash player 10.1.120.1.apk
4. Went to the data/data/com.adobe.flashplayer/lib/ I renamed the libflashplayer.so that I got from http://www.megaupload.com/?d=K4C7N34D
5. Using the app App Installer I install the apk from step 3
6. Turn off the table after reboot I went back to the data/data/com.adobe.flashplayer/lib/ and rename back the file.
7. Went to hulu using skyfire (first, I verified that the option selected by default is desktop).
8. I selected a video from hulu and after 30 seconds I got the unsupported message.
Something else, I created data/data/com.adobe.flashplayer/lib/ directory because it was not there.
I am using TnT Lite V2.2.0
jcarlospr said:
Ok, This is what I did
1. Re-downloaded Adobe Flash Player 10.1.12.1 from http://forum.xda-developers.com/showthread.php?t=842004
2. Went to settings/Applications/downloaded applications and uninstall the Adobe Flash Palyer 10.1
3. Using ES File Explorer I put the adobe flash player 10.1.120.1.apk
4. Went to the data/data/com.adobe.flashplayer/lib/ I renamed the libflashplayer.so that I got from http://www.megaupload.com/?d=K4C7N34D
5. Using the app App Installer I install the apk from step 3
6. Turn off the table after reboot I went back to the data/data/com.adobe.flashplayer/lib/ and rename back the file.
7. Went to hulu using skyfire (first, I verified that the option selected by default is desktop).
8. I selected a video from hulu and after 30 seconds I got the unsupported message.
Something else, I created data/data/com.adobe.flashplayer/lib/ directory because it was not there.
I am using TnT Lite V2.2.0
Click to expand...
Click to collapse
I don't see where you are doing the adfree part. I got it to work using the Flash apk that was already modded without having to play with the lib file.
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
jcarlospr said:
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
Click to expand...
Click to collapse
Are you trying to delete the host file with something like androot, or root explorer? The folder has to be set to read/write or it won't let you change it.
thaigai said:
Is there anything special that needs to be done in order to delete "system/etc/hosts" file? I am running TNT lite 2.4 with Cwm, and/\ have had superuser capabilities for everything else, I'm assuming it's not root related?
Click to expand...
Click to collapse
Folder has to be set to read/write with something like root explorer.
dkhilo said:
The trick for getting Hulu working is to do these things:
1) Use Either Dolphin Browser or SkyFire
2) In the browser, Settings...set User Agent to "Desktop"
3) In Advanced Settings set Plugins to "Always On"(Default is "on demand"))
4) Install either the Adobe flash player hacked apk or hexedit the libflashplayer.so file yourself. I had issues using the hacked apk, I just hexedited my own on the PC and moved it over. Instruction and hacked apk in first post of this thread: http://forum.xda-developers.com/showthread.php?t=856318&highlight=hulu
5) Install AdFree from the marketplace
6) Delete/Rename the Host file in /system/etc (TNT Lite Builds)
7) Start AdFree, it will want to create the Host file. If it exists when you run it, it will hang and not complete the installation.
8) When AdFree comes up there is an option to "Revert" click this button to allow ads, Hulu needs this to work.
9) Reboot to clear the host cache.
10) Turn back on AdFree Host file restrictions if you like after you're done with the Hulu Goodness! Enjoy!
Click to expand...
Click to collapse
Is this in general for most devices?
Sent from my HTC HD2 using XDA App
ceo4eva said:
Is this in general for most devices?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
The hack original came form those that discovered it on the Nexus One Phones(rcgabriel thx for correction). It just edits what Adobe Flash Reports to the website the client using it, in this case it reports WIN instead of AND. So, I believe it would work for all mobile devices as long as they use a libflashplayer.so file as well. You might want to hexedit your particular libflashplayer.so file since it may be different from the one posted here. This apk is specific to the tegra2 devices.
jcarlospr said:
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
Click to expand...
Click to collapse
Also make sure your firewall is not doing some kind of ad blocking either. Some firewalls like Untangle have a ad blocker or if you use OpenDNS, you might have problems also if you have the restrictions to block the ad sites. Anything that blocks ads might prevent hulu from showing you the video.
Strangely enough, I needed to delete the host in order to have the AdFree even get to the point where it gives me the option to "revert" or load the updated hosts file. I'm not sure if the hosts file itself was blocking things, or the hosts file had some permissions preventing AdFree from modifying it. Either way, using Root Explorer after making sure the directory is R/W and not R/O is probably the easiest route for deleting this file.
dkhilo said:
Also make sure your firewall is not doing some kind of ad blocking either. Some firewalls like Untangle have a ad blocker or if you use OpenDNS, you might have problems also if you have the restrictions to block the ad sites. Anything that blocks ads might prevent hulu from showing you the video.
Strangely enough, I needed to delete the host in order to have the AdFree even get to the point where it gives me the option to "revert" or load the updated hosts file. I'm not sure if the hosts file itself was blocking things, or the hosts file had some permissions preventing AdFree from modifying it. Either way, using Root Explorer after making sure the directory is R/W and not R/O is probably the easiest route for deleting this file.
Click to expand...
Click to collapse
How I switch from r/o to r/w?
dkhilo said:
The hack original came form those that discovered it on the Galaxy S Phones. It just edits what Adobe Flash Reports to the website the client using it, in this case it reports WIN instead of AND. So, I believe it would work for all mobile devices as long as they use a libflashplayer.so file as well. You might want to hexedit your particular libflashplayer.so file since it may be different from the one posted here. This apk is specific to the tegra2 devices.
Click to expand...
Click to collapse
Minor historical correction - the hack originally came from the Nexus One forums. http://forum.xda-developers.com/showthread.php?t=687842&page=3
Fancast works great without all the BS, hulu is a waste of time.
Hi there,
Is there a way to temporary root my Nexus S [I9020XXKD1] or alternatively a non-root way to access /data so that I can copy a file in and out? Essentially I want to be able to backup and restore some game saves
Most posts I've read basically have folks saying "Just root it", which is good advice to most but isn't right for me - I really don't want to have to wipe my phone and I'd also like to be able to dip my toe into rooting before taking a full leap. That, and aside from needing this one file in /data my phone works exactly as I'd like it to
I only need "su" access for a brief moment to copy off a file to and from /data. I set up the android sdk but ADB didn't work because of the protection of "production builds".
VISIONary seemed like the right kind of thing, but I don't believe it works for the Nexus S or recent firmware, so while temp rooting would be nice so would any solution that allows me to backup and restore some files in /data.
At the moment I am wondering if writing an apk of my own that copies/replaces this one file is the way to go - but that seems perversely long way around!
So any help/suggestions most appreciated
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
If you have the old bootloader (2.3.2 i think) you can boot a recovery without flashing. From you computer use "adb boot recovery.img" and boot clockwork recovery. From there you can mount and access the filysystems.
Sent from my Nexus S using XDA App
Maximilian Mary said:
There is no temporary root for the Nexus S. You're either rooted, or you're not. However, if, perchance, you are on Android 2.3.2 or earlier, you might be able to root without wiping.
Without root, you cannot see the files in /data, but you can read/write the files directly if they have the proper permissions and you know the exact path/filenames. After poking around a bit, it seems that read & write permissions vary among apps. Most apps have full permissions reserved for the parent app. Some allow other apps/user to read some files, and read+write others. (The permissions being app-specific, if it can't be done by command line, I doubt it could be done by creating an app, either.)
So, what is the game? Perhaps I can do some exploring.
Click to expand...
Click to collapse
Thanks I figured as much. The game is Dungeon Hunter 2 and essentially I am trying to implement a simple fix to make my save game work again (the fix is here: http://forum.xda-developers.com/showthread.php?t=1042675 a few posts down) but it requires root. So I do know the exact paths and filename.
Thank you for your helpful answer
Ok, I'm not having any luck here, and it's pissing me off. FYI, I don't have that game, so I'm testing it with Angry Birds. I can read and copy the file just fine, but I can't modify it without using root. The data file itself has read/write access, but the containing folder (files/) is read-only, so I can't overwrite the file after I've modified it. Since the file itself has r/w access, I wonder if it would work to modify the file directly, instead of using an outside program to modify it then overwriting it. (I'm a bit ignorant of the finer points of linux permissions.) This would require an app that would allow you to open and modify a file by typing the full path & filename, instead of just browsing the directory tree. You could also try < adb pull /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame dh2_000.savegame > (using the correct path, if that's not it). Then see if < adb push dh2_000.savegame /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame > works. The fact that you can copy the file out is promising, anyway. So even if you had to root, you could backup the file before rooting wipes everything, then fix it & back it up after you had root.
Btw, what version of Android are you on?
Edit: I think I'm getting somewhere. While you can't modify the file itself, you can modify the file contents. So something like this might work: < adb shell >
< more /sdcard/dh2_000.savegame > /data/data/com.gameloft.android.TBFV.GloftD2HP.ML/files/dh2_000.savegame >
So the next step is to get some help from someone who has the game and is rooted as to the exact path to the savegame file. Once we have that, I think we're golden. (Or, let me know if adb pull works with the path I guessed at.)
wow! Thank you for your help
In answer to your questions: my Nexus s is running 2.3.4 and you are correct about the file path (many other kind xda users died to bring us those paths ) is /data/data/com.gameloft.android.TB with the filename being dh2_000.savegame
I don't want to drive you to distraction! If I could back it up I probably would go ahead then and root the phone given how complexplaying with a non-rooted phone is!
I will try the adb pull method and let you know how I get on.
Thank you again for your help and for showing me why I probably do want to root!
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
oldyoungguy said:
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
Click to expand...
Click to collapse
Some .Apk's can be placed in system/data/app while others can't , make sure the .apk you're trying to place in system/data/app is supported or you may end up restoring your device. if the apk can run from the system /data/app then yes with the right permissions ...
Apk's from the market will give you detailed info from the apk like permission needed , supported devices ect, even the developers contact info ( in other word they are approved by Google.
while "sideloaded" apk or web apk (not coming from Google) are pirates apk,modified apk ect. who knows what permissions it needs or what info you are sharing with whoever modified the apk...
So be careful what you get into your device and where is placed on your device
Sent from my SPH-M930BST using Tapatalk 2
oldyoungguy said:
If not, what else is done under the covers?
Also, what are the differences when installing applications
•From the android market
•sideloaded from web download
•sideloaded using adb install
•sideloaded using adb push
I copied this question from another place (I cannot put link here because I am new here) because I also have the same question and want to know more about this.
Click to expand...
Click to collapse
Simply placing the apk into the correct folder is not enough. You will also need to set the permissions to the same as the other apps in that folder (I can't remember the permissions off the top of my head). This can easily be done using Root explorer, or using an adb shell and the chmod command.
Play Store installs and sideloaded installs achieve the same result, however you will want to be careful where you download apk files from. Apps from the Play Store are less likely to be malicious in nature, and , of course, you should never be pirating paid apps.
Adb push would not be enough as you would still need to set permissions. Unless you are installing a system app, it is better just to use adb install.
rootedVette said:
Adb push would not be enough as you would still need to set permissions. Unless you are installing a system app, it is better just to use adb install.
Click to expand...
Click to collapse
Are you saying the "adb push" will only copy file into the target location but "adb install" will copy the file into the target location AND also set the proper permission for you?
With all of the usual warnings about the source/safety of "side-loaded" apps aside. . .
I simply put the .apk file onto the SD card (anywhere), and then use a file manager like Astro to "open" it (root access not required). You will be prompted to see if you really wanted to install the app. Then let Android do its thing. The app will be installed where it belongs, with all the permissions it needs.
For this to work, you must first tell the device to allow installation of apps from unknown sources. Go to Settings | Security, and check Unknown Sources.
First off, I am new to the forum, so if I'm breaking the rules (which I have read, and believe I am following correctly) or if this post would fit better in a different section, please let me know!
So I have the Hyperkin Smartboy USB-C version, and I was wondering if anyone knows of a way to download ROMs off of it? I have a few GB/GBC games that I would like to be able to play in times where I don't have the Smartboy and cartridge with me (NOT in order to file share, in fact I want to do this to avoid downloading the ROMs online). For those who don't know, it will temporarily place the ROM on your device and allow you to open it in an emulator. I attempted to load the ROM, open a file explorer, and copy the ROM from there, but the file wasn't there. My guess is that the Smartboy simply removes the ROM from the device unless either the Smartboy app or the emulator app is running.
Again, if this post is against the rules (as it could be considered pirating) please let me know and I will remove it. Thanks in advance for any info!
I figured it out!
Immediate after posting I messed around with it for about half an hour and figured it out, so here's how I did it if anyone is interested:
TOOLS/SOFTWARE NEEDED:
Hyperkin Smartboy
A file explorer app with the "archive" option located on the top half of the screen (I used File Explorer Root Browser by JRummy Apps)
The GB/GBC cartridge you would like to copy to your device
HOW TO:
Place the file explorer app at the top of your homescreen for easy access. Open the app and navigate to /storage/emulated/0
Plug your phone into the Smartboy and load the cartridge data
Hit "Run Launch Software". This will open the emulator
Go back to the homescreen and open the file explorer
Open the HyperkinSmartboySerial folder and archive smartboy.gb (place it in a ZIP folder)
Move the folder to your desired location and unzip it
And that's it! I hope this thread helps anyone who's been wondering how/struggling to do this. Enjoy
Disclaimer: Pirating is bad, mkay. Please don't download/share ROMs that you do not personally own a copy of.
Thanks for the info im going to try it.