[HOW-TO] [PICTURES] ADB Working On the Google Chromecast - Google Chromecast

Hey everyone,
I got the Android Debugging Bridge (ADB) working on the Google Chromecast.
A video is currently uploading. A how-to will follow shortly after.
Videos have been uploaded!
Thanks!
Part 1:
http://www.youtube.com/watch?v=vYICywxdUfM
Part 2:
http://www.youtube.com/watch?v=mjedUnv7tkM
Logcat made in Part 2:
http://pastebin.com/WZtHzrak
[Prerequisites]
A Rooted Chromecast (I recommend tvall's image..Here).
PuTTY or another Telnet Client
Android SDK
Active internet connection
Chromecast's IP Address
[How To]
Full Gallery here: http://imgur.com/a/ORiL0#0
Assuming you already have a rooted Chromecast and it is ON;
Open your preferred Telnet client, I prefer PuTTY.
{
"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"
}
Type in your Chromecast's IP Address and choose telnet as the connection type (I won't tell you how to get this, hint: check your router).
Click open and you should now see a black terminal window.
Type:
Code:
mount -o rw,remount /
and press enter
Then type:
Code:
setprop service.adb.tcp.port 5555
and press enter
Next type:
Code:
busybox vi default.prop
Press the letter 'i' on the keyboard for 'insert'
Use the arrow keys on your keyboard to navigate.
Change:
Code:
ro.secure=1
to
Code:
ro.secure=0
Change:
Code:
ro.debuggable=0
to
Code:
ro.debuggable=1
Press the 'ESC' key on your keyboard so VI goes back to accepting commands
Type ':wq' without the quotes and with the colon....Press enter.
You should now be back at the / # prompt..
Type
Code:
busybox wget http://goo.gl/TnbG99 -O adbd
and press enter
Type
Code:
chmod 777 adbd
and press enter
Type
Code:
./adbd &
It may not say anything and drop back to the prompt, this is normal
Type
Code:
ps | grep 'adbd'
and press enter to make sure adbd is running
Open a command prompt and cd to the SDK's platform-tools folder
Your path will be different than mine.
Type
Code:
adb devices
and press enter
It will probably not list any devices; this is normal. We just need to tell adb what device to connect to over wifi.
Type
Code:
adb connect X.X.X.X
where X.X.X.X is the IP Address of your Chromecast
Press Enter
Should say
Code:
Connected to X.X.X.X:5555
where X.X.X.X is the IP of your chromecast.
Type:
Code:
adb devices
and press enter
It should list your chromecast by its IP Address.
Type:
Code:
adb shell
and press enter
You should be greeted with a # prompt.
Congratulations! You now have ADB access to your chromecast.
Please note that this DOES NOT survive across reboots.

Reserved
Update:
[08/15/13 2:40PM CST] Videos Posted
[08/16/13 2:05PM CST] How-To Posted with Pictures

Awesome!

Just to clarify, this really doesn't do much yet.
As of right now you can't make persistent changes to the filesystem, because they revert after a reboot.
Heck you can't even remount the /system partition as RW at this point. Not sure why, but not too worried about it at the moment

/system is squashfs, a compressed readonly fs. Not difficult to modify, but requires reflashing the while partition (like gtvhackers image)
Sent from my Evo V 4G using Tapatalk 2

tvall said:
/system is squashfs, a compressed readonly fs. Not difficult to modify, but requires reflashing the while partition (like gtvhackers image)
Sent from my Evo V 4G using Tapatalk 2
Click to expand...
Click to collapse
Awesome. I'm assuming it just unpacks the system after every reboot, I mean since the system seems to revert to not having any added items unless its in the image tahat was flashed?

death2all110 said:
Awesome. I'm assuming it just unpacks the system after every reboot, I mean since the system seems to revert to not having any added items unless its in the image tahat was flashed?
Click to expand...
Click to collapse
You can't modify the filesystem without reflashing it. Squashfs is read only.
Sent from my Evo V 4G using Tapatalk 2

tvall said:
You can't modify the filesystem without reflashing it. Squashfs is read only.
Sent from my Evo V 4G using Tapatalk 2
Click to expand...
Click to collapse
Right. Sorry. Long day.
Anyway, is there a way to modify the boot image?

OP Updated

Thx m8

great!
adb push works well,
I suppose you could make persistent changes to /cache (this partition is mounted rw!)

Greetings:
When I attempt to download "busybox" from "Goo", it comes back with: server returned error: HTTP/1.1 404 not found !!
Any input/help is much appreciated.
Thank you.

