yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] dreamsforgotten:
You need stick mount from play store

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] zombioptic:
Yeah, that's what I'm using. Maybe I botched my soldering job. I used an older Samsung cable and it looked like I could just put a blob of solder to connect the fourth prong to the black wire. Meh... Shoulda just spent the dollar on Amazon.
[Samsung Galaxy Nexus] zombioptic:
Found an otg cable on Amazon for only $0.70 with free shipping. Probably coming from China, but whatever. I'm still sad though. I worked hard on making the one I made beautiful, but I must have screwed up the soldering. Oh well.

http://www.amazon.com/gp/aw/d/B005FUNYSA/ref=mp_s_a_1?qid=1355407005&sr=8-1&pi=SL75
[Samsung Galaxy Nexus] Anon9mouz:
When u hit make does it overwrite what's already there to add or fix changes u did? Bc I'm deleting source once again idk what's the deal. First time around it builds just no root or baseband. 2nd and 3rd time around just a black screen then stuck at Google splash so idk what I missing. Do I need that framework/base/etc file for 4.2.1 or is that only for 4.1.2? If so then I guess that's what the problem is I hope:confused::(

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
Believe thats only 4.1.2, did you grab the vendor files?
[Samsung Galaxy Nexus] Anon9mouz:
Yes I did and the two zips from u so idk try this one more time with fresh sync

__________________________________________________
[Samsung Galaxy Nexus] Anon9mouz:
now i get this error syncing i give up

Fetching projects: 100% (329/329), done.

Checking out files: 100% (4980/4980), done.ut files: 0% (2/4980)

Checking out files: 100% (6764/6764), done.out files: 43% (2971/6764)

Syncing work tree: 32% (106/329) error: revision refs/tags/android-4.2.1_r1 in platform/external/libnfc-nci not found
[Samsung Galaxy Nexus] Anon9mouz:
Now every time I delete my working folder and delete source and try to resync I keep getting that error wtf

__________________________________________________
[Samsung Galaxy Nexus] JediNinjafication:
Uuuumm OK dreams. Had the HDD go out. Pulled parts from that computer it and put into different computer.. But is a desktop. Can i pull one of my other HDD and put it in a caddy... install/setup and run from that one? The one in this borrowed computer is way small. ..

I'm not putting my other one back together. It's gonna be parts. Screw all in ones. They are very bad words. Still trying to work mommy over for a sweet birthday present of cash! Lol would make my life easier as well as less questions from me.

*The Ninj-ESS*
[Samsung Galaxy Nexus] Anon9mouz:
I guess a reboot corrected to where it will build now and so far all looks well

__________________________________________________

---------- Post added at 09:17 PM ---------- Previous post was at 09:16 PM ----------

Now to figure out cherry picking

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
git remote add blah blah.com

git cherry-pick commitnumber
[Samsung Galaxy Nexus] Anon9mouz:
Yea I get that just gonna be hard picking them tho lol. Also build is love but still can't get root to work I don't get it

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
yeah took me awhile too, just gotta keep playing with it while using someone elses git as an example until you get it, good learning experience.

---------- Post added at 09:34 AM ---------- Previous post was at 09:32 AM ----------

EDIT lol caddy would probably work.
[Samsung Galaxy Nexus] ÜBER™:
We told you what to do already. Add the perms_set for the su binary and superuser in the updater script.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Anon9mouz:
I know but I looked at ur script and its the exact same as mine but u have root and I don't hmm

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
And you have the su binary in /system/xbin and superuser.apk in /system/app? Where did you get em if so? I took mine from a SuperSU zip.

Sent from my Nexus 7
[Samsung Galaxy Nexus] Anon9mouz:
Yes sir but I'll pull from ur ROM and see if it changes it

__________________________________________________
[Samsung Galaxy Nexus] Anon9mouz:
OK uber it worked lol thank u. I feel like a dummy bc more I think about it I guess the su are apk specific towards super su or superuser and I guess I had a superuser su with supersu apk so I guess that's why it wouldn't work but I'm just guessing but urs worked and I got a fully functional build:D

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
*Highfive* Your on your way. Good luck bud. :cool:

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Anon9mouz:
I want to give a big shot out, big thank you and hug from Dreams, Uber, and IT for the much help and dealing with my building for dummies questions but thanks for hanging in there and anyone else I forgot thank you guys and gals too. So now for cherry picks

Only two I need is notification toggles and 3-1 reboot options everything else can come later.

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
Should be easy with clean AOSP check out muzy's github and see where he got his from and cherry pick from them.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Anon9mouz:
Also how do u take out the system update and just leave the option for update profile and prl bc there's actual update system

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
You mean keep Sprint System Updates and remove the System Update option right? Should be a couple of strings and bools i think? Im not sure, search through some githubs.. im sure somebody has that as a commit.
[Samsung Galaxy Nexus] IT_Blackbelt:
https://github.com/ITBB/platform_pa...mmit/21a245176b3da684716093c15d7235c26688af98
[Samsung Galaxy Nexus] Anon9mouz:
Is it OK to leave it there?

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
I linked you to how to do it above^
[Samsung Galaxy Nexus] Anon9mouz:
Lol I didn't see that. I need to check ur git out but what dreams said in his tutu even tho u cherry pick u need to edit settings too so I need to see how ima do that

__________________________________________________

---------- Post added at 02:53 PM ---------- Previous post was at 02:44 PM ----------

So how do I go about applying it manually or cherry picking. This is something I gotta learn now so maybe I need to learn git before I try to do ne thing. Bc git looks foreign to me lol:p

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
It tells you what file to edit, and what is in RED is what is removed, what is in green is what is added ;).
[Samsung Galaxy Nexus] Anon9mouz:
Im having trouble figuring out what file it is but do I have to decompile a file in my rom or can I edit this in my working folder and rebuild. I understand how to edit it just don't know where to edit or exactly what file its calling for.

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
When cherry-picking, you edit if there are errors, it will tell you which files had problems and you would have to edit them. Hand coding is probably the better idea so you can get used to seeing the code, but if you wanted to cherry pick that little mod just to test you can

change to your packages/apps/Settings directory

git remote add itbb git://github.com/ITBB/platform_packages_apps_settings.git

git fetch itbb

git cherry-pick 21a245176b3da684716093c15d7235c26688af98
[Samsung Galaxy Nexus] Anon9mouz:
Nvn

__________________________________________________

---------- Post added at 03:03 PM ---------- Previous post was at 03:00 PM ----------

See so I can manually edit a lot of things in my working folder ah OK see I understand more having to do things manual then ne thing. I swear building from source is harder than porting

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
Edit before building, in this case, the git is the packages/apps/settings, so thats where you would also start on your PC, and on the git it tells you the file is res/xml/device_info_settings.xml

So , packages/apps/Settings/res/xml/device_info_settings.xml is the full file path.
[Samsung Galaxy Nexus] Anon9mouz:
OK see I had to click on something I guess viewing from a PC is a lot different than phone see now I get it before I couldnt see the path but now I do I guess I just need to get on the PC

__________________________________________________

---------- Post added at 03:09 PM ---------- Previous post was at 03:07 PM ----------

So if I edit do I have to hit make -j8

Or I can hit makeotapackage -j8

And also every time u hit make does it overwrite the previous stuff?

__________________________________________________
[Samsung Galaxy Nexus] ÜBER™:
When your done,

make clean -j8

When it says its cleaned out the entire build directory then make sure you are building for toroplus

. build/envsetup.sh

lunch (select the # for toroplus)

Then

make -j8
[Samsung Galaxy Nexus] IT_Blackbelt:
I pretty much do a make clean everytime, it removes the out folder and the next make will add it back, dreams would probably be able to explain this better.

As far as the make command, I always do make otapackage -j8. otapackage just zips it for you
[Samsung Galaxy Nexus] Anon9mouz:
Damn so every time u edit u gotta do make clean see that's probably my past problems hmm ok

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
I was told that if you only edit your vendor files, you can just do a make otapackage, but anything else you should probably do a make clean.
[Samsung Galaxy Nexus] Anon9mouz:
Hmm OK see I just learn a tons of stuff that I didn't know thank u. I'll probably still be asking questions tho :p

__________________________________________________

---------- Post added at 04:15 PM ---------- Previous post was at 03:19 PM ----------

On this make dreams said to do make before u do make ota package. But u can just do make ota package after I do make clean??

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
I do and it works, makes and than zips it for you.
[Samsung Galaxy Nexus] Anon9mouz:
Ah OK thanks

__________________________________________________
[Samsung Galaxy Nexus] something15525:
Hey, i'm trying to build a AOSP build of 4.2 for my Sprint GNex, and I'm a little confused on where the vendor files should go...

I'm following this tutorial: http://dreamsforgotten.net/gnexbuild.html

I was just wondering where exactly the 4.2_vendor files go inside my source directory? I synced with google's AOSP repo.

Thanks!
[Samsung Galaxy Nexus] dreamsforgotten:
In your main build folder create the folder vendor from the files you download extract into that folder

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Alright, so I've got this setup:

Source directory: /home/builder/source

In the folder are these folders:

abi bionic bootable build cts dalvik development device docs external frameworks gdk hardware libcore libnativehelper ndk packages pdk packages pdk prebuilts .repo sdk system

Also the file:

Makefile

I made a folder called vendor in the source directory and extracted the 4.2_vendor-master.zip file into it and came out with this:

vendor/broadcom

vendor/dreams

vendor/imgtec

vendor/invensense

vendor/nxp

vendor/samsung

vendor/widevine

Does this look right?

Also, a few more things if possible. I'm following your tutorial on your site for toroplus 4.2 android and I've got a few more questions...

Your tutorial says to edit files inside of platform/device/samsung/toroplus.

I found system.prop inside of device/samsung/toroplus. What is the platform folder about? Or am just looking to far into this....

Also, it says:

The top of that file is a line that reads:

rild.libpath=/vendor/lib/libsec-ril_lte.so

You need to change that line to make it read like this:

rild.libpath=/vendor/lib/libsec-ril_lte.so

First of all, I see no difference between the first and second lines. Second, my file says:

rild.libpath=/vendor/lib/libsec-ril.so

I can't find libsec-ril.so, but I did find libsec-ril_lte.so inside:

vendor/samsung/toroplus/proprietary

Next up. The section of the tutorial that says to remove:

<integer-array name="config_tether_upstream_types">

<item 1 /item>

<item 4 /item>

<item 9 /item>

From config.xml, mine is located in device/samsung/toroplus/overlay/frameworks/base/core/res/res/values, and it says:

<integer-array translatable="false" name="config_tether_upstream_types">

<item>1</item>

<item>4</item>

<item>7</item>

</integer-array>

Should I still delete this? Or am I looking in the wrong location?

That's about it for now, I know its a lot. Thanks for the help in advance!
[Samsung Galaxy Nexus] IT_Blackbelt:
yes
[Samsung Galaxy Nexus] something15525:
Great, thank you. I edited the original post with a little more information, maybe you could take a look at it? Thanks for the help. :D
[Samsung Galaxy Nexus] IT_Blackbelt:
platform just means the start of your android product, easier than saying home/yourname/android/yourromname/device/samsung/toroplus

Should read:

The top of that file is a line that reads:

rild.libpath=/vendor/lib/libsec-ril.so

You need to change that line to make it read like this:

rild.libpath=/vendor/lib/libsec-ril_lte.so

Yeah you should still delete, Its either a typo or 4.2.1 changed the last line, either way if you leave that section, your tether wont work right.
[Samsung Galaxy Nexus] something15525:
Awesome, thank you. I'm just wondering about the location of the /vendor/lib/libsec-ril_lte.so file, since the only place I can find it is at:

/vendor/samsung/toroplus/proprietary/libsec-ril_lte.so

Which isn't what the location in the file says. I'm just trying to understand why it says /vendor/lib/libsec-ril_lte.so instead of what I found.
[Samsung Galaxy Nexus] dreamsforgotten:
When you build the rom that file will be put in vendor/lib you need to change ril.so in that file in the instructions to ril_lte.so i screwed up on the guide

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Okay, awesome, so I made all those changes and I'm building it right now. Wish me luck! :D

Spoke too soon, I got this:

frameworks/native/libs/gui/SurfaceComposerClient.cpp: In member function 'android::status_t android::ScreenshotClient::update()':
frameworks/native/libs/gui/SurfaceComposerClient.cpp:593:8: error: missing template arguments before 's'
frameworks/native/libs/gui/SurfaceComposerClient.cpp:593:8: error: expected ';' before 's'
frameworks/native/libs/gui/SurfaceComposerClient.cpp:594:9: error: 's' was not declared in this scope
frameworks/native/libs/gui/SurfaceComposerClient.cpp:596:12: error: 's' was not declared in this scope
frameworks/native/libs/gui/SurfaceComposerClient.cpp:599:1: error: control reaches end of non-void function [-Werror=return-type]
cc1plus: some warnings being treated as errors
make: *** [out/target/product/toroplus/obj/SHARED_LIBRARIES/libgui_intermediates/SurfaceComposerClient.o] Error 1
make: *** Waiting for unfinished jobs....

Looks like a problem with the method I added in SurfaceComposerClient.cpp. I added the function declaration as well in the header file....any ideas?

Also, one more thing. Do I need to follow the instructions for 4.1.2 above the 4.2 instructions? Because I saw some stuff about recovery that wasn't mentioned in the 4.2 section and I don't want to write over my custom recovery...
[Samsung Galaxy Nexus] something15525:
I fixed it, seems good so far. I changed this:

Original:

status_t ScreenshotClient::update() {

sp s(ComposerService::getComposerService());

if (s == NULL) return NO_INIT;

mHeap = 0;

return s->captureScreen(0, &mHeap,

&mWidth, &mHeight, &mFormat, 0, 0,

0, -1UL);

}

Modified:

status_t ScreenshotClient::update() {

sp<ISurfaceComposer> s(ComposerService::getComposerService());

if (s == NULL) return NO_INIT;

mHeap = 0;

return s->captureScreen(0, &mHeap,

&mWidth, &mHeight, &mFormat, 0, 0,

0, -1UL);

}

Still wondering if I needed to do the changes listed in 4.1.2 or not...
[Samsung Galaxy Nexus] ÜBER™:
Think about it, if its not in the 4.2 section and you're working on 4.2 do you think its necessary? :D:p

Sent from my Nexus 7
[Samsung Galaxy Nexus] something15525:
You make a good point. The only reason I thought I might need to complete the above steps as well is because of this line:

The principle for android 4.2 is the same as 4.1. However, google has changed the game up just a bit and given up the device files for toroplus and set that part up almost 100% for you.

Taken from the beginning of the 4.2 section of the tutorial. But if you say I don't need to, I'll trust your opinion. Thanks! :)
[Samsung Galaxy Nexus] ÜBER™:
Just bustin your nuts. Dreams does the same thing to me when I attempt to confirm things. :cool:

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] something15525:
I know man, no hard feelings or anything. :)

