yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] timtucker:
So I'm dumb...

I shouldn't have tried this while I was at work because I got distracted and forgot to change the permissions on the file after I pushed it using adb. Now my beloved N1 won't even get to the boot animation. Any ideas for a fix other than a Nandroid restore? TT
[Nexus One Android Development] crimsondr:
Added trackball skip. See OP for details.
[Nexus One Android Development] tien71700:
worked for me on lastest leofroyo.

I had to reboot twice though.

Thanks!!!!!!!!!!
[Nexus One Android Development] cdw9800:
does trackball skip only work for the stock music player?
[Nexus One Android Development] THATTON:
If I push this, I still keep wake & unlock, correct?
[Nexus One Android Development] crimsondr:
I'm not sure. I didn't write the original code and I've only tested with the stock music player. Give it a try and let us know!

If you push trackball skip you will lose trackball wake/unlock. The point of trackball skip, is to skip songs without waking the device so you can't have both together.
[Nexus One Android Development] eViL D::
Dude, you're a star!
[Nexus One Android Development] cdw9800:
so i just flashed to cm6 test last night is it the same code? if so it dont work im going to make a back up and test on another build and report back
[Nexus One Android Development] Henchman:
If you use Root Explorer you can change permission of the file as well with it.
[Nexus One Android Development] crimsondr:
I would guess that you would lose cm6 specific modifications by pushing this.
[Nexus One Android Development] there_are_four_lights:
works on this one

[ROM] FRF85B Stock, Deodexed, rooted, busybox, TB alert/wake/unlock updated 7/1/10 - h**p://xdaforums.com/showthread.php?t=714184
[Nexus One Android Development] danimar1:
Trackball skip works perfectly with Stock deodexed FRF85B.

Thank you for giving us the code crimsondr!!!!
[Nexus One Android Development] cdw9800:
so i tested on MCR20 and trackball skip only works on stock music player i tried using doubletwist i like the look and feel of the app good test anyway
[Nexus One Android Development] crimsondr:
Thanks for testing it out.
[Nexus One Android Development] osugsxr:
unable to figure out how to push from terminal user, or using astro file manager to overwrite it..... any suggestions? I know how push it from computer, but wont be home till monday or so....
[Nexus One Android Development] URPREY:
Very helpful. Thanks!
[Nexus One Android Development] antiochasylum:
Will someone please enlighten me on how to change permissions??
[Nexus One Android Development] URPREY:
Did you read all of the posts in this thread detailing how to do this? What part are you stuck on?
[Nexus One Android Development] antiochasylum:
I was half asleep when I read how to do it. lol I finally woke up and it came to me, fixed and no FC's at all. Now my phone is complete :)
[Nexus One Android Development] drziddo:
Hi people!

Can anyone please teach me how to "push"?

I can't find the way...

Thanx in advance.

:confused::confused::confused::confused:
[Nexus One Android Development] torchedlh:
I would suggest you backup the original FIRST! I did not do that and am getting FC's. IS there any way of restoring the original? Can i just paste in somewhere else's that has the same ROM? Or can i reflash my ROM ontop of my existing without wiping?
[Nexus One Android Development] jayjay1234:
Not to sound stupid but is it double tap for track ball skip because it's not work for latest Rodriguezstyle rom.

Is there anyway of using your volume rocker skip songs?

Thanks
[Nexus One Android Development] hjaltih:
Confirmed working on FRF83 with

adb remount
adb push android.policy.jar /system/framework/

with USB Debugging enabled :)
[Nexus One Android Development] timtucker:
Nevermind, I fixed it with a Nandroid restore.
[Nexus One Android Development] drziddo:
Working on AsimRom v21. FRF85B.

Done the easy way, via root explorer.

Thanx a lot!
[Nexus One Android Development] drziddo:
It works OK on FRF85B, ASimRom v21.

Thanx.
[Nexus One Android Development] hjaltih:
I had similar problems at the first reboot, rebooted again and everything worked fine.

Had some hickups aswell becouse I didn't take a Nandroid before this (Had a recent one though)
[Nexus One Android Development] osugsxr:
trying to push with computer.... anyways my device is on, not in bootloader screen. Device is found, able to remount...succeed... trying the following

adb push android.policy.jar /system/framework/ get the following.... cannto stat android.policy.jar no such file or directory....

