yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Alunduyn:
I have succesfully ported Paranoid Android 1.5a for my HTC Legend. It is based on Unofficial CM9. I used system/app and system/framework ( with modified framework-res.apk ) from GSII's ParanoidAndroid 1.5a. I can't port newer versions because HTC Legend hasn't yet any JellyBean Rom.

I listed it as "Unofficial" because Paranoid Android stuff is not fully working, so it is not really PA.

Link

http://xdaforums.com/showthread.php?t=1783679

( Note that now I'm leaving for Holidays, so next release will be only on September )

Also, I can't get working SystemUI in tablet view. I set DPI to 120 and tried rebooting, but nothing happened, SystemUI just force closed. I think it may be related to the framework from GSII.
[Android Software/Hacking General [Developers Only]] molesarecoming:
the pa.version is from our build script i think. jon and jesus are maintaining that and i have no idea how it gets there but it somehow does. ota and some features rely on it. ro.blablabla.density on the other hand stays clear since 1.6 i believe. pa wont touch it ever, system runs on its default dpi. to get tabUI on JB versions of PA you simply drop systemUI into an UI mode and thats that. that also means you'll not have to supply a special gapps package anymore. when cm10 is in the nightly phase i'll update the firstpage with infos.
[Android Software/Hacking General [Developers Only]] sgtkwol:
I love PA and I love JB, so I tried my first JB port of it. DISCLAIMER: I'm sure it hasn't been tested by PA team as I'm not porting from a 240dpi device, but phone and phablet UI works fine. Tablet UI does not, at all. I suspect the reason is there is no way for a 240dpi device to get down to low enough DPI to support tablet mode. I'm sure you'll find a way around this, love the work so far!!!

%screen_3_width=0

%screen_3_height=0

%screen_3_layout=0
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
No sources to S2. I will fill those when CM releases Jellybean branch for S2 :). And yes it's possible to fill those
[Android Software/Hacking General [Developers Only]] dudeman1996:
Any ideas on why tablet mode isn't working on my port for the HTC Wildfire S? I've done the build.prop hack, but I can't do the other hack mentioned because I can't build from source yet... Is there a certain smali I need to edit or something?
[Android Software/Hacking General [Developers Only]] quentin330:
Hello, i am the one who ported paranoid for I9100G, but since cm10 is availible on i9100g ans not i9100, i would like to know if there was enough sources public for me to build this from source and how i could do it, if someone could help me that would be very nice. Thank you in advance
[Android Software/Hacking General [Developers Only]] sgtkwol:
Best I can offer, is do it like you have been. I have gotten it all working to some degree. I'm having some problems editing framework-res.apk, but may be my own fault because I didn't update the aapt that apktool uses.

I'm going to play some more with what is currently out, but will probably have a port worth releasing with 1.9.
[Android Software/Hacking General [Developers Only]] quentin330:
Y ou mean porting from galaxy nexus ? What do i have to do différent ? By porting from i9100 i didn't have any apk to edit, just copy some files and change build.prop
[Android Software/Hacking General [Developers Only]] sgtkwol:
Overall, it's the same as porting from a same DPI device. Use pad.prop and bootanimation from PA source.
[Android Software/Hacking General [Developers Only]] quentin330:
That means i don't have to change framework-res.apk or any framework file ?
[Android Software/Hacking General [Developers Only]] quentin330:
How can I take it from source? I really don't know how it works
[Android Software/Hacking General [Developers Only]] molesarecoming:
since 1.5 there is no "low enough" anymore. we're completely and 100% free of silly build.prop. all that a dpi is doing is scaling, thats it, it has nothing to do with any mode whatsoever. you can get tablet mode on dpi 10000000000000000000000000000 if you want, and have a screen big enough lol. the reason you cant get into tabUI is probably that your config is calculated wrong. most important is the width and the layout. width 720 is tabUI, 600 phab and whatever is your standard dp for phonemode, nexus 360 i believe, note that these numbers are the same you know from the /res folders. sw600, sw720, etc. rings a bell? thats how we get into tabmode now.

then calculate a height but i think its not so important as apps will scale correctly anyway. the layout number for phab & tab is the same, the one for phone is different, use the tool linked on the mainpage to fetch it.

most important for PA on JB. do not ever touch build.prop density, leave it on default. you get tablet menu by treating systemUI as you treat any other app. com.android.systemui.mode=3, bam, tabUI. =2, phabUI. =1, phoneUI. then give it any size you like via .dpi=xxx

that means you dont have to boot your poor users phone into weird treshold dpis anymore. also rom_tablet_base and rom_phone_base, define them as you want, the GUI will simply pick up these values for the sliders, but as i wrote, dpi controls what it should control, size, nothing else. mode controls UI of course.
[Android Software/Hacking General [Developers Only]] tonyp:
This doesn't apply to 1.5 but only to 1.6+, doesn't it?

As I've never seen a "phabUI" in my 1.5 port :D
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Jellybean only, not ICS
[Android Software/Hacking General [Developers Only]] tonyp:
I have one problem with my ported ROM.

Lots of horizontal lines which should be light grey are black. Most notably in the SMS app where there's a black line between all contacts now.

That used to be grey before I used the PA framework files. Could anyone hint me which value I'd need to get that to the default look again?

But it's also visible in the settings menu where there's now a black instead of a grey line between the different options.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Any way to do "per app font size". I like smaller DPI and phablet mode for launcher, since it just looks better, but I don't want huge font for my whole system.
[Android Software/Hacking General [Developers Only]] quentin330:
I think I'll wait for JB to be on galaxys2 i9100 since I only get bootloops when porting from galaxy nexus
[Android Software/Hacking General [Developers Only]] molesarecoming:
its already implemented. but it wasnt so useful. its the same as the global setting, it works only if the apps makes use of it, but most hardcode fonts unfortunately. i think it was .sden and it was a float. look up the android sdk for scaleddensity. not sure though if we took it out or not, i cant remember.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Had to adjust DPI on "stock" CM10 to get the magic numbers ;).
[Android Software/Hacking General [Developers Only]] dudeman1996:
I've spent the past 3 hours trying to set up pad.prop correctly, and I can't for the life of me figure it out... This is my current pad.prop set up. I ported v1.5a from the Samsung Galaxy Ace, to the HTC Wildfire S - they both have the same screen resolution of 340x480, so I just left pad.prop set up how it was. But tablet mode wasn't working at all, so I poked around in pad.prop to see if I could get it working, using the ParanoidAndroid PAL app to set things up but it didn't do anything except cause problems. The app said the tablet DPI threshold is the lowest number out of the two below. Then it showed 86 and 128. I thought there was no way I could set the threshold to 86 DPI, but I did it anyway and it really screwed everything up. Can anyone please help me get my pad.prop set up correctly?
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Dude we're really sorry but hybrid mode is designed for XHDPI or at least HDPI. Your screen size, talking like if you get it working won't be good looking at all
[Android Software/Hacking General [Developers Only]] dudeman1996:
I know, and there are screens in the link to my port in my sig, the Galaxy Ace has it all working and to be honest I think it looks better than half decent on MDPI. I would be unbelievably grateful if I could get help with this thing working...
[Android Software/Hacking General [Developers Only]] JamieD81:
so ive got this far...

http://yfrog.com/z/odwyadp

but i get settings-storage FC and gallery only see's internal sd

ive changed the storage_list.xml in framework-res.apk what else would cause this?

also adb isnt working again for some reason.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Does it work on CM10?
[Android Software/Hacking General [Developers Only]] JamieD81:
yeah works fine. but on cm10 they messed with the mount points so it seems *reason why i had to edit the storage_list.xml*

but still get FC
[Android Software/Hacking General [Developers Only]] -juanito-:
when PARANOIDANDROID sources will be available ?
[Android Software/Hacking General [Developers Only]] Mahdi786:
I was going to ask the same thing, as you are working on JB now would you be releasing the ICS sources?

Didn't want to ask because I don't want to get shot, lol
[Android Software/Hacking General [Developers Only]] Note2Frat:
I could be wrong, but I think they just merged it with JB. Otherwise they would have released it.
[Android Software/Hacking General [Developers Only]] Mahdi786:
I'm sure moles was saying its a totally different code for jb, I might be wrong.
[Android Software/Hacking General [Developers Only]] tonyp:
I'd like to ask the other porters here, is your Line divider black as well?

Before the port it's grey, but after porting it's black for me. I weren't able to find any differences related to that in the framework-res.apk or SystemUI.apk.

I have two screenshots, the first one shows the horizontal black lines in the SMS settings and the other one in the Settings menu.

Maybe someone can point me to the right direction? Thanks.

Edit: Oh yeah, I'm still using build 1.5 as base because I can't port 1.6 with the native code as the LG 2x has a different SoC.

Screenshots:
[Android Software/Hacking General [Developers Only]] quentin330:
I tried to port paranoid 1.8 from galaxy s2 to i9100g, I know this is a pre-alpha but I thought that with cm10 on i9100g the things that don't work on i9100 would on i9100g, the things that are not working are :

- the first steps when I install a rom with gapps FC (the one which ask the time and the gmail account) so I have to flash the rom, boot then flash gapps

- I can't download anything from the store because it closes as I click on download

- lots of FC in settings
[Android Software/Hacking General [Developers Only]] JamieD81:
mine are light grey in both as they should be. 1.9 ported to i717
[Android Software/Hacking General [Developers Only]] tonyp:
Okay, I tracked it down further. When I left all dpis at Stock DPI (240) all lines are grey like they're supposed to be.

As soon as I scale them below 240 they're getting black.

Seems like then there's a color value missing then - does anyone have an idea? :)
[Android Software/Hacking General [Developers Only]] DAGr8:
look at the png , your phone is probably using different one depending on the *hdpi folder its using best bet woudl be to use the proper one and overwrite it in the others . see how tha thelps .
[Android Software/Hacking General [Developers Only]] tonyp:
Yes, that sounds plausible.

But I don't exactly know what to do now.

I tried to copy all files from "drawable-hdpi" to "drawable-nodpi", but nothing changes.

Could you help me out? :)
[Android Software/Hacking General [Developers Only]] JamieD81:
trying to deal with pad.prop in JB release.

since we have phablet mode now what are the settings for pad.prop?

1=

2=

3=

?

i know ICS was 1=tablet 2=phone
[Android Software/Hacking General [Developers Only]] sgtkwol:
https://raw.github.com/ParanoidAndr...8f80d22ba9049e0/prebuilt/pa_galaxys2-pad.prop

Can't wait to get 1.9.1 ported with fixed KB scaling. Any word on getting lockscreen into tablet mode without build.prop DPI changes?
[Android Software/Hacking General [Developers Only]] JamieD81:
yeah i have the pad.prop and such mostly setup for jb

its just those 3 lines i need to know which number represents them so i can set others properly
[Android Software/Hacking General [Developers Only]] sgtkwol:
Sorry, misunderstood. 1=phone, 2=phablet, 3=tablet.
[Android Software/Hacking General [Developers Only]] Hero:
Does anyone get a "roaming indicator off" problem with their port? I ported PA over to the Verizon GS3 and can't seem to get rid of this problem. I fixed most other things except for this.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Steal eri.xml from the res/xml directory in framework-res.apk from CM9/10 and put it into your final framework-res.apk.
[Android Software/Hacking General [Developers Only]] DAGr8:
well first of all find the divider , then see if its duplicated in others ,,

although i believe its inside framework-res it could be inside setings.apk to ..
[Android Software/Hacking General [Developers Only]] tonyp:
Yes, I do get a lot of errors like that in Logcat:

07-26 03:21:46.951: E/OpenGLRenderer(3321): Cannot generate texture from bitmap

They're directly related to the black lines.

But usually android should automatically pick images from the drawable folders and resize it accordingly..

I tried to use new folders (xhdpi etc.) but this had no effect. I'm stuck :(
[Android Software/Hacking General [Developers Only]] sgtkwol:
Anyone have luck decompiling/recompiling Jellybean framework-res.apk w/ Linux/Ubuntu? I've tried multiple google search results, but have yet to find a working method.
[Android Software/Hacking General [Developers Only]] quentin330:
Quick question for D4rKn3sSyS, to port your 1.9.2 when it will ne ready, may i use 20120725 or 20120726 cm10 ?
[Android Software/Hacking General [Developers Only]] Note2Frat:
I have been using windows, no problemskusr use the apktool 1.4.2 to decompile and 1.4.3 to build
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Use always latest nightly. Otherwise you will break a few things :D
[Android Software/Hacking General [Developers Only]] quentin330:
I ported it but it doesn't boot =( I've no logcat for the moment
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
I got mine booted and running well on Defy :)
[Android Software/Hacking General [Developers Only]] DaXmax:
how initially you did it? Im supporting the two devices, and both of them booted well.
[Android Software/Hacking General [Developers Only]] medicjunKie:
I've set up both prop files. And it boots, but I don't see the PARANOID settings and systemUI crashes.

I didn't mess with framework, do you have to mess with it?

Any ideas?
[Android Software/Hacking General [Developers Only]] quentin330:
I did it like i did for 1.5, copying system/app and system/framework, pad.prop, changing build.prop, copying bootanimation and that's it
[Android Software/Hacking General [Developers Only]] sgtkwol:
Framework is very necessary' that's where most of the changes are made.
[Android Software/Hacking General [Developers Only]] medicjunKie:
What changes do I need to make to it?
[Android Software/Hacking General [Developers Only]] quentin330:
It's working for me, just 3 things :

- Notifications toggles can't be chosen on tablet mod

- can't force scalling widgets

- is there a solution to rotate lockscreen?

---------- Post added at 07:10 PM ---------- Previous post was at 06:43 PM ----------

For my i9100g I just copied the app and framework folder, pad.prop, libandroid_runtime.so and bootanimation from pa to cm, merge build.prop and that's it
[Android Software/Hacking General [Developers Only]] medicjunKie:
And you copied it from another phone that had PA and the same specs as your phone?
[Android Software/Hacking General [Developers Only]] tonyp:
Edit: Issues solved, was a faulty commit from the /lib section

I'd like to sum up my problem with my port to the LG Optimus 2x.

If noone else has this problem then it's probably the fault of our hacky ICS build.

The LG 2x isn't officially supported due to missing drivers. It has no 2D hardware accelleration and maybe that's the cause for the OpenGLRenderer bug (see below).

It's nothing critical, just a little annoying.

The linedivider which is usually grey doesn't get loaded on DPI's other than 240 and thus appears in black (see the screenshots at the end of this post).

I'll get the following error in Logcat for each line which doesn't get drawn:

E/OpenGLRenderer(3321): Cannot generate texture from bitmap

Everything does work, it's just black instead of grey.

I think it's an error in the framework-res.apk.

Screenshots:
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
I still dont understand what you are talking about but if you dont see the grey shader in settings and its black instead, then the reason for this is missing hardware acceleration. I had this problem in ICS on defy when we didn't have hardware acceleration.
[Android Software/Hacking General [Developers Only]] quentin330:
I really need to know why I can't choose my notification toggles on tablet mod, which file do I need to change?
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
Seems to be a problem with the original ROM. I have the same issue too.
[Android Software/Hacking General [Developers Only]] quentin330:
any way to have lockscreen on landscape?
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
not now. :D

neither you can enable landscape mode for launcher, reason: there is no launcher setting yet in CM10.
[Android Software/Hacking General [Developers Only]] quentin330:
I use my launcher landscape since I use apex, is the lockscreen related to stock launcher?
[Android Software/Hacking General [Developers Only]] sgtkwol:
If you want the stock launcher experience with autorotate, use this. https://play.google.com/store/apps/...EsImNvbS5jb25jZW50cmljbGl2ZXJzLmxhdW5jaGVyIl0.
[Android Software/Hacking General [Developers Only]] tonyp:
Edit: Solved, solution included!

This does only affect ICS.

Okay I found a new problem.

I'm using the modded phone.apk from the Galaxy S2 v1.6 release.

With the ROMs default phone.apk the screen for an incoming call is cropped and you can't see the full UI.

But the apk apperantly has a problem: The mute button is not working.

I can press the button but the other side will steal hear me.

Solution:

decompile the modded phone.apk and change the following value in res/values/bools.xml to true:

<bool name="send_mic_mute_to_AudioManager">false</bool>
[Android Software/Hacking General [Developers Only]] *boy*racer*:
hello all.

i am trying to port PA to my xperia ray using sgs2 PA 1.6a. i have managed to get it to boot to bootanimation, but i keeps looping when it vibrates just before it goes into setup wizard.

all i have done is copied the following:

.systemUI.apk

.settings.apk

.PA backup.apk

.PA PAL.apk

.framework-res.apk

.bootanimation.zip

.pad.prop

.edited build.prop

i have done a logcat and it looks to me that there is permissions missing which isnt a problem (i think i can sort that) but there are other things that im not sure at.

i think it is due to framework-res.apk?

if you guys can take a look and maybe help me please? :)

thanks

http://pastebin.com/2zXQkeyr
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
@Porters

http://www.paranoid-rom.com/

Please use chat when you can, some of your users open it and talk with us :).

Also register on forum so you can help us on it

EDIT: Someone asked me for sense of humor, he doesn't seems to have it :D
[Android Software/Hacking General [Developers Only]] DAGr8:
most open source community in the world trying to dictate how users use there mod ..

blaming on how there mod is not perfect and how everyone can have it once it is , then an attempt at going at a binarie level (first goal was to avoid others to port the mod as it was confessed by the devs themself) then move on to a beta os (jellybean ) and leave everyone else in the dust, how is something ever going to be perfect on a beta os ??? not to mention Android is years form being perfect...

no source for ics or for anyone else for that matter , this thread right here promised source ( 18th June 2012, 08:42 AM) , but forces everyone to hack the mod onto there device . something many devs were able to do months before they said they would post there source (as I did ) . Got blamed and trashed so bad for it the XDA admins needed to jump in to keep the peace, I took it silently , but today again real class was shown by this team right here as I was banned form there 'new chat irc chanel' I was joining litterally to help others like I have been doing right here all along .

so I guess ill become silent again , and do my own thing . in the meantime only time will tell how an open source based (cyanogen mod) mod will get commited to CM or even pushed to public git hub

and in case anyone wonders im not being off topic the post I quoted was mentionning how I was not welcome to join (after I got banned for no reason ofc ) so I answered .

/end rant .
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
Peace please.

If the RDs fights among themselves, what will happen to us and the end users? We need your help guyz so please calm down. All of us knows how good you guyz are in sharing knowledge. Respect for XDA is must. :)
[Android Software/Hacking General [Developers Only]] Xylograph:
I for one am very impressed with the stuff you do regarding 'smali hacking' and believe it's not something 'everybody can do..'

the last thing we could use as 'porters' is a person with the right knowledge backing off here...

There probably have been 'things going on' in the past (I remember a question 'are you DaGr8? somewhere in PA from dark) where I don't want to get involved in, but I hope you will be welcome there..

I am sure we all have good intentions ;)
[Android Software/Hacking General [Developers Only]] sgtkwol:
I was trying to get info on decompiling/recompiling framework-res.apk in JB and found a way.

Get apktool 1.4.9 (google it)

java -jar apktool.jar if framework-res.apk

java -jar apktool.jar if SystemUI.apk

java -jar apktool.jar d framework-res.apk

make your edits to the "values" directory

java -jar apktool.jar b framework-res test.apk

extract resources.arsc from test.apk

replace resources.arsc that was extracted into framework-res.apk

copy and paste other files from the res/xml from CM10 into the new PA one

There may be unnecessary steps, but this is what I did.
[Android Software/Hacking General [Developers Only]] DaXmax:
Haha, the port for the Nexus S works fine, i got it fine using your gnex's build.... Im just kinda annoying that most users at my side kept asking to fix the wifi tether, wish it leads to no end. aka Endless bug. I actually wanted to compile ParanoidAndroid from sources, some devs says my specs would fine in compiling. So i have setup the environment. Only thing is im confused where to start. I used to compile roms for myself. After some reasons, i stopped. Anyway, your Team has lead a good features and i love it. Just one request from ya is, how do i start downloading the sources and merge my herring's source together... Thanks for your time reading thiis, moles. :)

Daniel