yashsingh1/xdaforums huggingface dataset:
[Legend Android Development] ThauExodus:
I have a prolem with the WI-Fi sleep policy... I set it to "After 15 min " or "Never when plugged in", but after a while it resets to "Never". Sometimes this happens at night and in the morning the battery is empty, so I have no alarm :eek:
[Legend Android Development] alexhtclegend:
Did you do the 'a2sd --enable' command? If you did its fine, the free space on the SD card isn't shown in that menu, but when you install apps that 100mb shouldn't go down.

I presume you've already partitioned your SD card??
[Legend Android Development] ogo2:
Yeah, there will be. But this time i have a plan to do desocializer patch, witch will be smaller. :)

This week i'll be bussy, but after monday i will have time to do this.
[Legend Android Development] BlaY0:
Yeah, just make an updater-script that would remove some files and replace some other...
[Legend Android Development] tr36cs:
In general b 0.8 is good but only for English, Arabic, some other languages, in Russian there is a bug I've described before

"There are some problems with Cyrillic fonts, “find on page” in any browser doesn't work, opera mini crashes while starting. Probably the reason is Arabic kernel".

I didn't install any themes and software after upgrade, nandroid of data partition then format it didn't help. More over my friends who use Russian language face the same problem. I guess JBed in b 0.8 doesn't support Cyrillic.
[Legend Android Development] Blindie:
if have a problem, superuser fc. eny ideas?
[Legend Android Development] BlaY0:
Yeah I know, I'm working on it and it has nothing to do with kernel. There's no such thing as Arabic kernel. And what do you mean by JBed?

For now it would be better for you to restore 0.7 back.
[Legend Android Development] tr36cs:
JBed is a Java emulator for Android in b 0.8 it has problems with Russian fonts.

Nevertheless thank you for your help, hope the problem will be solved.
[Legend Android Development] BlaY0:
I know what JBed is. Obviously I misunderstood you... I thought you think JBed is somehow part of 0.8 which of course is not.
[Legend Android Development] janarp:
@Blay0 first thank u this good Rom... second is that when I scroll down notification bar I see network name in b 0.7 i see something like that EMT 3G when I am in 3g area but now I see only EMT ... hope u understand what I want to say.

Sent from my HTC Legend
[Legend Android Development] Greedybro:
Thx you Blay0 ! Upgraded from b 0.7 and works fine.

I just have the same problem as others : reboot when long press power...

For information, after the first boot I press long on power and get the menu. Then I change the lockscreen, the navbar and the police font (Not with your file, some I got from a tuto on XDA in theme forum). And now no more power menu :(

It is not the worst, but I'm used to press that menu to put airplane mode -> I place a toggle on extended controls.....

.....but we are force to remove the battery to turn off the phone :( I don't really like it :S
[Legend Android Development] BlaY0:
I removed 3G indicator coz some mobile providers have problems with it.

Check this post. Especially read carefully text in bold red font twice. And then again for 3rd time. Maybe, just maybe it will stay in your head for at least several minutes and you'll live happily ever after ;)
[Legend Android Development] Dr.Romca:
Maybe you could edit the 1st post and put that sentence right below the download button, that would solve it for some people...probably :)

@Greedybro: You have to edit the framework-res and the com.htc.resources apks yourself if you want any mods...

I did that and all works just fine :)

BTW: Blay0, are you planning on porting GB from WildFire S when it's out (not the leaked one...)? :)
[Legend Android Development] janarp:
How I can put it back? I like to see when I'm in 3g network.

Thanks.

Sent from my HTC Legend
[Legend Android Development] Greedybro:
Allright I read this earlier but I'm not so good on android, I didn't realize these two files were the ones I modified applying the mods...

I'm not good but I try to learn when I want to do something, at least I try to understand what i'm doing.

But I installed these mods on B 0.5/0.6/0.7 by applying .ZIP so I did not even wonder if would work !!

Edit these files ... well okay but edit how ? Or in order to do what ?
[Legend Android Development] ogo2:
Edit build.prop in /system folder and add the following line:

ro.ril.enable.3g.prefix=1
[Legend Android Development] Bravounet:
In fact, the mods you want to apply (battery icon, navbar, etc...) are images stored in 'the-apk-we-cannot-change'.

