[PORT] Smart call handling from Z2

Search This thread

azeez77

Senior Member
Jul 18, 2011
285
51
Sydney
i want to access Gesture settings via Settings in KK @nuts ROM .757 all is working great just cant seem to get Gesture settings via Settings to work any help would be great
 

sucker for sony's

Senior Member
Jan 2, 2012
334
199
Sittingbourne
thanks for the reply but there is no Settings.apk\res\xml\personalization_settings.xml in KK ROM there is only semcsettings.apk and in there file there is no res\xml\personalization_settings.xml or am i just going crazy.

Settings.apk is located in /system/priv-app you need to pull the app and decompile it, add the intelli settings to the req'd xml using notepad++ then recompile settings.apk and sign it. Once that's done just push the modded settings.apk back to its original position on your device with correct permissions and reboot.
Note: You need super user mod installed for it to work because of doing this changes the settings.apk signature and it won't work unless signature check is patched.

Sent from my C6903 using XDA Premium 4 mobile app
 
  • Like
Reactions: hatimak and azeez77

goldsmit409

Senior Member
Nov 14, 2011
152
12
Hi sorry for noob question
But how to flash this?
Is done via flashtool or using recovery I just rooted my z1 and this is all new to me
Can anyone tell me steps?
Thanks
 

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Hi sorry for noob question
But how to flash this?
Is done via flashtool or using recovery I just rooted my z1 and this is all new to me
Can anyone tell me steps?
Thanks

Just flash from recovery and install apk file to be able to control option (on/off)

There's a method to add option in settings so you don't need to use that apk file , you can control it like you control all other settings like brightness or volumes...

Sent from my C6903 using Tapatalk
 

goldsmit409

Senior Member
Nov 14, 2011
152
12
Just flash from recovery and install apk file to be able to control option (on/off)

There's a method to add option in settings so you don't need to use that apk file , you can control it like you control all other settings like brightness or volumes...

Sent from my C6903 using Tapatalk
Thanks man

Can you explain how to decompile the file so I can add it to settings and where should I find the app to decompile
And all this can be done on phone itself?
 

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Thanks man

Can you explain how to decompile the file so I can add it to settings and where should I find the app to decompile
And all this can be done on phone itself?

Yes and no...

There are few apps that could decompile apk file but that's not something I would recommend...

Decompiling, signing, developing, editing and recompiling isn't possible to explain in one sentence and this thread isn't about that...

There are many tutorials here on XDA so check there...

Or just search using Google...
LINK

Sent from my C6903 using Tapatalk
 

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
the one im using is from page 4 ill give it a try again thanks

No, sorry...
I didn't get you...
Don't use that...

Ask someone from iHackers ROM to send you settings.apk.
That settings have smart features in it.

If I'm at home I would edit settings for you but I'm not...

Sent from my C6903 using Tapatalk
 

azeez77

Senior Member
Jul 18, 2011
285
51
Sydney
No, sorry...
I didn't get you...
Don't use that...

Ask someone from iHackers ROM to send you settings.apk.
That settings have smart features in it.

If I'm at home I would edit settings for you but I'm not...

Sent from my C6903 using Tapatalk
Ok thanks bro iv got iHackers ROM downloaded here somewhere ill pull it from there and give it a try im in no rush if you could help with an edited settings that would be great
 
Last edited:

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Ok thanks bro iv got iHackers ROM downloaded here somewhere ill pull it from there and give it a try im in no rush if you could help with an edited settings that would be great

Sure...as soon as I get home...
But as I said, just move settings.apk to priv-app folder (change permissions first) restart and flash mod...

It'll be OK..

BTW, that mod doesn't work for many of us but if you wanna try OK..

Sent from my C6903 using Tapatalk
 

azeez77

Senior Member
Jul 18, 2011
285
51
Sydney
Iv got the mod installed and seems to be fine all 3 working great just do you want me to PM my settings.apk to you and whenever you have time

Sent from my C6903 using XDA Premium 4 mobile app
 

funky0308

