yashsingh1/xdaforums huggingface dataset:
[Tilt, TyTN II, MDA Vario III Android Development] roadhead:
Wifi Works! I was even able to leave my office, have the 3g kick on by itself, and then revert back to Wifi when I was in range.

This is as good as my wife's G1 in that regard (better actually, as she goes from Wifi to EDGE)

Build is very fast moving about, never have to wait for Clock, Calender, Weather widgets to reload on the home screen :)

All in all I must say this project has come a long way from the first time I tried to use it, and found that I couldn't have working data AND a screen that flipped the correct way :)

Thanks a ton to all the developers who have worked so hard on this.

Cheers!
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
enatefox, i'm having a major brainfart lol how do u mount the data.img

scratch that i got it..

now what command do i need to run in sqlite3? if i type in .database i can see one called main

nevermind got it dumped. is that what u need? i'll pm it to u if it is.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
You got anything good? ".tables" will show the tables, then you can "select * from <table_name>;" until you see stuff. Look for something related to error or fail. I'm used to MS SQL and MySQL but I'm sure I can translate some stored procedures I have that let me do full text searches and the like. You can send me the db files if you want so I can look for what to look for but unless you're randomizing the data, I'll have your personal info on it.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
pending_msgs has this schema:

err_type INTEGER,err_code INTEGER,retry_index INTEGER NOT NULL DEFAULT 0,due_time INTEGER,last_try INTEGER

CREATE TRIGGER update_threads_error_on_update_mms AFTER UPDATE OF err_type ON pending_msgs WHEN (OLD.err_type < 10 AND NEW.err_type >= 10) OR (OLD.err_type >= 10 AND NEW.err_type < 10) BEGIN UPDATE threads SET error = CASE WHEN NEW.err_type >= 10 THEN error + 1 ELSE error - 1 END WHERE _id = (SELECT DISTINCT thread_id FROM pdu WHERE _id = NEW.msg_id); END;

pdu holds the thread ID to reference the error and updates the threads table with an error ID. And so it continues as databases go.

You can send me the info, but I'll have private texts so you may want to go through for names and numbers. This is where I would start though. There should exist entries in threads where error is not null and <> 0 for example.

*EDIT, you pretty much should have it in your post above me now. Should find a better way to go over this. Can you create a new data.img, just text a couple of times to yourself or whatever and then after anonymizing it, send it my way? These are separate file-based db's but maybe we can profile it as it is sending via ADB.
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
hmm.. so what should i do exactly, i'm sorry i'm new to this. tell me what to do and i'll cut the numbers out.
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
enatefox, you might find this interesting. after restarting my phone the message i sent myself shows sent. no error.
[Tilt, TyTN II, MDA Vario III Android Development] polyrhythmic:
ConnectBot supports setting up SSH tunnels, including SOCKS5. Forwarding your browser through them seems to be a bit complicated.

I found this source which recommends a mini-debian install and using Privoxy.

That technique adds a proxy setting directly into the connection database, and I imagine it would work system-wide. Also. the shell commands could be scripted to make the process easier.

Most of the other results I get are related to SOCKS proxies not working.

I too would like to be able to forward traffic through my home network. I'm not as familiar with the Android internals as you are, but I'd be happy to help beta test and debug!
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
Sweet, thanks poly. I have not heard anything back on why I can't and how to load the ext2 module into the kernel. I used to be able to boot Ubuntu on Android but now I've got errors. So.. you've taught me that not only do I fail at chrooting Ubuntu but that I fail at SOCKS as a direct result.

Specifically:

bash-3.2# modprobe ext2.ko
modprobe: chdir(2.6.25-00864-g0b26332): No such file or directory
bash-3.2# insmod ext2.ko
insmod: cannot insert 'ext2.ko': Cannot allocate memory

ibanezbass, just ones you send yourself don't have an error? I'm looking around the databases to make sure I got the layout down now. Next is I'll send you some scripts that will dump output into a spreadsheet or something with the info then we'll figure out what's next once we're looking at the same thing. Also, this is a good guide at what to do if you need a quick start: http://davanum.wordpress.com/2007/12/11/android-how-to-poke-around-the-sqlite3-databases/
[Tilt, TyTN II, MDA Vario III Android Development] dzo:
ext2 is built into the kernel already which is why it complains. Only G1/Magic users would need that module.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
Thanks for your help. So, how come I can't chroot Ubuntu then? Booting now, I got your message after copying it to /lib/modules in rootfs..

