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 ...
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/...
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:
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 ...
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 ...
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-...
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++
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 ...
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 ...
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-...
Well, you have to do a few commands, as I don't believe it will work in one.
You need to do:
cp /data/path/of/file/copyme /data/local/tmp
chown shell.shell /data/local/tmp/copyme
adb pull /data/local/tmp/copyme /destination/copyme
This works for me every time.
I'm going to give a general overview of how dm-verity and related things work on Android according to my limited knowledge. Situation might differ on different devices and ROMs.
HOW IS DM-VERITY ENFORCED?
dm-verity (Verified Boot and AVB) as well as dm-crypt (FDE) are targets of device-mapper feature of Linux kernel. dm-verity verifies the integrity of ...
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 ...
Apparently there is no tool on PC to decrypt Android's encryption at the moment, but the TWRP recovery can be used on the device to decrypt everything... Even with a broken touchscreen, as long as your device is supported by TWRP recovery:
Download the TWRP image (2.8.7 worked for me)
Boot into fastboot (power + vol. down on Nexus 4)
Start the recovery, ...
Near duplicate: Is it possible to boot an Android phone from a USB drive?
You question has two parts:
1. How to boot from USB on Android device?
On most of the recent Android devices you can't boot even Android from USB, rather Ubuntu or some other OS.
PC world has a standardization. BIOS / UEFI, ACPI and discoverable buses make every PC almost ...
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. ...
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 ...
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 ...
For accessing your Android device via USB in "File Transfer" mode your computer uses the MTP protocol. This protocol allows to list and read/write the files from/to your device.
What most people don't know is that the MTP protocol does not show the content of the file-system. Instead it uses the Android MediaStore Database (an SQLite database) ...
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 ...
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 ...
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 stack, ...
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 ...
Download and untar
After this, just copy the extracted executable "adb" over old one in /usr/bin.
There is a cross-platform version of Odin called JOdin. It can run in a web browser, or locally after downloading the JAR file. Either one requires Oracle Java 8 to be installed first.
Web version: https://builds.casual-dev.com/jodin3/
Offline version: https://builds.casual-dev.com/index.php?dir=JOdin3%2F '
The offline version is started with $ java -jar /...
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 ...
I think this Android Source is a great documentation for understanding it.
And here is a list of changes done from mainline kernel for android kernel 4.14.
The largest features include:
19.8% Energy Aware Scheduling (kernel/sched)
13.8% Networking (net/netfilter)
13.5% Sdcardfs (fs/sdcardfs)
9.4% USB (drivers/usb)
7.2% SoC (arch/arm64, arch/x86)
6.2% f2fs ...
The first problem is space. Most phone until recently have too little storage space to contain the entire generic kernel and android framework. A compounding issue is that phone hardware is generally more variant and less standardized than PC hardware, which can be unavoidable due to the limited space.
The other problem is that there no single standard for ...