yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] GJSmith3rd:
By the way, after mainly following Aorth's instructions, my first build compiled successfully although I haven't flashed it. I'm looking into the CyanogenMod AVD to practice on.

http://wiki.cyanogenmod.com/wiki/Android_SDK_Emulator:_Compile_CyanogenMod_(Linux)

I'm going to try to build, on my currently hardware constrained build box, for the U8150 and the CM7 AVD using CCACHE and with something like the following in a script:

#for U8150
. build/envsetup.sh && brunch cyanogen_u8150-eng
#for CM7 AVD
. build/envsetup.sh && brunch cyanogen_generic-eng

If I have to put

make cleaninstall

in between the two builds, will it wipe my CCACHE?

EDIT: Nah, I will probably just build/compile for and practice on the CyanogenMod AVD until I can cherrypick effectively... I don't want to keep flashing my U8150 while in the sandbox...

-- VM Cruz T105/PT701 XDA Premium --
[Android Software/Hacking General [Developers Only]] aorth:
Nope, ccache is used by the build system, but it's not a part of it; ccache stays even after cleaning up your CyanogenMod build folder.

Regarding ccache, when the C compiler compiles code it generates objects, which are later linked into executables. If only part of a program's source changes then you theoretically only have to recompile the parts which have changed... that's what ccache does. The cache usually lives in ~/.ccache and is only managed by the ccache program (not by the build system). To see your "hit/miss" stats for ccache objects:

$ ccache -s
cache directory /home/aorth/.ccache
cache hit (direct) 0
cache hit (preprocessed) 193130
cache miss 86489
called for link 13354
couldn't find the compiler 1
unsupported source language 8680
unsupported compiler option 1322
no input file 3156
files in cache 86368
cache size 4.5 Gbytes
max cache size 20.0 Gbytes

Also, it's a good idea to `make clobber` from time to time, which will clean out your output folder. Also, you can just `rm -rf out` too...
[Android Software/Hacking General [Developers Only]] GJSmith3rd:
I hope we are not digressing too far off topic but since Aorth commented on CCache I actually made sure it was installed - doh - and discovered distcc: a fast, free distributed C/C++ compiler that's simple to implement with low network overhead. I've got two other Ubuntu 11.10 boxes on my network which are mostly idle. I also have a Windows dual core 64 bit Vista box that I could put a virtual install of Ubuntu on.

Going to try to deploy Distcc today on all four boxes :D Hope I can get it to work!

http://code.google.com/p/distcc/
[Android Software/Hacking General [Developers Only]] aorth:
Audio again

Someone mentioned a few threads back that they didn't notice distortion when using PowerAmp media player (versus the built-in Music app). I just tried and sure enough, it's true. For what it's worth, though, the distortion issue isn't a really big deal to me because it's basically at volumes greater than ~70%... and this tiny speaker is really freakin' loud... so... not a big deal.

Also, CRT Off animation... not working for me anymore. Also, I've got a buddy who's running my build and he says it comes and goes for him. Bugs bugs bugs.

Well, I have time the next few days so I guess I'll play around. I think I was burned out before... this little phone is so finicky, and then all the different versions and stuff? Then the poor hardware is really a drag as well. Well it's a learning process, and it's fun I guess... :)
[Android Software/Hacking General [Developers Only]] ntnlzr:
i today i can download all repo of cyanogenmod with your mighty faq(yeah i'm your follower too! :P ) and i'll try to help you as i can
[Android Software/Hacking General [Developers Only]] timtamboy63:
I see, so I could just install a nightly the same way I install a stable?
[Android Software/Hacking General [Developers Only]] vercetti19:
hi pal.thanks for your continued support.

could you please elaborate on what to do after putting the phone in fastboot.i didn't get what you mean by running the above code
[Android Software/Hacking General [Developers Only]] asisc:
You must use FASTBOOT installed in your PC to run those commands from a "command prompt"...

You can use FASTBOOT both under Windows and under Linux.

Fastboot is just one of the tools available into ANDROID SDK package....

Of course your phone has to be connected by the USB cable to the PC when the phone boots in "fastboot mode".

For further references take a look here:

http://wiki.cyanogenmod.com/wiki/Fastboot

Have fun!
[Android Software/Hacking General [Developers Only]] vercetti19:
Thanks alot bro.This will help me out alot
[Android Software/Hacking General [Developers Only]] kiwijunglist:
Shouldn't the blog be updated as it suggests the latest release is from November still.

http://ideosdevteam.blogspot.com/
[Android Software/Hacking General [Developers Only]] aorth:
That's tilal's blog. I can't change it, nor can I change the first post of this thread. We just have to help users as they come along...
[Android Software/Hacking General [Developers Only]] ntnlzr:
aorth i'm stuck!

i've

http://pastebin.com/1aP3bged

and

http://pastebin.com/JuHKDhEJ

so now what is the next step i'm confuse

tnx
[Android Software/Hacking General [Developers Only]] aorth:
I'm not sure what you're trying to do? It looks like you've downloaded the Android SDK and cloned the CyanogenMod repo?
[Android Software/Hacking General [Developers Only]] ntnlzr:
i want build new rom from cyanogenmod repo for u8150
[Android Software/Hacking General [Developers Only]] GJSmith3rd:
FYI. CyanogenMod CLI compiler alpha.

http://xdaforums.com/showthread.php?t=1415661

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Android Software/Hacking General [Developers Only]] ntnlzr:
oh tnx u but i don't like script pre-built :P
[Android Software/Hacking General [Developers Only]] aorth:
It's basically:

