yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] JesusFreke:
BTW, I just tried and this *does* work for windows. Once you run the pand command on the phone, then go back to your computer and right click on the bluetooth icon in the system tray and select "Join a Personal Area Network". Then click "Refresh" in the dialog that pops up, then select the G1 and click connect.

Now you should have a "Bluetooth Network Connection", and you have to set it up with a static ip like Disconnect's post describes.
[G1 Android Development] hetaldp:
Wow the Real Hacking is started !

Rock and Roll!
[G1 Android Development] Zappza:
That's pretty nice :)

Will wait for the DHCP version though, and I am still hoping for a USB way to do it, since Server 2008 and Bluetooth is a nightmare >.<
[G1 Android Development] ultimind:
I keep getting read-only errors when copying into /system/xbin. I've remounted /system as read-write too. (RC30 v1.2)

And if I try to execute pand from /sdcard, I get Permission Denied errors.

Any thoughts, anyone?
[G1 Android Development] JesusFreke:
The /system/xbin folder is a mounted cramfs image. So is /system/modules. Cramfs is a readonly file system.

I had to use cramfs to compress those two folders because it wouldn't all fit in /system otherwise.

If you really want to add/change something, unmount the folder, and you'll see an xbin.cramfs file in the folder instead. Download that to your computer and use the tools provided by the cramfs project to extract and repack it. Keep in mind the space limitations in /system. There isn't much space left at all
[G1 Android Development] jbruer:
When I run this, the network interface bnep0 isn't created. Here's what happened:

I modified the tether script over in the iptables thread to load the bnep.ko module and run pand, etc.

When I ran my new script, I got an error because I forgot to set the execute permissions on pand. So, I changed the permissions.

Before I went to run the script again, I wanted to get back to my original state, so I tried to 'rmmod bnep'. That failed. I ran 'ps', and saw this process: kbnepd bnep0. I tried to kill it, which didn't work. I turned off BT from the UI, and the process ended. Then I did an rmmod bnep, and it worked.

I re-enabled BT from the UI, and went to run my script again. This time I got a new error and discovered it came from ifconfig. Sure enough, if i run 'busybox ifconfig -a' there is no interface named bnep0. When I did a 'ps' there was no longer this process called kbnepd bnep0.

I have rebooted the phone several times, recopied the module, and even upgraded to JF's v1.2 ROM (from v1.1). Still, whenever I do an 'insmod pathtomodule/bnep.ko', no network interface is created (there are no errors that output to the screen either and 'rmmod bnep' works as well with no errors).

Any ideas?

P.S. In the "Wireless controls" UI, when you tap the Bluetooth checkbox, does the text below remain "Select to turn on Bluetooth" when BT is enabled?
[G1 Android Development] jbruer:
Doh... the network interface isn't created until pand gets an incoming connection. pand has an option to run a script when the interface comes up, so I'll try to use that to run the rest of my setup script.
[G1 Android Development] parrothd:
FYI..

I played around with this setup today and the adhoc-wifi tethering is much easier to setup and a lot faster.

Tethering via bluetooth I was only seeing about 70Kb/s, while Tethering via wifi I'm seeing 300+Kb/s.

Not sure if this is a bluetooth issue or what, but getting the bluetooth connection up and running is a pain in the ass compared to adhoc wifi.

Like others have stated, you have to start the pand service(also make sure in bluetooth settings the g1 is discoverable, only lasts 120 seconds) once the connection is established you can complete the other setups...
[G1 Android Development] parrothd:
Hey, thanks for the tip about the calling the script. The connection speed sucks, but at least the setup is easier.. :) You still need to turn on bluetooth, and make it discoverable so windows can see the NAP and connect to it..

Here's my setup: I use dsnmasq for DHCP...

(blue.sh)

#!/system/bin/sh

insmod /data/local/bin/bnep.ko

/data/local/bin/pand --listen --role NAP --devup /data/local/bin/blue2.sh

(blue2.sh)

#!/system/bin/sh

ifconfig bnep0 192.168.2.1 netmask 255.255.255.0

ifconfig bnep0 up

/data/local/bin/iptables -F

/data/local/bin/iptables -I INPUT -s 192.168.2.254 -j DROP

/data/local/bin/iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT

/data/local/bin/iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT

/data/local/bin/iptables -I FORWARD -s 192.168.2.254 -j DROP

/data/local/bin/iptables -P FORWARD DROP

/data/local/bin/iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

/data/local/bin/dnsmasq -x /data/local/bin/dnsmasq.pid
[G1 Android Development] Disconn3ct:
Can anyone else reproduce this? (FYI it will share a wifi link but unfortunately, I'm in EDGE and my wifi is WPA2 .. so my wifi connectivity only lasts 5-10 seconds at a time, and edge is.. well.. edge..)
[G1 Android Development] jbruer:
I can confirm this. I'm in an EDGE area this weekend, so I tested by sharing a Wifi connection. Speedtest on the phone gave 4 Mbps down. Sharing over BT gave 89 kbps down. Also, when I ping the phone while connected to the PAN, I get latency around 30-50ms. Latency to google.com using the shared Wifi was around 250ms.

This may not be related, but if you look in the git for the Dream platform, init.trout.rc has this section: (http://android.git.kernel.org/?p=platform/vendor/htc/dream.git;a=blob;f=init.trout.rc;h=de41a72986890868b07d34c347245396be9f8f90;hb=HEAD)

64 service hciattach /system/bin/hciattach \
65 -n -s 115200 /dev/ttyMSM0 texas 115200 flow
66 user bluetooth
67 group bluetooth net_bt_admin
68 disabled

I know that hciattach is the BT service, and it appears that its creating a 115k baud serial port. The module we load emulates an ethernet adapter (bnep0), but I'm not sure if this serial device has any relation. Anybody around here know what the deal with this is?
[G1 Android Development] JesusFreke:
Hmm. that's a good point. I'll play around with it a bit today and see if it's related
[G1 Android Development] Disconn3ct:
Just a quick update on this, google is working on a faster bluetooth driver, which will (automagically) make this faster too.
[G1 Android Development] hmepas:
WOW! Nice job. Could you please put your compiled dnsmasq somethere?
[G1 Android Development] hmepas:
Strange thing. I setuped everything. Seeing iface on my phone via busybox ifconfig. Phone could ping himself via it's bluetooth IP.

Also PC could itself. Ifaces up and active on both sides.

But on PC I am having 0 recieved packets thru virtual bluetooth nic. While on phone i am having both RX and TX. And funny thing what RX on phone is exactly equal to TX on PC. So actually connection working but only one way...

WTF is what? Haven't even idea which way to look into this problem. Anyone have any idea about that?
[G1 Android Development] parrothd:
i didn't compile it, but it's available in the iptables thread, if you can't find it I'll post it, having said that, you can also use udhcpd from busybox as well...
[G1 Android Development] hmepas:
Oh thanks. I found it easily.

Btw could explain those two lines in your script:

/data/local/bin/iptables -I INPUT -s 192.168.2.254 -j DROP
/data/local/bin/iptables -I FORWARD -s 192.168.2.254 -j DROP

any secret here? for me those lines is complete useless. Or it's just your local issue which you didn't clean up before publishing script?
[G1 Android Development] parrothd:
They're not needed, but you may want them.

dnsmasq and probably busybox udhcp will only start if you have at least 1 ip available for DHCP assignment(as far as I can tell).

This allows anyone to connect to your G1 mobile when in ad-hoc wifi mode and get access to the internet. Probably something you don't want to allow, with the limited speed and caps.

I use dnsmasq to staticly assign my laptop 192.168.2.30(cux I'm lazy and don't want to manually assign my IP), while assigning everyone else that connects to my G1 IP 192.168.2.254 which I then drop all access via iptables, so they have no access.

If you can figure out how to get dnsmasq or busybox udhcp to provide only static IP assignments then this is not needed...

My dnsmasq.conf changes..

# Uncomment this to enable the integrated DHCP server, you need

# to supply the range of addresses available for lease and optionally

# a lease time. If you have more than one network, you will need to

# repeat this for each network on which you want to supply DHCP

# service.

dhcp-range=192.168.2.254,192.168.2.254,30m

# Always allocate the host with ethernet address 11:22:33:44:55:66

# The IP address 192.168.0.60

dhcp-host=00:13:ce:b7:a8:0e,192.168.2.30
[G1 Android Development] parrothd:
I found that if you set the lease time to 0, dnsmasq will not assign an IP address unless it's statically assigned. You still should setup some filtering to keep people of your network, but most users won't bother trying to figuring that out.

# Uncomment this to enable the integrated DHCP server, you need

# to supply the range of addresses available for lease and optionally

# a lease time. If you have more than one network, you will need to

# repeat this for each network on which you want to supply DHCP

# service.

dhcp-range=192.168.2.254,192.168.2.254,0
[G1 Android Development] jimminyjosh:
Helper scripts for bluetooth tethering on G1 from Ubuntu

In case it's helpful to anyone, I got bluetooth tethering to work from my Ubuntu box to my G1. I wrote a few helper scripts that hopefully make the process easier on both ends. I posted the info at: http://joshuaredstone.blogspot.com/2009/01/bluetooth-tethering-from-ubuntu-to.html. I know this is over bluetooth rather than wifi, but hopefully some of the bits will be useful to others here.

Cheers,

Josh
[G1 Android Development] SRKdrift:
What about one for wifi
[G1 Android Development] parrothd:
Are you using the updated bluetooth driver? If not, the connection is limited to 80KB, so the connection is really slooOoooOOw.....
[G1 Android Development] netlag:
any rumors as to when the new bluetooth driver is supposed to be released?

...Guess it should be soon with the break concluded and other hardware being released?
[G1 Android Development] jimminyjosh:
Wrapping the scripts (whether wifi or bluetooth) in an app

I didn't fiddle with the driver, so I'm probably using the old one. 80KB, though slow, is better than no internet connection. I'm looking forward to the faster driver whenever that comes out.

Regarding wifi version of the script - seems like the wifi approach relies on a bit more iptables kungfu to prevent moochers, and I haven't had the time to figure that stuff out.

On another note, it'd be great to put together an app that calls the scripts so that tethering could be controlled from the touch screen. Does anyone know how hard it is to make an app that calls shell scripts that do 'su' ?
[G1 Android Development] parrothd:
Just change the dhcp reservation range to 1 ip and asign yourself a static of 192.168.1.30

dnsmasq.conf:

dhcp-range=192.168.2.254,192.168.2.254,0

# Always allocate the host with ethernet addres 11:22:33:44:55:66

# The IP address 192.168.0.60

dhcp-host=00:14:a4:d6:a9:77,192.168.2.31

dhcp-host=00:13:ce:b7:a8:0e,192.168.2.30

and use this script:

# vi tether

ifconfig tiwlan0 up

/data/local/bin/iptables -F

/data/local/bin/iptables -I INPUT -s 192.168.2.254 -j DROP

/data/local/bin/iptables -I FORWARD -m state --state ESTABLISHED,RELATED -j ACCE

/data/local/bin/iptables -I FORWARD -s 192.168.2.0/24 -j ACCEPT

/data/local/bin/iptables -I FORWARD -s 192.168.2.254 -j DROP

/data/local/bin/iptables -P FORWARD DROP

/data/local/bin/iptables -t nat -I POSTROUTING -s 192.168.2.0/24 -j MASQUERADE

echo 1 > /proc/sys/net/ipv4/ip_forward

/data/local/bin/dnsmasq -x /data/local/dnsmasq.pid

;;

'stop')

rmmod wlan

kill -9 `cat /data/local/dnsmasq.pid`

/data/local/bin/iptables -F

echo 0 > /proc/sys/net/ipv4/ip_forward

;;

*)

echo "Usage: $0 [start|stop]"

;;

esac

This will assign anyone unknown the ip 192.168.2.254 and drop their traffic.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Features over Stock

FM Radio, File-Based Encryption (which allows power-off Alarm to actually work and no annoying PIN prompt half-ways through boot), QTI Bluetooth stack

KNOWN BUGS

ViLTE does not work

Touch sometimes doesn't work in Lineage Recovery. The workaround is to use the volume buttons to move around the menu and power to select or to reboot to recovery.

SafetyNet does not pass (Unfortunately, this is not possible as our SoC has hardware attestation... the workaround is to use unsupported mods like Magisk which tbh I haven't tried myself as I don't root my devices, but other users said that plus the SafetyNet Magisk mod works)

No Widevine L1 after bootloader unlock. Unfortunately Asus wipes DRM keys when bootloader unlock is performed. This happens on both official and unofficial bootloader unlock...

Frequently Asked Questions

Is there a different way to unlock the bootloader than the Asus official method? You can try the unofficial bootloader unlock here
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] JuanTamqd21:
will try later
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] JuanTamqd21:
Screenshots here

seems working fine

Thanks for the new build
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo, LineageOS 20 official for Z01R is up!
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] DarkAlpha.Sete:
Is this ROM stable enough for daily driving or are there any notable issues? (I would be using TWRP, no root and don't need VoLTE)
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@DarkAlpha.Sete I wouldn't be official if it wasn't stable 🙈

Known bugs are in the second post
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] loopstudio007:
MindTheGapps-13.0.0-arm64 is no function now . wait for the fix​
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] loopstudio007:
zenfone 5z adb driver for windows 11 . link = https://adb.clockworkmod.com/
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @loopstudio007 , the current version is MindTheGapps-13.0.0-arm64-20221025_100653 and it does work. Please make sure you follow the installation instructions and you can also try to redownload it just incase your download is corrupt.

That clockworkmod ADB driver is ancient. I'd recommend downloading the Google driver from here https://developer.android.com/studio/run/win-usb
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] loopstudio007:
ok. thank you.i'll try later
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] schlug:
I have installed the rom and it worked so far perfect, also mobile data in my country. Now I am in a foreign country in EU and mobile data roaming is not working. I have tried different apn settings but no success.

Can somebody help?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Sometimes.I.Brick.Phones:
Appreciate all your hard work @ThE_MarD , it seems I'm having some difficulty installing.

Bootloader unlocked, I've had issues with fastboot, so I used EDL to replace the boot.img with TWRP from the link you've provided. Now I can get into TWRP and flash the rom. I just wind up in a boot loop.

- Unlock the bootloader and install TWRP. [Done via EDL]

- Download LineageOS [Got your latest unofficial, rather than the nightlies]

- Boot into TWRP [done]

- Copy the downloaded zip files to the internal SD card. [Done, incl MindTheGApps, TWRP Zip and of course your rom.]

- Perform a backup of your current ROM. (Optional) [Ignored]

- NOTE! If you're coming from stock ROM? You MUST format data. Wipe > "Format Data" button > type "yes" > keyboard checkbox [I have done this each time as coming from stock rom WW_ZS620KL_100.10.107.123]

- RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe System, Cache and Data) [Done]

- Flash LineageOS zip. [Done, current slot A, flashed slot B]

- Flash TWRP installer zip. [Done via the "add more Zips" feature]

- Reboot to TWRP. [Rebooting, changes to current slot B]

- Optional: Install the Google Apps add-on package. [Installed MindTheGApps]

- Reboot to system. [I hit reboot button, and then tap system at the top, it says current slot B]

Boot loop... Comes up with integrity warning, "Powered by Android", loop.

Any advice? I've not done an A/B phone before, and previously I'd been having issues where fastboot wouldn't detect on my PC (hence the EDL route). Worst case, I can take it back to stock-stock via EDL, but I've come this far, I'd really really really really like to get the upgrade to LineageOS if I could.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @Sometimes.I.Brick.Phones , hmm, well just in case the issue is TWRP please try with Lineage Recovery

I would recommend using the latest official nightly as my last test build is a bit old.

That's quite odd though that you need to use EDL to flash recovery, did something happen to your device?

You can try QPST and then flash updated ZenUI stock ROM and then switch to Lineage Recovery and flash?

A/B devices are a bit of a pain, but I did make things easier by including the correct device firmware which is why we don't need the copy-partitions step like some other A/B devices need
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] Sometimes.I.Brick.Phones:
Thanks for the quick response!

I'm grabbing the latest nightly, AND IT WORKED! As for steps, went TWRP, flash LineageOS Nightly, flash TWRP, rebooted to system. Checked it's all working, managed to get GApps on, next step is working out Magisk!

RE: Fastboot, I'm largely using QMSCT (link to thread) to replace to stock rom with modified TWRP boot.img. When I run fastboot mode I get a "device descriptor request failed" across multiple PCs (yet MTP and ADB detect fine, thread). It's been a bit of a nightmare for me I'm afraid, but thankful for the community for getting me unbricked.

