Program: 165231
Project: 165231
Buggy source:
@Override protected void installPackage(final Uri uri,final Uri originatingUri,String packageName){
  sendBroadcastInstall(uri,originatingUri,Installer.ACTION_INSTALL_STARTED);
  final Uri sanitizedUri;
  try {
    sanitizedUri=Installer.prepareApkFile(mContext,uri,packageName);
  }
 catch (  Installer.InstallFailedException e) {
    Log.e(TAG,"String_Node_Str",e);
    sendBroadcastInstall(uri,originatingUri,Installer.ACTION_INSTALL_INTERRUPTED,e.getMessage());
    return;
  }
  ServiceConnection mServiceConnection=new ServiceConnection(){
    public void onServiceConnected(    ComponentName name,    IBinder service){
      IPrivilegedService privService=IPrivilegedService.Stub.asInterface(service);
      IPrivilegedCallback callback=new IPrivilegedCallback.Stub(){
        @Override public void handleResult(        String packageName,        int returnCode) throws RemoteException {
          if (returnCode == INSTALL_SUCCEEDED) {
            sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_COMPLETE);
          }
 else {
            sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_INTERRUPTED,"String_Node_Str" + returnCode + "String_Node_Str"+ sInstallReturnCodes.get(returnCode));
          }
        }
      }
;
      try {
        privService.installPackage(sanitizedUri,ACTION_INSTALL_REPLACE_EXISTING,null,callback);
      }
 catch (      RemoteException e) {
        Log.e(TAG,"String_Node_Str",e);
        sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_INTERRUPTED,"String_Node_Str");
      }
    }
    public void onServiceDisconnected(    ComponentName name){
    }
  }
;
  Intent serviceIntent=new Intent(PRIVILEGED_EXTENSION_SERVICE_INTENT);
  serviceIntent.setPackage(PRIVILEGED_EXTENSION_PACKAGE_NAME);
  mContext.getApplicationContext().bindService(serviceIntent,mServiceConnection,Context.BIND_AUTO_CREATE);
}

Fixed version (ground truth):
@Override protected void installPackage(final Uri uri,final Uri originatingUri,String packageName){
  sendBroadcastInstall(uri,originatingUri,Installer.ACTION_INSTALL_STARTED);
  final Uri sanitizedUri;
  try {
    sanitizedUri=Installer.prepareApkFile(mContext,uri,packageName);
  }
 catch (  Installer.InstallFailedException e) {
    Log.e(TAG,"String_Node_Str",e);
    sendBroadcastInstall(uri,originatingUri,Installer.ACTION_INSTALL_INTERRUPTED,e.getMessage());
    return;
  }
  ServiceConnection mServiceConnection=new ServiceConnection(){
    public void onServiceConnected(    ComponentName name,    IBinder service){
      IPrivilegedService privService=IPrivilegedService.Stub.asInterface(service);
      IPrivilegedCallback callback=new IPrivilegedCallback.Stub(){
        @Override public void handleResult(        String packageName,        int returnCode) throws RemoteException {
          if (returnCode == INSTALL_SUCCEEDED) {
            sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_COMPLETE);
          }
 else {
            sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_INTERRUPTED,"String_Node_Str" + returnCode + "String_Node_Str"+ INSTALL_RETURN_CODES.get(returnCode));
          }
        }
      }
;
      try {
        privService.installPackage(sanitizedUri,ACTION_INSTALL_REPLACE_EXISTING,null,callback);
      }
 catch (      RemoteException e) {
        Log.e(TAG,"String_Node_Str",e);
        sendBroadcastInstall(uri,originatingUri,ACTION_INSTALL_INTERRUPTED,"String_Node_Str");
      }
    }
    public void onServiceDisconnected(    ComponentName name){
    }
  }
;
  Intent serviceIntent=new Intent(PRIVILEGED_EXTENSION_SERVICE_INTENT);
  serviceIntent.setPackage(PRIVILEGED_EXTENSION_PACKAGE_NAME);
  mContext.getApplicationContext().bindService(serviceIntent,mServiceConnection,Context.BIND_AUTO_CREATE);
}