Affichage des articles dont le libellé est command. Afficher tous les articles
Affichage des articles dont le libellé est command. Afficher tous les articles

mardi 25 août 2015

htc one m8 dead after "fastboot oem reset" command



I used "fastboot oem reset" command. then my device restarted. but screen became totally black. bootloader screen is not loading. no htc logo.but computer detects the device.after this command in device tree product name has disapeared. also serialno, imei, modelid has corrupted. is there a method to rewrite product name, serialno, imei, modelid?

D:\htc one m8\fastboot m8>fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.16.0.0000
(bootloader) version-baseband: 1.15.2133156.UA13G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: UUUUUUUUUUUUUUU
(bootloader) version-misc: UNKNOWN
(bootloader) serialno: UUUUUUUUUUUUUUU
(bootloader) imei: 355195000000010
(bootloader) imei2: Not Support
(bootloader) meid: 00000000000000
(bootloader) product:
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
(bootloader) cidnum: UUUUUUUU
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: UNKNOWN
(bootloader) commitno-bootloader: ab0efa49
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
finished. total time: 0.094s

I am really really thankfull if you can help me here.



vendredi 21 août 2015

air command on s pen restart note 4



it is as it shown in the title the s pen words fine and everything, but as soon as i press the button on it to show air command the phone restarts with a msg for 1 sec or less that a process is not responding



mercredi 19 août 2015

First time Root - No Command Errors



Hi all,

I got a VZ replacement GS4 the other day and was lucky that it was still running 4.4.2 so I decided to give a go at rooting the device. I tried a few one-click solutions but none seemed to work. I eventually found a method on these forums([How-To] Root I545_NK1 - 4.4.2 (12-1-2014)) by muniz_ri that worked like a charm. Here are all my current info...

https://lh3.googleusercontent.com/e6VdwD_oYejlq9S7FY6-W06uPt8rh1PZPIivxGtArHx2=w504-h895-no

After gaining root access, I downloaded superuser, Titanium Backup and Rom Manager. First thing I did was back up all my Apps/Data with TB. I wanted to flash some ROMs before I did I went into ROM Manager to backup the current ROM and after the initial reboot I noticed it was not booting into CWM Recovery but what i think is the stock recovery and would show the android for a second and then it would show it "dead" with the error triangle above with the message "No Command". From there I just continued with the system reboot option 1.

I tried a few more times, same result. I even tried TWRP to try to backup the current ROM and I'm getting the same result.

Any suggestions on what can be going on?



Booting into recovery shows "no command"



Hi ... I just rooted my moto g 3rd gen 8GB . It seems all are working fine.

I installed TWRP recovery from here
and Superuser from here

Root is done. But when I am trying to boot into recovery I am getting "no command" message with a black screen background and android laying down ! Can anyone please help me to fix it? Thank you,



lundi 17 août 2015

android recovery showing no command please help



Tried to rroot lenovo s580, root failed and now android recovery showing no command. How can I flash a custom revovery? Android partition check showing system have been root.



samedi 15 août 2015

Command Line TWRP



Can boot into using fastboot boot recovery.img

Need to figure out what's going on with the display, but you can use adb shell and access the twrp commands that way / mount partitions / modify files

https://doc-00-3s-docs.googleusercon...jkbg97b56s449n

Will keep working on and post updates as they come

edit: also you have to manually mount the partitions. I'm working on fixing the fstab to get them to auto-mount properly.



jeudi 13 août 2015

'adb tcpip' command doesn't work



Hello guys.

I think that this question should go mainly to developers of this device. When I type 'adb tcpip 15555' via ADB, the terminal just hangs on it. I tried changing some default.prop settings but no difference. That's the one and only device where it doesn't work. Any help?



mercredi 12 août 2015

Is having the screen unlocked and on on your phone required for AW play music command



I am not sure if this is an issue I'm having or if it's intended, but whenever I tell my watch to play music on my phone, the music will not start until I turn my phone's display on and/or unlock it. Is this intentional?



mardi 11 août 2015

Listen to voice command not working until phone screen is unlocked and on



I have to turn my phone's screen on and unlock in order for a listen to... Or play... command to work, and as soon as I turn my phone on my requested music starts playing. Is there a security setting I need to change to allow instant playback while the phone has its screen off?



[GUIDE] How to build .apk file from command line



Author: Apriorit (Device Team)

If you don’t want to install a number of programs for building your Android project, this article is for you. You will need only JDK, the Android SDK platform tools and minimum Android platform for building the project using the batch file.

1. Introduction

In this article, I will describe how to use the Android tools for building the .apk file using the command line. As a result, you can use the batch file for building your Android application. I use Windows commands in this article. But you can use the same Android commands and tools and the same program if you are working on Linux OS. The example of the script for Linux OS is included in the sample project, attached to this article.

2. Preparation

You must install Java JDK and Android SDK on the system where you will build your Android application using the Windows command line. The private keystore also must be present.

2.1 Java JDK

You can use Java JDK from Eclipse or download it from this link: oracle(dot)com/technetwork/java/javase/downloads/index.html and then install it.

2.2 Android SDK

Android SDK and its HOWTO document are available here: developer.android.com/sdk/index.html[/url].
The Android SDK Platform-tools, SDK Platform Android 2.2, and API 8 are the minimum that is needed for the test project work.

2.3 Environment Variables

If you want to have a readable batch script and a program without very long file path definitions, you should use the environment variables. I recommend you to define the following ones:
• JAVABIN path to the Java JDK bin folder. For example: C:\Program Files\Java\jdk\bin. This folder must contain the javac.exe and jarsigner.exe files.
• ANDROID-SDK path to the Android SDK folder. For example: C:\Program Files\Andoroid\android-sdk-windows.

2.4 Private Key for Signing

You can read everything about signing, creating private key, and other operations here: developer.android(dot)com/guide/publishing/app-signing.html
In this article, I describe only one important command that will generate my-release-key.keystore:


Code:


%JAVABIN%\keytool  -genkey -v -keystore  my-release-key.keystore -alias alias_name  -keyalg RSA -keysize 2048  -validity 10000

Specify your info and you will receive the my-release-key.keystore file. You must remember the password. You will need it later. Also, I recommend you to put the keystore file in the same folder as the project. In the example,It is in the keystore folder in the project directory.

2.5 Example Files Structure

You must remember that the dx Android tool requires the full path, which MUST not contain any spaces. So, check the fact, that your project path satisfies the requirement.
The file structure of the example project, which is built using the build.bat file, is the following:


Code:


SecureMessages/
assets/
keystore/
        my-release-key.keystore
res/
        drawable-hdpi/
                icon.png
drawable-ldpi/
icon.png
drawable-mdpi/
icon.png
layout/
                main.xml
values/
                strings.xml
src/
org/
secure/
sms/
                SecureMessagesActivity.java
StringCryptor.java
SmsReceiver.java
AndroidManifest.xml
build.bat                                                // Windows build script
build.sh
                                                // Linux build script


3. Command Sequence

The following commands are for the Windows OS, but you can find the script for the Linux OS project building in the attached sample.
First of all, we must save current path. Then we must change the CD variable to the path to the build.bat file:


Code:


SET PREV_PATH=%CD%
cd /d %0\..
Then, bin and gen old folders should be recreated:
rmdir "bin" /S /Q
rmdir "gen" /S /Q
mkdir "bin"
mkdir "gen"


I add some definitions. They make the batch file readable and easy to update. So, I recommend you the following definitions:
• minimum Android revision;
• the path to aapt Android tool and its arguments for adding files into the existing archive;
• the path to aapt Android tool and its arguments for packing and generating resources;
• the path to dx Android tool;
• the path to javac utility of JDK.
This list of independent definitions can be used for building the majority of Android projects (of course, with the changed Android revision value). For example:


Code:


SET ANDROID_REV=android-8
SET ANDROID_AAPT_ADD="%ANDROID-SDK%\platforms\%ANDROID_REV%\tools\aapt.exe" add
SET ANDROID_AAPT_PACK="%ANDROID-SDK%\platforms\%ANDROID_REV%\tools\aapt.exe" package -v -f -I "%ANDROID-SDK%\platforms\%ANDROID_REV%\android.jar"
SET ANDROID_DX="%ANDROID-SDK%\platform-tools\dx.bat" --dex
SET JAVAC="%JAVABIN%\javac.exe" -classpath "%ANDROID-SDK%\platforms\%ANDROID_REV%\android.jar"


Also I need the defined variables for my project:
• APP_NAME is the name of application that will be used for the output APK file.
• JAVAC_BUILD and JAVAC are the same commands, but there are path to the sources, generated R class, and output folder in JAVAC_BUILD.
These variables let us change the project name and paths to the sources easier.


Code:


SET APP_NAME=SecureSms
SET JAVAC_BUILD=%JAVAC% -sourcepath "src;gen" -d "bin"


And now, all preparations are finished and the application can be built. The R file will be generated using aapt tool. All resources will be packed into the resources.ap_ file:

Code:


call %ANDROID_AAPT_PACK% -M "AndroidManifest.xml" -A "assets" -S "res" -m -J "gen" -F "bin\resources.ap_"

Android manifest file, res and assets folder are the input data. Aapt will generate the R class and put it into the gen folder. Then, aapt will pack the resource files into the resourses.ap_ file.
Every folder that contains *.java file must be called with javac. In my example, there is only one folder with javac. So, I have only one command line for building sources:


Code:


call %JAVAC_BUILD% src\org\secure\sms\*.java

As you remember, the JAVAC_BUILD command has already contained the arguments that specify the bin folder. The bin folder is an output folder for the compiled sources.
At this moment, the sources have been compiled successfully and they can be packed in the special dex file:

Code:


call %ANDROID_DX% --output="%CD%\bin\classes.dex" %CD%\bin

For the application signing, the resources file must be copied to another file, which will be used for the signing:

Code:


copy "%CD%\bin\resources.ap_" "%CD%\bin\%APP_NAME%.ap_"

The classes.dex file must be added to the new file that has an ap_ extension

Code:


call %ANDROID_AAPT_ADD% "%CD%\bin\%APP_NAME%.ap_" "%CD%\bin\classes.dex"

Now, the ap_ file is a correct apk file. But it is not signed yet and it cannot be installed to the Android device.
The creation of the signed Android application from the *.ap_ file is the following (Output file name must differ from the input file name – in this case the file extension is changed to the *.apk):


Code:


call "%JAVABIN%\jarsigner" -keystore "%CD%\keystore\my-release-key.keystore" -storepass "password" -keypass "password" -signedjar "%CD%\bin\%APP_NAME%.apk" "%CD%\bin\%APP_NAME%.ap_" "alias_name"

And delete temp ap_ file:


Code:


del "bin\%APP_NAME%.ap_"

Finally, let’s return to the start folder and clear local variables:


Code:


:EXIT
cd "%PREV_PATH%"
ENDLOCAL
exit /b %ERRORLEVEL%


To test the example, you must:
• unpack it
• do the steps 2.1-2.5 from the Preparations paragraph
• run the build.bat file


You can download the sample project source at the article official page apriorit(dot)com/our-company/dev-blog/233-how-to-build-apk-file-from-command-line



"No command" shows in Recovery mode after TWRP recovery image is flashed.



I am using one Moto E 2015 4G (XT1524) European Edition, I have unlocked the bootloader, and managed to flash the TWRP recovery image via fastboot.
Before I flash the CM12.x ROM, I need to install SuperSU.zip, however, when I entered the recovery mode, only "no command" shows up, I can do nothing about this situation.

I tried to install SuperSU through Google Play Store; when I open it, it says "There is no SU binary installed, and SuperSU cannot install it........ If you just upgraded to Android 5.0, you need to manually re-boot ...."
Following what it says, I re-booted the phone, but the SuperSU app still shows the above message when I open it.

What should I do right now? Thank you!



vendredi 31 juillet 2015

Advanced Trimmer from Command Line (fstrim)(Only with devices that support fstrim)



Advanced Trimming


DISCLAIMER: I am not responsible for bricked devices, dead SD cards,
thermonuclear war, or you getting fired because the alarm app failed. Please use with caution..



I made a Tool that runs through the terminal emulator, to fstriming easier faster and with no need for apps!!


But What is fstrim??

Fstrim is used on a mounted filesystem to discard (or "trim") blocks which are not in use by the filesystem. This is useful for solid-state drives (SSDs) and thinly-provisioned storage.

If you have any suggestions tell me.

To install :
1.Download the file from Mega or AndroidFileHost
2.Flash the zip through recovery
3.Reboot

And that's it!

To use:

Code:


su
AT


And then a Menu pops up..


1. Check Advanced Trimmer Files

Checks if the files were installed properly.

2.Trim Menu

Opens the Trim Menu with options to Trim All(/data, /cache, /system), Double trims(/data and /cache, /data and /system, /cache and /system), or individual trims(/data or /cachr or /system)

3.Changelog

Shows the Changelog.

4.Uninstall Advanced Trimmer

Uninstalls advanced trimmer.

5. Open Xda thread.

i don't know what it does :p