[Q] Games crashes with CM10.1 hashcode and jellyBeer 4 - 7" Kindle Fire HD Q&A, Help & Troubleshooting

hi all,
So I suceed to flash the CM10.1 from Hashcode to my kindle fire HD7, everything is fine except for games.(same experience with JellyBeer 4.3).
I took the both ROMS on xda and Gapps too.
Some games crashes and make the Kindle crashes too ( "app not responding").
I install game as "stickam cliff diving" which is not a 3D game, or "JetPack Joyride" from the Playstore (they were running well with the amazon rom in 7.4.3)
But games like "AngryBirds" or "Ruzzle" are working.
When I run them, the kindle crashes the app is not responding and I have to stop it. After that the kindle lags.
Reboot the kindle, seems to work fine again.
I just saw it yesterday so I didn't test a lot of stuff yet, but I will.
Do you have an idea where it can comes from?

I am going to guess at something but does this make your audio stop working until you reboot as well? If it does I'm guessing its the audio bug on the latest cm release, it annoys me to no end. I haven't tried either of those games, but that game candy crush does kinda like what you described, so I thought I'd throw a guess in.
Edit: tried the stickman game, it didn't affect my audio but the rest it freezes just the same, I'll have to check catlog in a bit.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app

Hi and thanks for the reply,
The soud seems not working too when crash... looks like what you described. I 've read other posts on that subject which say the same.
I'll try with an older version, will see.
I also found an other bug with the camera.
The quality is very very bad,pixel, dark..... (tried this only with [06/03] ALPHA CM10.1 + 3.0.50+ KERNEL)
I can add to be more precise that after crach, google store is not able to install any apps......
So nest step: I will try with older version and others ROMS.
I let you know how it things are going.
Bye

hi,
So I've tested some ROM (all based on CM10.1 and kernel 3.050+) and I have always the same issues:
- games freeze (need to reboot the kindle)
- flip screen when long press on a icon
- camera with a very poor quality images (bad colors, poor resolution, no light)
I was a little bit frightened because I tested same setup (ROM, kernel) on another kindle fire HD 7, and the camera worked.
So I decided to go back to a stock amazon rom to see if the camera default comes from my hardware.
I installed Amazon OS 7.4.1 update + root/Superuser.apk from Hashcode and everything is working well know (games and camera).
The only "bug" I still have is the problem with the wallpaper display (describe in some posts).
So I follow the instructions and test the script: http://forum.xda-developers.com/showthread.php?t=2295750&page=8
It doesn't work for me. When I ran the script, a command prompt appears and disappears quickly and that all.
From what I've read, it seems that I have trouble with adb. but I checked everything on the versions, java, path, etc.... everything seems to be correct. I continue to work on this point.
I don’t understand, so if somebody has an idea, I’ll take it.
Things I didn’t tried yet, but that I will test soon:
-test another kernel version (will try this today)
-make my own factory cable (make it today, and test later)
-Kinology rom (test today)
Thx.

Well thought I'd ask did you extract everything from the zip file into the same folder before running runme.bat? I think at some point it should have errored out and paused even if that wasn't the case. U did run the runme.bat right? If u tried to run any of the executables like adb.exe or any of the others provided that would explain a command prompt flashing up and going away immediately.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app

Did you shift + right click the folder containing the runme.bat file and open command prompt here, then type in the dos command RunMe.bat

hi and thanks for the reply,
I execute the RunMe.bat from a command prompt with admin rights.
It starts, and close the window.
So I had "pause" in the RunMe.bat to be able to see what happen.
below is what I have:
Cleaning Up...
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\framework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\newframework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\resources.arsc
The system cannot find the file specified.
'adb.exe devices 2> nul' is not recognized as an internal or external command,
operable program or batch file.
'adb.exe shell idme ? 2> nul | find /I "bootmode"' is not recognized as an internal or external command,
operable program or batch file.
*****************************************************************
* Stunt's Wallpaper Fix v2.05 *
*****************************************************************
* Notice a bug or unsafe portion of the script I've missed? *
* PM me(stunts513) on the xda forums! *
*****************************************************************
* Credit goes to pjeby and JulianPaoloThiry *
*****************************************************************
'"findstr /b /c:":menu_" "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\RunMe.bat""' is not recognized as an internal or external command,
operable program or batch file.
ADB Status: Online
Please make a selection or hit ENTER to exit:
The header works but the findstr command is not working....
I checked the java path (see attached jpeg)
I am using Windows7 64bits.
If you have ideas, I am a little bit lost know.
Thanks.

When I downloaded the fix by Stunts, this is what was in the folder, nothing like what your .bat is looking for, Ive used the fix and it works perfect ?
http://imageshack.us/a/img594/8871/tn6k.jpg

I do not have exactly the same.
I download the 2.05 version, was it the same for you?
But from what I understand the problem does not come from the fix itself but more from my setup. But I don't know where.....
I started working with visual studio and Python script few years ago and had lot of troubles to setup my laptop... It looks likes the same here.
I'm pretty sure that I missed something obvious and close to my eyes.... but I can't see it !

Have you got this line in the Environmental Variables ;C:\Program Files (x86)\Java\jre7\bin
Mine was not V2.05, but you may be correct with a laptop setup issue rather than the file execution, is there any way you can try the same on a different machine ?

That's bizarre, if its erroring out at the findstr command that makes no sense, that a built in system command, unless if that's a program and it got deleted somehow.
Also noticed adb was erroring out which I find odd, as long as everything was in the same folder that shouldn't have happened.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app

that's why I don't understand. I can find the findstr.exe in the system32 folder... So I don't understand why my system doesn't recognize it.
I also notice the adb error, what do you mean when you're saying everything is in the same folder? adb.exe is the fix folder, I'm sure of that.

I meant as long as everything included in the fix is in the same folder adb shouldn't be unrecognized as a command. Lemme look at your previous posts to check something...
Edit: OK so if you goto a command pompt, doesn't have to be in the system32 folder, and run findstr, does it error out the same or recognize it?
I'm starting to wonder if this is a uac problem about running as admin... I don't know if your command prompt has admin rights.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app

Im running Win7 x64 Reno, I can email you that file if you want ?
Edit, is there a fault in the code compared to the file name ? V2.0 5 should be v2.05 or the path name ?
"findstr /b /c:":menu_" "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.0 5\Stunts Wallpaper Fix\RunMe.bat"
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05 \Stunts Wallpaper Fix\framework-res.apk
http://imageshack.us/a/img824/1102/uj1r.jpg

I will take a look first chance I get to get on my PC.
Edit: that path name is determined by where he extracted it to, its not something static I put in the script.
Sent from my Amazon Kindle Fire HD running CM10.1 Tablet UI using xda-developers app

The two path names are different, maybe thats why it cant run the command ?

I tested to change the fix folder to make it match with the path "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_ v2.0 5"
-> same issue
I created a text file named test.txt
This file contians 2 lines as follow
hello
bonne nuit
Open a command prompt with admin rights and execute a findstr command on "bonne" in the test.txt file.
it answers "bonne nuit" (see picture below)
So it seems it works, at least my system recoginze the command.

Open an Administrator command prompt and attempt to run the RunMe.bat file, post up a screen shot of the failure, it seems strange to me why the two path names should be different within the process
"findstr /b /c:":menu_" "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_ v2.0 5\Stunts Wallpaper Fix\RunMe.bat"
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05 \Stunts Wallpaper Fix\framework-res.apk

if I run the RunMe.bat without a pause inside the code, the command prompt disapear.
I put a pause here:
:menuLOOP
::Lets check our current device status
call:check_status
:rint our header
call:header​
Pause
::Load up our menu selections
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo. %%B %%C
callrintstatus
set choice=
echo.&set /p choice=Please make a selection or hit ENTER to exit: ||GOTO:EOF
echo.&call:menu_%choice%
GOTO:menuLOOP​
I get the pause just after the header, it's waiting for any key press (see capture1)
but I put the pause here:
:menuLOOP
::Lets check our current device status
call:check_status
:rint our header
call:header
::Load up our menu selections
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo. %%B %%C​
Pause
callrintstatus
set choice=
echo.&set /p choice=Please make a selection or hit ENTER to exit: ||GOTO:EOF
echo.&call:menu_%choice%
GOTO:menuLOOP​
The command prompt disappear again.
Below the debuglog corresponding to that last execution.
Note that the folder path are the same
Cleaning Up...
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\framework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\newframework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\resources.arsc
The system cannot find the file specified.
'adb.exe devices 2> nul' is not recognized as an internal or external command,
operable program or batch file.
'adb.exe shell idme ? 2> nul | find /I "bootmode"' is not recognized as an internal or external command,
operable program or batch file.
*****************************************************************
* Stunt's Wallpaper Fix v2.05 *
*****************************************************************
* Notice a bug or unsafe portion of the script I've missed? *
* PM me(stunts513) on the xda forums! *
*****************************************************************
* Credit goes to pjeby and JulianPaoloThiry *
*****************************************************************
'"findstr /b /c:":menu_" "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\RunMe.bat""' is not recognized as an internal or external command,
operable program or batch file.
ADB Status: Online
Please make a selection or hit ENTER to exit:​
note: Don't take care of the smili. it seems that ": p" without space beetween is remplace by it.

