Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[GUIDE] FM-Radio notification widget only favorite stations

OP Jimvest

31st March 2014, 08:29 PM   |  #1  
Jimvest's Avatar
OP Member
Thanks Meter: 17
 
49 posts
Join Date:Joined: Sep 2013
More
Hi
This mod changes behavior of the Fm-Radio widget so that next/previous buttons choose next or previous radio channel from your favorite list.

Click image for larger version

Name:	Screenshot_2014-03-31-21-26-18.png
Views:	468
Size:	66.7 KB
ID:	2661113

Things you need
- APKTOOL
- Notepad++
- Original Radio3.apk



1.
Decompile Radio3.apk

2.
Navigate to smali/com/sonyericsson/fmradio/service/

3.
Open FmService.smali with Notepad++

4.
Search for nextStation

Click image for larger version

Name:	2.png
Views:	328
Size:	33.4 KB
ID:	2661107


5.
Change nextStation to nextFavorite
and previousStation to previousFavorite

Click image for larger version

Name:	3.png
Views:	278
Size:	32.5 KB
ID:	2661108

6.
Save, Compile and sign Radio3.apk

7.
Copy file to phone

8.
Move file to system/app with permission rw-r-r 644

9.
Enjoy

10.
Hit thanks button if this helped =)


Here is my already modified radio3.apk from z1

https://app.box.com/s/0asv30uy7y7782rffcys
Last edited by Jimvest; 1st April 2014 at 10:21 AM.
The Following 7 Users Say Thank You to Jimvest For This Useful Post: [ View ]
6th April 2014, 05:04 PM   |  #2  
C.Eduardo's Avatar
Member
Porto Alegre - RS (BRASIL)
Thanks Meter: 9
 
64 posts
Join Date:Joined: Apr 2012
More
Excellent!
And still made ​​it work without headphones.

Now I ask something that might be difficult to make.
A kind of widget on the lock screen for FM Radio. When listening to FM radio, consider as if was playing the default music player and could trace station without having to unlock the device.

I leave here a challenge for developers, hehehe!!!
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes