usb_moded  0.86.0+mer57
Functions
usb_moded-android.c File Reference
#include "usb_moded-android.h"
#include "usb_moded-config-private.h"
#include "usb_moded-log.h"
#include "usb_moded-mac.h"
#include "usb_moded-modesetting.h"
#include <unistd.h>
#include <stdio.h>

Go to the source code of this file.

Functions

gchar * android_get_serial (void)
 
bool android_init (void)
 
void android_quit (void)
 
bool android_set_attr (const char *function, const char *attr, const char *value)
 

Detailed Description

Copyright (c) 2013 - 2021 Jolla Ltd. Copyright (c) 2020 Open Mobile Platform LLC.

Author
Philippe De Swert phili.nosp@m.ppe..nosp@m.deswe.nosp@m.rt@j.nosp@m.ollam.nosp@m.obil.nosp@m.e.com
Simo Piiroinen simo..nosp@m.piir.nosp@m.oinen.nosp@m.@jol.nosp@m.lamob.nosp@m.ile..nosp@m.com

This program is free software; you can redistribute it and/or modify it under the terms of the Lesser GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the Lesser GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition in file usb_moded-android.c.

Function Documentation

◆ android_get_serial()

gchar * android_get_serial ( void  )

Read android serial number from kernel command line

Definition at line 118 of file usb_moded-android.c.

◆ android_init()

bool android_init ( void  )

initialize the basic android values

Returns
true if android usb backend is ready for use, false otherwise

Definition at line 171 of file usb_moded-android.c.

◆ android_quit()

void android_quit ( void  )

Cleanup resources allocated by android usb backend

Definition at line 235 of file usb_moded-android.c.

◆ android_set_attr()

bool android_set_attr ( const char *  function,
const char *  attr,
const char *  value 
)

Set function attribute

Returns
true if successful, false on failure

Definition at line 372 of file usb_moded-android.c.