Hot answers tagged

29

Both Ubuntu Phone (which is based on the same Linux distro as full Ubuntu) and Android run on a Linux kernel. However they differ above the kernel level, whereas Ubuntu runs a full GNU/Linux OS with most of the standard Linux libraries, and a GUI based on Qt, Android runs a custom Android and Dalvik platform instead. It looks like one of the big benefits of ...


23

Enable USB debugging on the device This is done in Settings › Development. If you don't have that entry in your settings menu, go to Settings › About, scroll to the "Build number", and hammer it like a monkey until your device congratulates you having become a developer. Go back to the main page of the Settings menu, and close to the bottom you should see ...


21

The GfxTablet project should allow you to do this. It's network-based rather than USB though.


17

The Linux user IDs that Android uses to isolate apps from each other are completely unrelated to user profiles on Android 4.2 tablets. In Android, each app gets its own directory for saving data. The Linux user ID system is used to make sure apps can't read each others' data. But all these data directories are inside one directory on the filesystem, /data/...


16

There are quite a few options already: Chroot to a full fledged linux (search for debian chroot android, it's got quite a few hits) There are also native ports of Debian or Ubuntu for some phone/tablet models. Shell access is already there: Terminal Emulator If you install an aftermarket firmware such as CyanogenMod you will get root access, busybox, bash, ...


16

You don't need any special drivers -- all you need is to make your device known. A few simple steps can accomplish this when your device is connected via USB: sudo lsusb [...] Bus 002 Device 054: ID 18d1:4e22 Google Inc. Nexus S (debug) See the two hex values separated by a colon: 18d1:4e22 This is the manufacturerID:deviceID you need to tell the system to ...


14

From here: You might need to activate adb root from the developer settings menu. If you run adb root from the cmd line you can get: root access is disabled by system setting - enable in settings -> development options root access is disabled by system setting - enable in settings -> development options Once you activate the root option (ADB only or Apps ...


14

I am using Android Studio 2.1.1 and Ubuntu 16.04 (x64). The following solved the problems (sh: 1: glxinfo: not found and libGL error:.) for me. $ sudo apt-get install lib64stdc++6 (if it is not installed) $ cd ~/Android/Sdk/tools/lib64/libstdc++ $ mv libstdc++.so.6 libstdc++.so.6.original $ ln -s /usr/lib64/libstdc++.so.6 ~/Android/Sdk/tools/lib64/libstdc++ ...


12

Nexus 7 doesn't support UMS (USB Mass Storage) out of box. But, it supports file transfer by MTP (Media Transfer Protocol). MTP allows you to push and pull any type of files from sdcard, but it doesn't allow you to edit files directly on sdcard (like you do with UMS mode). From your screenshot, it looks like your Nexus 7 is connected with PTP (Photo ...


11

The following works for a while, but only for the browser. When you plug in your phone via usb and choose Internet pass-through, you should get a new RNDIS device (usb0 or usb1). For ubuntu, edit /etc/network/interfaces and add the following lines: iface usb0 inet dhcp iface usb1 inet dhcp This will assign an IP automatically when the device is added. If ...


11

In short, it's because of the different ways that Android and MS Windows are distributed. MS Windows is a retail product, sold directly to PC owners. Therefore, Microsoft is responsible for making it run on PCs. PCs are standardized, and (nowadays) have a hardware-discovery mechanism, so Microsoft can design the Windows installer so that it can run on any PC-...


10

Android != GNU/Linux. That is a common misunderstanding. You will never have the same Linux experience like you had with your N900 running debian. Sure, you can install busybox, sshd, maybe rsync and fuse should also be possible. Latex for example, with it's various dependencies will be hard to get running. Mostly because there is no package manager for ...


10

"Rooting" allows you access to the internal Android environment, which of course consists of more than just the Linux kernel. So you are running Linux, but you should consider it as though you are running under a different distribution than say Debian or Redhat. There's a different set of standard libraries and some files are in different locations. At ...


10

Android does not include a telnet daemon. Use the included android debug bridge (meant for development or power users). It comes with the official SDK ( http://developer.android.com/sdk/ ). Install both "tools" packages Enable USB debugging in your phone settings run ./platform-tools/adb shell in yor sdk folder (needs approprate USB rights for your phone) ...


10

Most shell commands in Android are not GNU versions or a POSIX-compliant implementation, they are either from Toolbox or Busybox and mostly stripped down versions. A lot of commands in /system/bin are symlinks to /system/toolbox. I haven't found much documentation about it, just the source at https://android.googlesource.com/platform/system/core/+/jb-mr1-...


10

I can confirm with 100% certainty that the numbers are indeed 1-9 for the pattern unlock. My Nexus 4 met the same unfortunate end (except on concrete) and after some Googling, I found this post and was able to follow personne3000's answer in order to mount my pattern-encrypted userdata partition. I'm running Ubuntu 15.04 x64 and had to apt-get install ...


8

The Replicant Project builds tools with every release; you can find their tools here (go down the directory tree in a path like replicant-2.3/preview/0002/tools/), along with notes about which git version was used for the source. Go one directory up and read COPYING for details. Note: They only offer Linux builds. Source code is here.


8

A touchscreen tablet is not like a Wacom tablet. Drawing tablets use a stylus with one or two pressure-sensitive tips and several buttons. The stylus is also sensitive to the angle you hold it at, and the tablet can detect when the stylus is hovering above the tablet, even with no contact. A drawing tablet has a resolution of a fraction of a millimetre. You ...


8

The kernel on your device is tied heavily to the version of the Android operating system you're running. Sony releases your phone with the "stock ROM" (think a "stock" car in stock car racing; no customization, just as-is from the factory), including the stock kernel. Normally, your kernel would be updated when the operating system - your "ROM" - is updated. ...


8

I installed the Disk Info app and in the options, I enabled Expert mode and Unmounted partitions. It doesn't say "swap", but it shows clearly that it's the only other partition on the SD card and it's the right size, so /dev/block/mmcblk1p2 must be the one: Swapper 2 is configured to use /dev/block/mmcblk0p3 by default, so I'm glad I didn't go with the ...


8

fdisk -l works if you pass the whole disk device name explicitly (e.g., fdisk -l /dev/block/mmcblk1); what does not work is automatic discovery of block devices (apparently because Android places block device files under the /dev/block directory, but fdisk expects to see those files directly in /dev). Therefore one option is to collect the list of whole disk ...


8

First of all you don't need any USB cable. You can transfer files from/to your android device with the Wi-Fi network of your device. Just install airdroid on your android device. Then activate wi-fi hotspot on your android and open the airdroid app. Next connect your pc to that hotspot, open any browser in your pc and enter the url provided by the airdroid ...


8

Well, you have to do a few commands, as I don't believe it will work in one. You need to do: adb shell su cd /data/path/of/file cp /data/path/of/file/copyme /data/local/tmp chown shell.shell /data/local/tmp/copyme exit exit adb pull /data/local/tmp/copyme /destination/copyme This works for me every time.


7

Another way is to simply go to Settings→About phone, where you should see (depending on your CyanogenMod version) an item "CyanogenMod updates", and (with all CM versions) "CyanogenMod-Version":


7

The differences change from version to version (both of Linux and of Android), and the exact kernel is different for each device. A kernel for Android is a mainstream Linux kernel, with additional drivers for the specific device, and other additional functionality, such as enhanced power management or faster graphics support. Many features in the Android ...


7

Izzy’s answer is misleading. Two unrelated things were mixed up (the vendor ID list in adb on one side and the permission setup in Linux on the other side). 1) devices considered by adb: Adb has a hard-coded list of USB vendor IDs it tries. E.g. HTC mobile phones use 0xbb4, which is listed (source file usb_vendors.c), while 0x2207 is not. The only way to ...


7

Android runs the Linux Kernel for the core system and it can be (and is) optimized for various platforms (compiled for ARM, x86, x64, PPC, etc). Here is a fantastic graphic to demonstrate this for you: Source: Post on Unix.SE Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network ...


7

It's not enough to make the Developer options page appear in the settings menu (by repeatedly tapping the build number). On that page, there's an option USB debugging, which defaults to off. When USB Debugging is enabled, connecting your device to a PC using USB makes the "USB debugging connected" notification appear, regardless of whether adb is currently ...


7

Download and untar https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz After this, just copy the extracted executable "adb" over old one in /usr/bin.


7

Why didn't Google just take a Linux distribution ... and create a desktop environment for touchscreens? Because they didn't want to create a desktop environment for touchscreens: they wanted to create a new OS for smartphones. Smartphones (and earlier, PDAs) based on not only the Linux kernel but the GNU userspace, with the same programming environment as ...


Only top voted, non community-wiki answers of a minimum length are eligible