[Tutorials][2014-06-01] How to tweak your Ubuntu Touch installation - Ubuntu Touch General

Many things have changed within Ubuntu Touch. All of the tips and tweaks mentioned here have not been tested with newer Ubuntu Touch builds and many links are broken (and I can't fix them because I don't have all the files). If you do still want to try them proceed with caution!
Everyone is encouraged to share new tweaks in this thread. If you want I can add you to the first post so you can get the "Thank you" and all Ubuntu Touch users can easily find tweaks.

Old posts:
I want to explain you how to do simple UI changes (installing apps...) in Ubuntu Touch and do some other things under the hood.
First: Check out the Release notes. A lot of tweaking is explained there (changing language or keyboard layout).
I want to start with changing the system time zone:
Connect your device via SSH to your computer (explained in the release notes).
The type into a terminal:
sudo dpkg-reconfigure tzdata
Click to expand...
Click to collapse
root password is phablet
1. Change the system time zone
2. How to change the wallpaper.
3. How to update Ubuntu Touch without a PC
4. Create a simple web app
5. Installing Core Apps
If you see this smiley: You should type in the Terminal this: : p without the space.
How do I change my Ubuntu Touch Wallpaper?
This is really simple! Thanks to blmvxer showing us the path where all those wallpapers are! He made a really nice script for changing it. Check it out here: http://forum.xda-developers.com/showthread.php?t=2387117
First of all upload the script to a cloud storage (Google Drive does not work; I use Ubuntu One).
Optional: Create a goo.gl link out of this (easier; otherwise you might not know the filename).
I will post the script first:
wget http://goo.gl/{ID} && mv {ID} /usr/share/unity8/graphics/tablet_background.jpg && wget http://goo.gl/{ID} && mv {ID} /usr/share/unity8/graphics/phone_background.jpg
Click to expand...
Click to collapse
The first wget downloads the script. After that we move it to the right path (thanks again to blmvxer to show us the path). Then it downloads it again and replaces the second wallpaper. After a reboot you will have a new background.

How do I update the whole Ubuntu Touch without a PC?
Note: You can't update everything in the current builds but you can update a lot!
The first thing you have to do is adding a new repository to your Ubuntu Touch device. Open a Terminal and type:
sudo add-apt-repository ppahablet-team/ppa
Click to expand...
Click to collapse
After that hit
sudo apt-get update && sudo apt-get upgrade -y
Click to expand...
Click to collapse
. This updates your system. You can do this as often as you want.
I have created a simple script so I do not have to type in so much:
sudo apt-get update -y && sudo apt-get upgrade -y && sudo bash {myWallpaperchangescript} && sudo reboot
Click to expand...
Click to collapse
I have added the wallpaper change script because if unity gets updated you have to run it again because you have the purple wallpaper back again.