bash-3.2# mknod /dev/loop2 b 7 0
bash-3.2# cd /sdcard/debian
bash-3.2# ls
debian.img mnt
bash-3.2# mount -o loop,noatime debian.img mnt
mount: cannot setup loop device: No such file or directory

bash-3.2# mount
rootfs on / type rootfs (rw)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,flush)
/dev/block/loop2 on / type ext2 (ro,sync,noatime,nodiratime,errors=continue)
tmpfs on /dev type tmpfs (rw,size=100k)
proc on /proc type proc (rw)
sys on /sys type sysfs (rw)
/dev/block/mmcblk0p1 on /sdcard type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,flush)
/dev/block/mmcblk0p1 on /cache type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,flush)
/dev/block/loop0 on /data type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/loop1 on /system type cramfs (ro,noatime,nodiratime)
/dev/block/loop0 on /etc type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/loop0 on /shared_prefs type ext2 (rw,sync,noatime,nodiratime,errors=continue)
/dev/block/mmcblk0p1 on /tmp type vfat (rw,noatime,nodiratime,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,flush)
/dev/block/loop0 on /smodem type ext2 (rw,sync,noatime,nodiratime,errors=continue)
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
tmpfs on /sqlite_stmt_journals type tmpfs (rw,size=4096k)

Alright, stupid mistake in that it's not ext2 support related. But what's with not being able to set up the loop device?
[Tilt, TyTN II, MDA Vario III Android Development] vilord:
use losetup... take a look at the init file to see how it is done...

The other reason you can't chroot ubuntu is because you're using a file called "debian.img"

That likely only contains debian and not ubuntu ;)
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
bash-3.2# mknod /dev/loop7 b 7 0
bash-3.2# losetup /dev/loop7 debian.img
losetup /dev/block/loop7 /sdcard/debian/debian.img
mount -t ext2 -o noatime,nodiratime,sync /dev/block/loop7 /sdcard/debian/mnt

And it works. Now:

bash-3.2# chroot /sdcard/debian/mnt/ /bin/bash
Bus error

My assumption is not having mounted /proc, /sys, etc. so I did this in case:

mount -t devpts devpts /sdcard/debian/mnt/dev/pts
mount -t proc proc /sdcard/debian/mnt/proc
mount -t sysfs sysfs /sdcard/debian/mnt/sys

Still.. and mount is showing that they did mount
[Tilt, TyTN II, MDA Vario III Android Development] zakmcintyre:
Terminal Help

I am getting an access denied message when attempting to turn swapfile on in terminal emulator. I remember some having troubles when attempting to use term. Emulator to turn on WiFi (gettin calibration) but I never had any trouble. This is a new build (black hero from zen) as suggested by enatefox. What can I do to troubleshooting this problem and turn swap on?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
Oh you.. you're not using my mod of Zen's image I guarantee that. You either can mod the system.img so that /bin/su and /xbin/su are chmod 4755 or, if that sounds like crazy-talk, you can just type "/bin/su" instead and it will work.

The easiest method though, is use Zen's uploaded rootfs with compcache and swap (both) from 8-16 and you'll be golden. I personally use 60Mb swap with compcache. I have all 7 screens loaded with widgets and it is quicker than WM6 in my opinion. Enjoy the glory.
[Tilt, TyTN II, MDA Vario III Android Development] loserskater:
I have yet to actually dive into the android development, but I'm starting to get my toes wet...