Im running command prompt from my sdk tools with the andriod.policy.jar in the folder. Where am I going wrong, Thanks
[Nexus One Android Development] torchedlh:
Thank you!!
[Nexus One Android Development] osugsxr:
went through the post seems as if someone else had same problem, not sure how it was fixed though.....
[Nexus One Android Development] crimsondr:
Just means that the file does not exist in your current directory. Is that the correct name? The files you download from the mediafire links are not named properly.
[Nexus One Android Development] osugsxr:
error.... was able to figure it out, the file download shows android.policy I went ahead and renamed it android.policy.jar..... this is how I kept getting the error, I changed it back to original and did adb push android.policy

Trackball wake is now working!!!
[Nexus One Android Development] crimsondr:
That means your computer is not set to show file extensions. So when you renamed the file it was actually called android.policy.jar.jar, it just did not show the last .jar. Because if you really pushed android.policy to your phone it would not work.
[Nexus One Android Development] britoso:
works great on FRF83.

Got a bit scared as the 'DexOpt: mismatch dep signature' lines in logcat
[Nexus One Android Development] osugsxr:
Yes that is correct....computer isnt set to show file extensions, so it was android.policy.jar.jar .......
[Nexus One Android Development] J.L.C.:
Wake and unlock doesn't work with Stock FRF85B :(

Got the file in the right place with the right permissions using Root Explorer, rebooted, but the screen still locks and only the power button wakes it.
[Nexus One Android Development] dizon:
First post, here we go!

Hopefully someone here can help me and get Trackball skip working.

I used root explorer to send android.policy.jar over to system/framework - over-wrote original file, changed permissions to U R/W rest R. Rebooted, ran stock music app and it didn't seem to work. I'm under the assumption this is like previous versions where it is off by default and you have to go into Music --> Settings to turn it on. Funnily enough, running FRF85B there is no settings option when I run music. Is this just me, or can anyone reproduce the issue? Did a quick search and AFAIK no one seems to be having the same problem.

Thanks in advance, these forums are ridiculously good.

*edit*

If it makes any difference, using stock FRF85b. and noticing the above post it seems that it doesn't work for stock :(
[Nexus One Android Development] AllanJacques:
Is it possible to make trackball skip work with doubletwist?
[Nexus One Android Development] Docmjldds:
My way was better :(

Above is a quote from a prior post, different Forum. This worked beautifully and worked with ALL music players. Sure would be nice to go back to FRF85 versions of ROMS before trackball wake was invoked in what I feel is a half baked state, such as manually pushing these files here and still not working with other music players. Any advice on what I need to push to get back to my older setup prior to ROMs installed/baked with Trackball wake supposedly installed.
[Nexus One Android Development] crimsondr:
This can't be right. Sorry, but can you double check again that you have downloaded the correct file and pushed it to the correct location?

Also, with this patch there is no setting, it is on always.
[Nexus One Android Development] dizon:
Not a problem, will give it a go now and edit this post with results. FWIW, using "jonnykzckvj/android.policy.jar.aosp.froyo.S" renamed to "android.policy.jar".

Still the same. Even went to recovery and reboot from there hoping it'd make a difference. *facepalm*.
[Nexus One Android Development] worker1:
Of course, worked great for me. I renamed the existing jar file to android.policy.jar.bak with root explorer, then copied the new jar file and ran chmod 644 /system/framework/android.policy.jar

Rebooted and it's working great!
[Nexus One Android Development] rohandhruva:
Any reports whether this works on the newly released FRF91 update? http://goo.gl/6IgW
[Nexus One Android Development] umicha:
I encountered the same situation... R20v3Final
[Nexus One Android Development] danimar1:
I'm using it with a stock de-odexed rom without problems.

Remember trackball skip works only when the screen is off.
[Nexus One Android Development] FormelLMS:
Read the first post and fix the permission of android.policy.jar

Thats it and works!
[Nexus One Android Development] namtrac:
Does this require a deodexed ROM?
[Nexus One Android Development] FormelLMS:
wow, it's on Modacos ROM now. Congrats!
[Nexus One Android Development] CreativeBR:
I think i have made anything very stupid...

I did the copy procedure with rootexplorer and then set the r/w properties with rootexplorer also.

But after the reboot my beloved Nexus dont even boot... Its stuck in that first cross image.

There is a backup of the original jar into the system/framework folder named *.original and another one on SD card.

How can i try to restore the original one? Or try to push again the new jar? adb is not seeing my Nexus but fastboot can.

Thanks a lot for any help.

Creative

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

EDIT: Never mind. It was the Brazil driving me crazy in FIFA CUP!!! Even stucked in boot logo i could push the JAR again and everything is ok now.

When i rename the JAR before i dont know why but i have left a space between "." and "JAR".
[Nexus One Android Development] Bakano:
I can read the title, but seeing as how FRF91 has been released today.... anyone know if this works with it?? I'm about to try, but if someone replies with "no" then maybe i won't =) lol