However, you can see the content of an apk with winrar (for example), all you need to do is to replace the images (png's mostly) by the ones found in the zip you used for flashing.

I am not the one who will be able to help you a lot for explaining, but I found plenty of posts related to this on xda, and that is how I managed to change a few things in previous roms...

Hope it helps, and that someone will correct me if I am mistaken!
[Legend Android Development] SHS2000:
Yes, I did ,,

but the 100mb go down when I install apps.
[Legend Android Development] andrekua:
Mine does the same thing. I thought that was normal because Dalvik Cache still on phone storage which is causing it to go down everytime an app was installed and being run. If I move Dalvik Cache to SDCard, it does not cause phone storage to go down.

Please correct me if Im wrong.. I read that not too long ago regarding A2SD.
[Legend Android Development] Dr.Romca:
Here's an easy howto:

1) You need to re-name all apk files you want to work with to .zip files.

2) Extract them (you can modify the zip file in WinRAR as well, but it is easier while extracted)

3) Replace the .png files in res/drawable folders (usually drawable-mdpi or drawable-port-mdpi)

4) Zip all extracted files while selected "store only" in WinRAR/zip

5) re-sign (with testsign utility)

6) zipalign (this is optional, but I usually do it...)

7) you're all done, now push the file back to phone via adb!

note: You can change all png's you want in the apk, but most win programs don't same pngs in format Android can decode, that's why after editing I run them all through optipng tool...

This way you can change navbar, lockbar, battery icons, weather icons, clock backgrounds....pretty much enything in Sense...all these are png's or .9.png's (which are not that easy to modify)

Good luck!
[Legend Android Development] BlaY0:
@andrekua: True. But even if dalvik-cache is moved to SD card, every app still stores its variable data on phone storage.
[Legend Android Development] andrekua:
Which file(s) do you edit in order to alter the positioning of the PNG extracted from the APK?
[Legend Android Development] BlaY0:
@andrekua: How did you manage to do this?
[Legend Android Development] Dr.Romca:
In this case it is the label (writing) that is in the wrong position, not the image. By the way my phone works just fine...how did you get this? :D

But generaly, if you want to change something like that, you have to "decompile" the apk in question, in this case HtcDialer.apk. And only after you do that you'll be able to edit binary xml's, then you'd have to re-compile, which I never really got the hang of...sadly :(
[Legend Android Development] Greedybro:
@Dr.Romca : Thanks a lot for your time ! I remember some posts in theme forum about that. I'll lurk a bit and do it in a few days.
[Legend Android Development] BlaY0:
@Dr.Romca: Actually it's Phone.apk not HtcDialer.apk. I know this coz I put photo frame a little bit higher but I didn't touch anything else so I don't have a slightest idea why his text is displaced...

Sent from my HTC Legend
[Legend Android Development] Dr.Romca:
Riiight...or that one :) Either way this one is not in the framework ;)

EDIT: Well, as I've said mine works splendidly :)
[Legend Android Development] Dr.Romca:
I know it's much talked topic, but still, I'm gonna post a better howto (with links and such...), so anyone can edit their framework ;) It's real easy if you think about it :D
[Legend Android Development] Pharaohnough:
Good stuff

That would be nice

I love your BootAnim screens- just noticed them now

Don't know how I missed them before - very cool indeed haha

Now rocking the Knight Rider bootanim :D
[Legend Android Development] Greedybro:
Yeah the only thing i really don't know is signing apks, but i'll figure it out.
[Legend Android Development] Dr.Romca:
All done guys, see HERE, there's all about signing and all you need ;)
[Legend Android Development] alexhtclegend:
Have you partitioned the SD card with an ext3 partition alongside the normal FAT32 partition? I would recommend using a partition of 512mb - 1gb.

If you haven't, enabling a2sd won't do anything as there is no ext partition to save them to, and Android can't save apps to the FAT32 partition. That's why the Froyo method isn't good enough for a lot of people as it only moves some of the app to the SD card, whilst the rest of it stays in the internal memory. The ext3 partition fools Android into thinking that it is part of the internal memory, when it is actually on the SD card.

Maybe not the most accurate explanation, but you get the gist.
[Legend Android Development] Pharaohnough:
Thanks for the contribution @Dr.Romca
[Legend Android Development] andrekua:
Its the font. Im having trouble reading the default Comfortaa font. Therefore I changed them to Ebrima (From Win7) to improve readability. It does give some text allignment problem like phone apk and stock widget.

I have revert back to the usual Trebuchet MS font. This is the only replacement font that looks in position for all apks.
[Legend Android Development] SHS2000:
I already partitioned my SDcard but I don't know if it ext3 or ext2, and I already enabled apps2sd.. help me please !!!
[Legend Android Development] aelsharawi:
formating as ext4 hangs on this step

