Questions tagged [uid]

uid refers to a string used for record keeping which is not guaranteed to be unique, but should be in the large majority of use cases.

uid stands for one of the following:

  • user identifier
  • unique identifier

References

368 questions
1
vote
3 answers

How to open "adb shell" in context of application being debugged (on non-rooted device)?

When I just run adb shell, I get shell running from uid=2000(shell) gid=2000(shell), without ptrace access to my application. How to open a shell with the same UID as launched application?
Vi.
  • 37,014
  • 18
  • 93
  • 148
1
vote
1 answer

What's the CallingUid when AppX calls ServiceY which then calls ServiceZ?

From Android API documentation: Binder.getCallingUid() returns the Linux uid assigned to the process that sent you the current transaction that is being processed. When AppX calls ServiceY and ServiceY calls getCallingUid(), it will get UID for…
Wu Yongzheng
  • 1,707
  • 17
  • 23
1
vote
1 answer

Get Drupal uid in external php

Fairly new to both php and Drupal. I have searched for this answer, and have found the one everyone keeps repeating, but I cannot get it to work. What I've done, is create a form that accesses an 'external' php file, located in the root folder. (I…
ehart
  • 13
  • 4
1
vote
1 answer

Odd, nondescript error [an error occurred while processing this directive]

I have been migrating a client's website from a Bluehost account to my own cPanel/WHM setup. I used the cPanel 'Backup Wizard' to create the export .tar (composed of home directory and mysql files, amoung some other things...) I suppose it's…
Sandwich
  • 2,304
  • 3
  • 24
  • 30
1
vote
1 answer

How to move an email to a new inbox and get its UID in that box using PHP?

I'm moving emails to another inbox using code that looks a lot like this: function move_email($stream, $uid, $destination) { $result = imap_mail_move($stream, $uid, $destination, CP_UID); if($result) { imap_expunge($stream); } …
jeremiahs
  • 3,985
  • 8
  • 25
  • 30
1
vote
1 answer

IOS browser request for UID to use push notifications?

Is there any way I can retrieve the UID of an IOS device from a webpage, I believe it needs to be the actual device ID and not one I have made up due to it being used for Apple Push Notifications. I may be wrong...
Benswana
  • 29
  • 8
1
vote
0 answers

How to Read Java card Image Number(CIN) within Applet

I am new to java card development.i want to read UID within Applet.then there is no way to read card UID within Applet.then i read Global platform documentation.they say that there is a unique key called Card Image number(CIN).I don't know anything…
Need
  • 97
  • 1
  • 11
1
vote
1 answer

Compare uid from Android PackageManager to uid from ls -l

I have suspicion that some of the error reports I've received (unable to open database, or null returned by Context.getFilesDir()) are due to bad underlying linux permissions; I've seen a few references saying that sometimes android apps get into a…
benkc
  • 3,292
  • 1
  • 28
  • 37
1
vote
1 answer

Different imap mailboxes uid trouble

I'm working about an email manager that can manage more than one mailboxes. This is my scenario: I get the mails by a mailbox and I store their properties in a database, uid included. The mailbox can be configured to be downloaded with imap or pop3…
SamDroid
  • 601
  • 1
  • 10
  • 28
1
vote
2 answers

IMAP mailbox identifier

I'm writing a script that fetches all e-mails from an e-mail address via IMAP. Currently I'm fetching every folder (mailbox) and saving the highest (fetched) UID from every folder so I start fetching at the highest UID+1 next time I sync. But what…
Floris
  • 299
  • 3
  • 17
1
vote
1 answer

Google CardDAV changes vCard UID

I'm integrating the Google CardDAV with my webApplication. I have a strange problem sometimes when I make a PUT of a new vCard. If the vCard contains a UID and the UID is a GUID Google changes the vCard UID with a 16-char UID. for example: This is…
1
vote
0 answers

FQL: A friend's specific uid DOESN'T show on User table

I get all my friend's uids (for all those friends who grant permission): >>> my_function_fql('SELECT uid2 FROM friend WHERE uid1=me()') Among all those uids, there's one which seems not to exist in User table: >>> my_function_fql('SELECT name FROM…
Jess Rod
  • 190
  • 11
1
vote
0 answers

What's the effect of gid of process

On android, If we set some gids on a process, the process get the privilage of the gids set on it. For example, if we want enable a process can access internet, we can just add the uid AID_INET to the gids of this process. The androd uid is defined…
Ascatgz
  • 319
  • 3
  • 6
1
vote
1 answer

PHP read binary UID value from MS sql as Hex

I have a code that generates UID: $time_low = str_pad(dechex(mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT) . str_pad(dechex(mt_rand(0, 65535)), 4, '0', STR_PAD_LEFT); $time_mid = str_pad(dechex(mt_rand(0, 65535)), 4, '0',…
Kristian
  • 1,348
  • 4
  • 16
  • 39
1
vote
1 answer

Python fails to execute firefox webbrowser from a root executed script with privileges drop

I can't run firefox from a sudoed python script that drops privileges to normal user. If i write $ sudo python >>> import os >>> import pwd, grp >>> uid = pwd.getpwnam('norby')[2] >>> gid = grp.getgrnam('norby')[2] >>> os.setegid(gid) >>>…
Emilio
  • 3,901
  • 11
  • 44
  • 50