yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] billycurtis:
Hi,

i found a simliar thread that was talking about a similar subject, but didn't answer my question. i have lost it and cant find that same thread for help.

rooted -flashed bad rom - everything keeps closing(apps, Google sync)--- cant get int to recovery mode because of error

****I unlocked bootloader and rooted my GalaxyNex. then installed ROM maneger. i flashed CWM,then backed up my ROM. i tested it by flashing my backed up ROM, after i had messed around and my phone went back to normal. i was feeling safe. i noticed that i was having trouble getting into the recovery mode because of the belly open with exclamation Point. i read that it is because CWM was losing permission? i found that i just had to re-flash CWM every time right before i go into recover mode. i flashed a ROM from ROM maneger and everything worked until i turned the phone on. i cant sync Google account, and basically all apps close immediately (no key board too). I cant get into recovery mode and i cant down load ROM maneger to try to re-flash CMW to restore from older ROM.

I am sorry if this is already been answered i have try to find my situation but i couldn't.
[Samsung Galaxy Nexus] billycurtis:
I tried to re-flash the clock work recover image through the terminal of my mac but it says permission denied... i guessing i need to find a way to re flash to stock from fastboot is this possible ?
[Samsung Galaxy Nexus] joshnichols189:
Pull the battery and hold power + volume and get into fast boot. Flash stock images from here
[Samsung Galaxy Nexus] billycurtis:
Thanks I got really lucky i was able to re flash Clock work recovery in fast boot with the command

./fastboot flash recovery recovery-clockwork-5.5.0.4-toro.img

then i was able to get into the proper recovery mode and re flash my backed up image.

if i wanted to re flash a original image would the terminal command look like this

./fastboot flash recovery "Imagename" ? i might have just got lucky but i am guessing thats how you re-flash something to your phone?

now that i have gotten back to the beginning, why is it that i have to re flash CMW every time to get in correct recovery mode? or how do i stop it from giving me the recovery error when trying to get to the correct recovery mode?

thanks again
[Samsung Galaxy Nexus] mike216:
Glad your good! Hate to see these threads but we all go through it sooner or later
[Samsung Galaxy Nexus] silow:
After you fastboot flash the CWM image, use ADB, a terminal, or a file explore to remove or rename the file /system/recovery-from-boot.p
[AT&T Samsung Galaxy S II SGH-I777] ywashingmachine:
I posted a question about this last week thinking it was a wifi problem, but it turns out it happens when I'm on data too, so it's an overall data problem... I'm just using wifi most of the time so that was the only place I had noticed it.

Occasionally my phone will stop being able to send/receive data. I'll turn it on and try to load a web page, for example, and it will just hang. Turning wifi on/off doesn't fix it, and turning data on/off doesn't seem to fix it either. The only solution I've found is going into airplane mode for a second. The frequency varies.. it seems to happen between 1-5 times a day, so it's pretty inconvenient.

I've read around a bit and it sounds like it's caused by the phone trying to get a 4G connection but it isn't able to or something, so it just hangs there and never lets the 3g/wifi connections get used (due to priority of connections or something). I almost always have wifi and don't care that much about data speeds, so if disabling 4g altogether would fix the problem I'm game (although I'd prefer another solution...). I tried the *#*#4636#*#* code to change it to GSM only (I read somewhere that that'll disable 4g), but it instantly reverts back to what it originally was, so that doesn't seem like it'll work. Is there another way to disable 4g?

I've got the stock ROM running Entropy's latest DD kernel.
[AT&T Samsung Galaxy S II SGH-I777] flightsimmer:
I've had this same exact issue while running Miui and the Siyah kernel. What I've narrowed it down to is likely to be some sort of power save mode that kicks in when the phone goes into deep sleep mode. I haven't had the issue since I've ran the Kernel cleaning scripts and reflashed the latest Siyah kernel, but it reappears occasionally. On certain releases of Siyah, I've ran SetCPU at a minimum of 200Mhz to keep the phone from going into deep sleep just so it wouldn't turn off the cell radio.

Also, as a side note, I've had this happen when my phone loses signal. After so much searching, it will turn off the entire cell radio and display "Emergency Calls Only" until Airplane mode is toggled.
[AT&T Samsung Galaxy S II SGH-I777] MaxRabbit:
I had this same problem even back with my Captivate. Hoping ICS won't have the same issue. I'm running CM7 and Siyah kernel.
[AT&T Samsung Galaxy S II SGH-I777] suedeboogie:
I am having the same problem Data wont work until i turn airplane mode on and off

I am having the same problem Data wont work until i turn airplane mode on and off.

Have you found a resolution?
[Atrix 4G Android Development] acerbix:
Hi,

This thread is to discuss building CM9 build from source for Atrix. In order to do that, you will need to overlay Atrix specific stuff over the vanilla CM9 code.

There are two overlays possible:

- The official Atrix-dev team repositories

- The official Photon-dev team Atrix repositories

There is more (visible) activity on the photon team than the Atrix team right now so personally I am using the Photon team's Atrix repositories. In order to use the Photon repo you might have to edit olympus-vendor-blobs.mk in vendor/motorola/olympus. It has a few sunfire dependencies that will need to be changed to olympus. I submitted a pull request to the photon dev team, so those changed might be merged in sometime soon :)

Attaching two scripts that you can use in android/system to overlay vanilla CM9 code for Atrix: one for the Atrix-dev-team overlay, and another for the Photon-dev-team. Both build cleanly without issues as of this time.

I built the kangs but havent tested yet. Will test when I get home and back up my CM7 :)

I used the build instructions here and made minor changes: http://xdaforums.com/showpost.php?p=21077425&postcount=1
[Atrix 4G Android Development] acerbix:
Copying over from the CM7 source build thread...
[Atrix 4G Android Development] jokersax11:
Fingerprint needs to be properly ported. Building on cm7 code just gives you a jumbled mess.

I know its a little more setup but you really need proper cm9 source to build correctly. You can overlay the fingerprint code in the device tree and still keep the latest cm9 sync.

Its actually pretty easy to set up.

Repo init cm9githubyatayata... -b ics

Repo sync -j1 (yes j1 cm9 github is taxed)

Pull the vendor and device

Edit cm vendor setup

Build
[Atrix 4G Android Development] t.s.eliot:
I got past that initial problem by just copying the entire source file rather than trying to do the edits.

Currently stuck applying the group of changes from the "packages/apps/Settings" tree. The "SecuritySettings.java" file seems to have a lot of additional stuff for the face unlock, so it is really hard to tell where the FP stuff goes.

No luck so far with the line by line changes. Next attempt will be to try just replacing the files.

CM9 will build with no issue without the FP unlock. Just need to add the "device/motorola/olympus" directory and the olympus proprietaries. The Atrix Dev Team keeps these on their github under the ICS branch.

---------- Post added at 07:28 AM ---------- Previous post was at 07:22 AM ----------

(I have to preface all of my comments with the observation that I really don't know what I"m doing.)

It seems like we have proper source for building the basic CM9 on the Atrix. There isn't a camera yet, but the Atrix Dev Team's ICS branch seems to have the right files for /device/vendor/motorola/olympus and vendor/motorola/olympus directories. Basic version builds with no issue.

Trying to merge the FP unlock code into the Atrix stuff seems much more challenging. I don't think that replacing the changed files will work, since the Security Settings seem to have some dramatic changes made for the Face Unlock.

(On a side note, two factor biometric authentication would be really cool if it ever gets working....)
[Atrix 4G Android Development] jokersax11:
When I say proper source I mean your source base. Overlaying ics vendor and device on gingerbread source is not going to make cm9, but cm7 breaks and partially checkouts a few ics branches. If you start with current up to date cm9 source from cyanogenmod then modify you have a better chance.

As far as porting fp use a diff viewer and a syntax highlighting editor. Ideally you should separate then fp class and point to it by adding to the include.
[Atrix 4G Android Development] crnkoj:
ive managed to get cm9 to build several times, even before we started on the cm7+fp, and the older builds worked well with a few of o2x libs (i can put a link with the ones i used as a flashable zip here), the only things not working were obviously camera, and hw acceleration (although maps, gallery and games/benches worked, but slower than on cm7), after that ive tried to build it again with cm9 + atrix dev team cm9/ics sources, which built nice, but on bootup i get a permanent com.android.phone stopped, so one would have to edit some (probably ril related) files or use the ones from photon cm9. As was said already, the cm7 fp code needs a rewrite for cm9, overlaying cm7 over cm9 will just break stuff. additionally there is updated cm9 code from atrix dev team but, since there are no useful proprietary binaries, there is no real need to update the sources :)
[Atrix 4G Android Development] acerbix:
I'll start porting sometime later this evening after work.
[Atrix 4G Android Development] acerbix:
Hope we dont need to rewrite the entire FP code - just port it/find the right hooks into app/settings and frameworks/base. Will look at CM9 code later this evening. Will be slow since this is my first time w CM9.
[Atrix 4G Android Development] crnkoj:
very nice,