How to create a web app?
Create a *.desktop file with a text editor (I used gedit because it just works ).
Copy the following into the file:
[Desktop Entry]
Type=Application
Terminal=false
Exec=webbrowser-app --chromeless https://{put_URL_in_here}
Name={put_application_name_here]
Icon=/usr/share/{application_name}/{picturename}.png
X-Ubuntu-Touch=true
X-Ubuntu-StageHint=SideStage
Name[en_GB]=
Click to expand...
Click to collapse
Replace the text in “{}” with the variables of your choice.
Save the file.
Search for an icon which represents your web application. (You can find these icons on Google Play or anywhere else)
How do install my new web app?
Upload the file to a cloud storage of your choice (Google Drive does not work; I use http://one.ubuntu.com/) and create a public link. Copy the link.
Now we are going to create a script with a text editor:
{put_a_name_in_here}.sh
Now we are going to put content in:
wget http://{cloudservicelink}/{filename_or_ID}
Click to expand...
Click to collapse
This line downloads the *.desktop file onto your Ubuntu Touch device into the current folder. For my test app it would be: “wget http://ubuntuone.com/337i5uukUMjH4gtPehpdXq ”.
Second line:
mv {fileID} /usr/share/applications/{applicationname}.desktop
Click to expand...
Click to collapse
This moves the app into the directory where all the other apps are located. For my test-app it would be: “mv 337i5uukUMjH4gtPehpdXq /usr/share/applications/stadtbremerhaven.desktop”
In the third line we have to create a new directory for the icon:
mkdir /usr/share/{applicationname}
Click to expand...
Click to collapse
Important: You have to use the same path like in the *.desktop file!
In the fourth line we have to download the icon (I use the one from the Google Play Store):
wget http://goo.gl/{ID}
Click to expand...
Click to collapse
It is important to use http://goo.gl/ because other shorteners do not work!
An the last line:
mv {goo.glID} /usr/share/{applicationname}/{picturename}.png
Click to expand...
Click to collapse
This moves the icon into the right directory. It is important to use the picturename used in the *.desktop file.
My line looks like the following: “mv 0wEYju /usr/share/stadtbremerhaven/unnamed.png”
Great! You have now your first Ubuntu Touch web app (it is as REALLY simple one ).
Now we you have to connect the lines. Remove all new lines so it is a really long line and put between the different actions “&&”.
So for my app it looks like this:
wget http://ubuntuone.com/337i5uukUMjH4gtPehpdXq && mv 337i5uukUMjH4gtPehpdXq /usr/share/applications/stadtbremerhaven.desktop && mkdir /usr/share/stadtbremerhaven && wget http://goo.gl/0wEYju && mv 0wEYju /usr/share/stadtbremerhaven/unnamed.png
Click to expand...
Click to collapse
If you want to add more programms just add them after the last command with “&&”.
So for me it looks like this:
wget http://ubuntuone.com/337i5uukUMjH4gtPehpdXq && mv 337i5uukUMjH4gtPehpdXq /usr/share/applications/stadtbremerhaven.desktop && mkdir /usr/share/stadtbremerhaven && wget http://goo.gl/0wEYju && mv 0wEYju /usr/share/stadtbremerhaven/unnamed.png && wget http://ubuntuone.com/0f2KoDkZnre5lQMWqwsrP6 && mv 0f2KoDkZnre5lQMWqwsrP6 /usr/share/applications/duckduckgo.desktop && mkdir /usr/share/duckduckgo && wget http://goo.gl/Mzklu8 && mv Mzklu8 /usr/share/duckduckgo/unnamed.png
Click to expand...
Click to collapse
You can write a really large installer script with all of your web apps.

I have heard there is a mail client and there are other cool apps, too. Where can I f
To install all those apps you have to add a new repository. So type into a Terminal:
sudo add-apt-repository ppa:ubuntu-touch-coreapps-drivers/daily && sudo apt-get update
Click to expand...
Click to collapse
Now you have to install the right package:
sudo apt-get install touch-coreapps && sudo reboot
Click to expand...
Click to collapse
After the reboot you have those apps installed!

I hope you can understand everything, because I am not a native English speaker.
If you have any questions feel free to write a comment!
If you have tweaks and tips to share with the community it would be nice to post them in this thread so beginners can find them easily.

thx , gone try ubuntu touch later this day and wil use some of you tweaks / tricks

May I ask a question? Maybe sounds stupid.
Do these all mod applicable to non-nexus Ubuntu touch phone.
I mean the phone not directly supported by Ubuntu.
Sent from my Xperia S using xda app-developers app

All mods except this one should work. I don't know if you can update the whole Ubuntu Touch system with a not official supported device and I wouldn't try it. So juse the other tipps to make Ubuntu Touch your own.

To98 said:
This is really simple! Thanks to blmvxer showing us the path where all those wallpapers are! He made a really nice script for changing it. Check it out here: http://forum.xda-developers.com/showthread.php?t=2387117
First of all upload the script to a cloud storage (Google Drive does not work; I use Ubuntu One).
Optional: Create a goo.gl link out of this (easier; otherwise you might not know the filename).
I will post the script first:
The first wget downloads the script. After that we move it to the right path (thanks again to blmvxer to show us the path). Then it downloads it again and replaces the second wallpaper. After a reboot you will have a new background.
Click to expand...
Click to collapse
Thanks mate.
I have used a slightly different approach.
Open terminal on phone (Nexus 4 is mine) and enter
Code:
[B][I]sudo passwd root[/I][/B]
You will be prompted to enter a new password for the "root" user and then retype it.
OK that done I used the guide on this page, https://wiki.ubuntu.com/Touch/ReleaseNotes, to use sftp and FileZilla to login as "root". Now I could replace the phone_background.jpg file.
Crude and dirty, but works!
Best thing now is I can use sftp and FileZilla from Linux, Windows and Mac PC's/laptops.

Rasputin007 said:
...to use sftp and FileZilla to login as "root". Now I could replace the phone_background.jpg file.
Crude and dirty, but works!
Best thing now is I can use sftp and FileZilla from Linux, Windows and Mac PC's/laptops.
Click to expand...
Click to collapse
Interesting idea using FTP to change the background! Only one problem for me: After every update you have to do it again.
When you write a script you can add it to an updater script and you don't have to do it again.
But really interesting way of changing the wallpaper.

I am so used to use ftp/sftp with FileZilla for years now to mess with the phone file system. It started with the Linux based Motomagx OS from the Motorola V8, then I used it on the iPhones and like to use it on the Nexus 4 as well.
The problem with being logged in as "phablet" user is you can not replace files that belong to "root".
As "root" you can do anything, but then with great power comes great responsibility.
Another alternative could be a symlink. That's the nice thing about Linux, there is always more then one way to achieve the goal.

How to change brightness.
With the new Ubuntu Touch updates you can't change the brightness.
I have figured out how can adjust it via Terminal.
Open the Terminal and type
cd /sys/class/backlight
Click to expand...
Click to collapse
now type
cd
Click to expand...
Click to collapse
and press [TAB] and press [ENTER].
After that type
sudo nano brightness
Click to expand...
Click to collapse
and hit [ENTER]. Enter your password and change the value to everything you want. The problem with this is that you have to change it after every reboot.
If you have other tipps, please share them in this thread!

How can I block ads with Ubuntu Touch (or other unwanted sites)?
This is really easy.
Open the Terminal (or connect via SSH) and type
sudo nano /etc/hosts
Click to expand...
Click to collapse
Add you unwanted sites under the lines containing "localhost".
For Adblock search the internet for an adblocking hosts file and add the sites to your /etc/hosts file.

How can I change my hostname?
You want to change your Ubuntu Phone's hostname?
Type into a Terminal
sudo nano /etc/hostname && sudo nano /etc/hosts
Click to expand...
Click to collapse
In the first file change "phablet" (or any other current hostname) to the hostname of your choice. In the second change "phablet" (or any other current hostname) to the hostname you have set in /etc/hostname.
How can I change my password from "phablet" to something more secure to prevent installing of malware?
Type into a Terminal
passwd
Click to expand...
Click to collapse
enter the current password (phablet) and enter your new secure one. But be aware! You can't change the password back to "phablet" because it is to insecure.

To98 said:
With the new Ubuntu Touch updates you can't change the brightness.
I have figured out how can adjust it via Terminal.
Open the Terminal and type
now type and press [TAB] and press [ENTER].
After that type and hit [ENTER]. Enter your password and change the value to everything you want. The problem with this is that you have to change it after every reboot.
If you have other tipps, please share them in this thread!
Click to expand...
Click to collapse
I got no problem changing brightness , using the battery tab on the status bar
on nexus 4

davjan said:
I got no problem changing brightness , using the battery tab on the status bar
on nexus 4
Click to expand...
Click to collapse
With a recent update to unity8 you can't change the brightness.
Sent from my LG-LS970 using xda app-developers app
---------- Post added at 09:45 AM ---------- Previous post was at 09:42 AM ----------
To98 said:
With the new Ubuntu Touch updates you can't change the brightness.
I have figured out how can adjust it via Terminal.
Open the Terminal and type
now type and press [TAB] and press [ENTER].
After that type and hit [ENTER]. Enter your password and change the value to everything you want. The problem with this is that you have to change it after every reboot.
If you have other tipps, please share them in this thread!
Click to expand...
Click to collapse
Echo the brightness with an init.d script.
Or rename the modified file .bak and at startup have it replace the original.
Sent from my LG-LS970 using xda app-developers app

blmvxer said:
Echo the brightness with an init.d script.
Or rename the modified file .bak and at startup have it replace the original.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
I thought about that for me but I do not restart my phone often and when we are able to change brightness again, I have to delete the script.
But for other people it is a better workaround than mine.

To98 said:
The problem with this is that you have to change it after every reboot.
Click to expand...
Click to collapse
What about this command line?
Code:
[B]sudo chmod 0444 brightness[/B]
It would change the file property to read-only, meaning even the "system" user can not change this file.

Rasputin007 said:
What about this command line?
Code:
[B]sudo chmod 0444 brightness[/B]
It would change the file property to read-only, meaning even the "system" user can not change this file.
Click to expand...
Click to collapse
Does not work. It changes the brightness back. I have already tried that.

Related

Burtcom's keymap for Desire Z

Thought I'd share my hardware keymap for Desire Z, which may come in handy for programmers and shell users
WARNING: INSTALL AT YOUR OWN RISK. REQUIRES ROOT, RW-MOUNTED SYSTEM AND USE OF ADB
(If you don't know what that means, search the forums)
WARNING2: You will lose the British Pound and Euro keys, as well as the use of the "user-programmable" keys
WARNING3: The supplied keypad files are for the Desire Z -- the G2 names its keypad files differently, so you'll probably have to rename the attached files appropriately to get this to work. Search the forum...
(USER1 is the "programmable" key just to the right of the period key, and USER2 is just to the right of USER1 )
[email protected] types \
shift-? types |
FN-Z types < (got rid of British Pound)
FN-X types > (got rid of Euro)
USER1 types [
shift-USER1 types {
FN-USER1 types ^
USER2 types ]
shift-USER2 types }
FN-USER1 types ` (this is the backtick character)
Unzip the attached file, and you'll find two files. vision-keypad-wwe.kcm.bin and vision-keypad-wwe.kl. Put these somewhere where you can push them with ADB
adb push vision-keypad-wwe.kcm.bin /sdcard/vision-keypad-wwe.kcm.bin
adb push vision-keypad-wwe.kl /sdcard/vision-keypad-wwe.kl
Now open a shell
adb shell
su -
Make sure you get a root prompt # then lets make a backup of the current files JUST IN CASE
cp -f /system/usr/keychars/vision-keypad-wwe.kcm.bin /system/usr/keychars/vision-keypad-wwe.kcm.bin.orig
cp -f /system/usr/keylayout/vision-keypad-wwe.kl /system/usr/keylayout/vision-keypad-wwe.kl.orig
(now the .orig files can be put back in place in case you don't like the keymap)
cd /sdcard
cp -f vision-keypad-wwe.kcm.bin /system/usr/keychars/
cp -f vision-keypad-wwe.kl /system/usr/keylayout/
Now change the permissions on the copied files...
cd /system/usr/keychars/
chmod 644 vision-keypad-wwe.kcm.bin
cd /system/usr/keylayout/
chmod 644 vision-keypad-wwe.kl
This should take effect immediately -- if it doesn't try a reboot.
Any chance of a quick [how to] for those interested?
Thanx for the share though, sure it will be useful for many out there.
Some members were asking if it would be possible to add extra characters into the sym key?.... reckon you could work some magic?
ddotpatel said:
Any chance of a quick [how to] for those interested?
Click to expand...
Click to collapse
FOR ADB, check out this thread
ddotpatel said:
Some members were asking if it would be possible to add extra characters into the sym key?.... reckon you could work some magic?
Click to expand...
Click to collapse
No idea -- we'd have to find out what file stores these chars.
Sorry,.I meant a how to do the remapping yourself? Software needed?.stuff like that.
Sent from my HTC Vision using XDA App
ddotpatel said:
Sorry,.I meant a how to do the remapping yourself? Software needed?.stuff like that.
Click to expand...
Click to collapse
Oh that stuff I gleaned from this thread
Excellent,... Good job...
Thank you so much for doing this! Really!
Two problems I had.
1) I had to do adb remount before being able to copy over the new keyboard files.
2) Although no reboot is needed afterwards, if you have connectbot open beforehand and then try to do pipe keys etc. they don't seem to work. But a restart fixed this.
Yay!

(Working) Ubuntu on A500

Maybe you've heard of this app? https://market.android.com/details?id=com.galoula.LinuxInstall
Note: You need to be rooted for this to work.
I've just installed and run it on my a500 (After a full backup through CWM of course). In settings, I set it to install Ubuntu Maverick Meerkat. It installed fine, although you have to go through some trial and error with the settings panel:
Loop file must be "/data/local/tmp/Linux.loop"
"Bind Android" must be enabled
"Allow write on /system" must be enabled!
Linux is activated through a terminal by typing "linuxchroot". Here is an extract from the terminal. (I'll upload screenshots when I find a working program.)
Code:
#linuxchroot
I: Mounting device for ubuntu maverick...
I: Entering chroot...
I: Executing /etc/init.android/rc_enter.sh
/etc/init.android/rc_enter.sh: 2: /etc/init.d/hostname.sh: not found
[email protected]:/# cat /etc/issue
Ubuntu 10.10 \n \l
[email protected]:/# apt-get install python
Reading package lists... Done
Building dependency tree... Done
python is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
[email protected]:/# python
Python 2.6.6 (r266:84292, Sep 16 2010, 14:12:30)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 3+7
10
>>> exit()
[email protected]:/#
I'm running a stock 4.010.13_COM_GEN2 rom.
I'm working my way around the console now. As you can see, apt-get and python work. I just need to figure out how (if it's possible) to install gnome onto this installation.
Update:
So it turns out "add-apt-repository" isn't installed by default in the usual place. Or the shortcut doesn't work. Either way, I found that the /usr/bin directory contains all the required files. Since this linux seems to log you in directly into root, which might not have well-made shortcuts, you cannot access the applications normally. I cd'd inbto /usr/bin and add-apt-repository works. Now to see if usr can be the default login.
Alright. Forget about trying to get a GUI working on this type of linux. Nvidia's Tegra drivers for Xorg are MIA.
Getting the following:
/system/xbin/linuxchroot.sh: UID: readonly variable
Any thoughts?
Sent from my MB860 using xda premium
just_mike said:
Getting the following:
/system/xbin/linuxchroot.sh: UID: readonly variable
Any thoughts?
Sent from my MB860 using xda premium
Click to expand...
Click to collapse
When do you get the message? Right after you type "linuxchroot"? If so, try typing su then hitting enter; and then typing "linuxchroot"
Same thing happens, will post over in the main thread? Thanks
Sent from my MB860 using xda premium
If you want a working guide with all the necessary files there is an app in the market.
For Ubuntu:
https://market.android.com/details?id=com.appbuilder.u14410p30729
Or for backtrack:
https://market.android.com/details?id=com.appbuilder.u14410p30729
Both work on the iconia. The only fiddling I had to do was change a CD command from the guides suggested command to CD /mnt/external_sdcard. I am able to boot both from my iconia .
profclean2000 said:
If you want a working guide with all the necessary files there is an app in the market.
For Ubuntu:
https://market.android.com/details?id=com.appbuilder.u14410p30729
Or for backtrack:
https://market.android.com/details?id=com.appbuilder.u14410p30729
Both work on the iconia. The only fiddling I had to do was change a CD command from the guides suggested command to CD /mnt/external_sdcard. I am able to boot both from my iconia .
Click to expand...
Click to collapse
I cant load it in the iconia
FearL0rd said:
I cant load it in the iconia
Click to expand...
Click to collapse
Where are you stuck? Maybe I can help.
GNOME
Zen_Jackal said:
I just need to figure out how (if it's possible) to install gnome onto this installation.
Click to expand...
Click to collapse
Idea: Install GNOME and then a VNC client and connect.
I'll try it later. Will post my conclusions/steps taken/results here.
-Cameron
Zen_Jackal said:
Alright. Forget about trying to get a GUI working on this type of linux. Nvidia's Tegra drivers for Xorg are MIA.
Click to expand...
Click to collapse
http://developer.nvidia.com/linux-tegra
Possibly this could help??
You cannot run Xorg with Tegra 2 drivers when your GPU is already in use by Android. Either you have to run some sort of a virtual Xorg driver and use VNC to connect to the Linux, or you have to use native Linux and scrap Android.
Connecting via VNC works just fine, I'm doing it all the time... Just don't try running a heavyweight like GNOME or KDE, use something like LXDE (looks ok, but it's a lot faster!). There are plenty of tutorials on how to set this up on the internet.

Enable ADB under Ubuntu/Linux

Alright so it turns out making ADB work for the Kindle Fire under Ubuntu is just a touch more difficult than in Windows.
Thanks to Gbhil (@ AndroidCentral) for the write up on windows it was a great jumping off point to try to figure this out.
Also thanks to the guys on chat.andirc.net (Skourg3 in particular for helping me figure this out the first time).
Let's get down to the nitty gritty yeah?
First you will still need the entry provided by Gbhil, go ahead and set it using the echo command in a terminal.
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
You can confirm that it took by using the cat command
Code:
cat ~/.android/adb_usb.ini
You should get a return of '0x1949' (plus any other rules that you may have added in the past).
Now really that should work but everytime you run adb you will have to either run it as root or using the sudo command. To allow standard user access we have to setup a udev rule.
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
That should open up gedit for you to edit the file 51-android.rules. If this is the first time you have added any udev rules the file will be empty as gedit will have just created it for you. go ahead and add in the following.
Code:
# adb/fastboot protocols for blaze / otter (Amazon Kindle Fire)
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTRS{idProduct}=="0006", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTRS{idProduct}=="0100", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
Save that than add in the user group androiddev.
Code:
sudo addgroup --system androiddev
And add your username to that group.
Code:
sudo adduser <username> androiddev
Replace <username> with your primary username without the <> around it.
After that you will need to logout and log back in for these values to apply. You will probably need to restart the adb server as well.
Change directory to your platform-tools directory and run the following.
Code:
./adb kill-server
./adb start-server
Assuming all went well that should work properly and you can than connect through adb, if for some reason this doesn't work try restarting your computer (though I do not believe this is necessary).
If you don't want to type the "./" before all of your adb and fastboot commands, you need to add their parent directory into your PATH environment variable. For example, (assuming you are using the bash shell) if you have adb and fastboot in your /home/<username>/bin directory, you want to define...
Code:
PATH=~/bin:${PATH}
or
Code:
PATH=${PATH}:~/bin
It just depends on whether you want your own binaries to be used before the system equivalents or after. Most people would probably use the first one to have your own binaries be the preferred ones, but either one should work for adb and fastboot since there are no system binaries by the same names.
If you don't want to have to do this for every shell you open, you can place the definition at the end of your ~/.bashrc file. If you need it for you your login shell, you also need to put it into your ~/.bash_profile file. If you don't want to maintain two parallel files with much of the same information, take a look at this post.
Sblood86 said:
First you will still need the entry provided by Gbhil, go ahead and set it using the echo command in a terminal.
Code:
echo ~/.android/adb_usb.ini 0x1949
Click to expand...
Click to collapse
Thanks for the guide on setting this up for linux. I just wanted to point out a small error in the instructions. The echo command above is incorrect and will not do what you intended. It should be corrected to
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
That will create or append to the file as necessary.
no adb_usb.ini file
kinfauns said:
Thanks for the guide on setting this up for linux. I just wanted to point out a small error in the instructions. The echo command above is incorrect and will not do what you intended. It should be corrected to
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
That will create or append to the file as necessary.
Click to expand...
Click to collapse
Somehow the guide I followed for setting up adb/fastboot on Ubuntu did not create the udb_usb.ini file.
I had to go into android-sdk-linux folder on my home directory and copy the one provided with KFU. Only then I could use the echo command.
freefaling said:
Somehow the guide I followed for setting up adb/fastboot on Ubuntu did not create the udb_usb.ini file.
I had to go into android-sdk-linux folder on my home directory and copy the one provided with KFU. Only then I could use the echo command.
Click to expand...
Click to collapse
This...
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
will definitely create the file if it doesn't exist, but only if the ~/.android/ directory exists (with the correct permissions). It won't make those directories if they don't exist. I'm guessing the .android directory wasn't there when you ran the command.
kinfauns said:
This...
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
will definitely create the file if it doesn't exist, but only if the ~/.android/ directory exists (with the correct permissions). It won't make those directories if they don't exist. I'm guessing the .android directory wasn't there when you ran the command.
Click to expand...
Click to collapse
I read a lot of guides and did what they all said and ended up with a working adb command but my kindle was still not detected. At the end it was this thing that solved the issue.
I dont think I had that "android" folder (i did not unhide the home folder to check but since i setup the android sdk inside "android-sdk-linux" folder, i doubt "android" folder was there).
It's because of these tiny details I was sugesting that you, sir, create a how-to for setting up adb on ubuntu (only if you feel comfortable doing it, that is).
Thanks.
Sent from my Amazon Kindle Fire using XDA
My OS is Mint 12, so same as Ubuntu (except for Unity and a bit of non open-source software) and setting up ADB was also a little bit more difficult than I anticipated. I don't know how other distros are.
The guide that got me most of the way there was this one http://forum.xda-developers.com/showpost.php?p=19446284&postcount=62, and then I hit the same problems as the OP. I had to do a bit of mostly useless searching and reading before I found the entry provided by Gbhil and .adb/ devices made the legend "0123456789ABCDEF device" pop up.
I updated every platform in the sdk while I was at it, oops, must get that 4 or 5 gigs of space in my Home folder back sometime.
A kindle fire specific guide for Ubuntu would be awesome, I hereby second freefaling's nomination of you, Sblood86, as author of said guide, if you're into it, because you seem pretty good at it.
Someone asked me about my Ubuntu setup last night and I thought that I should contribute back to this thread with the same information.
You can add another udev rule to cover fastboot commands on FFF so they don't have to be run as root...
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTRS{idProduct}=="0100", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
If you don't want to type the "./" before all of your adb and fastboot commands, you need to add their parent directory into your PATH environment variable. For example, (assuming you are using the bash shell) if you have adb and fastboot in your /home/<username>/bin directory, you want to define...
Code:
PATH=~/bin:${PATH}
or
Code:
PATH=${PATH}:~/bin
It just depends on whether you want your own binaries to be used before the system equivalents or after. Most people would probably use the first one to have your own binaries be the preferred ones, but either one should work for adb and fastboot since there are no system binaries by the same names.
If you don't want to have to do this for every shell you open, you can place the definition at the end of your ~/.bashrc file. If you need it for you your login shell, you also need to put it into your ~/.bash_profile file. If you don't want to maintain two parallel files with much of the same information, take a look at this link.
http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
I follow the recommendation at the end.
Hope that helps someone.
kinfauns said:
Someone asked me about my Ubuntu setup last night and I thought that I should contribute back to this thread with the same information.
You can add another udev rule to cover fastboot commands on FFF so they don't have to be run as root...
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTRS{idProduct}=="0100", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
If you don't want to type the "./" before all of your adb and fastboot commands, you need to add their parent directory into your PATH environment variable. For example, (assuming you are using the bash shell) if you have adb and fastboot in your /home/<username>/bin directory, you want to define...
Code:
PATH=~/bin:${PATH}
or
Code:
PATH=${PATH}:~/bin
It just depends on whether you want your own binaries to be used before the system equivalents or after. Most people would probably use the first one to have your own binaries be the preferred ones, but either one should work for adb and fastboot since there are no system binaries by the same names.
If you don't want to have to do this for every shell you open, you can place the definition at the end of your ~/.bashrc file. If you need it for you your login shell, you also need to put it into your ~/.bash_profile file. If you don't want to maintain two parallel files with much of the same information, take a look at this link.
http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html
I follow the recommendation at the end.
Hope that helps someone.
Click to expand...
Click to collapse
I spent something like 3 weeks trying to find the rule that worked with fastboot lol... thanks!
Your link is dead btw.
Sblood86 said:
I spent something like 3 weeks trying to find the rule that worked with fastboot lol... thanks!
Your link is dead btw.
Click to expand...
Click to collapse
Well it worked a couple of days ago when I made my post. It's not my fault it took you so long to read it.
All it really said was to add...
Code:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
to the .bash_profile file so that it will source the .bashrc file regardless of the way you got to the shell. Then you only have to maintain the .bashrc file and only put login shell specific info into .bash_profile
I picked up another tidbit yesterday while engrossed in the whole CWMR bricking thread. Ubuntu has a plugdev group that's used for (mounting?) hot-pluggable firewire/USB devices... sounds a lot like the KF. The first user created on the system is automatically put into that group. Since most Ubuntu desktop are going to be single user machines anyway, that's going to be THE user for the majority of these cases. So, creating a androiddev group just for the KF is probably not necessary most of the time. You can just skip the addgroup and adduser to group commands if you just want to adjust your rules to use the plugdev group instead.
First I'm going to apologize for not being good with this stuff. Now I'm going to ask questions that will probably frustrate some readers. If you aren't irritated by them please help me out.
Sblood86 said:
First you will still need the entry provided by Gbhil, go ahead and set it using the echo command in a terminal.
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
Click to expand...
Click to collapse
What is the entry provided by gbhil? Where do I get it? I thought I had adb in here but apparently I don't because when I run the echo command I'm getting "no such file or directory."
Can anyone dumb this down for me just a bit. Add the steps I'm obviously going to need as a newb?
Thanks
hortstu said:
First I'm going to apologize for not being good with this stuff. Now I'm going to ask questions that will probably frustrate some readers. If you aren't irritated by them please help me out.
What is the entry provided by gbhil? Where do I get it? I thought I had adb in here but apparently I don't because when I run the echo command I'm getting "no such file or directory."
Can anyone dumb this down for me just a bit. Add the steps I'm obviously going to need as a newb?
Thanks
Click to expand...
Click to collapse
The most likely cause of that error is you don't have a .android directory in your home directory. You'll need to run the following command before that echo command...
Code:
mkdir ~/.android
That will create a ".android" directory in your home directory (~ is shorthand for your home directory). Then you can create that adb_usb.ini file with the "0x1949" line in it.
Thanks for the help. Stuck again.
After that you will need to logout and log back in for these values to apply. You will probably need to restart the adb server as well.
Change directory to your platform-tools directory and run the following.
Code:
./adb kill-server
./adb start-server
Click to expand...
Click to collapse
logged out and in. what is the name of the "platform-tools" directory?
OK found them and realize they're 2 directories. How to I write to 2 directories at once? I'm going to try one at a time. Looking forward to the elaboration on this.
---------- Post added at 06:16 AM ---------- Previous post was at 06:03 AM ----------
ok followed all the steps except this one.
Code:
PATH=~/bin:${PATH}
Code:
PATH=${PATH}:~/bin
Seems like that's for people that not only know what they're doing in the terminal but spend a lot of time there.
Is there a way to confirm that I've enabled adb before I proceed?
Will I need to follow the latter half of these step everytime I want to enable adb or just the start server command?
Again sorry for newb questions and many thanks for the help.
Tried to push pokey's 9000 fb and it didnt work. I don't think I have adb enabled or something.
hortstu said:
What is the entry provided by gbhil? Where do I get it? I thought I had adb in here but apparently I don't because when I run the echo command I'm getting "no such file or directory."
Can anyone dumb this down for me just a bit. Add the steps I'm obviously going to need as a newb?
Thanks
Click to expand...
Click to collapse
I'm guessing Gbhil is a user who originally posted this information, but not sure...
If you go into a Terminal program, like UXTerm or whatever, you simply type that echo command as shown. It will append the 0x1949 to that .ini file in the hidden folder (.android), so adb can see your device. Of course, this is assuming you have a .android folder. It should be in your Home directory.
When I was playing around with custom ROMs and recovery, my KF stopped registering at 0x1949 at one point. Just in case that is happening to you, plug in your KF to your Linux PC. Go into a terminal program and type lsusb. You will get a list of devices and your KF will be there somewhere. If it is not 0x1949, you will see the correct number. If you get a different number (0x whatever), run the echo command for that number, too. No problem having more than one id num in your adb_usb.ini file.
hortstu said:
Thanks for the help. Stuck again.
Click to expand...
Click to collapse
Don't take this the wrong way, but you might want to take a step back from this and learn a little bit about getting around in Linux before you tackle this project with the Kindle Fire. If this is your primary OS, at least knowing how to navigate around the directory structures, how the PATH variable affects how you run commands, and many other things will be invaluable in your day to day use of the operating system. Linux has come a long way to being user-friendly, but it's still reliant on the users knowing their way around the command line interface... much more than the other two big OS's.
There are countless primers and introductions on the basics of getting around the unix/linux command line. I suggest you search for some and familiarize yourself with them.
In the meantime... the "platform-tools" directory the OP refers to in his post is part of Google's Android SDK distribution...
http://developer.android.com/sdk/index.html
kinfauns said:
Don't take this the wrong way, but you might want to take a step back from this and learn a little bit about getting around in Linux before you tackle this project with the Kindle Fire. If this is your primary OS, at least knowing how to navigate around the directory structures, how the PATH variable affects how you run commands, and many other things will be invaluable in your day to day use of the operating system. Linux has come a long way to being user-friendly, but it's still reliant on the users knowing their way around the command line interface... much more than the other two big OS's.
There are countless primers and introductions on the basics of getting around the unix/linux command line. I suggest you search for some and familiarize yourself with them.
In the meantime... the "platform-tools" directory the OP refers to in his post is part of Google's Android SDK distribution...
http://developer.android.com/sdk/index.html
Click to expand...
Click to collapse
This would be a good start:
vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf
Sent from my Amazon Kindle Fire using XDA
OK thanks for the help. Realize I should probably know more about this stuff.
Really want to root for the sake of swype and google store. Tough to commit hours to this stuff since I have a family and a job that is non tech.
I have rooted my evo but that was a while back. Seems a little more complicated on the kindle. Thanks again. Not taken the wrong way.
Sblood86 said:
Alright so it turns out making ADB work for the Kindle Fire under Ubuntu is just a touch more difficult than in Windows.
Thanks to Gbhil (@ AndroidCentral) for the write up on windows it was a great jumping off point to try to figure this out.
Also thanks to the guys on chat.andirc.net (Skourg3 in particular for helping me figure this out the first time).
Let's get down to the nitty gritty yeah?
First you will still need the entry provided by Gbhil, go ahead and set it using the echo command in a terminal.
Code:
echo 0x1949 >> ~/.android/adb_usb.ini
You can confirm that it took by using the cat command
Code:
cat ~/.android/adb_usb.ini
You should get a return of '0x1949' (plus any other rules that you may have added in the past).
Now really that should work but everytime you run adb you will have to either run it as root or using the sudo command. To allow standard user access we have to setup a udev rule.
Code:
sudo gedit /etc/udev/rules.d/51-android.rules
That should open up gedit for you to edit the file 51-android.rules. If this is the first time you have added any udev rules the file will be empty as gedit will have just created it for you. go ahead and add in the following.
Code:
# adb/fastboot protocols for blaze / otter (Amazon Kindle Fire)
SUBSYSTEM=="usb", ATTR{idVendor}=="1949", ATTRS{idProduct}=="0006", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTRS{idProduct}=="0100", MODE="0660", OWNER="root", GROUP="androiddev", SYMLINK+="android%n"
Save that than add in the user group androiddev.
Code:
sudo addgroup --system androiddev
And add your username to that group.
Code:
sudo adduser <username> androiddev
Replace <username> with your primary username without the <> around it.
After that you will need to logout and log back in for these values to apply. You will probably need to restart the adb server as well.
Change directory to your platform-tools directory and run the following.
Code:
./adb kill-server
./adb start-server
Thanks for the post and the guide.
I have a little problem. i.e How do i change the directory to platform-tools directory before i ru the code u gave me. Please dont be mad at me becouse the truth is i am a new user.
Click to expand...
Click to collapse
majexy033 said:
Thanks for the post and the guide.
I have a little problem. i.e How do i change the directory to platform-tools directory before i ru the code u gave me. Please dont be mad at me becouse the truth is i am a new user.
Click to expand...
Click to collapse
As in; from your terminal use the 'cd' command to change directory to where-ever platform-tools is actually installed on your PC.

Guide for Bluetooth Setup for [Win32/64][Dual Boot] Tubuntu for X3maniac Thread

I'm pleased to tell everyone Bluetooth finally works!!! I can't take any credit other than putting together the instructions to get it working and digging all over the interwebs so have a look below!!!!!!!:
Also note, this may work on other Linux setups using the Transformer and possibly other devices using similar instructions and files.
OP for Tubutnu by x3maniac
1. Go to this site and download the gz file. This contains a few missing files we need and it's compile for ARMHF. http://forum.xda-developers.com/showthread.php?t=1476835
2. Extract the contents of the gz to /usr/sbin
3. Go to this site. Copy the code in the box and make a new file called bsp-tf101. Save the file to /etc/init.d. http://forum.xda-developers.com/showpost.php?p=21388706&postcount=1456
4. In Android (or mount the Android file system if it isn't already) copy the file /data/misc/bluetooth/bcm4329.hcd to /lib/firmware. If the file with CAPITAL letters exists like this already in /lib/firmware: BCM4329.hcd you are to delete it or CUT it from that directory (many XDA posts say to get rid of that file. We want to use the lower case file.
5. In Android (or mount the Android file system if it isn't already) copy the file /data/misc/bluetooth/mac.txt to /lib/firmware/brcm.
6. Now, edit /etc/init.d/bsp-tf101. Go to the line that starts with /usr/sbin/brcm_patchram_plus and REMOVE --bd_addr and whatever MAC address is in the file. We are doing this because when you run the service, the MAC will be read from /lib/firmware/brcm/mac.txt.
7. In terminal type "service bsp-tf101 start" NO QUOTES.
8. After the terminal says Done Setting Line Discipline, open your Bluetooth Manager application from Preferences in Lubuntu.
9. Happy scanning and pairing! I successfully connected my GS3 and saw other devices nearby.
Addendum for Bluetooth in Raring
1. Create a file called "tfbatch" or whatever name you want, it does not matter. Save it in your home directory for the moment. Edit your file with nano /home/username/tfbatch with the following lines in it below.
#! /bin/sh​rfkill unblock 0​/usr/sbin/brcm_patchram_plus --enable_hci --baudrate 3000000 --patchram /lib/firmware/bcm4329.hcd /dev/ttyHS2​chmod /dev/nv* /dev/tegra_*​exit​
2. Now copy "tfbatch" or whatever you named it to /usr/bin. You can do (without quotes) "cp /home/username/tfbatch /usr/bin"
3. sudo nano /etc/rc.local
4. Type tfbatch in this file before the line that says exit 0. I'm not sure if you need a space in between tfbatch and exit 0 but put one there just in case.
5. If you haven't done so already, from terminal do the following for these files:
sudo chmod 777 /usr/bin/tfbatch​sudo chmod 777 /lib/firmware/bcm4329.hcd​sudo chmod 777 /usr/sbin/brcm_patchram_plus​sudo chmod 777 /usr/sbin/brcm_patchram_plus.c​
6. Please note, I understand the security risks of 777 for these files but if you are worried then you must choose something different. Maybe 644 but I don't know for sure. We are doing 777 for some files becacuse of permission denied errors. If you find a better method I'll update my post.
7. Reboot and Profit. (I was perfectly able to use PAN for Bluetooth tethering without installing anything extra using Raring and GNOME-CORE. However, I did not get Bluetooth headsets to work yet so if someone else wants to help out then that's great too.
Hi!
First of all thank you, that worked perfectly for me.
I just had to chmod bcm4329.hcd and brcm_patchram_plus's files.
For those who have the same "problem" just type this once you placed all the files in good folders.
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
Code:
sudo chmod 777 /etc/init.d/bsp-tf101
And do the same for all files you extracted from brcm.tar.gz
Not sure if chmod all of these files is useful but that's what I've done and it worked.
Hope it'll help.
147keul said:
Hi!
First of all thank you, that worked perfectly for me.
I just had to chmod bcm4329.hcd and brcm_patchram_plus's files.
For those who have the same "problem" just type this once you placed all the files in good folders.
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
Code:
sudo chmod 777 /etc/init.d/bsp-tf101
And do the same for all files you extracted from brcm.tar.gz
Not sure if chmod all of these files is useful but that's what I've done and it worked.
Hope it'll help.
Click to expand...
Click to collapse
I have been problems getting this to work on Raring 13.04 build from X3. Are you using Raring by chance or one of the other versions by X3?
I've not been using yet Raring method, I used the one click method with 2.6.36 kernel.
Gonna take a look in a few with raring, I'll tell you if I manage to make it work.
147keul said:
I've not been using yet Raring method, I used the one click method with 2.6.36 kernel.
Gonna take a look in a few with raring, I'll tell you if I manage to make it work.
Click to expand...
Click to collapse
I got it to work a little bit ago and tethering for Bluetooth internet. Good call with chmod it worked like a champ. Thanks!
When using your Bluetooth tethering, you can also use Conky to display the IP address. You can edit the file by sudo nano /etc/conky/conky.conf. Go to the line that is displaying ${addr wlan0}. Copy that whole line below and replace wlan0 with bnep0. Bnep0 is the adapter interface that has the BT tether IP address.
Has anyone seen this? Ubuntu Developer Preview for Galaxy Nexus, Nexus 4 Arrives Feb. 21
"Our platform supports a wide range of screen sizes and resolutions. Developers who have experience bringing up phone environments will find it relatively easy to port Ubuntu to current handsets"
"For developers, contributors and partners, there is now a coherent experience that warrants attention. The cleanest, most stylish mobile interface around."
Click to expand...
Click to collapse
I don't have the files starting from step 4 (folder is empty). I'm guessing it's because I installed another ROM (EOS JB MR1 4.2 from http://forum.xda-developers.com/showthread.php?t=2063406). Would anyone happen to know where else I can obtain the files needed starting from step 4? Thanks!
Treizy said:
I don't have the files starting from step 4 (folder is empty). I'm guessing it's because I installed another ROM (EOS JB MR1 4.2 from http://forum.xda-developers.com/showthread.php?t=2063406). Would anyone happen to know where else I can obtain the files needed starting from step 4? Thanks!
Click to expand...
Click to collapse
Search android from terminal:
Find / | grep bcm4329.hcd
If you get nothing I'll try to upload later.
TomTcom said:
Search android from terminal:
Find / | grep bcm4329.hcd
If you get nothing I'll try to upload later.
Click to expand...
Click to collapse
Thanks! Found that file in /system/etc/firmware.
I wasn't able to find the mac.txt file but I know my bluetooth mac address. Is that the only thing that I need to include in that file?
Treizy said:
Thanks! Found that file in /system/etc/firmware.
I wasn't able to find the mac.txt file but I know my bluetooth mac address. Is that the only thing that I need to include in that file?
Click to expand...
Click to collapse
Yes, that's the only thing you need to put in. Strange you can't find needed files in right places, have you tried with a "root explorer"? Try to download it, and normally you should find mac.txt.
Trying this again with the raring build and still running into problems.
When I try to start the service, i get the following error:
Code:
$ sudo service bsp-tf101 start
* Starting Bluetooth Support Deamon...
* Setting correct permissions on nvtegra device nodes...
/etc/init.d/bsp-tf101: 23: /etc/init.d/bsp-tf101: /usr/sbin/brcm_patchram_plus: Permission denied
I did run the following commands before hand:
sudo apt-get install rfkill (I didn't have this installed before and it was giving an error)
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /etc/init.d/bsp-tf101
sudo chmod -R 777 /usr/sbin/brcm_patchram_plus
Any idea why it still says permission denied?
Thanks!
Treizy said:
Trying this again with the raring build and still running into problems.
When I try to start the service, i get the following error:
Code:
$ sudo service bsp-tf101 start
* Starting Bluetooth Support Deamon...
* Setting correct permissions on nvtegra device nodes...
/etc/init.d/bsp-tf101: 23: /etc/init.d/bsp-tf101: /usr/sbin/brcm_patchram_plus: Permission denied
I did run the following commands before hand:
sudo apt-get install rfkill (I didn't have this installed before and it was giving an error)
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /etc/init.d/bsp-tf101
sudo chmod -R 777 /usr/sbin/brcm_patchram_plus
Any idea why it still says permission denied?
Thanks!
Click to expand...
Click to collapse
Try also chmod 777 the brcm_patchram_plus.c file as well.
Also, I need to update my guide. I don't run it as a service but rather a batch file launched from rc.local so everything is executed as root. I'll have to update the guide to include Raring. So that could be part of the problem as well.
TomTcom said:
Try also chmod 777 the brcm_patchram_plus.c file as well.
Also, I need to update my guide. I don't run it as a service but rather a batch file launched from rc.local so everything is executed as root. I'll have to update the guide to include Raring. So that could be part of the problem as well.
Click to expand...
Click to collapse
So if I add these commands to the rc.local file in /etc it should work?
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /etc/init.d/bsp-tf101
sudo chmod -R 777 /usr/sbin/brcm_patchram_plus
sudo service bsp-tf101 start
Or do I need to do something else?
Treizy said:
So if I add these commands to the rc.local file in /etc it should work?
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /etc/init.d/bsp-tf101
sudo chmod -R 777 /usr/sbin/brcm_patchram_plus
sudo service bsp-tf101 start
Or do I need to do something else?
Click to expand...
Click to collapse
No don't do that. I'll try and post what you need to do later tonight.
Treizy said:
So if I add these commands to the rc.local file in /etc it should work?
Code:
sudo chmod 777 /lib/firmware/bcm4329.hcd
sudo chmod 777 /etc/init.d/bsp-tf101
sudo chmod -R 777 /usr/sbin/brcm_patchram_plus
sudo service bsp-tf101 start
Or do I need to do something else?
Click to expand...
Click to collapse
I have updated my guide. See the OP for the Addendum for Raring installation. The file you create will be ran before the GUI loads with root permissions from rc.local.
Let me know if this worked.
TomTcom said:
I have updated my guide. See the OP for the Addendum for Raring installation. The file you create will be ran before the GUI loads with root permissions from rc.local.
Let me know if this worked.
Click to expand...
Click to collapse
Nope
When I try to turn bluetooth on, nothing happens. It will switch back to off when i close the settings popup.
Treizy said:
Nope
When I try to turn bluetooth on, nothing happens. It will switch back to off when i close the settings popup.
Click to expand...
Click to collapse
Hmmm...if you followed the guide you shouldn't have to turn it on. The batch is executed on boot from RC.local. Try and give me some more details.
TomTcom said:
Hmmm...if you followed the guide you shouldn't have to turn it on. The batch is executed on boot from RC.local. Try and give me some more details.
Click to expand...
Click to collapse
Maybe I messed up. For step 1, the files you are asking us to download are the ones in post #10 correct (brcm.tar.gz)? Also, I don't have this mac.txt file anywhere so I created my own and just put my mac address in it (hopefully the correct one). Lastly, i dont have this file for this step:
sudo chmod 777 /usr/sbin/brcm_patchram_plus.c
but instead i have it in this location:
/usr/sbin/brcm_patchram_plus/brcm_patchram_plus.c
Treizy said:
Maybe I messed up. For step 1, the files you are asking us to download are the ones in post #10 correct (brcm.tar.gz)? Also, I don't have this mac.txt file anywhere so I created my own and just put my mac address in it (hopefully the correct one). Lastly, i dont have this file for this step:
sudo chmod 777 /usr/sbin/brcm_patchram_plus.c
but instead i have it in this location:
/usr/sbin/brcm_patchram_plus/brcm_patchram_plus.c
Click to expand...
Click to collapse
I think you might have files in the wrong location, there should be no brcm_patchram_plus directory. Try to extract the zip again and make sure they are all in /usr/sbin only.
If you didn't have mac.txt from Android, you can just make it like you did and make sure it is in /lib/firmware/brcm.

[Q] Question about LMT

Hi all!
How I can configure the pie so it takes a screenshot?
up!
There is a forum specifically for questions (Hint: This isn't it)
You shouldn't bump your own threads
You should ask in the LMT thread itself: http://forum.xda-developers.com/showthread.php?t=1330150
There's a native "screencap" binary that can be setup to execute in a shell script, that you can then assign the script to run for specific pie location.
Sample code:
Code:
#command line screen capture
sleep 1
screencap -p /sdcard/Pictures/Screenshots/screencap_$(date +"%Y-%m-%d_%H-%M-%S").png
Adjust to your needs / location where you want the captures saved.
Drop your script in a file, such as "screen.sh", push to your phone, change permissions to make executable, point PIE to the script, and you're good to go.
styckx said:
There is a forum specifically for questions (Hint: This isn't it)
You shouldn't bump your own threads
You should ask in the LMT thread itself: http://forum.xda-developers.com/showthread.php?t=1330150
Click to expand...
Click to collapse
Sorry, I didn't know it.
JsChiSurf said:
There's a native "screencap" binary that can be setup to execute in a shell script, that you can then assign the script to run for specific pie location.
Sample code:
Code:
#command line screen capture
sleep 1
screencap -p /sdcard/Pictures/Screenshots/screencap_$(date +"%Y-%m-%d_%H-%M-%S").png
Adjust to your needs / location where you want the captures saved.
Drop your script in a file, such as "screen.sh", push to your phone, change permissions to make executable, point PIE to the script, and you're good to go.
Click to expand...
Click to collapse
Thanks
Edit: How I change permissions? I don't understand : point PIE to the script
Dejotaa said:
Sorry, I didn't know it.
Thanks
Edit: How I change permissions? I don't understand : point PIE to the script
Click to expand...
Click to collapse
From adb shell you can 'chmod' the file, or if you don't use adb, use a file manager instead. In adb, "chmod 777 screen.sh" should do the trick
In LMT, once your script is in place, and tested to work from the command line and/or terminal emulator, go to the 'PIE' tab, select the piece piece, i.e. "Pie item 1 longpress', scroll to 'Advanced Commands', select 'Script', point to the location where you placed the script, such as "/system/screen.sh, profit.
JsChiSurf said:
From adb shell you can 'chmod' the file, or if you don't use adb, use a file manager instead. In adb, "chmod 777 screen.sh" should do the trick
In LMT, once your script is in place, and tested to work from the command line and/or terminal emulator, go to the 'PIE' tab, select the piece piece, i.e. "Pie item 1 longpress', scroll to 'Advanced Commands', select 'Script', point to the location where you placed the script, such as "/system/screen.sh, profit.
Click to expand...
Click to collapse
Can you do the instructions for "dummies" ?
Edit:
Where I have to put the Screenshot.sh file for use "chmod 777 screenshot.sh" in adb?

Categories

Resources