I do very much appreciate how you've built it out, just thought I'd be verbose in calling out slots!
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@Sometimes.I.Brick.Phones glad it all worked out! Enjoy! (y)
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] raix1415:
I have the same issue with internet on mobile data not working in EU roaming only in my country. I found this issue raised for another device here - https://gitlab.com/LineageOS/issues/android/-/issues/5883. However, I have no issue with sms messages in roaming as described there, only with mobile data internet in roaming.

@schlug, would you be able to submit a new bug report on gitlab for our Asus (Z01R) device too, please? I would do it myself but I am not using the official build...

@devs, thank you for bringing LineageOS 20 to Asus Zenfone 5z. Subjectively, it seems to run even better than LOS 19 did :).
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] schlug:
I have also tried the ArrowOS Android 13, which I liked even more than LineageOS, and I had the same issue with mobile data not working in EU roaming. I even changed to the sim card of the phone of my wife but with no success. Because mobile data roaming is a must have, I reluctantly turned back to ASUS stock-rom (Android 10).
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
Heyyo @raix1415 @schlug I would need logcat to try and see what might be causing the data roaming issue
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] schlug:
I completely reinstalled LOS and also received a new SIM card from my provider. I'm currently spending 2 days in a foreign country in the EU. Unfortunately the data roaming issue persists. An interesting observation is that under ASUS stock rom, when connecting the smartphone to the car, the name of the provider is displayed in the car, but under LOS, it shows unknown network. In addition, under roaming conditions my phone number is not transmitted for outgoing calls, they appear like an anonymous call. I assume that the provider data of the SIM card are not transferred correctly under LOS. I

Can you tell me how to create a logcat and how to send it to you?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@schlug

How to capture logs | LineageOS Wiki

wiki.lineageos.org
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] schlug:
I don't have a notebook with me. Is there any possibility to generate a logcat only with the smartphone?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@schlug you would need to root with something like Magisk and then an app like catlog could then pull the logs
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] schlug:
I'm sorry but I'm a noob. I didn't manage to create a logcat. I'm back in my home country now.
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] raix1415:
Hi, I had a short trip abroad again. I believe I have a logcat from the time interval I tried the data roaming issue. @ThE_MarD, could you let me know how to send it to you, pls?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] MAHEDI A L I:
Lineage 21 Release date?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] ThE_MarD:
@raix1415 you can either upload and share a link via GDrive and PM it to me or any other filesharing site is fine too

@MAHEDI A L I right now LOS 21 is still alpha, so I'm waiting for it to be easier to build as it currently requires a lot of repopicks. I'm currently trying to focus on Motorola Edge 40 Pro to try and get LOS 20 official on it
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] germanloco:
Hi! i will try to install Lineage 20 on my 5z, but when i go to download files, there is no "recovery.img" file, is normal?
[Asus Zenfone 5Z  ROMs, Kernels, Recoveries, & Othe] germanloco:
SOLVED AND RUNNING LINEAGE 20
[Xiaomi Poco X3 Pro] mahir555:
Hi. Am on Miui 13. 0 . 5 . 0 poco x3pro global stock rom.

When i load dsu loader it downloads the required AOSP rom then request restart , but it boots to miui not to android 13 !

Any solution ? Thanks
[Android Head-Units] Bill Carson:
hi Wissam.pcld, I have a TS10 head unit similar to yours and I have your identical problem with the touch screen going crazy, watching your video it seems to see my screen, I tried to format and reinstall an old firmware but I failed to solve ... did you find any solution?
[Android Head-Units] ingelectronico:
I have a similar issue with a similar head unit. It's random and intermittent, working OK most of the time, but every once and then goes crazy like that. Have you been able to solve it? Thanks for any advice.

Just as reference, I'm based in Argentina and the Android head unit is branded "Wis Huan", probably a chinese whitebrand.
[Google Pixel 7 Pro] Dfresh2:
I'm trying to figure out when I'm connected to Android Auto on my pixel 7 pro why the animation doesn't come up on my phone. it happened towards the end of my s22 ultra as well. I used to be able to receive a call or make a call out and it shows the animation on my phone but it no longer does that. I used to be able to change it from the car to my handset but I'm not able to do that either. Like tonight I was out of my car and my phone rang and I could hear it on my phone but I could not answer my phone at all because I was connected to Bluetooth and Android Auto.