::EDIT:: it works! =)
[Nexus One Android Development] J.L.C.:
Tried again with the same result.

I'm rooted on stock FRF85B, but my bootloader is still locked.

Moved trackballwake_unlock to System/framework after renaming to android.policy.jar, chmod to 644, reboot.

Phone will not wake with anything but the power button and I have to slide to unlock.

I guess I'll stick with "No Lock" until CM6 is out.
[Nexus One Android Development] malevolent000:
Do a nandroid to restore org android.policy.jar>copy and paste trackballwake to sd root>rename> copy and paste wth root explorer to /system/framework > chmod 644 through ADB> adb reboot > Done!
[Nexus One Android Development] J.L.C.:
Copy/Pasted renamed trackballwake_unlock to sd card with root explorer to system/framework

xx@xx:~$ cd AndroidSDK
xx@xx:~/AndroidSDK$ cd tools
xx@xx:~/AndroidSDK/tools$ adb shell
$ su
# cd system/framework
# ls
android.policy.jar
services.odex
bmgr.odex
services.jar
bmgr.jar
pm.odex
android.test.runner.odex
pm.jar
android.test.runner.jar
monkey.odex
android.policy.odex
monkey.jar
javax.obex.odex
am.odex
javax.obex.jar
am.jar
input.odex
input.jar
ime.odex
ext.jar
ime.jar
core.odex
framework.odex
core.jar
framework.jar
svc.odex
framework-tests.odex
com.google.android.maps.odex
framework-tests.jar
svc.jar
framework-res.apk
com.google.android.maps.jar
ext.odex
# chmod 644 android.policy.jar
# exit
$ exit
xx@xx:~/AndroidSDK/tools$ adb reboot

Same result.

Only power button wakes the screen, and I'm greeted with the slide to unlock once I wake it with the power button.

Maybe it requires an unlocked bootloader or a custom ROM to work?
[Nexus One Android Development] crimsondr:
Recompiled against latest AOSP. Deleted my previous environment so I don't know if anything changed. But here's the latest.
[Nexus One Android Development] crimsondr:
It requires a deodexed rom.
[Nexus One Android Development] www1:
I can ask if u can complile also the service.jar for insert battary percentage?

Here the commit

http://github.com/cyanogen/android_frameworks_base/commit/3a5f2e4bbe0411738b8921aad81f8b1e5de69138

http://github.com/cyanogen/android_frameworks_base/commit/cc79426a30cc6e6748c5ebcdbd89aaac4036f257
[Nexus One Android Development] ahnfeldt:
Thank you, thank you thank you!!

Now the trackball works like it supposed to!!
[Nexus One Android Development] crimsondr:
Look here.
[Nexus One Android Development] torchedlh:
This may be obvious to most, but can someone tell me how Trackball Unlock works? Is it like Trackball Wake but a second click of the trackball unlocks it? Thanks..
[Nexus One Android Development] Cpt.Curry:
I know this is a stupid question, but I'm a noob at this, how do you push this into the android.policy.jar
[Nexus One Android Development] crimsondr:
Yes. When you're on the unlock screen, pressing the trackball will unlock your screen.

Rename the file you download to android.policy.jar then from the command prompt run this:

adb push android.policy.jar /system/framework/android.policy.jar
[Nexus One Android Development] dekkon:
Tried this on CM6-N1 alpha, works fine but now when I have my USB cord plugged it on the home screen it says Sorry, try again. Anyone else have this issue?
[Nexus One Android Development] nephron:
Confirmed working on Kang-o-Rama 0.9 SP2 :D

Thanks a lot bro!
[Nexus One Android Development] asinner:
it work fine with me on mcr r20.

but i can't push an apps to sd with ti backup, the menu was disappeared. i had to nand restore, to be able to push apps to sd with ti back up.

anyone have solution?

thanks..
[Nexus One Android Development] namtrac:
Better make sure this is in the first post.
[Nexus One Android Development] Zemaree:
Not any way to use it on a odexed rom? I have 93 rooted but not deodexed and of course doesn't work.
[Nexus One Android Development] crimsondr:
I don't think so.
[Nexus One Android Development] FormelLMS:
No, you cannot change such things with a non de-odexed rom. Why not using Pauls MCR r21 FroYo?
[Nexus One Android Development] xzr3b0rnzx:
i am using MCR r21 .. renamed to android.policy.jar,tried adb push android.policy.jar /system/framework/ . failed to copy : read only file system :/
[Nexus One Android Development] rohandhruva:
Did you do an "adb remount" first?
[Nexus One Android Development] nephron:
Alright people, there are like 20 posts on how to push the file to your phone and get it working. This is what you gotta do

