yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] shafty023:
Audio fix for 1.5r3

Ok for everyone having issues not receiving audio notifications on 1.5r3 I have found a fix for it. Ya I know you can thank me later. Anyways here it is.

ADB METHOD

1) Download the attachment "a2sd.txt" to your computer

2) adb remount

3) adb push a2sd.txt /system/bin/a2sd

4) adb shell chmod 774 /system/bin/a2sd

5) adb shell reboot

Terminal Method

1) Download the attachment "a2sd.txt" to your computer

2) Mount your sdcard to your pc, u know connect the usb cable, pull down the notification window at the top, select to mount your sdcard via usb

3) Copy the a2sd.txt file over to your sdcard

4) unmount your sdcard, then unplug usb cable

5) Open up Terminal

6) su

7) mount -o rw,remount /dev/block/mtdblock3 /system

8) cp /sdcard/a2sd.txt /system/bin/a2sd

9) chmod 774 /system/bin/a2sd

10) Reboot your phone and enjoy Audio!

P.S. Let me know if this doesn't entirely fix your problem, I tried literally like 20 different things and finally got it working and I've narrowed it down to this being the fix. PM me please as I don't always check these threads
[G1 Android Development] turboyo:
ill try this in a few mins via terminal

EDIT: IT WORKS!!! lol thank you very much Shafty.. and thank you JAC Miketaylor and Manup (the themes is the sickest thing Ive seen, as complete as it gets) and everyone else who had something to do with this .. this thing is superb

EDIT2: man Im such an end user .. I just read the .txt file and couldnt help but really LOL .. where do you guys come up with these things
[G1 Android Development] miketaylor00:
Thats way too many steps. Just use mine:
[G1 Android Development] turboyo:
dam I didn't see yours.. If there's a way to revert back easily or something and you want me to try it let me know .. but his definitely worked for everything
[G1 Android Development] :
I've also noticed not having 3g where 3g is available.

Only showing G for Gprs.

Notification sounds for email... do not seem to work.

I'm still using 1.52 nowipe.

Sometimes i get a FC when using hardkeyboard in landscape mode, anybody getting the same result?

Batterytime really seems to be doing well on this xROM.
[G1 Android Development] OFinch:
it worked

I tried Mikes way and it worked so far.. get all my sound on text and google chat.. Thanx a lot Mike.. so it has to be that BFS interfering with your scripe. thanx
[G1 Android Development] shafty023:
Well with my way the a2sd script won't exit with an exit status of 1, meaning failure. If you follow his procedure it will exit with a status of 1 which the init process, the one that called "start a2sd", will receive this exit status and act accordingly with it.

You are free to choose whichever but I'd recommend doing it the proper way. Not just saying that because I wrote it either :p
[G1 Android Development] shafty023:
I wrote a response to this as your method will produce an exit status of 1 in the a2sd script, which in turn will pass that back up to the init process. Although it might seem like a lot, it should be done the "right" way.
[G1 Android Development] miketaylor00:
You wouldn't want a meaningless error that you never see ;)
[G1 Android Development] OFinch:
so I did it Miketaylers way.. what's gonna happen now? It's working now, but what will happen later?
[G1 Android Development] shafty023:
I agree the error would go unnoticed in the adb logs but that's no reason to take a shortcut when the correct method is literally only a couple more lines.

Tisk tisk. Anyways it's no big deal. No need to throw our ego around. Let's get back to development and keeping Android working optimal
[G1 Android Development] turboyo:
its cool I was just willing to try it to make sure his way worked to, but someone already did so.. Ill stick with this .. if it aint broke dont fix it
[G1 Android Development] miketaylor00:
FYI IF YOU DO NOT RUN THIS COMMAND YOUR A2SD SCRIPT IS PROBABLY NOT EXECUTING

su

chmod 755 /system/bin/a2sd

This only applies to those who replaced the file.
[G1 Android Development] miketaylor00:
This is a very temporary fix meant for the least experienced users. Yoy didn't include setting the properties for the file so yours is not even executing.

The real fix will be in a patch and will be done the proper way. I promise you.
[G1 Android Development] AndyBroke:
This is one of the fastest roms i have tried! But it seem to drain the battery pretty fast. Even with a hero rom it lasted one day with no problems. After i flashed this rom it didnt even last half the day. I have started to use it as a mp3 player, but thats only for 10 min. on my way to work.
[G1 Android Development] Paging Dr B:
im at 80% and have had it on for a good part of the day, sending emails, browsing, and in the market. Maybe you have an app running in the background that is sucking your battery life?
[G1 Android Development] shafty023:
Nada, you won't notice anything different. Either way will work.

I just like to make sure and keep exit statuses in mind when writing scripts as it could be checked elsewhere down the line
[G1 Android Development] shafty023:
The a2sd service is launched as follows

So execution bit does not need to be set. It is already launched explicitly with /system/bin/sh /system/bin/a2sd.

But yes I realize this is temporary
[G1 Android Development] miketaylor00:
The script cannot be executed by the system if it does not have the permissions to do so. I've made changes to it before and it wouldn't execute until I applied the permissions. I've made this same mistake myself.

I'm not trying to be a jerk. Your method was fine. It's how I would have done it if it was a permanent fix. But it's not. I just know from experience that updating the A2SD file will keep it from executing unless you update the permissions. I've banged my head against that wall already and learned my lesson.
[G1 Android Development] turboyo:
shafty bro it stopped working for me :[
[G1 Android Development] justanothercrowd:
r4 is up with BFS reverted for now :)
[G1 Android Development] OFinch:
hi Thanx question

Is this with Cyanogen's updated BFS that he just released today? the new updated 1.5.r4 I'm talking about.. And do I need to wipe coming from 1.5.r3 and also .. Mike do I have to enter that code again that you guys us to make sound come back on by turning off your script.. Thanx a lot again guys and Jac Mostly.. keep them coming :)
[G1 Android Development] miketaylor00:
You shouldn't need to delete my file or use the a2sd replacement. Just run r4 as is and let us know if it is better than r3.
[G1 Android Development] blueheeler:
I'm really confused.

Now that r4 is out and it says "reverted" in regards to BFS, does that mean that this rom no longer has any BFS goodness?
[G1 Android Development] Paging Dr B:
1.5r3 is running great for me.

Can someone *splain this "reverted BFS patches" in 1.5r4 and give advice on whether to flash or not. Dont get me wrong flashing is fun but... dunno about flashing if i dont need to.

*long live mickey marcado
[G1 Android Development] miketaylor00:
JAC posted a version without BFS because he knew that it was causing a conflict but wasn't sure the cause. Also, BFS is draining the battery a little faster for us. He just wanted to help out those who don't want to search through the thread to find the fix that we talked about. There will likely be a more permanent update when we get it all straightened out.

If you are on r3 and it is running ok for you, either because you used one of the fixes or not, just stick with it for now.
[G1 Android Development] blueheeler:
Thanks Mike.

That explained it great.
[G1 Android Development] gn02256676:
Just flashed r4 from r3 without wipe or anything, not noticing a thing in terms of performance or feature wise, notification still no sound, gonna fix that now...
[G1 Android Development] miketaylor00:
It might not have overwritten the files correctly when you did the update. Do the manual fix

su

rwsystem

rm -r /system/bin/setPriority.sh
[G1 Android Development] shafty023:
PM me and I'll figure out what changes have been made and how to get it fixed
[G1 Android Development] miketaylor00:
ROM Update. Please Read!!!

I just finished talking this over with JAC. He looked into the BFS code and it turns out that renicing processes is not a good idea when you are using BFS. My prioritization script works great, it just doesn't work with BFS and maybe isn't needed nearly as much with BFS. I asked JAC to remove it and we'll see how things go with just BFS. So far it is working pretty well for the people who have tried the work around.

JAC is out for now but will post an updated ROM later that will get rid of the renice conflicts and will hopefully resolve the radio issues that some people have been seeing.

I apologize for the issues. There is a lot of pressure from people who want the newest latest stuff and they want it yesterday. In an attempt to get a release out faster we let this slip through the cracks. Thank you for your patience.

PLEASE WAIT FOR THE NEXT UPDATE BEFORE UPGRADING. If you have any questions please let me know.
[G1 Android Development] shafty023:
I'm sure for the other ROM's out there not using BFS your script will definitely come in handy. Good work
[G1 Android Development] uansari1:
If we're still on r3, can't we just remove your script to accomplish what a new release would?
[G1 Android Development] miketaylor00:
Thanks. I think they will. I had a couple people testing it on other ROMs and they loved it. It's too bad my solution came at the same time that a better overall solution was found. Oh well, I learned a little bit figuring it out so even if no one uses it, it was fun.
[G1 Android Development] miketaylor00:
There may be changes to the radio in the next release. Look for the change log when it is posted. If the ONLY change is removing my script then, yes, it would be the same. But I told JAC about the weird radio issues people have had and we think the donut code is too "soggy" to use right now. The donut needs a little more time in the fryer.
[G1 Android Development] uansari1:
Haha... I gotcha man. That's also an issue I haven't been having to the best of my knowledge. I guess I'll have to try to stress my phone a bit more.
[G1 Android Development] sacredsoul:
cmod 4.1.7 is out with updated BFS and Compcache....
[G1 Android Development] shafty023:
Before I start spending much time looking for a fix for this, has anyone else had issues where if they are in an app like Messaging and flip their keyboard out, type a message, hit send, then flip it back the screen will not rotate back to portrait mode?

The only workaround I've found at the moment is to put the phone to sleep (duh hit the power button so it goes to standby) and wake it back up. The lockscreen comes up in Portrait mode and so does the rest of the phone thereafter. If the issue is isolated then I'll worry about it later, if others are having the same issue I'll look into it.
[G1 Android Development] miketaylor00:
Yeah, it is a known issue, not ROM specific. If I use benchmark Pi it screws it up because it doesn't rotate, so when I open the keyboard it jacks it up. I wrote a script, in my signature that will temporarily fix this. It deletes the files that get corrupted. If you can figure out a way to make it reboot and run from recovery that would be awesome. I don't know how to do that.
[G1 Android Development] miketaylor00:
xROM will have both tonight as well.
[G1 Android Development] uansari1:
What are the changes to compcache?
[G1 Android Development] sacredsoul:
Excellent. Was just letting you guys know :P Thanks guys!
[G1 Android Development] shafty023:
Strangely this issue never existed for me in v1.4r3 so I'm wondering if the Donut code has something to do with this. Perhaps akmd should be reverted to an older version. I'll check and see which libraries/binaries were changed from 1.4r3 to 1.5r3.
[G1 Android Development] miketaylor00:
I've had it before and on other ROMs. It's not xROM specific, check out the FAQ on the stable ROM for Cyan. He tells you the steps that are in my script
[G1 Android Development] miketaylor00:
Swap free notify, which makes it so that compcache gets rid of old stale data.

It will also have the updated BFS which should make prioritization more efficient.
[G1 Android Development] sensimila:
I was wondering if anybody is having any problems with the camcorder. I keep getting force closes. I was thinking about reinstalling the camera app but I need to find the apk. i just installed adb to share my log dump. hope this hasnt been answered yet in the forum. i also run snap photo pro as my default camera. but in this scenario i used the default camcorder app that came with xrom. thanks
[G1 Android Development] uansari1:
Camera click sound isn't working on my phone.. anyone else having this problem?
[G1 Android Development] saprano614:
ok so what is up with r4. i havent had any problems with r3. everything seems to be working fine. should i flash r4? what is it gonna change?
[G1 Android Development] dta1974:
Yeah,I keep getting force closes too...over and over,I don´t use snap photo pro,I reformatted my memory card and performed a clean installation and still keep getting them.

Just installed previous version and came across the same issue.
[G1 Android Development] uansari1:
Mike's already answered this... you are like me. You haven't experienced any issues with r3, so we should stick to that version. r5 will be out soon though.
[G1 Android Development] Boomgawd:
Sten's Lockscreen

Ok, so whats the deal with this unfinished lockscreen? It's nice, but when someone calls I cant see who it is without pressing menu twice and its really just a battery gauge right now..

How do I remove this thing?
[G1 Android Development] miketaylor00:
I think it will be removed in r5. I found out that it is draining the battery.
[G1 Android Development] Boomgawd:
Mint! Thanks Mike.
[G1 Android Development] Ryanmo5:
Good deal, hell i wish it could be removed altogether that would be nice! Btw your tip the other day worked as far as hearing echoes while talking to people, thanks a million mike!
[G1 Android Development] miketaylor00:
JAC is looking into this and the camcorder force closing. It is an issue with Donut Code with the camcorder. CM has the same problem.
[G1 Android Development] Ryanmo5:
Mine is working just fine! :)
[G1 Android Development] iserlohn:
WIFI Sleep

Is anybody else having problems getting their WIFI to sleep when the screen is off? My WIFI is continously on even after I went into the advanced settings screen to tell it to sleep when my screen is off.
[G1 Android Development] YPhoto:
Market Update Count

I noticed my market update count is off by one, I think this has followed me for several ROM updates, but this morning I finally verified the count. The lock icon comes up in the notification bar and says there are 8 updates, when I check in the market I actually only have 7. Is there a file I can clear or edit to fix this? It really isn't a big deal, but figured someone may be able to point me in the right direction.

I am currently running v1.5r4 and love it!

Thanks
[G1 Android Development] shafty023:
I always thought the lockscreen was in an apk but come to find out its not. Have any idea where the code for it is located? I was checking through the framework files but that's taking a while. Unzip jar file, decompile classes.dex , look through numerous folders, etc etc etc
[G1 Android Development] The Ape:
Hello, this is my firtst post :)

1. The JacX Rom`s are great. From all custom roms i`ve tested this is the weapon of choice...

2. I`ve flashed the new 1.5r3 yesterday

Here the questions/problems

Whats wrong with the new Lock Screen? I don`t like the Design and the "widgets" are useless. When i press the music button in lock screen it always says: "Music Controller! Work in Progress..."

and when I press the SMS/MMs Button...nothing happens...

Get the old Lockscreen back and I´m happy...

After flashing there was 67mb of internal space available. then i`ve wiped and there were 87mb free internal. Why??

the config backup (i found by pressing "menu") is a cool feature, but i didn`t work 4 me. what exactly is it doing ? I`ve backuped the config, flashed the new rom, testet, then wiped, then restored config, but nothing happend to the config.

i haven`t testet this very well, but i think the battery life is smaller than before.

these are the problems i`ve found in new version. don`t want to complain, just reporting bugs !! It`s definitly the best cupcake rom...

(please excuse my writing!! foreigner ! )
[G1 Android Development] mike105105:
I disagree, I love the new lock screen. As for the widgets, they stated that is is a work in progress and not all features are implemented yet. I hope the new lock screen stays.

I have not had any of the radio issues that others are reporting and I havent noticed any excessive drain on my batt, the only problem I have is the ringtone for notifications stopped which doesnt really bother me so I am just staying at 1.5r3 for now.

Keep up the good work fellas!

Mike
[G1 Android Development] miketaylor00:
The new lockscreen is great, but you are right it does need some work. I did some monitoring on it and found out that it is checking the battery even when the phone is off, which can cause some battery drain. It might even be related to some of the other issues people have been seeing. So it will probably get removed until it is a little more polished.

As far as the memory goes, that is probably due to you installing apps. It's expected. Free memory means that you aren't using it. You paid for your entire phone, so get your money's worth. There is a certain amount of free memory that gives the phone room to work but 67MB is at least twice as much free memory as the phone needs, so you are fine.

The advanced launcher is a also a work in progress. Visit the thread for that project and you can find out more about it. It does have some other features in this build that are quite nice so it was better to include the latest version even though the backup isn't working yet. Part of being on a development site is that you are going to get some things that are a work in progress. JAC makes sure that they are relatively stable before he puts them in his build. Sometimes, like with the lockscreen there was demand for it but it just hadn't been used by anyone so no one really knew how stable it was.

I'm glad you like the build. The next release should be even better.
[G1 Android Development] The Ape:
Yap, that`s my problem too...or a Problem of the Rom ??

I didn`t had any Radio Problems...just the behavoir of the internal storage was freaky...

another problem with the lockscreen: shows "wird geladen" (in english: "getting charged" at everytime...even when it`s not plugged to AC.

...dumb the new lookscreen :) ...
[G1 Android Development] miketaylor00:
There is a fix a few pages back that will help with your ringtones until the next release comes out. Go to terminal and type the following:

su

rwsystem

rm -r /system/bin/setPriority.sh
[G1 Android Development] rgl12miami:
HI, I am running xrom v1.5r4 and I have 2 words: GREAT ROM!

I suggest that JAC updates the build.prop file to reflect the correct mod.

I also find a bug: market->download->menu->notifications = Force Close.

Keep up the good work!
[G1 Android Development] The Ape:
thx a lot !!!

worked !!
[G1 Android Development] shafty023:
That fix worked for me by the way. It'd be interesting to find out which process has a lock on those files so we could delete them while Android is running, then kill the process that has a lock on em, then wait for Android to restart that process and we're back to normal :)
[G1 Android Development] miketaylor00:
The akmd process is the compass. I think there is a an rild process but I haven't looked for it. I think I have gotten them to delete before. I checked the directory and they weren't there. But for some reason it didn't fix it.
[G1 Android Development] shafty023:
Yup looks to be a framework issue, possibly caused by the Donut code
[G1 Android Development] shafty023:
With Linux everything is loaded in memory, unlike in Windows. So when a process opens a file handle to a file it is grabbing the inode for it which points to the exact location on disk (there's no disk fragmentation like in windows either). So when you delete those files you are deleting them from the operating systems inode pointer but not the actual file on disk. So the process still has a pointer to the actual file.

Hence the reason for us to not only delete the files, but kill/restart the process with an open file handle to them so that it clears its record of the inode to the file. With an actual Linux distribution we have "lsof" which lists open file handles and which process has them open. Unfortunately with Android it hasn't been ported over yet......
[G1 Android Development] OFinch:
Let me know when you guys restart after using mike's code if your ringtones for notifications still work. Because after I restarted mine didn't work.
[G1 Android Development] shafty023:
What release are you on?
[G1 Android Development] miketaylor00:
OFinch, I'm sorry I thought the new release would be up by now. Try running the installer for 1.4r3 again and then delete the file again. That *should* fix it for you.
[G1 Android Development] uansari1:
So I'm noticing another new issue. Let me know if this is happening to anyone else... My Gmail isn't syncing properly. If I delete an email on my phone or on via PC, the changes aren't reflected even after a few hours on the other. As far as I remember, this wasn't the case in v1.4...
[G1 Android Development] Coderedpl:
So i found myself having the problem with the radio aswell.

Shows 2g more than it should. I always had 3g in the area im in and now i only get 2g.

Any fix?

Does R4 fix this?

My battery didnt last throughout the workday either so thats not normal :|
[G1 Android Development] OFinch:
sorry it took so long to respond.. i was running v1.5.r3. listened to you guys mike and shafty not to upgrade.. so I just switch to hero to see how that was.. But I will be coming back as soon as he updates. Can't wait. Any information on that?
[G1 Android Development] senaia:
I would love to comment on the issue with the radio. Normally where I live, I only get a 2g signal.my house is right in the middle of a 3g blackspot. Since I flashed 1.5 any revision, I've been getting a medium 3g signal... seems to be the opposite for everybody else...
[G1 Android Development] uansari1:
Haha... I just flashed to JACHeroSki 2.0 myself to try it out... it's interesting. :)
[G1 Android Development] miketaylor00:
As I mentioned before, probably pages ago by now, the Donut radio isn't quite ready. There are certain parts of it that seem to work better but not everything. I spoke with JAC and he is going to back that stuff out and use the old radio. That should resolve the issues people are seeing with the radio.

The battery drain is probably related to the lock screen checking the battery status constantly, even when the screen is off. The radio is a huge battery hog in general so it's possible that the donut radio is making this worse too. JAC is working taking the offending donut code out but its easier said than done. He's delivered me a build that has the updated BFS and swap free notify code for compcache. So far that end of it is performing well, the ringtone issues are definitely gone. He will get it out as soon as possible.
[G1 Android Development] OFinch:
lol.. how are you liking it.. I can't get my text over there with backup for root users.... But yea, waiting on the new release from Jac.. keep up the great work guys and thank you all for your help here on these forums
[G1 Android Development] miketaylor00:
I had that once. Go into manage apps and delete the Gmail storage data. Then open it up and synce again. I haven't had a problem with is since then.
[G1 Android Development] turboyo:
Dude I just really hope the next build is this one w/o the lockscreen and maybe the radio but I can live with the radio. This thing with your configs is so fast that I'm scared of flashing something else and loosing the efficiency this has