Apr 2, 2014

Fastboot without Sudo

Because of Gentoo set Gnome-3 as stable. I got hassle by black screen on GDM. Spent one and half day can not resolve the case. I wipe gentoo system and pick FUNTOO up, merged Mate-Desktop along with XFCE-4.10 :-) everything just fine. Setting-up all necessary for poking android beast device and rom.
Faced annoying problem with fastboot , when fastbooting on user mode, got no permission messages. I used fastboot from Adt Bundle , stored at :
/ahu/adt-bdlx86_64

Exported the PATH > on [dot]bashrc
export PATH=/ahu/adt-bdlx86_64/sdk/platform-tools:$PATH

Udev rules " properly " set-up
## /etc/udev/rules.d/51-android.rules

# SAMSUNG GALAXY NEXUS GT-i9250 FASTBOOT
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30",
MODE="0666", GROUP="plugdev"


## username x1123 member of group plugdev

># gpasswd -a x1123 plugdev

I CAN NOT use sudo with above set, thus copied " fastboot and adb" to " /usr/local/bin " to enable using " sudo ", commented exported PATH > :

# export PATH=/ahu/adt-bdlx86_64/sdk/platform-tools:$PATH

It's works !!!.
Well, no good idea, have to use " sudo " for fastbooting, something must be wrong.


Solution
After couple of experiments, toke gunshot advise from internet. No lucks. One works is editing /etc/udev/rules.d/51-android.rules to be :

## /etc/udev/rules.d/51-android.rules

# SAMSUNG GALAXY NEXUS GT-i9250 FASTBOOT
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e30",
MODE="0666", GROUP="plugdev", OWNER="x1123"



Uncommented file ~/[dot]bashrc
export PATH=/ahu/adt-bdlx86_64/sdk/platform-tools:$PATH
removing adb and fastboot >$ sudo remove /usr/local/bin/adb /usr/local/bin/fastboot

Loged Out and Loged In again :-)

Everyting back to "Normal"

15:19:32 [~]
x1123@ /> adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
014E0F5212008010 device

15:19:40 [~]
x1123@ /> adb reboot-bootloader
15:19:47 [~]
x1123@ /> fastboot devices
014E0F5212008010 fastboot
15:20:01 [~]
x1123@ />fastboot reboot
rebooting...

finished. total time: 0.005s
15:29:02 [~]
x1123@ />

Real Multilib Userland on Linux

Read multilib requirement on Android rom building and other stuff. About two years absent from getting rid with android rom. I have time to...