[ROM] [LOLLIPOP] [LMY48G] [Synman's GwT ROM for Tilapia] [carcosa] [2015/07/03]

Synman

Recognized Developer
Nov 2, 2010
826
547
0
Outside Philadelphia
www.shellware.com
Have also confirmed NO resolution of the phantom outgoing call on BT headset connect experienced by myself and others. More digging neccessary .

Curious to know if I solved the phantom voicemail reported by a few folks over the past year.


Sent from my Galaxy Nexus using Tapatalk 2
 
Last edited:

kitsunisan

Senior Member
Jan 2, 2009
719
95
0
I'm going to be busy most of the day tomorrow(or today, at 2am), but when I get some time I'll try this rom again and see if I get the voicemail notification again. Fwiw, it's happened on another rom as well, not just this one.
 

Synman

Recognized Developer
Nov 2, 2010
826
547
0
Outside Philadelphia
www.shellware.com
For those (like me) that are fed up with a random (dial last #) broadcast on BT headset connect I'm in the process of researching root cause.

Code:
04-15 21:01:20.887  1084  1084 D BluetoothAdapterProperties: CONNECTION_STATE_CHANGE: 00:08:F4:00:2B:E7: 0 -> 2

04-15 21:01:20.887  1084  1242 D BluetoothAdapterService(1090677056): Get Bonded Devices being called

04-15 21:01:20.897  1084 14480 D BluetoothAdapterService(1090677056): getState(): mAdapterProperties: [email protected]

04-15 21:01:20.897  1084  1161 E HeadsetStateMachine: terminateScoUsingVirtualVoiceCall:No present call to terminate

04-15 21:01:20.897  1084  1084 D HeadsetPhoneState: sendDeviceStateChanged. mService=1 mSignal=4 mRoam=0 mBatteryCharge=2

04-15 21:01:20.947  1084  1241 D BluetoothAdapterService(1090677056): getState(): mAdapterProperties: [email protected]

04-15 21:01:20.947  1084  1242 D BluetoothAdapterService(1090677056): getState(): mAdapterProperties: [email protected]

04-15 21:01:20.957  1084  1088 D dalvikvm: GC_CONCURRENT freed 407K, 10% free 5400K/5952K, paused 47ms+2ms, total 103ms

04-15 21:01:20.997   484   727 I ActivityManager: START u0 {act=android.intent.action.CALL_PRIVILEGED dat=tel:xxxxxxxxxxxx flg=0x10000000 cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster} from pid 1084

04-15 21:01:21.057   798   798 D PhoneNumberUtils: System property doesn't provide any emergency numbers. Use embedded logic for determining ones.

04-15 21:01:21.057   798   798 D PhoneNumberUtils: System property doesn't provide any emergency numbers. Use embedded logic for determining ones.

04-15 21:01:21.057   798   798 D PhoneUtils: checkAndCopyPhoneProviderExtras: some or all extras are missing.

04-15 21:01:21.067   484   502 I ActivityManager: Start proc com.google.android.apps.googlevoice for broadcast com.google.android.apps.googlevoice/.CallInterceptor: pid=21446 uid=10061 gids={50061, 3003, 1015, 1028}

04-15 21:01:21.157   484   916 I ActivityManager: No longer want com.google.android.gsf.login (pid 13443): empty #17

04-15 21:01:21.167   798   798 D PhoneNumberUtils: System property doesn't provide any emergency numbers. Use embedded logic for determining ones.

04-15 21:01:21.167   798   798 D PhoneUtils: checkAndCopyPhoneProviderExtras: some or all extras are missing.

04-15 21:01:21.167   484   920 I ActivityManager: START u0 {act=com.android.phone.SIP_SELECT_PHONE dat=tel:xxxxxxxxxxxx flg=0x10000000 cmp=com.android.phone/.SipCallOptionHandler (has extras)} from pid 798

04-15 21:01:21.257  1084  1206 E bt-btm  : tBTM_SEC_DEV:0x692d2074 rs_disc_pending=0

04-15 21:01:21.257  1084  1206 W bt-btif : bta_dm_check_av:1

04-15 21:01:21.257  1084  1206 W bt-btif : [0]: state:1, info:x10

04-15 21:01:21.257  1084  1122 W bt-btif : btif_dm_cback : unhandled event (14)

04-15 21:01:21.297   484   920 D dalvikvm: GC_FOR_ALLOC freed 2756K, 19% free 15412K/18908K, paused 80ms, total 81ms

04-15 21:01:21.297   484   499 I ActivityManager: Displayed com.android.phone/.PrivilegedOutgoingCallBroadcaster: +260ms
Some additional data on this condition (phantom outgoing call on headset connect).

It appears that HeadsetStateMachine is receiving a phantom processKeyPressed() and is falling into an unchecked else condition that assumes the keypress is a "Dial Last Number" request.

I can definitely defeat this event but would like to understand better first why its being fired. In any "event" I'll have a fix coded for this today.

Code:
    private void processKeyPressed() {
        if (mPhoneState.getCallState() == HeadsetHalConstants.CALL_STATE_INCOMING) {
            if (mPhoneProxy != null) {
                try {
                    mPhoneProxy.answerCall();
                } catch (RemoteException e) {
                    Log.e(TAG, Log.getStackTraceString(new Throwable()));
                }
            } else {
                Log.e(TAG, "Handsfree phone proxy null for answering call");
            }
        } else if (mPhoneState.getNumActiveCall() > 0) {
            if (!isAudioOn())
            {
                connectAudioNative(getByteAddress(mCurrentDevice));
            }
            else
            {
                if (mPhoneProxy != null) {
                    try {
                        mPhoneProxy.hangupCall();
                    } catch (RemoteException e) {
                        Log.e(TAG, Log.getStackTraceString(new Throwable()));
                    }
                } else {
                    Log.e(TAG, "Handsfree phone proxy null for hangup call");
                }
            }
        } else {
[COLOR="Red"]            String dialNumber = mPhonebook.getLastDialledNumber();
            if (dialNumber == null) {
                if (DBG) log("processKeyPressed, last dial number null");
                return;
            }
            Intent intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
                                       Uri.fromParts(SCHEME_TEL, dialNumber, null));
            intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            mService.startActivity(intent);[/COLOR]
        }
    }
 
  • Like
Reactions: androidkid311

Synman

Recognized Developer
Nov 2, 2010
826
547
0
Outside Philadelphia
www.shellware.com
Please find the following patch for addressing phantom dial last number event on BT headset connect and the addition of webrtc_audio_coding.so currently missing from Craig's GAPPs package.

Bluetooth.apk contains the HeadsetStateMachine class
webrtc_audio_coding.so is needed by Google TTS for Text To Speech processing

This patch ONLY APPLIES to RC5. It will not work properly on any other distribution of GwT.

http://forum.xda-developers.com/devdb/project/dl/?id=220
 
  • Like
Reactions: androidkid311

subnet_zero

Senior Member
Dec 7, 2010
56
10
0
Frankfurt
My N73G has a bootloop with your RC5 (JSS15J) version, other versions not tested. :(
I was on stock 4.3 ( JWR66V) base before flashing your Synman_GwT-RC5.zip.

Now I'm back to stock with my backup from CWM.

BTW: Nice bootanimation.:good:
 

tschork

Member
May 20, 2007
27
8
0
Odd.. Are you guys doing a factory image install and full boot first?

Sent from my Galaxy Nexus using Tapatalk 4
yep, which caused me to lose my rc3 nandroid backup. didn't thought the pseudo sd card would be formatted.

Sent from my Nexus 7 using XDA Premium 4 mobile app
 

tschork

Member
May 20, 2007
27
8
0
RC6 (based on JWR66Y) is up... see OP for details. I was able to (finally) get uploads to XDA working and have validated the MD5 for this install. Additionally did multiple flash tests coming from a JWR66Y base with ZERO problems.
I tried to install RC6 this morning.
Without wiping (from stock install) I have a boot crash and looping with this logcat:
D/dalvikvm( 2366): GC_CONCURRENT freed 863K, 12% free 9816K/11092K, paused 3ms+2ms, total 50ms
D/dalvikvm( 2366): GC_EXPLICIT freed 183K, 13% free 9688K/11092K, paused 1ms+3ms, total 50ms
I/SystemServer( 2366): Entropy Mixer
I/EntropyMixer( 2366): Writing entropy...
I/SystemServer( 2366): User Service
I/SystemServer( 2366): Account Manager
I/SystemServer( 2366): Content Manager
I/SystemServer( 2366): System Content Providers
E/ActivityThread( 2366): Failed to find provider info for settings
E/System ( 2366): ******************************************
E/System ( 2366): ************ Failure starting core service
E/System ( 2366): java.lang.NullPointerException
E/System ( 2366): at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:865)
E/System ( 2366): at android.provider.Settings$Secure.getStringForUser(Settings.java:2807)
E/System ( 2366): at android.provider.Settings$Secure.getIntForUser(Settings.java:2901)
E/System ( 2366): at android.provider.Settings$Secure.getInt(Settings.java:2895)
E/System ( 2366): at com.android.server.am.CoreSettingsObserver.populateCoreSettings(CoreSettingsObserver.java:93)
E/System ( 2366): at com.android.server.am.CoreSettingsObserver.sendCoreSettings(CoreSettingsObserver.java:70)
E/System ( 2366): at com.android.server.am.CoreSettingsObserver.<init>(CoreSettingsObserver.java:55)
E/System ( 2366): at com.android.server.am.ActivityManagerService.installSystemProviders(ActivityManagerService.java:7013)
E/System ( 2366): at com.android.server.ServerThread.run(SystemServer.java:282)
I/SystemServer( 2366): Input Method Service
W/InputMethodManagerService( 2366): Couldn't create dir.: /data/system/inputmethod
E/ActivityThread( 2366): Failed to find provider info for settings
F/SystemServer( 2366): BOOT FAILURE starting Input Manager Service
F/SystemServer( 2366): java.lang.NullPointerException
F/SystemServer( 2366): at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:865)
F/SystemServer( 2366): at android.provider.Settings$Secure.getStringForUser(Settings.java:2807)
F/SystemServer( 2366): at com.android.internal.inputmethod.InputMethodUtils$InputMethodSettings.getSelectedInputMethod(InputMethodUtils.java:872)
F/SystemServer( 2366): at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:681)
F/SystemServer( 2366): at com.android.server.ServerThread.run(SystemServer.java:364)
F/SystemServer( 2366): BOOT FAILURE making display ready
F/SystemServer( 2366): java.lang.NullPointerException
F/SystemServer( 2366): at com.android.server.ServerThread.run(SystemServer.java:380)
W/SystemServer( 2366): ***********************************************
I/SystemServer( 2366): Accessibility Manager
W/SystemServer( 2366): ***********************************************
F/SystemServer( 2366): BOOT FAILURE performing boot dexopt
F/SystemServer( 2366): java.lang.NullPointerException
F/SystemServer( 2366): at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:4441)
F/SystemServer( 2366): at com.android.server.pm.PackageManagerService.performBootDexOpt(PackageManagerService.java:3647)
F/SystemServer( 2366): at com.android.server.ServerThread.run(SystemServer.java:386)
W/dalvikvm( 2366): threadid=11: thread exiting with uncaught exception (group=0x415e0700)
I/Process ( 2366): Sending signal. PID: 2366 SIG: 9
W/SystemServer( 2366): ***********************************************
E/AndroidRuntime( 2366): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 2366): java.lang.NullPointerException
E/AndroidRuntime( 2366): at com.android.server.am.ActivityManagerService.showBootMessage(ActivityManagerService.java:4441)
E/AndroidRuntime( 2366): at com.android.server.ServerThread.run(SystemServer.java:392)
I/Zygote ( 2154): Exit zygote because system server (2366) has terminated
E/installd( 130): eof
E/installd( 130): failed to read size
I/installd( 130): closing connection
I/ServiceManager( 120): service 'telephony.registry' died
I/ServiceManager( 120): service 'scheduling_policy' died
I/ServiceManager( 120): service 'batteryinfo' died
I/ServiceManager( 120): service 'usagestats' died
I/ServiceManager( 120): service 'appops' died
I/ServiceManager( 120): service 'display' died
I/ServiceManager( 120): service 'sensorservice' died
I/ServiceManager( 120): service 'power' died
I/ServiceManager( 120): service 'package' died
I/ServiceManager( 120): service 'activity' died
I/ServiceManager( 120): service 'meminfo' died
I/ServiceManager( 120): service 'gfxinfo' died
I/ServiceManager( 120): service 'dbinfo' died
I/ServiceManager( 120): service 'cpuinfo' died
I/ServiceManager( 120): service 'permission' died
I/ServiceManager( 120): service 'entropy' died
I/ServiceManager( 120): service 'user' died
I/ServiceManager( 120): service 'account' died
I/ServiceManager( 120): service 'content' died
I/ServiceManager( 120): service 'accessibility' died
W/AudioFlinger( 2152): power manager service died !!!
I/ServiceManager( 120): service 'media.audio_flinger' died
I/ServiceManager( 120): service 'media.player' died
I/ServiceManager( 120): service 'media.camera' died
I/ServiceManager( 120): service 'media.audio_policy' died
I/Netd ( 2410): Netd 1.0 starting
W/InterfaceController( 2410): Warning (dlopen failed: library "/system/lib/libnetcmdiface.so" not found) while opening the net interface command library
I/mediaserver( 2409): ServiceManager: 0x40cf0300
I/AudioFlinger( 2409): Using default 3000 mSec as standby time.
I/CameraService( 2409): CameraService started (pid=2409)
I/CameraService( 2409): Loaded "NVIDIA Development Platform Camera HAL" camera module
I/AudioPolicyManagerBase( 2409): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
I/AudioFlinger( 2409): loadHwModule() Loaded primary audio interface from Grouper audio HW HAL (audio) handle 1
I/AudioFlinger( 2409): HAL output buffer size 512 frames, normal mix buffer size 1024 frames
I/AudioMixer( 2409): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
E/MonoPipe( 2409): Failed to fetch local time frequency when constructing a MonoPipe (res = -32). getNextWriteTimestamp calls will be non-functional
D/AndroidRuntime( 2411):
D/AndroidRuntime( 2411): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime( 2411): CheckJNI is OFF
D/MDnsDS ( 2410): MDnsSdListener::Hander starting up
D/MDnsDS ( 2410): MDnsSdListener starting to monitor
D/MDnsDS ( 2410): Going to poll with pollCount 1
D/dalvikvm( 2411): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2411): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2411): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2411): Added shared lib libnativehelper.so 0x0
W/dalvikvm( 2411): PR_SET_NO_NEW_PRIVS failed. Is your kernel compiled correctly?: Invalid argument
I/SamplingProfilerIntegration( 2411): Profiling disabled.
I/Zygote ( 2411): Preloading classes...
D/dalvikvm( 2411): GC_EXPLICIT freed 37K, 9% free 436K/476K, paused 0ms+0ms, total 2ms
D/dalvikvm( 2411): GC_EXPLICIT freed 4K, 4% free 507K/528K, paused 1ms+1ms, total 3ms
D/dalvikvm( 2411): Note: class Landroid/app/ActivityManagerNative; has 163 unimplemented (abstract) methods
D/dalvikvm( 2411): GC_EXPLICIT freed 22K, 5% free 538K/564K, paused 1ms+0ms, total 3ms
D/dalvikvm( 2411): GC_EXPLICIT freed 13K, 3% free 598K/616K, paused 1ms+1ms, total 4ms
D/dalvikvm( 2411): GC_EXPLICIT freed 26K, 5% free 629K/660K, paused 1ms+0ms, total 3ms
D/dalvikvm( 2411): GC_EXPLICIT freed 28K, 5% free 656K/688K, paused 0ms+0ms, total 3ms
D/dalvikvm( 2411): GC_EXPLICIT freed 81K, 10% free 789K/876K, paused 1ms+0ms, total 4ms
D/dalvikvm( 2411): GC_EXPLICIT freed 28K, 7% free 816K/876K, paused 0ms+0ms, total 4ms
D/TextLayoutCache( 2411): Using debug level = 0 - Debug Enabled = 0
I/dalvikvm( 2411): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
D/MtpDeviceJNI( 2411): register_android_mtp_MtpDevice
I/dalvikvm( 2411): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
I/dalvikvm( 2411): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
I/dalvikvm( 2411): threadid=1: recursive native library load attempt (/system/lib/libmedia_jni.so)
D/dalvikvm( 2411): GC_EXPLICIT freed 25K, 4% free 848K/876K, paused 0ms+1ms, total 4ms
D/dalvikvm( 2411): GC_EXPLICIT freed 26K, 4% free 886K/916K, paused 1ms+1ms, total 5ms
D/dalvikvm( 2411): GC_EXPLICIT freed 20K, 3% free 920K/944K, paused 0ms+1ms, total 4ms
D/dalvikvm( 2411): GC_EXPLICIT freed 31K, 4% free 944K/976K, paused 1ms+1ms, total 5ms
D/dalvikvm( 2411): GC_EXPLICIT freed 12K, 2% free 1003K/1020K, paused 0ms+1ms, total 5ms
D/dalvikvm( 2411): GC_EXPLICIT freed 29K, 3% free 1311K/1344K, paused 1ms+1ms, total 8ms
D/dalvikvm( 2411): GC_EXPLICIT freed 34K, 3% free 1347K/1384K, paused 0ms+1ms, total 7ms
D/dalvikvm( 2411): GC_EXPLICIT freed 30K, 3% free 1371K/1404K, paused 0ms+1ms, total 7ms
D/dalvikvm( 2411): GC_EXPLICIT freed 29K, 3% free 1396K/1428K, paused 1ms+1ms, total 8ms
Tried to boot it after a wipe, and this time it booted correctly!
Woohoo!!
Now to re-install all those apps...
Thanks Synman.
 
Last edited:

Synman

Recognized Developer
Nov 2, 2010
826
547
0
Outside Philadelphia
www.shellware.com
You might be able to get away with a cache/dalvik wipe only but for the sake of simplicity I ask a full factory reset be performed.

Install Instructions (assumes already unlocked):

It is highly recommended that you start with a full wipe from a known good installation of the N73G stock binaries. *
  • GwT RC1 (and older releases) requires a base install of JOP40D
  • GwT RC2 and RC3 require a base install of JDQ39
  • GwT RC4 and RC5 require a base install of JWR66V
  • GwT RC6 requires a base install of JWR66Y
Sent from my Galaxy Nexus using Tapatalk 4
 
Last edited: