Download a terminal client, e.g. ConnectBot and connect to your local shell.Enter `su` to become root. (Double check with whoami afterwards). Enable wifi tethering and ensure your data connection is working (connect to VPN)
Run `netcfg` and note your interface names (typically tun0 and wlan0 (ignore m.wlan0 or similar, only take the one with a real mac address), as is on my SGSII)..Double check the subnet for your wlan0 device and enter the following commands:
iptables -A POSTROUTING -s 192.168.43.0/24 -j MASQUERADE -t nat (setup a postrouting entry for the tethered devices subnet, implementing NAT) iptables -A FORWARD -j ACCEPT -i wlan0 -o tun0 forward packets from tethered devices across the tunnel iptables -A FORWARD -j ACCEPT -i tun0 -o wlan0 forward packets from the tunnel to the tethered devices
Note, because you are using NAT, you will need to configure port forwards on your Android device to be able to run servers etc on tethered devices. Unlikely you'll need to worry about that though. Feedback if it worked or not. Posting this now from my home IP, OpenVPN for Android and these iptable rules!
Is it possible to write a in-app openvpn connection (via streams and sockets)? If it is, then is there any android application which managed that already? I have also problems finding in-depth openvpn protocol description.
Several threads have indicated that the Droid supports OpenVPN connections, but for the life of me, I can't figure out how to configure this. The only VPN option that even looks close is "Add L2TP/IPSec CRT VPN", but I can't figure out how to load the user and CA certificates...hell, I don't even know if this is the correct option for an OpenVPN connection.
OpenVPN binary has been installed. I have also install busybox and then softlinked ifconfig and route to the commands the same way CM6 has it.
I was able to get OpenVPN to work properly within CM6 without much hassle. I have found battery life and experience better for me with Virtuous ROM so I went back to it.
When I launch the connection to establish the VPN session it connects but I am not able to work within the network. I was not able to communicate even with the VPN server.
I ran a netcfg and discovered that tap0 was down. I brought it up but its routing table was empty. I filled it in and was able to communicate with the VPN server and my advertised networks. If I drop my VPN connection, tap0 goes down and the routing table is cleared.
The VPN server works. It works with my other boxes and worked with this phone under CM6.
I have vanilla linux kernel version 2.6.27. I want to apply android specific patches and convert it to android linux kernel 2.6.27. Where can a user find the patches to convert a normal vanilla kernel into android kernel?
1. I updated to stock 2.1 using the sprint update tool. 2. I followed the video tutorial to root the phone 3. then i used joey's page (http://www.joeyconway.com/sdx/custom/index.php) to install the his kernel (joeykrim-SDX-kernel v2.0.4 (includes root)).
I have done nothing else to the phone but this and removing a couple of bloatware apps (i checked the list of permitted deletions before i removed anything.) I have not installed a new recovery..at least i dont think that I did as part of one of the other operations I performed (as an aside, i am not really sure what the custom recovery is or what it is used for, so i didnt install it...i guess i need to read up more...)
So that is where I am..but i have a couple of questions.
1) i am now having issues with my wifi connection - the signal reception is very spotty in areas where i should have atleast 2 bars of reception, and the wifi often cuts out completely....Is there any know corellation between joey's kernel and this wifi issue? I have searched the forums and have found nothing that answers this.
2) Is there an easy way to get back to the stock kernel? I have read that i can get back to stock everything by using the sprint download center where I did my original 2.1 update. But is there a way to get back to just the stock kernel without wiping the phone?
What sections of kernel code are changed for optimization of performance.
Like we can change 1) the minimum free memory that android need to keep free. 2) Rate of clearing cache 3)Advanced LMK- where we can kill more than one process at at time when memory scarcity occurs. 4) Reducing logging. 5) In framework we can change the oom_adj value of important processes. 6) Implement Zram for kernel. 7) change the minimum and maximum no of process for AMS.
I want to know all the changes that can be made into kernel or framework code to optimize performance. I also want to know how can we implement swapcache for android kernel. What changes do i need to make in the code.
I currently have bekit 1ghz kernet installed, but I was interested in trying out some other kernels. Can I just install them via Rom Manager over the first kernel? Or is there some kind of uninstall process I should use first?
I am needing to make a kernel for a certain device. There aren't any source codes available for that device but there are for multiple clones out there. I am running Linux Mint Debian edition and i cant find a guide for compiling a kernel on debian.
Is there any way to emulate an android froyo with normal kernel and everything a normal android phone has? Including a market and recovery mode. I want this mainly because I feel terrified by the thought that I might brick my phone flashing a custom rom and I am a beginner so I never tried anything complicated with it. So before I try anything over my phone I want to try this on an emulated phone.
I'm working for Freescale Semiconductor on the i.MX series linux BSP. Now we have android running well on i.MX515 platform, and hope to push android kernel repo into android.git.kernel.org. Then what's the process need us to follow? How reviews will be done? And what we should provide?
We know that the ROM is installed to the /system partition. Likewise the kernel ie boot.img is installed to the /boot partition of the device. I tried hard but could not find any reference to such a /boot partition(directory) in the root of the device. I would like know whether it is hidden or disguised as something else. The script that flashes the custom kernels has the following line
Code: package_extract_file("boot.img", "/dev/block/mmcblk0p9"); (What is the block code for system and other partitions?)
Is mmcblk0p9 the /boot partition? Moreover /dev/block has no reference to boot or mmcblk0p9. So where exactly is the kernel being extracted? The boot.img comes packaged as zImage + ramdisk, In other words where are zImage and ramdisk extracted to, in the root file system and in what form? Is the ramdisk responsible for the creation of the root files system(/dev, /proc, /data. /system, /sys, /sbin etc)?
Well I am working on beagleboard-xm project, where I am supposed to upgrade the current Android version to ICS. The thing is, I have to keep the current kernel , because it is customized for some applications that run on that board. It is not me that compiled that kernel...
Is it even possible to keep the "old" kernel and upgrade to ICS? Can it be done in any way? Or a new kernel with new patches has to be installed...?
I have a small query why cant i use the stock kernel with Cynanogenmod ?What is the difference between the two and how can I make a stock kernel compatible with Cynanogen mod when building one from source
unable to flash a kernel through fastboot it's showing the device is not rooted,but in flash tool it's showing the device is rooted,even all the applications are showing root is allowed but when i'm going to flash the kernel through fastboot its showing device is not rooted...