yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] ZVM75:
Took the latest build of the CM10 and PA2.1

pulled out in two separate directory

edit build.props with 3 section as show:

ro.pa.version=PARANOIDANDROID-I9100-2.10-06SEP2012-134608

ro.cm.version=PARANOIDANDROID

ro.modversion=PARANOIDANDROID

don`t found pad.prop in PA ROM.

framework (folders: res/values and the res/xml) of ROM is identical.

replace system/framework and system/app folders in donor folder from PA-folder

copy folders with replaced res and apps into zip-file firmware.

In both cases, the firmware for one phone I9100

install it on top of a previously installed PA

wipe cache and dalvik

install Gapps

fix permission

and get stop loading of boot on the PA splash screen

I did not understand what I did wrong
[Android Software/Hacking General [Developers Only]] Megalith27:
if they are the same why do you need to res folder? you probably get signature issue....
[Android Software/Hacking General [Developers Only]] molesarecoming:
theres no pad.prop anymore. without /system/etc/paranoid/properties.conf a bootloop is likely. it is as bad as deleting build.prop.
[Android Software/Hacking General [Developers Only]] ZVM75:
paranoid/properties.conf i touch from existing install of PA.

build.prop i editing and put into archive with rom PA

---------- Post added at 09:59 PM ---------- Previous post was at 09:56 PM ----------

i touch them to compare and they a same...

In manual write what i mast replase this folders with pa data
[Android Software/Hacking General [Developers Only]] Megalith27:
Esli oni odinakovi, ne nado ix menat t.k. framework-res podisan, i esli pomenaesh, ne smojesh poddedalt tu je podpis.

English: if they are the same don't change them, as frameswork-res is signed, and you wont be able so sign with the same key

Sent from my A953
[Android Software/Hacking General [Developers Only]] molesarecoming:
anyone wanna help with that?

http://review.paranoid-rom.com/#/c/99/

http://review.paranoid-rom.com/#/c/98/

this layout stuff is not really my strength. in theory its super simple, just needs a couple of swaps and then its fine.
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Nice commit, will rebuild later today to test it.
[Android Software/Hacking General [Developers Only]] eugenesan:
Hi all,

I am afraid this thread is not the best place to post my question.

But will try, since I am trying to work with PA tree and devs here might have an answer :fingers-crossed:

I need help with understanding how should I work with packages inside frameworks_base.

I've spent some time looking for solution on teh net but didn't find any useful information.

Currently I use Eclipse to load frameworks_base projects.

But projects appears with broken dependencies (probably Dalvik basic classpath) and are not buildable.

And I have to rebuild whole project after every change.

I assume there is a better solution :confused:

Thanks

---------- Post added at 06:29 PM ---------- Previous post was at 06:23 PM ----------

I've tried this commit.

First good idea, but:

1. It breaks new Cm menu button.

2. It breaks hidden buttons (in Camera for example).

3. There were several additional glitches which I can't recall.

As alternative I propose just reversing buttons order.

Not a complete solution but will make life of both right and left handed easier and won't be so intrusive.
[Android Software/Hacking General [Developers Only]] Megalith27:
Can someone, please, post a similar porting guide for JB rom.

As far as I understood, there is additional lines (unfortunately I don't know which and would apreciate if some can point them out) to be added to build.prop file

copy of the system/etc/paranoid folder across

also copy of lib/libandroid_runtime.so across

These are minimum requirement to get ported rom to boot

But then there is a framework-res.apk part...which gives me constant bootloops or may be bootloops caused by missing line from build.prob

I managed to boot into my ported rom with modified framework-res.apk for my device...but now CM10 hase been updated and I am trying to include those changes and get bootloops...

Anyways, long story shot, I think it would be very useful is some can make a quicke write up on how to port CM10 based rom. And I believe I am not the only one hoping for this.

Many thanks in advance
[Android Software/Hacking General [Developers Only]] scott.hart.bti:
Quick question... sorry if this has been asked recently, havent been following closely.. Any change of ParanoidPreferences becoming open source anytime soon? It would be awesome if we could build it from source with the rest of the stuff.
[Android Software/Hacking General [Developers Only]] Androguide.fr:
Just add the paprefs version for your screen res to your prebuilts until then, so you don't have to add it manually after each build.
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
It may not be open source, but this is a good workaround:

I may add per-device prebuilts later, is a good idea
[Android Software/Hacking General [Developers Only]] Utacka:
I do that to my builds :)

Skickat från min GT-N7000 via Tapatalk 2
[Android Software/Hacking General [Developers Only]] Megalith27:
Ported PA 2.10 to Milestone 2, but every time phone reboots it reboots through Bootmenu and Reboot has to be chosen from there again in order for phone to boot.

Any inputs?

Thanks
[Android Software/Hacking General [Developers Only]] swapnilraj:
Can any help my phone Samsung Galaxy SL is in a bootloop I am trying to port 2.12.Here is the logcat http://pastie.org/4730350
[Android Software/Hacking General [Developers Only]] eugenesan:
Hi all,

Just wanted to share few patches that might be useful for someone:

1. pDroid for PA 2.1x:

pdroid-1.32-build.patch

pdroid-1.32-frameworks_base.patch

pdroid-1.32-libcore.patch

pdroid-1.32-frameworks_base-rils.patch *

2. Swapped Back and Recent buttons in tablet mode:

sysbar_reverse-1.0-frameworks_base.patch

* Tested only maguro and is a temporal solution for "too big" framworks.jar on PA2.11+.

As alternative you might invoke (MUST be edited for non Samsung platforms):

$ cd frameworks/base; rm telephony/java/com/android/internal/telephony/{HTC,LGE,Moto,Semc,Smdk,Sony}*RIL*
[Android Software/Hacking General [Developers Only]] molesarecoming:
eclypse will not be able to build most packages, not even certain if it can build anything at all. i use a regular editor and mmm.

mmm /frameworks/base builds framework.jar for instance. /frameworks/base/packages/SystemUI for sysUI, /packages/apps/Settings for settings, etc.

you do not need to build the whole rom when you make changes, just build the packages itself.

when i want to build the whole thing i use . rom_build DEVICENAME, in my case . rom_build maguro
[Android Software/Hacking General [Developers Only]] eugenesan:
Thanks for useful explanation.

I'll summarize some related stuff because it might be useful for others (in chronological order):

Setup build machine:

* Install Ubuntu 12.04 AMD64

$ apt-get install -y aptitude

$ aptitude -y upgrade

$ aptitude install -y gnupg flex bison gperf build-essential zip curl wget

$ aptitude install -y libc6-dev libncurses5-dev:i386 x11proto-core-dev

$ aptitude install -y libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386

$ aptitude install -y libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk

$ aptitude install -y tofrodos python-markdown libxml2-utils xsltproc

$ aptitude install -y zlib1g-dev:i386 build-essential build-essential:i386

$ aptitude install -y gcc-4.6-base:i386 libc6:i386 libc6-dev:i386 libdrm-intel1:i386

$ aptitude install -y libdrm-nouveau1a:i386 libdrm-radeon1:i386 libdrm2:i386 libexpat1:i386

$ aptitude install -y python-markdown zlib1g-dev:i386 pngcrush optipng meld schedtool git

$ ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

Setup local repository:

$ mkdir ~/andoird

$ cd ~/andoird

$ repo init -u git://github.com/ParanoidAndroid/android.git -b jellybean

$ sudo ln -sf $(pwd)/.repo/repo/repo /usr/local/bin/

$ prebuilt/linux-x86/ccache/ccache -M 10G

To sync local repository (required also after repository setup):

$ sync -j16 (wait for connection error)

$ sed -i '/android_packages_apps_paranoidpreferences/d' .repo/manifests/default.xml

$ sync -j16

To setup "build" environment:

$ . build/envsetup.sh

$ brunch pa_maguro-userdebug

Clean specific package to ensure source code modifications ended in .apk:

$ find out/target/ -name "SystemUI*" -exec rm -R '{}' \;

Rebuild specific package (must be invoked inside "build" environment):

$ mmm frameworks/base/packages/SystemUI

Build clean release:

$ USE_CCACHE=1 ./rom-build.sh maguro clean

* Remember to restore ParanoidPreferences.apk from latest release.

Updates summary might be gathered from:

http://review.paranoid-rom.com/#/q/status:open,n,z

http://changelog.bbqdroid.org/#maguro/cm10/next

https://github.com/ParanoidAndroid

https://github.com/CyanogenMod

Also you might head to next sources for additional information:

https://github.com/ParanoidAndroid/android

http://devtcg.blogspot.com/2009/03/building-running-and-debugging-android.html

http://www.vogella.com/articles/Android/article.html

http://developer.android.com/design/get-started/ui-overview.html

http://xdaforums.com/showthread.php?t=1755243
[Android Software/Hacking General [Developers Only]] dhk.-:
guys i need paprefs for mdpi.... in every build i have to use sgsII paprefs and if i change of workspace my phone its so ugly..... and somebody in my threads comment that the bug of reboot to recovery when you change of workspace its caused by Superuser app.... i will look that later.... but i really need paprefs for mdpi.... can somebody from PATeam compile it for me? i believe that im the only one supporting mdpi devices
[Android Software/Hacking General [Developers Only]] pratikmore:
+1
[Android Software/Hacking General [Developers Only]] molesarecoming:
settings especially uses a ton of providerinput. your best bet would be to take a nightly that is very very close to our release dates. like 1.4 came out last monday i think, that's when i'd fetch my nightly from. you can also compile settings which is probably not such a bad idea - other porters though have somehow managed to make do without. i myself can only guess as i really have never ported anything myself. also make sure to study logcats, its the perfect tool to track down issues. i think a page before we already solved a settings blowup via logcat.
[Android Software/Hacking General [Developers Only]] bigfau:
Yeah I read that. I noticed that there was not a ro.pa.version anywhere in the build prop. This could be over my head. Lol
[Android Software/Hacking General [Developers Only]] quentin330:
I've finnaly got it working on i9100g, was easier as I thought thanks to this thread.

I think I'm gonna make a thread for it in i9100g android development saying that everything hasn't been tested so that there could be some bugs.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Can you or someone help out with compiling settings, please? When I try to compile using existing CM9 directories, I get stuck on the paranoid settings.

packages/apps/Settings/src/com/android/settings/paranoid/RomUtils.java:22: cannot find symbol
symbol : class ExtendedPropertiesUtils
location: package android.util
import android.util.ExtendedPropertiesUtils;
[Android Software/Hacking General [Developers Only]] molesarecoming:
we were too quick posting the source. extprop is a class not yet meant to be public because we're still experiencing troubles.
[Android Software/Hacking General [Developers Only]] quentin330:
This is my thread http://xdaforums.com/showthread.php?t=1726759 (a lot copied from D4rKn3sSyS' one) correct my mistakes if I'm wrong in something. I wrote that D4rKn3sSyS made the rom for the galaxy s2 because he did the thread, but I'm not sure if it's true?
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
Same was happening with ParanoidBackup, I had taht import for testing purposes and I had to remove it. For now you will not be able to build it sadly :/

I own the device but the work is from the Project. I just mantain it :)
[Android Software/Hacking General [Developers Only]] DragunKorr:
quick question maybe someone can help!

I compile aokp and cm9 often for sensation!

trying to sync ParaniodDroid from git at no success so i cloned each package from hub!

manually put packages in build folder

the only one that i have no clue what todo with is android_external_doclava!

Need help for what to rename folder as... and proper placement thank you!
[Android Software/Hacking General [Developers Only]] paxChristos:
Use github, that said, 5 or 6 packages aren't available yet, so it doesn't sync completely (check your .repo folder, most of it should be there, but not enough for a complete sync)

Pax
[Android Software/Hacking General [Developers Only]] quentin330:
My port for i9100g is fully working, but I can't find the paranoid wallpapers, what file is it and where do I need to put it?

Another question : will my port be added to the official website?
[Android Software/Hacking General [Developers Only]] Floatshow:
I've made a version of this ROM for the One X.

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

EDIT : Nevermind, it is now fixed.
[Android Software/Hacking General [Developers Only]] Sine.:
Quoted from molesarecoming thread,
[Android Software/Hacking General [Developers Only]] Simian Drugs:
Hey molesarecoming, what is the wallpaper in the top screenshots? Could you possible provide a link for that?
[Android Software/Hacking General [Developers Only]] Sine.:
Seriously? Just read the previous post...
[Android Software/Hacking General [Developers Only]] Simian Drugs:
Yikes. I'm sorry.
[Android Software/Hacking General [Developers Only]] sgtkwol:
Decompiling framework-res.apk.

I'm having an impossible time decompiling framework-res.apk. Getting errors with all of the res/"x-large" directories, which prevents me from recompiling. I tried grabbing those directories from CM source, but it gave "password_kbd_qwerty.xml:41: error: Error: No resource found that matches the given name (at 'keyIcon' with value '@drawable/sym_keyboard_delete_holo')" for all of the "x-large" stuff. This seems to be the last thing stopping me from porting, completely.
[Android Software/Hacking General [Developers Only]] quentin330:
The specific options from CM9 as vibration intensity and backlight toggle don't work, in which file do I have to search to fix it?
[Android Software/Hacking General [Developers Only]] molesarecoming:
not sure exactly what you are trying to do there. why do you need to decompile framework-res?
[Android Software/Hacking General [Developers Only]] molesarecoming:
i can only support pa. everything beyond that, no idea. theres hardware overlays involved that we do not have on nexus. read xylographs text again, make sure you have a fitting base, thats the key.
[Android Software/Hacking General [Developers Only]] quentin330:
For those who have the same problem, I fixed it by taking the galaxys2setting.apk from cm9 and not from paranoid as the paranoid one is made for i9100 and not i9100g
[Android Software/Hacking General [Developers Only]] Megalith27:
Can someone please, tell what additional lines need to be changed/added in build.prop file in order to port JB based PA

other than these three

ro.cm.version=paranoidandroid

ro.modversion=paranoidandroid

ro.pa.version=paranoidandroid-pa_galaxys2-1.5a-25jun2012-170644

thank you very much
[Android Software/Hacking General [Developers Only]] Utacka:
Any news on when or if parapref will be included as prebuilt from github?

I already do that on my builds but would be nice not to download a whole rom just to extract 1 app on every update. :p

Skickat från min GT-N7000 via Tapatalk 2
[Android Software/Hacking General [Developers Only]] molesarecoming:
im all for it, think its a great idea. i know that jesus was currently rewrite it to make it superuser free so im not sure he's got time for it. i will ask...
[Android Software/Hacking General [Developers Only]] molesarecoming:
we dont touch cm's version

ro.cm.version=10.0.0-RC0-xxxxxxx

otherwise

ro.modversion=pa_xxxxxxxxx-2.xx-xxxxxxxxxxxxxxx-xxxxxxx

ro.pa.version=2.xx

i think thats it.
[Android Software/Hacking General [Developers Only]] Utacka:
Hey, good news :)

I have a issue with my PA rom, building from source and most of my user have network disconnect and it only happens on deep sleep. This never happened on cm10 rom and coming here as my last ressort. Rom can be found on my signature if anyone have a gt-n7000 to try from.

Skickat från min GT-N7000 via Tapatalk 2
[Android Software/Hacking General [Developers Only]] dhk.-:
I'm facing the same bugs in my builds... I think that could be the lot of changes to libwebcore....

Enviado desde mi Live with Walkman usando Tapatalk 2
[Android Software/Hacking General [Developers Only]] xredjokerx:
I have a random question, please excuse me if its inappropriate, but I dont know where else to get help.

I am trying to get the notification to sit flush with the bottom of the screen when the "extended desktop" option.

I've decompiled the framework but I don't know where the offset for this option is. Please see attached picture.. I want to close the gap between the notification center and the bottom, over the text taht reads "phonegap notifications and jquerry mobile..."

Thanks!
[Android Software/Hacking General [Developers Only]] molesarecoming:
theres a space sitting there. i mean literally the android object/class "space." looks for /res/layout/systembar.xml and you see it right away. zero it out when ext-desktop is active. you might aswell push it to our gerrit then, its useful.
[Android Software/Hacking General [Developers Only]] D4rKn3sSyS:
PA gerrit has been updated to v2.5-rc0, and replication plugin has been enabled aswell, we're ready to go. Sadly all commits were wiped due to database change (MySQL -> H2), so if you guys had some interesting commit, feel free to push again ;)
[Android Software/Hacking General [Developers Only]] xredjokerx:
I can't find this "systembar.xml" anywhere... am I missing something? Its not in /layout or /values...
[Android Software/Hacking General [Developers Only]] molesarecoming:
frameworks/base/packages/sysui/res/layout/systembar.xml

i was wrong though, the space is in systembarnotificationpanel.xml

<!-- lift the panel up off the status bar while leaving a touchable are -->
<Space
android:id="@+id/system_bar_notification_panel_bottom_space"
android:layout_height="36dp"
android:layout_width="478dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
/>
[Android Software/Hacking General [Developers Only]] xredjokerx:
I tried this

<!-- lift the panel up off the status bar while leaving a touchable are -->
<Space
android:id="@+id/system_bar_notification_panel_bottom_space"
android:layout_height="0.0dip"
android:layout_width="0.0dip"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
/>

and

<!-- lift the panel up off the status bar while leaving a touchable are -->
<Space
android:id="@+id/system_bar_notification_panel_bottom_space"
android:layout_height="0.0dip"
android:layout_width="0.0dip"
android:layout_alignParentRight="false"
android:layout_alignParentBottom="false"
/>

and replaced it in my /system/app/ then wiped cache and dalvik, but still no luck. Thanks for all your help anyway moles! I don't know if I'm doing something wrong but I don't want to keep bothering you. I appreciate it!! :)
[Android Software/Hacking General [Developers Only]] Roladriz:
Try

<!-- lift the panel up off the status bar while leaving a touchable are -->
<Space
android:id="@+id/system_bar_notification_panel_bottom_space"
android:layout_height="0dp"
android:layout_width="0dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
/>
[Android Software/Hacking General [Developers Only]] xredjokerx:
but the stock is DIP not dp... in all of the XML
[Android Software/Hacking General [Developers Only]] Roladriz:
I wonder if your decompiler is making it that way. Here is what mine looks like inside the source folder.
[Android Software/Hacking General [Developers Only]] xredjokerx:
Oh, strange. Maybe you are right...

What are you using to decompile? I am using APK Multitool... >_>

could you maybe edit it and recompile and upload for me to test? :D If it is too much trouble, don't worry about it haha

Thanks for looking into it though!!
[Android Software/Hacking General [Developers Only]] Roladriz:
I'm not decompiling. I'm syncing. Come to think of it though, it shouldn't matter. If it's decompiling it to "dip" it should compile back to normal, unless it messes it up. I can set those to 0 and make SystemUI and see if that helps you.

EDIT: Post your SystemUI.apk please.
[Android Software/Hacking General [Developers Only]] xredjokerx:
Sure, here is my systemui

http://db.tt/LnaUTqmt
[Android Software/Hacking General [Developers Only]] Roladriz:
K I will look at it tomorrow (it's 1 am) and respond via private message to keep thread clean.
[Android Software/Hacking General [Developers Only]] Roladriz:
Try this. If it doesn't work, dm me and we'll see what we need to do to get it working. :)

https://www.dropbox.com/s/rjc2g7t09e0ni1k/SystemUI.apk
[Android Software/Hacking General [Developers Only]] xredjokerx:
....

It worked. Thanks so much. I don't know where I went wrong, I've used apk multi tool to edit my framework-res.apk and it has always worked... what did you use?

Thanks again
[Android Software/Hacking General [Developers Only]] Roladriz:
Decompilers can be tricky mate. I have a linux box set to build developers ROMS from source. I don't want to go too far off topic, but all I did was change those to "0dp" then in terminal I did make SytemUI and it built it. The folder is decompiled already so to speak. I just had to compile it. Glad it worked out for you. :)

I'm registered but have never used gerrit, so if anyone is up to teach, ( :) ) dm me and let me know. Otherwise, here it is

<!-- lift the panel up off the status bar while leaving a touchable are -->
<Space
android:id="@+id/system_bar_notification_panel_bottom_space"
android:layout_height="0dp"
android:layout_width="0dp"
android:layout_alignParentRight="true"
android:layout_alignParentBottom="true"
/>

EDIT: Done http://review.paranoid-rom.com/#/c/13/

Lithid is the man :)
[Android Software/Hacking General [Developers Only]] chiefy009:
Trying to port this is Xperia S, CM9 version as CM9 camera works CM10 doesn't

First time porter / developer any tips or special tools I need?
[Android Software/Hacking General [Developers Only]] Mahdi786:
Hi Dark or Moles, I've been building paranoid since you open sourced, I just noticed something yesterday and I wanted to ask, basically when I open my recents on my i9100 the background is not fully transparent (more black) but on my i9000 its fully transparent, is that something in the overlays, I thought they would be using the same source frameworks/base/packages/SystemUI, so should be the same?

By the way Moles I got rid of the gap at the bottom of the statusbar with your advice by making the height from 36dp to 0dp and it looks good thanks, its ok for me because I'm always on extended desktop but for people that use the systembar it will cover it when opened, I don't know how to make it switch between 36dp to 0dp.

Edit: is there anyway of putting the clear all button in recents at bottom of the screen?

Thanks again for this great rom
[Android Software/Hacking General [Developers Only]] molesarecoming:
i saw the commit but in that shape we cant merge it because it breaks functionality. on a normal phone it will overlay the buttons for instance. this mod makes sense on a hardware crippled phone with homebuttons. its missing a piece of code that calculates the offset. it would set it to zero whenever ext-desktop is activated or whenever the user switches off the navbar in general.

jesus implemented the recents button, i think he has since been wrking on it and it might look different now.
[Android Software/Hacking General [Developers Only]] xredjokerx:
Also extended desktop makes recent apps have a gap as well