Make app listen to localhost? - Hero, G2 Touch Android Development

Hello, iam using a webserver on my rooted droid, the think is that i want to be able to access it from localhost or the phones internal ip, but it only listens to the external one. Dose this need to be fixed from the developer or can i make some changes to some magical little config file in andoid and make it woke?
Thanks a lot!

not sure what a rooted droid can do (since this is the hero forums), but if you have a kernel with iptables/netfilter you can use that for sure.

yes i have Dose this action have a name so that i can google for a tutorial or do you think you can explain it to me? Thanks!

best would be if you check that stuff on wikipedia and google. "iptables" is your hint, it's kinda big thing in the linux kernel, even if knew how to explain it in detail if would be too much.
my suggestion would be to use a script to apply the rule after every boot (the command needs to be issued after every reboot, that is how iptables works). so you need to find out how to create that particular rule and then find a way to apply it (a shell script that needs to be executed with root rights). for that you are probably better off in a droid forum... (or do you actually mean the droid eris? when you say just droid it's the motorola droid in my ears...)

Related

android newbie with tech and stategy questions :-/

Hi All
Although I've been around Linux since Red Hat 4 and have worked with pocket pc's and phones since the halcyon days of pocket pc 3 (old cassiopeia E125's, hp journada and the like) I have only been an android user for about 60 hours!, coming in from WM6.1 on a Raphael.
In order to get my Desire ready for my business use I have 2 things that I need to resolve with a fair degree of urgency. But admit that trying to do so has lead to both "roadmap" questions and technical issues.
I need to get openvpn running on my desire, along with Bluetooth PAN based networking. I have a workaround for this week in so far as I have my Linux Netbook tethered via USB to my Desire, and run openvpn from an xterm but the way my business works, I need to get that built into the desire - The "needs" driver fro the bluetooth modem is working with a customer supplied laptop where I am supposed to read my "corporate" email using my own modem , but am not allowed to connect any USB data device / install any 3rd party software to the laptop (go figure!!!!) the "customer laptop" has bluetooth but no wifi (card removed and a business specific card in its place)
SO... step one seemed to be "root the desire"
This I have done. It was an 0.80 / 1.21.. build device and seems to be fine
However, I am mindfull that froyo is around the corner and also that since rooting the device I am getting notifications of updates, so my first questions are:
1) can I safely apply the OTA updates on my rooted device please?
2) when (if?) the "official" froyo release comes out, can I safely upgrade to that
and retain root privileges ?
3) is it worth going the "cooked rom" route to obtain froyo more quickly please ? or is it sufficient to install A2SD and resove my core need for it ?
Step 2 was to install some software to enable bluetooth PAN based Network sharing...
I have tried a couple of apps
pdanet specifically says that it uses (when you set the appropriate option) bluetooth PAN, but my ubuntu lucid based netbook on ever finds the DUN (dial up networking) profile
the paid version of bluTether (or was it tetherBlu ?) refuses point blank to start so has been uninstalled. Need to either contact the developer or get a refund
So my next questions are :
3) Is there an app that someone has used successfully, with an ubuntu lucid based pc, to bluetooth PAN tether their netbook to their desire droid please ?
4) Is there a howto (as I haven't found it when googling) please ?
perhaps the most important oen to crack for me though is openvpn.
I have installed the openvpn app and gui from the market, but I read here that the desire does things differently and that I need a zip file with some updates and the "recovery console" to enable them and resolve the issues with a shell script.
try as I might - I cant find a reference to this "recovery console" , it sounds like it gives shell access to the desire either locally or remotely so ...
5) can someone please explain where I find the recovery console ?
many thanks in advance
cheers!
MW0CQU
I'll answer some of your questions for you, the rest I'll leave to someone who knows more
1) can I safely apply the OTA updates on my rooted device please?
2) when (if?) the "official" froyo release comes out, can I safely upgrade to that
and retain root privileges ?
3) is it worth going the "cooked rom" route to obtain froyo more quickly please ? or is it sufficient to install A2SD and resove my core need for it ?
Click to expand...
Click to collapse
You can install an OTA update on a rooted handset, but you will lose root. If you use a custom rom, you will not be able to install an OTA update.
It depends on what you want from a Froyo rom. There are a few fairly stable ones, but none work 100% yet. The closest to 100% would be DJ Droid froyo with sense rom.
So if stability is a concern I'd personally go for Pays 2.1 rom with A2SD.
Edit: the recovery console is a custom recovery that you either flash to the handset using the unrevoked method, or via an update.zip file on the root of your SD card. Another is via a market app. called Rom Manager.
There was an older method of pushing the recover to the handset via usb, but this can lead to the usb brick so should be avoided.
Do a search on fakeflash or unrevoked.

