cant update rom... - HTC Startrek

i cant get regedit onto the phone, wont let me extraxt teh zip file on the phone or copy the exe file directly to it...
can someone please help... want to try the new cingular rom...

Can you or can you not access your phone memory (or card) using Active Sync to read/write data?
(Otherwise I am not sure what do you mean...)

dont have a card... so yes i can use explorer to dump files on...
put the zip file into my documents but it wont extract... says there is no application related to it...

What the zip file contains?
Rom installer has to be launched from Windows on your desktop...

i need to edit the registry to change the rom...

so simply copy the unzipped exe file (registry editor) and run it from your smartphone...

moneytoo said:
so simply copy the unzipped exe file (registry editor) and run it from your smartphone...
Click to expand...
Click to collapse
wont let me...
cant paste it...

Are you dragging and dropping or using copy/paste?
I just checked my phone and could drag and drop both the exe and compressed file to the mydocuments folder on the phone without a problem.
Where did you get the copy of regedit from?

awesome just dragged and dropped... worked perfectly thanks...

No worries, glad you're back on track.

now trying to do this bit...
Run Command Prompt, go to your temp folder and then into a subfolder named "build". Run pdocread without arguments.
6. Note the value of "uniqueid" produced. It will be something like: 00 00 00 00 12 03 02 14 3b 07 1b b2 04 05 07 54
7. Run pdocread again with these arguments: pdocread -n 1 0x000000 0x10000 -b 0x4000 original-bdk1.nb This will create a "original-bdk1.nb" file in the build folder (where the pdocread is located).
8. Upload this file and value of uniqueid to http://www.spv-developers.com/strtrkCID It will open a new page after few seconds. Go to the bottom of the page and click the link "Download patched BDK1"
and getting -
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Scotty>cd\temp
C:\temp>\build
'\build' is not recognized as an internal or external command,
operable program or batch file.
C:\temp>cd\temp\build
C:\temp\build>pdocread
Copying C:\temp\build\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
C:\temp\build>pdocread
Copying C:\temp\build\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
C:\temp\build>pdocread
Copying C:\temp\build\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
C:\temp\build>pdocread
Copying C:\temp\build\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
C:\temp\build>pdocread -n 1 0x000000 0x10000 -b 0x4000 original-bdk1.nb
Copying C:\temp\build\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
C:\temp\build>

after about 20 resets of phone and computer... have it all working...
woot...

Disconnect your phone, reboot your PC/laptop, restart your phone by turning it off, waiting 5-10 seconds and turning is back on again and try again.
It's important to follow the instructions to the letter, esp. when it comes to restarts.

Related

Downgrading from WM2003SE

Hi,
I recently upgraded to WM2003SE, this introduced some errors om my Q-Tek 2020 which is why i want to downgrade to the original image.
I downloaded 'HI_TMNL_17200_190_11700_Ship.exe' from the T-Mobile (NL) site, but when trying to execute it it shows "Country ID error" and stops.
I searched the forum and found a post the said i could use the no_id patch. After reading the instructions i found out that this patch needs the extracted files, but i only have the .exe i downloaded.
Can someone give me some advice?
Cheers,
-peter
Run the .exe file and press next ONCE. (this extracts the files)
open file explorer on your pc and navigate to C:\Documents and Settings\YOUR NAME\Local Settings\Temp
in this directory there should be a temp directory (mine was called pftA4.tmp)
the ROM images are located in this directory.
once you cancel the .exe program the files are deleted, so copy them to a new directory to save them.
Good luck.
Thanks, i managed to get the files!
I've been reading a lot on the forum lately, and in particular this post:
http://forum.xda-developers.com/viewtopic.php?t=12101
When trying to get the xor keys with the command 'xda2nbftool.exe -t' it only shows the xor keys for "ms_.nbf" and "Radio_.nbf".
I'm missing they key for "nk.nbf" while the file does exist and is in the current directory.
I tried this command on two rom's and both did not gave me the nk.nbf xor key.
G:\peter\Officele T-Mobile image>xda2nbftool.exe -t
xda2nbftool -x ms_.nbf ms_.nba 0x20040305
xda2nbftool -x Radio_.nbf Radio_.nba 0x20040306
Another "push" in the right direction would be appriciated
-P
search the ftp
i do beleave that god toenailed has already decompressed that files
check in the ftp
Thanks rictec, but i looked all over the ftp today but didnt find it.
Nevertheless, the xda2nbftool.exe should be able to decompress my files right? Do you know why i'm not getting a xor key for that file (nk.nbf)?
Cheers,
-P
Could anyone please help me out?
I'm still in the dark about why i can't get the key from the nk.nbf file using xda2nfbtool.exe
Help would really be appriciated!
-peter

[Question] Cooking a personal Rom

Is it possible for me to cook a personal ROM? I have tried alot of ROMs here but ever since HTC's new official ROM was out (asia) , I find it really good for me. One thing i hate from the ROM compared to cooked roms are that everything is disorganised. Everything is in 1 program file. In cooked Roms, the chefs have already taken the liberty to assign each app to their appropriate folders (apps,connection,multimedia, etc)
I would like to do the same , however it takes alot of time for me to do so but I can manage that. What i really want to do is, after organising the apps to their respected folders, and installing all of my needed softwares on the phone, how do i make a complete backup of the ROM, and then save it on my computer perhaps. So then i could flash my phone with the backup ROM and the next time i were to flash my phone, everything would be there (my apps, my organised folder).
Will it be possible (i'm sure it's possible, i just need the right software / app to do it)
You're going to need a Kitchen to cook your own ROM; assuming you have a Raphael device, have a look at this thread:
Useful Links Thread
http://forum.xda-developers.com/showthread.php?t=439783
Many folks use Da_G's Kitchen ... but there are other great Chefs that have made their Kitchens avalaible.
HTH,
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
arvin2212 said:
Thank you for the link hilaireg. It's very helpful.
After reading the available tutorials, i have a question. Most of the kitchens are using pre-existing ROMS.
I would like to use a new official HTC ROM to start with. "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship"
I noticed that all the tutorial require a .nb file which they say comes in the package. However, when i extracted the .exe file , a few files were extracted alongside a .nbh file. But there is no .nb file. What do i do?
Click to expand...
Click to collapse
You need to have NBHextract Tool it will be in include in kitchen...me too trying to cook on same build with no results. It's no easy try try that's it...
krish_nank, Is this your first time building a ROM?
If so, we're on the same boat...
I tried using NBHextract Tool but when i run the .exe a pop up cmd window comes out and then dissappears. I added the program manually in cmd, and here is what it says , but it doesn't do anything although i have place my .nbh file in the same folder with it.
"
C:\Users\xda>C:\Users\xda\NBHextract.exe
=== NBHextract v1.0
=== Extract contents from HTC NBH files
=== (c)2007 xda-developers.com
=== by: pof & TheBlasphemer based on itsme perl scripts
Usage: C:\Users\xda\NBHextract.exe <nbh file> [-v]
C:\Users\xda>
"
arvin2212 said:
organising the apps to their respected folders, and installing all of my needed softwares on the phone
Click to expand...
Click to collapse
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
nnkumar73 said:
If you just want to organize your existing app then all you have to do is go to this folder,
\\\Windows\Start Menu
This folder has all the icons for the programs. So now you can arrange/ rearrange icons, create folder and move the links to the respective folders as you see fit. Total Commander can be used for this.
If you want a way to install apps after installing a new ROM, you can use UC you can read about it here
http://forum.xda-developers.com/showthread.php?t=366337
But if you just want to build custom ROM then the easiest kitchen is Da G's. If you want a fully loaded kitchen try At0mAng - Advance Kitchen - V2
Click to expand...
Click to collapse
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
okay, my bad. Then I am sure you have seen the ROM reconstruct thread. Hope that thread helps you.
Have a look at the first three posts in the following thread:
[TUT] Sous-Chef's Guide to Da_G's Simple Kitchen
http://forum.xda-developers.com/showthread.php?t=490787
Essentially, once you unpack the "-HTC Touch Pro-MRII-RUU_Raphael_hTC_Asia_WWE_5.07.707.2_Radio_Signed_R aphael_52.58.25.30_1.11.25.01_Ship" executable, you run a script that performs the actions required to prepare the NBH file for custom cooking.
That should get you started.
HTH,
krish_nank said:
Both Da_g's & AtomAng kitchen or based on some OS build we ...we want to dump a ROM & Rebuild it on our own way we want.......
Click to expand...
Click to collapse
With my kitchen do this...
Backup the OEM and SYS folder...
If you have the NBH file already place it in the BaseROM folder
If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Once NBH is in the baserom folder start my kitchen
Select 2, 1, 1 and let it do its thing
When extraction is completed and you are back at main menu select option 8, move dumped OEM/SYS from Temp
When that is done select option 6 Copy Extracted ROM XIP from Temp
When that is done your new dumped ROM is ready to be built.
Delete or do not select any duplicate packages
Clean out the new OEM/SYS folders. There is a lot of junk in there that can be removed, welcome folder, do a search in the OEM/SYS folders for *.3gp and remove the welcome movie and blah blah blah...
If you take the time to look at the folder structure of the OEM and SYS folder you should be able to figure it out pretty quickly.
If you need further help you may ask in my kitchen thread.
Hope this is a start for you guys...
nnkumar73, Thank you for your suggestion but i already known about manually doing it from the start menu folder. However it's not practical as , i would have to do it everytime i reflash my phone. If there is a new rom available, and i were to try it and somehow wanted to go back with my older ROM, i would have to do all the moving etc all again.
hilaireg once again, thank you for the link..
At0mAng, Thank you very much as well. I will follow your steps and see how it goes. I appreciate your effort of posting the right steps for it. Thank you.
DELETED.......................
Just an addition to previous posts
arvin2212 said:
C:\Users\xda>C:\Users\xda\NBHextract.exe
Click to expand...
Click to collapse
I can see u missed out the command : nbhextract ruu_signed.nbh
arvin2212 said:
3.If you do not have the NBH file then run the EXE downloaded from HTC, let it go all the way to the first install screen and dont do anything yet, go to your temp folder on the computer, dig around the folders if there are many, you will see ruu_signed.NBH, copy and paste into the BaseROM folder of kitchen.
Click to expand...
Click to collapse
The easiest way is to use any packer apps like winrar. u can extract the nbh directly. if u r using total commander will be a lot easier. just press ctrl+pg dn & u can extract the file instantly.
Thanks to everyone's help especially At0mAng,
I finally extracted the ROM. I can see aloto of files in SYS and OEM folder.
What i would like to know now is, how do i create folders (icons are not neccessary for the folders) so that i can group installed apps in them according to category? Example is, A multimedia, navigation and games folder is created and , my apps are stored in the folders according to their functions. Like GPS tool goes into navigation and so on..
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")ā€‹2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
eras2r said:
To simply copy files from \Windows to another directory, you can use an initflashfiles.txt in the OEM. Syntax is:
Directory("\Windows\Start Menu\Programs\Tools"):-File("Enable Proxy.lnk","\Windows\Enable Proxy.lnk")
If you are trying to just place Start Menu items in different folders, it's a bit more complicated. There are many places that this can happen.
1) In \OEM\OEM_Lang_0409\initflashfiles.dat
You can edit this file in Notepad if you remove the ReadOnly bit in Windows. Once you've edited it in Notepad and saved it, you need to re-open it in a Hex editor and delete the first 2 bytes "ff fe". Once you delete those first 2 bytes, save the file and reset the ReadOnly flag. In this file is where I define the Folders I want to use in my "Start Menu" folder like this:
; Start Menu contents
Directory("\Windows\Start Menu")ermDir("Programs")
Directory("\Windows\Start Menu")ermDir("Settings")
Directory("\Windows\Start Menu\Programs"):-Directory("Games")
Directory("\Windows\Start Menu\Programs"):-Directory("Navigation")
Directory("\Windows\Start Menu\Programs"):-Directory("Internet")
Directory("\Windows\Start Menu\Programs"):-Directory("Multimedia")
Directory("\Windows\Start Menu\Programs"):-Directory("Office")
Directory("\Windows\Start Menu\Programs"):-Directory("Phone")
Directory("\Windows\Start Menu\Programs"):-Directory("Tweaks")
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")ā€‹2) *.provxml files
You need to edit these files with a unicode editor. Personally I use EmEditor. You'll notice that in mose packages in \OEM and \SYS there is a _Lang_0409 dir that goes along with it. It's "usually" in this folder where you'll see a *.provxml file. If you open these in EmEditor you'll see that there are lots of file operations. You want to seach or the line containing the *.lnk. In that line you can set the patch of where you'd like the icon installed.
There may be other places that this happens as well, but that's just off the top of my head.
Good Luck!
-e
Click to expand...
Click to collapse
Somehow, i am not able to find this file , initflashfiles.dat in my OEM_Lang_0409 folder. :?
Do you have Windows Explorer setup to view all system/hidden files? (Tools->Folder Options-->View)
If using a kitchen that supports it (mine does for sure) you can create a new, blank text file in a package folder, initflashfiles.txt
it uses the same format eras2r posted above, but gets appended to initflashfiles.dat during the cooking process
in this manner you can have initflashfiles.dat changed on a per-package basis, it's also easier because you don't have to worry about the first 2 bytes etc.
e.g. \Packages\beer\initflashfiles.txt
When cooking rom check box next to package "beer"
now the contents of \Packages\beer\initflashfiles.txt get appended to initflashfiles.dat automatically during cooking, don't get applied if box is not checked
similarly this initflashfiles.txt can go in any folder in \OEM and \SYS as well
eras2r, yes , it has already been configured to show hidden files & folders
Da_G, i get what you mean, roughly. What you're saying basically is that i can manually create a txt file for initflashfiles and leave it in the packages folder?
Also i am not sure about the syntax that eras2r posted. I find it alittle well above my level of knowledge. Maybe someone can guide / explain to me regarding this?
Right right, an initflashfiles.txt can go in any subfolder under \OEM \SYS or \Packages
You can create the file with notepad, no need to worry about removing things with a hex editor or otherwise using anything other than notepad.
The syntax is as follows:
using this example to create a directory:
Code:
Directory("\Windows\Start Menu\Programs"):-Directory("Tools")
Directory("\Path\to\create\directory\in\goes\here"):-Directory("Name_Of_Directory_To_create_in_path") - essentially you're saying "Switch to the folder named \Path\to\create\directory\in\goes\here and create a new folder named Name_Of_Directory_To_create_in_path inside of it.
similar syntax to copy a file from one directory to another:
Code:
Directory("\Windows\Start Menu\Programs\Tools\"):-File("Fieldtest.lnk","\Windows\Fieldtest.lnk")
Directory("\Path\to\copy\file\in\goes\here"):-File("destination_file_name.ext","\source\path\to\filename.ext") - here you're saying "navigate to \Path\to\copy\file\in\goes\here, copy file from source \source\path\to\filename.ext, rename it to destination_file_name.ext when copying (you can use the same filename here if you don't want it renamed, renaming is useful for files that might be indexed by windows media player, or the windows help system, etc.
That should clear it up a bit, let me know if it doesnt

WM6 Kitchen ENG/GER for Hurricane (incl. cooked ROM)

Well, at least one is interested and dared to ask, so here it comes:
an old style batch file kitchen
that only deals with application add/remove
has a fixed XIP
and a fixed OS Version
and it cannot dump an existing ROM
If you want to port another OS Version you are on your own, no support in the kitchen, neither for SYS nor for XIP. So basically it is just an end-user "cook your meal" kitchen with fixed ingredients and not a whole chef cuisine.
The folder with all the files you need (and one ready cooked ROM if you want to try that first) is located at mediafire.
It has the same ingredients as my Tornado kitchen (which is based on that of NitroGenious). The OEM parts are picked from the ROMs that exist already and all of these are largely identical in that part. Some special treatment was done in these ROMs on the backlight and the battery driver. You may wish to find the differences yourself - I picked the backlight driver that best fits my needs. Some more changes to the Tornado Kitchen are (as far I remember):
The batch file handling is not caring any longer where you unpack the kitchen, it can work anywhere in the path.
replaced G'reloc (that was not regularly run) with WMreloc that now runs at each build on the dump folder, so you can basically do whatever you like also on the modules part, wmreloc will align the memory slots always in an optimal way.
The template (source) BINFS is now minimized and there are two flavors of it, one with LZX and another with XPR compression. Just copy either one over the 82040000.bin file. The used imgfsfromdump.exe could also take this from the commandline but I like copying files more than editing the batch file.
almost all parts dealing with WIFI have been removed, the ones that are left in the kitchen will do no harm.
Please also see my post on the shortcomings of the Hurricane compared to the Tornado when announcing the kitchen.
You may also want to learn some basics about Windows Mobile to arm yourself for what you intend, have a look at my Beginners Guide to Windows Mobile (prepare for cooking)
So what to do to get ready cooking?
SuperCID your device -> look in the Tornado Kitchen thread where the process of getting that done is explicitly described. Please take special care about backing up the files from that process! Skip that if you did it already.
Put the patched SPL 1.00.100 on the device. This will allow the BIN file to upload correctly later and it will enable your device to get charged from any USB charger. Skip that if you did it already.
Unpack the kitchen to any folder that you like. It should be a dedicated folder for just that purpose but it can be on any disk and at any place in the directory tree (not too deep to stay below the 255 char path limit, I suspect).
(you start from here for subsequent cooking) Run the batch "BuildOS-all-steps.bat" and follow the instructions that the batch file writes to the command window.
After building the ROM is done (XPR builds much faster than LZX but makes 20% bigger ROM files), you find the result in \Flash as OS.BIN
in \Flash you run as.exe and kill active sync (you may have to push the kill button twice)
connect your device in bootloader mode with UI = yes
run mtty and select the "USB" button
press enter to see the command prompt
enter "info 2" (no quotes)
You must read "HTC CuperCID" at the end of the information to continue (step 1. did that)
(you can skip that for subsequent cooking) Now you can load the OS.BIN to the device. Note that there is a handy feature in MTTY to save you from typing the whole path of the OS.BIN over and over again:
Push the "F" Button (3 from right)
enter "l" (no quotes) for the "download" command
enter the full path to the OS.BIN file in the "first time downloaded file name" field
leave the rest as is
Confirm
Push the "1" botton (second from right) and see the action start
You should see progress per loaded block of the BIN file until it is finished loading to RAM. It then takes as much time to load the RAM copy to the ROM onboard the device - this is the crucial part - be patient until the command prompt comes back.
Enter "ResetDevice"
Close the Terminal window in MTTY (Ctrl-F4 or Ctrl-W) - you can keep MTTY open - to avoid the USB polling for the no more connected device to eat all your CPU.
Wait for the device to start up. This will take some minutes - and if you activate the option "Startup and Shutdown Sounds + Animation" you should see the HTC Boot animation after ~30 seconds. Then you will notice that the screen turns white after some time, don't bother. With the red button you get the normal content back. It may happen during that time of first boot that you feel "locked" out of the device - just wait until the screen gets a little "dim" and press the red botton then.
After you passed the initial Welcome screens the device is ready to use. Reboot is very fast (40-50 seconds) and memory is plenty (35MB RAM).
Finally you may want to check out the German localization (100% for all settings and OS parts) or the nice home-screen that I have added.
Thanks to sniper304, a replacement for the ddi.dll is available in the shared folder at mediafire. Replace the content of "<your-kitchenpath>\WORK\OEM\OEMDrivers\ddi.dll" with the archive content. This removes the scrollbar quirk after a new cooking cycle.
reserved for even more future updates
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
sniper304 said:
Thank you!!!
P.S. Hello again!I have a problem with kitchen.
An error no file msvcr71.dll. I copied it from the internet but all the kitchen so as not working!
or
4 Make OS.nb
Very emergence \ OUT
and did'n make ROM.
Click to expand...
Click to collapse
You try to copy the files msvcr71.dll to Windows \ system32 direktoris and don't forget to install the Visiual Studio Redistributable Package 2008( requirment of windows to run C++ Programs) on your own computer
Thanks to all!!!Kitchen is working!!!Z have add russian language to my hurricane!!!!
Tobbbie THANKS!!!It's good!
I have not created a file OS.nb.
In order to create, I removed from BuildOS-all-steps.bat line
IF EXIST% kitchenpath% \ OUT (rd / s / q% kitchenpath% \ OUT)
And only then works!
Tobbbie THANKS!!!

[Q] Some General Questions Regarding the editing of android.policy.jar

hello everyone
I have updated to kennethpenn's 4.5.91 Gingerbread Beta 4 (must say, it is truly a phenomally put together build !)
I have also noticed that many of the mods that i had applied to 1.8.3 have not been updated for 4.5.91, so i decided to make the changes myself.
Now, I have a pretty decent knowledge of Unix-based operating systems ( I have used Red Hat Linux, Ubuntu, SUSe Linux, OpenBSD, FreeBSD, Solaris, and now OS X) however, I would like to expand my knowledge to include Android.
The first one I attempted to do myself was the Wake on Volume Keys mod.
This is a very simple change to the android.policy.jar file, as you all well know.
For this, I used Windows XP, simply for the fact that I have 7zip and PeaZip installed on it. However, I can do all of this on OS X as well. The file archiver applications I have on OS X are:
1. The Unarchiver
2. Keka
I am going to list my method of applying this edit, and i would ask that someone with solid knowledge on this subject give me their feedback and guidance.
---------------------------------------------------------
My Method of editing android.policy.jar
---------------------------------------------------------
1. Using Root Explorer, I made a copy of /system/framework on my External SD Card
2. Mounting the Phone for USB Mass Storage on Windows XP that I have running in VirtualBox on my Macbook Pro, I moved the copy of the /system/framework directory to my Desktop
3. I downloaded smali-1.2.6.jar and baksmali-1.2.6.jar from code.google.com/p/smali/
4. I placed both of these .jar files in the copy of the framework-edited directory that I created on my Desktop
5. I renamed smali-1.2.6.jar to smali.jar and baksmali-1.2.6.jar to baksmali.jar for simplicity's sake
6. I moved the android.policy.jar file to /framework-edited directory on my Desktop
7. Using 7zip (I also have PeaZip, but for this, I used 7zip, if you think I should use PeaZip, please tell me) I extracted the files from android.policy.jar to end up with classes.dex and META-INF. I then moved classes.dex to /framework-edited so it is in the same directory as smali.jar and baksmali.jar
8. In Command Prompt, I entered:
Code:
cd C:\Documents and Settings\Owner\Desktop\framework-edited
in order to be working from the proper location where my files are located
9. Now, having Command Prompt working in the proper location, I entered the following commands:
Code:
java -jar baksmali.jar -o classout/ classes.dex
to create a new directory within /framework-edited called /framework-edited/classout
10. I then opened the /classout directory, and navigated to /classout/com/android/internal/policy/impl/ and opened the file KeyguardViewMediator.smali with Notepad
11. I used [Ctrl] + [F] to locate the line:
private isWakeKeyWhenKeyguardShowing(I)Zā€‹
12. I then looked at the lines DIRECTLY below the above line, and following the Original Post on how to manually apply this modification, I removed lines:
0x18
0x19ā€‹
13. Upon removing these lines, I simply did a File -> Save As -> KeyguardViewMediator.smali and saved the file to my desktop
14. I [Cut] + [Pasted] the edited KeyguardViewMediator.smali file back to /classout/com/android/internal/policy/impl/ and replaced the original KeyguardViewMediator.smali file
15. With the edited KeyguardViewMediator.smali file in place, I went back to Command Prompt and entered the following commands:
Code:
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
To create a new file called new-classes.dex
16. Changing the name of new-classes.dex to classes.dex, I took the original META-INF file, and my newly created classes.dex files, and, using 7zip, created a new android.policy.zip archive
17. I renamed my newly created android.policy.zip to android.policy.jar, and transferred it to my External SD Card
18. Using Root Explorer, I navigated to /system/framework on my phone, and renamed android.policy.jar to 1122android.policy.jar.bac and [Copy] + [Pasted] my edited android.policy.jar to /system/framework
19. I then immediately powered off my phone, and rebooted into CWM Recovery, and cleared my Dalvik Cache, then rebooted the phone normally through CWM Recovery.
At this point, to my knowledge, I had successfully edited my android.policy.jar file and had manually added the Wake on Volume Keys modification, however, once the phone was fully booted and showing my lockscreen, I unlocked the phone as normal by sliding the slider to the right. As soon as the phone unlocked, I saw pop-ups for processes that had failed and were terminated. I'm not sure what the exact message the pop-ups had, but it was the normal pop-up message you get when a process force-closes. My only option was to click "Ok" so I clicked it, only to have another force-close pop-up.
Apparently, every single process on the phone had force-closed, BUT, the phone was waking when I press a volume key while the screen was off. I had no choice but to pull the battery out.
I decided to reboot into CWM Recovery and "install .zip from SD Card", Nottach's 1% Battery Mod / No Carrier Mod Uninstall Script
I installed Nottach's uninstall script because I hoped that it had an unmodified copy of android.policy.zip in it.
After installing the uninstall script, and rebooting the phone once again, I got to the lock screen, unlocked the phone, and found everything to be in perfect working order, just as before I edited anything,
But the Wake on Volume Keys mod was still applied!
So now, my questions / requests to all of you are:
1. Explain to me what I missed or did wrong that resulted in the force-closure of every single process on the phone prior to installing Nottach's Uninstall script
and
2. Educate me on the proper process that you developers use to apply small modifications such as this one to the android.policy.jar file, or any other related file on the phone for that matter.
My plan is now to change the color of the text on my lock screen (Clock, Date, and possibly Carrier) following this [Guide]
Any and all feedback is welcomed and greatly appreciated, as you will be helping me learn the beginnings of modding and developing
bump . . . . .
Perhaps this may help
http://forum.xda-developers.com/showthread.php?p=18226553

[Q] Problem with SDK Manager - nothing works...

(Windows 7 64-bit Home Premium)
So I've been playing around with LibGDX, and it's been really nice...so I go to export my app to android for the first time just to make sure everything's running smoothly so far...and I get an error at compile time:
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
So I Googled, and every solution to the problem I can find involves using the Android SDK Manager, or copying some files from one directory to another that I don't have in the first place. So I decide to go the SDK Manager route, except my SDK manager shows a command-line box for a second (no console output), then crashes.
So I Googled this, and I get nothing but people telling me to both mess with Android.bat and make sure I have the right environment variables set. So here I am, about an hour later, and I've got all my environment variables set that I could possibly need: JAVA_HOME points to my java sdk folder
Path points to both my JRE and my JDK binary folder, as well as C:\Windows\System32
ANDROID_SDK_HOME points to my Android SDK folder
ANDROID_SWT points to my android folder's tools\lib\x86-64 folder, which clearly has the swt.jar, but whenever I try running android.bat I still get:
'xcopy' is not recognized as an internal or external command, operable program or batch file (which should have been fixed when I added system32 to the path variable)
ERROR: SWT folder <my swt path> does not exist (even though it does)
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform (it does!)
edit: just completely uninstalled then redownloaded the sdk, same errors... :crying:

Categories

Resources