yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] scourgedirge:
Hello,

I am not completely new to programming, I have experience playing with Basic, HTML, and some C, but have never developed an app. The two apps that I have in mind will be my first.

Before I get started though, I need to find out whether the database I need is available or if I will have to build one myself.

What I need is to be able to submit a query containing either: a zip code, GPS coordinates, or city name, and return: the city name, state, county, zip code, etc... yes it will be a BIG database and a lot of work.

I think Google has all of this information in Maps, but would they allow me to fetch such information from them? AND.. if they do, and if I make this a cross platform application (such as web, iphone, or blackberry, in addition to android), would Google still allow my access to their database?

Thanks for any input.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Darkyy:
You better tell a moderator to move this thread to Q & A quickly before people will start shouting / insulting you... :p

I recommend you to do the Resurrection Edition :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Cezar`:
try choosing another lockscreen.
[Galaxy S I9000 Q&A, Help & Troubleshooting] yanglee:
Uhmmm.... I always disable lockscreen on any rom that i use....

I hate lockscreens :))
[Galaxy S I9000 Q&A, Help & Troubleshooting] virusdunil:
so do i...using No Lock
[Android Software/Hacking General [Developers Only]] tas0s:
CM6 for Huawei U8120

This is an

unofficial

port of cm6 (froyo) for huawei u8120 (vodafone joy/845).

It may work on u8100/u8110 models but I dont know because I havent any of these devices.

I would like to make it clear that this is an unofficial cm6 port, it is not fully tested

and it has some bugs.Its still under development and NOT for daily use.Only for bug fixing/testing.

If all bugs get fixed we can try to make it official.I work also on a

cm7(gingerbread) port with quite a success so far, but it has more mayor bugs than cm6 port.I will create

the corresponding thread for cm7 port when it reaches a usable state.

Any help it would be great.Some of the bugs are common in froyo and cm7 port.So if

they are fixed on one port it may be fixed on the others to.

Kernel: kalt kaffe's 2.6.29

Jit enabled

Android : 2.2.1 / CM6.2

Working:

RIL

Audio - not so good volume states.Too low.

Bluetooth

Wifi

TSCalibration - use it with a pen/stick

Bugs/Not working:

Camera can take pictures.Still to fix : b/w preview and video record crashes on stop

SDCard mount via notification bar

Broken layout in dialer FIXED

Key lights FIXED

Missing AGPS

Missing FM

For any bugs you find please provide a logcat output if you can.

Build instructions on git.

Releases:

v.0.2 Fixed lights,use libloc api, add boot splash image

v.0.1. Initial Build

Im not responsible for any damage that this software may cause on your device.Dont expect support.

gapps

github
[Android Software/Hacking General [Developers Only]] joilaroi:
gonna test it and report any bug. thanks :)
[Android Software/Hacking General [Developers Only]] anryl:
i'm in finished with car gona test after work :cool:
[Android Software/Hacking General [Developers Only]] bitye:
Nice :) Any idea what wrong with camera?
[Android Software/Hacking General [Developers Only]] tas0s:
The same reason as the other ports.I have built it without camera support :P

Actually I will get to the camera problem after the sdcard bug.I think that its more important.I may have fixed the key lights.Im going to test it later because now Im working.
[Android Software/Hacking General [Developers Only]] bitye:
What you know, Camera, SD Card mount on PC, and I found an other, phone can't recognize my SD when ext2 available on that. I formated to fat only now works. Dialer layout broken, wifi and Bluetooth OK, Calibration ok, dpad ok.
[Android Software/Hacking General [Developers Only]] cedric123:
How about the mac-adress?

And plz make the CM7 Treath fast so we can See you fixes and help you.

thx
[Android Software/Hacking General [Developers Only]] bitye:
I have no problem with audio volumes

Sensors not working
[Android Software/Hacking General [Developers Only]] cedric123:
Can you upload cm7?
[Android Software/Hacking General [Developers Only]] tas0s:
CM7 is not in a functional state right now so I will not make a thread/upload the configs.Also I'm sure that the're going to be roms based

on it as soon as possible :P

And I don't think that's right.

Please let me explain my opinion:

Take for example the cm6 port.

The cm6 port is not fully tested (I have run it for just a day or two and I haven't tested all the provided features).

So if cedric123 or bitye or any other guy, that is cooking roms (very good roms to be honest) ,

provide roms based on the cm6 port (as already have :P) then we will have this situation:

+ the number of users/testers will grow (that's good because bugs and possible fixes are discovered more quickly)

- because of the already known bugs and the undocumented ones, many users, who have not the experience/knowledge

of the rom state and the whole procedure,will get disappointed and frustrated about cyanogenmod.So this is bad and

unfair for the cm team because they are doing an awesome job.

That's the reason I'm providing only img files and not a complete rom zip.To avoid unexperienced users ;)

To make it clear that's just my opinion/point of view.
[Android Software/Hacking General [Developers Only]] poruid:
Absolutely right. Besides: from a practical point of view, its will be easier to implement a CM7 port once a CM6 port has successfully tackled the quirks and required changes to adapt the code to the U81*.
[Android Software/Hacking General [Developers Only]] poruid:
CyanogenMod

Interesting: Tom Giordano has merged Huawei U8220/U8230 into the CM repository, which will eventually make it a officially supported device.

See: http://review.cyanogenmod.com/#change,3670
[Android Software/Hacking General [Developers Only]] cedric123:
To talk about the huawei 8220 device

this device is almost the same as ours........

so cant we use some of their drivers and libs to fix the camera and sd mount???
[Android Software/Hacking General [Developers Only]] tas0s:
I have looked in tomgiordano's device tree from the begining ;)

We have different camera from the u8220 as I know.

Im working on camera and sdcard bug.Im looking in other device trees also to

see whats wrong.
[Android Software/Hacking General [Developers Only]] cedric123:
Nice please post your archievments and bug fixes and plx make a threath about cm7 cuz i want to know what you fixed so i can get to work too...

Seached a bit

HTC ledgend cm6 mod is running 2.6.29 kernel too and HAD a sd mount bug + camera bug.........

They fixed sd card bug by enabling USB-debugging(Just enable it and it will work????)

Camera i dont know how they fixed it..

Are you planning to fix Mac-adresss too?
[Android Software/Hacking General [Developers Only]] anryl:
i have still problems with sources my repo is not building right my ubuntu 64 is f@cked up again and the git -u command is not working :confused:

cd <cm6 source>/device/

mkdir -p huawei/u8120

git init -u git://github.com/tas0s/cm_huawei_U8120.git ---- not working

cd huawei/u8120

git init

git pull git://github.com/tas0s/cm_huawei_U8120.git

git checkout

packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:96: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_ON
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_ON, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:102: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_OFF
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_OFF, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:108: cannot find symbol
symbol : variable ACCELEROMETER_ROTATE_180
location: class android.provider.Settings.System
Settings.System.ACCELEROMETER_ROTATE_180, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:125: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.OVERSCROLL_EFFECT, 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:196: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.OVERSCROLL_EFFECT,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

java version "1.6.0_22"

Java(TM) SE Runtime Environment (build 1.6.0_22-b04)

Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)
[Android Software/Hacking General [Developers Only]] cedric123:
Would CM5.0.8 eclair be faster than our eclair ROM now??
[Android Software/Hacking General [Developers Only]] tas0s:
Sorry anryl you are right.

Try

git clone git://github.com/tas0s/cm_huawei_U8120.git

EDIT: maybe the pull/checkout procedure is more correct.Updated

For the compilation error just do

cd packages/apps/CMParts && git checkout 69613a248519fed7d971bd6292013d36097d0107

Something is missing in CMParts master

I have updated the README in github with the corrections.Thanx
[Android Software/Hacking General [Developers Only]] anryl:
ok it worked so gona start test.ing :D:cool:

EDIT nice first try no rill :) used boot.img from AOSP

updated ramdisk lets see ---- ok RILL FINE :D

removed partitions on sdcard left with fat32 only

restoring apps with titanium

calibration ok

gps working

QtADB WORKING fine

for starters AOK thnx
[Android Software/Hacking General [Developers Only]] bitye:
I have no MAC problems, please explain what's wrong with yours. (Maybe special for me)

USB Debugging not fix the problem here, I tested.
[Android Software/Hacking General [Developers Only]] anryl:
u enabled debuging in kernel ?
[Android Software/Hacking General [Developers Only]] cedric123:
I get th wrong mac adrees
[Android Software/Hacking General [Developers Only]] anryl:
what is wrong with camera ? on 8150 port with .32 kernel it was working

on .29 eclair its working

so now we have .29 kernel and .32 kernel different cam drivers migth need the .so from .32 8150 port or need more aps from eclair rom ? :confused::confused::confused::rolleyes::rolleyes::rolleyes::cool:

or need to ad drivers from .32 into .29 kernel ??

and the video drivers are black&white :) youtube

attaching new kernel for testing might be (is) faster :D
[Android Software/Hacking General [Developers Only]] cedric123:
Great.!

If we got a completly working ROM are you goign to optimaze the kernel by removing everything that unneded?
[Android Software/Hacking General [Developers Only]] joilaroi:
Hi Tas0o.

Ive been testing your cm6 for the past days and i think usb debugging is off because titanium sometimes says it is off but now its ok
[Android Software/Hacking General [Developers Only]] cedric123:
Please tas0s rls your cm7 much ppl want to use and test it and much other people can fix it...... i know its against your priciples but whats the big deal?
[Android Software/Hacking General [Developers Only]] tas0s:
Im just quoting my response to your private message and the initial explanation on page 2:

"I have said it before that cm7 is not in a functional state.Except 1-2 mayor bugs,the rest are the same bugs with cm6/froyo.So anyone who whants to help,can also help in cm6.I dont see the benefit of releasing the cm7 config and a cm7 rom.Its missing calibration framework also.So even if all the bugs get resolved,we still have to find a way for screen calibration.So cm6 is the best/easiest way for now."

To make things more clear,if we fix cm6 then the cm7 is probably a matter of 2-3 days.I have already fixed key lights,im working on sensors now.When Im done with sensors and sdcard mount,then I will publish cm7 and begin with it

(I dont care to much about camera).

Im not publishing cm7 config because of two reasons:

1.I cannot work in two ports at the same time.I have to study for my thesis,a job and a life :P. Also I have one laptop,so one development machine and the compile gets some time.

2.If cm7 gets publish then all the attention it we'll be on it.No bugs,testing etc for cm6 and at this point we need them.

So when people asks about cm7, just quote this and I will take the blame.
[Android Software/Hacking General [Developers Only]] cedric123:
Try to fix sd-card mount cuz anryl fixed the sensors...

And about camera Can it take pictures ? or whats the problem? cant it record?

What about FM-radio and AGPS?

BTW dailer layout is fixed...
[Android Software/Hacking General [Developers Only]] tas0s:
Yes he had told me.Im compiling now to test it :)

The camera doesnt work at all.I have to research how other ports have fixed it.

FM-Radio probably is not going to work at all.We don't have the source for our chip.

Yes but do you know how?Because if we cant find the fix I cannot include it in the source.
[Android Software/Hacking General [Developers Only]] anryl:
the camera is working on 20.2 its 32 kernel kompiled from source but the froyo is from ???? 8150 dont have source for it but the drivers for camera are there within the 32 kernel :cool: as the sensor as well .

with the 32 kernel its so not komplete huawei gals removed to many things if i change just wifi to tristate its not booting at all :D:D:D:cool:
[Android Software/Hacking General [Developers Only]] mhepp:
tas0s: I have not compass/sensors still functional...

...

E/Sensors ( 1355): Couldn't find or open 'compass' driver (Unknown error: 0)

...

But buttons light is OK... ;)

Edit:

...
[Android Software/Hacking General [Developers Only]] cedric123:
Is cyanogen settings included in this ROM?
[Android Software/Hacking General [Developers Only]] anryl:
posted notes on commit m8 read it :D
[Android Software/Hacking General [Developers Only]] tas0s:
thanx mhepp.I know it for the compass :S

Maybe is a permissions things.Im checking it at the moment.About the sensors (the orientation) it has to do with tscalibration also (anryl mention it also) because if calibration fail etc it will report wrong screen dimensions I think.

Im working on it.
[Android Software/Hacking General [Developers Only]] joilaroi:
Hi tas0o. The CM6 doesn't have the contacts layout fixed.

here is the file if you want to add it

http://www.mediafire.com/?kgm5bp3djahk57z
[Android Software/Hacking General [Developers Only]] tas0s:
Thanx, but could you tell me how you have fixed it?
[Android Software/Hacking General [Developers Only]] joilaroi:
I used the apk that another user did but i dont remember is name. i set permissions to the file on root and then replaced it.

If i remember is name i will place here
[Android Software/Hacking General [Developers Only]] tas0s:
Ok.

I will decompile it then to see if I cant find the difference with the stock one.

Thanx.
[Android Software/Hacking General [Developers Only]] mhepp:
I found somethind interesting: in /system/lib/hw/sensor.msm7k.so is used device /dev/akm8976_aot, but in /dev/ is present device /dev/akm8973_aot.

You have AOSP Froyo with functional sensors... in their libs are used akm8973_aot device. This may be way to find a bug. (Simply copy of sensors libs from AOSP to CM is not good way, symlinks in /dev/ with proper name is not good way too -- it result with another bug -- device has not proper response.)

edit: try "strings" to this libs to see human readable strings from binary file...
[Android Software/Hacking General [Developers Only]] mhepp:
Trouble with accelerometer is with permissions:

/dev/accel have permissions 600. When I changed it to 644, display rotation and so is working. But compass still not.
[Android Software/Hacking General [Developers Only]] cedric123:
Meaby try to download rommmanager and hit fix permissions.?

Sent from my U8100
[Android Software/Hacking General [Developers Only]] tas0s:
Thats strange because in init.qcom.rc we have:

# Sensors
chmod 0666 /dev/akm8973_aot
chmod 0666 /dev/akm8973_dev
chmod 0666 /dev/accel
[Android Software/Hacking General [Developers Only]] mhepp:
Yes, everything seems all right, but, init.qcom.rc is not shell script. So it uses another format of comments. It looks like it uses C-like style of comments. Then line 53:

chown radio system /dev/oncrpc/*

opens comment and closed is at line 144. And code for sensors is inside ;)

Solution is maybe something like

chown radio system /dev/oncrpc/?*
or
chown -R radio system /dev/oncrpc/ (but I am not sure if it is correct)
[Android Software/Hacking General [Developers Only]] cedric123:
so this is the fix?
[Android Software/Hacking General [Developers Only]] mhepp:
Cedric, You must try it. This is thing, which I have seen in this script...

I have only one phone, then I can't turn it off for a long time... I will try it later...

This maybe fix only permission for sensors, SD card, Mass storage, logs, bt and my grandmother :-P
[Android Software/Hacking General [Developers Only]] cedric123:
I will try this weekend i am now buzy with school.....:mad::mad::mad::(:(:(:(:mad::(
[Android Software/Hacking General [Developers Only]] cedric123:
Compass too???

Thanks!
[Android Software/Hacking General [Developers Only]] anryl:
how do i know compass ??? it is rotating :D
[Android Software/Hacking General [Developers Only]] cedric123:
Download compass from market and test it......... not so didficult to come up with that i tought:);):p
[Android Software/Hacking General [Developers Only]] anryl:
here my working boot.img :rolleyes: i use only sensor.default.so the other 2 deleted
[Android Software/Hacking General [Developers Only]] anryl:
smart compass not working :D:D:D:D:D:D:rolleyes::cool:
[Android Software/Hacking General [Developers Only]] cedric123:
Can you try to get that working?
[Android Software/Hacking General [Developers Only]] anryl:
i dont use compass i need just screen rotation for my navigon - thats fixed

so now i want camera :D
[Android Software/Hacking General [Developers Only]] mhepp:
rotating fix is simle: add permissions to /dev/accel

I have functional rotating...

And I have functional mass storage :-P

code from init.qcomm.rc is here:

# Enable MASS storage on SDCARD
write /sys/devices/platform/usb_mass_storage/lun0/file /dev/block/mmcblk0p1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.1/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.2/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.3/polling 1
write /sys/bus/platform/drivers/msm_sdcc/msm_sdcc.4/polling 1

There is only one change: /sys/devices/platform/mass_storage/lun0/file --> /sys/devices/platform/usb_mass_storage/lun0/file
[Android Software/Hacking General [Developers Only]] anryl:
have to switch to ubuntu to check it out :)
[Android Software/Hacking General [Developers Only]] cedric123:
I think compass and magnetic sensor can be fixed the same way(with fixing permissions)
[Android Software/Hacking General [Developers Only]] tas0s:
I cannot understand it :S

I use the same kernel,same sensors.default.so and the same init.qcom.rc with froyo + cm6 + cm7.

In froyo :working sensors.

In cm6: no working sensors.

In cm7: working sensors (cedric dont tell me about cm7, with the efforts of anryl,mhepp [thank you very much guys!!] probably until the end of the next week I will upload it).

I will try what the guys have found.
[Android Software/Hacking General [Developers Only]] tas0s:
yes that's correct because our kernel creates usb_mass_storage in place of mass_storage.But the strange thing is that the huawei init.qcom.rc has mass_storage ..wtf !?!
[Android Software/Hacking General [Developers Only]] anryl:
cm7 do i have to kompile it in x64 environment ?

why is the froyo not using whole display ? it must be coded into framework .

my kernel is too clean the usb not working have to start over again :D
[Android Software/Hacking General [Developers Only]] tas0s:
I think that mhepp was correct about the /* thing in init.qcom.rc.I just remove it

and now accel has permissions,etc and I think that the compass is working to(I dont see error messages in logcat and If im not wrong it reports the correct heading.Just one final compile to doublecheck and I will upload to github.

@anryl,mhepp:thanx again guys.If cm7 has more problems I can give you github access to split the bug fixing.
[Android Software/Hacking General [Developers Only]] mhepp:
Finaly, the Mass-storage is fixed... It is in my post on previous page...

But sensors still not fully fixed...

To tas0s: sensors and /sys/: Yes this is VERY weird thing. In the original VF firmware is used ../mass_storage/... and it WAS all right. Strange thing. It is like something magic...
[Android Software/Hacking General [Developers Only]] joilaroi:
Hi. I changed the init.qcomm.rc with usb_mass_storage but im still not able to mount sdcard
[Android Software/Hacking General [Developers Only]] mhepp:
Ok, You are right... here is my init.qcom.rc. I found more bugs later... This is with functional mass-storage and proper permissions on /dev/accel
[Android Software/Hacking General [Developers Only]] cedric123:
Thanks

But I too rly need the compass working for my GPS(CoPilot)

And you have any ideaa how to get camera working? meaby another camera app like camera 360?

How can we fix the mac-adress?

Found someting:The hardest part of the kernel port is getting the wifi driver. At the moment that is binary only and tied to a specific kernel revision.

I've also just discovered an interesting trick

insmod /system/wifi/ar6000.ko mac_param=11:22:33:44:55:66

when the wifi driver isn't loaded loads it with the requested MAC address. I suspect one of the Huawei scripts does something similar which is how it is supposed to get it's proper address.

Based on this I believe the way Huawei set the MAC address is in libhardware_legacy/wifi/wifi.c modifying the insmod routine (confirmed by grepping the binary)

$ strings libhardware_legacy.so | grep mac_param

mac_param=00:00:00:00:00:00 meaby?

Btw where do i need to push init.qcom.rc? or is this a kernel file?
[Android Software/Hacking General [Developers Only]] anryl:
kernel file :D:cool: extract boot.img and replace it
[Android Software/Hacking General [Developers Only]] cedric123:
Aha I think it is inside the ramdisk?

Btw do you know how to extract the kernel cuz i can edit Ramdisk but is there a way to replace the acpuclock.c without compileing a whole new kernel from source?

Looking in the init.qcom

akm8973_dev

akm8973_aot

cut one of these be compass or magnetic sensor?
[Android Software/Hacking General [Developers Only]] anryl:
u have to compile one new give me .config and acpucklock u want to use i will have one for u in no time :cool:

its in adb pull /proc/config.gz on u device running u rom :cool:

btw the USB is still not working
[Android Software/Hacking General [Developers Only]] anryl:
upload u'r boot.img pls
[Android Software/Hacking General [Developers Only]] mhepp:
Anryl: Důkaz místo slibů: Mass-storage Connected and Disconnected, and here is my boot.img
[Android Software/Hacking General [Developers Only]] joilaroi:
I used your boot.img but i still cant mount sdcard:(