samteeee said:
Greetings:
When I attempt to download "busybox" from "Goo", it comes back with: server returned error: HTTP/1.1 404 not found !!
Any input/help is much appreciated.
Thank you.
Click to expand...
Click to collapse
@samteeee Try it now. url should be fixed.

Hi,
i have a question, it's possible to have adb with chromecast if this one is not root?
Thanks,

labiba said:
i have a question, it's possible to have adb with chromecast if this one is not root?
Click to expand...
Click to collapse
Sorry, no.

Hello,
i don't now if i'm in the good forum to ask for help.
I have a GTV100 de netgear that i routed. after a problem of the remote i did a hard reset and after my device don't work.
in the beginin i have the trace in the uart that all go fine, But now i have the message :
NAND: Read mkbootimg header error!
FATAL ERROR! There is no bootable image on this machine!
tbdzz---- Img_Ld_And_Start error! Spinning now!
[109]I(SM): SM starts, enters warmup state!
[112]I(SM): begin to run tasks
there is any solution to write another bootable image?
thanks for your help

ChromeCast mapping memory
Hello,
I have a chromecast and i want to show its mapping memory.
the objectif is to verify when the chromecast play a video if its buffer is secure or not ?
and how can where the kernel do the allocation for memory?
can you help me please ?
thanks :good:

When I attempt to download "busybox" from "Goo", it comes back with: server returned error: HTTP/1.1 404 not found !!
Any input/help is much appreciated.

Related

Howto Fix install issues specifiacally apps that fail with error code -18

NOTE: Root is required
When an application fails to install - even side loads - an error message is logged.
First thing to check is the logcat -> it will point to a secure file issue.
for error -18 it is
smdl2tmp1.asec
this file, and all other *.asec files are in the /mnt/secure/ directory.
If this file cannot be removed by the installing application a failure message results.
to manually remove this file you need a terminal application
android terminal emulator works just fine.
{
"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"
}
Step 1.
launch the terminal application of choice
Step 2.
SU
Step 3.
At the # command prompt type
cd /mnt/secure/asec/
Step 4.
type
ls
This will locate the file causing the issue.
Step 5.
type
rm smdl2tmp1.asec
Step 6.
close the terminal application
Step 7.
enjoy the fruits of your labor by installing the application that initially failed.
Thanks, manikin13!
Do you know any other error codes?
joe75 said:
Thanks, manikin13!
Do you know any other error codes?
Click to expand...
Click to collapse
I believe this fix works on most install error codes.
Interesting. Been getting the Error code 18 when attempting to install VitalPlayer. (Vegan Beta1) Folowed your steps to the letter (miss DOS at times) but that folder appears empty. Actually there is no asec folder on either sdcard or sdcard2. Did I miss something? thanks
skeeterpro said:
Interesting. Been getting the Error code 18 when attempting to install VitalPlayer. (Vegan Beta1) Folowed your steps to the letter (miss DOS at times) but that folder appears empty. Actually there is no asec folder on either sdcard or sdcard2. Did I miss something? thanks
Click to expand...
Click to collapse
Are you using a terminal app on the tablet?
this folder does not show up without using a terminal app on the tablet.
once in the terminal app
cd to /mnt/secure/ to see the files. There is no asec folder. The file extension is asec as in *.asec
You bet. Android terminal emulator from the market. At /mnt (via FileManager) there are folders named secure and asec. Both are empty. Notice that when I cd to even mnt/secure I get same message "not found" Verrrrrrrry interesting!
skeeterpro said:
You bet. Android terminal emulator from the market. At /mnt (via FileManager) there are folders named secure and asec. Both are empty. Notice that when I cd to even mnt/secure I get same message "not found" Verrrrrrrry interesting!
Click to expand...
Click to collapse
I saw the samething that nothing shows up in any file manager. only in the terminal ls do the files show up.
you should definitely get a not found for mnt/secure as the actual path is
/mnt/secure/asec/
the initial / is the root of the OS. (linux or unix)
so you are looking for a dir under root called mnt -> /mnt
so if you are having difficulty finding the full path break it down into each step, and do a ls to find the next step
ie
cd /
ls
cd mnt
ls
cd secure
ls
cd asec
ls
etc
hope that helps
Permission denied in Terminal
How do I get terminal permissions?
JackedNY said:
How do I get terminal permissions?
Click to expand...
Click to collapse
Typically typing su at the $ prompt should bring up the superuser prompt (allow / deny) as seen on screen 3. If not you should be able to go into the superuser app, and specifically add terminal.
once you allow the su request the prompt should change to the
# symbol
That did it. Only difference this time was I added the ls step you suggested (ls same as dir in DOS?) Got to where I needed to be and deleted the *.asec. Thanks.
skeeterpro said:
That did it. Only difference this time was I added the ls step you suggested (ls same as dir in DOS?) Got to where I needed to be and deleted the *.asec. Thanks.
Click to expand...
Click to collapse
Exactly
Dos = Dir
Linux, Unix, OsX, Android = ls (small letters)
Awesome little tut
Was having the same issue - but not receiving an error when attempting to install - walked straight through - had to stop in the dir and see the filename to rm but worked like a champ - thanks!
Thanks for this great walk through. I followed it and was able to correct the problem I was having with some installs. I knew intellectually that Android was similar to Linux, but I did not realize how close it is. It is good to see that my Linux knowledge, I know enough to get me into and sometimes out of trouble (Linux Abuser) , can be applied somewhere else.
Thanks again!
linesma said:
Thanks for this great walk through. I followed it and was able to correct the problem I was having with some installs. I knew intellectually that Android was similar to Linux, but I did not realize how close it is. It is good to see that my Linux knowledge, I know enough to get me into and sometimes out of trouble (Linux Abuser) , can be applied somewhere else.
Thanks again!
Click to expand...
Click to collapse
Android is actually very close to OsX in the respect that it is gui first, with the BSD base doing the heavy lifting.
Android is linux in the background with a gui first to allow the ordinary user some familiarity. The reason linux on the phone is not popular and linux on the desktop is not mainstream is because the command line gets equal or higher billing.
Google was smart with Android (basically a linux port with java framework) by promoting it as a gui just like iOS even though to truely see all the potential you need to get to the command line.