help needed for ps3 jailbreak.

hi all i have a problem and it is driving me nuts to fix it, the only people that can help me is you boys so pls do.
i ve read several dorums and no joy i dont no what im doing wrong.
let me start.
I have a htc touch pro (raph100)
running energy rom.
my android verion is Android 2.2 Froyo][CyanogenMod 6. requires to partitions.
1q.Sdcard
2.ext2
ive copied psfreedom files modudles zimage and psfreedom.ko to my sdcard.
ran gscript or terminal, but i get the error message unable to insmod psfreeom.ko.
before i changed my android version, i was run xdandriod, with config changfe and was loading fine, when it used to tell when to disconnect from usb.
ive gone with Android 2.2 Froyo][CyanogenMod 6 because it looks better and runs better,
is there a way i can run the ps jailbreak hack with this android version.
i look forward to all the help please, and can you provide files that i need to make this work for me.
Thank you all
Dal.
did u remove ur old modules.zip, when u copied the one from psfreedom to ur SD Card? happened to me the first time i tried to install psfreedom.ko
and the installation is a little vague. if u dont get a message, just an extra line or two, its installed ok. you can confirm that it's installed, by trying to install it again and getting an "already exists" message
Btw im not using cyanogen (but still using a rom, which requires partioning), so i cant guarrantee what i said will work for you
Also, you should post in that thread instead of creating a new one. Might be a good idea to do some searching/reading in said thread.

[Q] Who provides a professional service to upgrade my Kaiser

Hey all,
I own an unlocked ATT Tilt 1 (Kaiser 8925). It is currently running windows mobile which is extremely slow. I have read all over the internet that you can put the Android 2.2 OS on this phone and have seen youtube videos on this topic also.
Ideally I need to be able to buy apps from the android marketplace.
Since I'm not a phone hacker I'd like to find a professional cel phone service company that can do this for me.
I searched extensively on Google and can't seem to find one. So who can do this and what is the normal charge for something like this.
Just trying make my old phone useful in wifi mode.
Any advice would be great.
Regards Henry
I don't think there is a company that provides such a service especially if we take in to account that kaiser/tilt is a 3 year old device and the android port is not official. There are plenty of topics in the forum describing how to replace winmo with Android. You don't have to be a hacker to run Android on your phone. Just read the stickies and you wil be able to flash ityourself in no time
There are phone dealers out there (in the USA anyway), that will do this for a fee on the Kaiser, but trust me, with what has gone into the development of this, almost anyone can do it. Save yourself the money and try it yourself. The worst I've heard about is a mis-flashed phone needing some master reset.
The question is who?
I live here in the Orlando area and have called a number of cel phone companies.
I was treated like King Gidorah Three Headed Space Monster. They didn't have a clue this could be done.
Henrykjr said:
I live here in the Orlando area and have called a number of cel phone companies.
I was treated like King Gidorah Three Headed Space Monster. They didn't have a clue this could be done.
Click to expand...
Click to collapse
Listen HenrykJR there are about dozens of android builds on this forum + many different versions of two kernels, not all of those will work correctly for you. You might experience different issues with one setup but the other will work correctly for you. So even if there was a company that could flash it for you, you might end up with an unstable device. Also how could a company gain knowledge on flashing android builds to a phone that was originally shipped with windows mobile??? You seem to be looking for Nessy....in woods.
Your best bet now is to find someone in the forums to help you flash your device....maybe even use skype to show you how to do it. It really isn't that hard.
Hehe, i don´t think you´ll find a Company that will do it for you. Maybe you find some guys that do it for Money (me to ). But if you spend a little time with reading through this forum you could do it yourself and save the money.
Preparing:
1.) You need a SD card (mandatory for android on Kaiser). And you need a Google Mail Account for syncing your contacts etc. and access the android market.
2.) You have to "unlock" your Phone (with HSPL/HardSPL). Only after that you are able to flash things (Cusom WinMo ROMs, Radio, Android) to your Kaiser. So read through this guide and follow step 1-4.
3.) Now you have an unlocked phone an you should be able to flash everything. And the first thing you flash should be the latest "radio". The "radio" for Kaiser is similar to the BIOS for your PC. Like the subsystem and responsible for GSM chipset etc... So look & read in this Radio-Thread, download the latest Radio (it is 1.71.09.01) an follow the guide "Flashing Radio from microSD"
4.) Now your Phone is up-to-date and ready for flashing Android (or WinMo custom roms). YOU NEVER HAVE TO DO THE STEPS 1-3 AGAIN! Your Phone is now completely prepared!
Flashing Android:
For Android on Kaiser you always need 2 Parts. The Kernel (this part initialize the hardware so its similar to "driver" on PC) and the Built (the Android OS itself). But Both should work together so you´ll may find in some kernel suggestions in Built-threads because not ever kernel work with every built. For your beginning i whould suggest you some things:
First the kernel:
DZO is the most popular (the father of android on Kaiser) Kernel-Developer for Kaiser. So go to his repository and download "voguimg-240x320-2.6.32-froyo-09-10-10_23.nbh". Because Vouge and kaiser have almost the same hardware we all could use this kernel. But everyone have to modify this kernel to make phone related optimizations. You can do thy by hand (not recommended for you) or with a tool called "Atools". This tool is writthen in "Python" so mac and linux user could use it too. But you need to install Python. But that is all described in the Atools thread. Read through it and follow the guide.
Modifing Kernel:
We will only modify the madatory things. Not more at the moment...
So run Atools, klick on the "folder" Button and load the "voguimg-240x320-2.6.32-froyo-09-10-10_23.nbh".
Device: "Kaiser" should be checked
Resolution: 240x320 should be checked (native resolution of Kaiser display). Everything else will give blurry optic.
Version: "Froyo" should be checked, because we will flash a Froyo built (thats android 2.2). If you want to flash an older built like a Donut one (1.6) you have to modify & flash your kernel again.
Panel Type: Try "auto" or "1" first. But if you have a fuzzy screen or artifacts you have to try out which paneltype fits best for your device. HTC has built in 3 different displays in the Kaiser and the only way to find out which one is builtin is trial & error.
Keymap: Depends on which hardware keyboard layout you have. Here in Germeny i have to use "qwertz".
We leave the other options as they are an klick on the "Disk" button to save our modificated kernel now. it save it as "KAISIMG.nbh".
Now we need the Built:
I suggest "Fat Free Froyo" at the moment. Fast, stable, an looks good. So go to this thread and download "ODEX DOWNLOAD RLS5 ALL LANG-ODEX" on the bottom of the post.
then unzip/unrar this file...
Flashing your first Android:
1.) You should have a fat32 formatted SD card
2.) put the Kernel (the modified KAISIMG.nbh) to the root of SD card
3.) Create a folder named "andboot" on SD card
4.) Put the unzipped file (androidinstall.tar or .tgz) in the folder "andboot"
5.) Remove SIMcard and any cables from phone and put the SD card in your phone. Battery should be 50% carged or more...
6.) go to bootloader-mode (press and hold camera button and powerbutton). the KAISIMG should be loaded and it will show you "press powerbutton to update" or something similar. Do that... Now a progressbar will appear. When it is at 100% wait a few seconds an then pull the battery. Wait 10 seconds an insert it again. Voila! You flashed your first android kernel!
7.) Now we have to install android itself. So Power on the phone. In the moment when you see small white text on black background you have to press and hold the d-pad button. This one in the middle. Now you get in the install menu.
8.) Leave the options "System on nand" and "DATA on nand" as it is. Navigate to "install system" an press dpad. It ask "format system" and "format data". Both "YES". after this procedure you enter the menu again. navigate to "quit".
9.) Yeah! The first Bootup of Android! The first bootup takes longer as the following ones because now the system prepares for bootup and do a lot of optimisations. Even if you enter the lockscreen you should give it 10 minutes time to finish this optimization process in backround.
10.) Finish! You have flashed your first android completely! Now you can play around and make your settings. Remember: You have to sign in to your google account befor you can access the market or syncronize your contacts etc.!
Sounds more complicated as it is. Try it!
And if you´ll dig in deeper in this stuff you have to read here! Especially the Stickies/Refs/Tutorials! We´ve all done that!
have fun!
Henrykjr said:
Hey all,
I own an unlocked ATT Tilt 1 (Kaiser 8925). It is currently running windows mobile which is extremely slow. I have read all over the internet that you can put the Android 2.2 OS on this phone and have seen youtube videos on this topic also.
Ideally I need to be able to buy apps from the android marketplace.
Since I'm not a phone hacker I'd like to find a professional cel phone service company that can do this for me.
I searched extensively on Google and can't seem to find one. So who can do this and what is the normal charge for something like this.
Just trying make my old phone useful in wifi mode.
Any advice would be great.
Regards Henry
Click to expand...
Click to collapse
Brother, You can do it yourself, I can assure you. Regarding any ambiguity, you can contact me through PM. (I can guide you complete on voice over skype / msn). Its a TIDEOUS job but EASY to do since there is no MEANS OF BRICKING your kaiser (unless you flash something else than what u have do to install android).
I am here to help you in this community. And you can do this thing yourself.
Your device is At&t Tilt. The bad thing about installing android is getting a RIGHT kernel that suits your LCD type and enables wifi in the android build u install. (maybe in 1st try, maybe takes almost 10 tries like it happened for me)

