Sunday, September 11, 2016

Help to check some data for FM radio S7 edge

Hello,
I decompiled framework.jar for our phone and found some infos about FM radio

1:in android/app/SystemServiceRegistry.java from framework.jar

Code:

const-string v0, "0"

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    if-lez v0, :cond_4e3

    const-string v0, "FMPlayer"

    const-class v1, Lcom/samsung/media/fmradio/FMPlayer;

    new-instance v2, Landroid/app/SystemServiceRegistry$93;

    invoke-direct {v2}, Landroid/app/SystemServiceRegistry$93;-><init>()V

    invoke-static {v0, v1, v2}, Landroid/app/SystemServiceRegistry;->registerService(Ljava/lang/String;Ljava/lang/Class;Landroid/app/SystemServiceRegistry$ServiceFetcher;)V

which is equal with:
temp=0
if (temp>0){activate FM system service} so never

2: In com/android/server/FMPlayerNative.java from same jar

Code:

.line 16
    const-string v2, "fmradio_jni"

    invoke-static {v2}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V

equal: System.loadLibrary("fmradio_jni"); which dont exist in our phone but i found an old one from S5 maybe is ok

Anyone can help me to test more things? i made a new framework.jar to enable FM service but i cant test it because i cant just put it in system/framework on android 6 and i dont know what to do. i can upload it here if someone can test new jar and i made a small apk to try to see what logcat say if i try to acces FM service


from xda-developers http://ift.tt/2cbKp0B
via IFTTT

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home