| 186 | } |
| 187 | |
| 188 | bool isuserapp(int uid) { |
| 189 | int appid = uid % AID_USER_OFFSET; |
| 190 | if (appid >= AID_APP_START && appid <= AID_APP_END) |
| 191 | return true; |
| 192 | if (appid >= AID_ISOLATED_START && appid <= AID_ISOLATED_END) |
| 193 | return true; |
| 194 | return false; |
| 195 | } |
| 196 | |
| 197 | static int sendfd(int sockfd, int fd) { |
| 198 | int data; |