Resource accounting project Pi and android platform and kernel code changes