Download the file you want and rename it to android.policy.jar

Put android.policy.jar on your desktop and follow the commands below.

adb remount
adb pull /system/framework/android.policy.jar C:\
cd Desktop
adb push android.policy.jar /system/framework/android.policy.jar
adb shell chmod 644 /system/framework/android.policy.jar
adb shell reboot

Note: The second step is optional but recommended. It gets your original file and puts in on your C drive so you have a backup.
[Nexus One Android Development] lauslein:
I have no clue about deodexing and I searched 4 pages on Google without any enlightment, so I guess my question is pretty dumb, but: Wouldn't it be possible to deodex only the abdroid.policy?

I'm also using a stock rom (rooted) and I don't wanna change that just for this mod – even though I really like it :(
[Nexus One Android Development] xzr3b0rnzx:
thanks got it working !
[Nexus One Android Development] Domskibus:
Does it work with this MusicReplacement, too?

http://xdaforums.com/showthread.php?t=690180
[Nexus One Android Development] bmj1086:
Yeah. I did exactly that and it's not working. Not all of us are stupid.
[Nexus One Android Development] dr3minem:
Yes, you can enable it in the settings
[Nexus One Android Development] FormelLMS:
For all, where it doesnt work:

Buy root explorer or Estrongs FileExplorer. Copy the file to your SD Card.

And move it to /system/framework/ Set the right permission and reboot.

Ready.
[Nexus One Android Development] palosjr:
can i use both trackball wake and skip, or will they not work well together..
[Nexus One Android Development] crimsondr:
No, you can't use them together. trackball wake would defeat the purpose of skip. The point of trackball skip is to skip to the next track without waking the device. But trackball wake will wake the device on first press.
[Nexus One Android Development] palosjr:
ok that was my thinking.... thanks for the quick response! great work here. really loving the functionality.
[Nexus One Android Development] palosjr:
what settings?
[Nexus One Android Development] mythamp:
Thanks, works brilliantly! :)

Followed nephron's steps (thanks again) to the word, except kept the .jar in the same folder as my adb.exe to make things easier.

The first reboot took a lil bit more time than usual but now life has been made so much easier!
[Nexus One Android Development] Jesse6749:
I just installed modacos r21 custom rom and then installed this file using the given instructions and it works great after rebooting my N1.
[Nexus One Android Development] dipeshb:
Volume Skip

crimsondr, great work on the trackball skip solution!! When I run this is very usefull..

I know on a Cyan ROM I was able to long press UP and DOWN volume buttons on my Nexus to skip forward and reverse tracks, has anyone or can you do this? I would be massively greatfull!!

Nice work - thanks
[Nexus One Android Development] bt1980:
trackball wake + battery %

edit because i found the solution to my own question. it was a non-issue. thanks
[Nexus One Android Development] lim_ryan:
nice one, now no need worry the power button going to die, thanks
[Nexus One Android Development] THATTON:
I tried to push this to Enoms new Froyo build and afterward many of my apps would FC while trying to open, Market, Rom Manager, quite a few of them actually. I know his spare parts mod lets you do wake but not unlock yet apparently. Any ideas on why this would be happening or is this mod not compatible with AOSP builds? Oh, and the permissions are set correctly.
[Nexus One Android Development] crimsondr:
This was made for aosp builds.
[Nexus One Android Development] davelis828:
hi all

can somebody plz write me the commands to do this,since ive never manually "pushed" any files on ma phone expect windows explorer

i m suspecting i need to rightclick in the android SDK Tools dir and then push the file???
[Nexus One Android Development] THATTON:
That is what I thought. Do you know why it would not work with Enoms latest?
[Nexus One Android Development] crimsondr:
Sorry I don't know. Never tried his roms.
[Nexus One Android Development] Unquestionable:
This worked beautifully. Thanks to the guys behind CM and to you crimsondr.
[Nexus One Android Development] davelis828:
i pushed the trackball wake/unlock,works fine

if u push trackball skip,will TB wake/unlock work as well?
[Nexus One Android Development] :
just an idea: it would be nice if the trackball wake is enabled but not the unlock, pushing the trackball in the unlock screen will send to sleep the device again.

For example, to watch the time, would be great just tu push the trackball two times: one to wake the phone, and once more to make it sleep again.
[Nexus One Android Development] voicunebunu:
I was also wondering if this exists outside of the Cyanogen Mod. Has anybody come across the track skip using a long press on the volume keys?
[Nexus One Android Development] AaronJoYee:
Hi there,

