yashsingh1/xdaforums huggingface dataset:
[XPERIA X10 Android Development] zephyrix:
If you followed the root guide you can put it in the step 4 folder.

Then hit windows key + r and in the box type CMD

A console window comes up.

in the console window type cd <path.to.your.step.4.folder>

then go from there.
[XPERIA X10 Android Development] bcool15:
i did everything as mentioned but it dint ask me for permission wen installin busybox is it because i had it installed sometime before runnin this guide?

yea i knw im a noob after all
[XPERIA X10 Android Development] zephyrix:
yep.

if you check the superuser app it should already be there.
[XPERIA X10 Android Development] bcool15:
all i see in superuser app is titanium backup pro
[XPERIA X10 Android Development] zephyrix:
that's strange. does busybox report that it's installed?
[XPERIA X10 Android Development] bcool15:
nope it doesnt
[XPERIA X10 Android Development] unknown13x:
well i tried all this and now i lost my root. Did EXACTLY what's written. Anyway to reverse this and get my root back?
[XPERIA X10 Android Development] bcool15:
i think i lost mine too but to reactivate there is command or prolly i just messed up summmwhere n redid my whole root with v3 update
[XPERIA X10 Android Development] j4mm3r:
use "su" to get root access... allow when the Superuser Whitelist notification pops up.
[XPERIA X10 Android Development] fastalam420:
it worked for me....followed the steps, after i downloaded the busybox app i opened it and a box popped up "Superuser Request", it had discription of the busybox app and then asked whether to allow or deny the request....i then checked the superuser app and was able to see the busybox app in thr....
[XPERIA X10 Android Development] bcool15:
can anyone confirm if these steps were added in the new root method? please:)
[XPERIA X10 Android Development] gfgodoy:
I'd like to know that too, I mean, in 2v2 do we still need to do the whitelist thing?
[XPERIA X10 Android Development] th4r:
root in adb

I tried this on the last root (ROOT_F2v2) and I lost root in adb..

I still had regular root :confused:

I had to revert it back with "chmod 6777 /system/bin/sh" to get adb do admin task again.. (I use adb regularly)

Does anyone know how to secure sh and still have root in adb?

Regards.
[XPERIA X10 Android Development] Chillest:
adb shell su

And after superuser popup add "unknown application" to the whitelist.
[XPERIA X10 Android Development] th4r:
Yes that give me root in adb shell but adb is still running unprivileged.

I believe it's because we can't patch the bootloader yet, so we still have getprop ro.secure 1. :'(

I did a little script to toggle setuid on /system/bin/sh when I'm doing root stuff from adb :)

Sent from my rooted X10i
[XPERIA X10 Android Development] k1ckn1ck:
I have installed this to protect the system.

The only concern I have is i cannot run for example my cleaning script.

If i type into cmd ;

"adb shell su" it comes up with a # and freezes. If i type in

"adb shell<enter>

su" it works fine. and i can paste all the commands in line by line.

If i do either in a bat or cmd file it crashes. How do i run scripts as su
[XPERIA X10 Android Development] j4mm3r:
Here are the answers....

No they were not. The reason is that many of the rooting steps rely on a setuid "sh"

Yes

So what? The uid for the shell application launched after invoking "adb shell" is not going to match any of the installed applications anyways. The thing is that Superuser.apk installs a mechanism by which the user (human) can detect when an application is requesting root access. Based upon the nature of the application you may or may not want to grant root access. That is the whole point.

Oh yeah? I just use "su" whenever I want root access... and I didnt have to write any scripts to enable/disable it.

Then you shouldn't be rooting in the first place. Take my advice, lay off the rooting. It definitely doesn't have anything that will be of advantage to you.
[XPERIA X10 Android Development] dan-htc-touch:
easy now, it's a fair question, would be nice to be able to run cleaning scripts on a protected system. no need to be a prick

in answer to the question though, once the batch starts adb shell, it won't continue till that process ends :)

I did some googling for some comandline tools that might allow sending keystrokes to a process, but nothing easy appeared, looks like your only option is to use a linux friendly notepad to create some shell scripts you can execute from the sdcard. i.e. on device

su

chmod 755 /sdcard/myscript.sh

./sdcard/myscript.sh

easiest way to do scripts on a secured root :) IMO
[XPERIA X10 Android Development] k1ckn1ck:
Cheers Dan, your a star
[EVO 4G Q&A, Help & Troubleshooting] kraquen:
I can pair my phone up to my computer using bluetooth, but my computer won't see my phone as an option when i try to create a personal area network.

My computer sees my buddy's nexus one just fine and his works great for tethering via bluetooth..

anyone know what i'm doing wrong?
[Windows Mobile] djr83:
I'm trying to include a newer Google Maps and a few other applications and converted the .cab installers to EXT in osKitchen. They get included in the list in EXT Packages and I select all of them but still I cant find them when I have flashed my ROM to my device.

Am I supposed to do something more? :confused:
[Windows Mobile] WoZZeR999:
Double check that they are in the windows folder. All you should have to do is check the package.
[Windows Mobile] airxtreme:
If your ROM is not in english you have to edit the app.dat to use the correct start menu folder.
[Windows Mobile] kurniawan77:
look into or show us your buildlog...
[Windows Mobile] djr83:
Thanks! Havent tried the new rom yet but the paths in app.dat was wrong.

But I do have to change the path to the programs folder too, I guess?

When I check the path in file explorer it says \Program and in app.dat it says \Program Files.
[Windows Mobile] Laurentius26:
If you use cab 2 oem and oem 2 ext the app.dat is automatic created with the correct path.

So if you use a WWE package it will be 'Program files' and for the shortcut 'start menu'. If you use another language (Dutch for example) 'program files' has another name 'programma bestanden' and 'start menu' becomes 'startmenu' in Dutch.

So you need to correct that path according to the language you use. ;)

You can use initflashfiles.dat as an example for every language you use.
[Windows Mobile] djr83:
I'm using osKitchen Zero 1.31 beta1 and cab 2 oem doesnt seem to exist anymore. I think it was in my old kitchen, osKitchen 1.25 but I dont use that anymore.

One of my cabs is actually a today screen plugin. How do I choose what plugins which should be selected from start?
[Windows Mobile] djr83:
Hmm the program files gets into the correct folder and a link is created in the start menu, but the link doesnt start the program. I guess it's still pointing to the wrong path.

How do I fix this?
[Windows Mobile] airxtreme:
Everything is in the universal package converter now
[Windows Mobile] Farmer Ted:
Just edit the shortcut; total commander works well.
[Windows Mobile] djr83:
Cant I change that in the ROM? I dont want to have to change a lot after flashing.
[Windows Mobile] Laurentius26:
I did a quick search for you:

http://xdaforums.com/showthread.php?t=510806&highlight=cab2oem

Today items you enable/disabled like the sample of registry below.

1 is enabled and 0 is disabled.

[HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\HTC Sense]

"Enabled"=dword:1
[Windows Mobile] djr83:
Thanks! But the plugin doesnt even show up in plugin list when I pre-install it in the ROM. The plugin is TodayAgenda. Do I need to do something more when adding today screen plugins?
[Windows Mobile] Farmer Ted:
Just edit the shortcut and then swap the new one into your package for the bad one. Although this whole topic is confusing. Are you trying to install cabs during customization, or are you trying to make actual packages from cabs? If it's the former, then you'll need to edit the .cab file to fix the shortcuts (if they are the problem).
[Windows Mobile] djr83:
I want to be able to select which programs I want to include in the ROM. How it gets included doesnt matter (I think?).

What's the difference between installing them during customization and making packages?

I found the bad shortcuts now, thanks, so I guess that problem is solved now. But please tell me the difference between customization installing and packages. I want to do it the correct way :)
[Windows Mobile] Farmer Ted:
There are different ways to include apps into a rom. Installing a cab during customization isn't a whole lot different then just installing a cab normally. There's nothing really special about it, except that the cab file is stored in rom. This could be a good thing or a bad thing, depending on how you look at it. You don't get any of the benefits of cooking an app into rom when you use cab files.

Creating a package means extracting the files (and reg keys, if there are any) from the cab file and then cooking them directly into the rom. In many cases, you can re-locate the application directly into the \windows folder (from \program files), and this saves space and shortens the time for first boot. You may also be able to convert some of the files to modules, which can increase performance (mainly, the apps boot up faster), but it doesn't always work. Modules can also save a bit of ram by loading code into the page pool. As an example, you can create a package with TCPMP (core player) that loads all of the files directly into the rom. This is much better than having the files in their own folder in \program files\tcpmp, because you don't end up having duplicate files in \windows (if you use an app.dat to copy the files into the program file directory) or one big cab file sitting in \windows. It saves on storage. Also, some of the .dll's and the .exe can be made into modules.

On the other hand, some apps just don't work if the files aren't placed in the proper directory. I've had a bugger of a time getting the new resco keyboard to work properly. Most of the time, you can just move files and sub-folders from program files straight into \windows, but it doesn't work with resco keyboard. The bloody skin files have to be located in \program files\resco keyboard pro\skins (the same goes for the language and sound files). It's not a big deal, but I could save a bit of space if I could locate some of the files in \windows. I get these files into the program files directory by unzipping a zip file with a mortscript during customization. Zips are easier to edit than cabs, and install faster, so that's what I prefer to use. You also don't have to bother with uninstall info (I always seem to leave that crap in when I pack a cab, even though it's pretty much useless to me).

Customization is the step after the screen alignment. It's basically the time when you pretty up your rom, and put in the final touches so that when the phone is fully booted up, it's just the way you want it.

Your post is just kind of unclear. It sounds like you're just trying to install cabs during customization, but some people are telling you how to extract cabs to make EXT's. I'm not really sure what you're asking.
[Windows Mobile] djr83:
What I'm doing now is definitly makeing EXT's. But that doesnt mean I'm sure that it is what I want to do. I just want to include some programs in the ROM from the beginning and EXT's seems like a good way to go.

But if I want to install cabs during customization, how do I do that?
[Windows Mobile] Laurentius26:
You create an EXT:

Sample:

Yourpackage\

Yourpackage\files\your cab

And you add a line to config.txt so it will be autoinstalled during device setup.

A sample of that line:

CAB: \Windows\your_app.cab
[Windows Mobile] djr83:
Where should this config.txt be? Yourpackage\config.txt?

And can I add an app.reg to this EXT so I get some settings installed too? Will these settings be applied before or after the cab-install?
[Windows Mobile] Laurentius26:
You find the config.txt if you do a search in your kitchen. ;)

The usual location is Extended package in oem.

If you add a app.reg to the package it gets overwritten by the cab.

You need to edit the cab registry or make a extended package from the cab.
[Windows Mobile] djr83:
Ok, found it. So I need to change that manually every time I select or deselect a cab in EXT? Not too much work, but I like the easy approach with EXT packages that you only select or deselect whatever you want and start building the ROM.

Maybe I can include all cabs in config.txt but just not include the cab itself if I dont want it. Will that cause and error?
[Windows Mobile] Laurentius26:
Hmm I don't use a visual kitchen so I do that manual.

Never tried but if I'm not mistaking you can addtoconfig.txt in your EXT package.

If you leave the lines in config.txt without cooking in the package

it will create a error during device customisation yes.
[Windows Mobile] djr83:
addtoconfig.txt sounds interesting. I'll try that.

Now another problem, how do I add registry data in an existing cab? Do I have to extract all the files and recompile it with the registry data?
[Windows Mobile] djr83:
WinCE CAB Manager seems to do the job.
[Windows Mobile] Laurentius26:
That's what I'm using ;)
[Windows Mobile] djr83:
Just tested and the cabs doesnt get installed.

EXT Packages:

GoogleMaps

GoogleMaps\files

GoogleMaps\files\googlemaps.cab

GoogleMaps\addtoconfig.txt

In addtoconfig.txt:

CAB: \Windows\googlemaps.cab

Google Maps is not installed and googlemaps.cab is not i Windows dir.

In the cooking log it says:

[03:41:55] Copying the 'HTC Rhodium\Packages_Extra\Google Maps' EXT package...

What could be wrong? I'm using osKitchen Zero 1.31 beta 1.
[Windows Mobile] Laurentius26:
I think you forgot some underscores.

Like this:

'HTC_Rhodium\Packages_Extra\Google_Maps'

Underscores are very important in all packages and dirs you create.
[Windows Mobile] airxtreme:
The correct file name is add2config.txt
[Windows Mobile] djr83:
I see.

I see.

Gonna try that right away!
[Windows Mobile] djr83:
It didnt work :(

No program installed, no cab in Windows dir.
[Windows Mobile] Laurentius26:
Ok one more shot.

You writed you use this path in previous post:

I don't know the kitchen you are using but the dir 'Packages_Extra' you created yourself?

If so you need to modify the kitchen batch file to find that directorie.

You can open the .bat file with a text editor.

Edit; actualy better, you can rename the .bat to .txt, edit it and change back to .bat :rolleyes::)
[Windows Mobile] djr83:
Are you sure? When I converted the cabs to EXT they were also in Packages_Extra (which I have created myself) and they got installed (but with bad links etc) and in the log it says [09:18:01] Copying the 'HTC Rhodium\Packages_Extra\Google_Maps' EXT package... so I assume it's ok?
[Windows Mobile] Laurentius26:
yes I'm sure but like I said I don't know your kitchen and also not the tools you are using.

Can you upload the package you created so I can have a look?

Edit; btw your config.txt to please.
[Windows Mobile] djr83:
Wee! It actually worked. I just happened to flash the wrong ROM in my last test :o

I think all my problems are solved now, BIG THANKS!

I dont think my ROMs will be of interest here, but if anyone wants to try I'll upload them. Only swedish, though...

Thanks again! :)
[Windows Mobile] Laurentius26:
Cool, I'm glad it finally worked.

Cheers mate :)
[Windows Mobile] ciko84xp:
i use evk... and i cook all my add-on in my ROMs only with .cab files, editing my "config_AP.txt" file, and i don't use the EXT format for a simple reason... with a .cab method, i can remove the installed .cab when i want, simply using the function "Remove Programs" that is included in every build (Settings => System)!

All that is installed by the .cab, is reported in Remove Programs menu for future unistall... ;)

Do you like my idea? ihihihih
[Windows Mobile] Farmer Ted:
Uh, no? You can save space by cooking apps straight into rom, and can also convert files to modules when you do that, which is usually an improvement. What's so great about having an app uninstallable? It just adds extra junk into the file system, registry and databases. I think you're better off creating cabs that aren't uninstallable, just to get rid of that junk (personal preference; besides, if I'm cooking for myself, I would know how to remove anything I decided I didn't want). Cab installations are also slow as hell. So, yeah, I don't think it's that great of an idea. If you're going to go that way, you might as well just build a light rom and then do a post flash cab install with sashimi or something similar.
[Windows Mobile] ciko84xp:
Good observation... but i think that is important to have a possibility of unistall all those not base programs (like games, themes, add-on, 2° and 3° browser, etc) that are usually included into ROM!!!

Whithout the Remove Programs utility is really difficult that you can completly remove those programs in a second time (ex: if you need more spaces for any evenience) and the only one method to have the chance of using Remove Programs utilty, is to install those programs by the .cab! ;)
[Windows Mobile] Farmer Ted:
If you don't want them cooked in, then just remove them. If you think that only once in a while you might need it, then store a cab on your sd card. Maybe once every 4 months, I'll install myphone and then backup my contacts, just as a precaution. But I wouldn't cook the cab into my rom, it's a waste of space.

If you're cooking for other people: 1. don't listen to the whiners. There's no reason to dumb things down for the least common denominator. 2. Cook things in properly; installing cabs isn't really cooking, anyway (imo). Creating proper packages is more fun, and you can squeeze the most out of an application that way.
[Windows Mobile] ciko84xp:
You have right, but i dont want publish my ROMs on the WEB with 100 .cabs near!!!

I want cook my favourite applications, but i want give the chance to remove them at all who don't like them!!!
[Windows Mobile] brainmaster:
It only make sense if you don't update your ROM's often, but there are some apps that get updates quite often.

Example: I update my ROM's once in a month. But the only cab that I am cooking in is the Opera 10 Ducks version. The users get the chance to remove it - if they don't like it, or if they want to update to another version.
[Windows Mobile] vrgolin:
hi iam using Ozkitchen v1.33.5 i just make a cab with some registers that always use on my divice, but i dont know how to cook this cab on my divice iif some one want to help ill apreciate . i attach the cab if some one want to look at it and the Ext Packages that i made from the cab with the Ozkitchen , but after this step dont know what to do
[Desire General] wickedpenguin:
Hi,

My Handset doesn't seem to remember my Handsfree car kit, I have to pair it everytime I jump in the car.

