├── OSSP_Individual_Tiruneh_Getachw_BDU1602613.pdf ├── README.md ├── System Call Implementation.pdf └── System_Call.c /OSSP_Individual_Tiruneh_Getachw_BDU1602613.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tirunehg38/OSSP_Android_OS/e36ce12c14795fca21654cc09caa9ca2f6b88fd6/OSSP_Individual_Tiruneh_Getachw_BDU1602613.pdf -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | "My work demonstrates how to run Android OS on a PC using VMware, providing a practical alternative to physical devices for app testing and development. Through this project, I implemented a Linux system call (clock_settime) to modify system time, showcasing hands-on interaction with the operating system kernel. This exploration highlights the power of virtualization for safe experimentation while bridging theoretical OS concepts with real-world implementation." 2 | -------------------------------------------------------------------------------- /System Call Implementation.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tirunehg38/OSSP_Android_OS/e36ce12c14795fca21654cc09caa9ca2f6b88fd6/System Call Implementation.pdf -------------------------------------------------------------------------------- /System_Call.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | int main() { 7 | // Set desired time (April 24, 2024 12:00:00 UTC) 8 | struct timespec ts = { 9 | .tv_sec = 1713960000, 10 | .tv_nsec = 0 11 | }; 12 | 13 | // Attempt to set system clock 14 | int result = syscall(SYS_clock_settime, CLOCK_REALTIME, &ts); 15 | 16 | if (result == -1) { 17 | perror("Error setting time"); 18 | return 1; 19 | } 20 | 21 | printf("Time successfully set to %ld\n", ts.tv_sec); 22 | return 0; 23 | } 24 | --------------------------------------------------------------------------------