{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
SSH for the Rooted Fire TV
Secure Shell (SSH) is a cryptographic network protocol for secure data communication, remote command-line login, remote command execution, and other secure network services between two networked computers.
So what? Why do I want this on my Fire TV?
Right now, the only means of communicating with your Fire TV is through ADB, which is fine, but has limitations, mainly due to the fact that adb does not run as root.
SSH does, so those limits are removed. Using scp or even better sftp you can easily copy files to and from any area on your Fire TV, issue commands via ssh and more.
Details are HEREhttp://www.jocala.com/busydrop.html
reserved
Note: If you are an adbFire user you already have this. Just select "Install SSH" from the root menu.
Note: This is probably not compatible with other busybox installs. They do vary depending on compile-time options. Please uninstall Google Play busybox installs or other variants before installing BusyPlay!
Nice. I look forward to trying this out soon.
SSH helper apps
Canyaya' pid='1817081' dateline='1413750441 said:
Hi Jocala, thank you for all your work. When you install the sftp server, what is the username and password?
Click to expand...
Click to collapse
This is a cross-post from another forum. I thought it might be useful here.
root/password -- the userid should default to root
The command-line "ssh "helper" apps are:
Manually start the server with a password (no spaces)
Code:
sshstart
Usage: sshstart password -- arguments: the password you want to use
Kill sshd immediately
Code:
sshstop
Usage: sshstop -- no arguments, immediately kills ssh server
Show sshd status
Code:
sshstatus
Usage: sshstatus -- no arguments, gives ssh server status
Create sshd startup script with given password
Code:
sshinit
Usage: sshinit password -- arguments: the password you want to use (no spaces)
this program creates the file /etc/init.d/02sshd that starts sshd at boot
Delete sshd startup at boot script
Code:
sshboot
Usage: sshboot -- arguments: rm
Typing sshboot rm deletes the file /etc/init.d/02sshd that starts sshd at boot
Should i uninstall my playstore busybox before installing this?
jmandawg said:
Should i uninstall my playstore busybox before installing this?
Click to expand...
Click to collapse
Yes.
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
rotor00ter said:
So I gave this a try following your instructions as it looked like it would work great for backing up cwm recovery files to my PC. I followed all the instructions installing the zip through cwm recovery and rebooting but when I click on ssh on adbfire 1.11 it says fatal error connection refused. Any idea what I might have done wrong or how to get it working. I have installed putty on my computer and I tried to connect directly through putty as well but that wouldn't work either. How can I test if the ssh server is working or not?
**edit: I got it to connect to putty and winSCP after uninstalling the busybox I had installed and installing the busybox through adbfire 1.11 I can see this being a very powerful and useful tool for the Fire TV. Very nice work jocala. I still can't see the cwm recovery files I would like to back-up though. Shouldn't they be in the /storage/emulated/legacy/clockworkmod folder unless I am missing something?
Click to expand...
Click to collapse
I've added notes concerning Google Play busybox installs and adbFire.
/storage/emulated/legacy (/sdcard) is where my clockworkmod directory is. I haven't done a backup, so mine is empty.
Does this allow using keys?
{ParanoiA} said:
Does this allow using keys?
Click to expand...
Click to collapse
It should, although I haven't tried. A new startup script would be needed, sshstart is hardcoded to startup using a password.
BusyDrop 1.01 released
Changelog: update to BusyBox v1.22.1 (2014-10-26 17:14:21 EDT)
This setup is awesome for transferring files to and from the Fire TV. Much better and easier than adb once you get it set up properly. I have been using this with WinSCP and it has worked perfectly.
thank you very much for this. im loving it.
Is there a benefit to using this over an app like Servers Ultimate?
hazard666 said:
Is there a benefit to using this over an app like Servers Ultimate?
Click to expand...
Click to collapse
Obviously I think so or I wouldn't have taken the time to develop it. Are you a user of this other app?
jocala said:
Obviously I think so or I wouldn't have taken the time to develop it. I hope you don't want to debate the merits of my project against another in my thread. That wouldn't be very nice.
Click to expand...
Click to collapse
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
hazard666 said:
Or it's a completely valid question and I was wanting some input, but if you have issue with answering then ok.
Edit: What difference does it make whether I am or not a user of another app? I was asking if there is a benefit to using your app since I already have an established solution. Nevermind though.
Click to expand...
Click to collapse
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
jocala said:
My apologies, rapid post at the end of a long bad day. I regretted my snappish response as soon as I hit enter, and edited, but not soon enough.
Click to expand...
Click to collapse
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
hazard666 said:
It's quite alright. I'm not too happy with my current setup so I will be trying out BusyDrop.
Click to expand...
Click to collapse
If you have any questions I'll be more than happy to assist. Now I'm going to bed before I kick my dog or do something else that will embarrass me tomorrow.
+1 for being able to ssh in using a key and disabling password logins. It makes it easy to log in from putty and other ssh clients, more secure and I don't have to record one more password.
Related
Hi
It's a thread which collects Ubuntu stuff for SGS2 and includes some of my mods.
The content is from or based on fire314's, JDouce's and zacthespack's work. And their work is based on other people's work, so thanks everybody
Why is it better, than the sources I used?
-it's up to date
-works
-smallest download size
-less space required on sd/internal storage
-very detailed instructions
Why to use Ubuntu on an Android phone?
Why to overclock?! Just because we can do it To show off
And you can use Chromium browser to browse the web, you can edit documents in Open/Libre Office, etc.
Screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download
I recommend this Lubuntu img, made by zacthespack, edited by me.
It's less than 500MB to download, 1800MB img file size on the phone, and sports LXDE (leightweight desktop):
Filehosting.org
Ubuntu One
Dropbox
Google docs
It is the necessery script to run Ununtu/Lubuntu, made by fire314:
ubi.sh
Ubuntu One
Dropbox
It is an Ubuntu img (Gnome desktop), made by JDouce, modded by me.
It's almost 1GB to download and 2,5 or 3GB (I don't remember) on the phone:
Depostie Files
Fileserve
Then, there is the one made by JDouce without any mod.
Almost 1,5GB to download in 2 parts, and 3,5GB (as I remember) on the phone:
Part 1
Part 2
The original from zacthespack:
Link to he's thread
He works on it, and uploads new versions, so no need to place a link for the file itself.
There are 2 versions now:
Ubuntu - 1,5GB to download and 3,5GB on phone
Lubuntu - 500MB to download and 2,5GB on phone
Instructions:
1. Choose one of the images (will add more later) and download it, and get the script aswell
2. Unzip ubuntu.img and copy it and ubi.sh to your sdcard or internal storage, both files to the same folder
3. Open a terminal emulator and type:
su
Accept root permission request if appears, then type:
cd (name of the place where the files are. Example: cd /sdcard)
You can check if the files are there by typing „ls”. If everything is fine, than type:
sh ubi.sh
like this:
and if everything is fine you get this:
4.Open a VNC client and fill out the following
password: ubuntu
address: localhost
port: 5900
set colors to 24bit
5. Hit Connect button
6. Now you should set the "mouse"
touch Menu button
Input mode
Touchpad
Turning it off:
In the VNC client:
touch Menu button
Disconnect
In the terminal emulator:
touch Menu button
Close window
accept it
You can add, delete programs in Synaptic.
If you want to start Lubuntu/Ubuntu anytime, just do the 3rd and 4th steps ; )
I didn't do much. I just made some small changes. All the credits go to zacthespack, JDouce and fire314.
I know, that JDouce has a thread, but he doesn't do much nowadays. He edited the OP more than 5 months ago. And I think it's such a fun, that it deserves some more attention.
Troubleshooting:
If it doesn't start after step 4, or your phone reboots after step 3:
change kernel!
Siyah 2.6.8 changelog:
-fixed the bug which prevented using ubuntu and was causing some random reboots...
so earlier versions doesn't work
If it starts, but the mouse pointer doesn't move:
check the step 6 in the OP
If you can't read or mount the sdcard/internal storeage after turning Ubuntu off:
reboot
Download links are up!
Let me know which one is the fastest and where would you like to see the next versions uploaded.
And if you have any question or suggestion, don't hold it back
Unbuntu One link is a ~20 min DL. Dropbox is ~5 min.
sh may have taken 0.01 seconds or so
Hope to test this today, if not, soon. I'll let you know how things work.
reupload screenshots.....
gh.rohit said:
reupload screenshots.....
Click to expand...
Click to collapse
is there some problem with them?
liljom said:
is there some problem with them?
Click to expand...
Click to collapse
I see them.
mudferret said:
Unbuntu One link is a ~20 min DL. Dropbox is ~5 min.
sh may have taken 0.01 seconds or so
Hope to test this today, if not, soon. I'll let you know how things work.
Click to expand...
Click to collapse
sounds good
Amazing Makes me wonder, can you install the Android SDK on it?
kblood said:
Amazing Makes me wonder, can you install the Android SDK on it?
Click to expand...
Click to collapse
AFAIK yes
funny, isn't it?
Exiting chroot environment and sync'ing memory to storage..
DO NOT EXIT until finished - doing so may corrupt the ubuntu.img!
This is what i get after " sh ubi.sh " i cant connect from vnc , help please
Nice to see you here
Sent from my GT-I9100 using xda premium
burimii said:
Exiting chroot environment and sync'ing memory to storage..
DO NOT EXIT until finished - doing so may corrupt the ubuntu.img!
This is what i get after " sh ubi.sh " i cant connect from vnc , help please
Nice to see you here
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
what kernel do you use?
can you try it with speedmod kernel?
liljom said:
AFAIK yes
funny, isn't it?
Click to expand...
Click to collapse
I am looking for a way to get Asus Transformer Prime capable of developing Android Apps, so it might not just be funny, but also very useful
I did try to see if I could make my SGS2 dual boot, but it did not work for me so far. And I am not sure I would want this as the phones OS, although it is temping if it can also use one of those Android App players that seems to be in development. I am not sure if they are even trying to target Linux though.
But the possiblities of Linux on Android hardware is.... mindbogging
liljom said:
what kernel do you use?
can you try it with speedmod kernel?
Click to expand...
Click to collapse
Syiah 2.6.11 , I will try it later because I just installed cm9 ...
Sent from my GT-I9100 using xda premium
It might be a stupid question, but is is possible to get Linux Mint to work on the Galaxy S II in the same way?
Tom-Helge said:
It might be a stupid question, but is is possible to get Linux Mint to work on the Galaxy S II in the same way?
Click to expand...
Click to collapse
Ask zacthespack. As I know, he built the image I modded in the OP
4 more images in the OP
And I'll take a look at the v5 from zacthespak... downloading it right now
sorry for my question: this is a rom or what?
KSTu said:
sorry for my question: this is a rom or what?
Click to expand...
Click to collapse
no, it runs from a ROM and it's Ubuntu linux
I like it and it runs faster than the other ubuntu 10.10 chroot release but my only problem is something seems wrong with the resolution the text is smaller and blurrier than the other release from before? Is it set for the galaxy s2 screen res or am i just seeing things?
http://forum.xda-developers.com/showthread.php?t=1223128
^Original thread in the I9100 forum by: Jdouce^
Should work on SGH-i777 as well... Just thought I'd share.
(edit) TESTED -and this does in fact work. You can even access the Linux UI via any VNC viewer as long as you're on the same network as your phone or tethered. I have added to the tutorial below to specify. You can also access your Android file system and access everything via this image. I leave you to drool.
***(edit 2) If you can't figure it out, I have found Ubuntu installers available on the Market, but they require you to use your internal storage space. This version can be installed on either internal OR external memory. The performance and UI of this version is better too. The versions available via app are not optimized as well as this one. =) - Just know that there is a foolproof way to accomplish this if you can't read directions... Just search "ubuntu" in the Market.
-----Original Post (with clarifications and additions by Monsieurtalbot)-----
DO NOT UPDATE UBUNTU TO 11.04/11.10 IT'S HORRIBLY SLOW AND BREAKS THE .IMG! -
YOU CAN HOWEVER INSTALL ANY OTHER UPDATES AND APPS JUST FINE.
1. Download the Ubuntu files (2 part .rar)
File sizes should be;
Part1 = 900 MB
Part2 = 572 MB
Part1 Download
Part2 Download
2. Open Part1 and unrar the folder and copy to your internal sdcard (/sdcard) OR external SD card (/sdcard/external_sd) - this unrar's both parts.
**there should be 2 files - "ubuntu.img" & "ubuntu.sh" - these go into an "ubuntu" folder in one of these locations.
3. Open the Market (now Play Store) - download and install terminal emulator and Android VNC viewer - Both free.
4. Open Terminal emulator. Depending on where you copied the files mentioned in step 1/2, enter ONE of the following sets of commands.
**Remember. Commands and directories are case sensitive, so make sure everything (including the file names and folder title) is lowercase to make it work.
(if you copied to the INTERNAL sdcard)
Code:
cd /sdcard/ubuntu
su
sh ubuntu.sh
(if you copied to the EXTERNAL sdcard)
Code:
cd /sdcard/external_sd/ubuntu
su
sh ubuntu.sh
press home - and DO NOT CLOSE the terminal. You need to keep this shell open.
(you can also get an app called "Script Manager" from the Play Store to make re-entering these commands simple later.)
5. Open the Android VNC viewer and connect using the following settings.
Code:
address: localhost
port: 5900
password: ubuntu
set color to 24 bit
You can also use a VNC viewer on a PC or tablet to access the Linux UI, and use the keyboard and mouse using your favorite VNC viewer (I was using TightVNC on Windows) with the following settings while both devices are connected to the same WIFI (or tethered to the phone)
Code:
address: (your phone's local IP address here)
port: 5900
password: ubuntu
set color to 24 bit
VOILA - You now have Ubuntu 10.10 running on your device.
6. WHEN FINISHED- Shut down Ubuntu in the UI, disconnect VNC, then in the Terminal Shell type: "exit" without quotes and press <enter> to clean up the Linux image mount for next boot. Failure to do this may result in a corrupt install. Once you see a "#" with no commands, it is safe to close the terminal window.
_______________________________________________________
Whats Working?
USB Host - Using adapter cable available online to attach keyboard, mouse, or Flash drives.
WiFi
3G
Browsers- any of them... I suggest Chromium over Firefox, but they both do the trick.
Installing Applications
Updating (NOT UPGRADING to 11.04/.10)
Its pretty much working, let the OP (linked above) know if you have issues.
***HELP! UBUNTU WORKED BEFORE, BUT NOW IT WON'T BOOT-
The image creates a new folder to mount the Linux files at "data/local/mnt"... Connecting USB to a PC, unmounting the storage device the image is stored to, a forced shut down, or unexpected occurance in the shut down procedure CAN cause this. It's due to "stuck" files in that directory. -Attempt to clear the contents of this folder - followed by a reboot if you have any issues. You can do this using root explorer, or with the following terminal commands.
Code:
su
rm r /data/local/mnt
GOOD LUCK!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
-----END OF ORIGINAL POST-----
Downloading now. I would love a great workiing version of this os on my sgs2
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Fallen Advocate said:
May I ask what kernel you use? I get a "VNC connection failed" when trying to connect, on Siyah 2.6.12.
Click to expand...
Click to collapse
Entropy's Daily... Latest always... Although it shouldn't matter.
How do you clear the memory?
Interesting tweak, thanks for sharing.
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
IVIadness said:
How do you clear the memory?
Click to expand...
Click to collapse
By shutting down, disconnecting VNC, and closing the terminal window.
Edgarhighman said:
What does an OS do on android? Does it make it like a PC? Hows it look/interact on the screen?
Sent from my SAMSUNG-SGH-I777 using XDA App
Click to expand...
Click to collapse
It is a FULL version of Ubuntu 10.10.
Google, FOOL! ;-)
Nizda1 said:
Very interesting will definitely try this out. Has anyone got.it running yet?
Sent from my SAMSUNG-SGH-I777
Click to expand...
Click to collapse
If you can copy 2 files to an ubuntu folder on the root of your SD, install 2 apps in the market, and type in 3 commands, you can get this running.
Simple, eh?
What happens if I want to go back to android os?
EDIT: Sorry, I skipped the part that said that it was an emulator.
EDIT 2: I didn't know anything about Android back then...
Having problems running this past terminal. What Kernels can be used with this? NEAK? Siyah? I get this in terminal.
a/local/bin: $PATH
[email protected]:/ $
What am I doing wrong?
---------- Post added at 10:03 PM ---------- Previous post was at 09:57 PM ----------
I'm on ICS 4.0.3 XWLPD (Shostock)
lolol i'm gonna build cm10 with this on my GS2. I'll see you guys in a few weeks.
The download links aren't working :/
I know this is an older post but can we get the links working again?
Sent From My SGH-S959G Using Tapatalk 2
Just having fun around with Android so I made this little program aPkgMan
Features
Very light-weight (less than 45KB, just extract and run)
Batch install APK packages via ADB (restore data option available)
Batch uninstall APK packages via ADB
Batch backup APK packages via ADB (backup data option available)
Batch renaming APK packages (using file mask)
Check for online version of APK packages
v0.1
http://i.imgur.com/4VEhD.png
v0.2
http://i.imgur.com/vvhk7.png
v0.3
http://i.imgur.com/vkZfM.png
v0.4
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
How to use?
Download, extract and run
Enable USB debugging mode on your device, connect it to computer via USB cable and select it from the Home tab (Hit Refresh to refresh the connected device list)
You are ready to go
Tip : If the program won't start, open Task Manager and kill the "mshta.exe" process and restart the program
Changelog
2012/04/01 - Initial version
2012/04/02 - v0.2, added batch renaming (support file mask) and backup packages
2012/04/05 - v0.3, added restore package data after installing, added backup data for package; plus code cleaning and commenting and other minor improvements
2012/04/16 - v0.4, added new feature checking for online version of APK packages
aPkgMan is absolute free. Any questions, comments or suggestions are welcome. If you find it useful please click Thanks button below
Good Work
wow, this will be very helpful.
just a question, would this backup app+settings?
thanks!
melander said:
wow, this will be very helpful.
just a question, would this backup app+settings?
thanks!
Click to expand...
Click to collapse
I'm about adding backup/restore feature and a simple file manager too
Thanks man
2012/04/02 - v0.2, added batch renaming (support file mask) and backup packages To restore use the batch install feature
The next things to do are supporting ADB over WiFi and a file manager.
I use "pull" command to backup app data but ADB returns "0 files pulled. 0 files skipped". Can anybody tell me why please?
Hm,i'm havin problem with picking apk path
Sent from my SK17i using xda premium
Black_jackss said:
Hm,i'm havin problem with picking apk path
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Hi, can you tell me where the problem occurred please? And did the program return any error message?
acb123 said:
Hi, can you tell me where the problem occurred please? And did the program return any error message?
Click to expand...
Click to collapse
It's just i didnt understand how to pick the apk i want to install
Sent from my SK17i using xda premium
New v0.4 as of 2012/04/16, added new feature checking for online version of APK packages Some packages will return "Not Found" since they are no longer on Play Store.
acb123 said:
2012/04/02 - v0.2, added batch renaming (support file mask) and backup packages To restore use the batch install feature
The next things to do are supporting ADB over WiFi and a file manager.
I use "pull" command to backup app data but ADB returns "0 files pulled. 0 files skipped". Can anybody tell me why please?
Click to expand...
Click to collapse
I am having the same issue in an app I am building for the Acer a510.
Or should I say, WAS having.
Bad Code
Code:
adb pull /system/app/ /Backups/system/app
Good Code
Code:
adb pull /system/app/ ./Backups/system/app
The difference for me was the " . " for the destination.
It was creating the files on my root C:\ drive instead of the
intended directory. I pulled the entire contents where I want now.
I am not sure if this will help you at all, but I thought I would share.
***EDIT***
It worked until I got to /data/app
There is where I got the same error.
"0 files pulled. 0 files skipped"
After changing permissions on the folder,
everything pulled.
marlopainter said:
I am having the same issue in an app I am building for the Acer a510.
Or should I say, WAS having.
Bad Code
Code:
adb pull /system/app/ /Backups/system/app
Good Code
Code:
adb pull /system/app/ ./Backups/system/app
The difference for me was the " . " for the destination.
It was creating the files on my root C:\ drive instead of the
intended directory. I pulled the entire contents where I want now.
I am not sure if this will help you at all, but I thought I would share.
***EDIT***
It worked until I got to /data/app
There is where I got the same error.
"0 files pulled. 0 files skipped"
After changing permissions on the folder,
everything pulled.
Click to expand...
Click to collapse
Thank you so much for your sharing On my Sk17i I also changed the folder permission too but still didn't work, but upgrading to custom ROMs makes it work. I will note your solution in the next update of the program so it could help other users
acb123 said:
Thank you so much for your sharing On my Sk17i I also changed the folder permission too but still didn't work, but upgrading to custom ROMs makes it work. I will note your solution in the next update of the program so it could help other users
Click to expand...
Click to collapse
The way I changed permissions was in Root Explorer.
I believe the way I changed them made it 777, not sure.
hi man, thanks for sharing your work!!
it's a really useful program, I just used it to delete a theme apk: I applied the theme (CM 7) and when I reboot my phone had a bootloop!
just a question: why is this software not into the general development section? Here is hard to find it!
anyway, a great alternative for people who don't / are not able to use adb..
see you!
brainvision said:
hi man, thanks for sharing your work!!
it's a really useful program, I just used it to delete a theme apk: I applied the theme (CM 7) and when I reboot my phone had a bootloop!
just a question: why is this software not into the general development section? Here is hard to find it!
anyway, a great alternative for people who don't / are not able to use adb..
see you!
Click to expand...
Click to collapse
It's almost a year and suddenly a new post appeared. Thanks for your interest ! I also hope I could find way to update it in the future.
hi acb123, a really nice little tool you developed!
do you think there would be any way that the uninstall menu does not show every single installed "app", but only the ones that the user installed and can be actually removed?
download link???????
i-HaBiB said:
download link???????
Click to expand...
Click to collapse
Check the attachments in first post
How to use?
1. Enable ADB Debugging from Fire TV settings
2. In this app, add the adb commands that you want to execute on every boot
3. Set whether you want to display a Toast message on completion of command execution
4. Test the script if you want by pressing "Test Script" button.
5. Apply the configs by pressing the apply button.
Support the work by purchasing it from here
Note: when you run this app for the first time, you should press the test script button, so that app can acquire adb permission. If you don't do this, then the adb permission prompt would appear when you boot the stick for the first time, after installing and opening this app.
That's all
Also note that, the commands you'll write here should be without "adb shell" prefix.
For example,
you have to write
echo "Hello World"
and not
adb shell echo "Hello World"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(or multiple commands separated by semi-colon ' ; ' )
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Spamm00r said:
Awesome thanks!
Is it possible to combine commands with ; or add a delay?
Click to expand...
Click to collapse
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Shaikh Amaan FM said:
Yes you can add multiple commands with ; and add a delay using sleep command.
Example,
sleep 3; echo "I'm here after 3 seconds";
Click to expand...
Click to collapse
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Spamm00r said:
Perfect!
Click to expand...
Click to collapse
let me know if you are able to get your work done
Spamm00r said:
Perfect!
Did you test wether you can use this app to issue "adb tcpip 5555" command at bot so that the adb wifi tasker function can do the rest? Thatway we would have adb shell on a non rooted device all the time.
Click to expand...
Click to collapse
The issue with Tasker is something else as far as I can see. May be because Tasker have subscription checking thing in it and it needs Google Libraries which are not available in fire os.
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Spamm00r said:
So I finally was able to test this. The app does work ok.
I'd like to be able to execute these scripts not only at boot. For example like when you press test script, I'd like to be able to run the app anytime I want the script to execute.
Can you please also add an setting that allows the scripts to be executed by just opening the app, so that you are not limited to run these scripts only at boot or when you manually press " test script". So we could use these scripts anytime we run this app for example via Tasker.
Why does the shell execution work with this app but not with taskers adb shell?
Click to expand...
Click to collapse
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Shaikh Amaan FM said:
Are you able to use Tasker in the stick?
I tried in my device and it won't even show a simple Toast and possible reason as I said is that Tasker have subscription checking thing in it and that requires Play services which are missing in Fire OS. So unless you have direct purchased version of Tasker or unless you install Play services in it, I don't see any good way of running Tasker in it.
Click to expand...
Click to collapse
Yes I have Tasker running on FireTV 4K without play service. You can download an apk with 7 day trial directly from the tasker website and it works without playstore. If it has issues with subscription or trial expired, it will tell so and refuse to execute some advanced features.
I can run intents and stuff with tasker just fine, but as Fire TV has no Accessibility service installed, you can not use most of the nice features and plugins of Tasker. Issuing shell commands for example does not work. so I can not issue any keyinput with tasker. That's why I have to rely on your app.
With your app however I was able to completely avoid tasker for now.
I used Tasker to run an intent that opens a youtube link. Now I run this intent from your app. Also i can now issue keyinput with your app. With Tasker that was not possible due to missing accessibility service, which Tasker relies on.
How is your app able to issue keyinput via shell, while tasker can not due to mssing accessibility services? Maybe you can make your app more advanced and allow it to be used as a proxy for issuing shell keyinput on devices without accessibility service. This is the one single reason why I wish i had root on this device. Just to have accessibility service back, which Amazon removed in the recent firmware versions.
I use input to press home key, which makes Fire TV switch the HDMI input of the TV to itself. Now Whenever I start the tv, Fire TV automatically switches input to itself and starts playing youtube.
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Will it work, if I open your app with intent "android.intent.action.MAIN"? Will it execute the shell script like when at boot? if yes, then I will try to run this intent from Tasker.
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script. For example allow to save script a, b, c etc, and then have an intent to be ebale to run a specific script a, b or c. etc..
Your script is very helpful and solves a big problems that amazon has introduced by cutting accesisbility service. Without your app, fire tv would be so useless for me. Thanks for releasing it.
Spamm00r said:
What I now also want is to be able to use your app also after boot, as I need to switch input and issue keyinput after boot while running several times. Thats why I asked you to add an option to runn it also after boot.
Because if I press "test script" keyinput also works with your app. But not with Tasker.
Click to expand...
Click to collapse
Yes this can be done, but i'm busy in something else, so it might take a while
Spamm00r said:
Also It would be good if it was possible to have multiple scripts that you can execute so that you are not stuck with one single script.
Click to expand...
Click to collapse
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Shaikh Amaan FM said:
Yes this can be done, but i'm busy in something else, so it might take a while
For having multiple scripts, currently I think you can do it by creating different bash files containing scripts and store them somewhere in Fire Device's storage and then execute them (but probably you'll face problem in giving execute permission to those bash files), this process can be made easier but as I said would take time.
Click to expand...
Click to collapse
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Spamm00r said:
OK no problem. Take your time.
I don't think that you can execute scripts without root. How does your app execute these scripts without root permissions?
Also sometimes the script is not executed, not at boot and not when I press "test script". I think maybe adb is being blocked by some other app? I have to look into why this happens.
Click to expand...
Click to collapse
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Shaikh Amaan FM said:
Which fire device do you have and what's the Fire OS version in it. App doesn't works in Fire OS 5, in Fire OS 6, you have to make sure that no other device/service is connected to ADB, In Fire OS 7, I didn't saw any issue
Click to expand...
Click to collapse
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Spamm00r said:
I have Fire TV Stick 4k and OS is 6. I figured out why it sometimes doe snot work. it is because ADB is occupied by another app. If I disable and enable adb debugging and thatway break any exisiting connections, it works fine. I just have to make sure that no other app blocks adb, as apparently only 1 app can be connected to adb at a time.
That might be another point of improvement, to make sure that adb is not left occupied.
Click to expand...
Click to collapse
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Shaikh Amaan FM said:
In fire os 7, there's no such issue. But yeah in fire os 6 I have tested, only one service or device can connect to adb at a time, and I don't think there's anything I can do about it
Click to expand...
Click to collapse
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Spamm00r said:
My exact Fire OS is: Fire OS 6.2.8.1
WHich Fire TV Stick has OS 7?
Being able to connect multiple clients to adb is a big step forward. Right now I have to manually toggle adb access to allow other tools to connect to adb. This is a big problem.
Click to expand...
Click to collapse
I have Fire Stick 3rd gen.
New devices including Fire Stick Lite are running Fire OS 7.x and I can connect multiple different devices/services to adb at the same time without any issue.
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Spamm00r said:
Curious that the Lite has newer Fire OS Version than man other devices. In this case it would be desirable to update, but until then how can make sure that your app or any other app disconnects form adb and gives it free to use for other applications.
Right now I have to manually go to developer settings and toggle ADB off and on to make it available to other apps. Otherwise, adb will be occupied by the last app that used it.
Is it possible to automate this? Adding "disconnect" to the shell command didn't help.
Click to expand...
Click to collapse
Look for force stopping the application through adb commands.
I have managed to make the app start also after boot via Taskers app action. But the script is only executed after manually pressing the "test Script" button.
What exact intent action is executed by pressing the "Test Script" button? From the xml file I can only see "com.asfmapps.firetv_adbonboot.MainActivity".
I have also tried to send android.intent.action.BOOT_COMPLETED to your app to make it think it just started up but that also does not make your app to execute the script automatically.
What intent is your app listening for to execute the script? And ho do I issue it via shell or tasker?
Hi,
I'm trying to echo to sys/class/display/mode so I can change the resolution on boot.
When I test the script it shows 'permission denied'. It's an android box so it won't work?
So I have a Infinix Note 12 pro 4g x676b. The manufacturer of this model has another model with the same name which is more popular. Now let me get to the point. I wanted to root this phone with magisk. its android 12. I tried a few tutorials for it but i realised i need twrp, but this phone model dosent have a twrp img. So i tried the method of fastboot and adb. i patched my boot.img using magisk and then try to patch it to my mobile using my pc. The adb device gets detected and i get it into fastboot. But in fastboot the device does not get recognized. I tried installing all the drivers but the manufacturer does not provide any. I got every unnofical driver installed but still it dosent detect. And also my phone does not get detected in device manager either in other devices or portable devices. What do i do now?
May be this guide is useful:
How to get into fastboot and How to exit fastboot INFINIX Note 12 (2023)? - HardReset.info
The Fastboot Tutorial will show you the easiest way to access the hidden model called fastboot. Check out the secret combination of keys that will boot your device into fastboot.
www.hardreset.info
xXx yYy said:
May be this guide is useful:
How to get into fastboot and How to exit fastboot INFINIX Note 12 (2023)? - HardReset.info
The Fastboot Tutorial will show you the easiest way to access the hidden model called fastboot. Check out the secret combination of keys that will boot your device into fastboot.
www.hardreset.info
Click to expand...
Click to collapse
that is not my question tho. My phone does not get recognised on my windows pc
potatosil said:
that is not my question tho. My phone does not get recognised on my windows pc
Click to expand...
Click to collapse
It is getting recognised as Unknown device?
A PC-connection isn't required at all, you can run ADB and/or Fastboot commands from phone, too. Note: Android must got rooted.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Take note that a phone's Android is rooted if SU is present in Android's filesystem.
xXx yYy said:
A PC-connection isn't required at all, you can run ADB and/or Fastboot commands from phone, too. Note: Android must got rooted.
Click to expand...
Click to collapse
i am asking my question to get my phone rooted. If it was already rooted i wouldnt have made a thread
potatosil said:
that is not my question tho. My phone does not get recognised on my windows pc
Click to expand...
Click to collapse
It is a driver related problem.
You may be able to get your work done using wireless adb, although flashing stuff wirelessly is very risky (if the connection breaks whilst the flashing is still going on).
mvikrant97 said:
It is getting recognised as Unknown device?
Click to expand...
Click to collapse
not even an unknown device just nothing is there
potatosil said:
i am asking my question to get my phone rooted. If it was already rooted i wouldnt have made a thread
Click to expand...
Click to collapse
To root a phone's Android Fastboot isn't needed as you suppose : ADB is the correct tool.
Most people instead of adb.exe what comes with Android SDK use adbLink2 app what provides a link between your Android device and your computer.
adbLink2 features:
Install Programs without Android SDK
ADB/Fastboot enabled command-line
Busybox for root and non-root
Built-in WIFI/USB remote
Manage devices via USB or IP address
Root-aware File Manager for Android devices
Install/Uninstall Apps
Connect to devices ad hoc
Manage multiple devices from one PC
Edit XML and other files on your devices
Log file viewer for adbLink2
Hyperlinked HTML Help
adbLink2 is available for Windows, macOS and Linux/ChromeOS
BTW to clarify things, you obviously don't know of:
1.
Before I define root, it's important to understand why it exists and how it works. It's because Android uses permissions ( Linux-based permissions, to be exact ) in the file structure. Every file, every folder and every partition has a set of permissions. These permissions decide who can read a file ( look at or access the contents without changing them ), write to a file ( be able to change the contents of that file, or create a new file inside a folder or partition ) and execute a file ( run the file if it's a type that can run, like an app ). This is done based on users and permissions - certain users have access, while users who don't have the right permissions are blocked from having access.
When you first set up your phone and turn it on for the first time, you are assigned a user ID. If another user logs in via Google, they are assigned a different user ID. When an app is installed on your phone, it's also assigned a user ID of its own. The system itself is a user and other processes that need to run on your phone may have their own user ID. Everything that can do anything to any files on your Android is a user.
2.
To get elevated permissions ( root access ) you place the SU binary ( SubstituteUser ) in a spot that it can run when it's called to run - that's called a PATH - e.g /data/local/tmp. If any app is in user ID's PATH it will run without telling the system exactly where it is. You also need to make sure the SU binary is in a spot that your user ID has permission to execute ( run ) files. Any other app ( Google Play has plenty of apps that need root permissions ) will also need the same access. When you use a method to root your phone, all this is sorted out by the folks who built the root method.
3.
This is where root comes in. The SU binary uses flags when it's run to tell the system what user ID you want to switch to. For example, if I run the SU binary on my Google Pixel phone like this "su Jim -c 'mount - o rw,remount -t auto /system'" I will run the mount command as the user Jim ( after supplying Jim's password ). If I run the SU binary with no flags or arguments, it switches me to the root user. Normally you would need to supply a password, but since "root" is an unused user on Android it has no password. Running the command "su" will switch you to the user root, and assign you the user ID of 0, and put you in the root group. You are now the Super User.
4.
As the Super User you can do anything to any file, folder or partition on your Android. By anything, I mean literally anything. You can remove bloatware apps and you can also remove essential system files that break your phone. You can also do things to the hardware like change the CPU frequency and ruin your phone forever.