[Q] How can i root a defy?

Hi Everyone!
I have been given a Defy MB525 with Froyo installed
Apparently O2 and Motoblur don't like each other 'cos I can't locate the phone or do anything else using "My Motoblur" as Motoblur wants Microsoft Explorer and I have Linux on my computer.
I want to manipulate files and basically get full access to my phone using a nice friendly Linux GUI, but apparently I need to root the bloody thing.
I know this question has been asked before. The thread below is an example.
http://http://forum.xda-developers.com/showthread.php?p=9456771
The thread mentions Z4root as an answer.. It doesn't exist anymore.
It then talks about adb and pushing files into the phone.
In the most part this worked
The bit that didn't was "adb push exploit.bin /data/local/tmp/exploit.bin"
It doesn't exist on the zip file attached..
It did however have "rageagainsthecage-arm5.bin" instead
I changed the name to exploit bin in the vain hope that it might be the one and continued the instructions.
It obviously wasn't the one as :
a) it wouldn't come out of the program and
b) I got the $ sign instead of the # sign, which meant I was not root.
This was confirmed when I did the next step in the instructions and got permission denied.
After a switch off and on again (the phone) I cannot even get get back into the phone using adb. It just comes up "error: device not found" even though Linux is showing it as a directory.
So! What next?
Yours in anticipation
Fitchie
I use this http://forum.xda-developers.com/showthread.php?t=1044765 and work very fine with froyo
You can look at the stickies at the top of the forum before posting, see "Defy all-in-one beginner's guide", understand that it probably refers to you and most likely contains the answers to any beginner questions you'd want to ask, open it, read it in case you're serious or just look for "rooting" word if you're not.
Well, you already missed the first part and posted the thread, but you could still do the rest.
Given that you're running Linux on your PC, I'm a bit puzzled - I'd think that the described above is expected from someone with unorthodox OS that is likely used to searching for various guides.
Using "SuperOneClick" is the best way to do Root on your Defy MB525.
I've done this. .. hope it'll help
http://forum.xda-developers.com/showthread.php?t=1551472

