yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson XPERIA X10 Mini] Le@rner:
when i m connected my samsung mobile its adb interface display in device manager in section of ADB Interface,and adb devices command return the samsung device

but when i connect the sony phone with same method firstly its not display in section of ADB interface in device manager, its display in Sony Ercssion sa0101 section.

and when i run adb devices on cmd its not return any device.

and i found one thing when i use SuperOneClick application and use its root option.

than run adb devices on cmd now its return the sony device and not its work fine.

so i want to connect it from my application without the help of SuperOneClick

please help me what can i do.
[Sony Ericsson XPERIA X10 Mini] Ommadawn101:
I am not sure I am following you.

If you already used superoneclick and it worked for you, why do you need another way of doing it, without superoneclick?

Also, I don't have any of your devices, so I cannot advise you on them.

Sorry
[Sony Ericsson XPERIA X10 Mini] Le@rner:
please understand how can i advice to other use any other application for rooting when he used my application.
[General Questions and Answers] EchoSide512:
I am having an issue with flashing the rom onto my phone from the SD card, it gives me an error and says that the flash was aborted. If anyone, especially schizopunk, can help me, I would love it.

"Amend scripting (update-script) is no longer supported. Amend scripting was deprecated by google in android 1.5. It was necessary to remove it when upgradingto clockworkmod 3.0 gingerbread based recovery. please switch to Edify scripting (update-script and update-binary) to create working update zip packages"
[Streak 5 General] Alexanderbooth:
If you use adw you can lock the screen to eitherportrait of landscape in settings. I haveit locked to landscape because I prefer it.
[Streak 5 General] :
I prefer launcher pro for a few reasons and would like the lockscreen to be in portrait so that I don't have to use widgetlocker

Interesting note. I have compared the streak code for the file specified to the dell venue which is a portrait default device and they are identical...not sure what to think about that.
[Streak 5 General] :
Think I found what needs to be changed, but must sleep. will report back tomorrow
[Streak 5 General] zhuozhi211:
Hope you will be able to sort this one out!

I am one of the many that want this fix.
[Streak 5 General] :
Original post updated with guide!
[Streak 5 General] valest:
good work! I will give it a try soon.
[Streak 5 General] racesurg:
I'm having a headache just reading the instructions! Ha ha. I guess I'll just wait for jhotmann or another android genius to come up with a Recovery flashable .pkg or even an installable .apk, whichever is feasible. Great work, jhotmann! :o
[Streak 5 General] racesurg:
jhotmann, maybe you can share this mod of yours with Dj_steve. He might be able to incorporate it into a new ROM. :)
[Streak 5 General] :
I have messaged steve on twitter. I know krad can do this and he's probably on the latest build.

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] dadme:
Amazing! It's a phone now, not a Tablet! It worked perfectly for me!
[Streak 5 General] Revin:
Very nice, but not so easy. I am at the 11. and can't find when to get BOOTCLASSPATH. I know it is in init.rc in the phone, I can find it with ASTRO file manager or with adb shell, but I don't know how to open it and get BOOTCLASSPATH??? Please help somebody. I was trying to find it on the internet but no success...

Thank you in advance
[Streak 5 General] :
Type exit to get out of shell (you may have to do it twice), then adb pull /init.rc

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] Revin:
Thank you for your effort, but it says permission denied. I tried to reopen command line (always as admin), but id didn't help. Found somewhere operation 'adb remount', but it didn't help either (Operation not permitted).

I have rooted Dell Streak with Gingerbreak, maybe this information will help.

However, I copied init.rc with busybox to my sdcard and get it from there, but now I can't open it (I found, that it can be open with MS Visual Studio, then tried Notepad plus, Total commander... always just mess of black squares etc.)

I guess I am too tired today, but I will try to finish this tomorrow, because I really want Dell Streak in portrait and it is only 4 more steps :-)

But thank you anyway, I must be really hard to find this. The way is not easy but at least it can be accomplished now :-)
[Streak 5 General] :
Weird, I have had no problems opening it in notepad. Theres a good chance the bootclasspath is the same as mine so you can probably copy it from my example
[Streak 5 General] Edrill:
Nice work!! Too bad I'm not on stock. Hopefully Steve will integrate this in 1.9.1
[Streak 5 General] ak47m:
Steve said it'll be there but not active by default, so it's a go!

Question: So can we now lock the default orientation to portrait for apps like the dialer? I'm using us240 density and the landscape dialer while in a call or when you receive a call hides the name of the person and looks ugly.
[Streak 5 General] :
the entire system can be locked to portrait. Or you could probably set up a tasker to lock the phone app (and contacts app) in portrait if you dont want the whole system locked in portrait.

Edit: just created a tasker profile to do that...good call sir
[Streak 5 General] Krad:
Can you port cyanogen 7 to streak. Just loaded a nightly on my ole craptivate and it had 2.3.4 ginger goodness.

Sent from my Dell Streak
[Streak 5 General] racesurg:
Thanks jhotmann! :)
[Streak 5 General] angelerikz:
Try the 244 portrait mod on stock 407 (not the deodexed one) but didn't change anything.
[Streak 5 General] TheManii:
odexed roms are not supported
[Streak 5 General] angelerikz:
Thanks for the information, i'm currently using your deodexed rom default to portrait while waiting for the release of streakdroid 2.5.0
[Streak 5 General] yashbansal:
Stock 407 ( gingerbread 2.3.3 for dell streak official)

So can i try this one on gingerbread 2.3.3 for dell streak official to change default to portrait mode......
[Streak 5 General] yashbansal:
please help me here.... can i do it or not.... i am not very clear about this.
[Streak 5 General] angelerikz:
Default portrait mod works only on deodexed rom
[Streak 5 General] nnn286570:
portrait orientation for 407 and 406

basically its from GS 2.4.X and i just installed from CWM and it works just fine with GB 407 Olleh...BTW i m using lonnhorn 2.1 ROM... very stable and fast

http://xdaforums.com/wiki/Dell_Streak_5/ROMs

let me know folks
[Streak 5 General] yashbansal:
Ok.... thanks for the info.....
[Streak 5 General] yashbansal:
doesnt work on stock 407.... have tried no changes as such...... please suggest something else
[Streak 5 General] simonbuschers:
hi everybody i am running dj steves 2.4.4 gingerstreak , and i am looking for a flashable zip file which allows my homescreen to autorotate together with the app drawer , the only files i am able to find are ones which LOCK my homescreen & app drawer in portrait mode , instead of auto rotating it, please help !
[Streak 5 General] djjc:
works very well on deoxeded thanks!
[Streak 5 General] sehradinesh:
Thank you for your guide - Error during a step - please suggest

Hi Jhotmann, First of all thank you for this detailed post. While running throuhg the steps, I hit through the following error. Please suggest.

<--------- error message ---------->

C:\Users\dsehra\Downloads\Android\adt-bundle-windows\sdk\platform-tools\framewor

k>java -jar ..\baksmali.jar -x android.policy.odex -o ..\androidpolicy

UNEXPECTED TOP-LEVEL EXCEPTION:

org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a

rguments of the method

at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont

ext.java:54)

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio

nIterator.java:91)

at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)

at org.jf.dexlib.Item.readFrom(Item.java:77)

at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)

at org.jf.dexlib.Section.readFrom(Section.java:143)

at org.jf.dexlib.DexFile.<init>(DexFile.java:431)

at org.jf.baksmali.main.main(main.java:280)

Caused by: java.lang.RuntimeException: regCount does not match the number of arg

uments of the method

at org.jf.dexlib.Code.Format.Instruction3rc.checkItem(Instruction3rc.jav

a:129)

at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:7

9)

at org.jf.dexlib.Code.Format.Instruction3rc.<init>(Instruction3rc.java:4

4)

at org.jf.dexlib.Code.Format.Instruction3rc$Factory.makeInstruction(Inst

ruction3rc.java:145)

at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio

nIterator.java:82)

... 6 more

Error occured at code address 16

code_item @0xa398

C:\Users\dsehra\Downloads\Android\adt-bundle-windows\sdk\platform-tools\framewor

k>

<--------- end of error message ---------->

I am using the Dell official "Olleh Gingerbread" build, later rooted.

----------------------------------------------------------------------------------------------

Thanks,

Dinesh

---------- Post added at 08:40 AM ---------- Previous post was at 08:30 AM ----------

Hi nnn286570,

I have downloaded the zip you suggest, bit am not sure how to install. Is there any page on the instructions?

I am new to making changes directly on the Streak. The only thing I have done yet is update my Streak to BG Olleh and root it.

Thanks,

Dinesh
[Streak 5 General] Strephon Alkhalikoi:
I wouldn't expect a reply from the OP, as he has retired his Streak in favor of a Motorola Atrix.
[Streak 5 General] sehradinesh:
I am hopeful

Thanks Strephon. I am still hopeful. I can try out something if I get some hint.
[Streak 5 General] Strephon Alkhalikoi:
You could try sending him a private message. That way he knows that you're trying to get things done.
[Streak 5 General] deysmacro:
if i not mistaken... the mods are for 2.3.3.. which is already in dsc.. no need to do things that has already being done...
[Streak 5 General] Strephon Alkhalikoi:
The mods are in CM7 as well, but not everyone wants to switch ROMs, no matter how good the custom ROM is.

I never needed the portrait hack, because I never wanted the lock screen in portrait. But that's a different story for a different day.
[Streak 5 General] :
I responded via pm but I'll post here for anyone who may need it in the future. For newer versions of baksmali with gingerbread change the command to: java -jar ..\baksmali.jar -a 10 -x android.policy.odex -o ..\androidpolicy

Notice the -a 10, it sets the api level to 10 to correspond with gingerbread 2.3.3. I haven't tested this but it should do the trick.
[Streak 5 General] :
Ha it would probably take me a year to port it...it took me many hours just to find this one little change...plus the whole driver issue thing. That stuff is better left for the big boys, and I'll try my hand at the little fixes.

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] Revin:
Done! Thank you jhotmann!

After final reboot I get stuck at Dell logo, so I entered boot recovery, but before I wrote some commands the Dell booted and it was locked in landscape! Then I just unlocked it and it locked in portrait then! So maybe, if somebody get stuck at Dell logo, try turning off the phone and on again.

And another comment - it is neccessary, to run everything as admin in W7, especially command line. And, I had installed busybox from Titanium backup, but I had it in another location, so I had to write /data/data/com.keramidas.TitaniumBackup/files/busybox instead of just busybox (or it is possible to copy it I guess).

Thank you again
[Streak 5 General] luckyauto:
mee too...
[Streak 5 General] Bobanovicz:
Working! Good work, thanks.
[Streak 5 General] :
So now that some have successfully completed the mod, would anyone like to upload their new android.policy.odex so I can make some flashable zip files for each version? I am on 339 so that is covered. Anyone on 351 do the mod?

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] racesurg:
Looking forward to those!
[Streak 5 General] Bobanovicz:
I'm on 351. Where I upload the file?
[Streak 5 General] dadarouch:
Works great on 2.2.2 354!

Thanks man!
[Streak 5 General] antnee:
Has anyone tried on 2.0?
[Streak 5 General] :
either attach it to this thread (in a zip) or sent it to jhotmann@gmail.com
[Streak 5 General] :
The code could be totally different in 2.0 (havent ever looked at it) so I wouldnt try first without comparing the 2.0 PhoneWindowManager.smali to the one attached to the original post to ensure everything looks the same.
[Streak 5 General] dotdevil:
Need an app for all of this....lol
[Streak 5 General] Bobanovicz:
I sent you an email.

BTW why is the Streak in landscape after each restart? Sometimes it stays a long time.
[Streak 5 General] vietvp:
Please help.

At step 10: after I run command:

> busybox cp /sdcard/dexopt-wrapper .

The response: cp:can't create './dexopt-wrapper': Read-only file system.
[Streak 5 General] Bobanovicz:
Same error as me. I copied this file manually to the /system/bin folder with Root Explorer and set permissions.
[Streak 5 General] :
the bin folder needs to be mounted to r/w for the command to work...or you can just use root explorer like Bobanovicz
[Streak 5 General] :
Not totally sure, I'll have to investigate further. For me if I toggle settings>display>enable auto rotation it will switch it to portrait faster.
[Streak 5 General] 贡院八号:
great job! thx:):D

it is works on my 351 15609
[Streak 5 General] :
Flashable zips added for 339 and 351 (Thanks to Bobanovicz for his android.policy.odex). Make sure to backup your original android.policy.odex and if you run into problems follow the troubleshooting steps. And if anyone on a different version wants to send me their portrait android.policy.odex just attach it to this thread or send it to jhotmann@gmail.com.
[Streak 5 General] denki518:
Can anyone provide Flashable zip for 354?

I am now using S1.90 with a baseband of 354.

Thanks.
[Streak 5 General] rm001:
How to flash the flashable zip for 351?
[Streak 5 General] :
Install streakmod recovery http://xdaforums.com/showthread.php?t=840326

then you can select apply update.zip and select the zip from your sdcard
[Streak 5 General] Radimus:
ditto, an easy flash on my 351 and locking ADW to portrait is perfect.

Now if someone could do the same for phone dialer....
[Streak 5 General] rm001:
the flashable zip for 351 works this way:

If I uncheck "Autorotation" in Display Settings, the screen stucks in Landskape.

If I check "Autorotation", after first boot the screen is in Landskape and dosn`t fix in Portrait. But autorotate works.

And if I rotate the device to a Portrait and switch the screen off, after that it keeps in portrait, indeed.
[Streak 5 General] Bobanovicz:
Install the Smart Rotator and check only app which you want autorotate and the other ones will keep in portrait (including dialer).
[Streak 5 General] Bobanovicz:
It is a normal behavior. Don't uncheck autorotation and wait after the start, then launch any app with rotate function to portrait.
[Streak 5 General] :
I can change the Phone.apk's manifest to use portrait only but when I replace the orginal on my phone with that it just force closes constantly. I think it has something to do with signatures but cant figure it out. Will have to investigate after work.
[Streak 5 General] :
I added a flashable zip for StreakDroid 1.90 to the OP. I have not tested it so please make a nandroid backup before flashing.
[Streak 5 General] tom_tui:
Hi all, need some help here! I've verified the init.rc Bootclasspath is correct, but at step 11, I received "Unable to open 'android.policy.jar': No such file or directory" error. I've followed step #1-10 without problems, not sure how to find the solution. Could someone please give me some suggestions? Thanks!

Tom.
[Streak 5 General] antnee:
If you can find a way to get this working on gingerstreak I'd be a happy man. :)
[Streak 5 General] denki518:
Thank you for your efforts.

I flashed the flashable zip for StreakDroid 1.90, but it can not work.:(
[Streak 5 General] tom_tui:
Ok, now I'm one step closer, but encounters the following error message at step #11. Any suggestions?

--- BEGIN '/sdcard/android.policy.jar' (bootstrap=0) ---

--- waiting for verify+opt, pid=22522

--- would reduce privs here

--- END '/sdcard/android.policy.jar' --- status=0x0000b, process failed
[Streak 5 General] :
Can you copy the command you are typing and post it here?
[Streak 5 General] roperband:
jhotmann, can you add a quick note to your OP about flashing the updated roms? I'm on 354 and I just want to know what I need to do to use the 351 zip?

Thanks in advance man.
[Streak 5 General] :
The zip files only work for the rom they are specified for, they have the signature from the original file copied onto them so they will only work for that rom.

Until someone who has performed the mod for 354 sends me their android.policy.odex the only way to obtain the mod is to follow the steps. The steps are basically fool proof, but I would not try to perform them if you are not comfortable.
[Streak 5 General] zhuozhi211:
Wohoo! It works on my 2.2.2 351 build! Flashed using the recompiled odex in the first post via ClockworkRecovery .

Thank you so much!
[Streak 5 General] DaniLoveSky:
Hi jhotmann,

Which zip file may work on StreakDroid 1.90? I really want to give it a try. I already tried to flash 351Portrait-signed.zip but no changes in screen orientation :(
[Streak 5 General] darklord790:
Thanks for providing this feature! I have been waiting for it too long. Soon i will give it a try.
[Streak 5 General] :
Sorry I removed the streakdroid zip because it didn't work.

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] Bumbola:
Have you guys used a) simply lockscreen and b) system persistant option in adw to set the default as potrait both on the lockscreen and the main ui?? Works like a charm for me.
[Streak 5 General] DaniLoveSky:
This is the combo I am using as well. Unfortunately it does not solve the whole problem. For example, I want auto-rotation switched off and still need all applications, web browser in particular, to stay in portrait mode. So far there is no simple way to achieve this functionality...
[Streak 5 General] Techvir:
Did someone make a file for 354 ?

Too lazy to do the hardwork :o
[Streak 5 General] roperband:
No, I'm still waiting as well.
[Streak 5 General] jadeiceman:
Got it working on 347. Nice job and very clear instructions, thanks!
[Streak 5 General] kanwarvk:
Continued relevance of streak

Oops wrong location. Admins please delete this post.
[Streak 5 General] kyleji:
I am waiting 354 zip file too.

But no one has reported the succes on 354 till now. :(
[Streak 5 General] roperband:
Bah, maybe I'll go back to 351 just to get this fix. I feel that Widget Locker is a memory hog.
[Streak 5 General] RaymondX:
jhotmann's guide works for 354.

Here is the file for 354.

Extract the zip and use Root explorer to copy the odex file to /system/framework/

Please remember to BACKUP FIRST.
[Streak 5 General] Techvir:
works good. thanks
[Streak 5 General] :
Thank you! Tonight I will make a flashable zip of your odex file.

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] roperband:
Thank you very much sir!!!
[Streak 5 General] dotdevil:
did this and now im stuck.in landscape....smh......
[Streak 5 General] dotdevil:
nevermind just fixed it self..... i opened the browser and click the landscape only button and oddly everything changed
[Streak 5 General] :
If anyone has tasker, set up a task to run at bootup that toggles display rotation off and then back on...easy way to get the phone unstuck from landscape.
[Streak 5 General] Krad:
Will be trying this, this evening.... will probably incorporate finish product to my framework zips.

Is there anything you can't do jhot?

Sent from my Dell Streak
[Streak 5 General] Krad:
totally loving the portrait mode... jhot ftw
[Streak 5 General] maltloaf:
I've read the entire thread twice and even though I've seen the op mention 'StreakDroid it can still be accomplished but is slightly different' for getting this working on SD1.9 I can't see anyone suggesting what that might be. Can anyone shed any light on what I need to do ?

thanks,

malty
[Streak 5 General] Final5k:
Just to be certain that I understood correctly - the file allow any programs to be on PORTRAIT only? Meaning that I won't be bug by the auto-rotating of applications that tend to switch to landscape?

Instructions are cleared but......seem a bit tough for a newbie like myself :(
[Streak 5 General] :
This makes the default orientation portrait...So what this allows is for apps like launcher pro to be locked in portrait when before it would only lock in landscape. Also you can turn off auto rotation for the entire system and only have portrait (unless the app is landscape only like games).
[Streak 5 General] :
SD is a deodexed rom. So instead of using the android.policy.odex you will put the android.policy.jar on your pc and using 7-zip extract the classes.dex. Use the baksmali command on the classes.dex. Replace the PhoneWindowManager.smali with the one attached to the OP. Do the smali command to make a new classes.dex, and put that into the android.policy.jar just like for stock roms. Then put that jar file on your sdcard and do the step that copies the signature only it will be the android.policy.jar instead of the odex file. Then replace the original in the /system/framework/ folder and set permissions. Should work wonderfully.
[Streak 5 General] :
354 zip added (file thanks to RaymondX). As always, make a nandroid backup first.
[Streak 5 General] Riklej81:
354???

I installed the zip with clockwork... Nothing happened. Also I want to know if the zip will make spotify display in portrait? I have dj steve streak droid 190.. And bb 354...
[Streak 5 General] mawks:
^just go to settings and disable auto rotation
[Streak 5 General] :
The 354 zip is only for the stock 354 rom. Streak droid is different because it is a deodexed rom.

Sent from my Dell Streak 2.2.1 (339)
[Streak 5 General] maltloaf:
Thank you for this.

I **think** I followed the instructions perfectly (although I did most of it on a mac) and the streak got stuck on the Dell logo. I repaired by pushing back my original android.policy.jar but I was wondering if you could tell me where I went wrong ?

What I'm wondering is if the step for copying the signature from the old jar to the new one needs modifying for a deodexed rom. I did as you suggested with the command...

busybox dd if=/system/framework/android.policy.jar of=new.jar bs=1 count=20 skip=52 seek=52 conv=notrunc

which seemed successful, but aren't the files different to the .odex files ?

and then the following...

sh-4.1# cd /system/framework/

sh-4.1# busybox cp /sdcard/new.jar android.policy.jar

sh-4.1# busybox chmod 644 android.policy.jar

sh-4.1# sync

sh-4.1# reboot

I can email you my generated android.policy.jar if you want to look.

many thanks,

malty
[Streak 5 General] :
Ok, maybe try without the signature copy step. Sorry I havent ever worked with deodexed roms so I'm not sure.

If that doesnt work maybe try using jarsigner which is part of the Java JDK to self sign the jar file.
[Streak 5 General] deano309:
StreakDroid 1.9.0 Portrait

I have followed your instructions (I think) and have made a CWM zip for StreakDroid 1.9.0 (Based on original android.policy.jar)

Unfortunately I haven't been able to get home to try it out but I will post it for anyone who would like to... I will be home in a couple of days and I will try then so please don't call me to many names if it doesn't work :) :)

I am also including the original in case of any problems or if you want to go back to default.

I haven't signed the update.zip so just toggle signature verification if CWM complains.

Hope this helps :)
[Streak 5 General] TheManii:
1.9.0 version seems to work fine, flashed it and testing
[Streak 5 General] arvin2212:
Works perfectly on 1.9.0.

Thank you very much :)

The streak is so much better now.