one thing, it seems you know how to go around this stuff and i am very new to this..., so i was wondering if you would have some advice what to read/learn to be able to edit/fix this (c++/java programming?), as like this i cant or dont know how to do code tweaking, if i get a hang of it i would gladly work on it than.

second to that the good thing is fp is actually working in cm9 (the navigation), so the drivers for it work, we jsut in fact need to implement the app as we had to in the cm7 kangs now.
[Atrix 4G Android Development] acerbix:
Sure - Sent you a PM on this.
[Atrix 4G Android Development] Paschalis:
Where did you found FP sensor unlock code?

As far as i know, the finger print sensor unlock code is closed source!

(creating+managing fingers activities and the unlock screen activity!)
[Atrix 4G Android Development] ghost_og:
Checkout the Atrix-Dev-Team github. As far as I know t0dbld wrote all new code for it from the ground up. Which is why it has the added navigation features and multiple finger support.
[Atrix 4G Android Development] acerbix:
Learning programming for hacking fun

Well - there were several other PM'd requests for this info - so I thought I'd post the info here.

Disclaimer: I am not a comp-sci grad, just a geek :) If you have easier ways to learn C or Java please post here.

I am guessing you already know your way around linux, shell prompt/scripting etc. Next thing to learn would be C. I'd say C is easier to learn than C++ since there is a lot less to it (no classes and OO) and most of the native code is in C. If you know C, learning C++ or java is no problem :)

I learnt both C and java while I was hacking - that gave me the incentive to learn :) I tried reading books and found them to be either very boring (lots of unnecessary stuff) or confusing.

The books that I used most was K&R C - http://www.amazon.com/Programming-Language-2nd-Brian-Kernighan/dp/0131103628 - Supposed to be a beginner's book but can be confusing. I mostly used it as a reference once I learnt C.

This book helped a lot as well: http://www.amazon.com/Data-Structures-Using-Aaron-Tenenbaum/dp/0131997467

The way I learnt C was mostly by asking around, trial and error :)

An online tutorial: http://crasseux.com/books/ctutorial/

And also: http://www.cprogramming.com/

I never did really learn Java - I hack around, mostly get things wrong, and sometimes get things right :)

A good Java tutorial - http://docs.oracle.com/javase/tutorial/

My advice, for what its worth - learn C first. That gives you a strong basis for learning other languages. I haven't really spent much time learning Java or C# but have written working programs/tools in both languages :)

Finally - Google is your friend when you are stuck - which you will be :)

Best of luck - I will be happy to help as you learn.
[Atrix 4G Android Development] acerbix:
The Atrix-Dev team did the work - you can use their weekly build or if you want to build your own, Read this post, and this thread:

http://xdaforums.com/showpost.php?p=21436681&postcount=59
[Atrix 4G Android Development] acerbix:
Sorry to say - both kangs failed when loaded on my atrix - they boot up fine, but com.android.phone crashes. must be something to do with the RIL. Will resync /rebuild/retry and see if I have better luck this time :)
[Atrix 4G Android Development] crnkoj:
That wont help. It's like this since a week or so. It seems the cm team has updated something that messes with film and is not compatible with the atrix dev team sources anymore. I did a logcat of it but didn't get far.
[Atrix 4G Android Development] Paschalis:
I compiled also CM7.1, with ALL fingerprint branches 1-2 weeks ago..

I used fp branches of atrix-dev-team: settings app, and framework base, and all their work in the top of pure CM7.1 source code, but the build result didnt include a fingerprint unlocker..

I will try acerbix's framework base to see..

Btw acerbix, what are the differences of your framework base, and framework base of the atrix-dev-team fingerprint branch?
[Atrix 4G Android Development] ghost_og:
The Atrix-Dev-Teams's frameworks/base had deprecated files that haven't been updated since December. We found that some of the non-atrix related upstream code from CM had changed, so this was causing issues with FP unlocker. Instead of using the FP branch files, we ended up manually merging or copying the updated Atrix-Dev-Team stuff on top of the vanilla CM7.2 source for frameworks/base. The atrix related stuff is exactly the same, it's just the underyling CM7 code that is different from what is on the dev team's github. Checkout the CM7 build thread for more details and workarounds.
[Atrix 4G Android Development] acerbix:
Ghost_og is correct. We built this on CM7.2 codebase by maually merging the Atrix-dev team's changes to the CM7.2 files. Without the merge, CM7.2 the Atrix-dev-team overlays will not compile.
[Atrix 4G Android Development] acerbix:
If you want to compile 7.1, you dont need my framework/base. Use it only if you are pulling CM7.2 code and overlaying Atrix-dev changes on it.
[Atrix 4G Android Development] acerbix:
Logcat freezes up :) Actually all of adb does. Trying something different, will let you know how it goes.
[Atrix 4G Android Development] Paschalis:
Thats interesting..

So the FP code is in the official CM gingerbread, but not in the atrix-dev-team!

So if you include all the work of atrix-dev-team, on the official CM source you loose the FP functionality!
[Atrix 4G Android Development] crnkoj:
No, CM 7.2 does not have fp unlock code. On the other side cm 7.1 doesn't have it either, but combined with the adt code it has it. So acerbix and ghost merged the fp code from adt to the cm 7.2 files. Anyhow more on that matter, I spoke with sampcripp, about it more on Irc about CM7.2 and cm 9 with fp unlock. Fp unlock probably won't get merged into cm7.2 because it would be too much work to change all the other devices code to fit it to the pushed unlock code. Secondly cm9 does have native fp unlock support, so it won't be a big deal implementing it.

