A true anomaly - Need help installing rom - Wing, P4350 General

For weeks I've been struggling trying to install a pdaviet rom with touch flo version 12, (or even the touch it rom). I really need some direction and guidance on upgrading/installing a different rom (HERALD_WM6.0_4.17.07.12). I'm following the steps, but keep hitting a brick wall. I restored the official wm6 rom from htc, I installed and ran the asergs cab, rebooted, put in flight mode, ran 1_upgrade_rom.bat while synced as "guest" and this happens (indicated below). Any help from anyone will be greatly appreciated. I keep getting this message. I have an unlocked, yet branded HTC, in Florida, USA. I'm just trying to figure out what am I doing wrong so i can make it right. But what's happening is beyond me and really need some help. I'm at the point of tossing this this out the window or paying someone to install this rom for me. This is an issue I haven't seen posted here or anywhere else, and hope to elicit some insightful feedback and help from and all.
************************************************** *********************
* *
* HTC Herald Upgrade *
* *
* Total process may take about 6-15 minutes depending on CPU speed. *
* *
************************************************** *********************
Press any key to continue . . .
Start Time: 20:49:49.87
Initializing'cecopy' is not recognized as an internal or external command,
operable program or batch file.
.'cecopy' is not recognized as an internal or external command,
operable program or batch file.
.'cecopy' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'cerun.exe' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'cerun.exe' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'cerun.exe' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.'cecopy' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
*
'cecopy' is not recognized as an internal or external command,
operable program or batch file.
'sleep4' is not recognized as an internal or external command,
operable program or batch file.
'cerun.exe' is not recognized as an internal or external command,
operable program or batch file.
.'sleep4' is not recognized as an internal or external command,
operable program or batch file.
.*
Writing the new AKU OS ROM.'sleep4' is not recognized as an internal or external
command,
operable program or batch file.
.*
'pdocwrite.exe' is not recognized as an internal or external command,
operable program or batch file.
End Time: 20:49:50.15
************************************************** ***********
* *
* Congratulations! (If there are no error messsages) *
* You have Finished the Upgrade *
* *
* Please Hard Reset your Herald *
* *
************************************************** ***********
'Playsound.exe' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .__________________
__________________
Still unable to reflash my unbranded HTC P4350. Life goes on, lol.
Forward Message

I'm not an expert at installing phone ROMs, but if you are getting these messages on your PC when running the batch file, I would feel pretty confident that you have a path problem - in other words, Windows doesn't know where to look for the commands it is finding in the batch file.
Could you open the batch file in Notepad, and copy / paste the contents here?
This should be a relatively easy fix.
Good Luck!

qwkynuf said:
I'm not an expert at installing phone ROMs, but if you are getting these messages on your PC when running the batch file, I would feel pretty confident that you have a path problem - in other words, Windows doesn't know where to look for the commands it is finding in the batch file.
Could you open the batch file in Notepad, and copy / paste the contents here?
This should be a relatively easy fix.
Good Luck!
Click to expand...
Click to collapse
@echo off
cls
ECHO ***********************************************************************
ECHO * *
ECHO * HTC Herald Upgrade *
ECHO * *
ECHO * Total process may take about 6-15 minutes depending on CPU speed. *
ECHO * *
ECHO ***********************************************************************
pause
ECHO Start Time: %TIME%
@set /P dummy="Initializing"<NUL
cecopy EnableRapi.cab dev:\ >NUL
@set /P dummy="."<NUL
cecopy Cert_SPCS.cab dev:\ >NUL
@set /P dummy="."<NUL
cecopy extunlock.exe dev:\ >NUL
sleep4
@set /P dummy="."<NUL
cerun.exe -b CE:\Windows\wceload.exe \Cert_SPCS.cab /noui >NUL
sleep4
@set /P dummy="."<NUL
sleep4
@set /P dummy="."<NUL
cerun.exe -b CE:\Windows\wceload.exe \EnableRapi.cab /noui >NUL
sleep4
@set /P dummy="."<NUL
sleep4
@set /P dummy="."<NUL
cerun.exe -b CE:\extunlock.exe /noui >NUL
sleep4
@set /P dummy="."<NUL
cecopy clattrib.exe dev:\ >NUL
sleep4
ECHO *
cecopy roattrib.exe dev:\ >NUL
sleep4
cerun.exe -b CE:\ROattrib.exe /noui >NUL
@set /P dummy="."<NUL
sleep4
@set /P dummy="."<NUL
ECHO *
@set /P dummy="Writing the new AKU OS ROM"<NUL
@set /P dummy="."<NUL
sleep4
@set /P dummy="."<NUL
ECHO *
rem pdocwrite.exe OS.nb 0 0x3900000
pdocwrite.exe OS.nb
ECHO End Time: %TIME%
ECHO *************************************************************
ECHO * *
ECHO * Congratulations! (If there are no error messsages) *
ECHO * You have Finished the Upgrade *
ECHO * *
ECHO * Please Hard Reset your Herald *
ECHO * *
ECHO *************************************************************
Playsound.exe
Pause

