yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Spikebob21:
i did all the steps but when i go to install from zip thru the recovery screen it says its unpacking then failed and gets aborted.. Any help?
[Android Software/Hacking General [Developers Only]] Scur827:
Derp, wrong info here, deleted...
[Android Software/Hacking General [Developers Only]] experymental:
No rom manager

I have the Huawei Ascend and have been trying to get rom manager but t is now only for 2.2 and up I have 2.1 Please can anyone help out. And just so you know...I tried to load CWM recovery on boot up but it doesn't work. Debugging alow user all that stuff was done. I have been working on this for days now. Everytime I try and boot up CWM it fails...I updated drivers for my phone and all but when it turns on in boot mode it only shows the android 2A boot sceen with 4 options...reboot...load SD card (does absolutely nothing) wipe data and lastly wipe cashe. Long story short rom manager is for 2.2 and up but there are people out there posting 2.1 to 2.3 upgrade soo???? Is it possible? Thanks
[Android Software/Hacking General [Developers Only]] Scur827:
Give me an hour and I'll show you how to do what you want to, on the road atm.

Sent from one pimped out DroidX2

---------- Post added at 06:15 PM ---------- Previous post was at 05:30 PM ----------

You're holding volume up and end call (the rightmost one) instead of volume up and send (leftmost one).

---------- Post added at 06:31 PM ---------- Previous post was at 06:15 PM ----------

To install CWM:

First, make sure Unknown Sources and USB Debugging are both checked.

Make sure you have the Ascend drivers installed.

Then, if you haven't rooted your phone, do a permanent root with Z4Root. If you're going to flash CM7 (Android 2.3.4) grab the CM7 and gapps zip files from Prepaid Android Wiki and put them on your sdcard now.

Plug your phone into your computer via USB.

Then grab Clockwork Mod 3.0.2.8, unzip it, open the folder, and run these files (make sure you use the versions for the OS your computer is running, Windows for instance)

adb

fastboot

install recovery

Unplug the phone, pull the battery for several seconds, put it back in.

Hold volume up and send button (leftmost button along bottom) and hit the power button. Don't let go of the buttons until you see recovery.

To flash CM7:

Make sure to BACKUP APPS AND CONTACTS!

Grab the latest version from Prepaid Wiki along with the gapps zip there

Copy both zips to your sdcard (don't unzip them!)

Boot into Clockwork Mod

Wipe data/factory reset

Wipe cache partition

go into advanced

Wipe dalvik cache

back out to main menu

go into mounts and storage

Format boot

Format system

Format data

Format cache

back out to main menu

Install zip from sdcard

Choose zip from sdcard

select CM7 zip

select gapps zip

back out to main menu

Advanced

Fix permissions

back out to main menu

Reboot system now.

Wait for a little bit. If it gets stuck at the boot screen for more than ten minutes, and you tried the 748 OC kernel, try it all over again with the 710 OC kernel.
[Android Software/Hacking General [Developers Only]] xxjabberwockxx:
I'm hoping I'm just missing something. I tried these steps earlier but no matter which CM7 ZIP I tried, i get stuck at the "Ascend" screen during boot. I have CWM 3.0.2.8, tried the following MODs:

PlayfulGod CM7.2-Ascend (09122011) (748 OverClock defaulted to 710)

PlayfulGod CM7.2-Ascend (09132011) (710 OverClock defaulted to 710)

PlayfulGod CM7.2-Ascend (09132011) (710 OverClock defaulted to 600)

Always seem to get stuck on the Ascend screen. I'm rooted. Originally had 2.2, rooted via Gingerbreak and when I couldn't get it going, I tried going to Metro PCS stock 2.1, used Z4 to root, then tried the exact steps above, even the extra formats and the permissions fix at the end. Waited 15 mins during each boot and it's stuck on the Ascend screen (before the CM7 boot screen).

Any ideas?
[Android Software/Hacking General [Developers Only]] Scur827:
Odd that you keep getting stuck at boot, maybe you have a super-lazy Ascend that doesn't like the kernels. When it's stuck at the screen like that, I could sneak into a too-high-for-my-phone kernel by tapping or holding rhe power button when it seemed stuck.

Personally, I would run this by the guys at androidforums.com. They're still fresh in this phone, and it's probably something obvious that I'm not seeing.

Sent from one pimped out DroidX2
[Android Software/Hacking General [Developers Only]] Scur827:
Another thought. When I was flashing my Ascend all the time, there were lots of times I had to reflash with fresh downloads multiple times. I remember at least twice I it took 4 flashes to take. Granted, those were early versions of CM7, but I never called it unsuccessful until I tried to flash a ROM 3 or 4 times.

Sent from one pimped out DroidX2
[Android Software/Hacking General [Developers Only]] xxjabberwockxx:
Thanks Scur. I posted on AndroidForums.com. I tried Bobz's last build and that loaded. Maybe it's just PlayfulGod's mods. I'll do it a few more times and see, but at least I know I have one build that works. Thanks again!
[Android Software/Hacking General [Developers Only]] JonJon927:
Yeah, so I did litterally EVERYTHING this wanted me to do, and in the end I got black screen with blue letters. I only had 4 options:

Reboot now

Upgrade SD

Wipe factory

Wipe cache

Someone please help? I have the CM7 downloaded into my SD card i think, just someone please try to help.
[Android Software/Hacking General [Developers Only]] Scur827:
That's the factory stock recovery. You didn't install ClockworkMod recovery.
[Droid Incredible Q&A, Help & Troubleshooting] tristenrymes:
When i try to install an .apk (especially 15mb and above of full games) from the sd card i get a lot of "Application not installed" when earlier it used to install. I have Dinc with Redemption Rom 2.4, froyo 2.2. I don't get any low space notifications and there is enough space all around. I don't want to flash my rom again. Is there a solution so i get to keep what i have and continue to install more apps? thanks.
[Nook Color General] afzalarsalan:
When ever I play a video on my Nook Color, I notice that I only see the play/pause and the skip forward and back buttons.I only see the video position slider when I hide the bottom status bar which in turn hides the controls so it is not a very good solution. I wanted to know if anyone knows a solution to this.
[Nook Color General] IFLATLINEI:
Get MoBo player from the market and forget all about that stock app.
[Nook Color General] travisn000:
In CM7 with most apps you will have a double down arrow that will appear after you touch a running application (..similar to ">>", but pointing down) . Once it appears you can touch it to hide the notification bar (and "tablet tweaks" controls). To get the controls back press the "n" button.

If this doesn't work, you may have to enable it somewhere in the setting menu (..I forget exactly where.. I left my nook in the car so it isn't close by to check ATM :/ )
[Nook Color General] IFLATLINEI:
I had this same issue but then found Mobo player and the interface made this issue a non issue plus its a great app. But that's an awesome tip! I knew I could hide the bar but didn't know how to get it back. Thanks!
[General Topics] tristenrymes:
When i try to install an .apk (especially 15mb and above of full games) from the sd card i get a lot of "Application not installed" when earlier it used to install. I have Dinc with Redemption Rom 2.4, froyo 2.2. I don't get any low space notifications and there is enough space all around. I don't want to flash my rom again. Is there a solution so i get to keep what i have and continue to install more apps. thanks.
[Android Software/Hacking General [Developers Only]] tristenrymes:
When i try to install an .apk (especially 15mb and above of full games) from the sd card i get a lot of "Application not installed" when earlier it used to install. I have Dinc with Redemption Rom 2.4, froyo 2.2. I don't get any low space notifications and there is enough space all around. I don't want to flash my rom again. Is there a solution so i get to keep what i have and continue to install more apps. thanks.
[Android Software/Hacking General [Developers Only]] wss05:
Here's one solution that worked for me:

I installed Android Market 3.0.27 from http://xdaforums.com/showthread.php?t=1166152

I cleared the market cash and Google services framework data as per the steps described here: http://xdaforums.com/showthread.php?t=893538

Then the trick that did it was to disable app2SD under settings/applications.

I still am missing some apps in the market (Skype, Facebook, Google Maps, etc.) but at least I can install them from apk files now.

I hope this helps.

Cheers
[Android Software/Hacking General [Developers Only]] Z3US911:
If u are using a custom ROM,ask anyone else using the rom whether he is facing this prob or not.
[Captivate Q&A, Help & Troubleshooting] njd911:
I am on continuum v6 rc1 now but this problem has been persistent on serendipity and apex 7.1. I am on wifi and whenever I download an app from the market, it stays on the downloading bar and never downloads. I know that the connection is not the issue as I have been using it for other internet related things on the phone. I have flashed back to stock jf6 and master cleared before applying the latest continuum and the problem remains. I have also tried removing the market update, clearing cache, and rebooting. Nothing has fixed the issue, and upon rebooting, the apps that are attempting to download still appear in the notification tray without any success.

Please help...
[Captivate Q&A, Help & Troubleshooting] F1reEng1neRed:
Will they download on jf6?
[Captivate Q&A, Help & Troubleshooting] studacris:
did you g to settings>applications>manage applications>all>market>clear data?

also sometimes the market is just stubborn try one at a time and when it stalls like that click on it and select to download again. sometimes takes 3 or 4 tries before it acually downloads
[Captivate Q&A, Help & Troubleshooting] njd911:
I was able to download apps from the market on stock jf6. But now I am on cyanogenmod7 nightly 40 and I am still unable to download apps. This is very frustrating because I do not want to stay on jf6 just so I can use the market. What else should I try?
[Captivate Q&A, Help & Troubleshooting] njd911:
Sorry I forgot to tell you I already tried that.
[Captivate Q&A, Help & Troubleshooting] njd911:
Does anyone else have any suggestions. I feel like I've tried everything and still no luck.
[Captivate Q&A, Help & Troubleshooting] -bLinD-:
This happened to me, sorry to tell you but.. you have to do a factory reset. Get titanium backup and backup everything important to you.
[Captivate Q&A, Help & Troubleshooting] jayjayjoker2:
If you find sgs tools its an app trying putting this app on your phone by downloading it on a computer as an apk and put it on your sd card and install it then there is a spot that says run script find the market this will unistall market and reinstall it this could work
[Captivate Q&A, Help & Troubleshooting] njd911:
I tried both of your suggestion and neither worked. For a factory reset, I retrurned to stock and master cleared. While on atock the market was working. But now that I have flashed a gingerbread rom it does not work. I tried going into settings and doing a factory reset from the privacy screen. This simply earased the data on my sd leavng the apps on my phone. And the issue remains. I also tried using sgs tools to uninstall and reinstall the market and again no luck.
[Verizon Droid Charge] droidnewb2000:
If Im rooted (and paid someone to do it...ie I know nothing) and do the OTA update...what will happen? I could really care less if I lose my superuser capabilities. Will i simply lose root access or will it screw up my phone?
[Verizon Droid Charge] cynicismisfun:
I'm pretty sure it won't let you download the update...either that or you will lose root access. Or, nothing and it will update and you'll still have root. Just try and find out, you can always reflash in Odin!
[Atrix 4G Android Development] eval-:
I noticed that 2nd init is broken on Gingerbread. For the sake of those on international Atrix or other phones that may not get unlocked, here's a fix. My changes are trivial: I move the location of injected_code_address to a 'fudge' offset from the end of the code segment, instead of the start of the heap, where it used to be. Why? Look:

Froyo: cat /proc/1/maps

00008000-00022000 r-xp 00000000 00:01 483 /init
00022000-00024000 rwxp 0001a000 00:01 483 /init
00024000-00042000 rwxp 00000000 00:00 0 [heap]

Gingerbread: cat /proc/1/maps

00008000-0001e000 r-xp 00000000 00:01 481 /init
0001e000-0001f000 rw-p 00016000 00:01 481 /init
0001f000-00038000 rw-p 00000000 00:00 0 [heap]

Our heap (and stack too) are no longer executable on GB! (Why were they on Froyo to begin with??) So when regs.ARM_pc finds itself in the heap on GB: not good. But long as you avoid interfering with execve(), you can clobber the code segment instead.

Thanks to Edgan and Brandon15811 for sluething this out with me, and to [mbm] for helping me understanding certain bits of the code, and of course, to Skrilax_CZ for this very cool piece of work to begin with!

(And

again to Edgan for getting 2nd-init via taskset working on dual-core

to begin with! If you're itching to donate,

please

hit him up with a few bucks to help him recover some hardware investments he made before the bootloader unlock...)

Hope this very simple fix helps someone out there... It's backwards compatible, and should work on Froyo.

Since GB builds seem to use mount_ext3.sh differently, I've attached an example 'remountpds' one might use instead to modify init.rc (on a locked Atrix with Gingerbread.)

PS. I would really

really

really appreciate it if replies to this post could be kept on topic and dev-related. Thanks.
[Atrix 4G Android Development] edgan:
Great work eval. You figured out the crux of this problem. :)
[Atrix 4G Android Development] kennethpenn:
Brilliant. Hopefully, they'll get unlocked, too. If not, this ain't bad at all. Good job eval-!