I was wondering if there was a script I can run on my linux box that will mount the system.img, input my APN settings and then unmount. So that way I don't have to manually enter them with every fresh data.img. I've gotten the mount and unmount part, but where are the apn settings stored?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
I could be wrong here (I don't use APN just wifi) but I believe you are looking for /data/data/com.android.providers.telephony/databases/telephony.db and the table "carriers" to add your settings.

All I can say is that finally getting into Android developent is really nice-- having SQLite databases is almost too easy to play with.

Let me know if you need help. I'm not familiar with SQLite3 so much but I know MySQL and MSSQL inside and out. It's almost the same syntax.

I'll take this post to plead for help with chrooting Ubuntu... someone help please with the "bus error" I'm getting
[Tilt, TyTN II, MDA Vario III Android Development] zakmcintyre:
So if I am using the files you suggested from Zen...

then I should not have to do the entries into the Terminal to turn swap on? I see that it was created on bootup, but there is nothing else I am to do? I do notice that it is much faster, but I am still occasionally getting a system force close, especially on startup. Any suggestions?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
If you are using a rootfs that has both compcache and swap then no, you don't need to do anything. You can prove it by going to a terminal and typing "free" and if you see more than 2Mb of memory free (like I have over 70Mb constantly available) then you are golden. The force close issue you might notice has a pattern. You might be powering down then waking up and expecting to jump right to the browser. Or maybe you are switching to landscape mode. In general, you won't notice any lag or at least I dont.

I'll take this post to again recommend download Bar Control from the market by the legendary Andrew Schwimmer.
[Tilt, TyTN II, MDA Vario III Android Development] CrashnBrn:
Is there a way to adjust in call volume? Even at the lowest setting the in call volume is way to loud
[Tilt, TyTN II, MDA Vario III Android Development] zakmcintyre:
Okay, a few things I need cleared up please:

1. I am running the 8-16 rootfs w/ swap and compcache from zen. The zImage is one that enatefox suggested a few pages back to run w/ this set. The other files all come from the PureBlack bundle. Here was my output when typing in "free" in the Terminal before I started using this particular rootfs:

Total Used Free

MEM 98844 97516 1328

SWAP 49272 23816 25456

TOTAL 148116 121332 26784

After applying the said rootfs:

Total Used Free

MEM 98844 97544 1300

SWAP 49272 23700 25572

TOTAL 148116 121244 26872

There doesn't seem to be much difference to me. Am I missing something? I tried following the instruction on manually initializing the swap through the terminal, and kept recieving a messaging indicating that the file (swapfile) was in use. Any help here? I know I am not contributing much to the development here, but I try to be a loyal tester and am sure that others might have similar questions. Second question...

2. When I boot Android, every time I get a "system" message just after the HTC screen that asks if I wish to force close or wait on the system. Is this normal? Hopefully your answer to number one will help solve this. I appreciate all your help!
[Tilt, TyTN II, MDA Vario III Android Development] Borkata81:
dzo is it possible the reason wifi not to suspend properly is that we don't have wakelocks implemented in our kernel. If this is the case I can try and make them work for 2.6.25 (already did it once, so won't be hard to do again).

One more thing - are you familiar how hso driver is configured to work for bluetooth in 2.6.27 for G1 and why when I manage to compile it for our kernel I don't see High speed interfaces -> /dev/ttyHS0.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
indeed.

zakmcintyre, you show you've got 26,872KB free memory. That should be plenty. I use 60Mb of swap with compcache and average about 70-75Mb with everything running. The system error sounds like you're referring to startup. If it hasn't swapped TouchFlo yet, it's not going to be fast. Maybe a good way to look at it is like a turbocharger-- it can give you a lot of boost but only after you've spooled it up.