[Q] A way to add/remove add-ons remotely

I'm in the process of setting up an AFTV for a non-technical friend with Kodi and all of the latest, greatest add-ons. From time to time, a third-party add-on will stop working or become unreliable. On the other side, new add-ons come out that may be better than those that I've placed on her AFTV.
What I'm looking for is a way to update her AFTV remotely from time to time, removing old add-ons and installing new ones. I want to do this without having to remotely connect to her home network, remote PC, etc.
Is there an add-on I can install on her AFTV that will let me remotely "clean up" her device from time to time?
Hope I'm explaining this correctly.... Any help is appreciated.
phillyfanatic203 said:
I'm in the process of setting up an AFTV for a non-technical friend with Kodi and all of the latest, greatest add-ons. From time to time, a third-party add-on will stop working or become unreliable. On the other side, new add-ons come out that may be better than those that I've placed on her AFTV.
What I'm looking for is a way to update her AFTV remotely from time to time, removing old add-ons and installing new ones. I want to do this without having to remotely connect to her home network, remote PC, etc.
Is there an add-on I can install on her AFTV that will let me remotely "clean up" her device from time to time?
Hope I'm explaining this correctly.... Any help is appreciated.
Click to expand...
Click to collapse
I know exactly what you are saying. I have this issue all the time. To get the most out of your friends firetv, you need Root access on the target device. and then install
TeamViewer QuickSupport form google play. you can also do remove live view and do what you want. I do it all the time for my parents overseas. Earlier I had my dad do facetime and vocal instructions which was always a difficult thing. Now All I need is 2 connections. One to the Firetv through Quicksupport and one to his PC and I can install/update/fix anything I want as If I'm there.
If your friend is not rooted, you can still install quicksupport but you wont get live desktop as the first time you ask for remote desktop, kit will ask you to grant root permissions. I've also reached out to team viewer to make this an official app so it does not require root.
Hope this answers your question.
I know exactly what you are saying. I have this issue all the time. To get the most out of your friends firetv, you need Root access on the target device. and then install
TeamViewer QuickSupport form google play. you can also do remove live view and do what you want. I do it all the time for my parents overseas. Earlier I had my dad do facetime and vocal instructions which was always a difficult thing. Now All I need is 2 connections. One to the Firetv through Quicksupport and one to his PC and I can install/update/fix anything I want as If I'm there.
If your friend is not rooted, you can still install quicksupport but you wont get live desktop as the first time you ask for remote desktop, kit will ask you to grant root permissions. I've also reached out to team viewer to make this an official app so it does not require root.
Hope this answers your question.
Click to expand...
Click to collapse
I should have mentioned that this is an AFTV stick, and that rooting is really not much of an option for me. Also, I'd like to push these updates without her being involved in any way -- other than perhaps launching an add-on that would perhaps update her Kodi installation (perhaps the data folder) so that she has the add-ons installed that I want at that point.
I know some folks have developed add-ons that do something similar, but they are proprietary to their devices, so that doesn't help me much.
Essentially what I'd like to do is be able to tell her ... run this add-on, which I install for her initially, and it will update all of your other add-ons (uninstall, install, etc). I'm not sure what path to take here.... and I hope I'm making sense.
phillyfanatic203 said:
I should have mentioned that this is an AFTV stick, and that rooting is really not much of an option for me. Also, I'd like to push these updates without her being involved in any way -- other than perhaps launching an add-on that would perhaps update her Kodi installation (perhaps the data folder) so that she has the add-ons installed that I want at that point.
I know some folks have developed add-ons that do something similar, but they are proprietary to their devices, so that doesn't help me much.
Essentially what I'd like to do is be able to tell her ... run this add-on, which I install for her initially, and it will update all of your other add-ons (uninstall, install, etc). I'm not sure what path to take here.... and I hope I'm making sense.
Click to expand...
Click to collapse
Install quicksupport. I believe you can still look into her stick without being rooted and then put the files in the correct folder. Perhaps, you can check on to see how to install an ftp server such as EZ file explorer and map that IP staticly from her router and you open up a port to get in. Lots of ways you can do it if you really wanted to.
You can use an FTP server like: https://play.google.com/store/apps/details?id=com.theolivetree.ftpserver
And then Autostart it with: Autostart and StaY! https://play.google.com/store/apps/details?id=com.atasoglou.autostartandstay&hl=en
Note: I haven't tested any of the above. I believe the infamous Llama can also achieve the same as autostart.
Install quicksupport. I believe you can still look into her stick without being rooted and then put the files in the correct folder. Perhaps, you can check on to see how to install an ftp server such as EZ file explorer and map that IP staticly from her router and you open up a port to get in. Lots of ways you can do it if you really wanted to.
Click to expand...
Click to collapse
Thanks for the suggestions!
I know that some people have written add-ons (proprietary to their device) which will update the other Kodi add-ons that are installed, enabled or disabled each time their add-on is run. The add-on will retrieve a .zip file from their host, copy it down to the device, and extract and run whatever they need to which in turn updates the device with their latest recommended add-ons...
I realize this is a rather complex solution, but maybe not if this type of add-on already exists out there. I'm hoping that it does, and someone is aware of it and can point me in the right direction.
phillyfanatic203 said:
Thanks for the suggestions!
I know that some people have written add-ons (proprietary to their device) which will update the other Kodi add-ons that are installed, enabled or disabled each time their add-on is run. The add-on will retrieve a .zip file from their host, copy it down to the device, and extract and run whatever they need to which in turn updates the device with their latest recommended add-ons...
I realize this is a rather complex solution, but maybe not if this type of add-on already exists out there. I'm hoping that it does, and someone is aware of it and can point me in the right direction.
Click to expand...
Click to collapse
ok I hope to see such an addon as well. Let us know if you do find something that suits your needs.

Categories

Resources