PS: I donated a couple bucks to Edgan a while back. If you can help at all, please help him buy back the cost of his developer Atrix!
[Atrix 4G Android Development] Alejandrissimo:
I hope Chuck Norris listen to you bro :p I want unlocked bootloader too
[Atrix 4G Android Development] mrnicotra:
Bootloader is unlocked. There are like a million posts on this.
[Atrix 4G Android Development] kennethpenn:
I assume he was speaking about one of the Canadian or Australian devices that does not have an unlocked bootloader quite yet.
[Atrix 4G Android Development] IrshaadH:
Would it be possible to load an AT&T sbf using 2nd-init, then unlock the bootloader from there?
[Atrix 4G Android Development] briggie108:
Short answer: no

Long answer: That is not exactly how it works. It does not touch the boot partition.

http://xdaforums.com/showpost.php?p=13445414&postcount=56

http://xdaforums.com/showpost.php?p=13447743&postcount=59

http://xdaforums.com/showpost.php?p=13450012&postcount=61
[Atrix 4G Android Development] crashingout:
So I follow all of this feat and your posting eval, much thanks to what Skrilax did, but I'm really curious and I'd like a little elaboration for developments sake. I follow the whole thing up until here,

"But long as you avoid interfering with execve(), you can clobber the code segment instead."

At that point, I cannot be sure of what you mean by clobber the code segment, my understanding of what was written was that they changed the permissions for the 2nd init process as we had it setup for froyo, which was sort of an accessibility hole in the boot process. From what you wrote, you changed the location from where it executes now, but that doesn't make sense from what I understand of it, so if you could elaborate, much thanks! I especially do not follow the "clobber the code segment instead". Does that mean modify the string somehow? I thought we couldn't?

Much thanks you guys are brilliant. Where's your day job? :)
[Atrix 4G Android Development] eval-:
No, they changed system-wide process's memory space permissions. Having the stack and heap memory pages executable was a big security risk (but not the real reason why 2nd-init works.) Really, only the 'text' (code) segment needs to be executable, as it has the actual machine code. See here for some ideas about memory mappings. The only "hole" in the boot process is that we can overwrite an executable (in /system/bin/ somewhere) called by normal /init and then use some tricks to get our own /init running instead.

2nd-init essentially forces /init to execve("/init"), replacing itself in memory with a new version of itself loaded from disk, and the trick is in-between we have replaced /init or /init.rc (and default.prop ;) ) on disk. 2nd-init accomplishes this by finding execve() in the code segment of the currently running /init, and then creating an injected_code with the machine code instructions to actually set up registers 0,1,2 as execve() expects it, after copying the necessary env variables from the previous /init, and then finally branch to execve(). See lines 244-270 here. (This is the real awesomeness of 2nd-init, I highly recommend digesting the code)

Finally, this code+args&envs has to be pushed into the memory of the original /init process, using ptrace(PTRACE_POKEDATA, before it can ptrace(PTRACE_SETREGS the PC (program counter) to the address of the "injected_code" in the original /init, and detach, telling it to respawn itself. For safety, you probably do not want to overwrite execve() (or anything it requires) in memory, since you want to branch to that address and run it right after! If execve() is corrupted, the trick fails. So Skrilax_CZ's original get_free_address() used the heap, which is safe. However, since the heap is no longer executable

on GB

, once you detach the ptrace, an exception is triggered and the system reboots. My very simple fix is to move the injected_code_address to a part of the memory that is still executable (code segment, see original post) but is also not important for execve() to work. Fortunately, Skrilax's program tells us where we find execve() so we can change the 'fudge' if ever necessary (perhaps I should have made this an input argument?)

You might notice that the code segment is not writeable! So how can we POKEDATA the injected_code there? The answer is that when the kernel page fault exception handler gets the interrupt for the unallowed access, it basically gives ptrace a pass. Otherwise debugging would be much more difficult to implement, if I understand [mbm] correctly. I can only recommend his blog and talking to him directly in IRC, he is the major reason I understand the little I do.
[Atrix 4G Android Development] Pizza4Breakfast:
Can anyone give me a quick and easily gotten definition of what a 2nd Init is?

:O
[Atrix 4G Android Development] crashingout:
This isn't the place to ask buddy, but here are some pointers:

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

We got the idea for a 2nd init exploit because the Korean Motorola Defy owners put I think CM7 on theirs through this feat. I bet if you google 2nd init defy you will probably get a good explanation. But now, back to hardcore dev talk........ :p
[Atrix 4G Android Development] stevendeb25:
Edgan please reply to my pm please ot anyone else who knows about this subject. I need help to fix last piece of the puzzle thanks
[Atrix 4G Android Development] Skrilax_CZ:
I'll say several words here:

Motorola's only security measure on their Android phones, which affects us, is that phones with locked bootloader require signed boot / recovery image. That's all. Everything else that you read or hear is pure hype. The reason why they do it is not relevant to customer security (when you have root access, all kinds of security in the OS (not radio) are gone) despite whatever the managers write, it's to reduce warranty returns with botched software. So whenever some kind of hack doesn't work, the reason behind it is not Motorola's security.

When it comes to 2nd-init, it was written as an improvement of init hijack for CM for Motorola Milestone (originally, it ran another "init" from "init", freezing the original one with pid 1 and the child one being executive, which is potentially volatile). I wrote 2nd-init for Motorola Milestone running on 2.6.32.9 kernel and didn't really pay attention to potential issues on another kernels. That's why it has to be adjusted a bit when porting it.

First, to OP: Have you tried setting PC (on execve) and R1, R2, R3 directly via ptrace?

Let me point out several potential issues that may come in the future:

A) ptrace will fail on tracing init

-> kernel has received a patch to prevent ptracing init (probably easiest solution here is to patch it with module)

B) cannot locate execve

-> signature of execve inside init has changed (update it)

C) zombie processes

-> instead of execve to another init, execve to an application which will proprely terminate all processes and then execve init (or patch custom init directly)
[Atrix 4G Android Development] Vangelis13:
You're joking, right..? :-)
[Nook Color General] nooktouch:
Just found out can remap n-button by changing "HOME" on the line:

key 102 HOME WAKE_DROPPED

in /system/usr/keylayout/gpio-keys.kl

Tested can pull out menu by replacing "HOME" with "MENU".

Does anyone know how (if possible) to map to my launcher? Thanks in advance.
[Nook Color General] nooktouch:
Follow-up:

1. It is quite obvious that the power button can also be remapped by changing the line:

key 116 POWER WAKE

Just tested that and it worked.

2. I use Home Switcher to set the default Home app to my launcher (Zeam). Button Savoir's home button can get me back to Zeam, but the n-button cannot. I've also tried Softkeys, but with no luck. So it appears that the HOME key handler is hard-coded into the kernel (google search seems to say that is an android quirk). A possible hack is to map the n-button to some unused key and then write an app running on the background to handle that key event (or modify /system/app/Home.apk to pass the control to say Zeam if one has the source codes). My android coding is not good enough to do either. Is there any simpler hack? Can we simply change the path of com.bn.nook.home from /system/app/Home.apk to Zeam in /data/system/packages.xml? I ain't brave enough to try that before backing up my current ROM. Also it seems that /data/system/packages.xml gets rewritten from time to time. Any suggestion will be appreciated.
[Nook Color General] aardvarkr:
take a look at the source, maybe that can reveal whether its hardcoded or posible with a simple edit.
[Nook Color General] choor:
Progress?

Any progress with n-button remapping to make it act like usual HOME-button?
[Nook Color General] jmjanzen:
I don't know how to "Say Thank You" properly, but thank you, nooktouch.

...edit: so, you have to post something before you can thank someone?
[Nook Color General] anders8:
Grave digger

Searching old threads... has anyone ever managed to remap the n key?

I'd actually like to use it inside an app (although remapping it in general would be handy too).

Anders
[Nook Color General] Mineturtle33:
Ummm. This is the nook color forum. Not the nook touch forum.

---------- Post added at 06:26 PM ---------- Previous post was at 06:25 PM ----------

Oh, this is a REALLY old post. Nvm.
[Galaxy S II Q&A, Help & Troubleshooting] jr866gooner:
i speak with people on my phone and the person on the other end complains of poor call quality The minute i turn of noise reduction its better apparently.could this be down to my card causing the microphone to behave funny to perform this function? really don't want to take my phone in for repair!

any others with similar issues and if you have resolved it let of know,is this fixable by Samsung releasing an update?