CrashnBrn, I got an app from Market called like Sound Manager or something (my battery died, can't check ATM). And I have it saved in the notification window (drop down at the top) with Bar Control so I can adjust all the channels instantly. In general, when in a call, adjust the volume and it will toggle in-call volume specifically. If you're on the home screen, it will toggle ringer volume instead.

As far as chrooting Ubuntu, every time I mknod and use losetup, it keeps mounting data.img to the mount point despite explicitly putting the path to the Linux img file.. Anyone have an idea?
[Tilt, TyTN II, MDA Vario III Android Development] gleonard3:
Camera

Any word on getting the camera alive? Just curious where it is on the radar.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
Camera works on Vogue right now. No clue on it getting done on Kaiser yet but it is at least to the point that the process doesn't crash when you load the camera app.
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
Enatefox, sorry it took so long for me to reply. To answer your question, The sms to myself only showed sent after i rebooted. and then i also have an idea, ION and HERO are both 1.5 right? so can we use the messaging app and resources from ION on HERO at least for a temporary fix? and then with the vogue camera and kaiser. I thought that the vogue and kaiser were nearly identical, am i mistaken? perhaps a reverse engineering of the wimmo driver would be necessary...
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
how do u mount system.img in linux with rwx permissions? i'm getting "error: file system is read-only"
[Tilt, TyTN II, MDA Vario III Android Development] Borkata81:
Yes it is readonly and you should mount copy the files somewhere make modifications and make another img.
[Tilt, TyTN II, MDA Vario III Android Development] TaC:
anyone try the new zimage with bluetooth support?
[Tilt, TyTN II, MDA Vario III Android Development] dzo:
Won't work on kaiser yet I'm afraid.
[Tilt, TyTN II, MDA Vario III Android Development] TaC:
:(

I hope it won't take too long to make it work in kaiser. Thanks, dzo.
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
cramfs (what system.img is packed as) is a read only filesystem. Someday in the future, our children will enjoy a newer kernel (2.6.27+) that supports ubiFS which is able to be read-write and very good for SD cards in terms of performance and wear
[Tilt, TyTN II, MDA Vario III Android Development] Sisqo:
anybody has a working default.txt for raphael (htc fuze)? i can use the same files or it needs new drivers and stuff? i used to have kaiser...don't see any thread like this one in the raphael forum..

i've tried running haret with

set mtype 1910

set ramsize 0x6000000

set ramaddr 0x10000000

and it freezes the raphael:)
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
Well hopefully in my life! Lol any idea what would happen if we replaced hero message app with ion message?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
You could try it. You'd have to hybridize Hero with ION and resolve dependencies as Hero has a lot of related apps that need to work together. So some trial and error. Probably would need to replace a lot of stuff like the dialer too. Then it would probably work.

Or, I/someone need to get some free time to look at data transformation from ION's message db to Hero's which I think in my little research done so far seems rather feasible.
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
Ok well i just need to know how to extract the system.img and remake it to try my idea... however if you think that you can fix the problem in a relatively short amount of time then theres no point in me making a hybrid ion/hero

Quick question.. is compcache suppose to show freemem under swap or actual mem?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
I'm not quite workin on it now so go for it. Compcache will show under swap.

$ free

shows memory

$ cat /proc/swaps

shows swap including compcache

$ cat /proc/ramzswap

shows compcache usage (better referred to as ramzswap)

Do you use Linux?
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
I use windows and linux as needed. So yeah i do use linux. why
[Tilt, TyTN II, MDA Vario III Android Development] skola28:
Does anyone know if there is a reason why the resolution can no longer be changed from 320x480 on the Hero builds? Is this just something that hasn't been 'worked' on, or is it a limitation of the TouchFlo/Home screen etc?

Obviously the Kaiser screen resolution is OTHER than 320x480, so it makes using the Hero ROMs kinda wonky.

Just lookin' for an answer to whether its possible to fix it or not?
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
skola, it's a "thing" with Hero and it might be able to be worked on. Don't know much more though. I do know that landscape crashes Touchflo 10/10 times for me so it's probably a big deal
[Tilt, TyTN II, MDA Vario III Android Development] ibanezbass:
Scratch that. working on it.
[Tilt, TyTN II, MDA Vario III Android Development] Sisqo:
so? a quick answer yes/no?:)
[Tilt, TyTN II, MDA Vario III Android Development] pmos69:
Well, couldn't at least squashfs (even without LZMA) be used instead of cramfs in the mean time? benchmarks say it has better compression AND performance than cramfs...
[Tilt, TyTN II, MDA Vario III Android Development] Mikulec:
Are there any news about listening to the music with headphones?
[Tilt, TyTN II, MDA Vario III Android Development] jayzilla:
I am, using the latest ION builds from the vogue-linux google code site.

It's mostly okay, but yesterday I foolishly attempted to take a call at the same time and the phone completely froze on me. Making calls seems to be fine. Sometimes the handset needs a little encouragement to accept that it needs to play things through the headphones rather than the speaker, but 80% of the time it's fine.

Have you tried, and if so, what problems have you had?

-- J.
[Tilt, TyTN II, MDA Vario III Android Development] Mikulec:
so u can listen music through headset?
[Tilt, TyTN II, MDA Vario III Android Development] jayzilla:
Yes :D

