# Android Lock i need set the name of device

**URL:** <https://community.auth0.com/t/android-lock-i-need-set-the-name-of-device/8044>\
**Category:** Get Help\
**Tags:** devicename, device, android-lock\
**Created:** [August 31, 2017, 9:08pm UTC](https://community.auth0.com/t/android-lock-i-need-set-the-name-of-device/8044 "2017-08-31T21:08:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![java.cngroup](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@java.cngroup](https://community.auth0.com/u/java.cngroup)\
**Post date:** [August 31, 2017, 9:08pm UTC](https://community.auth0.com/t/android-lock-i-need-set-the-name-of-device/8044/1 "2017-08-31T21:08:53Z")

</div>

I try to set the name of the device what user connect to auth0. And I have no idea how to send the name of the device to auth0. In JS is it like this:

```
 auth0
   .webAuth
   .authorize({
     audience: 'myawesome.middleware.api',
     scope: 'openid offline_access email profile',
     device: "DEVICE_NAME", 
     // ....

```

and i need set device name on ANDROID.  
my android code:

```
    Auth0 account = new Auth0(AUTH0_CLIENT, AUTH0_DOMAIN);
     account.setOIDCConformant(true);
     Lock lock = Lock.newBuilder(account,
     mAuthZeroCallback)
             .closable(true)
             .allowSignUp(false)
             .allowForgotPassword(false)
             .withScope("offline_access device")
             .build(mReactContext);
     Log.e("LSA", "OPTIONS: " + lock.getOptions());
     context.startActivity(lock.newIntent(context));

```

Can somebody help me?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:56am UTC](https://community.auth0.com/t/android-lock-i-need-set-the-name-of-device/8044/2 "2018-03-02T05:56:15Z")

</div>