Inactive Recognized Themer
Aug 27, 2012
7,029
5,681
Osijek
Iv got the mod installed and seems to be fine all 3 working great just do you want me to PM my settings.apk to you and whenever you have time

Sent from my C6903 using XDA Premium 4 mobile app

BTW...
You have motion control added in latest mod by @Rajeev
9agu8evy.jpg


BLACK THEME APPS

Sent from my C6903 using Tapatalk
 

goldsmit409

Senior Member
Nov 14, 2011
152
12
i flashed this but answering does not work for me m on stock .757 other two are fine
i read that answering works when phone is in sleeping mode.... when i call my self light will turn on i put it on my ear but nothing any help???

Edit: it works for right ear not left whats up with that???
maybe something to do with the placement of sensor when its over the left ear
nywz thnx a lot
 
Last edited:

iTechParadise

Member
Mar 23, 2013
11
2
28
Liège, Belgium
Great work! It work perfectly !
I decompiled and recompiled Settings.apk on .757 if someone wants the apk, ask me ;)

(Sorry for my bad English, but I'm Belgian)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 72
    Thanks to DooMLoRD for Z2 system dump!
    I ported Smart call handling from Z2.
    I tested with C6903 4.3 and 4.4
    Works with both LB and UB.

    Note:
    Smart call only works fully when the screen is sleeping (off).
    If the screen is on and received the call, only reject will work.
    This is a bug, but only Sony can fix...

    I also tried to port Smart Backlight, but it didn't work and there's no error...
    ogzJIdC.png



    Download:
    --For 4.3--
    flashable zip (Mirror)
    *UPDATED to 17.1.A.1.2 version*
    flashable zip (Mirror)
    *UPDATED to 17.1.A.2.36 version*
    flashable zip (Mirror)
    --------------
    *For 4.4, flash this *
    flashable zip

    shortcut app (Mirror)

    Installation:
    1. Flash zip via recocery
    2. Install shortcut app (or find activity with launcher: IntelligentSettings)
    3. Open "Gesture" app and enable
    4. Done!

    ------------------
    If you want to access Gesture settings via Settings,
    decompile /system/app/Settings.apk
    *decompile /system/priv-app/Settings.apk if you are using 4.4*
    and open Settings.apk\res\xml\personalization_settings.xml,
    then add
    Code:
    <com.sonymobile.settings.preference.IntentPreference  android:key="intelligent" settings:dependOnIsValidIntent="true"  settings:hasMetaData="true">
            <intent  android:targetPackage="com.sonymobile.intelligent.settings"  android:targetClass="com.sonymobile.intelligent.settings.IntelligentSettings"  />
        </com.sonymobile.settings.preference.IntentPreference>
    after
    Code:
    <PreferenceScreen android:title="@string/wireless_networks_settings_title"
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">
    wpYf5Cv.jpg


    Compile Settings.apk and install it with flashable zip or adb or something.
    Now you can access settings in Personalization Settings.
    ------------------

    Feel free to add this in your ROM, it's Sony's great work:laugh:
    5
    Updated to 17.1.A.2.36 version
    flashable zip (Mirror)

    "Smart call handling" became "Smart call".
    It will be "Smart" in the next version:D
    7nZjxMu.png
    4
    D
    Deleted member 4529355
    Modified Settings.apk for Android 4.4.4. Download from MediaFire

    http://www.mediafire.com/download/k90d71129agjtai/Settings.apk
    3
    plz port for Xperia Z/ZL :D
    3
    Oh, I forgot to update flashable zip...
    This zip will work, I moved IntelligentGesture.apk to priv-app.
    flashable zip

    If you want to edit Settings.apk to add motion settings,
    you must not delete Androidmanifest.xml when you use "keep folder" option.
    System won't recognize Settings.apk if you touch Androidmanifest.xml.

    Here's deodexed and added motion Settings.apk for .681
    https://mega.co.nz/#!i4w1DKTI!dEd_Dmu1_5rcmq6x4uzY3mIlT8oAYFaqnppiYOuJPqA