Thanks, I just found a copy that I had stashed and took a look at it. When you unzipped the original downloaded file, did you put everything in the same folder? the commands in this batch file assume that the executable files either reside in the same working directory as the batch file, or that Windows knows where to find them:
cecopy EnableRapi.cab dev:\ >NUL
Notice that there is no path prior to the exectuable name (cecopy)
The error messages in your first post are what Windows says when it can't find an executable file.
Here is what I would try:
1) unzip downloaded zip file to an easy to find directory (i.e. c:\wing)
2) open a command window (Start > Run > cmd)
3) navigate to the new working directory ( cd \wing)
4) verify that you are in the correct folder (dir) - in my case, the unzip process had created a subfolder, so I had to: (cd "wing oem with touchflo") - note that the quote marks are required if there are spaces in the folder name.
5) run dir again - you should see a list of 20 or so files
6) just to make sure that you are in the right place, type cecopy and press enter - you should see a "not enough arguments" error - not the 'cecopy' is not recognized as an internal or external command, operable program or batch file that you had earlier.
7) if everything is good up until here, type the name of the batch file and hit Enter - hopefully, you will get different (better) results.
Good Luck

qwkynuf said:
Thanks, I just found a copy that I had stashed and took a look at it. When you unzipped the original downloaded file, did you put everything in the same folder? the commands in this batch file assume that the executable files either reside in the same working directory as the batch file, or that Windows knows where to find them:
cecopy EnableRapi.cab dev:\ >NUL
Notice that there is no path prior to the exectuable name (cecopy)
The error messages in your first post are what Windows says when it can't find an executable file.
Here is what I would try:
1) unzip downloaded zip file to an easy to find directory (i.e. c:\wing)
2) open a command window (Start > Run > cmd)
3) navigate to the new working directory ( cd \wing)
4) verify that you are in the correct folder (dir) - in my case, the unzip process had created a subfolder, so I had to: (cd "wing oem with touchflo") - note that the quote marks are required if there are spaces in the folder name.
5) run dir again - you should see a list of 20 or so files
6) just to make sure that you are in the right place, type cecopy and press enter - you should see a "not enough arguments" error - not the 'cecopy' is not recognized as an internal or external command, operable program or batch file that you had earlier.
7) if everything is good up until here, type the name of the batch file and hit Enter - hopefully, you will get different (better) results.
Good Luck
Click to expand...
Click to collapse
You Lied. You said you are not an expert at installing roms. Well, according to me, you are lol. I did exactly what you mentioned and it worked, PHEW. I can not express enough gratitude. I learn more and more every day. Thanks to people like you and others who have gave me feedback. I'm, as we speak, installing pocketcm, a tweaking app I forgot the name of but it's good, battery status, and the pagepool thingy - maybe 4mb. Any suggestions. Thanks again

Lucky for me, I'm an old DOS guy - so i recognized the error messages.
realistically, there are probably 3 or 4 other ways to solve that problem, but the example I gave was probably the simiplest...
Have fun with it!

herald upgrading..
why dont u guys try any ruu utility rather than this dos prompt work, it ay damage to ur phone.. u can loose os...

Related

[Q] Error: adb is not recogzined as an internal or external command

