[ROM/DISCONTINUED] ParanoidAndroid 1.5a for Vision — version 0.5 beta (09-Aug-2012)

Search This thread

NeverGone\RU

Senior Member
Oct 10, 2008
561
665
30
Moscow
One hit is to try with reversed values, i.e. 0x0 with 0x1 and 0x1 with 0x0.
Well, setting first byte (at .line 1311) to 0x1 will always force landscape mode (regardless of keyboard and g-sensor state). It seems that it tells system that the hardware keyboard is always opened.
Second byte (1313) doesn't even seem to do anything.
I think its better to make a stable Clean ROM first than make a extra pack to flash it over.
That's exactly what I'm trying to do. As this port becomes stable, I'll start thinking about adding features and customization options.
Not for me, unless I fix the hardware\software keyboard bug (I'm actually trying to do this at work now, lol) and reduce the UI lagging.
But except for bugs mentioned, everything works without issues. :)
 
Last edited:
  • Like
Reactions: etp23

Cid-Vox

Senior Member
Dec 31, 2010
74
79
You might wanna try this to fix android.policy.jar
Link
Thats the way I fixed it for my AOKP port.
 

NeverGone\RU

Senior Member
Oct 10, 2008
561
665
30
Moscow
You might wanna try this to fix android.policy.jar
Link
Thats the way I fixed it for my AOKP port.
Unfortunately, my file doesn't even have this at all.
The whole method code is:
Code:
.method readLidState()V
    .registers 4

    .prologue
    .line 1309
    :try_start_0
    iget-object v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mWindowManager:Landroid/view/IWindowManager;

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Landroid/view/IWindowManager;->getSwitchState(I)I

    move-result v0

    .line 1310
    .local v0, sw:I
    if-lez v0, :cond_d

    .line 1311
    const/4 v1, 0x0

    iput v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLidOpen:I

    .line 1320
    .end local v0           #sw:I
    :goto_c
    return-void

    .line 1312
    .restart local v0       #sw:I
    :cond_d
    if-nez v0, :cond_15

    .line 1313
    const/4 v1, 0x1

    iput v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLidOpen:I

    goto :goto_c

    .line 1317
    .end local v0           #sw:I
    :catch_13
    move-exception v1

    goto :goto_c

    .line 1315
    .restart local v0       #sw:I
    :cond_15
    const/4 v1, -0x1

    iput v1, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLidOpen:I
    :try_end_18
    .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_18} :catch_13

    goto :goto_c
.end method
But thanks for the tip, anyway.
 

etp23

Senior Member
May 4, 2011
347
19
el paso texas
Well, setting first byte (at .line 1311) to 0x1 will always force landscape mode (regardless of keyboard and g-sensor state). It seems that it tells system that the hardware keyboard is always opened.
Second byte (1313) doesn't even seem to do anything.
That's exactly what I'm trying to do. As this port becomes stable, I'll start thinking about adding features and customization options.
Not for me, unless I fix the hardware\software keyboard bug (I'm actually trying to do this at work now, lol) and reduce the UI lagging.
But except for bugs mentioned, everything works without issues. :)

Thanx brothha nice job

Sent from my HTC Vision using xda app-developers app
 

Goshgar

Member
Oct 6, 2008
7
1
Amsterdam
Спасибо большое...хотел поменять телефон, но из-за клавиатуры не торопился, хотя жутко хотелось нового интерфейса. попробую вашу прошивку )

удачи.
 

biohazrd51

Senior Member
Apr 26, 2011
492
180
My guess is that he likes the ROM, but wants to change the languages. Though he isn't in a hurry to have his language supported.
 

NeverGone\RU

Senior Member
Oct 10, 2008
561
665
30
Moscow
My guess is that he likes the ROM, but wants to change the languages. Though he isn't in a hurry to have his language supported.
Wrong :)
The language is Russian and he said that he was going to buy the new phone, but wasn't in hurry as there's no good qwerty phones on a market (actually, that's right — Motorola devices are not shipped to our country, so there's only XPERIA Pro and Desire Z, both outdated). And instead of doing this, he's going to try to install this ROM.
Sounds strange, but... that's it :)

@Goshgar: если возникают трудности с языком — прикладывайте, пожалуйста, перевод через Google Translate, не вводите в заблуждение других пользователей. Официальный язык этого форума — английский.
 

biohazrd51

Senior Member
Apr 26, 2011
492
180
Wrong :)
The language is Russian and he said that he was going to buy the new phone, but wasn't in hurry as there's no good qwerty phones on a market (actually, that's right — Motorola devices are not shipped to our country, so there's only XPERIA Pro and Desire Z, both outdated). And instead of doing this, he's going to try to install this ROM.
Sounds strange, but... that's it :)

@Goshgar: если возникают трудности с языком — прикладывайте, пожалуйста, перевод через Google Translate, не вводите в заблуждение других пользователей. Официальный язык этого форума — английский.

I'm just some dumb English speaking American. What do I know? :p

Thanks for the translation though :highfive:

Edit: Grats on the frontpage listing.
 
Last edited:
  • Like
Reactions: NeverGone\RU

Top Liked Posts

  • There are no posts matching your filters.
  • 29
    So this is my very first attempt in ROM porting.
    paranoid.png



    paranoid_notab.png

    Some of you may have heard of tablet mode and if you have tried it you know well that it smashes your phone. Apps are small, their layout is screwed, things overlap, crash or stop working, Google Play forbids you to download, if you tried AOKP you cant even use launcher and phone. In short, it is a mess.

    PARANOIDANDROID changed that. It does not "heal" tablet mode, it obliterates the boundaries. You define how big or small apps are, you define in which UI they display, no matter if your phone runs in tablet or phone mode, which also you can define. Customize every single entity on your phone, lockscreen, navigationbar, system-components, widgets, apps. If you prefer stay with your three bearpaw buttons + drop-down curtain or switch to a combined navigationbar + drop-up notificationcenter, enjoy Youtube in 3D, Gmail and settings in 2-columns, Chrome in its better mobile UI, etc. Nothing overlaps, nothing crashes, everything works as you'd expect. This is completely new ground and has never been realized before, it is lightyears from tablet mode.

    paranoid_instructions.png

    Install ROM: http://d-h.st/ufK
    Install Google Apps: http://d-h.st/wCo (and only these! other GApps will have Play Store broken in tablet mode!)
    Wipe caches, factory reset is a must if you're coming from another rom than CM9

    paranoid_trouble.png
    • If automatic brightness is disabled, button backlight doesn't turn on after Power button is pressed
    Maybe something else, you tell me​

    paranoid_credits.png

    I used jerl92's CM9 build as a base, HWComposer libraries and kernel from Andromadus Mimicry (these made this ROM insanely fast) and hdorius' DHD port. Sorry for being a "winzip dev", as I'm yet a complete noob in Android development :)

    Thanks to:
    • ahjavery for his ROM porting guide
    • blk_jack and the whole Andromadus team for their great work
    • D4rKn3sSyS and molesarecoming for such a great ROM
    • Xylograph for his tips and porting help
    9
    paranoid_screenshots.png


    Paranoid1.png
    Paranoid2.png
    Paranoid3.png

    Paranoid4.png
    Paranoid5.png



    paranoid_changelog.png

    Version 0.5 beta (09-Aug-2012)
    • Terminal Emulator, Gallery and LatinIME FCs/UI bugs fixed.
    • GApps removed. Use a separate package to install them.
    • Default UI is changed to "Phone mode (optimized)".
    • Button backlight bug not fixed yet.

    Version 0 beta (30-Jul-2012)
    • Keyboard bug fixed
    • Removed apps: Adobe Flash Player, Apex & Nova Launchers, Dropbox, ES File Explorer, ROM Manager. Google Apps left, but probably will be removed later.
    • Improved automatic brightness accuracy
    • Dual-band Wi-Fi support enabled
    • adb remount error fixed
    • UI lagging is gone — now using kernel and libs from Andromadus (hope blk_jack won't kill me for that)
    ... can I call this a beta now? :)

    Version 0 alpha (21-Jul-2012)
    First public release.​

    paranoid_bepart.png
    6
    Anyone want me to try and pick this up?

    Sent from my HTC Vision using xda app-developers app
    3
    By the way I went ahead and made the pDroid patch for this release (1.5) of ParanoidAndroid for Vision. I had to use the 20120706 rom date in order to get the patch to work.

    Patch Log (you can use the same command to just patch it yourself)
    Code:
    ./auto_patcher PARANOIDANDROID.zip pdroid cm9 20120706
    ### verify tools ###
    ### verify ROM ###
    ### unzip patch tools ###
    ### unzip patch patches ###
    ### unzip rom ###
     inflated: system/framework/core.jar
     inflated: system/framework/framework.jar
     inflated: system/framework/services.jar
    ### create updater script ###
     inflated: META-INF/com/google/android/update-binary
     inflated: META-INF/com/google/android/updater-script
    ### using Clockworkmod installer ###
    ### create restore.zip ###
    ### decompile framework.jar ###
    ... extract preloaded-classes ...
    ### decompile core.jar ###
    ### decompile services.jar ###
    ### patch pdroid/cm9/20120706 ###
    ### apply framework.patch ###
    Reversed (or previously applied) patch detected!  Skipping patch.
    38 out of 38 hunks ignored -- saving rejects to file smali/android/net/wifi/WifiConfigStore.smali.rej
    Reversed (or previously applied) patch detected!  Skipping patch.
    15 out of 15 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/RIL$RILSender.smali.rej'
    Reversed (or previously applied) patch detected!  Skipping patch.
    4 out of 4 hunks ignored -- saving rejects to file 'smali/com/android/internal/telephony/sip/SipPhone$SipConnection.smali.rej'
    ... apply preloaded.patch ...
    ### apply core.patch ###
    ### apply services.patch ###
    ### rebuild framework.jar ###
    ### rebuild core.jar ###
    ### rebuild services.jar ###
    ### create updater.zip ###
    ### finished ###
    flash update.zip to install the modified
    flash restore.zip to restore the original

    I've renamed it to paranoid_pdroid_on.zip and paranoid_pdroid_off.zip (off restores the 3 jar files back to the way it was in the original zip, and on puts the patched .jar files into the system to work with the pdroid app)

    [Files moved to attachment]
    MD5 (paranoid_pdroid_off.zip) = 49d7bf9a2d2bdceb750d6dd95ac44705
    MD5 (paranoid_pdroid_on.zip) = 0fd1764ee447424e67c1f96e39d68072

    You can grab the pDroid app (free) itself from the market place (but it won't work until you patch the system).

    even though there's a restore/off patch make sure to do a nandroid backup just to be on the safe side

    I installed the following via recovery:
    Paranoid Android 1.5 for Vision Rom
    paranoid_pdroid_on.zip (pDroid enabled patch)
    TitaniumBackup (So I could just quickly restore my pdroid app instead of signing up to google)

    Then rebooted (love the boot animation by the way), and tried out pDroid. Screenshots attached.

    So ya now can have more paranoia in your ParanoidAndroid :p
    3
    Any plans for updates?
    Sure.
    I've been very busy last month (I've even been offline all this time if you noticed), and now it seems it's finally over.
    When I have some more free time, I'll get back to development (and maybe rebase this on JB if Flinny allows).
    I promise. :)