reno45 said:
if I run the RunMe.bat without a pause inside the code, the command prompt disapear.
I put a pause here:
:menuLOOP
::Lets check our current device status
call:check_status
:rint our header
call:header​
Pause
::Load up our menu selections
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo. %%B %%C
callrintstatus
set choice=
echo.&set /p choice=Please make a selection or hit ENTER to exit: ||GOTO:EOF
echo.&call:menu_%choice%
GOTO:menuLOOP​
I get the pause just after the header, it's waiting for any key press (see capture1)
but I put the pause here:
:menuLOOP
::Lets check our current device status
call:check_status
:rint our header
call:header
::Load up our menu selections
for /f "tokens=1,2,* delims=_ " %%A in ('"findstr /b /c:":menu_" "%~f0""') do echo. %%B %%C​
Pause
callrintstatus
set choice=
echo.&set /p choice=Please make a selection or hit ENTER to exit: ||GOTO:EOF
echo.&call:menu_%choice%
GOTO:menuLOOP​
The command prompt disappear again.
Below the debuglog corresponding to that last execution.
Note that the folder path are the same
Cleaning Up...
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\framework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\newframework-res.apk
Could Not Find C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\resources.arsc
The system cannot find the file specified.
'adb.exe devices 2> nul' is not recognized as an internal or external command,
operable program or batch file.
'adb.exe shell idme ? 2> nul | find /I "bootmode"' is not recognized as an internal or external command,
operable program or batch file.
*****************************************************************
* Stunt's Wallpaper Fix v2.05 *
*****************************************************************
* Notice a bug or unsafe portion of the script I've missed? *
* PM me(stunts513) on the xda forums! *
*****************************************************************
* Credit goes to pjeby and JulianPaoloThiry *
*****************************************************************
'"findstr /b /c:":menu_" "C:\Users\reno\Downloads\Stunts_Wallpaper_Fix_v2.05\Stunts Wallpaper Fix\RunMe.bat""' is not recognized as an internal or external command,
operable program or batch file.
ADB Status: Online
Please make a selection or hit ENTER to exit:​
The space in the path, making them different is created when I submit my post. The path are exactly the same in the debuglog (see capture2)
note: Don't take care of the smili. it seems that ": p" without space beetween is remplace by it.
Click to expand...
Click to collapse
thanks for the support.

Related

ADB Help