Error: adb is not recogzined as an internal or external command, operable program or batch file???
i successfully installed the android sdk 08 and still got this message.
Has winxp, tmobile GT
I had this same exact problem, but I was just able to get it working. First, this website is helped a lot:
http://www.londatiga.net/it/how-to-use-android-adb-command-line-tool/
Also, make sure you download the Java SDK package from the link given on that website.
Second, when the website says to "Run Windows command line tool (cmd) and go to D:\android-sdk-windows\tool" open command prompt and enter this code:
cd (enter the path to where the android SDK was installed), for example:
cd C:\android\android-sdk-windows\platform-tools
Notice how I entered "platform-tools" instead of just "tools" because this is the folder where the adb file is download with the android SDK. After you do this, you should then be able to apply adb codes (make sure the screen on your tab is on because you will have to accept superuser prompts, therefore your tab needs to be rooted).
Every time you open command prompt, you will have to enter:
cd thentheplacewheretheandroidSDKisinstalled
as stated above before you are able to enter adb commands.
Hope this helps!
@caveman999 is giving good advice. Working in the command window is weird to those who did not use old pc-dos environment.
You have to be in the tools directory or you have to edit your PATH in windows so you can use adb from any prompt.
thnaks for both of you guys i installed the java jdk and also specified the path in environment variables but still error message!
I could only get adb to work error-free when I was in the same directory as adb.exe program. Just change directories cd..(enter) etc until you are in that directory.
tabing said:
Error: adb is not recogzined as an internal or external command, operable program or batch file???
i successfully installed the android sdk 08 and still got this message.
Click to expand...
Click to collapse
I had the same error, until I downloaded and placed the .adb files accordingly.
Source: http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/
"UPDATE: If it says adb not found or something similar, download the ADB files and extract them into the Tools folder of the SDK (they were taken out by Google in the R08 version for some reason and need to be put back)."
download adb files from here: http://www.megaupload.com/?d=RTEY0Q97
The important thing is to put the files really under the "tools" folder.
When you check out above Source I am sure your problem will be solved
Thank you all problem solved
tabing said:
Thank you all problem solved
Click to expand...
Click to collapse
Glad to here it. Why not hit a few thanks buttons?!

[Q] Can't open 'update.zip'. ?!

Tried all what i found on foeum.
need your help.
decided to go to CM7 and stuck on firs stage. cant even chek md5sum
it keeps saying: can't open 'update.zip': No such file or directory
Code:
C:\AndroidSDK\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
$ su
su
# cd sdcard
cd sdcard
# md5sum update.zip
md5sum update.zip
md5sum: can't open 'update.zip': No such file or directory
the same is with updaterecovery.img
Files are there. Extrensions are ok.
Also cant copy log and lastlog to cache, as it is also saying, that there are no such files
Would appriciate your help. thnx
You must unmount kindle from your computer (right click on kindle disk in "my computer" and unmount/unplug)
later run again console prompt and try again
kisman said:
You must unmount kindle from your computer (right click on kindle disk in "my computer" and unmount/unplug)
later run again console prompt and try again
Click to expand...
Click to collapse
i am unmounting it. somehoe it worked.
now second question:
cp /sdcard/log /cache/recovery/
it is not copying unless i write
cp /sdcard/log.txt /cache/recovery/
is it ok ?
i am on CM7 now.
i discovered that previousli log and last log were eithout TXT
and now files are with .txt
so i just found old ones and copird them too
thnx
Some browsers like firefox(windows) automaticly add txt extention(i don't know why).
If you have .txt extention you must rename files to
last_log
log

[Q] Mac OSX - ADB - List of devices attached Blank

I am running on a Mac (OSX Lion) and have installed android-sdk-macosx.
I am trying to connect to a Kindle Fire 6.2.2
However, this is as far as I can get:
Code:
bash-3.2# ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
bash-3.2#
As you can see, no devices show up.
I have tried switching cables, USB ports, reboot the device and my machine... banging my head against the wall.
Nothing works.
I have read about 29 pages of posts through this forum, and Googled it.
No dice.
Any suggestions?
would not use the sdk at all - if you use the mac/linux version of kfu you save a lot of time and space - you don't need to use kfu if you don't like to - but all commands you'll ever need are in the tools folder of kfu - it also includes drivers and setup scripts - maybe give it a try:
http://forum.xda-developers.com/showpost.php?p=21369040&postcount=653
mkdir ~/.android
echo 0x1949 >> ~/.android/adb_usb.ini
ADB needs this entry to see the Kindle Fire no matter what OS you're on.
right - there is also a installation script for this included in the pack - install.sh if i remember right
took the advice above and it's still not working for me. i have the same exact problem. when i try to run install_drivers.sh i get:
cp: drivers/adb_usb.ini: No such file or directory
Done!
logout
[Process completed]
When I run KFU i get:
/Users/donaldclark/kfu/run.sh: line 84: seq: command not found
please help
as far as i know (don't own a mac) you have to call the commands with
./ from terminal window - eg ./run.sh
I also got the same error message at line 84 running the install script in OSX 10.6.8
-E
it's from eratosthene - give him a pm - i'm shure he can help you
http://forum.xda-developers.com/member.php?u=1616763
Try remove the usb driver from your device and re-install gain.
I use Kindle_Fire_Utility_MacLinux_0.9.2 3 with adb.mac
and its located right inside my root directory (not under users) step before.
I went to the files and I opened file called
install_drivers.sh
I did deleted everything behind -p and just dragged
the adb_usb.ini (its located in drivers) into that install_drivers.sh script and I hit save.
thats how it looks like
mkdir -p /Kindle_Fire_Utility_MacLinux_0.9.2 3/drivers/adb_usb.ini/adb_usb.ini
Than I just run adb.mac and all is operational
my kindle was rooted with burittoroot2
If you need those files send me a pm I have them in my dropbox.
somboonr said:
Try remove the usb driver from your device and re-install gain.
Click to expand...
Click to collapse
there is no uninstalling drivers like in windows.
line 84 SOLUTION
Incarnate609 said:
took the advice above and it's still not working for me. i have the same exact problem. when i try to run install_drivers.sh i get:
cp: drivers/adb_usb.ini: No such file or directory
Done!
logout
[Process completed]
When I run KFU i get:
/Users/donaldclark/kfu/run.sh: line 84: seq: command not found
please help
Click to expand...
Click to collapse
Regarding the "run.sh: line 84: seq: command not found", I found out that the "seq" command is not recognized with MAC OS... so I did a search and replace, replacing "seq" with "jot -". Now it works.
Reference: Search google for seq and mac
What worked for me.
I had the same problem after updated the sdk on my MacBook Mac OSX 10.6.8
cd to the tools directory (where android program is located)
run:
./android update usb
./android update adb
then edit the ~/.android/adb_usb.ini file and add 0x1949 as the last line (your previous adb_usb.ini file is overwritten by the above commands).

[GUIDE] Customizing ROMs for your needs.

At the request of others, I have decided to write this guide pertaining to ROM customization. I found that in most of the current custom Jelly Bean ROMs for the TF101, that the GPS configuration has been changed, at least compared to the stock Asus ICS ROMs for the TF101 and the stock Asus Jelly Bean ROM for the TF300T, and they are using modified user / group and permissions settings. They all say that it is because those items have changed in Jelly Bean. They are also using a custom /etc/gps.conf file. The problem is that I, along with several others, aren't seeing very good GPS response and some claim not to see any. The ones that do see something, see that the first initialization takes forever and then is likely to not hold a fix, only seeing a few satellites. I made some changes in the ramdisk and /etc/gps.conf file and tested with a few of the Jelly Bean ROMs for the TF101 and found that settings matching the stock Asus settings performed quite well and was asked to share the process that I used. While it would be easier probably to just post the modded kernels for others to reflash, I'll give it a go at explaining what I've done.
1) This guide will require either a working native Linux install or can probably be used with a virtual machine Linux install. I'm using Ubuntu 12.04-x86_64 LTS as Ubuntu is usually used in most of the guides I've found. You may be able to make things work with other Linux flavors, but YMMV. I'm going to assume, at least, a basic knowledge of Linux file systems and the ability to copy and paste to a terminal and follow instructions.
2) You may need to install the Android SDK and at least one platform in order to get a working "adb" command, which will be needed. You may be able to get the "adb" binary from other sources that will work and "adb" will require some setup in udev rules to allow your normal user to access the tab with it. I'm going to assume that you have all of these things in place and working and that "adb" is in your path. If not, then Google is your friend.
3) For good measure, it would help and definitely won't hurt anything to have some build environment files in place. In a terminal, copy and paste the following:
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
Let that install and when it is finished, copy and paste the following:
Code:
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
4) Now we need to grab dsixda's Android Kitchen, which is where some of the magic can happen. Go here to read up on how to use it and to find the download link. While the TF101 isn't specifically supported, there are a lot of things that we can still use it for. Just don't try to build a ROM and flash it with this before you have read dsixda's thread thoroughly or you may wind up with a brick. I'm only going to describe things that I've done and tested and that I know will work. For ease of this guide, I'm going to assume that you read the instructions there and that you unzip the downloaded file to "/home/'yourname'/android/kitchen/".
http://forum.xda-developers.com/showthread.php?t=633246
5) Now we need to build the blob tools used to pack and unpack the .blob files. Here we will download the source code for these tools and build them on the local machine. Go here:
https://github.com/AndroidRoot/BlobTools
6) Download the .zip file and extract to "/home/'yourname'/blob_tools/", where 'yourname' is your home directory name. Then, in a terminal, type "cd ~/blob_tools", without the quotes. Then type "make". When this is finished, type "mkdir ~/bin", if it doesn't already exist, and then type "cp ./blobpack ~/bin/;cp ./blobunpack ~/bin/". Now we need to make sure that "~/bin/" is in our PATH. Type "cat ~/.profile" and make sure that there are lines matching the below there:
Code:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
If not, use an editor like gedit, to add them just before the last line which should say "fi". For basic instructions on the blob tools, see here:
http://forum.xda-developers.com/showthread.php?t=1068548
That should be all for the tools and setup. Now reboot your PC to Linux, for good measure.
I'm going to use as an example, the changes I made for the GPS permissions and settings. Anything else will be up to your own personal study and research and experimentation. I assume no responsibility if you do something mentioned here or not or if you should brick your device.
1) Download the CWM flashable custom ROM of your choice. I'm not going to deal with Asus stock ROMs here because there are extra steps to do to look into those completely. Extract the ROM to a directory under your home directory. You will have to create it, such as "Team_EOS3" or whatever. I'm going to use the graphical file manager Nautilus and the graphical text editor gedit to work with files and directories and to edit files. When using Nautilus be sure to go to the "View" menu and select "Show hidden files". Some work will also be done in a terminal. I use Gnome terminal.
2) For example, I have a folder "K900_AOKP_JB", where I extracted K900's ROM. So if I look at that in Nautilus, I see 2 folders, "META-INF' and "system" and 2 files, "boot.blob" and "boot.img". Most of the custom roms will not have the boot.img file, only the *.blob file. The blob file and the boot.img file should be the same thing. Each contains the compressed kernel image and the initial ramdisk.
3) From a terminal, type, for example, "cd ~/K900_AOKP_JB". Then type, "blobunpack ./boot.blob", substituting the appropriate names for your particular files. In Nautilus, you will see that 1 more file was created, in my case, "boot.blob.LNX". Right click and copy this file to your Kitchen WORKING_DIRECTORY which you should have created from following the kitchen instructions. For me it is "~/android/kitchen /WORKING_091312_142859/", where "~" is shorthand for "/home/'yourname'", i.e. your personal home directory. Right click and delete or move to trash the boot.img file that is there already. Right click the file you just copied, i.e. "boot.blob.LNX" and rename it to "boot.img". Upper and lower case matters, so pay attention.
4) From a terminal, type "cd ~/android/kitchen". Then type "./menu". Choose option "0", then choose option "20", then choose option "w". Follow any instructions that come up. These actions will create a new directory, "~/android/kitchen/BOOT-EXTRACTED/", which is where the kitchen just extracted your renamed blob file (boot.img). Inside, you will see a "boot.img-ramdisk" folder, which contains the ramdisk files and a "zImage" file, which is the compressed kernel.
5) Inside the ramdisk folder, we are going to edit only the "init.ventana.rc" file to change some GPS settings. Open the file with gedit and scroll down to the #GPS section. Change it to read the following:
Code:
# GPS
mkdir /data/gps
chown system system /data/gps
chmod 770 /data/gps
chown root system /dev/ttyHS1
chmod 0664 /dev/ttyHS1
Scroll down to the #GPS init section and change it to read the following:
Code:
# GPS init
write /sys/class/gpio/export 203
write /sys/class/gpio/gpio203/value 0
write /sys/class/gpio/gpio203/direction out
chown root system /sys/class/gpio/gpio203/value
chmod 0664 /sys/class/gpio/gpio203/value
Scroll down to the # Start GPS daemon section and change it to read the following:
Code:
# Start GPS daemon
on boot
service gps-daemon /system/bin/glgps -c /system/etc/gps/gpsconfig.xml
user root
group root
class late_start
Save the file. Right click and delete "init.ventana.rc~", which will only show up if you selected to "Show hidden files" in the "View" menu. In Nautilus move back to your kitchen WORKING directory.
6) In the terminal that should still be running the kitchen menu, choose option "b" to rebuild the boot.img. You can now exit out of the kitchen menu. Back in Nautilus, right click and rename the "boot.img" file to "boot.blob.LNX" or whatever your original extracted blob file was called. Right click and copy to the folder where your ROM was extracted. Choose to replace the original file if asked.
7) In a terminal, type "cd ~/K900_AOKP_JB", substituting "K900_AOKP_JB" with whatever your extracted ROM folder is called. Then type "blobpack ./boot.blob LNX ./boot.blob.LNX", substituting your file names for "boot.blob" and "boot.blob.LNX".
8) In Nautilus, in the folder where your ROM was extracted, double click the "system" folder, then double click the "etc" folder. Then double click the "gps.conf" file. It should open up in gedit, if you were using that before, if not then choose to display it. Change it's contents to read the following:
Code:
#
# IMPORTANT:
# this file is only used by NetworkTimeUpdateService.java
# DO NOT make any GPS related settings here.
#
NTP_SERVER=xtra1.gpsonextra.net
Save and close the "gps.conf" file.
9) In Nautilus, in the folder where your ROM was extracted, left click on the "META-INF", "system" folders and the *.blob and boot.img file, if present, while holding down CTRL key, to highlight all 3 or 4 items. Right click on 1 of the highlighted items and choose "Compress". Rename the file if desired, especially if you have the original zip in that folder by the same name and want to preserve it, and then click "Create". The new zip file, with your custom name, will be created in the same folder after a few seconds. In my case, I chose to name it "K900_AOKP_JB-test.zip".
10) You now have created your own customized version of someone else's ROM, modified for your needs or experimentation. Now it's time to push it to your device. You can use Dropbox, if desired to do this, but the easier way is to use adb. I'm going to assume that you have a working Custom Recovery, preferably one that can read both internal sdcard and external MicroSD and that you have adb setup and working.
11) Plug your charging cable into the computer first and then plug the other end into the TF101.
12) In a terminal, type "cd ~/K900_AOKP_JB", substituting "K900_AOKP_JB" with the folder name where you extracted your ROM and where the new zip file resides. Type "adb devices" and after a second or two, you should see something similar to the following:
Code:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
03806245421f9417 device
If you get something looking like that, then adb is working.
13) In the same terminal, type "ls", which will list all the files and folders in your extracted ROM directory (or whatever your current directory is). If your recovery can read only the internal sdcard or both, then you can type "adb push ./K900_AOKP_JB-test.zip /sdcard/Download/", substituting "K900_AOKP_JB-test.zip" with whatever you named your zip file. After a few minutes you should get a confirmation that the transfer completed and can verify that it did with a file manager on the device.
14) If your recovery only reads from the external MicroSD card, then type "adb shell", then type "ls". You will get a list of all files and folders in the root directory of your device's file system. If you are running ICS or older, then you should see a "Removable" directory. If you are running one of the custom JB ROMs, then you may not have the "Removable" folder, but most likely a "storage" folder. For ICS or older, your external MicroSD should be located at "/Removable/MicroSD/". In the latter case, it should be located at "/storage/sdcard1/". In any case, once you have verified where the external card is mounted, then type "exit". Now type either "adb push ./K900_AOKP_JB-test.zip /Removable/MicroSD/" or "adb push ./K900_AOKP_JB-test.zip /storage/sdcard1/", depending on your results from adb shell. After a few minutes you should get a confirmation that the transfer completed and your new zip should now be on the root directory of your external MicroSD card.
15) Now you should be able to reboot to your recovery and flash the zip you created just like you would flash any ROM. Reboot and enjoy, from this example, working as intended GPS.

Unhide/Show System/hidden USB Files + Delete Shortcuts - win7,8

Previously my PC was affected by a virus that affected Removable Media (USB Flash) files. The original files became hidden (system attribute) and Shortcuts were created against that files.
I made a small Batch Program to unhide/show USB files + delete shortcuts. (See Attachment)
It executes a simple command
Code:
attrib -H -S /S /D /L
to show the hidden files.
And after that it deletes all the shortcuts by executing
Code:
del /f /s *.lnk
Additionally it will also delete the unwanted autorun.inf and *.vbs files.
Copy the file to the respective USB Drive and run it from there.
It works fine on a clean PC but if this virus exists in your computer, this program do its job but the virus will again hide them.
Sometimes it's the Microsoft Windows Based Script Host (wscript.exe), stop it using your task manager and Disable it in the Startup.
Thanks
Bahar Ali Durrani - Vice President,
Society of IT, GPGC Charsadda.
For Windows XP
For Windows XP use the following command:
Code:
attrib -H -S /S /D
Try Krojam Soft Files Search program to find all hidden files and folders.

Categories

Resources