Misplaced Pages

Android SDK

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.

The Android SDK is a software development kit for the Android software ecosystem that includes a comprehensive set of development tools. These include a debugger , libraries , a handset emulator based on QEMU , documentation, sample code, and tutorials. The SDK is part of the official Android Studio IDE but its various tools and resources can be used independently.

#327672

55-472: Currently supported development platforms include computers running Linux (any modern desktop Linux distribution ), Mac OS X 10.5.8 or later, and Windows 7 or later. As of March 2015, the SDK is not available on Android itself, but software development is possible by using specialized Android applications. Until around the end of 2014, the officially-supported integrated development environment (IDE)

110-524: A task switcher in Intel 80386 assembly language and a terminal driver . On 25 August 1991, Torvalds posted the following to comp.os.minix , a newsgroup on Usenet : I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones. This has been brewing since April, and is starting to get ready. I'd like any feedback on things people like/dislike in minix, as my OS resembles it somewhat (same physical layout of

165-451: A version control system thus far, in 2002, Linux developers adopted BitKeeper , which was made freely available to them even though it was not free software . In 2005, because of efforts to reverse-engineer it, the company which owned the software revoked its support of the Linux community. In response, Torvalds and others wrote Git . The new system was written within weeks, and in two months

220-568: A Linux Kernel Code of Conflict was introduced on 8 March 2015. It was replaced on 16 September 2018 by a new Code of Conduct based on the Contributor Covenant . This coincided with a public apology by Torvalds and a brief break from kernel development. On 30 November 2018, complying with the Code of Conduct , Jarkko Sakkinen of Intel sent out patches replacing instances of "fuck" appearing in source code comments with suitable versions focused on

275-441: A bit in that more features were made available throughout the series, including support for Bluetooth , Logical Volume Manager (LVM) version 1, RAID support, InterMezzo and ext3 file systems. Version 2.6.0 was released on 17 December 2003. The development for 2.6. x changed further towards including new features throughout the series. Among the changes that have been made in the 2.6 series are: integration of μClinux into

330-401: A locking scheme is adopted. For that reason, recent BSD operating systems, such as FreeBSD , implement Unix98 PTYs. BSD PTYs have been rendered obsolete by Unix98 ptys whose naming system does not limit the number of pseudo-terminals and access to which occurs without danger of race conditions. /dev/ptmx is the "pseudo-terminal master multiplexer". Opening it returns a file descriptor of

385-438: A name of the form /dev/tty[p-za-e][0-9a-f] , supports all system calls applicable to text terminal devices. Thus it supports login sessions . The master device file, which generally has a name of the form /dev/pty[p-za-e][0-9a-f] , is the endpoint for communication with the terminal emulator. With this [p-za-e] naming scheme, there can be at most 256 tty pairs. Also, finding the first free pty master can be racy unless

440-606: A reboot, installing software package(s) remotely). Enhancements to Android's SDK go hand-in-hand with the overall Android platform development. The SDK also supports older versions of the Android platform in case developers wish to target their applications at older devices. Development tools are downloadable components, so after one has downloaded the latest version and platform, older platforms and tools can also be downloaded for compatibility testing. Android applications are packaged in .apk format and stored under /data/app folder on

495-483: A roadmap, there are technical guidelines. Instead of a central resource allocation, there are persons and companies who all have a stake in the further development of the Linux kernel, quite independently from one another: People like Linus Torvalds and I don’t plan the kernel evolution. We don’t sit there and think up the roadmap for the next two years, then assign resources to the various new features. That's because we don’t have any resources. The resources are all owned by

550-506: A study issued by the Linux Foundation, covering the commits for the releases 4.8 to 4.13, about 1500 developers were contributing from about 200–250 companies on average. The top 30 developers contributed a little more than 16% of the code. For companies, the top contributors are Intel (13.1%) and Red Hat (7.2%), Linaro (5.6%), IBM (4.1%), the second and fifth places are held by the 'none' (8.2%) and 'unknown' (4.1%) categories. Instead of

605-508: Is Android which is used in many mobile and embedded devices. Most of the kernel code is written in C as supported by the GNU compiler collection (GCC) which has extensions beyond standard C. The code also contains assembly code for architecture-specific logic such as optimizing memory use and task execution. The kernel has a modular design such that modules can be integrated as software components – including dynamically loaded. The kernel

SECTION 10

#1732852439328

660-544: Is monolithic in an architectural sense since the entire OS runs in kernel space . Linux is provided under the GNU General Public License version 2 , although it contains files under other compatible licenses . In April 1991, Linus Torvalds, a 21-year-old computer science student at the University of Helsinki started working on an operating system, inspired by UNIX, for a personal computer. He started with

