-
Notifications
You must be signed in to change notification settings - Fork 14
/
defs.h
36 lines (27 loc) · 1.24 KB
/
defs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __DEFS_H__
#define __DEFS_H__
#define CLEARKEY_SYSTEMID (0xF6D8)
// Sample provision string, taken from AOSP's MediaCasTest.java
static const char *provision_str =
"{ "
" \"id\": 21140844, "
" \"name\": \"Test Title\", "
" \"lowercase_organization_name\": \"Android\", "
" \"asset_key\": { "
" \"encryption_key\": \"nezAr3CHFrmBR9R8Tedotw==\" "
" }, "
" \"cas_type\": 1, "
" \"track_types\": [ ] "
"} ";
// Number of remote blocked threads. 5 should ensure that enough threads stacks
// are at the top of the allocated memory so new maps would be allocated above
// them.
#define THREADS_NUM (5)
// A known planned crash address.
#define CRASH_ADDR (0x41414141)
// The default size of a pthread stack, including the guard page. Might change
// if bionic's implementation changes.
#define STACK_SIZE (0xfd000)
// Value for unused registers in the ROP chain.
#define UNUSED_REGISTER (0x12345678)
#endif