E:\AndroidSDK\tools>adb shell format_sd-ext ext4
Do you really want to format /dev/block/mmcblk0p2 (y/N)?

P.S

have anyone faced problem with data2ext (SLOWING the phone) ??

I used this code from BlaY0 tutorial

E:\AndroidSDK\tools>
E:\AndroidSDK\tools>adb shell mke2fs -j -m0 -b4096 -Oextents,uninit_bg,dir_inde
x /dev/block/mmcblk0p2
mke2fs 1.41.10 (10-Feb-2009)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
125056 inodes, 125000 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=130023424
4 block groups
32768 blocks per group, 32768 fragments per group
31264 inodes per group
Superblock backups stored on blocks:
32768, 98304

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 24 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

is thi ok ??
[Legend Android Development] janarp:
I added this line but nothing. Thanks anyway.

Sent from my HTC Legend
[Legend Android Development] Snowtoad23:
So what would be the main incentive in upgrading to 0.8 from 0.7? I don't see any major changes to make it worthwhile..
[Legend Android Development] BlaY0:
Then the answer is simple. Don't upgrade. Thatswhy changelog exists so ppl can consult it and decide if upgrade benefits them.

No. This is general guide on how to use some tools. In fact it says (in big red bold font) it is not meant for copy/paste commands.

First you make partitions using my customized CWM which incorporates alignment technique (you don't need swap, make it 0 size). This one will also format partitions with default parameters. Then you reboot and via terminal app or adb shell use format_sd-ext which will format sd-ext partition with optimal parameters and store those parameters in /data/local/mntparms (which is then used by a2sd or data2ext scripts). You can not use format_sd-ext the way you presented coz it is interactive, it asks you a question and you answer. After that you can enable either a2sd or data2ext and reboot again.

May I remind all of you that rebooting using a2sd or data2ext doesn't unmount sd-ext partition at all which may result in some data being lost or filesystem corruption especially if ext2 is used. And this is not problem of my scripts but system/framework itself that doesn't care about partitions which it doesn't know. However HTC (unlike AOSP) uses unmount routine upon shutdown so shutdown actually unmounts all partitions making sure all data are written before power-off.
[Legend Android Development] Dr.Romca:
Hmm...and is it possible to postpone the reboot procedure upon pressing the button and squeeze the unmount script in between? :) It's relatively useless for those with a2sd or data2ext...

I mean don't get me wrong, I love your work ;) I've been using your ROM since B0.2 ;)
[Legend Android Development] BlaY0:
You can unmount fs only after all processes stop using it so what you suggest is not possible. Besides it is the same on every single Android device using any possible ROM.

What do you mean useless? As I said it's the same on all devices running any kind of ROM using any kind of a2sd or data2ext. This is not the problem of my ROM, that's just the way it is.

I wrote once and I will repeate now...

There's always a tradeoff. More speed equals less reliability. Using ext2 does gain you some speed since it has no journaling and that means you can end up with some data being lost or fs corruption if partition isn't unmounted properly (power loss). In ext2 case fs corruption can be such that fsck can't repair it automatically and you have to do it manually and if you don't know how, reformatting is your only solution. In ext3 case you have journaling (it is basically ext2 with journaling) that means loosing data is somehow prevented (not 100% tho) and fsck can repair fs automatically but you loose quite some speed. In ext4 case there are some additional parameters that can increase speed comparing to ext3 and fsck is significantly faster. I have seen ppl formatting their partitions with ext4 but then they disabled journaling to gain speed and that's nonsense coz potential data loss equals one of ext2.
[Legend Android Development] Snowtoad23:
But stuff like

merged versions 3.15.405.3 and 3.30.415.6

some packages updated

some grafix fixes

I'm not really sure what they entail or how significant they are
[Legend Android Development] TheGrammarFreak:
merged versions 3.15.405.3 and 3.30.415.6 - 2 versions of stock firmware merged. The latest English one, and the latest Arabic one (I think)

some packages updated - Simple: things like market, GMail and the like have been updated to the latest version. This saves you updating when you install the ROM.

some grafix fixes - there were problems with graphics in earlier build of this ROM, they're now fixed.

It's all there ;)
[Legend Android Development] aelsharawi:
I/pthread ( 68): ## thread 75 is created success
I//system/xbin/sysinit( 67): Welcome to B 0.8
I//system/xbin/sysinit( 67): Initializing...
I//system/xbin/sysinit( 67): Waiting for SD card to settle...
I//system/xbin/sysinit( 67): Setting hostname...
I//system/xbin/sysinit( 67): Loading modules...
I//system/xbin/sysinit( 67): Initiating Data2EXT...
I//system/xbin/sysinit( 67): Executing file system check...
I//system/xbin/sysinit( 67): sd-ext: 11/32768 files (0.0non-contiguous), 6257/
131072 blocks
I//system/xbin/sysinit( 67): Mounting /dev/block/mmcblk0p2 to /data...
I//system/xbin/sysinit( 67): EXT partition mounted...
I//system/xbin/sysinit( 67): First time initiation, copying files to EXT parti
tion...
I//system/xbin/sysinit( 67): Data2EXT enabled...

Thx BlaY0 I follwed your advice and it woeked fine,thank u

I will now shift from A2sd to Data2ext

I hope that it was slow due to this mistake .
[Legend Android Development] dunai:
Hey Blayo :)

I upgraded to the newest rom, but know my mobile network data wont work. I says that the APN settings are wrong.

I dont know if this is because of the rom, but it started afterwards :)
[Legend Android Development] SHS2000:
Hey Blayo,

Please help me with the apps2sd . I partitioned my SDCard and formated, and I enabled the apps2sd. but, the internal space still 100MB and it goes down when I install apps

waiting your answer.
[Legend Android Development] MaBlo:
Just check it manually.
[Legend Android Development] Dr.Romca:
I'm not a programmer, so I don't know how this works, but you can umount ext fs before shutting the device down, why not before re-booting it? I mean if this was like a batch of commands that run after pressing the button is there not a way to run unmount command before reboot command? :) the reboot command could run from RAM...no?

I meant the reboot button, I obviously won't use it if it means putting the integrity of my ext2 fs at risk ;)

So do you say if I use ext4 with data2ext it will be safe to reboot via that button? I mean I rarely need to re-boot, but still :)

Thanks and please don't take this as a criticism, I'm just trying to understand a bit better ;)
[Legend Android Development] aelsharawi:
Tasker [SET cpu]

I moved again to A2sd and dc2sd,as the data2ext was really slow "even I tried to over clock"

may be it is related to my sd card [Transcend (2)]

=======================================

I love tasker ,and now it has anew feature for cpu control,but it dosn't support your kernal (I guess)

so plz support it,

I don't like set-cpu application

thx
[Legend Android Development] amvv:
app2sd doesn't increase phone's internal memory... just when u install apps the 100 MB will decrease much less than before...

i think u r looking for data2ext
[Legend Android Development] LayZeeDK:
B 0.8

Thanks a lot for a great ROM :) It's running smooth and consuming almost no power! :D

A bug I noticed though. When browsing the XDA portal, the numbers in the dates of the news articles are all messed up with weird symbols instead of actual numbers :confused:
[Legend Android Development] Snowtoad23:
From the increase SD read cache thread http://xdaforums.com/showthread.php?t=1010807 :

Maybe I'm just dumb but I can't find any init.rc file in the Rom. However there is 01init within /system/etc/init.d/ which has lines:

if [ "$NOSD" = "yes" ]; then
setprop $PROP 0
else
[B]echo 128 > /sys/block/mmcblk0/queue/read_ahead_kb[/B]
echo noop > /sys/block/mmcblk0/queue/scheduler
setprop $PROP 1
fi

If I change the 128 value in the bolded line to e.g. 2048 or around 1500, would that effectively do what is required?

This is because:

Would you be able to do this by default please Blay0? Then we can do more stuff with Tasker by default!
[Legend Android Development] yrref:
I searched but I have an issue, the Wi-Fi doesn't connect at all or anything, it goes for an IP-Address, then just disconnects :S... How would I go about fixing this? Tried the patch already.
[Legend Android Development] BlaY0:
Leave init.rc, it's in initrd image. Besides if you put it there it might not work coz USB driver might not yet been initialized. Instead find 01init in /data/local/init.d and make a copy to let say 99snowtoad and make it executable. Then edit it and leave only two lines... 1st one and one you mentioned. Make sure you put there,number divisible by 128.

Bear in mind that this tweak is not always good. For instance if you set that to 2048 and you have to read many small files let say each few kB big, you would be reading 2 MB for each and that's a big overhead if you consider that those files are scattered all over the partition.