Set up build environment

Clone CyanogenMod repo

Extract proprietary libs from phone

Build

Flash to phone

See my more-detailed walkthrough for specifics: http://mjanja.co.ke/2011/11/building-cyanogenmod-7-1-for-the-huawei-u8150/
[Android Software/Hacking General [Developers Only]] ntnlzr:
hi tnx u i was lost

i've done a little mod to a few script for testing now i'm making a new clean build

p.s. there is a way to contact you with an im? (irc or similar?) if yes could you send me a pm?

---------- Post added at 04:51 PM ---------- Previous post was at 04:00 PM ----------

nice it works! Now i'm ready for help you!

this is my version without touch anything it's work if anyone can test it is update version sync with last cyanogen repo http://www.mediafire.com/?4a7d83tjpqwl1f2
[Android Software/Hacking General [Developers Only]] Axel85:
Hi...I ve bought u8150 for my father today,i ve already installed this great rom,the 5/12 release and is working great.The only question is how can i enable multitouch in this revision?I ve tried to flash the multitouch kernel in ideos dev team site,with no success.Thanks
[Android Software/Hacking General [Developers Only]] ntnlzr:
uhm what kind of screen do you have

you can see it with terminal emulator

type

getevent

enter

read if you have melfas you can't have multitouch

if you have synaptic you have it
[Android Software/Hacking General [Developers Only]] Axel85:
I ve just tried,but all i get is

could not open /dev/input/event8, permission denied

i get this message 8 times
[Android Software/Hacking General [Developers Only]] GJSmith3rd:
As soon as the terminal starts type 'su' to get root access. Prompt should change from $ to #.

-- VM Cruz T105/PT701 XDA Premium --
[Android Software/Hacking General [Developers Only]] aorth:
Cool, I'm happy for you. I started just the same way as you... start building for yourself, then start adding real patches! Welcome to the team ;)
[Android Software/Hacking General [Developers Only]] Axel85:
I forgot the "su"...

sadly it a melfas one...so no multitouch for me...Thank you all for help.This ideos is a good phone,almost same specs as tattoo but works a lot better

---------- Post added at 02:33 AM ---------- Previous post was at 02:28 AM ----------

What about the experimental multitouch in melfas touch panel?This rom support it

http://xdaforums.com/showthread.php?t=1008827
[Android Software/Hacking General [Developers Only]] gileadb:
Does anyone know of another mirror? Neither the one on the blog or the one in rom manager work.
[Android Software/Hacking General [Developers Only]] kiwijunglist:
Sorry, you must get sick of people saying that then ;-p
[Android Software/Hacking General [Developers Only]] kiwijunglist:
Download from here:

http://xdaforums.com/showpost.php?p=20035259&postcount=3221

-Kiwi
[Android Software/Hacking General [Developers Only]] aorth:
Auto brightness

I'm taking another look at auto brightness. I just noticed that, with auto brightness enabled, I see constant errors in logcat:

E/PowerManagerService( 189): getAutoBrightnessValue
E/PowerManagerService( 189): java.lang.ArrayIndexOutOfBoundsException
E/PowerManagerService( 189): at com.android.server.PowerManagerService.getAutoBrightnessValue(PowerManagerService.java:2437)
E/PowerManagerService( 189): at com.android.server.PowerManagerService.lightSensorChangedLocked(PowerManagerService.java:2622)
E/PowerManagerService( 189): at com.android.server.PowerManagerService.access$5300(PowerManagerService.java:84)
E/PowerManagerService( 189): at com.android.server.PowerManagerService$9.run(PowerManagerService.java:2465)
E/PowerManagerService( 189): at android.os.Handler.handleCallback(Handler.java:587)
E/PowerManagerService( 189): at android.os.Handler.dispatchMessage(Handler.java:92)
E/PowerManagerService( 189): at android.os.Looper.loop(Looper.java:130)
E/PowerManagerService( 189): at android.os.HandlerThread.run(HandlerThread.java:60)

I'm not sure what PowerManagerService is polling, but it appears that it's not getting the values it expects. I dunno if it's a permissions thing or a sensors thing... subspyke? tilal? tas0s?
[Android Software/Hacking General [Developers Only]] tilal6991:
Maybe a sensor incompatibilty. With our prebuilt binary?
[Android Software/Hacking General [Developers Only]] gileadb:
When I try and install the rom found on this thread: http://xdaforums.com/showpost.php?p=20035259&postcount=3221

ultrajack recovery gives me an error and aborts the installation. All I can see from the error is getprop ("ro.buildproE:unknown command {duct"]

Any advice on installing?
[Android Software/Hacking General [Developers Only]] psyke83:
It may be a problem with the liblights library. Which version are you testing - the msm7k generic or the newer custom one that exist(ed) in the device folder?

I've never seen this error on my U8160, but I'm not sure if the auto brightness is using a real sensor or of it's a software implementation.
[Android Software/Hacking General [Developers Only]] Axel85:
Does ideos come with a light sensor?I have not auto brightness flag to check under the display settings,only brightness value
[Android Software/Hacking General [Developers Only]] smashman42:
Read the instructions on that link, you need Clockworkmod v5, it is the first step. CWM 3 & Ultrajack aren't supported
[Android Software/Hacking General [Developers Only]] aorth:
Hmm, I wasn't sure if liblights was responsible for the backlight. Anyways, I just stuck the local liblights back in and tested it but there's no difference.

I got to reading the code of liblights and indeed it controls the LCD backlight. This, in particular, is very interesting:

char const*const LCD_FILE
= "/sys/class/leds/lcd-backlight/brightness";

That file does indeed control the backlight. You can echo values from 0 - 255 to that file and it changes the brightness. I'll look into it further...

Yes, we have light sensors. We've disabled auto brightness in the Android display settings because it doesn't work... :). It apparently used to work, which is why I'm trying to check it out now.
[Android Software/Hacking General [Developers Only]] Nbuulb:
I partitioned my microSD card through ClockworkMod Recovery 5.0.2.7 and created a 128 MB swap partition. How can I make Android use that partition as swap?

Maybe by creating a script containing something similar to

#!/system/bin/sh
swapon /dev/block/mmcblk0p3

inside /system/etc/init.d/? (As suggested here - The message is in Italian: here's an English translation made by Google Translate).

By the way, the December 5th Nightly by aorth is installed on my U8150.

Thanks.
[Android Software/Hacking General [Developers Only]] tilal6991:
That will work but I would advise against it. Swap is essentially useless in my tests. However it is up to you to see if you gain any performance out of it. The script you show should work.
[Android Software/Hacking General [Developers Only]] gileadb:
I currently have ultrajack installed and I am not sure how to install clockwork in its place. Rom manager says clockwork is successfully installed but it still boots into ultrajack. Where am I supposed to run the commands in the above post? Thanks for the help I am new at this.
[Android Software/Hacking General [Developers Only]] poruid:
I agree. I tried it and found that the larger virtual memory resulted in more apps kept running which causes more memory drain and bigger lags when switching between activities.

When you want to try though, I'll advise you to create a script in /data/local/userinit.d which will not be overwritten when you eventually update your ROM.

Paul
[Android Software/Hacking General [Developers Only]] asisc:
@gileab: Please see my post # 3390 in this thread for further informations about...
[Android Software/Hacking General [Developers Only]] Morexcuses:
sorry but you can not download update-cm-7.2.0-RC0-U8150-KANG-signed-dec5.zip

2260 nor the other files, I think the URL is not dead, it's the website?
[Android Software/Hacking General [Developers Only]] arviit:
CM 7.2 image no longer exists

download link on minus.com is broken. will you post another downloadable file? thanks in advance.
[Android Software/Hacking General [Developers Only]] bpushpak:
Hi Tilal, This is (The stable release) one of the best ROMs for 8150 that I have used even though the hidden SSID is a problem. Can we do a NAND remap using the method mentioned in this thread - http://xdaforums.com/showthread.php?t=1233340?

This will help freeing up the wasted space in /System & cache folder. Almost 80-90 MB is blocked this way....

---------- Post added at 11:21 AM ---------- Previous post was at 11:13 AM ----------

I have a ZTE with the exactly same CM 7 version bit with a very much optimized NAND mapping allowing for 300 MB of data space
[Android Software/Hacking General [Developers Only]] Nbuulb:
It worked. Let's see if it gives some performance gain.

Thank you.
[Android Software/Hacking General [Developers Only]] tulangabol:
I look on JoeyJiao's GitHub and he can make Custom MTD on huawei C8500. May be that procedur can work for huawei U8150.

https://github.com/JoeyJiao/CustomMTD

JoeyJiao may be can make build fm radio app on CM7, but i don't know that work or not...

Alan and Tilal, thank for build CM7 on my device...
[Android Software/Hacking General [Developers Only]] bpushpak:
Hi tulangabol, this is the same MTD. If you see the post I have given, it is using the same MTD and only has a better step by step guide taken from the post by Firerat (the post in the top of the GitHub)
[Android Software/Hacking General [Developers Only]] tulangabol:
Lol...

Sorry

Thank for the answer...
[Android Software/Hacking General [Developers Only]] bpushpak:
Actually the MTD looks more like "AnyKernel" compatible. I wanted to test this. Let me get a back up phone and then will test this.

Need to read carefully the recovery steps also :)
[Android Software/Hacking General [Developers Only]] aorth:
I just tried the Minus.com link and it's still working for me. I suppose I could mirror it somewhere else too. I really hate Minus.com... their interface is so freakin' confusing.
[Android Software/Hacking General [Developers Only]] arviit:
thank you guys. Morexcuses was right. It was a minus.com problem!
[Android Software/Hacking General [Developers Only]] aorth:
Just a note, I'm out of town, away from my computer for a week. So definitely no builds for a while. I know you guys are hungry... Sorry ;)
[Android Software/Hacking General [Developers Only]] crispybbq:
Hmm. Dang. I've upgraded - got a U8800 now.

I'll be checking these topics now and again, as my U8150 now belongs to my brother. ^_^

Bit off-topic here, but U8800 devs seem to have CM7 (and MIUI) pretty much in the bag, though the U8150 ICS port is making much better progress than the U8800's, I'd say ;)

Anyhoo, I guess this is me, offering a friendly farewell (though more of a 'bye for now' to the excellent U8150 community. Thanks for making my device awesome. If ever I get the spare funds, I may rejoin y'all if the project if still alive. :D
[Android Software/Hacking General [Developers Only]] yulrizka:
Hi,

I just wants to say thanks for your work, but couldn't find the button
[Android Software/Hacking General [Developers Only]] marshallmutiso:
Thanks

Yes we are hungry... But thanks for the great job .... Come back soon
[Android Software/Hacking General [Developers Only]] timtamboy63:
Hey!

So I've installed the new nightly, but I havent wiped, and I assume this is why my wifi isnt working. I'm just wondering exactly how I wipe, and after I wipe, how do I get my contacts, etc back?

Cheers
[Android Software/Hacking General [Developers Only]] i_fain:
For all kind of backup install Huawei's HiSuite (I cannot post link as i am new :confused: ) so google it and you ll find

You can backup contacts, call logs, messages, apps, bookmarks etc. more details on the website.

regards :)
[Android Software/Hacking General [Developers Only]] yulrizka:
I just installed it. I wiped it using clockwork 5.0.2 then install the lastest nightly (5 des), and successfully boot. keep getting "process com.android.phone has stopped unexpectedly"