I am having a weird problem. I did everything there but SOMEHOW my phone do not have enough space to paste the file.

Really not my day. What should I do? :( What should I delete?

It shows I have only 5mb -_- How is that possible?
[Nexus One Android Development] bcji:
i can't find it in settings? is it in settings? please help
[Nexus One Android Development] qtwre:
Hi, it seems the mediafire links in the original posts are no longer available.
[Nexus One Android Development] crimsondr:
Mediafire is bugged. If you remove the filename from the end of the link it will work.
[Nexus One Android Development] techlogik:
Works like a charm on Evil Shot Redux Froyo.
[Nexus One Android Development] bryanchapman9999:
Bet no ones had this before!

Just pushed the trackball wake to my MCR Froyo / sence ROM - just to see if it would work.

Booted.

Noticed where it would say charging, it says other ----strange.

Noticed no signal ----- bummer

But where it would normally say 'vodafone UK'

It says 'Windows Live' !!!!!!!

Edit: But trackball wake works!!

Edit2: ...but phone locked up, removing battery. Dont use it on this ROM guys!

Edit3 .... what a tale! Extracted the original android.policy.jar from ROM download, pushed and rebooted. LauncherPro stuck in a constant FC. Had to nadroid back!
[Nexus One Android Development] ExtraDas:
Does anyone have a stock android.policy.jar they can link to?

The ROM I'm using came with Wake/Unlock and I can't stand it as it unlocks in my pocket all the time.
[Nexus One Android Development] wdfowty:
I pushed Trackball Wake to Paul's r23 MCR Desire port and it wouldn't boot past the "HTC quietly brilliant" splash, required a nandroid restore. Shame, as this is the only thing (aside from Trackball alert support) that would make this rom even more perfect.

edit: I tried again to push this to my nexus running r23 and I am also getting the "windows live" carrier and the Nexus 1 lockscreen...very strange...

I would also like to know if source is available, as I'd like to look into porting this to the N1 Desire rom. Thanks in advance.
[Nexus One Android Development] player911:
Very nice!

I used the Track Skip feature because I travel alot using my Car's Audio Input jack. While driving I had to hit the power button, unlock, and press to skip.

This saves a lot of hassle. BTW Track Skip is a double press on the trackball while screen is off. Took me a minute to figure it out.
[Nexus One Android Development] RMGeren:
Looking for Source

Crimsondr: I'm building my own custom ROM from AOSP source and was wondering if you could point me to the right direction so I can build in trackball wake. Your android.services.jar worked just fine, but I'd like to build it myself. In which .java file is it located? I could compare the CM-6 or 5.08 source if I know which file to look in. I'd love the reference for your battery percentage, too! Thanks.
[General Questions and Answers] Melon_Bread:
NOTE: I Am On Linux Mint 9 32 bit

Okay So I Have Lately been trying TO Get The Latest Android Source Code From Google

Now I Follow The Instructions Down To The Wire (The Ones For Ubuntu, But They Should In Theory Work For Mint 9), And Everything Works Up Until I get To This Part:

And When I Try To Run That Line Through The Terminal I Get This Error:

Traceback (most recent call last):
File "/bin/repo", line 91, in ?
import readline
ImportError: No module named readline

Now I Know What The Problem is, It Is Looking For The readline.so in the the lib folder, Yet Even Though It Is There It Still Wont Work.

Now I Have Tried All 2.x.x Versions Of Python (2.4.6, 2.5.5, & 2.6.4) and None Of Them Work.

Also With Each Version I Run:

$ ./configure --enable-readline

And Still the Same Error.

i Have Been working On this For About 3 Hours Now And Still Now Luck.

I Tried A Google Search But Every Topic Get Close To Helping Someone Get It Then Stops.

Please Help Me Out Here ?
[General Questions and Answers] Melon_Bread:
Okay So I Found The Solution.

repo runs STRICTLY off of 2.4.x and for some reason when I installed Python 2.4.6 readline.so was never put into:

/usr/local/lib/python2.4/lib-dynload/

So I copied the readline.so from my Python 2.6.4 folder (File Download Below)

and put it into:

/usr/local/lib/python2.4/lib-dynload/

Then I ran repo again and it worked fine.

Although it withh give you an API mismatch warning, but so far it has worked fine
[HD2 Windows Mobile 6.5 Themes and Apps] dan138zig:
Hi, guys

Does any of you have wallpapers from classic movie posters or scenes? Thank you.
[HD2 Windows Mobile 6.5 Themes and Apps] watcher64:
You want them sized for the phone or are you just looking in general??

Might have some but they are not sized for the phone ...