yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] molesarecoming:
jesus is setting up the sources on github right now. we were on bitbucket before with most projects switched to private. now more and more get published. the big cherry in there is hybrid/pad/pal - that i want to publish when its 100% mature because we all know what will hapen when that is out - all roms will use it, which is great, but its important to me that at this point it wont make any troubles. when aokp makes the big headlines for kanging another cool feature from who cares whence it came from people should think "wow, it works nicely, why didnt think google of that before" and not "great, it ****ed my phone, just like tablet mode." ;-)

PA 1.4 came out yesterday pretty much wrapping it up but i let users test that for a while and if im content then i'll first commit to cm9 as a "thank you" for allowing us to use their awesome base, then jesus will push it to git. when this is done you can compile full builds without zip file cut and paste. for now its better believe me, i wanted to give a few porters full code and they refused because its a huge effort to make it work. we even had to "fix" androids documentation engine doclava to get full builds since it really didnt like our changes so much,
[Android Software/Hacking General [Developers Only]] DaXmax:
Darn it, im out of thanks. Anyway thanks, that is a great news. I will be waiting for this... :)
[Android Software/Hacking General [Developers Only]] Xylograph:
The way I port this rom for my device in short :

Things needed :

Apktool + latest aapt (android sdk)

Main compiled PA rom (use D4rKn3sSyS compiled rom for 240 dpi device, use molesarecoming compiled rom for 320 dpi device)

(un)official CM9 nightly donor rom for your device

7-zip

Comparison tool (I use WinMergeU)

ADB (I prefer QtADB)

Working order :

unzip main and donor rom

copy system/framework/framework-res.apk from main rom to your apktool folder.

rename system/framework/framework-res.apk to framework-res2.apk from donor rom and copy it to your apktool folder.

decompile both framework-res.apk files with apktool.

compare and merge your device specific entries in the res/values folder and the res/xml folder using a comparison tool with both framework-res.apk files loaded.

compile your freshly modified framework-res.apk using apktool.

open your compiled framework-res.apk found in apktool/framework-res/dist folder and open the original framework-res.apk file of the main PA rom using 7-zip.

Overwrite the /res folder from main PA framework-res.apk with the /res folder from your modified framework-res.apk using 7-zip.

delete system/framework and system/app folders from donor rom

copy system/framework (including your modified framework-res.apk) and system/app folders from main PA rom to your donor rom.

copy pad.prop from main PA rom to your donor /system folder

compare both build.props to check for important entries/changes and don't forget to add the PA specific lines:

ro.cm.version=PARANOIDANDROID
ro.modversion=PARANOIDANDROID
ro.pa.version=PARANOIDANDROID-yourdevice-1.4a-18JUN2012-150205

delete the /system folder from your donor ROM.zip and copy your 'freshly ported' /system folder back to the donor ROM.zip

hope for the best after flashing and check ADB for errors if they appear.

Sounds easy, but there is more to it.. this is basic stuff.. just don't forget to use xda and google for more information regarding device specific stuff, errors and porting in general..

Please don't fill this thread with questions about how to use the mentioned software... there are most likely other threads for that !

Good Luck..
[Android Software/Hacking General [Developers Only]] JamieD81:
adb is one of the very few things left that isnt working :P

adb and *about phone* in settings.

ive had adb working in previous builds for myself but cant seem to get it to stick on this one, therefor no logcat for the time being :(
[Android Software/Hacking General [Developers Only]] sgtkwol:
Is this a framework.jar issue or framework-res.apk? http://pastebin.com/r5RsupUB

I know we need the epic ril, because epic 4g is a mix of all kinds of parts. Error is that the com.android.phone keeps crashing, and reminds you so often that it is almost unusable.
[Android Software/Hacking General [Developers Only]] molesarecoming:
if its the default cm kernel youre working with then i can confirm it doesnt work. its there for ages, i dont know why, its either a cm bug or theiur kernel simply does not support it. adb remount says "permission denied." theres a way around this and it sucks

adb push file /sdcard/file

adb shell

su

mount -o remount,rw /system

cp /sdcard/file /destination/
[Android Software/Hacking General [Developers Only]] molesarecoming:
its framework.jar

you are using old code it seems. the init function does crash because i throw intentional errors in there if certain conditions are not met but in 1.4 it doesnt exclaim "I/PARANOID:init( 2179): Crash! App= Dpi=0 Mode=0." the errors are catched and should not interrupt the program flow, i made a stacktrace there for logging purposes. i throw errors to not go if ( ... ) { if ( ... ) { if ( ... ) and so on. again, the error should be completely harmless. try working with newer code. 1.4 is out on nexus for high-res devices (320 dpi) and on s2 for mid-res devces (240 dpi).

the other errors seem more harmful to me, RIL crashes not so cool.
[Android Software/Hacking General [Developers Only]] JamieD81:
one of the users figured it out

Settings-Developer Options-Root Apps *change to "apps and adb"

works smooth now

now im sorting through the logfile to figure out why "About Phone" crash's in settings, its the only other bug that i can think of rest works fine.
[Android Software/Hacking General [Developers Only]] molesarecoming:
that was the first thing i tried. at least for nexus adb refuses to grant me permission. its not a big deal though, i can easily exchange the kernel and it'll work just fine.
[Android Software/Hacking General [Developers Only]] JamieD81:
wont dont have that luxury yet on i717 :( still waiting on kernel sources.

but i think this is where my settings about phone is FC'ing as i made it fc twice while in logcat and this is what doubled up at the end.

http://pastie.org/4116198
[Android Software/Hacking General [Developers Only]] molesarecoming:
Logcats clear ... its trying to interpret a string into a number, even prints out part of it, "unofficial" this comes from your build.prop. read xylographs post again, find out which property its *****ing about. Jesus will know exactly where the error is, his code.
[Android Software/Hacking General [Developers Only]] JamieD81:
yeah i looked into that when i saw it, there was only 1 line in build.prop that had "unofficial" it was "ro.pa.version=" i changed that and still same deal.
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Is very easy to understand though.

E/AndroidRuntime(21042): java.lang.NumberFormatException: Invalid double: "unofficia"

"rom.pa.version" must be something like

PARANOIDANDROID-galaxys2-1.4a-19JUN2012-120254

Then about phone will do some string manipulation leaving it like this

ro.pa.version=PARANOIDANDROID-galaxys2-1.4a-19JUN2012-120254

But if instead you have

ro.pa.version=ThisWill-Cause-crash

Well you know what wil happen, method will not be able to parse the double as there is no double.

EDIT: Look at how the string is filtered here

https://github.com/ParanoidAndroid/...b/ics/src/com/paranoid/preferences/Utils.java

Search for "getRomVersion"
[Android Software/Hacking General [Developers Only]] JamieD81:
very much appreciated that cleared it up nicely :D
[Android Software/Hacking General [Developers Only]] paxChristos:
Never mind, fixed it by going through the git sync rather than the bit sync

Pax
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Hehehe, we're still not 100% open source ;).

Also that command is wrong we're now hosting sources now on github, so check out our github

https://github.com/ParanoidAndroid

It will be something more like instructions here when frameworks is released

https://github.com/ParanoidAndroid/paranoid
[Android Software/Hacking General [Developers Only]] DaXmax:
Thanks, the device name must be the codename of the device right? Or it needs to follow the sources code name of the device? Be patient with me, i lost my skills of compiling quite a bit, its a bit.... of shame... :'/
[Android Software/Hacking General [Developers Only]] quentin330:
I tried this to port the galaxy s2 rom for i9100g, I followed every step but I get something very wierd, it booted the first time, acted like a tablet but as I saw the wallpaper for the first time the onlything I could do was openning the notification bar at the bottom, and it acted like there was no launcher...
[Android Software/Hacking General [Developers Only]] molesarecoming:
i know we had problems in the past just swapping the launcher, when i gave jesus a trebuchet build he ran it on s2 it would not work. yet when he compiled from source it did. my guess is theres plattform dependend overlays or something. the full source for that is out though. another thing you can do is putting another launcher into your zipfile for testing purposes and worry about treb later. throw nova/apex/etc into /system/app, then you should be good.
[Android Software/Hacking General [Developers Only]] mateorod:
If you want to save time and save yourself from any weird recompiling errors, throw in the -s flag. That will skip the source code, which is not only what takes all the time but also causes all the trouble.
[Android Software/Hacking General [Developers Only]] NeverGone\RU:
Hi everyone.

I ported (at least I tried to :) ) PA v1.5a to HTC Vision.

Everything went fine (or I've just been lucky), but there's a little problem.

As HTC Vision is a keyboard-enabled device, the software keyboard shouldn't be displayed when the hardware keyboard is open (by the way, I've ported this from a Desire HD ROM).

But for me it is still shown regardless of the hardware keyboard state.

There are some how-tos on fixing this issue, but they failed for Paranoid.

I looked through entire android.policy file, tried to reverse values I've found (which caused landscape lock and nothing more), tried to use common sense and replace some random mLidOpen-related values, compared this file side-by-side with the one from CM9 (also nothing, there are only line numbers different).

Does anyone have ideas on how could I fix that?

If there's a port for any other keyboard-enabled device, can somebody give me a link to it? Even this could help me :)

Any help would be greatly appreciated (because I just can't update a ROM without fixing this bug :))
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
I guess you can solve it by Modding framework-res.apk

Decompile both PA and CM9 framework-res.apk and match the values of /res/values/arrays with your original CM9, change it and recompile again. That should solve your problem.
[Android Software/Hacking General [Developers Only]] Xylograph:
Not sure if this will help you, but before decompiling the whole framework have you checked your bools.xml inside the framework-res ?

<bool name="config_forceDisableHardwareKeyboard">true</bool>

Maybe change this to 'false', since I think this is set to true by default on PA ?
[Android Software/Hacking General [Developers Only]] NeverGone\RU:
YEEAH! It worked!

Thank you very much guys! :)
[Android Software/Hacking General [Developers Only]] csking33:
So I ported this to the Droid x2, but my signal says preferred carrier instead of Verizon or whatever it's supposed to say. But I have a full signal and data works flawlessly. Any ideas?
[Android Software/Hacking General [Developers Only]] NeverGone\RU:
One more question: do I need to use fixed gapps for version 1.5a or just the one from goo.im?

Looking through latest PA threads, it seems that a 'special hack' is not needed for JB. Isn't that the case with 'old' ICS builds?
[Android Software/Hacking General [Developers Only]] molesarecoming:
yes, you need the hack for the old ics version because we still changed build.prop to set the phone into tablet mode. the new codebase does not touch build.prop and therefore you do not need hacks to make the market work.
[Android Software/Hacking General [Developers Only]] molesarecoming:
small update about open source,

the hybrid codebase is pretty much finished and im happy with it. its not perfect but good enough. theres small details i need to take care of before pushing it out, the complicated configurations for instance. my goal is to have something that can easily slapped onto anything without having to worry much. we'll need gerrit review and gits, jon will probably do that when he's back and finds time. and i'd like to push to cm aswell - and that will be the day we open the gits.

jesuses hybrid panel will probably stay closed source. thats just our nice little app that belongs to our identity, or so we feel. pa ports/builds may have it. other rom makers find the same source in the old ics settings repo, they can use that to control pad.prop (or /system/etc/paranoid/configurations.conf as of pa1.9.5).

that being said, hybrid codebase is one thing, but thats only half of what PA does. all the framework manipulations we did to make tabUI more friendly... we're not finished with this by far and it would be cool to work together then, with you all. right now we're just three guys, but you could join us to create official builds for your device and commit cool stuff to make the base better. it would be nice to have another established rom, next to cm and aokp, one that deals with hybrid in a good way.

and i can think of so much stuff to make it better: reading out which layout containers an app really brings and choosing them specifically, hybrid for activities (launchers appdrawer could be phone UI, homescreen tabUI, etc), extendable jellybean notification to change the foreground app on the fly, creating new awesome notificationcenter variants, cornerstone, etc. we will also welcome additions like toggles and whatnot.
[Android Software/Hacking General [Developers Only]] medicjunKie:
I'm porting PA from the LG G2x to my LG myTouch.

I've managed to partially(?) making it boot, as it bootloops in the bootanimations once i feel the small vibration, it just stays stuck there.

Here's my logcat

http://pastebin.com/fEjnqykg

Can anyone support me?
[Android Software/Hacking General [Developers Only]] *boy*racer*:
try this guide, it worked great for me http://xdaforums.com/showthread.php?t=1598713

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

can anyone help me please?

i have managed to port 1.9.2a to my ray, near everything works except GSM DATA (mobile internet). i go into apn settings but there is no list of apns. i tried to manually add an apn but when i hit save, it doesnt show up in the list and does not actually save.

Also, when in settings (tablet mode) apn settings doesnt open. i just think thats due to wrong dpi?

i have trying to fugure this out for a couple of days now and im getting very frustrated.

thanks for your support.
[Android Software/Hacking General [Developers Only]] music.soul:
22nd June 2012 - Xperia Neo / Neo V

Ported by me :)

For NEO

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

For Neo V

http://xdaforums.com/showthread.php?p=27746584

This is the version of ICS based on 1.5a

There would be a JB Version too soon
[Android Software/Hacking General [Developers Only]] quentin330:
I thought notification toggles in tablet mod would be fixed in 1.95 but anyway good work, ported with success 4 hours ago for Samsung galaxy s2 i9100g
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
So that means its not fixed yet. :-/

So whats the changelog?
[Android Software/Hacking General [Developers Only]] Note2Frat:
Change log can be found www.paranoid-rom.com. Correct that notification toggles aren't fixed yet in tablet mode. Also navbar only works in tablet mode, something got messed up from 1.9.4. I had them working in that build and in 1.9.5 they only appear in tablet mode.
[Android Software/Hacking General [Developers Only]] molesarecoming:
next update will be a revolutionary again.

we figured using hardcoded configs to push apps into this and that UI mode is not really the way to go. and its SUCKS to calculate them. right now we now offer three fixed modes: phone, phab, tablet, but the fact is, apps can bring as many layouts as they want, some only bring one and some 10. it is confusing that you say "tabmode!" and the app doesnt care because it only has a low-res container. even more confusing if you say "tabmode!" and the app defines its tabUI higher than we defined it in pad.prop.

the new code can set these layoutcontainers precisely, i have it running on my phone --- i cannot help but notice that this speeds up everything aswell, the phone feels snappier. i guess this is because we fed it hardcoded sizes in the past and he had to calculate the screensize again. now he's getting everything in the right size and apps come up immediately.

the panel will even be cooler, it will actually read out the layout containers of each app you select. you can chose from a list. and if an app only has one, you see it immediately.

for example, systemUI.apk, the app that display your bars (status/navigation/combined system) knows three modes:

layout-default

layout-sw600

layout-sw720

these values designate screensizes. nexus has a sw value of 360 for example, so by itself it will never reach into the higher containers. you could simply tap the last container and you'd have "tablet-mode", tap the second and you have phablet. first one, phone.

just for reference, thats how my properties.conf looks like at the moment (for tablet mode):

###################
# PARANOIDANDROID #
###################

## CONFIGURATION
%rom_dpi_min=160
%rom_dpi_max=320

## CONFIGURATION
%hybrid_mode=1
%system_default_layout=0
%user_default_layout=0
%system_default_dpi=0
%user_default_dpi=0

## WORKSPACE PREFERENCES
android.dpi=0
android.layout=0
com.android.systemui.dpi=220
com.android.systemui.layout=720

## SYSTEM PREFERENCES
com.paranoid.preferences.dpi=260
com.paranoid.preferences.layout=600
com.android.settings.dpi=245
com.android.settings.layout=720
com.android.calendar.dpi=260
com.android.browser.dpi=260
com.android.browser.layout=600
com.android.calculator2.dpi=160
com.android.calculator2.layout=600
com.android.email.dpi=230
com.android.email.layout=600
com.android.vending.dpi=220
com.android.vending.layout=1000
com.google.android.gm.dpi=250
com.google.android.gm.layout=600
com.google.android.talk.dpi=260
com.google.android.talk.layout=600

super happy about this, this will be the icing on the cake. :fingers-crossed:
[Android Software/Hacking General [Developers Only]] quentin330:
This is gonna be awesome
[Android Software/Hacking General [Developers Only]] KBizzle:
With the help of PureMotive, I was able to get PA 1.9.5 to boot on the GS3. I have a couple major problems and looking for some advice.

1. I have no audio in phone calls. It appears as though the phone dials out, as I can see the call timer start but I cannot hear a dial tone, nor any voices.

2. For some reason it wont install the stock android keyboard. In my app list I show that Android Keyboard is installed but the keyboard doesnt pop up at all.

Thank you in advance.
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
Those who want to enable lock screen rotation:

<bool name="config_enableLockScreenRotation">false</bool>

set it to true

and to show navigation bar in phone mode (will be permanent)

<bool name="config_showNavigationBar">false</bool>

set it to true
[Android Software/Hacking General [Developers Only]] molesarecoming:
if you want you can include this mini tutorial for your users. i dont know i think PA is straight forward but but people just dont dont get it. :-/

i make another one for changing phone config.

oh and its the new hybrid engine which can read the actual layout containers from the apk file. comes up in 1.96. i will make a new op for that - porting will become a breeze because you dont need to calculate *anything* anymore. no weird configurations, no treshold values, nothing.

edit:
[Android Software/Hacking General [Developers Only]] thebz1:
I've been working on a port of PA for the AT&T GS3 and I was having the same problems as you. I still haven't been able to fix the call audio bug however I fixed the keyboard one. The problem is in the framework-res.apk you used. It is defaulting to a non-existant hardware keyboard. To fix it, use this the attached framework-res.apk
[Android Software/Hacking General [Developers Only]] Xylograph:
You will need a cm10 system base.. You probably use evervolv aosp base..

Since our devices share almost identical hardware try using most of my 'lib' folder for your port and if not..you will at least need the libandroid_runtime.so from my port..

Also next time consider using 'code-wrap' for you logcat and give proper credits when you release these ports ;)
[Android Software/Hacking General [Developers Only]] *boy*racer*:
Hey guys. I have managed to port 1.95 to my ray fine with a few minor bugs. i managed to solve a couple but i am stuck on 1 particular one. its when i go into settings > storage, it just closes and comes up with "unfortunately settings has stopped". does anyone know what could be the problem?

is it within the framework-res.apk or framework.jar? or even build.prop?

hope someone could help me:)

thanks all

Edit: log cat in attachment
[Android Software/Hacking General [Developers Only]] molesarecoming:
logcat?
[Android Software/Hacking General [Developers Only]] brajesh.sharma87:
its the easiest thing to solve on earth. :D

just decompile both the framework and match the value of /res/xml/storage_list.xml with your original CM10 framework.

or if u dont want to take this pain too then just open both the framework with 7zip, go to res/xml folder and copy storage_list.xml from cm10 framework to your PA framework.

Done.
[Android Software/Hacking General [Developers Only]] *boy*racer*:
Well I tried doing that in the 1st place as mtp/ptp mass storage wasn't working. But then I edited vold.fstab and now it is but now I think I need to edit storage list to match it but I haven't got a clue what to write:)
[Android Software/Hacking General [Developers Only]] KBizzle:
Thanks. Yeah, I finally figured out the keyboard. I'm still looking into call audio. Had any breakthroughs yet?
[Android Software/Hacking General [Developers Only]] reider123:
Hmm..when I copy libandroid_runtime, this error came ever and ever:

Netd 1.0 starting

Netd 1.0 starting

Netd 1.0 starting

Netd 1.0 starting

Netd 1.0 starting

I ported paranoid using my cm10 port as base

but I always get errors:(

edit:maybe Netd 2.0 starting
[Android Software/Hacking General [Developers Only]] music.soul:
Okay!! Even i managed to Port Cm10 version ... thanks for guiding me *boy*racer*

So what did i do is ...

open 7-zip of Framework-res.apk from CM9 as well as of PA

I replaced the storage_list.xml directly by dragging ...

Yes! it did work and no force close in it... ... but the UI is bit different then the cm10 one... and there are no other option for USB storage

even Mass Storage don't work for me
[Android Software/Hacking General [Developers Only]] tonyp:
That's just wrong. You need to merge the framework files properly or you will run into problems. It's not just the storage_list.xml which is different.

Do this with both frameworks decompiled and a tool like "WinMerge".

There's a more detailed guide linked in the first post.
[Android Software/Hacking General [Developers Only]] Xylograph:
Then there is something wrong with your cm10 base..

Like I said.. try using most of my lib folder (except the folders hw and modules ofcourse) and see how that works..