Before i use fusionideos. and flash a kernel. is is because of that ?

are there any solution for it ?
[Android Software/Hacking General [Developers Only]] eddyi:
@aorth

Thanks for a brilliant effort , i flashed the rom on u8150-b and its working flawleslly

except when i installed the gapps , i got gmail , google search market but didnt got the Google Maps any idea bout wat i have done wrong ?

FM radio i dont care bout , but are there any third party camera apps that can upscale the photos to 3 mega pixel ??

if yes please tell me the name i will buy it from market

cheers mate!
[Android Software/Hacking General [Developers Only]] kiwijunglist:
gApps gives you the google market, and then you can install google maps via the market.
[Android Software/Hacking General [Developers Only]] eddyi:
Got Google Maps the Other way

i flashed the GAPPS , but it didnt showed me the Google Maps in the market for download maybe coz of the device limitation with the latest version 6 of Google Maps , so i searched for the older lighter version of google Maps 5.3.1 on the net

downloaded it and flashed it from recovery , its all working good now :)
[Android Software/Hacking General [Developers Only]] LawBayly:
Managed to get the brightness sensor working again

I managed to get the brightness sensor working again, by downloading the source (using aorth's guide) and changing one file.

Once I downloaded the source I went into device/huawei/u8150/overlay/frameworks/base/core/res/res/values/config.xml

and in that file I changed the line

<bool name="config_automatic_brightness_available">false</bool>

to:

<bool name="config_automatic_brightness_available">true</bool>

then also inserted the lines (I got this from one of the older versions of this file... this stuff had been removed):-

<integer-array name="config_autoBrightnessLevels">
<item>11</item>
<item>41</item>
<item>91</item>
<item>161</item>
<item>226</item>
<item>321</item>
<item>641</item>
<item>1281</item>
<item>2601</item>
</integer-array>

<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>80</item>
<item>80</item>
<item>80</item>
<item>80</item>
<item>105</item>
<item>130</item>
<item>160</item>
<item>185</item>
<item>210</item>
<item>255</item>
</integer-array>

<!-- Array of output values for button backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

<!-- Array of output values for keyboard backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

And once it compiled it worked fine... despite that it changes up brightness immediately, but it delays changing back down to lower brightness... that I will not understand.

aorth when you get back all you need to add to the code to get the automatic brightness working is the bottom code, and I think it should work fine (except from the wierd delay on turning down the brightness.... if you don't use the automatic backlight, the softbutton backlight also acts normally turning on only when it's dark).

Hope this helps someone!
[Android Software/Hacking General [Developers Only]] tulangabol:
Thank you for the clue...

I got automatic brightness now.

I decompiler/compiler my framework-res.apk with apk manager. Then i add some value of bools.xml, public.xml and arrays.xml

Btw i compare U8150 framework-res.apk with U8160 framework-res.apk and used this guide to change arrays.xml

http://xdaforums.com/showthread.php?t=1270046

Now work like a charm...

You can replace bools.xml, public.xml and arrays.xml with your framework-res.apk (see and unzip attachment)

This my mod framework-res.apk (flash with CWM 3.0)

http://www.4shared.com/zip/yf6cE91h/patch2.html

Hope this helps too.

Sorry for my bad english...
[Android Software/Hacking General [Developers Only]] GJSmith3rd:
Works like a charm. Thanks for your efforts, explanations and tips. I had auto brightness from Juice Defender but I'm very pleased with working night lights. Installed with CWM 5.0.2.7.

~~ VM Micro Cruz PT701/T105 Tapatalk ~~
[Android Software/Hacking General [Developers Only]] kiwijunglist:
Can I flash this if I'm running the older nightly from November, and not the latest one from december?
[Android Software/Hacking General [Developers Only]] ntnlzr:
yes you can
[Android Software/Hacking General [Developers Only]] kiwijunglist:
SD Card is write protected when is USB storage mode, so can't copy the patch on to the SD card. I can still read contents of the SD Card. Never had this problem before and toggling usb debugging doesn't help. Anyone know what the problem is here? Am running nightly from November (2nd latest nightly)

PS: To get around this problem I was forced to email myself the patch then download using the phones web browser from gmail.com

PPS. Patch applied without error, and phone now has version = to the December patch under settings->about phone. Still have problem being unable to write to / delete SD card via the PC when the phone is in usb storage mode.