[Q] How to make proper ip-up file for ppp0 interface. - General Questions and Answers

Hi,
I have a rooted android 2.3 tab (COBY MID 7022).
I have made a dialer scripts with pppd and for my CDMA USB modem. After dialing I get ppp0 interface is running and could able ping google.com with ip address. But when I open browser android OS showing a message box for no internet connection.
I understand I need to set something on android OS through ip-up file. But I don't have any information regarding this.
Can any body help me to write a ip-up file so that applications can find ppp0 interface running.
Thanks & regards
jags

Related

WiFi PPPoE Flash zip

I have created a flash zip for WiFI based PPPoE connectivity.
Purpose / Why is this needed?
Many of us have DSL / PPPoE based connection which is set to bridged mode. PC / Laptop connects to internet via PPPoE / DSL dialer using username and password.
While it is easy to do it on PC / laptop, the android still can not. Only option is keep PC on allowing internet sharing via PC (PC becomes android's gateway)
This is waste of electricity as we need to keep PC / laptop on.
So I have created a small zip which uses rp-pppoe (from WiFI PPPoE android app)
Requirements
Android version > 2.1 (tested for Android 4.3 / ARM only)
Kernel which supports PPP (most kernels do)
Android terminal emulater or similar
How to install?
Flash the attached zip
Restart android
Using your favourite editor (root permission needed) change USERNAME and PASSWORD in file /system/bin/wifipppoe to as provided by your internet service provider
How to use?
Start/activate WiFi on your android
Open android terminal emulator
Run the command: su -c wifipppoe #allow root access if prompted
Thats all!
How to disable PPPoE?
Simply stop/de-activate WiFi
Hope this helps!

[Q] Chroot in android qestion.

Hi, people. I'm new here!
I've suceeded to chroot into fedora 20, using busybox on android.
And now, I'm trying to run a program called blender.
I've managed to install it.
And then, I issued the command env=DISPLAY=(IP ADDRESS) blender
Where IP ADDRESS goes my ip address.
However, everytime I try to open it, it crashes showing the error following:
"Initial Window could not find the GLX extension, exit!"
Does this error occur because I use device which has mali 400 graphic card?
I have no clue...
Any help would be appeiciated!

[Q] Mac address Spoofing temporarily without rooting

Hi all!
I want to spoof mac address of my android phone without rooting it.
I have installed 'Busy Box Non Root' and 'Terminal Emulator' in my phone from the play store. Both the apps are working fine (I guess ) and I can even see my mac address in the 'Terminal Emulator' with the help of command : ip link show wlan0.
However when I am trying to set it to the desired address (mac address of my another android phone), by the command : ip link set wlan0 address xx:xx:xx:xx:xx:xx, I am getting error in my Terminal Emulator as "Operation not Permitted".
Can anyone help me with this error,please?
Please review [Guide] [Root] How To Spoof The Mac Address Of Any Android Device

(Q) Using Network Manager app with Kali Nethunter

Hi.
I need some help from a member using Network-Manager to handle their wireless wifi interfaces with Kali Nethunter.
After installing network-manager & network-manager-gnome (v1.8.2.1) did you have to change any Network Conig files to get your interfaces connected to network-manager?
How did you connect to the internet?
I cannot get the network-manager-applet enabled.
Enable network-manager is grayed out.
I've tried service network-manager start.
Clicking edit connection does not bring up any screen.
All I get is network-manager is not running from the nm-applet trey.
I understand nm-applet is disabled on boot.
After booting into kali nethunter, I plug my external interface wlan1 card (TP-Link-TL-WN722N ) to my OnePlus One Phone using otg cable.
- Start wlan1 (airmon-ng start wlan1 ) green light turns on.
- Start network manager service. Status shows “NM is running”.
Still network-manager remains disable.
Tried uninstalling/re-installing network manager.
See my 2 Screen Attachments behavior of my Network-Manager-applet.
Can go into monitor mode and perform aircrack-ng cmds with wlan1.
Atheros drivers ( AR9271ath9k, ath9k_htc) are loaded in Lib/Firmware.
But something is not working or missing.
What steps did you do after installing network manager apps?
Info:
- ROM: Lineageos 14.1 bacon Android 7.1.2 Marshmallow. Device: OnePlus One.
- Uname: Linux Nethunter 3.15. Kernel 3.4.112-lineageos-g23c699a armv71.
- Distro: Kali Linux Rolling V2017.1
- Architecture: Armhf
- CurrentDesktop: XFce V4.1,2
- Client: VNC Viewer V3.3.1 connect via localhost 127.0.0.1 to linux
-Network-Manager and Gnome v1-8-2-1 armhf
Thanks.
TC.

PostmarketOS

Hello, physical keyboard geeks!
I've added basic support for the galaxy s relay to the postmarketos project. You can now build a new kernel with a modern compiler that will boot on our sliders. Tested: Boot, usb ethernet, flashing with heimdall, nothing else.
Something like this might work to install:
apt-get install -y python3
Clone the repo and cd into it.
git clone https://gitlab.com/postmarketOS/pmbootstrap.git
cd pmbootstrap
Start the install wizard
./pmbootstrap.py init
Chose samsung-apexq for device and use the xfce4 gui. (unsure if graphics will work, but if it does it's the one you want)
./pmbootstrap.py install --android-recovery-zip --no-fde
Now export the zip file
./pmbootstrap.py export
It should give you a path to a zip you can flash with CWM or TWRP. If that doesn't work, then run install without --android-recovery-zip and try flashing with the heimdall wrapper like this:
./pmbootstrap.py flasher flash_rootfs
./pmbootstrap.py flasher flash_kernel
(Obviously, make sure you have a good usb data cable and not just a charge only cable, oh and make sure you have backups of your favorite android rom so you can go back to android).
Go forth and test! My dev phone's screen died so now it's up to YOU! File bugs in the postmarketos gitlab project issues. Complaints, insults about my mother, and general snark are welcome here. If you have a problem, I'm happy to ignore you while you figure it out, so don't be shy!
Here's a flashable zip: https://gitlab.com/5ilver/apexq/blob/master/20190329-pmos-samsung-apexq.zip
I can't test it (no working screen), but the root/boot heimdall flash version is working for me via download mode at least far enough to ssh into the phone and poke around.
Hi i managed to follow your Steps.
Thanks for that wonderfull Howto.
Installed FatToad on my regular Phone and PostmarketOS from you on my Spare t-699.
Your Display is broken?..how is that happend?
Managed to make a flashable CWM Zip and i did not go further than the PostmarketOS Screen.
ADB is not working and now after use Install via Fastboot..it stay postmarketscreen.
I let it stay the next 10 Minutes on this..maybe something usable come out
btw:
Do you come from Germany?
Maybe i can Donate you with my Spare T-699?
Many Thanks for your work..a second Post from me will come when i am little further.
And i had to laugh loud in the Moment where i saw that i can use simply the git Software Downloader for Gitlab too..and i thought i need a special Gitlab Software :good:
Thanks for teaching me this
ingoreis said:
Hi i managed to follow your Steps.
Thanks for that wonderfull Howto.
Installed FatToad on my regular Phone and PostmarketOS from you on my Spare t-699.
Your Display is broken?..how is that happend?
Managed to make a flashable CWM Zip and i did not go further than the PostmarketOS Screen.
ADB is not working and now after use Install via Fastboot..it stay postmarketscreen.
I let it stay the next 10 Minutes on this..maybe something usable come out
btw:
Do you come from Germany?
Maybe i can Donate you with my Spare T-699?
Many Thanks for your work..a second Post from me will come when i am little further.
And i had to laugh loud in the Moment where i saw that i can use simply the git Software Downloader for Gitlab too..and i thought i need a special Gitlab Software :good:
Thanks for teaching me this
Click to expand...
Click to collapse
Awesome! This is great to see! I'm in the US, but thanks anyway. Ok so the kernel booted on your phone. This is cool. Now the next steps are to get X working so we can use the screen and run programs. If the phone is connected to your computer with a usb cable, it should identify itself as a usb ethernet adapter that you can get a dhcp address from. Something like sudo dhclient -v enp0s19f2u1 and then ssh [email protected] should allow you to access the phone. The errors are in /var/log/Xorg.log.0 I think. Need to get that dumped and give it a good hard look, maybe enable some fallback display mode or something. Need to probe around in /dev/input too and see what sort of input devices are detected. This is good progress though. We're getting the phone back into a supportable state.
Not sure how my display broke. One day it was just blank when I tried to wake it, but it worked after a few tries. It got harder and harder to use with the keyboard out, and so I got another one. When I started working on this port the screen had to be held very still or it would blank out. Now, it just won't come on at all. It is possibly a bad flex cable.
silvermagnet said:
If the phone is connected to your computer with a usb cable, it should identify itself as a usb ethernet adapter that you can get a dhcp address from. Something like sudo dhclient -v enp0s19f2u1 and then ssh [email protected] should allow you to access the phone.
Click to expand...
Click to collapse
had this Error in my Linux:
Code:
[email protected]:~/Downloads$ sudo dhclient -v enp0s20f0u10
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s20f0u10/62:3d:43:73:74:09
Sending on LPF/enp0s20f0u10/62:3d:43:73:74:09
Sending on Socket/fallback
DHCPREQUEST of 172.16.42.2 on enp0s20f0u10 to 255.255.255.255 port 67 (xid=0x2be8f493)
DHCPACK of 172.16.42.2 from 172.16.42.1
RTNETLINK answers: File exists
bound to 172.16.42.2 -- renewal in 395804 seconds.
[email protected]:~/Downloads$ ssh [email protected]
ssh: connect to host 172.16.42.1 port 22: Connection refused
[email protected]:~/Downloads$
Unfortunaly Connection Refused @ Port 22
But you are right..Kernel seem to boot fine and it is a "NetworkDevice"
Phew Ameria is on the other Side of the World from here..thanks again for help to get it work.
Btw i saw an Android Device in my File Explorer from Linux but it cannot be mounted via MTP.
Edit:
I can connect but need a Password
ingoreis said:
had this Error in my Linux:
Code:
pando[email protected]:~/Downloads$ sudo dhclient -v enp0s20f0u10
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s20f0u10/62:3d:43:73:74:09
Sending on LPF/enp0s20f0u10/62:3d:43:73:74:09
Sending on Socket/fallback
DHCPREQUEST of 172.16.42.2 on enp0s20f0u10 to 255.255.255.255 port 67 (xid=0x2be8f493)
DHCPACK of 172.16.42.2 from 172.16.42.1
RTNETLINK answers: File exists
bound to 172.16.42.2 -- renewal in 395804 seconds.
[email protected]:~/Downloads$ ssh [email protected]
ssh: connect to host 172.16.42.1 port 22: Connection refused
[email protected]:~/Downloads$
Unfortunaly Connection Refused @ Port 22
But you are right..Kernel seem to boot fine and it is a "NetworkDevice"
Phew Ameria is on the other Side of the World from here..thanks again for help to get it work.
Btw i saw an Android Device in my File Explorer from Linux but it cannot be mounted via MTP.
Edit:
I can connect but need a Password
Click to expand...
Click to collapse
The password is password
silvermagnet said:
The password is password
Click to expand...
Click to collapse
Thank you tried it but did not work.
"ssh [email protected]"
gave me an error
"ssh: connect to host 172.16.42.1 port 22: Connection refused"
and
"ssh [email protected]"
ask for a Password and do not accept "password"
I am near..only this last Step to get the Important Files
Now i tried another USB Port and something is working but not working:
Code:
[ 8406.035731] rndis_host 1-9:1.0 enp0s20f0u9: unregister 'rndis_host' usb-0000:00:14.0-9, RNDIS device
[ 8406.366663] usb 1-9: new high-speed USB device number 34 using xhci_hcd
[ 8406.515928] usb 1-9: New USB device found, idVendor=18d1, idProduct=d001
[ 8406.515934] usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8406.515938] usb 1-9: Product: Android
[ 8406.515942] usb 1-9: Manufacturer: Android
[ 8406.515945] usb 1-9: SerialNumber: 0123456789ABCDEF
[ 8406.519381] rndis_host 1-9:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-9, RNDIS device, 66:93:21:86:d9:50
[ 8406.529243] rndis_host 1-9:1.0 enp0s20f0u9: renamed from usb0
[ 8406.555024] IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u9: link is not ready
[email protected]:~/Downloads$ sudo dhclient -v enp0s20f0u9
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/enp0s20f0u9/5a:14:3c:18:78:36
Sending on LPF/enp0s20f0u9/5a:14:3c:18:78:36
Sending on Socket/fallback
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 3 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 5 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 6 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 11 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 13 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 9 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 11 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 20 (xid=0x810a2043)
DHCPDISCOVER on enp0s20f0u9 to 255.255.255.255 port 67 interval 20 (xid=0x810a2043)
but do not stop that
ingoreis said:
Thank you tried it but did not work.
"ssh [email protected]"
gave me an error
"ssh: connect to host 172.16.42.1 port 22: Connection refused"
and
"ssh [email protected]"
ask for a Password and do not accept "password"
I am near..only this last Step to get the Important Files
Click to expand...
Click to collapse
172.16.42.2 is your own computer. Maybe ssh didn't successfully start on the phone. Try restarting it. Don't worry about getting the logs for me, I have a copy from mine. I just need to go through them and find the errors.
Restarting phone did not start ssh but i have an Idea:
gmtp had Errors too because i tried to vonnect with MTP
HTML:
[email protected]:~/Downloads$ gmtp
Device 0 (VID=18d1 and PID=d001) is a Meizu Pro 5 Ubuntu Phone.
Device 1 (VID=16c0 and PID=0489) is UNKNOWN in libmtp v1.1.13.
Please report this VID/PID and the device model to the libmtp development team
LIBMTP PANIC: Unable to find interface & endpoints of device
Fehler: Verbindung zu Gerät nicht möglich.
LIBMTP PANIC: Trying to dump the error stack of a NULL device!
LIBMTP PANIC: Trying to clear the error stack of a NULL device!
Device 0 (VID=18d1 and PID=d001) is a Meizu Pro 5 Ubuntu Phone.
Device 1 (VID=16c0 and PID=0489) is UNKNOWN in libmtp v1.1.13.
Please report this VID/PID and the device model to the libmtp development team
ignoring libusb_claim_interface() = -6PTP_ERROR_IO: failed to open session, trying again after resetting USB interface
LIBMTP libusb: Attempt to reset device
ignoring libusb_claim_interface() = -6LIBMTP PANIC: failed to open session on second attempt
Fehler: connection not possible.
Edit:
I have the Connection now
EditEdit:
Here is the Log that you want inside the Attachments:
EditEditEdit:
Fixed the Logfile..last Part was missing
Hey this is great! I still take out my Relay "for a spin" occasionally, so I'm thinking of testing this.
I'm guessing the .zip is flashable withTWRP, not CWM?
I don't have any dev tools and I'm running Win10 (been ages since I've had a running Linux rig), so I'm not sure how much feedback I can provide. Should I wait until the build is a little more stable?
cucumbers said:
Hey this is great! I still take out my Relay "for a spin" occasionally, so I'm thinking of testing this.
I'm guessing the .zip is flashable withTWRP, not CWM?
I don't have any dev tools and I'm running Win10 (been ages since I've had a running Linux rig), so I'm not sure how much feedback I can provide. Should I wait until the build is a little more stable?
Click to expand...
Click to collapse
It should work in either recovery, or at least the documentation I've seen so far does not specify. You shouldn't need any tools, just put the image I linked from gitlab on an sd card. Stability... well things are quite stable in their current very broken state. I ran my phone for almost a week straight, so no worries there. Getting X working is probably the next big step. It will likely be a while. The frame buffer driver doesn't seem to be giving very useful errors but I'm sure someone has bumped into the same problems on another phone, so we'll get there.
i tried little with startx xinit and others
and it seem to need xterm but xterm is not installed
(see the attached Picture)
I tried to change the Config from Display 0 to Display 1 but no success
and no Screen on the Relay for now.
And a little good Information:
Touchscreen is working.
When i touch the Display i see touched Coordinates in dmesg
Sometimes i had the Message that Xserver is already running on Display 0
but after trying some Things not more.
Starting X over ssh probably will not work since your local term is not graphical. I tried putting a default screen section in the xorg config, but that didn't make the X service work. I've read that disabling 3d accel for the msm chipset in the kernel can help so I'll try that next.
No luck with disabling MSM_KGSL, seems to have the same stream of errors followed by a segfault in the X log. I also tried including an additional package xf86-video-fbdev which had no effect either (I think it must have already been pulled in by a dependency). The msm-fb-refresher package appears in the similar looking samsung-jflte APKBUILD, so I'll try that later today.
Maybe the weston graphical environment is worth a try instead of X? Seems some other msm based phones like it.
silvermagnet said:
No luck with disabling MSM_KGSL, seems to have the same stream of errors followed by a segfault in the X log. I also tried including an additional package xf86-video-fbdev which had no effect either (I think it must have already been pulled in by a dependency). The msm-fb-refresher package appears in the similar looking samsung-jflte APKBUILD, so I'll try that later today.
Maybe the weston graphical environment is worth a try instead of X? Seems some other msm based phones like it.
Click to expand...
Click to collapse
About that i have no Knowledge but thanks that you try so much
any News?
I dropped my phone, got a dead spot in the camera, got another relay on ebay, and here we are with a perfectly good dev phone with a good screen. So I can hack on the display now. X11 is broken, but weston works fine. No update on last time, just select weston instead of xfce4 in pmbootstrap init. I'll get hackin on the 'red' problem, which from what I gather is pretty common and easily patchable.
https://i.imgur.com/vy18cjJ.jpg
Wow Great News,thank you for still working on it.
When you send me your Paypal Adress via PM then i want to donate little Bit for you because you bought another T-699 over Ebay for us all.
This Picture look good and this "Red Error" is little bit funny and
i am glad to see Weston is working.
Touchscreen worked good?
The touch screen worked great. The keyboard even works too! Some small gotchas, like numeric symbols being selected with shift instead of alt, but it works!
https://i.imgur.com/lE3x4OK.jpg

Categories

Resources