Acerbix, as for adb on cm9 you have to click your way to settings and development and enble it (will take you a minute or two),than it works, you can try to enable it by default before or after compiling though ( I haven't looked into this option, but you could even go into recovery mounted data and adb shell edit android.providers.settings that adb is on)

quick edit: just checked the adt github for ICS and turl edited a few things, including some ril option in system prop and some adb specifics aswell as a kernel and modules
[Atrix 4G Android Development] acerbix:
There is FP code in CM7 - but that only uses it as a trackpad. - It doesnt work for FP unlock. That work is in the atrix-dev-team repository.

BTW - for CM7 please use this thread: http://xdaforums.com/showthread.php?t=1442842 Lets leave this thread for CM9 discussions.
[Atrix 4G Android Development] acerbix:
Success: Working CM9 build from source:

Folks -

Successfully built and tested CM9 from source, with the atrix-dev repository! Thanks so much to atrix-dev/Turl for the atrix source code and the hard work, and updating the ics branch in the atrix-dev repository, and to crnkoj for noticing and posting about the update.

Build process:

Get the CM9 code from CM repo. Then overlay device_motorola_olympus and proprietary_vendor_motorola from atrix-dev. No patching or source code changes required.

Initial impressions:

Pretty stable

- Angry bird (2d acceleration) playable though a bit stuttery.

- 3D games - fully playable.

- Love the new email client :D

- 45 min phone call - no audio or signal issues experienced

- Not seeing any errors on logcat.

Cheers
[Atrix 4G Android Development] sspa:
Thanks, I assume this is a vanilla CM9 for Atrix, without FP lockscreen support, correct?
[Atrix 4G Android Development] acerbix:
FP works as touchpad - but no lockscreen support. Incidentally, I didnt see ICS facelock support either - maybe because the camera is still not working.
[Atrix 4G Android Development] jokersax11:
Congrats, I have a repo pre setup with everything already in. If you want to do pull requests and we can work together. Once the dev team wishes to work on it again I can send pull requests to them with all fixes.

I have a buildbot and hosting. Just fork the device and vendor atrix gits from the photon dev team github. Make your changes and send a pull. I'll author it and the buildbot will build it
[Atrix 4G Android Development] acerbix:
Thanks - I just scrapped and rebuilt my repo from yours, and did a clean build. Just installed the update. Will test out the build and if/as I find/fix stuff will send you pull requests.
[Atrix 4G Android Development] t.s.eliot:
Yes.

The Atrix Development Team's github documents the changes related to the commits for Fingerprint Scanning functionality. I've been trying to incorporate those changes in the CM9 files. Unfortunately, I don't know much about what I'm doing so I haven't had a whole lot of luck so far.
[Atrix 4G Android Development] acerbix:
I will be building an OC kernel first, then see if I can get fp working. Shed get started tonite.
[Atrix 4G Android Development] t.s.eliot:
Good luck! I was getting errors I didn't understand in frameworks/base/policy/src/com/android/internal/policy/impl/FingerUnlockScreen.java, as well as how toast was being referenced in packages/apps/Settings/src/com/android/settings/SecuritySettings.java.

Hope you have better luck than I did. I'll respond if I manage to either identify or solve the problems I was having -- now I'm just confused!
[Atrix 4G Android Development] jokersax11:
I have cm9 kernel source that's over locked with UV and based on 198-6

It on the dev team github
[Atrix 4G Android Development] acerbix:
I see a tegra kernel being pulled in with cm9: is that the one you mean? compile fails for that but not too tough to fix that I imagine.
[Atrix 4G Android Development] jokersax11:
What's your script

And output
[Atrix 4G Android Development] acerbix:
I pulled the repo from git-hub/photon-dev as you suggested. My CM9 dir is:

~/code/android/system-9

After a repo sync I saw a kernel source tree at

/code/android/system-9/kernel/tegra

So I tried an:

ARCH=arm CROSS_COMPILE=~/code/android/system-9/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make tegra_olympus_android_defconfig

followed by

ARCH=arm CROSS_COMPILE=~/code/android/system-9/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- make

The build failed with:

CC drivers/misc/nvodmcam.o
drivers/misc/nvodmcam.c:30:79: error: ../../arch/arm/mach-tegra/clock.h: No such file or directory

In that file - line 30 is:

30 #include <../../arch/arm/mach-tegra/clock.h> /* for get_tegra_clock_by_name */

Changed the <> to "" and it compiled.

Interesting - I've never seen relative path names in a c file before.
[Atrix 4G Android Development] b30sam:
Error while compiling

Hi Guys,

I followed the guidance given in these threads to try do a compile of the CM9 code. As geven i have repo from the CM9 sources and overlaid from the Atrix-dev team for Atrix specific code.

When I try to extract the files from Atrix using extract-files.sh. I am not able to get the fingerprint files.

remote object '/system/bin/am2server' does not exist

remote object '/system/app/GfxEngine.apk' does not exist

remote object '/system/etc/am2server.pubkey' does not exist

remote object '/system/lib/libAuthUDMDrv_1750A100.so' does not exist

remote object '/system/lib/libam2app.so' does not exist

remote object '/system/lib/libam2server.so' does not exist

I currently have the ICS photon alpha on my Atrix, is that the reason I am getting these errors? Should I install CM 7 on my Atrix and then try the extract.

Also, I am not able to get the following files too.

remote object '/system/lib/libsensortest.so' does not exist

remote object '/system/lib/libam2app.so' does not exist

failed to copy '/system/bin/pppd-ril' to '../../../vendor/motorola/olympus/proprietary/bin/pppd-ril': Permission denied

9 KB/s (1944 bytes in 0.205s)

remote object '/system/etc/pvplayer.cfg' does not exist

remote object '/system/etc/firmware/wifi/nvram.txt' does not exist

remote object '/system/etc/firmware/wifi/sdio-ag-cdc-11n-mfgtest-roml-seqcmds.bin' does not exist

remote object '/system/etc/firmware/wifi/sdio-ag-cdc-full11n-minioctl-roml-pno-wme-aoe-pktfilter-keepalive.bin' does not exist

remote object '/system/etc/firmware/wifi/sdio-g-cdc-roml-reclaim-wme-apsta-idauth-minioctl.bin' does not exist

Any help would be greatly appreciated.
[Atrix 4G Android Development] jokersax11:
All the files have been extracted already and is in vendor
[Atrix 4G Android Development] t.s.eliot:
I had problems with the extract-files.sh as well. I used the same fix that jokersax suggested. What worked for me was copying the files for the vendor/motorola/olympus directory straight from the Atrix Development Team's Github.

https://github.com/Atrix-Dev-Team/proprietary_vendor_motorola
[Atrix 4G Android Development] b30sam:
jokersax11 suggestion worked for me as well.

I used his Atrix-Sync script to clone the device and vendor folders from atrix-dev-team's git. I skipped running the extract-sh file and went straight to brunch.

After 1/2 hr on my quad core i5, i got a kang!!!

Thanks to all especially jokersax11 !!!!
[Atrix 4G Android Development] jokersax11:
My script pulls from my got not theirs keep that in mind
[Atrix 4G Android Development] acerbix:
WARNING: If you are using atrix-sync that pulls from atrix-dev-team not from jokersax's repo. That will give you a slightly dated build. If you want a newer build, use the photon-sync script I attached in the same zip.