[Q] make /data backup as img on computer

hey folks I've got a huge problem and I hope someone can help me or forward me to someone who might know!
So I had some very important data on my HTC One on the sdcard folder (/data/sdcard/Android is the specific folder) and I did a little ROM flashing on monday. So far everything went quite brilliant but today I recognised the data was lost so I googled for 3 hours and tried to do an IMG Backup of the whole /data path with the terminal on my mac. It went well so far with the commands
Code:
./adb shell
dd if=/dev/block/mmcblk0p35 of=/sdcard/databackup.img
But the problem is that this command does a full backup of /data which is far bigger than the free 7GB on /data/sdcard where the backup will be saved on. That means it throws errors after half an error of backing up and canceling the process by saving the largest possible file on the sdcard.
Does someone maybe know one of these points:
1) how to specify the path which folder should be backed up
2) backup via mtp
3) transfer the data directly to the computer without saving anything on data/sdcard
I really don't know if this is the right category to post in but I trust in you guys and I think that this is my last chance to maybe save the lost files
I'll just help myself and other users which may have the same problem some time
http://forum.xda-developers.com/gal...emory-data-recovery-yes-t1994705/post34185439
That helped me a lot and I've taken some parts of it. Here is a short version:
This is a little how2 get the raw out of your smartphone partition. As an example I take my htc one m7
1) download Google SDK
2) make sure all drivers of your smartphone are installed (including adb)
3) download cygwin (install to c:/cygwin)
4) download netcat (extract only the nc.exe to c:/cygwin/bin)
5) make sure usb debugging is enabled on your device
6) create a folder for the raw to cygwin (e.g. c:/cygwin/One)
1st step => make the raw file
Install cygwin. in the packages window you need to search for "pv" and "util-linux" in the repo windows. If you don't you will have trouble.
Before you start operating you should know that if you have a display lock you should disable it for the time of the backup process.
Now start up 2 windows of cygwin. The first command in both windows must be:
Code:
$ export PATH="/cygdrive/[B]c/ADB/[/B]sdk/platform-tools":$PATH
the fat marked part is various and depends where you have unzipped the adb so you need to change it for your usage.
Next step is that you need to make a txt file on your device to see the partition table and decide which partition you need to choose. To make that textfile you simply type into one of the cygwin windows:
Code:
adb shell
then:
Code:
su
then:
Code:
find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \; > /sdcard/list_of_dev_partitions.txt
then exit shell:
Code:
exit
Now search on the root of your sdcard a file named
Code:
list_of_dev_partitions
. You found it? great! Open it and search for the partitions address you want to backup. In my case it was the whole /data partition with the address /dev/block/platform/msm_sdcc.1/mmcblk0p37
So the next step was to open the tunnel for a disk dump by typing
Code:
adb forward tcp:5555 tcp:5555
then
Code:
adb shell
then
Code:
su
then
Code:
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/[B]block/mmcblk0p37[/B]
And again you need to replace the fat marked part with you partition path or otherwise it won't work! For my HTC One M7 it looks like this /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p37
Samsung or LG phones have another path. Always keep that in mind.
Now switch to the second cygwin windows and type
Code:
adb forward tcp:5555 tcp:5555
then
Code:
cd /[B]One[/B]
then
Code:
nc 127.0.0.1 5555 | pv -i 0.5 > [B]mmcblk0p12[/B].raw
fat typings => use your personal data!!!
If you did everything right then your second window of cygwin should display something like this:
{
"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"
}
If it says 0 bytes then your partition path is not correct. You may have a typing failure. Check everything! If it works => congrats now go and drink some beer with friends. 27GB take about 2,5 hours to backup!
2nd step => make it workable
When the backup process is done then do following steps on Windows:
1) click start
2) right click on computer
3) click Manage
4) select any storage and click on disk management
5) "add virtual partition"
6) as location enter the path of your raw (select "show all files" )
7) right click on new partition -> initialise
8) select partition table button & hit OK
9) right click on on the partition and make a new volume
10) leave the volume size, select a untaken drive letter, "do not format this volume" -> hit okay
11) open explorer, right click on new volume, quick format it in FAT32
3rd step => recovery!
Now your backup handles like a "broken" SDCard in your computer. For the data recovery I recommend test disk for recovery because you can choose many file formats to recover. You can also try with Piriform Recuva but I had the best results with test disk. That tool is available for many OS :good:
GearX said:
hey folks I've got a huge problem and I hope someone can help me or forward me to someone who might know!
So I had some very important data on my HTC One on the sdcard folder (/data/sdcard/Android is the specific folder) and I did a little ROM flashing on monday. So far everything went quite brilliant but today I recognised the data was lost so I googled for 3 hours and tried to do an IMG Backup of the whole /data path with the terminal on my mac. It went well so far with the commands
Code:
./adb shell
dd if=/dev/block/mmcblk0p35 of=/sdcard/databackup.img
But the problem is that this command does a full backup of /data which is far bigger than the free 7GB on /data/sdcard where the backup will be saved on. That means it throws errors after half an error of backing up and canceling the process by saving the largest possible file on the sdcard.
Does someone maybe know one of these points:
1) how to specify the path which folder should be backed up
2) backup via mtp
3) transfer the data directly to the computer without saving anything on data/sdcard
I really don't know if this is the right category to post in but I trust in you guys and I think that this is my last chance to maybe save the lost files
Click to expand...
Click to collapse
What about using an OTG and mounting a larger SD Card to backup to?
techjohnny said:
What about using an OTG and mounting a larger SD Card to backup to?
Click to expand...
Click to collapse
OTG?
Gesendet von meinem HTC One mit Tapatalk