715-610: Is a Linux kernel virtual file system containing pseudoterminal devices. Linux implementation is based on System V -style terminals (commonly referred as UNIX 98 pseudoterminals) and provides POSIX and the Single Unix Specification API in the form of a posix_openpt() function since 1998. Pseudoterminals were present in the DEC PDP-6 Timesharing Monitor at least as early as 1967, and were used to implement batch processing. They are described in

770-441: Is a free and open source , UNIX-like kernel that is used in many computer systems worldwide. The kernel was created by Linus Torvalds in 1991 and was soon adopted as the kernel for the GNU operating system (OS) which was created to be a free replacement for Unix . Since the late 1990s, it has been included in many operating system distributions , many of which are called Linux . One such Linux kernel operating system

825-491: Is a monolithic kernel rather than a microkernel was the topic of a debate between Andrew S. Tanenbaum , the creator of MINIX, and Torvalds. The Tanenbaum–Torvalds debate started in 1992 on the Usenet group comp.os.minix as a general discussion about kernel architectures. Version 0.95 was the first capable of running the X Window System . In March 1994, Linux 1.0.0 was released with 176,250 lines of code. As indicated by

880-480: Is another one, Chapter 62 "Terminals", dedicated to terminals. The Windows Console was extended to have a PTY interface called ConPTY in 2018. The role of the terminal emulator process is: The terminal emulator process must also handle terminal control commands, e.g., for resizing the screen. Widely used terminal emulator programs include xterm , GNOME Terminal , Konsole , and Terminal . Remote login servers such as Secure Shell and Telnet servers play

935-541: Is significantly responsible for rising use of Linux overall. The cost to redevelop version 2.6.0 of the Linux kernel in a traditional proprietary development setting has been estimated to be US$ 612 million (€467M, £394M) in 2004 prices using the COCOMO person-month estimation model. In 2006, a study funded by the European Union put the redevelopment cost of kernel version 2.6.8 higher, at €882M ($ 1.14bn, £744M). This topic

990-594: The Native POSIX Thread Library (NPTL), User-mode Linux integration into the mainline kernel sources, SELinux integration into the mainline kernel sources, InfiniBand support, and considerably more. Starting with 2.6.x releases, the kernel supported a large number of file systems; some designed for Linux, like ext3 , ext4 , FUSE , Btrfs , and others native to other operating systems like JFS , XFS , Minix, Xenix , Irix , Solaris , System V , Windows and MS-DOS . Though development had not used

1045-1058: The atomic CMPXCHG instruction introduced with the i486 to allow reliable mutexes —making the 3.7 kernel series the last one still supporting the original processor. The same series unified support for the ARM processor. The numbering change from 2.6.39 to 3.0, and from 3.19 to 4.0, involved no meaningful technical differentiation; the major version number was increased simply to avoid large minor numbers. Stable 3.x.y kernels were released until 3.19 in February 2015. Version 3.11, released on 2 September 2013, added many new features such as new O_TMPFILE flag for open(2) to reduce temporary file vulnerabilities, experimental AMD Radeon dynamic power management, low-latency network polling, and zswap (compressed swap cache). In April 2015, Torvalds released kernel version 4.0. By February 2015, Linux had received contributions from nearly 12,000 programmers from more than 1,200 companies, including some of

1100-439: The master , provides means by which a terminal emulator or remote login server (e.g. a Telnet , rlogin , or Secure Shell server) process controls the slave. The other pseudo-device, the slave , emulates a hardware serial port device, and is used by terminal-oriented programs such as shells (e.g. bash ) as a processes to read/write data back from/to master endpoint. PTYs are similar to bidirectional pipes. Devpts

1155-511: The "core," including architecture-specific code, kernel code, and mm code, while 60% is drivers. Contributions are submitted as patches, in the form of text messages on the Linux kernel mailing list (LKML) (and often also on other mailing lists dedicated to particular subsystems). The patches must conform to a set of rules and to a formal language that, among other things, describes which lines of code are to be deleted and what others are to be added to

SECTION 20

#1732852439328

1210-568: The "ftp.funet.fi" – FTP server of the Finnish University and Research Network ( FUNET ). It was not even executable since its code still needed Minix to compile and test it. On 5 October 1991, Torvalds announced the first "official" version of Linux, version 0.02. [As] I mentioned a month ago, I'm working on a free version of a Minix-lookalike for AT-386 computers. It has finally reached the stage where it's even usable (though may not be depending on what you want), and I am willing to put out

