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?
Related
I searched around and couldn't get a clear answer. I'm a noob at anything command prompt/terminal related.
I was screwing around with adb last night after figuring out that I can remove program .apks with the rm <com.whatever.program> command. I got a little trigger happy and removed things that I don't use, just to test it out. I made a nandroid backup before I started. The phone runs fine, but now the Market won't download anything. It just sits on the Starting download... screen.
One of the .apks I removed was GmailProvider.apk. Whether this is the problem or not, I'd like to reinstall it for practice. I can always nand restore later.
So my question is... How can I use adb push to reinstall an apk?
I tried:
Code:
adb push C:\GmailProvider.apk
adb install C:\GmailProvider.apk
adb install C:\GmailProvider.apk \system\app
And about every variation of the 3, in and out of the adb shell.
It didn't work, and I'm at a loss to do anything else. So does anyone have any suggestions?
You have to push it abs then give it permissions.
So after pushing the apk give it permissions by doing this.
Code:
Adb push C:/gmailprovider.apk /system/app/gmailprovider.apk
adb shell
Chmod 775 /system/nameofapp.apk
Exit
Adb reboot
Your phone needs to be rebooted so I added the adb reboot, but you can just turn it off and on like you would normally or use that command.hope it helps.
Sent from my Eris using XDA App
Code:
# Chmod 775 /system/GmailProvider.apk
Chmod: not found
What's Chmod do, anyway?
EDIT: Forgot to cd to the directory...lemme try again.
EDIT2: Same error.
Okay, I tried:
Code:
# install /system/app/GmailProvider.apk [-cdDsp]
With no errors. Lemme see if it worked.
EDIT: I can see it, but the Market still isn't downloading apps. Lemme try an actual program.
Raikalo said:
Code:
# Chmod 775 /system/GmailProvider.apk
Chmod: not found
What's Chmod do, anyway?
EDIT: Forgot to cd to the directory...lemme try again.
EDIT2: Same error.
Click to expand...
Click to collapse
Ok I see two things that might be wrong with what you did.
Try not capatalizing the first letter(Not sure if this is a big deal but better to make sure.) and fix your path, GmailProvider.apk should be in the system/app folder.
Code:
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
The chmod command (abbreviated from change mode) is a shell command and C language function in Unix and Unix-like environments. When executed, it can change file system modes of files and directories. The modes include permissions and special modes
EDIt:
Raikalo said:
Okay, I tried:
Code:
# install /system/app/GmailProvider.apk [-cdDsp]
With no errors. Lemme see if it worked.
EDIT: I can see it, but the Market still isn't downloading apps. Lemme try an actual program.
Click to expand...
Click to collapse
Yea you might be able to see it but the app might not have the right permissions to be used. Therefore it might be the reason why you can't download apps from market.
Excellent.
Code:
adb push C:/GmailProvider.apk /system/app/GmailProvider.apk
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
Worked like a charm. The capitalization was required; it gave an error without it. I installed Gmail.apk again using the same method and ran the program, and it worked. Thanks!
EDIT: GASP! Market works.
You're a lifesaver. Well, ROMsaver. I guess this means that GmailProvider.apk and gtalkservice.apk can't be removed from the phone.
Raikalo said:
However, the Market still won't download. Hm.
Click to expand...
Click to collapse
I just want to take this moment to make a Public Service Announcement: Everyone please remember to do a Nandroid backup before making any changes to your /system area.
Raikalo said:
Excellent.
Code:
adb push C:/GmailProvider.apk /system/app/GmailProvider.apk
adb shell
chmod 775 /system/app/GmailProvider.apk
adb reboot
Worked like a charm. The capitalization was required; it gave an error without it. I installed Gmail.apk again using the same method and ran the program, and it worked. Thanks!
However, the Market still won't download. Hm.
Click to expand...
Click to collapse
Don't know what to tell ya, you can start adding back the apks you deleted or do that nand restore since you already know how to install back a system apk, so you learned what you wanted
EDIT: I see you got it to work so that's good news, but like Nestor pointed out always use nand backup before you do any changes to the system area, I've learned to do this the hard way lol.
It's a good reminder
Thanks a ton guys I'll nand backup in a few to have a better restore point.
Learning android-related things ftw!
Oh, one more thing.
I saw something about adding an Environmental Variable to windows that involved adb? Could someone explain that?
- Also, Mikey1022 has reminded me to add the "ADB" directory path as a system variable in windows...
To do this right-click on "My Computer" and select Properties. Next select the Advanced tab(Advanced Settings in Vista) then select Environment Variables.
Click "New" under System Variables and add the following:
Variable: adb
Value: C:\android-sdk-windows-1.1_r1\tools
Click to expand...
Click to collapse
There's an example. I tried this and it didn't do anything.
Raikalo said:
Oh, one more thing.
I saw something about adding an Environmental Variable to windows that involved adb? Could someone explain that?
There's an example. I tried this and it didn't do anything.
Click to expand...
Click to collapse
i think Thefuzz4.net explained this better
To make life easier, lets add a global path to the android SDK tools. Right-click My Computer > Properties,
click on Advanced, then click on Environment Variables.
Doubleclick on PATH, then at the end of the Variable value, add a semi colon ";" and then c:\AndroidSDK\tools
Doing The above ^^ will let you run adb from anywhere on your computer, like your desktop. You won't have to change to the directory and the run adb anymore, you can just run adb from anywhere on the command prompt. Its basically a little trick for us lazy people that hate having to "cd C:/android/tools" before running adb.
Does anyone know of a good resourse for adb and/or shell commands. Every time i try to goole it i just get links to different forums with just basic stuff, push, pull, ect. Id like to find something much more complete including chmod and the like
Sent from my Eris using XDA App
Thanks t2. Makes sense now. I hate CDing to the directory, so shortcuts are also ftw.
@above -- couldn't find a real resource so I resorted to asking specific questions on xda. if you find a resource lemme know.
ALSO -- chmod 775 /system/app/RandomProgram.apk.....what does the "775" do?
Raikalo said:
Thanks t2. Makes sense now. I hate CDing to the directory, so shortcuts are also ftw.
@above -- couldn't find a real resource so I resorted to asking specific questions on xda. if you find a resource lemme know.
ALSO -- chmod 775 /system/app/RandomProgram.apk.....what does the "775" do?
Click to expand...
Click to collapse
the different numbers are different permission settings. I forgot the other numbers, but their are others that set the applications for different permissions in the system. Someone correct me if I am mistaken though.
Finally found some explanation of chmod at catcode.com/teachmod/ . not sure if it directly applies to andriod, but seems to make sense to me now
Sent from my Eris using XDA App
wrong thread
In Blayo 0.7 rom written
kernel modules
Loading kernel modules is done by editing /data/local/modules file. If you want to enable for example ipv6 support, you have to edit this file adding "ipv6" (without absolute path and any suffixes) to it. The same goes for other modules too. Modules are added separated by spaces.
Click to expand...
Click to collapse
So how I edit this files?or how I can find their location?
Has this forum some information about editing Android system?
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
el.dizzee said:
Using some file manager (astro, open intents, root explorer.. whatever you have installed), navigate to that modules file and open it in a text editor, then literally just type in 'ipv6' without the quotations, then save and exit. Reboot your phone and you're good to go.
Click to expand...
Click to collapse
I opened in a text editor but it doesn't show me nothing
I use root explorer
TheGrammarFreak said:
If you feel intensely nerdy you could echo it in:
Code:
adb shell
echo "ipv6" >> /data/local/modules
reboot
Click to expand...
Click to collapse
write "ipv6" quotes or not?
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
TheGrammarFreak said:
With quotes, I think. To check what you added to the file you'd just echo or cat the file back. If it's go quotes then you can overwrite the whole file by using a > instead of >>
Click to expand...
Click to collapse
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
virus54 said:
Sorry for this silly question but what the difference between echo or cat?
I think I will be on the first way because I don't really know how to use ADB right?
Click to expand...
Click to collapse
Lol. Cat would be better in this case. And I did suggest this method with the preface "If you feel intensely nerdy you could ..."
ADB is easy though
Can you plz give me a guide with ADB?
I will try your way but there is may be something bad with my phone?
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
TheGrammarFreak said:
Download this (it's the ADB tools) to a known location. Then extract the zip to a known location. Open a command window in that location (for the sake of this guide: C:\ADB) So open CMD (start, run, type CMD, hit enter) In CMD type "cd C:\ADB". Plug your phone into the computer (make sure you're using CM). Debugging mode should be on (you'll get a notification in the status bar of your phone). Type "adb shell". You'll end up with a "#" and nothing else (if you get a "$" just type "su" and hit enter, and on the phone's screen accept the Superuser request).
Execute your comands
Click to expand...
Click to collapse
Thank you.
I succeed
what else I can do with ADB?
virus54 said:
Thank you.
I succeed
what else I can do with ADB?
Click to expand...
Click to collapse
Loads
10chars
thank you with your help i did it
virus54 said:
thank you with your help i did it
Click to expand...
Click to collapse
Sweet.
twitter.com/TheGrammarFreak
virus54 said:
I opened in a text editor but it doesn't show me nothing
I use root explorer
write "ipv6" quotes or not?
Click to expand...
Click to collapse
I guess I'm kinda late on the response, but yeah, it's supposed to be blank. And then all you have to to is add in "ipv6", WITHOUT the quotes, and then save and exit. But TGF's method works well too, didn't know to do that.
No problem I will look and learn too
better that i will enter as a 'Hex editor'?
because on "text editor" I cannot edit
this light sensor is really pissing me off , is there any way to shut it off , i'v found a way that is telling me to chmod 777 the patch file after installing it manually but idon't know what chmod 777 is and how to do this please help me
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
maveloth said:
Is stock eclair there isn't a GUI option to disable it.
About chmod 777, I haven't done it yet... but I guess you have to adb shell something.
To know how to use those commands, just have a click on the search button...
Click to expand...
Click to collapse
i searched and found nothing please help it's pissing me off for real !! se u suck i bought this phone because of it's design but their software update service sux !
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
maveloth said:
I have found what you were looking for [just search in devs forum].
Here it is an explaining link:
http://forum.xda-developers.com/showthread.php?t=888232
Click to expand...
Click to collapse
thanks i found this thread before but i can't apply this method because i don't know how to chmod777 the file so i can't get this to work ? can you try it and then tell me how to exactly do it please , thanks again m8
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
maveloth said:
First thing, you have to learn how to adb shell.
But you have to make everything ok before using it.
So, let's see how it has to be done..
Download the .zip file posted on the other thread [linked above].
Using root explorer, just copy and paste the content of the .zip file under the /etc/ path of the phone.
After you have done this, let's adb shell.
1. Download this file: http://db.tt/cq44S4v
2. Extract the adb.zip file to C:\adb [there will be a folder named "adb" within the C:\ path, with 3 files within it].
3. On your phone, click Settings > Applications > Development, and make sure USB Debugging is on.
4. Plug your phone into your computer via USB cable [it needs to be on]. It should say installing drivers if your phone is plugged for the first time and you are using Windows.
4.1 You'd better install the drivers which comes with X8 software [PC Companion], or just google for them.
5. After it installs the drivers, go to the Start menu and type "cmd" into the search bar to open the command prompt.
6. Type the following into the command prompt window [hitting enter at the end of every line]:
Code:
cd\
cd adb
adb devices
You should see a serial number pop up, it’s the serial number of your phone. This means you are all set.
After all this procedure, you can finally "chmod" your files.
Always from the CMD, type this:
Code:
adb shell
You should see a "#" on the left. That's good.
Now enter the path with the file to chmod:
Code:
cd /etc
Then finally chmod it:
Code:
su chmod 777 hw_config.sh
You're done.
Hope this helps.
Click to expand...
Click to collapse
lol it's freaking hard , thanks for your help m8 i appreciate it is there any easier way?
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Master Darko said:
Have you tried installing Spare Parts from the market. I know it has light sensor tweak option plus has tons of other useful tweaks and monitors.
Sent from my I7500 using Tapatalk
Click to expand...
Click to collapse
tried it still no use , the sensor is still working !!
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.
Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
first you need the fastboot driver software: MTK Fastboot Drivers: https://online.mediatek.com/Public Documents/MTK_Android_USB_Driver.zip
more info on how to install driver software here: https://forum.xda-developers.com/wa.../how-rooted-walmart-onn-tablets-twrp-t4011659
then get adb: ADB and Fastboot: https://www.xda-developers.com/what-is-adb/
copied from: https://forum.xda-developers.com/android/development/amazing-temp-root-mediatek-armv8-t3922213
Download the current mtk-su zip file to your PC and unzip it. Inside will be 2 directories: 'arm' & 'arm64' with an 'mtk-su' binary in each. Pick one for your device. Differences between the flavors:
arm64: 64-bit kernel and userspace
arm: 32-bit userspace on a 64-bit or 32-bit kernel (will also work in 64-bit userspace)
Connect your device to ADB and push mtk-su to your /data/local/tmp folder
i just used the arm not arm64 that seemed to do the trick.
Code:
adb push path/to/mtk-su /data/local/tmp/
Open an adb shell
Code:
adb shell
Change to your tmp directory
Code:
cd /data/local/tmp
Add executable permissions to the binary
Code:
chmod 755 mtk-su
At this point keep your device screen on and don't let it go to sleep. Run the command
Code:
./mtk-su
keep this terminal/command prompt session open then go to...
download this batch file this user made in this post: https://forum.xda-developers.com/wa...s-general/root-walmart-bloat-remover-t4011639
open it inside making sure it is in your adb folder.
it will remove the sams club, walmart app etc.
mine did not remove the walmart button BUT a user posted on how to do so in the comments this is how you do so.
cd into your directory for adb to do so just open cmd/terminal window type this without quotes "cd filepath" replace filepath with where your adb folder is i usually just drag my folder into my terminal/cmd window and it should just put the proper directory into the window.
now type
adb shell
settings put secure sysui_nav_bar "space,back;home;recent,space"
if that does not work also try going into that window you have open with mtk-su and run
settings put secure sysui_nav_bar "space,back;home;recent,space"
sorry if this post is not descriptive enough first post so go easy on me dont hate me too much just trying to help if you have any questions about this that are confusing please ask ill try to fix them trying to help another user of this tablet as i think that the bloatware on these android tablets is ridiculous and makes the experience terrible so id like to help in anyway possible. Thank you.
Slys13 said:
Tryex to Change the launcher out for lawn chair...however b i still get that stupid Walmart button ! Must i really root and deblout ? Tryed to disable the stock launcher but no go !
Click to expand...
Click to collapse
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Pix12 said:
You can use Custom Navigation Bar without root to remove the Walmart button, but I recommend root so you could use QuickSwitch, and some root tweaks with Lawnchair.
Click to expand...
Click to collapse
I installed that custom navigation app .apk from a third party website because playstore said app was not compatible with device still right away it asks for root, xposed, or to conect to computer to grant permission when I did use the comand prompt and input the command it said device was not compatible. Cool idea though
Sent from my 100015685-E using Tapatalk