Best run shell commands in Tasker

Hello guys.
I stumbled across a reddit thread providing some run shell commands to replace secure settings. The fixes on Android 6.0 allowed me to install and grand the root permissions but never actually worked as intended. Secure settings still returns errors when used.
Long story short I built on the list adding ones I used before from my list.
Here is about 30 most common run shell commands. I will update list if i come across some new ones. Also appreciate your input if you happen to use some good ones.
You can access it all here:
http://www.notenoughtech.com/tasker/tasker-run-shell-commands/
Happy tasking. :good:
Boy, where do I start? The list would be endless. Anyway, here are some, not all, that I use.
Root commands
Open power menu: sendevent /dev/input/event0 1 116 108 && sendevent /dev/input/event0 0 0 0
Restart SystemUI: pkill -l TERM -f com.android.systemui
Safe reboot: svc power reboot
Safe reboot to recovery: svc power reboot recovery
Get list of all system/global/secure settings along with their values; using system settings as example: settings list system
Read system/global/secure setting to a variable; using secure setting accessibility_enabled as example: settings get secure accessibility_enabled
Change system/global/secure setting; using secure setting accessibility_enabled as example: settings put secure accessibility_enabled 0
Make /system rewritable: mount -o remount,rw /system
Make /system read-only: mount -o remount,ro /system
Change file permissions, using /system/etc/hosts as example; numbers are 7 for rwx, 6 for rw, 4 for r; first number is for root (system user), second is for group, third is for all users: chmod 644 /system/etc/hosts
Tap at x,y pixels on screen, using 540,1500 as example: input tap 540 1500
Swipe from x1,y1 to x2,y2, using 540,1500 to 540,300 (swipe up) as example: input swipe 540 1500 540 300
Read/change another app's database; can't give examples as this would need a full tutorial: sqlite3 /path/to/.db_file "sqlite3 commands";
non-root command
Open any app from a variable %package_name containing com.paclage.name; this one is javascript, not shell script [note that you don't want to put % before variable in javascript]: loadApp(package_name, '', false);
Extract %file zip file to /sdcard: unzip %file /sdcard/
Move a file: mv /original/path /new/path
Copy a file: cp /original/path /new/path
Read a file to a variable: cat /path/to/file
Write %var to a file: echo %var > /path/to/file
Delete a file: rm /path/to/file
Delete a folder and all its contents: rm -r /path/to/folder
Check whether a process is doing something or not; set the output to a variable, set a wait for some time, and then get the output again, if output has changed then the process is doing something: ps | grep com.package.name
Sukarn said:
Boy, where do I start? The list would be endless. Anyway, here are some, not all, that I use.
Click to expand...
Click to collapse
Thanks I'm updating the page as I type this! - I completely forgot about file operations if I'm honest. Good to have others to contribute!
quintaar said:
Thanks I'm updating the page as I type this! - I completely forgot about file operations if I'm honest. Good to have others to contribute!
Click to expand...
Click to collapse
You need to proofread that page. There are lots of errors in there that will stump newbs
Sukarn said:
You need to proofread that page. There are lots of errors in there that will stump newbs
Click to expand...
Click to collapse
That's what I'm doing now , trying to put them, in some logical order as well, to make it easy to find, and use. I do appreciate the time taken to type this.
Is input keyevent correct for emulating the power button in a shell command? The # on the website didn't work. I found the generic.kl file in my /system/usr folders and the key # for power listed there did now work with that shell command, either. Even with run as root checked.
{
"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"
}
LeftyGR said:
Is input keyevent correct for emulating the power button in a shell command? The # on the website didn't work. I found the generic.kl file in my /system/usr folders and the key # for power listed there did now work with that shell command, either. Even with run as root checked.
Click to expand...
Click to collapse
I believe hardware keys would be device specific, ego could have different codes.
quintaar said:
I believe hardware keys would be device specific, ego could have different codes.
Click to expand...
Click to collapse
I guess my real question is that the correct shell command as it is written? Because with my specific device key code did not do anything.
Are you trying to do this when the phone display is on or off? this only works when screen is on. input keyevent 26 works fine on my device
quintaar said:
Are you trying to do this when the phone display is on or off? this only works when screen is on. input keyevent 26 works fine on my device
Click to expand...
Click to collapse
On... Guess it does not like me.
LeftyGR said:
On... Guess it does not like me.
Click to expand...
Click to collapse
Do you get any error? My most common mistake is spelling the run shell with upper case, as my keyboard automatically corrects it. And if I forget to change it, it returns an error
quintaar said:
Do you get any error? My most common mistake is spelling the run shell with upper case, as my keyboard automatically corrects it. And if I forget to change it, it returns an error
Click to expand...
Click to collapse
Yes. Appears to be a timeout error.
Background Data On/Off? Thanks in advance
Sent from my hlte using XDA-Developers mobile app
LeftyGR said:
Yes. Appears to be a timeout error.
Click to expand...
Click to collapse
I stumbled on this:
http://forum.xda-developers.com/showthread.php?t=2063741
Perhaps will help you more as well
shaharofir said:
Background Data On/Off? Thanks in advance
Sent from my hlte using XDA-Developers mobile app
Click to expand...
Click to collapse
I've not come across the setting, but try to use:
settings list system
settings list global
settings list secure​and see what your device will give you in options lists.
I totally forgot about another shell command that I have set up in Tasker: md5sum /path/to/file
I use it to verify the integrity of downloads in an OTA app I made for a custom ROM using only Tasker.
---------- Post added at 10:52 AM ---------- Previous post was at 10:43 AM ----------
quintaar said:
Are you trying to do this when the phone display is on or off? this only works when screen is on. input keyevent 26 works fine on my device
Click to expand...
Click to collapse
On my phone (OnePlus One), "input keyevent 26" just turns the screen off, while 116 does nothing.
LeftyGR said:
I guess my real question is that the correct shell command as it is written? Because with my specific device key code did not do anything.
Click to expand...
Click to collapse
Did you try the command I posted at the top of my post here? It's the second post in this thread.
quintaar said:
I've not come across the setting, but try to use:
settings list system
settings list global
settings list secure
and see what your device will give you in options lists.
Click to expand...
Click to collapse
Thanks. Will give it a try.
Sukarn said:
I totally forgot about another shell command that I have set up in Tasker: md5sum /path/to/file
.
Click to expand...
Click to collapse
I have added this one as well Thanks
shaharofir said:
Thanks. Will give it a try.
Click to expand...
Click to collapse
Looked, nothing there. Any suggestions?
Sent from my hlte using XDA-Developers mobile app
shaharofir said:
Looked, nothing there. Any suggestions?
Sent from my hlte using XDA-Developers mobile app
Click to expand...
Click to collapse
Perhaps maybe more luck with intents? I'm working on the similar list for it
Sent from my Nexus 6P using Tapatalk

[Guide] How to Flash TWRP Recovery on Chromebook

Credits to mauronofrio, nathanchance
My contribution? How do you find that flast flibberen file path?!
This Guide is for Chromebooks only!
You must have your Chromebook in Developer Mode First (please google and search)!!!
To download platform tools / adb or fastboot tools for chromebook (chromebook must be in Developer Mode!!) visit:
https://forum.xda-developers.com/ha...oks/guide-setting-adb-fastboot-x8664-t3806428
then click README
Or just:
1. control + alt + t in a Chrome Browser window
2. type:
uname -m
3. make sure that after pressing enter this shows up:
x86_64
4. if it doesn't show this: x86_64 buy a new chromebook
5. type: shell
6. type:
curl -s https://raw.githubusercontent.com/nathanchance/chromeos-adb-fastboot/master/install.sh | bash
7. then type:
cd ${HOME}/Downloads; curl -s https://raw.githubusercontent.com/nathanchance/chromeos-adb-fastboot/master/install.sh -o install.sh
8. to check if the phone is being seen by the chromebook, type:
adb devices
9. your smartphone device should be listed
10. Done
Next:
Steps to find the correct file path name (Chromebook must be in DEVELOPER MODE!!):
1. download the file that needs to be flashed into the Downloads Folder of your Chromebook
2. control + alt + t in a window in the Chrome browser
3. (without the quotes) type "shell"
4. (without the quotes) type "adb devices" to make sure the phone is attached and can be seen by your chromebook
5. type the command you need, e.g. "fastboot boot," adb, etc.
6. in another tab, take a PDF file from the Downloads Folder and open it in chrome browser
(make sure you go to the Chrome Browser Settings, scroll down and click on "Privacy and Security," then scroll down and click on "Site Settings," then scroll down and click on "PDF documents," then make sure "Download PDF files instead of automatically opening them in Chrome" is toggled Off ((so make sure that the little circle is to the left and Not lit up and colored blue)) to make sure pdfs open in the browser so that you can See the file path name)
7. copy the file path name that is in the url box/omni box and paste it into the shell tab you opened in Chrome Browser in step 2 (I suggest pasting it First into a notes app for future use.)
8. after pasting the file name to where you need it, delete "file:///" or delete the part of the file path name BEFORE "home/chronos..."
9. after "Downloads/" delete the PDF file name and type the name of the file you need to flash so "home/chronos...Downloads/Filename.img" or "Filename.zip"
10. you should have typed into the shell window something similar to this:
fastboot boot home/chronos/u-fhd6557gfh5659h55dg464dyt563652/MyFiles/
Downloads/twrp33170q.img
11. press enter
12. Done
Also, Chromebook must be in Developer Mode!!
My current phone is Oneplus 7 pro and I flashed trwp recovery with my Lenovo chromebook while upgrading to android 10.
Was trying to make it not links on 6 and 7 but whatever.
{
"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"
}
Please can i ask which best Power bank for one plus 7 pro ??
Sent from my GM1913 using Tapatalk
You have no idea how much this has helped me especially from #6... Thank you.
Thanks for this! It helped me figure out some things I couldn't before.
(Edit)
hey why i cant check my pixel 2xl when use adb device cammand
but i can use adb reboot to reboot my phone or ues adb to reboot my phone into fastboot mode
another question is how to flash twrp to my phone
awarson2233 said:
hey why i cant check my pixel 2xl when use adb device cammand
but i can use adb reboot to reboot my phone or ues adb to reboot my phone into fastboot mode
another question is how to flash twrp to my phone
Click to expand...
Click to collapse
Try: adb devices instead of "device.." If that doesn't work and your Chromebook is in developer mode and setup right with phone, try sudo adb devices. I'm quite sure it's just a simple typo though and if you use devices instead of device you will be good.

General [SOLVED] Can't copy Titanium Backup files to PC!!!

How can i copy TitaniumBackup folder to PC?
With my others Galaxy phones i always could copy through MTP but with my G998B/DS i can't.
I've used all the methods i found on the internet, such as:
Copy through MTP;
Compress TitaniumBackup's folder into a .zip file;
And through the ADB command
Code:
adb pull "/sdcard/TitaniumBackup" "D:\BACKUP"
Through MTP and compressing the folder i only get the .PROPERTIES files and through ADB i get this error message:
adb: error: failed to copy '/sdcard/TitaniumBackup/com.google.android.apps.photos-20210403-172138.tar.gz' to 'D:\BACKUP\TitaniumBackup\com.google.android.apps.photos-20210403-172138.tar.gz': remote open failed: Permission denied
If anyone can help me I would appreciate it.
SOLUTION: I entered in TWRP and i've been able to copy the folder.​
anyone know how to resolve this? i don't have TWRP so i can't use that work around.
fizmixa said:
anyone know how to resolve this? i don't have TWRP so i can't use that work around.
Click to expand...
Click to collapse
Do you get the same error as below?
MasterHack10 said:
adb: error: failed to copy '/sdcard/TitaniumBackup/com.google.android.apps.photos-20210403-172138.tar.gz' to 'D:\BACKUP\TitaniumBackup\com.google.android.apps.photos-20210403-172138.tar.gz': remote open failed: Permission denied
Click to expand...
Click to collapse
Maybe the "Permission denied" error is triggered by windows itself since you try to copy into the root of drive D. Maybe running your terminal (e.g. PowerShell) as admin will resolve your issue.
Else, @fizmixa , you could still manually boot (but not flash) twrp using fastboot, if your device isn't a Samsung device (I don't know if you can achieve this with Samsung).
Same here...Still couldn't find a solution.
I had the same problem. Looks like it's permission related. I fixed the problem by booting into TWRP -> Advanced -> File Manager, navigating to /sdcard/TitaniumBackup, clicking the blue folder with the tick and then selecting the chmod755 option.
@fizmixa, try and download Terminal Emulator for Android from the Play store and run:
Code:
chmod 755 /sdcard/TitaniumBackup/
It is about owner permission. Tar.gz files has a different owner from .properties. I don't have TWRP recovery because I use Android Emulator. How can I solve this problem?
Same issue here. Is this an Android 11 issue?
I'm struggling with the same issue .. No TWRP with me yet. So any clue how to get these files out of the device ?
JazonX said:
I'm struggling with the same issue .. No TWRP with me yet. So any clue how to get these files out of the device ?
Click to expand...
Click to collapse
They're protected due to security changes in newer versions of Android. I had the same issue on my last device, unable to pull /sdcard/android or /sdcard/TitaniumBackup using ADB for example.
You can try the SmartSwitch Windows app to take a backup of your phone?
Just a word of warning, I used SmartSwitch yesterday and although the backup was successful the call log backup zip was corrupt and couldn't be restored.
skymera said:
They're protected due to security changes in newer versions of Android. I had the same issue on my last device, unable to pull /sdcard/android or /sdcard/TitaniumBackup using ADB for example.
You can try the SmartSwitch Windows app to take a backup of your phone?
Just a word of warning, I used SmartSwitch yesterday and although the backup was successful the call log backup zip was corrupt and couldn't be restored.
Click to expand...
Click to collapse
Hey, I just managed to sort it out.
Go to Titanium Backup, Preferences, Backup location - and click the below selected option;
Select the external backup storage option, and allow access to it.
It was weird how this caused the PC copying / internal copying to fail .. This sorted the problem for good.
{
"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"
}
JazonX said:
Hey, I just managed to sort it out.
Go to Titanium Backup, Preferences, Backup location - and click the below selected option;
Select the external backup storage option, and allow access to it.
It was weird how this caused the PC copying / internal copying to fail .. This sorted the problem for good.
Click to expand...
Click to collapse
I'm not rooting my S21U but this is good to know for the future, tks.
I'm also having this problem with Android 11 on Pixel 5a, adb: error: failed to copy ...: remote open failed: Permission denied
There isn't a TWRP for this device yet so I can't try that solution. I tried JazonX's idea but it hasn't helped. The problem seems to be that the tar.gz files are owned by media_rw user instead of u0_a252 like the other files. I tried using 'adb shell', "su -" and then "chmod 755 /sdcard/TitaniumBackup/" but it doesn't actually change any of the permissions. Also tried commands such as "chown u0_a252 *.tar.gz" but it doesn't actually change anything. I tried to write to TB support too but no response yet. Any other ideas?
Aha! I found a solution! use "adb shell" then "su -" then navigate to "cd /data/media/0/TitaniumBackup". Now commands like "chown u0_a252 *" actually work and I was able to get full backup of /sdcard/TitaniumBackup with "adb pull". Crazy Android file system!
scarlion said:
Aha! I found a solution! use "adb shell" then "su -" then navigate to "cd /data/media/0/TitaniumBackup". Now commands like "chown u0_a252 *" actually work and I was able to get full backup of /sdcard/TitaniumBackup with "adb pull". Crazy Android file system!
Click to expand...
Click to collapse
Wow! It worked for me! Thanks very much
scarlion said:
Aha! I found a solution! use "adb shell" then "su -" then navigate to "cd /data/media/0/TitaniumBackup". Now commands like "chown u0_a252 *" actually work and I was able to get full backup of /sdcard/TitaniumBackup with "adb pull". Crazy Android file system!
Click to expand...
Click to collapse
Did you do this via windows command prompt or within a terminal program on the android device?
As I can't seem to get it to work on Windows CMD
Code:
C:\platform-tools>adb shell
redfin:/ $ su -
redfin:/ # cd /storage/emulated/0/TitaniumBackup
1|redfin:/storage/emulated/0/TitaniumBackup # chown u0_a252 *
redfin:/storage/emulated/0/TitaniumBackup # adb pull "/storage/emulated/0/TitaniumBackup" "D:\Temp"
: adb: inaccessible or not found
127|redfin:/storage/emulated/0/TitaniumBackup # adb pull /storage/emulated/0/TitaniumBackup
: adb: inaccessible or not found
127|redfin:/storage/emulated/0/TitaniumBackup #
pennywaltz said:
Code:
redfin:/storage/emulated/0/TitaniumBackup # adb pull "/storage/emulated/0/TitaniumBackup" "D:\Temp"
: adb: inaccessible or not found
127|redfin:/storage/emulated/0/TitaniumBackup # adb pull /storage/emulated/0/TitaniumBackup
: adb: inaccessible or not found
127|redfin:/storage/emulated/0/TitaniumBackup #
Click to expand...
Click to collapse
I think you have to exit the "adb shell" for further adb commands to work, as "adb" is in your C:\platform-tools directory
scarlion said:
I think you have to exit the "adb shell" for further adb commands to work, as "adb" is in your C:\platform-tools directory
Click to expand...
Click to collapse
I'm having the same problem on my Pixel 5 ("redfin"). It has nothing to do with adb. Without adb running at all, I can go to a terminal emulator on the device and run the following commands ...
Code:
redfin:/ $ su -
redfin:/ # cd /sdcard/TitaniumBackup
redfin:/sdcard/TitaniumBackup # chown u0_a362 *
No error is reported. However, after doing this, all the files previously owned by rw_media are still owned by rw_media. In other words, for those files, the chown command is effectively a no-op, even after an su to root.
Google strikes again with its "We think we're much smarter than you, and we're going to 'protect' you from yourself, whether you like it or not!" attitude.
HippoMan said:
Google strikes again with its "We think we're much smarter than you, and we're going to 'protect' you from yourself, whether you like it or not!" attitude.
Click to expand...
Click to collapse
I know right, it's pretty annoying... but even with root, I think you have to specifically modify the data from the /data/media/0 directory instead, i.e.:
redfin:/ $ su -
redfin:/ # cd /data/media/0/TitaniumBackup
redfin:/data/media/0/TitaniumBackup # chown u0_a362 *
Does that work?
scarlion said:
I know right, it's pretty annoying... but even with root, I think you have to specifically modify the data from the /data/media/0 directory instead, i.e.:
redfin:/ $ su -
redfin:/ # cd /data/media/0/TitaniumBackup
redfin:/data/media/0/TitaniumBackup # chown u0_a362 *
Does that work?
Click to expand...
Click to collapse
Yep, that worked for me! Thanks! It seems they have put some stupid userland file system which mirrors files from /data:
/dev/fuse on /storage/emulated type fuse (rw,lazytime,nosuid,nodev,noexec,noatime,user_id=0,group_id=0,allow_other)

Categories

Resources