-- J.
[Tilt, TyTN II, MDA Vario III Android Development] Mikulec:
Which build are u using? Have u done something special to make it work?
[Tilt, TyTN II, MDA Vario III Android Development] captobie:
Kaiser files won't work on Raphael. The thread like this one is here:

http://xdaforums.com/showthread.php?t=402002
[Tilt, TyTN II, MDA Vario III Android Development] jayzilla:
I'm using this build

together with this zImage

and this rootfs.img

subject to change at any time ;)

Incidentally, I think headphones were working with just the original build prior to the last two files being added.

Didn't do anything special, just plugged the headphones in and they worked. I'm using the HTC headphones & mic which plug in with a USB connection.

Hope that helps :)

-- J.
[Tilt, TyTN II, MDA Vario III Android Development] Mikulec:
After u told me that its working I started playing with it and I foud a way how to make it work. U need to turn on the phone, then plug the headset anmd then run the player. I was always pluging the headset after I start the player and this way it was not working.

So thanks for telling me its working. yey :D
[Tilt, TyTN II, MDA Vario III Android Development] siulmagic:
is there any way to increse the ram availeble in android 1.5(cupcake), when i do free in terminal it says i got 1.7mb free and if im not mistake that is very low
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
siulmagic, replace your rootfs.img with this one:

http://vogue-hero.googlecode.com/files/rootfs-compcache-swap60-20swappiness.zip
[Tilt, TyTN II, MDA Vario III Android Development] domi007:
Hi everyone,

I am very happy that we got android on our machines, but I came up with an issue.

You know, I was just wondering, how great it would be to run any Linux-commandline based application in Android. So, to accomplish this, I have installed a Terminal Emulator, and put my files on the storage card. These files are binaries, compiled on my HTC Universal, so they are securely ARM applications (command file shows also ARM).

I cd into my directory, and say ./helloworld.o

I got sh: not found error. And I have tried everything, sh helloworld.o -syntax error (because it isn't a bash script), adding my directory to the PATH, chmod 777 the files, nothing changed. Has someone any idea how to solve this problem??

Thank you,

DOMy
[Tilt, TyTN II, MDA Vario III Android Development] siulmagic:
ok ty will try it

also is there a way to fix the keyboard lag in android?
[Tilt, TyTN II, MDA Vario III Android Development] pmos69:
for further swap tuning, see this: http://xdaforums.com/showpost.php?p=4376228&postcount=639

The keyboard lag depends on the image you are using.

No keyboard lag on my phone atm...
[Tilt, TyTN II, MDA Vario III Android Development] siulmagic:
im using 1.5 cupcake, if thats what you refer to as image, if its the zimage im using a very old one from htcandroid

is there a way to control the terminal remotely cus im missing the > symbol on my keyboard so i cant do the coomands in the terminal

my phone is a kaiser
[Tilt, TyTN II, MDA Vario III Android Development] enatefox:
you can get around the ">" usually if you're doing text transformation. Here's an example:

echo "hello" > world

echo "hello" | tee world

where you press Shift + Left Softkey (on the keyboard, not the faceplate) to get the "|" symbol.

Also, instead of telnetting (regarding the post below me) if you are connecting via USB, you can use ADB shell to get to it.
[Tilt, TyTN II, MDA Vario III Android Development] pmos69:
:-) My suggestion: update both.

About the ">" symbol on the keyboard. Yes, it's a drag.

You can use a different terminal, such as "better terminal" (search market) that has a soft keyboard.

And yes, you can access the terminal remotely, if you have a connection (wifi or other). Do this in terminal:

/bin/su
system/bin/telnetd
ifconfig

then check the output of ifconfig to see what's your IP address.

... and do:

telnet your.IP.address

on your pc.

Voila: Instant remote root access to the shell. :eek:
[Tilt, TyTN II, MDA Vario III Android Development] siulmagic:
what do you mean by update both, theres only 1 zimage XD or i dont get it

i tried doing it remotly but it keeps saying the syste,/bin/telnet dir does not exist(nvm this i dint have telnet installed dumb me) i got it installed still says no such directory

to enat thx for your suggestion il try that too