[TOOL][WINDOWS][RECOVERY][SYSTEM][SNAPS][VIDEO][GUI]android-shot! (version 2.1) - Android General
#android-shot
#your one stop screenshot solution!
#screenshot recovery for windows!
#screenshot system for windows!
#video_record recovery for windows!
#video_record system for windows!
Looking for a Linux Version???
Go Here: http://forum.xda-developers.com/showthread.php?t=2260704
This solely uses the SD Card, which, by default is always kept mounted by
a partition. So, you wouldn't run into any trouble except when you try to
partition or format the SD Card.
I repeat, no need to mount any partition... By default, the SD Card is always mounted, so, I thought using it will be way better than using the /data partition
To take a screenshot:
Code:
Run "shot.bat"
Your screenshot will be saved in a folder named screenshots automatically.
To capture video:
Code:
Run "record.bat"
Press "Ctrl+C" when you have finished recording.
This will basically start recording your screen frame by frame, and automatically
save it in your SD card. Note that recording the video alone is not enough.
Do the following to pull those frames from the SD card, and make a video out of them.
Code:
Run "mkvideo.bat"
Enter the Name that you want to name your video. DON'T ADD AN EXTENSION!
The files will be collected from the SD Card, and a video will be made out
of them. Then, the temporary files will be cleaned automatically, from both
your SD card, and your system.
Downloads:
Version 2.1 (GUI) (Android-Andi): http://forum.xda-developers.com/showpost.php?p=45891403&postcount=59
Version 2.1.3 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44447366&postcount=40
Version 2.1.2 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44288806&postcount=36
Version 2.0.1 (Android-Andi): http://forum.xda-developers.com/showpost.php?p=44011267&postcount=17
Version 2.0 (Thanks to Android-Andi): http://forum.xda-developers.com/showpost.php?p=43982996&postcount=12
Version 1.0: http://www.mediafire.com/download/26gi88xdd5c6rly/android-shot_windows.zip
Note: A GUI version can be found here: http://forum.xda-developers.com/showpost.php?p=45891403&postcount=59
Not personally tested by me, as I don't have the appropriate tools (i.e. windows) no more...
Credits:
Kyan He (https://plus.google.com/116857119889961125943) and his wonderful tool "fb2png" (https://code.google.com/p/android-fb2png/)
Whiskey103 (http://forum.xda-developers.com/member.php?u=2632943) and his guide (http://forum.xda-developers.com/showthread.php?p=40260716) on taking screenshot in windows.
Android-Andi (http://forum.xda-developers.com/member.php?u=5153662) for version 2.0 and some cool ideas
Sample:
Recovery!
Recovery & System Video Sample! [With instructions ]
not working and said
"ECHO off 'and' is not recognized as an internal or external command, operable program or batch file.
'C:\Doccuments' is not recognized as an internal or external command, operable program or batch file.
will try your linux version, when get home
Strange....
antutu said:
not working and said
"ECHO off 'and' is not recognized as an internal or external command, operable program or batch file.
'C:\Doccuments' is not recognized as an internal or external command, operable program or batch file.
will try your linux version, when get home
Click to expand...
Click to collapse
Anyways, thanks for your report
I will look into it, as soon as possible
P.S. Only problem is... I don't have Windows :silly: So, it would be a beta :angel:
vineethraj49 said:
Anyways, thanks for your report
I will look into it, as soon as possible
P.S. Only problem is... I don't have Windows :silly: So, it would be a beta :angel:
Click to expand...
Click to collapse
Take your time mate:thumbup:
Sorry bro i just found out how this can work out
I've to put it in root folder
It's working great now:thumbup::thumbup:
Thanks al lot! That´s what i was looking for.
I tried to get better Video-Quality (libx264 as *.mp4).
I modified the .bat
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Someone knows how to make the quality better then with my modified bat?
Me again:
To use your shot.bat i had to download 2 *.dll´s to get "date.exe" working (libiconv2.dll and libintl3.dll). Without these .dll screenshot not possible.
Maybe you can add these two *.dll into your tool directory (don´t know if it´s allowed, check it here).
Download (GnuWin) Libintl.exe(?) from here and install it.
You´ll find the 2 needed *.dll at "C:\Program Files (x86)\GnuWin32\bin".
I´m, running Windows 8 Pro.
Maybe you can add (after changeing directory path) my modified "record.bat" for taking screenshots from running androidsystem
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /extSdCard/screen.png
%~dp0tools\adb pull /extSdCard/screen.png %~dp0new
%~dp0tools\adb shell rm /extSdCard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
I´m using extSdCard as directory, because my Micro-SD-Card is mounted there.
Maybe change it like this:
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Whoa! Someone actually cares
Android-Andi said:
Thanks al lot! That´s what i was looking for.
I tried to get better Video-Quality (libx264 as *.mp4).
I modified the .bat
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Someone knows how to make the quality better then with my modified bat?
Click to expand...
Click to collapse
Remember that the *quality* is always the same. It pulls the images (frames) in the same resolution as of your phone. If you are talking about the FPS, you should modify this line...
Code:
ffmpeg -r 4
The -r switch controls the FPS.
Again, the FPS depends upon how many screens are actually captured by your device. If you have a fast SD-Card, and a fast processor, it is indeed likely that the frames captured would be more. You can try increasing the -r 4 by 2/3 frames and see if the video is suitable to your needs. (eg. -r 5/ -r 6, etc...)
Android-Andi said:
Me again:
To use your shot.bat i had to download 2 *.dll´s to get "date.exe" working (libiconv2.dll and libintl3.dll). Without these .dll screenshot not possible.
Maybe you can add these two *.dll into your tool directory (don´t know if it´s allowed, check it here).
Download (GnuWin) Libintl.exe(?) from here and install it.
You´ll find the 2 needed *.dll at "C:\Program Files (x86)\GnuWin32\bin".
I´m, running Windows 8 Pro.
Click to expand...
Click to collapse
Didn't know about that... It worked for me without those two DLLs. Anyways, I will just add it for safety.
Android-Andi said:
Maybe you can add (after changeing directory path) my modified "record.bat" for taking screenshots from running androidsystem
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /extSdCard/screen.png
%~dp0tools\adb pull /extSdCard/screen.png %~dp0new
%~dp0tools\adb shell rm /extSdCard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
I´m using extSdCard as directory, because my Micro-SD-Card is mounted there.
Maybe change it like this:
Code:
@ECHO off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Click to expand...
Click to collapse
You could change it yourself... Reason why I wouldn't change it? Because different devices have different mount points. If it is extSDcard, you can change accordingly. (If that wasn't the point, please clarify the last post. I understood it as: my mountpoint for sdcard is different :silly
p.s. thanks.. i was thinking no one cared
vineethraj49 said:
Remember that the *quality* is always the same. It pulls the images (frames) in the same resolution as of your phone. If you are talking about the FPS, you should modify this line...
Code:
ffmpeg -r 4
The -r switch controls the FPS.
Again, the FPS depends upon how many screens are actually captured by your device. If you have a fast SD-Card, and a fast processor, it is indeed likely that the frames captured would be more. You can try increasing the -r 4 by 2/3 frames and see if the video is suitable to your needs. (eg. -r 5/ -r 6, etc...)
Click to expand...
Click to collapse
This will change how long the picture stays (i set it down to 2, beacause in my case it was to fast).
MP4 and libx264 codec will give you better quality. I tested it yesterday the whole evening Trust me. Screenshot added (mp4 more clearly).
Try that one (video looks better):
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
vineethraj49 said:
Didn't know about that... It worked for me without those two DLLs. Anyways, I will just add it for safety.
Click to expand...
Click to collapse
Adding will take you on the safe side Thanks I think they are under GPLv2, but i´m not shure.
You can also download libiconv-1.9.2-1-bin.zip and libintl-0.14.4-bin.zip. DLL´s are in the "bin" directory after extracting.
vineethraj49 said:
You could change it yourself... Reason why I wouldn't change it? Because different devices have different mount points. If it is extSDcard, you can change accordingly. (If that wasn't the point, please clarify the last post. I understood it as: my mountpoint for sdcard is different :silly
Click to expand...
Click to collapse
Code:
[user=279333]@ECHO[/user] off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Internal SD? Same path you use in your batch-scripts. Should work for everyone.
[The Script i posted before was for use on micro-sd (working for my device) - i have changed it later ( ) to use on internal-sd for everyone]
Only one problem: the name of the files... can´t use the mkvideo.bat to make a video... i had to rename them after captureing using Ant Renamer2.
But you can add the 2 .bat from me as a "Bonus" into your zip if you want.
Sure!
Android-Andi said:
This will change how long the picture stays (i set it down to 2, beacause in my case it was to fast).
MP4 and libx264 codec will give you better quality. I tested it yesterday the whole evening Trust me. Screenshot added (mp4 more clearly).
Try that one (video looks better):
Code:
ECHO off
REM snaps mode
REM fb2png credits go to respective developers
REM thanks to whiskey103 for his screenshot.bat for windows
REM thanks to vineethraj49 for his mkvideo.bat (video as *.avi)
REM thanks to me and my computer
IF EXIST %~dp0tmp ECHO tmp directory found! :)
IF NOT EXIST %~dp0tmp ECHO tmp directory not found! :( && MKDIR tmp && ECHO initialised new tmp directory! :)
IF EXIST %~dp0output_video ECHO output_video directory found! :)
IF NOT EXIST %~dp0output_video ECHO output_video directory not found! :( && MKDIR output_video && ECHO initialised new output_video directory! :)
%~dp0tools\adb pull /sdcard/fb2png/screens/ tmp
SET /P name=Enter the name for your video:
%~dp0tools\ffmpeg.exe -f image2 -r 2 -i tmp/1%%09d.png -c:v libx264 -r 30 output_video/%name%.mp4
%~dp0tools\adb shell rm /sdcard/fb2png/screens/*
rm tmp/*
REM hit enter to exit
pause
Adding will take you on the safe side Thanks I think they are under GPLv2, but i´m not shure.
You can also download libiconv-1.9.2-1-bin.zip and libintl-0.14.4-bin.zip. DLL´s are in the "bin" directory after extracting.
Code:
[user=279333]@ECHO[/user] off
REM Record_running_Android
IF EXIST %~dp0new ECHO new directory found! :)
IF NOT EXIST %~dp0new ECHO new directory not found! :(
mkdir new
ECHO initialised new directory! :)
:loop
%~dp0tools\adb shell screencap -p /sdcard/screen.png
%~dp0tools\adb pull /sdcard/screen.png %~dp0new
%~dp0tools\adb shell rm /sdcard/screen.png
FOR /F "tokens=*" %%i in ('%~dp0tools\date.bat') do SET DATE=%%i
MOVE %~dp0new\screen.png %~dp0new\%DATE%.png
goto loop
pause
Internal SD? Same path you use in your batch-scripts. Should work for everyone.
[The Script i posted before was for use on micro-sd (working for my device) - i have changed it later ( ) to use on internal-sd for everyone]
Only one problem: the name of the files... can´t use the mkvideo.bat to make a video... i had to rename them after captureing using Ant Renamer2.
But you can add the 2 .bat from me as a "Bonus" into your zip if you want.
Click to expand...
Click to collapse
cool! i have no objection. as of mp4 encoding too, you could add it as a feature, but do release it in this thread only. I sure would give you credits for a version 2.0 :angel: i don't want xda to be weeded by one more thread. there are already many (by a gazillion n00bs )
I did some cool batch-scripts (modified scripts from yours). You can download from here. Extract and copy the *.bat into the android-shot folder.
What have i done?
E.g. you can set a different path for storing the *.png on your device untill they get pulled. You can also change the destination-folder (on your local computer).
(All codes only from line 7 to ~ line 15 in batch-script)
1. batch: screenshot_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard.
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set pngpath=screenshots[/COLOR]
REM (default-path:screenshots)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: you have to change it in the converting-video batch-script too.
2. batch: record_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
3. batch: record_running_android-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard
REM (default-path: /sdcard for internal storage)
REM
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set destpath=tmpandroid[/COLOR]
REM (default-path: tmpandroid)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: You have to change it in the converting-video batch-script too.
4. batch: mkvideo_mp4_recovery-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_recovery-universal.bat)
[COLOR="Red"]set pngpath=tmp[/COLOR]
REM (default-path:tmp - if you have modified the path do the same here)
Mountpoint of micro SD is different on any devices, you can change it to your´s. If you have changed it in the record_recover-batch-script - you have to do it too.
You can change also the destination folder - but leave it as it is If you have changed it in the record_recovery-batch-script - you have to do it too.
5. batch: mkvideo_mp4_running_android-universal.bat
Click to expand...
Click to collapse
Code:
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_runnning_android-universal.bat)
[COLOR="Red"]set pngpath=tmpandroid[/COLOR]
REM (default-path:tmpandroid - if you have modified the path do the same here)
You can change also the png folder - but leave it as it is If you have changed it in the record_running_android-batch-script - you have to do it too.
Please use Notepad++ if you want to change something in the batch-script.
For watching the .mp4 you can use Media Player Home Cinema.
Cool, but, one small change that I would like to say...
Android-Andi said:
I did some cool batch-scripts (modified scripts from yours). You can download from here. Extract and copy the *.bat into the android-shot folder.
What have i done?
E.g. you can set a different path for storing the *.png on your device untill they get pulled. You can also change the destination-folder (on your local computer).
(All codes only from line 7 to ~ line 15 in batch-script)
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard.
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set pngpath=screenshots[/COLOR]
REM (default-path:screenshots)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: you have to change it in the converting-video batch-script too.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted:
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM E.g. set "extpath=/extSdCard" if your micro-sd is mounted at /extSdCard
REM (default-path: /sdcard for internal storage)
REM
REM
REM
REM Please enter the name of your destinationfolder on your computer:
[COLOR="Red"]set destpath=tmpandroid[/COLOR]
REM (default-path: tmpandroid)
Mountpoint of micro SD is different on any devices, you can change it to your´s.
You can change also the destination folder - but leave it as it is If you do: You have to change it in the converting-video batch-script too.
Code:
REM Please enter the path where your internalstorage or micro-SD is mounted in recovery
[COLOR="Red"]set extpath=/sdcard[/COLOR]
REM e.g. set "extpath=/external_sd" if your micro-sd is mounted IN RECOVERY at /external_sd
REM (default-path: /sdcard for internal storage)
REM
REM
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_recovery-universal.bat)
[COLOR="Red"]set pngpath=tmp[/COLOR]
REM (default-path:tmp - if you have modified the path do the same here)
Mountpoint of micro SD is different on any devices, you can change it to your´s. If you have changed it in the record_recover-batch-script - you have to do it too.
You can change also the destination folder - but leave it as it is If you have changed it in the record_recovery-batch-script - you have to do it too.
Code:
REM Please enter the name of your png-folder on your computer
REM (same as "destpath" in record_runnning_android-universal.bat)
[COLOR="Red"]set pngpath=tmpandroid[/COLOR]
REM (default-path:tmpandroid - if you have modified the path do the same here)
You can change also the png folder - but leave it as it is If you have changed it in the record_running_android-batch-script - you have to do it too.
Please use Notepad++ if you want to change something in the batch-script.
For watching the .mp4 you can use Media Player Home Cinema.
Click to expand...
Click to collapse
drawbacks of your method :fingers-crossed: :
not all devices are fast enough to process the "capture>pull>remove" loop which you have implemented.
except that, awesomeness quotient is great. you have added support for capturing the screen while android is running in normal mode :victory:
It can be just downloaded and extracted into the folder where you already have the files... releasing it as version 2.0
p.s. Guess its time for me to update the linux version
vineethraj49 said:
drawbacks of your method :fingers-crossed: :
not all devices are fast enough to process the "capture>pull>remove" loop which you have implemented.
Click to expand...
Click to collapse
Maybe i can make 2 batch files (pulling as a second step). Maybe add the pull line into the "mkvideo_mp4_running_android-universal.bat".
I can test it after sleeping :silly:
And you´re right: its not so fast like in recovery (on my Galaxy Tab 2 7.0 P3110)
vineethraj49 said:
except that, awesomeness quotient is great. you have added support for capturing the screen while android is running in normal mode :victory:
Click to expand...
Click to collapse
Thank you Thanks for your great work before my modification - my modification wouldn´t be possible without you :good:
vineethraj49 said:
It can be just downloaded and extracted into the folder where you already have the files... releasing it as version 2.0
p.s. Guess its time for me to update the linux version
Click to expand...
Click to collapse
Do it
Because i´m not running a linux i couldn´t make it (and i´m not that good at linux).
Maybe i can make 2 batch files (pulling as a second step). Maybe add the pull line into the "mkvideo_mp4_running_android-universal.bat".
I can test it after sleeping :silly:
And you´re right: its not so fast like in recovery (on my Galaxy Tab 2 7.0 P3110)
Click to expand...
Click to collapse
Yeah, recovery... too slow
Thank you Thanks for your great work before my modification - my modification wouldn´t be possible without you :good:
Click to expand...
Click to collapse
Thank Kyan He and Whiskey103 too
Do it
Because i´m not running a linux i couldn´t make it (and i´m not that good at linux).
Click to expand...
Click to collapse
https://github.com/vineethraj49/android-shot
If you are interested, you can send in pull requests to https://github.com/vineethraj49/android-shot/tree/windows. PM me if interested to maintain the git,I will add you as a collaborator.
vineethraj49 said:
Yeah, recovery... too slow
Thank Kyan He and Whiskey103 too
https://github.com/vineethraj49/android-shot
If you are interested, you can send in pull requests to https://github.com/vineethraj49/android-shot/tree/windows. PM me if interested to maintain the git,I will add you as a collaborator.
Click to expand...
Click to collapse
sure, big thank @ Kyan He and Whiskey103 too!
i'll release update 2.0.1 later. i'm working on it. PM to you later.
pull won't work on windows. i tryed over vbs but didn't got it work.
Version 2.0.1 (extra batch-files)
Download 2.0.1 from here
Installation:
Download and extract V 1.0 from op.
Extract "universal-bat2.0.1.zip" and copy all *.bat to "android-shot" directory.
Changes:
Code:
[LIST][*]not pulling data from your device (slowed down the recording process) @ record_running_android-universal.bat
[*]pulling before converting (better for recording process) @ mkvideo_mp4_running_android-universal.bat[/LIST]
How-To make a video in recovery:
1. start "record_recovery-universal.bat" (press CTRL + C if you are finished)
2. start "mkvideo_mp4_recovery-universal.bat" and follow the instructions.
How-To make a video in running android:
1. start "record_running_android-universal.bat" (press CTRL + C if you are finished)
2. start "mkvideo_mp4_running_android-universal.bat" and follow the instructions.
You can change the path from sdcard (default) to your micro-SD like before (different devices = different mountpoints) (instructions)
Thanks
@vineethraj49
Kyan He (https://plus.google.com/116857119889961125943) and his wonderful tool "fb2png" (https://code.google.com/p/android-fb2png/)
Whiskey103 (http://forum.xda-developers.com/member.php?u=2632943) and his guide (http://forum.xda-developers.com/showthread.php?p=40260716) on taking screenshot in windows.
Edit 30.07.2013:
Changed Download-Link, still 2.0.1 (some UI changes of the running batch)
time to update thread title I guess!
@Android-Andi, could you post a video for android_running_system for video recording as a sample?
vineethraj49 said:
@Android-Andi, could you post a video for android_running_system for video recording as a sample?
Click to expand...
Click to collapse
Shure,can do it next days,maybe today.
for rooted devices
is there anyby some gesture
Related
[Script][Linux]Push files or folders with right-click in nautilus
Code: #!/bin/bash # Script for adb push file or contents of directory to /sdcard/ with # right-click in nautilus. # Requires adb to be in PATH and gdialog from gnome-utils or Xdialog for dialogs. # Place this script in ~/.gnome2/nautilus-scripts/ # Can also be used without nautilus. # Made by Tomasz Cielecki (tomasz [at] ostebaronen.dk) # Feel free to edit and distribute as much as you want. # if you want dialogs set dialog_enable=1 else dialog_enable=0 dialog_enable=1 # Write the entire path to adb here adbPath="/home/tomasz/AndroidSDK/tools/adb" function dialogs { if [ $dialog_enable = 1 ]; then if [ -e "/usr/bin/gdialog" ]; then gdialog --title "adb push" --msgbox "$1" 200 200 elif [ -e "/usr/bin/Xdialog" ]; then Xdialog --title "adb push" --msgbox "$1" 0 0 else echo "No dialog program present" fi fi } if [ $# -ne 1 ]; then # If arguments not equal 1, complain! echo "Usage - $0 file" echo "or - $0 directory" exit 1 fi if [ -d "$1" ]; then $adbPath shell mkdir "/sdcard/`basename "$1"`" # Create the directory on SDcard $adbPath push "$1" "/sdcard/`basename "$1"`" # Push files in the folder to folder on SDcard dialogs "Folder $1 was pushed" elif [ -e "$1" ]; then $adbPath push "$1" /sdcard/ # Push single file to SDcard dialogs "$1 was pushed" else echo "Gurumeditation!" # Oops! fi Get it here: http://ostebaronen.dk/android/adbpush.sh Remember to chmod u+x Place it in ~/.gnome2/nautilus-scripts/ And write the full path to the adb tool in the adbPath variable. Remember to have permissions to access the file or folder you are pushing
AMAZING!!!!!!!!!! i've needed this for sooooo long this is the best ever. thanks man you get mad props.
i should really learn sh/bash...
I'm not sure what will happen if there is a folder inside the folder you are trying to push. And i think it will crash if you are trying to push something with an absolute path. Will look into this!
wouldn't that be up to adb?
yes, but for instance if you are trying to push the folder /home/user/test then the script will try to make the exact same folder name on the SDcard. But i have a sollution for that For the folder in a folder thing I will probably have to make a recursive function.
Cheesebaron said: yes, but for instance if you are trying to push the folder /home/user/test then the script will try to make the exact same folder name on the SDcard. But i have a sollution for that For the folder in a folder thing I will probably have to make a recursive function. Click to expand... Click to collapse If you fix it or improve it that would be nice. I am using it now and like it.....thanks
I've been testing it some now and it seems to behave correctly. made a file structure that looks like this: test test1 (file) test2 (file) a (folder) hest(file) test2_dir (folder) prut And it creates the folder test on the SDcard with the correct sub folders. So I guess it is ok. Could you guys please test this for me and give me feedback?
Works great from the terminal for me but not from Nautilus. I get the dialog that the correct file was pushed, but the file is not on the sdcard. Very weird.
Was it a single file or a folder?
Silly me, I wasn't aware of adb being able to push entire folders... Should work now!
Cheesebaron said: Was it a single file or a folder? Click to expand... Click to collapse Just a single file. Adb is in the path, and it worked fine from the terminal. I also had to change the crunch-bang to bash, doesn't work with sh. Edit: I put the entire path to adb in the script and it is working. I can type adb from any directory and it works. I don't know why it doesn't in this script.
[HOW TO] Install Debian with GUI on any G1 (Any ROM!) ☻☻☻
Okay installing Debian on G1 was a pain in the ass when people make auto installers and never update them -_- I had so much problem trying to use the bootdeb script so heres a manual way to do it and should take like 10 minutes and when done, like 3minutes to start it up. Feel free to PM me if you get stuck! What you need: A Debian Image (debian.img) Get it here. ext2.ko Get it here. If dead, from this page. unionfs.ko Get it here. If dead, from this page. busybox Get it here. If dead, from this page. Android Apps you'll need: Terminal Emulator (Get the free one, even if you have a terminal app!) VNC Viewer (Free or Paid, anything should work) Initial Setup Stuff you need to put in SD card and where. Put all the files (debian.img, ext2.ko, unionfs.ko & busybox) in one folder named kit and put kit in the root of your SD Card. Before we start please note this may look looong but Part 1 takes like 10 minutes and Part 2 like 5 mins. So try it out, its worth it! Part 1 We will install the base system in this part. Please Note You can run the commands below on your computer via ADB Shell but you may have trouble doing Part 2 on your computer. If you understand what you do in Part 1 you may proceed in ADB Shell. Click to expand... Click to collapse Step One Open Terminal paste these in order: Code: export kit=/sdcard/kit Press Enter Code: export bin=/data/local/bin Press Enter Code: export mnt=/data/local/mnt Press Enter Code: export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH Press Enter Code: export TERM=linux Press Enter Code: export HOME=/root Press Enter Code: insmod $kit/ext2.ko If this gives you a error, ignore it! Press Enter Code: mkdir $bin #-p Press Enter Code: cat $kit/busybox >$bin/busybox Press Enter Code: chmod 755 $bin/busybox Press Enter Code: alias _=busybox Press Enter Code: _ mknod /dev/loop0 b 7 0 Press Enter Code: _ mkdir -p $mnt Press Enter Code: echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf Press Enter Code: _ chroot $mnt /bin/bash Part 1 Done It shoud now say #localhost: || If not then something went wrong... Part 2 Installing the GUI. In your Debian Shell (#localhost) type this: Code: cd /etc/apt Press Enter Code: nano sources.list Press EnterNow add these two lines below the 1st source: deb-src ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free deb ftp://ftp.uk.debian.org/debian/ lenny main contrib non-free Click to expand... Click to collapse Hit Trackball+O to save and then Trackball+X to exit. Now type: Code: apt-get install tightvncserver After its done type: Code: apt-get install icewm After its done type: Code: export USER=root After its done type: Code: vncserver -geometry 480x320 You will be asked to setup the VNC Password after this. Set it and remember it! Now type: Code: cd /root then Code: cd .vnc then Code: nano xstartup Now edit out the file to look 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" } Hit Trackball+O and Trackball+X to exit Now type: Code: cd /root then Code: nano .bashrc And add these lines to it: Code: export USER=root cd / rm -r -f tmp mkdir tmp cd / vncserver -geometry 480x320 It should look like this: Now go to Terminal Setting and type this in the Initial Command: Code: su export kit=/sdcard/kit export bin=/data/local/bin export mnt=/data/local/mnt export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH export TERM=linux export HOME=/root alias _=busybox _ mknod /dev/loop0 b 7 0 _ mount -o loop $kit/debian.img $mnt _ chroot $mnt /bin/bash mount -t devpts devpts /dev/pts mount -t proc proc /proc mount -t sysfs sysfs /sys Heres a screenshot: We use this to save time and boot Debian swiftly! Now reboot the phone! After its rebooted, just open Terminal and let it do its thing. If it did it right you should see the Debian Shell launched... Part 3 Playing around in the GUI! Go to androidVNC (or any VNC client you have) Enter the floowing details: Address: localhost Port: 5901 Password: the one you set while setting up tightvncserver... Press connect! Troubleshoot If you get a blank window and a X on VNC Connection, goto terminal emulator>settings>reset term. And then reopen terminal. Now goto your VNC Viewer and change the port to 5902 and hit connect! You should now be in the GUI!! Video of the whole thing coming up soon! Stuff you may wanna note! You may not be able to mount your SD Card while Debian is running so you have to restart your phone to mount your SD Card! Every time you wanna boot debian just open terminal Emulator and install it as a Debian Boot App or something! There are a few flaws and I am a design guy and not a coder, if you find something wrong or wanna revise anything PM me or reply. I know its not perfect! Nothing was done by me I just copyed and pasted stuff from sources. Special Thanks to Jay Freeman (saurik) for coming up with Part 1 and dangermouse over at AndroidFanatic for coming up with Part 2!
Nice! I'm so excited to see that.
if you are trying this reply! I wanna know how it goes!
its the same thing i did months ago! it works fine but too slow :/ on g1
this thread is very organized, great job
aBsolutex3 said: this thread is very organized, great job Click to expand... Click to collapse Thanks, wanted it to be user friendly as its not that easy to understand
try it.Do‘’t know to ask you
mkdir $bin #-p Gives me an error.
cctv35 said: try it.Do‘’t know to ask you Click to expand... Click to collapse Ummm what? jatokor said: mkdir $bin #-p Gives me an error. Click to expand... Click to collapse Are you sure you entered this: Code: export bin=/data/local/bin Should work
Thank you for this thread aBsolutex3 said: this thread is very organized, great job Click to expand... Click to collapse +1 got debian on my g1 for the first time using this walk-through.
Wait, so how do I run this within my mod? will everything on my phone be intact?
ForTehWolf said: Wait, so how do I run this within my mod? will everything on my phone be intact? Click to expand... Click to collapse Saurik on his website said: This does not replace Android. This also gives you access to the full plethora of programs available in Debian and let's you continue using your phone as it was intended to be: as an Android device with all the capabilities thereof. Please note that this is not a "port": Debian already supports ARM EABI, which is the underlying architecture of Android. Click to expand... Click to collapse Its completely safe
error echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf gives me this error: cannot create datalocalmntetcresolv.conf: directory non existent sorry for my English i'm spanish boy
s0e0r0a said: echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf gives me this error: cannot create datalocalmntetcresolv.conf: directory non existent sorry for my English i'm spanish boy Click to expand... Click to collapse check in /data/local/bin ... is bin a file or a folder? if a file delete it and make a folder manually...
SilentRazor said: check in /data/local/bin ... is bin a file or a folder? if a file delete it and make a folder manually... Click to expand... Click to collapse theres a busybox file in there, and thats it
echo 'nameserver 4.2.2.2' >$mnt/etc/resolv.conf no such file or directory
chmod 755 $bin/busybox gives me: chmod: not found and I can't go forward.
sickleman said: chmod 755 $bin/busybox gives me: chmod: not found and I can't go forward. Click to expand... Click to collapse umm are u rooted?
_ chroot $mnt /bin/bash gives cannot execute /bin/bash: No such file or directory
Well I dont have my G1 as its gone 4 repairing so... well wait up 4 a few days...
[experimental] Debian running like a charm on Defy!!!
Hi. Well, I've researched a lot to get to this. For now, I haven't used the mount commands (because there isn't support for loop devices, or at least, that I think; in my stock rom). Because of that, the files are in a folder in the Filesystem of android. There are Screenshots at the end of my post. The steps are a little bit long, but I assure you, that LXDE running on VNC + debian applications (like amsn, ice weasel, etc) is f*cking amazing. Revision of the Tutorial: 3. Date: 14/feb/2011. What you need: A PC with Debian (lenny or squeeze) or a VM with that OS (you can use Ubuntu too) with 2GB or more disk free space A internet connection (or packages of Debian armel locally downloaded) A rooted Motorola Defy (requiered to run some commands later) Overclocked Motorola Defy (optional, but increases the performance) (find "SetVsel" on market) At least 300MB (for "console only") or 750MB (for "console" and graphical stuff) on the /data/local of the internal phone memory (I'm not using mount points, for some software issues with the kernel) Same amount of free space on your SD (to copy files from PC to Internal storage. you could use adb, but I like the SD method, as you don't need any drivers) A lot of time to do this (optional hehehe) As I don't like to use "su" or "sudo" commands, I use a Root Terminal. (sudo su) Well, create a directory in your account folder, I mean if you're the user "cocus", create a folder called /home/cocus/debian You could use any other folder, but take care in the scripts, and replace with the one that you're using. We have to be in the parent folder, so make a cd to /home/cocus/ Next, get the packages to create the deboostrap, and run the chroot. To do this, if you're on Debian run the following: Code: apt-get install qemu-user-static debootstrap But if you're on Ubuntu, use this: Code: apt-get install qemu-arm-static debootstrap Then, we have to get the armel files, using deboostrap: If you want to install Debian Lenny (5.0, tested by me) Code: debootstrap --verbose --arch=armel --foreign lenny debian http://ftp.us.debian.org/debian And for Debian Squeeze (6.0, tested by johnw.xda without the graphical stuff) Code: debootstrap --verbose --arch=armel --foreign squeeze debian http://ftp.us.debian.org/debian In fact, we could use a Ubuntu distro, like karmic. But I recommend debian, because it has more support for armel. Ok, that will be at least 5 mins downloading data and unpacking other stuff. When that finishes, we have to tweak the system to run without errors. First thing, is to create the mount point of the sdcard (in fact, is a system link). Code: mkdir debian/sdcard Second thing, is to run the chroot and configure some things: Code: cp /usr/bin/qemu-arm-static debian/usr/bin chroot debian /bin/bash If succed, you will have a # (root) shell, then put the following: Code: /debootstrap/debootstrap --second-stage adduser Then provide a username and password. Now run the following, to fix some configs: Code: echo 'nameserver 8.8.8.8' > /etc/resolv.conf rm -f /etc/mtab ln -s /proc/mounts /etc/mtab If you're installing Debian Lenny, then run this: Code: echo 'deb http://ftp.us.debian.org/debian lenny main contrib non-free' > /etc/apt/sources.list apt-get update But if you're installing Debian Squeeze, then run this: Code: echo 'deb http://ftp.us.debian.org/debian squeeze main contrib non-free' > /etc/apt/sources.list apt-get update With that, the system will run ok in the Defy, but I would like to add the x11, lxde, vnc packages (because installing on the chroot in pc is more faster than in the phone). If you want LXDE, then do: Code: apt-get install lxde tightvncserver But if you prefer IceWM instead LXDE, then: Code: apt-get install icewm tightvncserver Ok, I really dont remember, but that stuff cost about 350MB more of disk. By the way, while installing the packages, it might ask something, you just say Ok on all messages and complete if it requieres. Once finished, type Code: exit Well, now we have to fix the "LC_LOCALE" error, and the "HOME=/root" for conveinence. To do that, in your local Debian (not the chroot), add the following lines to the file /home/cocus/debian/etc/init.d/rc. Code: PATH=/sbin:/usr/sbin:/bin:/usr/bin export $PATH export HOME=/root export LC_ALL=C Add these lines replacing the original PATH. After that, we have to move the files to internal storage, so, to do that, I've used tar bzip2 to compress all the files and saving the attributes too. Code: tar -cjf /home/cocus/debian.tar.bz2 /home/cocus/debian/* That command will generate a file in /home/cocus called debian.tar.bz2. Once you've got this, copy to your SD. By the way, create a file called bootdeb in the SD root, with the following contents: Code: echo " " echo " a888a " echo " d888888b " echo " 8P YP Y88 " echo " 8|o||o|88 " echo " 8. .88 " echo " 8 ._. Y8. " echo " d/ 8b. " echo " .dP . Y8b. " echo " d8: ::88b. " echo " d8 Y88b " echo " :8P :888 " echo " 8a. : _a88P " echo " ._/ Yaa_ : .| 88P| " echo " \ YP | 8P \. " echo " / \._____.d| .| " echo " --..__)888888P ._.|" echo " " echo " COCUS WAS HERE (I hate JAVA) " export mnt=/data/local/debian export TERM=linux export HOME=/root export OLDPATH=$PATH echo "mnt: $mnt" echo "PATH: $PATH" echo "TERM: $TERM" echo "HOME: $HOME" busybox mount -o bind /dev $mnt/dev busybox mount -o bind /sys $mnt/sys busybox mount -o bind /proc $mnt/proc busybox mount -o bind /sdcard $mnt/sdcard busybox mount -t devpts devpts $mnt/dev/pts echo "Type EXIT to end session" echo "Make sure you do a proper EXIT for a clean kill of Debian!" echo " " export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin busybox chroot $mnt /bin/bash #After exit command is executed clear it all up busybox umount -f /data/local/debian/dev/pts /data/local/debian/proc /data/local/debian/sys /data/local/debian/sdcard /data/local/debian/dev export PATH=$OLDPATH echo "Filesystems have unmounted" Create another file, called vnc with the following contents: Code: export USER=root cd / rm -r -f tmp mkdir tmp cd / vncserver -geometry 1280x720 (you could change the resolution of the X11 desktop there ) And at last, create the last file called xstartup. Take care here, if you have choosed LXDE, use the following: Code: #!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey icewm & lxsession But if you've choosed IceWM, then use: Code: #!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey icewm & xterm Here, we have to run commands, but in the phones shell (adb, ssh, terminal emulator). Remember to mount the SD again (in the case that youre using USB SD Massive storage). Well, we have to get root access in the shell, so you have to root your Defy first. If you have root acces, then run the following in your mobile: Code: mkdir /data/local/debian cp /sdcard/bootdeb /data/local busybox tar -xvf /sdcard/debian.tar.bz2 -C /data/local rm /data/local/debian/root/.vnc/xstartup cp /sdcard/xstartup /data/local/debian/root/.vnc/xstartup cp /sdcard/vnc /data/local/debian/bin/vnc ln -s /data/local/bootdeb /system/bin/bootdeb chmod 0755 /data/local/bootdeb chmod 0755 /data/local/debian/bin/vnc If everything worked and no errors appeared, then you can run debian via your Terminal Emulator: Code: bootdeb And you should get the debian shell, and then run: Code: vnc to start vnc server on localhost. Take note of the localhost:x (where x is a number). That number is what you have to use to connect, I mean: If the number is 1: the port is 5901 If the number is 9: the port is 5909 Thats all! I will try to make a yaffs2 image to mount, but I really dont trust on the mount command, because it gives me a lot of errors, even with correct stuff. Some Screenshots:
pictures are 403 Otherwise great stuff dude!
Did you tried Debian 6.0? Lenny = 5.0 Squeeze = 6.0 Code: build-arm-chroot --verbose --arch=armel --foreign squeeze debian http://ftp.us.debian.org/debian
For the dumb ppl here, the second screenshot is of your phone running an OS? Sent from my MB525 using XDA App
bash: build-arm-chroot: command not found which package.deb include build-arm-chroot?
To see the pics : right-clic => open image in new tab
DrogenDiego said: pictures are 403 Otherwise great stuff dude! Click to expand... Click to collapse Don't work for me to
mick711 said: Don't work for me to Click to expand... Click to collapse DONT click on the link. Copy the link location or the url and then paste in url browser.
Echo " COCUS WAS HERE (I hate JAVA) ".... nevertheless well done. I will try it with squeeze.
I was wondering what exactly is the final result here, maybe a REMOTE lxde (GUI for debian) for my defy running on PC or something like that.. well i got my answer here: http://www.androidfanatic.com/community-forums.html?func=view&catid=9&id=1615 So, if you have the same doubt, NO, it's not a remote desktop, it is debian + lxde (or IceWm) running directly on your defy. The connection through vnc is just a workaround to make it working. Thanks Cocus for your nice step-by-step guide.
Hi. Thanks for the feedback. I've reuploaded the images to imageshack, now you can see them without any 403. johnw.xda said: bash: build-arm-chroot: command not found which package.deb include build-arm-chroot? Click to expand... Click to collapse Hi john, are you running the command in Debian or Ubutnu? Did you run the command of debootstrap? Code: # apt-get install debootstrap walter79 said: Did you tried Debian 6.0? Lenny = 5.0 Squeeze = 6.0 Code: build-arm-chroot --verbose --arch=armel --foreign squeeze debian http://ftp.us.debian.org/debian Click to expand... Click to collapse Nope, I haven't tryied it. In fact, I was trying to get it working. Now I would try to do some interesting things. chaihg said: For the dumb ppl here, the second screenshot is of your phone running an OS? Sent from my MB525 using XDA App Click to expand... Click to collapse In fact, the kernel is the one that the phone booted. The only thing that I've done, is changing the root (/) path to another one, that is like swap the filesystem to another one. The other path, contains the debian root, so you will have a debian root, instead the default of your phone. With that, we can use the debian (armel) features, like aptitude (apt-get install) and such. If anyone knowns how to mount images on loop or any thing like, please feel free to comment. I'm running out of space in my device (almost 10mb left). So, the image mount could be the best option, but I can't figure how to do that in the stock kernel.
cocus said: Hi. Thanks for the feedback.... Click to expand... Click to collapse Hi cocus, is there any way to get it working without the vnc part? I mean, it would be great if we could load debian and lxde from our defy regardless of the vnc connection. If i'm not wrong, to boot propely it needs to load some drivers from PC, that's why we need the vnc. Is it correct?
xdaid said: Hi cocus, is there any way to get it working without the vnc part? I mean, it would be great if we could load debian and lxde from our defy regardless of the vnc connection. If i'm not wrong, to boot propely it needs to load some drivers from PC, that's why we need the vnc. Is it correct? Click to expand... Click to collapse The fact is, debian doesn't have access to the display. I really don't know why, because I'm kinda dumb on linux stuff. If somebody knowns how to add graphical support (display), and/or mouse (touchscreen), it would be great. And, we could just close the dalvik and run the debian (a lot of ram would be free to use). Now im trying to use the camera, audio and mic. They appears in /dev/, so the drivers are working fine, but I don't know with application to use.
If you can install Debian on a Defy, why isn't it possible to install Gingerbread ? :/
geecko said: If you can install Debian on a Defy, why isn't it possible to install Gingerbread ? :/ Click to expand... Click to collapse Not exactly installed. Let me clarify it. The linux file system consists of directories and start at the root directory. (/). Imagine the Windows95 directory, and change the boot to the path of Windows98. Technically what boots (in this case the kernel) is the same, but what changes is the directory. So you'll have a working Debian, as if it were actually installed, but it really is not. Debian can not access the screen (at least I do not know how to set it up) so you have to use VNC server locally to access the X11 (display manager). Take into account that anything here is emulated at all, is running all native. I really don't known nothing about Gingerbread.
cocus said: Hi john, are you running the command in Debian or Ubutnu? Did you run the command of debootstrap? Code: # apt-get install debootstrap Click to expand... Click to collapse hi cocus, yes i did install debootstrap, on my debian/and64. dpkg -L debootstrap can not found build-arm-chroot too which debian are you using? mine is unstable + testing. thank you.
johnw.xda said: hi cocus, yes i did install debootstrap, on my debian/and64. dpkg -L debootstrap can not found build-arm-chroot too which debian are you using? mine is unstable + testing. thank you. Click to expand... Click to collapse Hi, I'm using Lenny on x86. (VM is VMWare Workstation). You could download the netinstall iso, and install on a new VM. It might be a problem with your AMD64. Thus I don't really know. Try installing x86 on a VM.
cocus said: Hi, I'm using Lenny on x86. (VM is VMWare Workstation). You could download the netinstall iso, and install on a new VM. It might be a problem with your AMD64. Thus I don't really know. Try installing x86 on a VM. Click to expand... Click to collapse can you show me the output? shell$ dpkg -S build-arm-chroot also shell$ which build-arm-chroot and shell$ dpkg -L debootstrap | grep build-arm-chroot thank you.
johnw.xda said: can you show me the output? shell$ dpkg -S build-arm-chroot also shell$ which build-arm-chroot and shell$ dpkg -L debootstrap | grep build-arm-chroot thank you. Click to expand... Click to collapse Hi. I've done all of that, but without any outputs, and a lot of errors. I've researched, and I've made a mistake in my info. Replace build-arm-chroot with debootstrap. Its the same. (now edited on the main post) Sorry for the inconvenience.
cocus said: Hi. I've done all of that, but without any outputs, and a lot of errors. I've researched, and I've made a mistake in my info. Replace build-arm-chroot with debootstrap. Its the same. (now edited on the main post) Sorry for the inconvenience. Click to expand... Click to collapse ok. i will retry it, when i back to home. thank you. can you run vim on your defy? i really miss it, when i want to edit plain text file.
[UBUNTU][DEBIAN]Common Commands used in Linux
Common Commands used in Linux. Since, Android is based on Linux, there is much possibility that there is a need to use a Linux based OS. For such use, UBUNTU is favoured, for its easy and more user friendly. Today, I am going to Post a few commands that are very useful to the newbies to development I myself am new, and have faced many problems with this, so I am posting a this thread, to help all the noobs/newbies find what they need in a single place Okay so, lets start with some basic commands, which can be classified as general commands, and each Linux user MUST KNOW ALL OF THEM !! Code: sudo It simply means "Superuser do". It requires password. Code: sudo apt-get install APPLICATION_name This installs the application finding it on the internet, and gives you the suitable output(If the app exists or not). Code: sudo apt-get remove APPLICATION_name It Removes the application Code: sudo apt-get update it updates the repositories Code: sudo apt-get upgrade upgrades your installed application with their latest versions from Ubuntu repositories Code: killall APPLICATION_NAME kills (terminates) an application Code: ps -e displays currently running processes Code: kill APPLICATION_PID kills an application; where APPLICATION_PID. NOTE: YOU CAN FIND "PID" USING EARLIER CODE. Code: wget http://path_to_file.com downloads a file from the web to current directory Code: cd /PATH/TO/DIR changes current directory to DIR. Use cd to change the current directory into any dir Code: cd .. Like ms-dos, goes up one directory Code: dir OR Code: ls lists directory content Code: man COMMAND Displays manual for command. eg: man sudo Code: cp ORIGINALFILE NEWFILE Copy a file Code: mv SOURCE DESTINATION Moves a file NOTE: YOU CAN ALSO RENAME A FILE WITH THIS. EG: mv old_filename new_filename Code: mkdir FOLDERNAME Make a directory/folder Miscellaneous: Level 2 Code: du -sh folder name This calculates the size of the folder Code: ps -aux This shows all the running processes Code: chown -R User:User dir Change owner of files and directories Code: chmod 777 yourScript This makes a shell script ".sh" extension Code: netstat -anltp | grep "LISTEN" See all open ports on your machine Code: sudo apt-get install ufw sudo ufw allow 80/tcp sudo ufw allow 22/tcp sudo ufw allow 443/tcp sudo ufw allow 21/tcp sudo ufw enable Ubuntu provides a uncomplicated firewall (ufw). To install it and only allow SSH, FTP, and webtraffic use the following command. Network Commands Code: ifconfig Shows the network connections WILL UPDATE REGULARLY AS MUCH I COULD.
Code: passwd Run after installing Linux when you see "[email protected]:~$" to set your root pass word Code: adduser Replace and run to add a new user Code: adduser sudo Replace and run to add that user to sudo Code: sudo apt-get purge Replace and run to purge your system of that package Code: apt-cache search Replace and run to search for new packages to install Note: "wild cards" eg "*" are acceptable Code: find -type f -iname 'some-compressed-file*' -print0 | xargs -0 sudo tar -vxpzf Replace with at least the "root" directory you want to search through and Replace " some-compressed-file " (leave the single quotes ' ' and the wild card *) and run to find every file under the given directory that has that name and the pipe " | " it out to tar so that'll extract to your current directory Note: "find" does the finding, the "-type -f" tells find to only look for files, the "-iname" tells find to search parts of file names, the ' ' around "some-compressed-file" keeps the * from doing bad things, the "print0" tells find to "scrub" for spaces and such before outputting a result, the " | " pipes the results of find to xargs, the "-0" is because of "print0" in the find side of the pipe, and "sudo tar - vxpzf" is where tar extracts the findings of find. Code: find $HOME -type f -iname '*zip' -print0 | xargs -0 ls Run to find and list every zip file under the home folder Say you want to make a file to contain some notes wile in the command line Code: sudo cat > $HOME/someNotes.txt <<EOF # place a command here echo "hello world, I update aptget" sudo apt-get update -q EOF Try editing the part after $HOME; type it in or write a file that contains the combo of " cat > $HOME/someNotes.txt <<EOF " some text or commands " EOF " and you'll find making custom scripts of varying complexity to be easy. ....... Hope some of these are also found to be useful for others. Thanks for starting this here thread. Hit the link in my signature for more help with Linux for new and seasoned users Edit 08082013- added another useful tip and reformatted commands to better fit the OP's formatting. Sent from either my SPH-D700 or myTouch3Gs Debian Kit/QEMU Linux Install guide for all android devices that I'm writing: http://forum.xda-developers.com/showthread.php?t=2240397 Now have working Installers for ARM Java 7 JDK + Maptools + jMonkey
Yo ! Nice Share
To delete contents of a large text file .. Code: cat /dev/null > NameOfTheFile
Useful variations of ls command : Show dir content in a list Code: ls -l Show dir content in a list sorted by modification time (newer first) Code: ls -lt Show dir content in a list sorted by modification time (older first) Code: ls -lrt Show subdirectories recursively Code: ls -R If you want to show files starting with . (hidden file), you can add -a option. More options with command : Code: man ls Useful variations of grep command : grep is used to print lines matching a pattern. Find the entry for current user in file /etc/passwd : Code: cat /etc/passwd | grep $USER Find all the entry except current user entry in file /etc/passwd : Code: cat /etc/passwd | grep -v $USER Find all the numbers in file /etc/passwd : Code: cat /etc/passwd|grep '[0-9]*' Add color to grep command : Code: cat /etc/passwd | grep --color $USER (You can add Code: alias grep='grep --color=auto' in ~/.bashrc to always have colored grep) Useful variations of tar command : Create archive_name.tar from dirname : Code: tar cvf archive_name.tar dirname/ Create archive_name.tar.gz (compressed) from dirname : Code: tar zcvf archive_name.tar.gz dirname/ Extract archive_name.tar.gz : Code: tar zxvf archive_name.tar.gz Useful variations of mkdir command : Create directory and subdirectories if not existing : Code: mkdir -p /tmp/a/b/c (mkdir /tmp/a/b/c will fail if /tmp/a and /tmp/a/b don't exist)
Useful tip : Use bash variable "!$" to get the value of the last argument of the last command interpreted. For example : Code: mkdir /tmp/test_a cd !$ (equivalent cd /tmp/test_a) or, Code: mv /tmp/a /tmp/b ls !$ (equivalent ls /tmp/b)
Restore your Baseband in MT65XX Devices
HOW TO RESTORE YOUR BASEBAND IF YOU LOST IT DURING A FORMAT - MT65XX DEVICES Thanks go to abdullahi_ for this solution. His original post from another forum can be found below: https://forum.hovatek.com/thread-116-post-376.html#pid376 Prequisites Phone Rooted Smart Phone Flash Tool Backup - Specifically protect_f file (for a Dual SIM phone, maybe different for a single SIM phone) Linux OS - I used Ubuntu in a virtual machine Android SDK platform tools for ADB access From a terminal (CTRL + ALT + T) Code: mkdir -p ~/protect_f/f cd ~/protect_f At this point copy the file "protect_f" in the ~/protect_f then continue: Code: sudo mount -t ext4 -o loop protect_f f/ Enter your password then continue: Code: cd f sudo chown -R $USER:$USER * Copy the files in the f/md folder to a folder on your phone and using a file manager with root access copy the two files into the /protect_f folder or any toher means NOTE: You will probably get back your cell access immediately. However, please continue to make the permissions and ownership are the same as the original. Also if you have a dual SIM, one of the files from the protect_f folder will automatically be created in the protect_s folder To clean up the files on the Linux OS: Code: cd ~/protect_f sudo umount f/ cd ~ rm -rf protect_f To change permissions and ownership on the files From an adb shell for your phone: Code: su cd /protect_f ls -l Take note of the ownership of the md folder, on the phone I used they were ccci & nvram, in Linux the ownership was 9996 & 9997. At this point I put the phone in airplane mode, just as a precaution to make sure the rest went smoothly Code: cd md chown ccci:nvram * chmod 660 * If you have a DUAL SIM phone, for the second folder.... Code: cd /protect_s/md chown ccci:nvram * chmod 660 * You can now take the phone off of airplane mode and reboot your phone to be sure it is working, ALL DONE!
REMOVED