1265-737: The AMD Radeon FreeSync and NVIDIA Xavier display, fixes for F2FS , EXT4 and XFS , restored support for swap files on the Btrfs file system and continued work on the Intel Icelake Gen11 graphics and on the NXP i.MX8 SoCs. This release was noticeably larger than the rest, Torvalds mentioning that "The overall changes for all of the 5.0 release are much bigger." A total of 1,991 developers, of whom 334 were first-time collaborators, added more than 553,000 lines of code to version 5.8, breaking

1320-503: The Android OS (the folder is accessible only to the root user for security reasons). APK package contains .dex files (compiled byte code files called Dalvik executables), resource files, etc. The Android SDK Platform Tools are a separately downloadable subset of the full SDK, consisting of command-line tools such as Android Debug Bridge and fastboot . Some security issues were found in 2014. Linux kernel The Linux kernel

1375-420: The European Union. As of 7 March 2011 , using then-current LOC (lines of code) of a 2.6.x Linux kernel and wage numbers with David A. Wheeler's calculations it would cost approximately $ 3bn (about €2.2bn) to redevelop the Linux kernel as it keeps getting bigger. An updated calculation as of 26 September 2018 , using then-current 20,088,609 LOC (lines of code) for the 4.14.14 Linux kernel and

1430-540: The Linux 2.2.13 code for the support of the S/390 architecture. Version 2.4.0, released on 4 January 2001, contained support for ISA Plug and Play , USB , and PC Cards . Linux 2.4 added support for the Pentium 4 and Itanium (the latter introduced the ia64 ISA that was jointly developed by Intel and Hewlett-Packard to supersede the older PA-RISC ), and for the newer 64-bit MIPS processor. Development for 2.4. x changed

1485-668: The Linux kernel for its OS. Torvalds labeled the kernel with major version 0 to indicate that it was not yet intended for general use. Version 0.11, released in December 1991, was the first version to be self-hosted ; compiled on a computer running the Linux kernel. When Torvalds released version 0.12 in February 1992, he adopted the GNU General Public License version 2 (GPLv2) over his previous self-drafted license, which had not permitted commercial redistribution. In contrast to Unix , all source files of Linux are freely available, including device drivers . The initial success of Linux

1540-456: The change will either be submitted as a single patch or in multiple patches of source code . In case of a single subsystem that is maintained by a single maintainer, these patches are sent as e-mails to the maintainer of the subsystem with the appropriate mailing list in Cc. The maintainer and the readers of the mailing list will review the patches and provide feedback. Once the review process has finished

1595-413: The current US national average programmer salary of $ 75,506 show that it would cost approximately $ 14,725,449,000 (£11,191,341,000) to rewrite the existing code. Most who use Linux do so via a Linux distribution . Some distributions ship the vanilla or stable kernel. However, several vendors (such as Red Hat and Debian ) maintain a customized source tree. These are usually updated at a slower pace than

1650-672: The development of Eighth Edition Unix and were based on a similar feature in TENEX. They were part of the 4.2 release of BSD , with a rather cumbersome openpty() interface defined for use. AT&T's System V included support for pseudoterminals as a driver in their STREAMS device model, along with the pseudoterminal multiplexer ( /dev/ptmx ). This later evolved to become the Unix98 style of PTYs. The Linux Programming Interface from 2010 contains an entire chapter (chapter 64 "Pseudoterminals" p1375–1399.) explaining pseudoterminals. Then there

1705-581: The documentation for the succeeding TOPS-10 on the PDP-10 . Other DEC operating systems also had PTYs, including RSTS/E for the PDP-11 , as did the third-party TENEX operating system for the PDP-10. Implementations of Unix pseudo terminals date back to the modifications that RAND and BBN made to a 6th Edition in the late 1970s to support remote access over a network. Modern Unix pseudoterminals originated in 1983 during

Android SDK - Misplaced Pages Continue

1760-530: The file-system (due to practical reasons) among other things). I've currently ported bash (1.08) and gcc (1.40), and things seem to work. This implies that I'll get something practical within a few months [...] Yes - it's free of any minix code, and it has a multi-threaded fs. It is NOT protable [ sic ] (uses 386 task switching etc), and it probably never will support anything other than AT-harddisks, as that's all I have :-(. On 17 September 1991, Torvalds prepared version 0.01 of Linux and put on

1815-416: The first official kernel made using it was released. In 2005 the stable team was formed as a response to the lack of a kernel tree where people could work on bug fixes , and it would keep updating stable versions. In February 2008 the linux-next tree was created to serve as a place where patches aimed to be merged during the next development cycle gathered. Several subsystem maintainers also adopted

1870-581: The kernel community at the 2017 Embedded Linux Conference Europe. The issues brought up were discussed a few days later at the Maintainers Summit. Concerns over the lack of consistency in how maintainers responded to patches submitted by developers were echoed by Shuah Khan , the maintainer of the kernel self-test framework. Torvalds contended that there would never be consistency in the handling of patches because different kernel subsystems have, over time, adopted different development processes. Therefore, it

1925-570: The kernel so that old programs would work. Version 3.0 was released on 22 July 2011. On 30 May 2011, Torvalds announced that the big change was "NOTHING. Absolutely nothing." and asked, "...let's make sure we really make the next release not just an all new shiny number, but a good kernel too." After the expected 6–7 weeks of the development process, it would be released near the 20th anniversary of Linux. On 11 December 2012, Torvalds decided to reduce kernel complexity by removing support for i386 processors—specifically by not having to emulate

1980-406: The kernel with system software (e.g., the GNU C Library , systemd , and other Unix utilities and daemons ) and a wide selection of application software , but their usage share in desktops is low in comparison to other operating systems. Since Android , which is Linux, accounts for the majority of mobile device operating systems, and due to its rising use in embedded devices , Android

2035-467: The linux.conf.au (LCA) conference in 2018, developers expressed the view that the culture of the community has gotten much better in the past few years. Daniel Vetter, the maintainer of the Intel drm/i915 graphics kernel driver, commented that the "rather violent language and discussion" in the kernel community has decreased or disappeared. Laurent Pinchart asked developers for feedback on their experiences with

2090-537: The mainline kernel sources, PAE support, support for several new lines of CPUs , integration of Advanced Linux Sound Architecture (ALSA) into the mainline kernel sources, support for up to 2 users (up from 2 ), support for up to 2 process IDs (64-bit only, 32-bit architectures still limited to 2 ), substantially increased the number of device types and the number of devices of each type, improved 64-bit support, support for file systems which support file sizes of up to 16 terabytes , in-kernel preemption , support for

2145-536: The previous kernel version. The Git kernel source tree names all developers who have contributed to the Linux kernel in the Credits directory and all subsystem maintainers are listed in Maintainers . As with many large open-source software projects, developers are required to adhere to the Contributor Covenant , a code of conduct intended to address harassment of minority contributors. Additionally, to prevent offense

2200-525: The record previously held by version 4.9. According to the Stack Overflow's annual Developer Survey of 2019, more than the 53% of all respondents have developed software for Linux and about 27% for Android , although only about 25% develop with Linux-based operating systems. Most websites run on Linux-based operating systems , and all of the world's 500 most powerful supercomputers use some form of OS based on Linux. Linux distributions bundle

2255-465: The same role but communicate with a remote user instead of a local one. Screen and Tmux are used to add a session context to a pseudoterminal, making for a much more robust and versatile solution. For example, each provides terminal persistence, allowing a user to disconnect from one computer and then connect later from another computer. In the BSD PTY system, the slave device file, which generally has

Android SDK - Misplaced Pages Continue

2310-562: The sources for wider distribution. It is just version 0.02...but I've successfully run bash, gcc, gnu-make, gnu-sed, compress, etc. under it. Linux grew rapidly as many developers, including the MINIX community, contributed to the project. At the time, the GNU Project had completed many components for its free UNIX replacement, the GNU OS , but its kernel, GNU Hurd , was incomplete. The project adopted

2365-437: The specified files. These patches can be automatically processed so that system administrators can apply them in order to make just some changes to the code or to incrementally upgrade to the next version. Linux is distributed also in GNU zip (gzip) and bzip2 formats. A developer who wants to change the Linux kernel writes and tests a code change. Depending on how significant the change is and how many subsystems it modifies,

2420-407: The subsystem maintainer accepts the patches in the relevant Git kernel tree. If the changes to the Linux kernel are bug fixes that are considered important enough, a pull request for the patches will be sent to Torvalds within a few days. Otherwise, a pull request will be sent to Torvalds during the next merge window. The merge window usually lasts two weeks and starts immediately after the release of

2475-503: The suffix -next for trees containing code which they mean to submit for inclusion in the next release cycle. As of January 2014 , the in-development version of Linux is held in an unstable branch named linux-next . The 20th anniversary of Linux was celebrated by Torvalds in July 2011 with the release of version 3.0.0. As 2.6 had been the version number for 8 years, a new uname26 personality that reports 3.x as 2.6.40+x had to be added to

2530-407: The use of inclusive terminology within the source code is mandated. Pseudo terminal In some operating systems , including Unix-like systems, a pseudoterminal , pseudotty , or PTY is a pair of pseudo-device endpoints (files) which establish asynchronous, bidirectional communication ( IPC ) channel (with two ports) between two or more processes. One pseudo-device in the pair,

2585-407: The vanilla branch, and they usually include all fixes from the relevant stable branch, but at the same time they can also add support for drivers or features which had not been released in the vanilla version the distribution vendor started basing its branch from. The community of Linux kernel developers comprises about 5000–6000 members. According to the "2017 State of Linux Kernel Development",

2640-444: The various corporations who use and contribute to Linux, as well as by the various independent contributors out there. It's those people who own the resources who decide... Notable conflicts among Linux kernel developers: Prominent Linux kernel developers have been aware of the importance of avoiding conflicts between developers. For a long time there was no code of conduct for kernel developers due to opposition by Torvalds. However,

2695-949: The version number, it was the first version considered suitable for a production environment . In June 1996, after release 1.3, Torvalds decided that Linux had evolved enough to warrant a new major number, and so labeled the next release as version 2.0.0. Significant features of 2.0 included symmetric multiprocessing (SMP), support for more processors types and support for selecting specific hardware targets and for enabling architecture-specific features and optimizations. The make *config family of commands of kbuild enable and configure options for building ad hoc kernel executables ( vmlinux ) and loadable modules. Version 2.2, released on 20 January 1999, improved locking granularity and SMP management, added m68k , PowerPC , Sparc64 , Alpha , and other 64-bit platforms support. Furthermore, it added new file systems including Microsoft 's NTFS read-only capability. In 1999, IBM published its patches to

2750-700: The word 'hug'. Developers who feel treated unfairly can report this to the Linux Foundation Technical Advisory Board. In July 2013, the maintainer of the USB 3.0 driver Sage Sharp asked Torvalds to address the abusive commentary in the kernel development community. In 2014, Sharp backed out of Linux kernel development, saying that "The focus on technical excellence, in combination with overloaded maintainers, and people with different cultural and social norms, means that Linux kernel maintainers are often blunt, rude, or brutal to get their job done". At

2805-563: The world's largest software and hardware vendors. Version 4.1 of Linux, released in June 2015, contains over 19.5 million lines of code contributed by almost 14,000 programmers. Linus Torvalds announced that kernel version 4.22 would instead be numbered 5.0 in March 2019, stating that "'5.0' doesn't mean anything more than that the 4.x numbers started getting big enough that I ran out of fingers and toes." It featured many major additions such as support for

SECTION 50

#1732852439328

2860-635: Was Eclipse using the Android Development Tools (ADT) Plugin. As of 2015, Android Studio is the official IDE; however, developers are free to use others, but Google made it clear that ADT was officially deprecated since the end of 2015 to focus on Android Studio as the official Android IDE. Additionally, developers may use any text editor to edit Java and XML files, then use command line tools ( Java Development Kit and Apache Ant are required) to create, build and debug Android applications as well as control attached Android devices (e.g., triggering

2915-445: Was agreed upon that each kernel subsystem maintainer would document the rules for patch acceptance. Linux is evolution, not intelligent design ! The kernel source code, a.k.a. source tree, is managed in the Git version control system – also created by Torvalds. As of 2021 , the 5.11 release of the Linux kernel had around 30.34 million lines of code. Roughly 14% of the code is part of

2970-487: Was driven by programmers and testers across the world. With the support of the POSIX APIs, through the libC that, whether needed, acts as an entry point to the kernel address space, Linux could run software and applications that had been developed for Unix. On 19 January 1992, the first post to the new newsgroup alt.os.linux was submitted. On 31 March 1992, the newsgroup was renamed comp.os.linux . The fact that Linux

3025-559: Was revisited in October 2008 by Amanda McPherson, Brian Proffitt, and Ron Hale-Evans. Using David A. Wheeler's methodology, they estimated redevelopment of the 2.6.25 kernel now costs $ 1.3bn (part of a total $ 10.8bn to redevelop Fedora 9). Again, Garcia-Garcia and Alonso de Magdaleno from University of Oviedo (Spain) estimate that the value annually added to kernel was about €100M between 2005 and 2007 and €225M in 2008, it would cost also more than €1bn (about $ 1.4bn as of February 2010) to develop in

#327672