Sent from my HTC Legend
[Legend Android Development] aelsharawi:
Would you be able to do this by default please Blay0? Then we can do more stuff with Tasker by default![/QUOTE]

That's explains a lot ,maybe why Droid wall sometimes can't detect root ,and not enabled at startup ?
[Legend Android Development] BlaY0:
Nah, I'm using DroidWall and have no problems.

Sent from my HTC Legend
[Legend Android Development] BlaY0:
It doesn't work that way. HTC put a routine into shutdown binary to stop several processes and after that call file shutdown.rc. In that file we can put anything we like. But reboot doesn't have such facility.

Yes. Much safer ;)

Try it and see if the speed suits you. BTW I'm using a2sd with 1 GB ext4 partition. It works fine for me.

Sent from my HTC Legend
[Legend Android Development] aelsharawi:
Thx snwowtoad23

Another tasker Q

The key guard pattern is disabled ,should I edit

keyguard.no_require_sim

In the sane file u mentioned ?

________"_________""_______

The Droid wall ,cache folder under data/data/google.Droid.........

Is missing,, is this why Droid wall not working ?
[Legend Android Development] e3rfn:
is the data network working properly ?
[Legend Android Development] Dr.Romca:
Works just great for me ;)

OK, I understand now...too bad :-( EDIT: hmmm...would it be possible to make a reboot.rc that could be run after several commands? :D Just a thought here :)

OK, I'll try that, I've been using data2ext since the first release... BTW Is there a way to port the data back to /data in the phone ? I'm not sure if pull and push through NTFS would work....And is there something like "dir" command in adb?

Oh and thanks for those explanations ;)
[Legend Android Development] da_hool:
I've been using Ogo2's desocialized version for awhile and thought I'd give CM7 Final Stable a try while I wait on the new the version based on B 0.8... But CM7 just doesn't look/feel as polished and smooth on an HTC Legend.

Anxiously awaiting for Ogo2's release! :)
[Legend Android Development] joelivethelife:
Blay0, your wake on trackpad is awesome. I was wondering can i use that on yogen rom? I need use the wake on trackpad a lot when i was on b0.7...

i tried the wake on trackpad mod but it only wakes the phone about 10 second after locking...

EDIT: I'm coming back to B0.8.... Yogen ask too many bugs... :( Btw, i do love one thing about Yogen is the HTC UI espresso, i wonder if that is available in b0.8?
[Legend Android Development] JonasDroid:
You need blayo's kernel or a kernel witch has remove the time out for inputs like the trackpad. (Can't rember the actual word for that but I hope you understand)

Only 2 lengend kernels supporting that are Blayo's and CM (as far as I know)
[Legend Android Development] andrekua:
I had this strange bug with B08. Im wondering if I am the only one having it.

There are times when right after you wake the phone up after a long sleep, the phone hangs there for more than 10 seconds soon after. If you push the power button to sent it to sleep and re-wake it soon after, its fine.
[Legend Android Development] aelsharawi:
I had a similar issue

Mine was due to improper CPU and RAM management

I used tasker for CPU

And advanced task killer and auto kill for ram mangment

Now its ok
[Legend Android Development] aelsharawi:
Idea :

I had i-mate jam in the past ,and there was a way to increase the physical RAM by hex editing the ROM file.

Can we do it in our legend ?
[Legend Android Development] dgupta:
I am also facing the same issue. It slows my legend badly.:(
[Legend Android Development] BlaY0:
I guess that was possible coz that device had actually more physical RAM than you thought it had coz it was limited by software on purpose.

That is not the case with Android coz its kernel is GPL licensed thus open source.

However there's one way to "somehow" enlarge amount of RAM by using compcache. That's basically compressed swap space in physical RAM. That way you can actually put 10x more of data into some range/portion of physical RAM. It has its drawbacks tho. It has to constantly compress/decompress data which means slower throughput and more processor utilization that leads to bigger battery drainage.

Are you guys using a2sd or data2ext?

Sent from my HTC Legend
[Legend Android Development] vip333:
0.8 seems very unstable in my legend, apps crashing all the time, the screen freezes and i need to pull out the back cover, and then reboot

I cleared the dalvik cache before upgrading into 0.8, did i do something wrong or its the rom?

Sent from my HTC Legend
[Legend Android Development] m11c3:
hi blayo, can i request rom non-sense?

cause using rom sense my legend can't detect wifi sharing adhoc from my pc