Before anyone drops a "use the search function first", I hope you provide a link because I have scoured over 200 posts trying to find the answer to this question and its either not there, or EXTREMELY well hidden.
So...ADB worked fine for me on Windows 7 x64, untill I had to uninstall and reinstall some drivers when helping a buddy root his g1.
Now, ADB doesn't work. Whenever I try to run an adb command, even just to list devices, I get this error:
Code:
* daemon not running. starting it now *
CreateProcess failure, error 2
* failed to start daemon *
error: cannot connect to daemon
I have scoured Google, and I haven't found a single post that is android related (there are similair errors on android forums, just not this one) and am sorrily stumped. If anyone can help, I'd be ever so grateful.
This definitely sounds driver related although I'm not sure how you can "roll back" drivers in 7. I've heard that 7 pretty much keeps every driver you've ever used around and for whatever reason it's using an older ADB driver. I'd put money on me being wrong though.
if you are using a 1.5 image, use the drivers from the 1.5 SDK. If you are still on the RC builds, use the drivers in the 1.0 SDK.
win32 error code 2 means: 2 The system cannot find the file specified. ERROR_FILE_NOT_FOUND
and from the source code this is after a call to CreateProcess() and the file name is given by GetModuleFileName(), so it seems that the latter failed in a strange way.
What's the full path to your adb.exe?
billc.cn said:
win32 error code 2 means: 2 The system cannot find the file specified. ERROR_FILE_NOT_FOUND
and from the source code this is after a call to CreateProcess() and the file name is given by GetModuleFileName(), so it seems that the latter failed in a strange way.
What's the full path to your adb.exe?
Click to expand...
Click to collapse
D:\G1\android\tools\adb.exe
No spaces or odd characters. Like I said this worked fine for a month or so before I started ****ing with the drivers. I havent moved anything, my PATH and CLASSPATH are pointed correctly to the right directory. I also have a copy of adb in my /system32 directory (along with we .dll file it needs) so I can run it from wherever at a cmd prompt.
it might have something to do with wow64 messing the path up (it may rewrite system32 to syswow64). try launching the program under D:\G1\android\tools\ path. even if GetModuleFileName() failed, system should still be able to find adb.exe if you're under that path. also check file permissions and antivirus...
you can also try the command "adb fork-server server" in the path that contains adb. (you'll have to leave that console open)

How do I pull built in ringtones off a rom

im using baked goods v1.1 and it includes kspec theme with "master you have a message" notification. when i flash 5.0.5.3 with kspec lite 1.17 it doesnt include this notification. how can i pull this off the old rom and insert into the new one?
thanks
They are in /system/media/audio/notificantions/
Or the same folder structure from the zip and extract it.
when I try and ./adb pull /system/media/audio/notifications/doink.ogg i get the message "-bash: /adb: No such file or directory"
however i have done a listing in shell and know that the file is definitely there, and I have the correct path ??
Why cant I pull this from the phone??
Because either you don't have Android SDK Tools installed on your Linux, or they're not in the path and you're not in the tools' directory. Your Linux doesn't recognize "adb" command.
Or do you mean that you see "adb" file in the current directory, and it still doesn't run? Check for spelling errors, try to use adb without preceding "./".
Have you tried exploring the rom on you sd card with Astro? I have done this several times and just copy/paste the ringtones, notifications or alarms to the appropriate folders in the installed rom.
make sure your in the android sdk directory...
if you are linux it should look something like this
Android-sdk-linux_86>tools then you do the adb command
./adb pull /system/media/audio/notifcations/Ring.ogg (drag a folder or destination in terminal) then hit enter
for windows it should look lik this
android-sdk-windows>tools
adb pull /syste/media/audio/notifications (drag a folder in cmd prompt) then hit enter

[Q] i can't seem to get this batch file to work just right..

ok i'm writing a batch file that i've saved to my usb...the intent is so that when it is run it automatically copies a simple batch file with just "cmd" to the desktop then runs it....essentially a directory change without using cd
for some unknown reason i can't do a simple cd c:\this\directory\desktop from a command prompt thats run from the flash drive. also when its originally open, it is opened with G:\my_usb\commands, from this command prompt if i start, or call the .bat on the desktop it still runs from the USB location rather than the desktop location....if i open it via mouse clicking it opens from the desktop directory
so what does my batch file need to look like in order to run a file on the usb but change the directory to the desktop?
the files look like this:
copy cmdd.bat c:\users\tiwey\desktop
start C:\users\tiwey\desktop\cmdd.bat
and:
cmd
very simple files but i've tried varitions such as
copy cmdd.bat c:\users\tiwey\desktop
cd c:\users\tiwey\desktop
start C:\users\tiwey\desktop\cmdd.bat
no luck or:
copy cmdd.bat c:\users\tiwey\desktop
cd c:\users\tiwey\desktop
call C:\users\tiwey\desktop\cmdd.bat
but alas nothing works...any help?
forget all that....i can' believed i typed all that out just to realize i never tried cd /d c:\

[GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies

ADB:-
Android Debug Bridge
Very useful program made itself by Google for Programmers and developers. Its based on command line and basically communicates with your Android to respond to certain commands. There is vast amount of knowledge about adb but its most useful commands limit to getting:-
Logcat:-
A real time log of what is happening in background of our devices. It is really useful for developers to see which component has malfunctioned and helps to narrow down their search for what failed and what needs to be fixed. Several times users are asked to give logcats of their devices which are giving errors. We will go in detail that how to get logcats in every and easiest way possible.
App Installation and Management:-
adb proves really handy if you want to install apks directly from your PC or want to batch install or delete them.
Shell Execution:-
You must have heard of Terminal Emulator. It is an app for android to execute shell commands(linux commands) which are basically present as applets in /system/bin, /system/sbin or /system/xbin(in our case) folders. A very imporant applet called busybox is installed there mainly used for execution of basic commands during root browsing or ROM installation. Many times updater script of ROMs use busybox commands to install it. Well, these commands can be initiated from your device too but they can be initiated from adb also making it easy for programmers.
Pushing and Pulling:-
Most used commands of adb. adb makes it a piece of cake for new device developers to get an ideo of structure and basic knowledge of devices by pulling command. We can pull out i.e copy any files or folders from our devices to our PC, even the root directories without rooting the devices. It help rooters and ROM chefs of new devices to get an idea and implement their mods on them. Pushing is also very useful command. It copies your files and folders from PC to your device. Very useful in pushing some /system apps and other things
Remounting and setting permissions
Basic commands:-
Of-course basic commands such as rebooting and rebooting in recovery mode and download mode are supported.
Others:-
There are several other features of adb such as fastboot, aapt, etc
Setting up ADB
Pre Requirements:-
PC(This is a windows guide, if asked I will add linux and mac guide later)
Java Runtime environment or Java Developing kit
Your Device Drivers
An Android Device
USB Debugging MUST be turned ON in the device for ADB to see it & Developer options is hidden in Android 4.2 and
above, Hitting Build number 10 times in
About Phone/Tablet reveals the menu (Thanks lilHermit for reminding me to add it)
Assuming you all these ready and working properly, we continue
If you are having trouble completing Pre-Requisites, there are several guides featuring them too
Start
1. First Download Android SDK. Roughly about 70 MB
2. There may be any compressed zip file or exe file
If zip file, then extract it to C:\android-sdk
If exe file then double click on it and install it in C:\ Drive(or any other drive you want)
3. Now to get adb and other tools, you need to download 'Platform Tools'
To download them, go to the android-sdk folder and double click on SDK Manager
It will ask you which package to download? However, it is your choice which package to Download, but here, we will only talk about platform
Tools. So, simply tick on Platform Tools and click on install. Once you have done it. Go to the platform-tools folder in the directory where you installed android-sdk. You will find several files there like adb, fastboot, aapt, etc
4. Now, you can backup the whole folder of android-sdk to any external storage that will make you not download package
again if you want to. You can have it placed in any computer and run it as it does not require registry to work
5. Now, you are just one step away from using adb. Next step is SKIPPING SETTING ENVIRONMENT VARIABLE (If you however want to set environment variables. Click on Show Content)
We can easily append the sdk platform-tools and tools folder to your systems environmental path variable directly from command line(cmd) by simply issuing one command and performing a system reboot:
Code:
[COLOR=Black]SETX PATH "%PATH%;[/COLOR][COLOR=Indigo]SDK_Install_Path[/COLOR][COLOR=Black]\platform-tools;[/COLOR][COLOR=Indigo]SDK_Install_Path[/COLOR][COLOR=Black]\android-sdk-windows\tools" -m[/COLOR]
Just replace the "SDK_Install_Path" in the above with the proper path of your SDK installation. Example: C:\android-sdk-windows
(Thanks to WugFresh for telling me :victory
Many guides on internet say that it is to be done for making it easy for users and if you have some basic knowledge of Command Prompt,
you will know that to execute any application with command prompt, you first need to change the directory to the one where application is
placed. And to skip changing the directories every time you open CMD, you need to put that application is environment variable. However, we will not do so.
6. Type cmd in the search bar. Copy cmd.exe from there. Go to the directory where you have installed android-sdk. Go to platform-tools folder. Paste cmd there, right click on it and in the settings, select Run as Administrator.
7. You are done. Now what to do in it?
ADB Commands
Type adb in command prompt. And several commands will show up on your screen. It is very difficult to analyse these all commands, so we will only talk about most used and important commands
Connect your device via USB cable
And open the CMD in platform-tools folder(Make a shortcut of it on desktop). And type the suitable commands
Code:
adb devices
Will show the list of devices attached to the PC andtheir serial numbers. If this shows up correctly on your PC, then it means that everything is fine for continuing.
Logcat
Code:
adb logcat
It will display the real time log of your device
Best time to do it is when your device boots up
Now, many users ask me how to copy the logcat and upload it from CMD
There are several methods:-
1. Right click on the Title Bar of Command Prompt. Hover the cursor over edit and select mark. Select all the things you want to copy and then click enter. All the things will be copied to clipboard.
2. This is the correct way of getting logcat saved.
Code:
adb logcat > logcat.txt
This command will create a logcat.txt document in platform-tools folder with the complete logcat of the device. Ofcourse you can type any name instead of logcat.txt
3. I prefer taking logcat this way as it neatly compiles logs of different time
Code:
adb logcat -v long > logcat.txt
This is a very nice way to get logcat.
Installing Apps
Code:
adb install %PATH OF APK%
This will install an app on your Android
For example, if my app AreeB.apk is in G:\ drive (G:\AreeB.apk)
Then I will type
Code:
adb install G:\AreeB.apk
Be sure your apk is not in a folder that has space in its name, else the command will break at space bar.
For eg:-
G:\Program Files\AreeB.apk
Note:
If you have spaces in path of apk, you can execute the command without breakage if you include the path inside quotes. (Thanks to etcman)
Eg:-
Code:
adb install "G:\Program Files\AreeB.apk"
Mounting
However, I never found any problem in tweaking with system files with adb, but some users said that they couldn't do it, so the problem was that their system partition was mounted as Read Only(R/O)
So, it is necessary now to tell how to mount system partition as Read Write(R/W)
Code:
adb remount
It is easiest way to do so, if it does not work then
There is another method that we will discuss in ADB Shell commands section
Pushing and Pulling
For pushing,
Type
Code:
adb push %PATH TO BE PUSHED% %PATH WHERE TO BE PUSHED%
Suppose I have an app named SystemUI.apk(PATH = G:\SystemUI.apk) which I want to push in /system/app/ on my android(or in other words, install an app as a system app). Then I would type
Code:
adb push G:\SystemUI.apk /system/app/
More examples
G:\Dance.txt file to be pushed in Dance folder in sdcard
Code:
adb push G:\Dance.txt /sdcard/Dance/
OR
Code:
adb push G:\Dance.txt /mnt/sdcard/Dance/
G:\Movies folder to be transferred in SDCARD in Videos Folder
Code:
adb push G:\Movies /sdcard/Videos/
G:\system\framework\framework-res.apk to be pushed in /system/framework/
Code:
adb push G:\system\framework\framework-res.apk /system/framework/
For pulling,
push command replaces with pull and paths are swapped​
Code:
adb pull %PATH TO BE PULLED FROM% %PATH TO PLACE PULLED FILE%
Example,
All system apps are to be pulled to G:\ROM\system\app
Code:
adb pull /system/app G:\ROM\system\app\
build.prop to be extracted to desktop
Code:
adb pull /system/build.prop C:\Users\Areeb\Desktop\
However, if a folder is in platform-tools folder, you don't need to type full path
Suppose if I type
Code:
adb pull /system/ system
Then a folder named system will be created inside platform-tools with all the files in system in it
If a file is in platform-tools folder, then also no need to type full path
For example,
There is an app name DeskClock.apk in this folder then, to push it to /system/app, type
Code:
adb push DeskClock.apk /system/app/
ADB Shell Commands
This mode of adb allows you to execute linux shell commands from your PC
These commands can aldo be executed through the mobile using Terminal Emulator
To initiate shell mode
Type
Code:
adb shell
You will get an prompt like this
sh-3.2#
Now you are in shell mode
adb commands won't work here and a new set of commands will work here. But we will only go in a little detail here.
Assuming you are in adb shell mode, I will only type commands that will work on shell. Note:- These commands won't work if you type them alone on cmd. But, these command will directly work on your mobile's Terminal Emulator
As these commands can also work on mobile, I am going to tell you a way of taking logcat on mobile
Type
Code:
logcat
You will see log of your device
To save this
Type
Code:
logcat > /sdcard/log.txt
A file named log.txt will be generated in sdcard
Uninstalling Applications
Code:
cd /data/app
This will change the directory to /data/app
Code:
ls
This will show the list of files in there
Suppose, there is an app named com.opera.browser (Opera Mobile) you want to uninstall it
Type
Code:
rm -r com.opera.browser
This will uninstall the app
Mounting Command:-
Code:
mount -o rw,remount /dev/block/mtdblock3 /system
Miscellanous commands:-
su: Initiates root request
du: Shows file foldrs and size
date: Shows todays date
ls: Shows list of directory
cd: Changes working directory
rm: Removes the file
logcat: Displays logcat
mount: Mounts the partition
busybox: Busybox Applets
Credits
Google: For Android and several searchings
Samsung: For Galaxy Ace s5830I
paxChristos for amazing logcat guide
Broadcom: For their Open Sourceness
XDA Forums : For the precious knowledge
Reserved
Reserved Once More
Last One
Reserve the guide
install full rom
how to install a full rom from adb?
Pretty sure it's impossible. Sorry.
Sent from my E15i using XDA Premium App
Perfect Guide to use ADB Commands..
It is very clear and perfect guide to use ADB commands.. I tested this all and works fine..
You can use apks to do logcats from the phone too, I use catlog.
About Broadcom being open sourced made me laugh hahaha.
open source broadcomm, i see what you did there .
Updated OP
Hey, I have downloaded adb a week ago. I did everything like your tutorial and more but adb doesn't see my device. I already have USB Debugging on and have the USB Drivers, but it doesn't work. This is what I get (Screenshot)
Android-fany said:
Hey, I have downloaded adb a week ago. I did everything like your tutorial and more but adb doesn't see my device. I already have USB Debugging on and have the USB Drivers, but it doesn't work. This is what I get (Screenshot)
Click to expand...
Click to collapse
Probably because of bad drivers
Can you use any other software with your mob
Because when I had this problem, reinstalling drivers fixed it.
iamareebjamal said:
Probably because of bad drivers
Can you use any other software with your mob
Because when I had this problem, reinstalling drivers fixed it.
Click to expand...
Click to collapse
I already reinstalled it like 5 times. Still doesn't work.
Android-fany said:
I already reinstalled it like 5 times. Still doesn't work.
Click to expand...
Click to collapse
Which Windows?
Which ROM?
iamareebjamal said:
Which Windows?
Which ROM?
Click to expand...
Click to collapse
Windows Vista
Stock Rom + Interactive Kernel (If the kernel is important too)
Android-fany said:
Windows Vista
Stock Rom + Interactive Kernel (If the kernel is important too)
Click to expand...
Click to collapse
Ah Vista
That old Nemesis
Frankly telling you bro, Vista sucks big time
I unistalled it as soon as I found out that Android kitchen won't work on it
Sorry bro
I don't know much about Vista
Install 7 or 8
AW: [GUIDE][ADB]Easiest How to use adb, logcat, etc for noobs and newbies
iamareebjamal said:
Ah Vista
That old Nemesis
Frankly telling you bro, Vista sucks big time
I unistalled it as soon as I found out that Android kitchen won't work on it
Sorry bro
I don't know much about Vista
Install 7 or 8
Click to expand...
Click to collapse
I can't install Windows 7/8 because it is not my computer.
But Android Kitchen and the other tools works. Just not adb.
Tapatalked by s5830i
Android-fany said:
I can't install Windows 7/8 because it is not my computer.
But Android Kitchen and the other tools works. Just not adb.
Tapatalked by s5830i
Click to expand...
Click to collapse
Very strange
Download My Phone Explorer and check if its working!!
Its just 2mb-6mb

A pure C implementation of 'cuber' using OpenSSL's BigNum library

In case anybody cares, here's a pure C reimplementation of 'cuber.py'
(my own earlier reimplementation of @vortox's signature.py).
This is what I'm using in my '1-Click' bootloader unlock VM...
See 'grep ^gcc' for "build instructions".
Hack, you can probably build this for ARM and run it right on your very HDX tablet... (-;
UPDATE (JanuaryFebruary 2017):
OK; so, @zivimo had built this for ARM, but people still haven't noticed.
I repacked his binary from a .tar.gz to a .zip archive and decided to spell out the instructions for use.
Perhaps, this helps... With the right bootloader in place, and adb/fastboot installed (and working),
the unlock is as easy as follows...
Download and extract unlock.zip (SHA256: e40e3010f8eccfa9cbd1e73eecac30cf799099d183de23b2d256fc3407f143f6e5db0b8d82c8fd2a25a22b0a598014d22a2ec33cef27a8d4b65a36acde08f27a)
to the same directory that holds the adb and fastboot executables (unless you have added them to your PATH)
Click on get_code.bat in the extracted folder
-- optional (but commonly required) step(s) --
fix root (roll back, if you need to), flash vulnerable bootloader
[you'll definitely need to perform at least some of these if the last step fails]
Click on unlock.bat in the extracted folder
The archive also includes .sh variants of the .bat files for convenience.
You could also just click to show the hidden section and cut&paste... (-;
Code:
[STRIKE]unzip cuber.zip[/STRIKE]
adb push cuber /data/local/tmp/
adb shell chmod 0755 /data/local/tmp/cuber
adb shell 'id=$(cat /sys/class/block/mmcblk0/device/{manfid,serial}); echo "$id"; echo 0x${id:6:2}${id:11:8} | /data/local/tmp/cuber > /sdcard/unlock.code'
adb pull /sdcard/unlock.code
adb shell rm /sdcard/unlock.code /data/local/tmp/cuber
adb reboot-bootloader
fastboot -i 0x1949 flash unlock unlock.code
NOTE: download and extract the attached 'cuberunlock.zip' and run the above commands
in the directory where 'cuber' got extracted to.
Nice job! Originally I wanted to use OpenSSL BigNum too, but I hadn't enough time and Python was easier to use
hey,
made a static compile with an arm debian (jessie). seemed the easiest solution to me. compile command:
Code:
# gcc -fPIE -static cuber.c -o cuber -lssl -lcrypto
# strip cuber
# ldd cuber
not a dynamic executable
# ./cuber
Usage: cuber [RSA-bytes] < data > sig
seems to work. arm(!) binary attached.
ok draxie, you pointed me here but something seems to be missing. i downloaded unlock.zip, put the files in my adb directory. when i run get_code.bat, it pushes cuber to the kindle in the right directory, changes permissions (dont see any errors there) but then stops saying the system can't find the specified path. Whats funny is i used es file explorer to check the paths in the script, and they are there so not sure where the hang up is.
chin_bone said:
ok draxie, you pointed me here but something seems to be missing. i downloaded unlock.zip, put the files in my adb directory. when i run get_code.bat, it pushes cuber to the kindle in the right directory, changes permissions (dont see any errors there) but then stops saying the system can't find the specified path. Whats funny is i used es file explorer to check the paths in the script, and they are there so not sure where the hang up is.
Click to expand...
Click to collapse
Did you check all three paths?
/data/local/tmp
/sdcard
/sys/class/block/mmcblk0
The 2nd one _may_ be problematic if you're on SafeStrap.
I don't know why. I'm yet to install that on one of my test
devices to investigate. (Or, was that the 1st... )
The 0 in the 3rd one may actually be a 1 on some systems.
I have a few extra lines in my VM script to work around
that, I can easily add that here as well, if that turns out
to be the issue.
BUT, to try and troubleshoot: how far does the script get?
If it didn't complain with the permissions, the 1st path is probably OK.
Does it print your manfid/serial?
If so, mmcblkX would be right as well.
Any chance that you're on SafeStrap?
Can you push/pull to/from /sdcard?
- - - - -
On a second thought: I've only ever tested this on Linux.
String quoting on Windows may work differently, and could *royally* mess up how that more complex command is interpreted.
I'll test tomorrow; it's like 20 past 1am here. I need to get some sleep.
In the meantime, as a workaround, you could just hard-code your manfid/serial, and replace this line:
Code:
adb shell 'id=$(cat /sys/class/block/mmcblk0/device/{manfid,serial}); echo "$id"; echo 0x${id:6:2}${id:11:8} | /data/local/tmp/cuber > /sdcard/unlock.code'
by the decidedly much simpler:
Code:
adb shell 'echo 0xmmssssssss | /data/local/tmp/cuber > /sdcard/unlock.code'
draxie said:
Did you check all three paths?
/data/local/tmp
/sdcard
/sys/class/block/mmcblk0
The 2nd one _may_ be problematic if you're on SafeStrap.
I don't know why. I'm yet to install that on one of my test
devices to investigate. (Or, was that the 1st... )
The 0 in the 3rd one may actually be a 1 on some systems.
I have a few extra lines in my VM script to work around
that, I can easily add that here as well, if that turns out
to be the issue.
BUT, to try and troubleshoot: how far does the script get?
If it didn't complain with the permissions, the 1st path is probably OK.
Does it print your manfid/serial?
If so, mmcblkX would be right as well.
Any chance that you're on SafeStrap?
Can you push/pull to/from /sdcard?
- - - - -
On a second thought: I've only ever tested this on Linux.
String quoting on Windows may work differently, and could *royally* mess up how that more complex command is interpreted.
I'll test tomorrow; it's like 20 past 1am here. I need to get some sleep.
Click to expand...
Click to collapse
It's all good draxie, i figured out what i was doing wrong with the other procedure, that damn STEP 2, once i did it, everything fell into place. Bootloader unlocked and now just trying to figure out which rom to try first. Thanks again, you guys are great and i know how valuable everyones time is. :good:
I keep hitting road blocks, I am rooted and on Fire OS 4.5.5.2 I click get code a screen flashes up then I click Unlock and my Kindle boots to the Grey Kindle screen with Fastboot underneath and nothing else happens. Same happens when I copy and past the code into ADB. What step am I failing at? Thanks for the help!
pdanforth said:
I keep hitting road blocks, I am rooted and on Fire OS 4.5.5.2 I click get code a screen flashes up then I click Unlock and my Kindle boots to the Grey Kindle screen with Fastboot underneath and nothing else happens. Same happens when I copy and past the code into ADB. What step am I failing at? Thanks for the help!
Click to expand...
Click to collapse
@draxie - I have no experience with this tool; python/gmpy2 works reliably for me. Sorry to pull you in ...
Davey126 said:
@draxie - I have no experience with this tool; python/gmpy2 works reliably for me. Sorry to pull you in ...
Click to expand...
Click to collapse
I am up and running now, unlocked and running kk-fire-nexus-rom-thor-20161017. Play store is also up and running.
pdanforth said:
I am up and running now, unlocked and running kk-fire-nexus-rom-thor-20161017. Play store is also up and running.
Click to expand...
Click to collapse
Did you end up using some other method, or did these scripts work for you in the end?
Either way, others may find useful if you could share whatever worked for you. (-;
Unfortunately, I still haven't had a chance to test these scripts in Windows;
so, I couldn't answer your first call for help in a good way. If there's something
wrong and there's enough interest, I'll be happy to fix it as soon as I can.
draxie said:
Did you end up using some other method, or did these scripts work for you in the end?
Either way, others may find useful if you could share whatever worked for you. (-;
Unfortunately, I still haven't had a chance to test these scripts in Windows;
so, I couldn't answer your first call for help in a good way. If there's something
wrong and there's enough interest, I'll be happy to fix it as soon as I can.
Click to expand...
Click to collapse
@stangri did my unlock file and I used this thread to unlock https://forum.xda-developers.com/kindle-fire-hdx/general/thor-unlocking-bootloader-firmware-t3463982
I had trouble making the Unlock file, once that was done and some help from other users I am now up and running!

Categories

Resources