Anyone else have this issue? Or am I missing a setting to lockin the Bluetooth pairing.
[Motorola Droid and Milestone General] droidnewb23:
I have rooted and its awesome used a ton of roms some good some bad but i would really like to try and create my own and i dont know where to start exactly just seeing if there is somebody here that would be willing to help me start thanks in advance:D
[Motorola Droid and Milestone General] cvhovey:
I don't know anything about building roms, but you might want to look at this thread. It has a link to a "how to" for 2.1 roms and some comments about changes related to Froyo. It might give you a start hooking up with some of the folks over there: http://www.mydroidworld.com/forums/dev-r-d/2991-building-froyo-rom-source.html
[Android] ozydious:
Just proposing the previously mentioned idea where after successfully achieving dualboot on an android device, we could implement a windows mobile OS onto one part of the dual boot. Any thoughts on how this could be achieved or any advantages this could bring to a users experience?

Also would there be a way to create a more extensive recovery image to comply with this?
[Android] wocko1:
I don't like the chances since WinMo is closed source, but then again, people got WinCE running on an Xbox, so we'll see. It'll be cool if my Desire booted WinMo, or even Maemo
[Android] ozydious:
Well if we can get android to boot through winmob perhaps we can emulate the idea on android. If we could perhaps launch winmob from inside android... persay from the recovery image, which to my knowledge is still android. I mean we can access terminal windows from inside the OS when fully booted, why not in recovery? Perhaps a new rom would have to be made to support it.

All I know is that if my GSM hero could run winmob and android, I would practically fall in love with it.

Maybe there will be some hope with windows mobile 7....
[XPERIA X10 Android Development] zephyrix:
lmao..

http://xdaforums.com/showthread.php?t=712945
[XPERIA X10 Android Development] j4mm3r:
lol, you must've done this while I was writing mine!!

Anyways, its good to have this info out and I do point out some concepts detailing *why* this is a problem.
[XPERIA X10 Android Development] zephyrix:
Definitely.

Make sure people have installed a proper way to elevate to root before attempting to change sh to not setuid, or they may screw themselves over lol
[XPERIA X10 Android Development] Fuzalert2k:
Thanks for your guide! Much appreciated would be an understatement.
[XPERIA X10 Android Development] bcool15:
is there any other way of testing that as using tht method in ur given picture now says read only error does this mean i successfully secured my root?
[XPERIA X10 Android Development] j4mm3r:
Oh... I think I forgot to show this, but essentially you need to get the system partition into read/write mode as well. So it will be one more command before the write is attempted:

# mount -o remount,rw -t yaffs2 /dev/mtdblock2 /system

...

...

# echo "I can...
[XPERIA X10 Android Development] bcool15:
thats the command which stoppped wrkin so i just redid whole rooting procedure with new v3 update does it still need securing?
[XPERIA X10 Android Development] j4mm3r:
Dont worry about the example shown in the screen shot. That is just to illustrate what a setuid "sh" binary can do to your system.
[XPERIA X10 Android Development] bcool15:
this securing procedure isnt working on my new root any suggestions?

please

Regards,
[XPERIA X10 Android Development] j4mm3r:
Exactly what procedure are you referring to? The post is just meant to be a set of guidelines of a vulnerability that existed on the phone after it was rooted using "the root procedure" at the time this was posted.

If you have a "sh" binary on your phone which is setuid and setgid, then you have this vulnerability. I haven't updated the post with results from any new root procedures that have been posted since, but I suspect even the newer methods posted so far in the "root thread" don't get rid of the compromised "sh" binary.

Please ignore if you don't know what setuid and setgid means.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] truitt661:
I just bought my htc hd2 and I have the spl 2.10.0000. I want to know how can i download the 1.42.0000 version onto my phone.
[HD2 Windows Mobile 6.5 Q&A, Help & Troubleshooting] samsamuel:
no, you dont need to, use hspl3 and choose 2.08,hspl. All other info about downgrading, needing this spl or that spl, is now out of date, Use hspl3. See my sig.

(plus, you have a tmous, if it had 2.10.0000 when you got it, which means any rom that says it requires hspl 1.42 wont work on your phone, nothing less than version 2 anything for you :) )

Go read the t mobile specific threads HERE