So with this package I'm building, is it going to replace my current recovery? Just wondering if I need to make some changes for that to not happen.

Thanks!
[Samsung Galaxy Nexus] something15525:
Alright, so I finished a build and flashed it, and it booted up fine, but I got this error:

Sorry I can't do a screenshot, but it almost instantly goes back to the "android" bootlogo:

Starting up:

Booted up, with the error showing up right away:

Then it reboots:

Any suggestions?

Sorry, i just linked the images and don't know how to make them smaller in the post...if anyone does let me know and I will. :P
[Samsung Galaxy Nexus] dreamsforgotten:
Your images don't work but to your other question, yes delete recovery as instructed by 4.1 section

Sent from my Galaxy Nexus using Xparent Skyblue Tapatalk 2
[Samsung Galaxy Nexus] something15525:
Alright thanks, I think I fixed the images. Let me know what you can find!
[Samsung Galaxy Nexus] MBQ_:
How does one cherry pick code? Using Ubuntu 12.10, tried running the commands in the tutorial on Git, but it wasnt working, tried to add my first repo and I got some error when trying this: $ git push origin master

I forget what the error is/was, but I know that didnt work. Anyways!! Im trying to cherry pick something from review.cyanogenmod.org, but it keeps saying I dont have a .git blah blah blah.

Is it being difficult because Im using Ubuntu 12.10, or am I just a noob? Thank you all in advance
[Samsung Galaxy Nexus] Anon9mouz:
I thought the same too

__________________________________________________

---------- Post added at 02:13 PM ---------- Previous post was at 02:12 PM ----------

Look like 5 or so pages back bc I asked the same thing and he told me how to do something git remote blah blah

__________________________________________________
[Samsung Galaxy Nexus] IT_Blackbelt:
Sprint extentions can be deleted out of your vendor files, its not needed and will always FC.

---------- Post added at 02:27 PM ---------- Previous post was at 02:25 PM ----------

change to the correct directory,

git remote add remotename remoteaddress

git fetch remotename

git cherry-pick commitnumber
[Samsung Galaxy Nexus] something15525:
So I looked into the Sprint Extension not working, and I found this:

http://xdaforums.com/showpost.php?p=34284355&postcount=931

So I deleted the apk from system/apps and it no longer shows up with the error message. Problem is, it boots up for only a few seconds, before it goes right back to the "android" bootlogo and then goes back to the setup screen, then repeats indefinitely. Should I do a logcat or something?
[Samsung Galaxy Nexus] ÜBER™:
Last_kmsg would also prove useful. Did you flash a gapps package?

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] something15525:
I did flash a gapps, it was this one: http://goo.im/gapps/gapps-jb-20121212-signed.zip

Also, I'm fairly new to this. A logcat is just:

adb logcat > problem.txt

How do I do a last_kmsg?

Thanks!
[Samsung Galaxy Nexus] MBQ_:
Anon, thank you. :)

Sorry for not looking back prior to asking
[Samsung Galaxy Nexus] ÜBER™:
Last_kmsg is a file in /proc/. As for logcat yes, that simple.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] MBQ_:
Ditching 12.10, going back to good ol' 10.04.4, time to put my 1TB external HDD to work.

Cherry-picking is waaaay easier than I thought. Hahaha
[Samsung Galaxy Nexus] ÜBER™:
Cherry picking is laziness :p learn to hand code it. :silly: that is what i intend to do anyways. Why not just use 12.04LTS? It works just fine, i tried 12.10 and it wasnt nearly as put together as 12.04 for some reason... then again i got it right when it came out.
[Samsung Galaxy Nexus] something15525:
Here's the last_kmsg. For some reason it says cyanogenmod kernel version even though I compiled from AOSP, which is weird. Just in case, I flashed leankernel, yet the same thing shows up.

http://pastebin.com/akWSMtsG

Here's the logcat, I let it run for a few minutes:

https://gist.github.com/4322478

Let me know how that helps! Thanks guys
[Samsung Galaxy Nexus] ÜBER™:
I suck at what all the gibberish means... so im sure dreams will be able to tell you whats up. :)
[Samsung Galaxy Nexus] something15525:
Okay, thanks for looking at least. Hopefully he sees this...I had no idea how to make heads or tails of it either. Any reason why the heck the kernel version is cyanogenmod? it even says it's built on koush's lion computer, which makes no sense. I didn't even grab from the repo....i grabbed from the AOSP. straight from google. very confusing to me. Lol
[Samsung Galaxy Nexus] IT_Blackbelt:
E/AndroidRuntime(10745): *** FATAL EXCEPTION IN SYSTEM PROCESS: NetworkPolicy

E/AndroidRuntime(10745): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE_IMMEDIATE flg=0x8000010 (has extras) } in com.android.server.net.NetworkPolicyManagerService$12@4191a6f0

E/AndroidRuntime(10745): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768)

E/AndroidRuntime(10745): at android.os.Handler.handleCallback(Handler.java:725)

E/AndroidRuntime(10745): at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime(10745): at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime(10745): at android.os.HandlerThread.run(HandlerThread.java:60)

E/AndroidRuntime(10745): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1

E/AndroidRuntime(10745): at android.text.format.Time.getActualMaximum(Time.java:239)

E/AndroidRuntime(10745): at android.net.NetworkPolicyManager.snapToCycleDay(NetworkPolicyManager.java:222)

E/AndroidRuntime(10745): at android.net.NetworkPolicyManager.computeLastCycleBoundary(NetworkPolicyManager.java:179)

E/AndroidRuntime(10745): at com.android.server.net.NetworkPolicyManagerService.updateNotificationsLocked(NetworkPolicyManagerService.java:644)

E/AndroidRuntime(10745): at com.android.server.net.NetworkPolicyManagerService.addNetworkPolicyLocked(NetworkPolicyManagerService.java:1460)

E/AndroidRuntime(10745): at com.android.server.net.NetworkPolicyManagerService.ensureActiveMobilePolicyLocked(NetworkPolicyManagerService.java:1137)

E/AndroidRuntime(10745): at com.android.server.net.NetworkPolicyManagerService.access$1500(NetworkPolicyManagerService.java:170)

E/AndroidRuntime(10745): at com.android.server.net.NetworkPolicyManagerService$12.onReceive(NetworkPolicyManagerService.java:899)

E/AndroidRuntime(10745): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:758)

Looks like an error in the networkpolicymanagerservice.java file.