Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,147 Members 50,938 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE] FM-Radio notification widget only favorite stations

Tip us?
 
Jimvest
Old
(Last edited by Jimvest; 1st April 2014 at 09:21 AM.)
#1  
Jimvest's Avatar
Member - OP
Thanks Meter 17
Posts: 49
Join Date: Sep 2013
Default [GUIDE] FM-Radio notification widget only favorite stations

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:	450
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:	320
Size:	33.4 KB
ID:	2661107


5.
Change nextStation to nextFavorite
and previousStation to previousFavorite

Click image for larger version

Name:	3.png
Views:	271
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
The Following 7 Users Say Thank You to Jimvest For This Useful Post: [ Click to Expand ]
 
C.Eduardo
Old
#2  
C.Eduardo's Avatar
Member
Thanks Meter 9
Posts: 64
Join Date: Apr 2012
Location: Porto Alegre - RS (BRASIL)
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!!!
Devices:
- Xperia Z1 - c6943 White with stock 4.4.4
- Xperia ZQ - c6503 Black with stock 4.4.2


Chronology Devices:
Nokia 5230 > Xperia Neo > Xperia Arc > Xperia S > Galaxy S3 > Galaxy Note 2 > Galaxy S3 (again for 1 week ) > Xperia Z > Xperia Z Ultra > Xperia ZQ & Xperia Z1
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes