seanhold3n / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Acer Liquid - Development & Testing #289

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Let's add support for the Acer Liquid!

Looks like the device comes with a broadcom-wifi-chipset - so, the
iwconfig-method might work to bring the wifi-interface into ad-hoc mode.

Original issue reported on code.google.com by harald....@gmail.com on 18 Mar 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Wifi kernel-module is located at:
/system/etc/wifi/dhd.ko

Parameters for insmod are:
firmware_path=/etc/wifi/BCM4325.bin nvram_path=/etc/wifi/nvram.txt

Interface-name of wifi:
eth0

Original comment by harald....@gmail.com on 18 Mar 2010 at 6:45

GoogleCodeExporter commented 9 years ago
I'm looking for testers who own a rooted acer liquid - netfilter (see FAQ) 
needs to
be enabled! Will be ready for a test-version today or tomorrow.

Original comment by harald....@gmail.com on 18 Mar 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Issue 250 has been merged into this issue.

Original comment by harald....@gmail.com on 23 Mar 2010 at 11:13

GoogleCodeExporter commented 9 years ago
Ok ... so we have our first test-app available for download. We need testers!
Download it form here:
http://android-wifi-tether.googlecode.com/files/wireless_tether_2_0-liquid-test1
.apk

Original comment by harald....@gmail.com on 23 Mar 2010 at 11:32

GoogleCodeExporter commented 9 years ago
hi, harald.mue:

may i join you?
i'm a liquid user living in taiwan.
ive already rooted my phone.
i want to set my liquid works as a 3G wireless AP, but i didn't find the way to 
do 
that.
i used an app, aNetShare v2.30, before.
and i tried to fix some settings on my phone as the information i found on the 
internet, but i didn't find the file ,"tiwlan.ini".
is that because the different wireless chip used in liquid?

i installed the app you post above.
but, when i start it, it shows: "No Accesss Control -- your kernel does not 
have all 
necessary features for the control feature for this app." and shutdown soon.
do i need to change any setting?

i wish this information can do some for you (and me).
thank you for your tuning the tether to support liquid.

-chen

Original comment by isahaya....@gmail.com on 24 Mar 2010 at 1:11

GoogleCodeExporter commented 9 years ago
harald.mue:

sorry that i forgot to tell you.
my rom version is 1.6 donut,
and the link below is the archive containing the whole folder of my 
liquid:\system\etc\wifi\
http://www.badongo.com/file/21468270

i think this will help you.

if you need any other files, please tell me, thanks.

-chen

Original comment by isahaya....@gmail.com on 24 Mar 2010 at 2:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Do you think it is safe to install N1 Netfilter?

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 8:28

GoogleCodeExporter commented 9 years ago
Sorry, forgot to mention that my Liquid is with LCR, beta 2.1 Eclair, rooted.

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 8:29

GoogleCodeExporter commented 9 years ago
@mirox3m: Don't install kernel which were built for other devices!

Original comment by harald....@gmail.com on 24 Mar 2010 at 8:46

GoogleCodeExporter commented 9 years ago
For those people who have installed above mentioned test-version - please do:

1) Try to start tethering via GUI! Press the green icon and check "Show log" 
for errors.

2) If it fails connect to your device using adb and try to start it from 
command-line:

adb shell
cd /data/data/android.tether/bin
./tether start 1

This will generate more output for debug - please report what you got here.

Thanks.

Original comment by harald....@gmail.com on 24 Mar 2010 at 8:49

GoogleCodeExporter commented 9 years ago
@isahaya.tsubaki: have you already tried this apk already?
http://android-wifi-tether.googlecode.com/files/wireless_tether_2_0-liquid-test1
.apk

Please do what I've described in comment #11 and post the result.

Thanks.

Original comment by harald....@gmail.com on 24 Mar 2010 at 8:52

GoogleCodeExporter commented 9 years ago
Result:
./tether: permission denied

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 9:09

Attachments:

GoogleCodeExporter commented 9 years ago
Oh ... this looks like something (maybe you hint "deny" when the superuser-app 
popped
up) was blocking su-requests when installing the app. What you could do ...

adb shell
cd /data/data/android.tether/bin
chmod 0755 *

Then try to start:
./tether start 1

OR ... try to uninstall and reinstall.

Original comment by harald....@gmail.com on 24 Mar 2010 at 9:32

GoogleCodeExporter commented 9 years ago
Unfortunately, it does not ask for SU permission, it just FCs at start.
I have reinstalled the app and done what you proposed. This is the result: 

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 9:44

Attachments:

GoogleCodeExporter commented 9 years ago
Hello, 

I've had the exact same result as mirox3m.

Original comment by nuno.fe...@gmail.com on 24 Mar 2010 at 10:10

GoogleCodeExporter commented 9 years ago
Please check, if all needed directories/files were installed.

On my device it looks like this:

# cd /data/data/android.tether
# ls -l
drwx------    1 10034    10034        2048 Mar 24 10:17 bin
drwxr-xr-x    1 10034    10034        2048 Mar 24 10:18 conf
drwxrwx--x    1 10034    10034        2048 Mar 24 10:17 files
drwxr-xr-x    1 1000     1000         2048 Mar 24 10:17 lib
drwx------    1 10034    10034        2048 Mar 24 10:17 library
drwxrwx--x    1 10034    10034        2048 Mar 24 10:17 shared_prefs
drwx------    1 10034    10034        2048 Mar 24 10:18 var
# ls -l bin/
-rwxr-xr-x    1 10034    10034          52 Mar 24 10:17 blue-down.sh
-rwxr-xr-x    1 10034    10034         336 Mar 24 10:18 blue-up.sh
-rwxr-xr-x    1 10034    10034      104976 Mar 24 10:17 dnsmasq
-rwxr-xr-x    1 10034    10034      109020 Mar 24 10:17 iptables
-rwxr-xr-x    1 10034    10034       31160 Mar 24 10:17 iwconfig
-rwxr-xr-x    1 10034    10034       19784 Mar 24 10:17 pand
-rwxr-xr-x    1 10034    10034       30664 Mar 24 10:17 tether
# ls -l conf/
-rw-r--r--    1 10034    10034         195 Mar 24 10:18 dnsmasq.conf
-rw-------    1 10034    10034          52 Mar 24 10:18 resolv.conf
-rw-r--r--    1 10034    10034         175 Mar 24 10:18 tether.conf
-rw-r--r--    1 10034    10034       14290 Mar 24 10:17 tether.edify
-rw-r--r--    1 10034    10034        3866 Mar 24 10:18 tiwlan.ini

And ... (in the app) press [menu], select "Setup", press [menu], select 
"(Re)-Install
binaries/config". Type "adb logcat" in the command prompt afterwards and post 
it here.

Original comment by harald....@gmail.com on 24 Mar 2010 at 10:30

GoogleCodeExporter commented 9 years ago
By the way ... it would be helpful if you post the name of the custom rom you 
are
using. Thanks.

Original comment by harald....@gmail.com on 24 Mar 2010 at 11:28

GoogleCodeExporter commented 9 years ago
"... (in the app) press [menu], select "Setup", press [menu], select 
"(Re)-Install
binaries/config". "
Just Force closes!

There is nothing in conf/

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 11:32

Attachments:

GoogleCodeExporter commented 9 years ago
I am using Liquid Community ROM 1.2.2
http://code.google.com/p/acer-liquid-community-rom-bugtracker/

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 11:34

GoogleCodeExporter commented 9 years ago
Oh ... that's weird. Could you please start "adb logcat" on your pc.
And then do "... (in the app) press [menu], select "Setup", press [menu], select
"(Re)-Install binaries/config". 

If there is a force-close you should see an exception.
I bet it's failing in line #636 here:
http://code.google.com/p/android-wifi-tether/source/browse/trunk/src/android/tet
her/TetherApplication.java

Original comment by harald....@gmail.com on 24 Mar 2010 at 11:45

GoogleCodeExporter commented 9 years ago
And ... could you please check where the chmod-binary is located and if it 
points to
busy- or toolbox?

adb shell
# which chmod
/system/bin/chmod
# ls -l /system/bin/chmod
lrwxrwxrwx    1 0        0               7 Mar  2 21:57 /system/bin/chmod -> 
toolbox

Original comment by harald....@gmail.com on 24 Mar 2010 at 11:55

GoogleCodeExporter commented 9 years ago
May be we should wait until official LiquidE ROM is released. This one is based 
on a 
leaked Beta ROM.

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, the problem is that the chmod-binary is not accessibly for the app. This is 
the
first time I see a rom which has this problem! You could try the following:

adb remount
adb shell
# cd /system/bin
# ln -s toolbox chmod
(this only works if toolbox exists ... if not, try with busybox "ln -s
/system/xbin/chmod chmod")

Then uninstall and reinstall the app.

Original comment by harald....@gmail.com on 24 Mar 2010 at 12:16

GoogleCodeExporter commented 9 years ago

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 12:30

Attachments:

GoogleCodeExporter commented 9 years ago
And? Did that help?

Original comment by harald....@gmail.com on 24 Mar 2010 at 1:59

GoogleCodeExporter commented 9 years ago
Unfortunately not. Just showed where the chmod is. App is still FCing and is 
not asking 
for SU permission.

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 2:13

GoogleCodeExporter commented 9 years ago
Maybe a shared-library can't be loaded. Could you please check if the file ...

adb shell
# ls /data/data/android.tether/library/*
/data/data/android.tether/library/libNativeTask.so

exits?

If yes, start logcat so that it writes to a file ("adb logcat > tehter.log") 
and do
that reinstall binary/config-stuff.

Original comment by harald....@gmail.com on 24 Mar 2010 at 2:44

GoogleCodeExporter commented 9 years ago
And ... of course. Upload the logcat-file here.

Original comment by harald....@gmail.com on 24 Mar 2010 at 2:49

GoogleCodeExporter commented 9 years ago
The file libNativeTask.so exists. Unfortunately, I don't know where the logcat 
file is, 
so that I can upload it. I attach it as screenshots: 

Original comment by mirox3m@gmail.com on 24 Mar 2010 at 3:07

Attachments:

GoogleCodeExporter commented 9 years ago
To be honest I don't know why it fails loading that native-library. We don't 
use the
"normal strategy" for loading such libraries which makes it easier to include 
our app
in roms. I will do some rewrite this evening and upload a new test-app which
hopefully solves this issue.

Thanks for all your help.

Original comment by harald....@gmail.com on 24 Mar 2010 at 3:13

GoogleCodeExporter commented 9 years ago
Ok, here is a new test-version. This hopefully solves that annoying 
library-loading
problem.
http://android-wifi-tether.googlecode.com/files/wireless_tether_2_0-liquid-test2
.apk

By the way ... is someone using a custom rom based on android 1.6?

Original comment by harald....@gmail.com on 25 Mar 2010 at 12:06

GoogleCodeExporter commented 9 years ago
harald.mue:

thanks for the new test-version.
i tried it, and got the same result as  mirox3m got at comment 13, 15 and 19.
the conf folder is not installed on phone with this version too.
while i start the test1.apk and the test2.apk, i got no popup menu to ask me to 
use 
the root permission or not.
and the app force closed soon.

i'm using the factory rom as acer_liquid_2.000.15_aap_fet.
its based on android 1.6.

i don't have a use cable now, so i do this steps by using terminal emulator on 
my 
liquid.

the file chmod in the system/bin folder points to the toolbox correctly,
and there is toolbox in the same folder.

i don't know how to use the loqcat, but the app still FC with this version.

Original comment by isahaya....@gmail.com on 25 Mar 2010 at 1:27

GoogleCodeExporter commented 9 years ago
I tested the new version and there is no improvement. Same as  isahaya.tsubaki. 

Concerning version 1.6, I think it will be waste of time to develop an app for 
it. Acer 
LiquidE (same but with 2.1) will be officially available in April. Official 2.1 
update 
for old Liquids is promised for June.

Original comment by mirox3m@gmail.com on 25 Mar 2010 at 7:13

GoogleCodeExporter commented 9 years ago
I would like to partecipate at the test.

Currently i have a rooted 1.6 firmware but I am planning to switch to LCR 1.2.x
http://code.google.com/p/acer-liquid-community-rom-bugtracker/ in these days.

what i have to do?

Original comment by casa...@gmail.com on 25 Mar 2010 at 7:47

GoogleCodeExporter commented 9 years ago
I would like to partecipate at the test.

Currently i have a rooted 1.6 firmware but I am planning to switch to LCR 1.2.x
http://code.google.com/p/acer-liquid-community-rom-bugtracker/ in these days.

what i have to do?

Original comment by casa...@gmail.com on 25 Mar 2010 at 7:47

GoogleCodeExporter commented 9 years ago
It's really weird. Loading that native-library does work on nearly every other 
device
(all HTC device, Samsung Galaxy, Motorola Droid, NexusOne, ...) but not on the 
Liquid?!?

Anyways, I will rewrite the whole thing - and replace that native-lib with an 
pure
java implementation. This takes a day or two ...

Original comment by harald....@gmail.com on 25 Mar 2010 at 10:04

GoogleCodeExporter commented 9 years ago
To isahaya.tsubaki in Comment 33: 

To capture logcat: 

1. In Better Terminal Emulator Pro (or a terminal program), at the command 
prompt I
enter "su" to be superuser / root. 
2. Then type in: logcat > logcat.txt 
3. Press Home. 

The leaves the logcat writing to logcat.txt in the background. It will keep on
writing until you kill it via a task manager. The file can get very large if 
you forget. 

So, ideally, you want to do this immediately before starting the tether-wifi
app...and kill it as soon as possible after the experiment. Then just go get 
the text
file. By default it should be in /sdcard. 

Original comment by truthsee...@gmail.com on 25 Mar 2010 at 10:04

GoogleCodeExporter commented 9 years ago
I'll join these experiments tomorrow (Friday here then). I can run either rooted
stock Android v1.6 or rooted LiquidE Eclair ROM. Or both. What's the priority? 

Also note that Acer provide a USB-tethering app with the Acer Liquid. But it is
Windows-only....so not much use to me as I mainly use linux. 

Original comment by truthsee...@gmail.com on 25 Mar 2010 at 10:08

GoogleCodeExporter commented 9 years ago
After accepting SU (#) logcat > logcat.txt returns "cannot create logcat.txt: 
read-only 
file system".

Original comment by mirox3m@gmail.com on 25 Mar 2010 at 10:43

GoogleCodeExporter commented 9 years ago
@mirox3m: try it with: logcat > /sdcard/logcat.txt ... this writes the file to 
your
sdcard.

Original comment by harald....@gmail.com on 25 Mar 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by mirox3m@gmail.com on 25 Mar 2010 at 1:46

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
here is mine.
wish this could help you

Original comment by isahaya....@gmail.com on 25 Mar 2010 at 2:36

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, here is the version which does not use that native-lib anymore (it's an pure
java-implementation now).
http://code.google.com/p/android-wifi-tether/downloads/detail?name=wireless_teth
er_2_0-liquid-test3.apk

Please try and provide logcats like described above.
Thanks.

Original comment by harald....@gmail.com on 25 Mar 2010 at 2:49

GoogleCodeExporter commented 9 years ago
Now it seems to "work". It asks for netfilter. Does not FC and loads configs. 
I used the aLogcat app from Android Market. It is easier.

Original comment by mirox3m@gmail.com on 25 Mar 2010 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Forgot to note that it now asks for SU permission.

Original comment by mirox3m@gmail.com on 25 Mar 2010 at 3:15

GoogleCodeExporter commented 9 years ago
Ok, good. Now what happens when starting via GUI? Press "menu" and select "Show 
log"
after you have started.

If you try to start via command-line it will generate more debug-output (it has 
to be
started via the gui first, because an config needs to be created).

So ... please do:
adb shell
cd /data/data/android.tether/bin
./tether start 1

Thanks.

Original comment by harald....@gmail.com on 25 Mar 2010 at 3:25

GoogleCodeExporter commented 9 years ago
it doesn't FC for me, too.(but on the first time. then i started the terminal 
emulater, entering the order you typed above. FCing didn't happen again.)
but it still shows the message: "No Accesss Control -- your kernel does not 
have all 
necessary features for the control feature for this app.", and ask me to ignore 
or 
leave.
after i chose to ignore, it shows the message:"access control disabiled." and 
"binaries and confg file installed",but the message "could not install file -
data/data/android.tether/bin/dnsmasq." appears more often. 

i got the tether running log shows all done, except enabling NAT rules failed 
one 
time,and the other times 3 actions were done; those are loading dhd.ko module, 
enabling ip forwarding, tethering now running, and faied to start the others.

now i try to create logcat, and upload it later.

Original comment by isahaya....@gmail.com on 26 Mar 2010 at 12:32

GoogleCodeExporter commented 9 years ago
harald.mue:

here is the log file.
i hope all the situations i have met is recored in the log file.
wish this would be useful to you.

Original comment by isahaya....@gmail.com on 26 Mar 2010 at 1:06

Attachments: