yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Hmmm, well its a start. :D

I did some research and found out exactly how the init.d hack works and it gave me some good ideas that will simplify everything.

I think I'll be able to automatically disable and enable init.d without having to manually delete or create stuff.

As for freezing at the motorola logo, I'll try to update and fix 2nd-init tomorrow.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Ok I will give it a try later ,gotta go school now. :rolleyes:

Btw andrewidya said that he had added the command to stock.sh

And it is working.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Can you provide some information on how init.d hack works?
[Android Software/Hacking General [Developers Only]] urfrndsandy:
guys i did some mistake i guess.. now my phone wont boot . while i try to remove the 97bootmenu file through adb it says

"rm failed for /system/etc/init.d/97bootmenu, Read-only file system

255|root@android:/ #"

what should i do now?? please some one help me out.. :crying:
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Use this before rm command

adb shell mount -o remount,rw dev/block/mtdblock8 /system
[Android Software/Hacking General [Developers Only]] urfrndsandy:
Thank you .. thank you.. thank you..

i was trying this mount -o remount,rw -t /dev/block/mtdblock3 /system.

But the strange thing is.. if we get stuck in recovery then we cant even use the RSD lite :( ..

Thanks for the quick reply...
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
We can use RSD.

Pull out your phone's battery and put it again.

Just connect your phone holding volume down(-) and camera button.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
It works by installing a (linux) binary called sysinit to the /system/bin. This binary then works with linker and kernel to load /system/etc/init.d/*.sh

I couldn't get 2nd-init working correctly, so I'm thinking about modifying the stock.sh (as you mentioned before) to automatically rename sysinit to sysinit.bin to allow system to boot normally, and use the init.qcom.post_boot.sh to automatically revert sysinit.bin back to sysinit restoring init.d

This way, bootmenu will disable init.d when selecting stock and the OS will re-enable it again to get bootmenu loading on next reboot :D

PS. If you wanna try it use add "mv /system/bin/sysinit /system/bin/sysinit.bin" command in stock.sh
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
I was thinking to get the Defy's bootmenu source and see how do they get into bootmenu through volume down(-)

So that would be much easier for us.

Can we do that?
[Android Software/Hacking General [Developers Only]] Srika:
http://xdaforums.com/showthread.php?t=1933849

see this thread may help n thanx for cwm op thanks pressed

backup worked perfectly in my xt-535
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Done

I managed to modify stock.sh to get system to boot normally without ADB. Now when you select stock, the phone will reboot twice and startup normally.

You'll have to manully copy 97bootmenu back to init.d to get bootmenu/CWM working again.

We should create an app that installs bootmenu, and enables/disables it via creating/deleting 97bootmenu. That way when the user wants to use CWM, he can click enable which automatically copies 97bootmenu to init.d and reboots the phone.

For the mean time, I suggest you test this version and update the first post as this will make it much easier for people to try CWM without having to mess with ADB :D
[Android Software/Hacking General [Developers Only]] saraghon:
Hello everybody. I tried to install CWM in my Fire XT530 but when I create the 97bootmenu file with ES explorer it fails. It tells me successfully saved but when I reopen it I find it empty. I changed permissions to rwx r-- r-- but when I reboot the phone starts normally.Help plz.
[Android Software/Hacking General [Developers Only]] andrewidya:
I added a command to /etc/install-recovery.sh

if [ -x /etc/init.d/97bootmenu ]
then
chmod 744 /etc/init.d/97bootmenu
else
busybox cp /system/bootmenu/script/97bootmenu /etc/init.d/
chmod 744 /etc/init.d/97bootmenu
fi

then, put 97bootmenu script inside /system/bootmenu/script folder

How it works:

that command makes system check whether the 97bootmenu is already exist in init.d, if it does, the system will change the permission

otherwise this command will copy 97bootmenu on /system/bootmenu/script to init.d then changed the permisson. This mechanism will done after booting process completed

Tested in my friends phone, and works:)
[Android Software/Hacking General [Developers Only]] Srika:
thanx man working i have tested ur bootmenu it is working perfectly without using a pc i came back to normal boot

---------- Post added at 11:30 AM ---------- Previous post was at 11:13 AM ----------

hi can u explain a little bit more please iam not able to go to recovry like u said
[Android Software/Hacking General [Developers Only]] chen2011521:
Can you provide the source of Bootmenu and some about how

Mod it.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
HELP

Okay Guys I have a problem and need help.

I tried to make booting into bootmenu simpler by creating a batch script.

But that failed.

I have checked many times but didn't found a way to correct it.

Could anyone please check and correct my mistakes? So that would be much easier for everybody to have CWM within a single button press.

DO AS FOLLOWING otherwise it may not work because of the path issue.

Download the attachment

Create a folder naming "CWM" in C:/ .

Extract it and copy all the extracted data into the CWM folder in C:/.

Run Clockworkmod.bat.

Let it finish, till that see the batch script of the clockworkmod.bat.

Am I missing something?

Could someone please correct it?

Thanks
[Android Software/Hacking General [Developers Only]] saraghon:
I finally create 97bootmenu file but I can't get into bootmenu after rebooting my XT530. Here is what I did using 7amdoun's bootmenu (the last one):

1. I copied bootmenu folder in /system/

2. I created 97bootmenu file in /system/etc/init.d and changed its permissions to rwx r-- r--

3. I rebooted my phone but it didn't get into bootmenu

Did I forget something? how many files should I have in /system/etc/init.d folder?

Help plz.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Did you enter commands correctly in 97bootmenu?

Please recheck

And also repair permissions for /system/bootmenu/binary/bootmenu.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
That's great. :laugh:
[Android Software/Hacking General [Developers Only]] saraghon:
Did you replace libs/hardware/wifi/ folder?
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
There isn't any folder named this.
[Android Software/Hacking General [Developers Only]] saraghon:
There is a folder libs/hardware/wifi/ in 2.3.7
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Can you upload that folder?

Because I checked 2.3.7 too but didn't found anything like it.
[Android Software/Hacking General [Developers Only]] saraghon:
I'm sorry try replacing /system/etc/wifi folder.

---------- Post added at 02:01 PM ---------- Previous post was at 01:46 PM ----------

Soory it was a mistake.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Did that.

What I had done till now:

1. system/etc/firmware/wlan which was not in 2.3.5, tried adding it but didn't worked.

2. There wasn't any init.qcom.wifi.sh in 2.3.5's system/etc tried adding it but no success,

3. Replaced system/etc/wifi that fixed the "error" problem.

4. Placed system/lib/modules in the specific folder.

5. Replaced libwpa_client.so.

6. Thought about build.prop and saw there wasn't any change in the wifi portion.

Tried replacing binaries :

wifiupdateNV

wlan_cu

wpa_supplicant

wlan_loader

wpa_supplicant_wapi

But with no success.

And I'm not knowing what to do next. :(
[Android Software/Hacking General [Developers Only]] saraghon:
Try replacing wpa_supplicant.conf in /system/etc/wifi/ by this one after extracting it and give it 0777 prmissions.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Ya forgot to mention that I tried this too.

Edit : Tried again doesn't work.
[Android Software/Hacking General [Developers Only]] saraghon:
Try replacing this line: ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant with ctrl_interface=eth0 in wpa_supplicant.conf file.

Turn off and turn on wifi after every change.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
I do a reboot after every change. It didn't worked.
[Android Software/Hacking General [Developers Only]] saraghon:
Please describe the wifi issue.

Before changing any files try this settings:

1. Click on ‘Wireless & Networks’

2. Click on ‘Wi-Fi Settings’

3. Press ‘Menu’ button

4. Click on ‘Advanced’ (bottom right of screen)

5. Click on ‘Wi-Fi Sleep Policy’

6. Check the ‘Never’ option.

If this doesn't work.

Try this after editing the line I mentionned in wpa_supplicant.conf:

Now it looks like:

ctrl_interface=eth0

Save the file.

in the CMD window do:

adb push wpa_supplicant.conf /system/etc/wifi/

adb shell

chmod 777 /system/etc/wifi/wpa_supplicant.conf

Now we need to restart the wpa_supplicant daemon, we do that this way:

in your CMD window in adb shell type top and press enter.

watch close for a line to fly by like this one:

1399 0% S 1 1904K 996K fg root /system/bin/wpa_supplicant

when you catch it hit CTRL + C and make note of the number at the beginning of that line on your device.

now in your CMD window do:

adb shell

kill (number of the line you found)

You should now notice on the phone your wifi has turned itself off, this is a good thing.

You can close CMD

Go to settings and turn on your WiFi again, that will start up wpa_supplicant again, with the

new config file, and new settings.

Try and tell me.

And if it doesn't work:

Try this and tell me if it works:

Go here: Settings >> WiFi Settings >> hit Menu soft button on the phone >> Advanced >> Use Static IP and fill with static IP address, Gateway, Netmask

I think the phone is gonna connect to Internet.

Try also to replace

/system/etc/dhcpcd/

folder &

/system/etc/wifi/

folder from 2.3.7

I think this is an issue related to dhcp. Try static ip first to confirm.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Thanks for detailed steps.

I'm gonna try it.

The issue is that it stucks on "Obtaining IP address..." and then gives error.
[Android Software/Hacking General [Developers Only]] saraghon:
Welcome. I hope one of them will work.
[Android Software/Hacking General [Developers Only]] sid5291:
Like saraghon suggested this seems to be a problem with dhcp try to put a static IP and see if it connects ...
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
@Saraghon:

If you still have test4 (without any changes made to it), could you please try going to /system/bin/ and deleting "rmt_storage", rebooting and formating data and cache. Tell me if this makes a difference to radio.

If no difference happens, or system bootloops, use adb to push port-bridge from 2.3.5 to the phone.
[Android Software/Hacking General [Developers Only]] s.rana71:
Can't we unlock bootloaders as it will be easiest way as i think
[Android Software/Hacking General [Developers Only]] Taki2011:
MIUI Port worked fine after first restart Stack at M Logo Then I Flashed it again the same
[Android Software/Hacking General [Developers Only]] saraghon:
Ok I'll try that.

Edit: I did that and after deleting rmt_storage I think nothing changed: in two cases the phone boots normally. But Ihave some good news: Look at this logs.

log1: Log for raw test4.zip with no changes.

log2: Log for raw test4.zip with new edited SettingsProvider.apk to correct the issues in log1.

log3: Log for raw test4.zip with new edited SettingsProvider.apk and new edited framework.jar and services.jar

The phone bootloops in log2 and log3 and starts normally in log1 of course.
[Android Software/Hacking General [Developers Only]] Taki2011:
Plz Can Any one Edit In Wpa File To make it support Ad hoc ?
[Android Software/Hacking General [Developers Only]] saraghon:
So abhijeet. Any news?

---------- Post added at 02:05 AM ---------- Previous post was at 02:04 AM ----------

What's the progress with your MIUI Rom? What's working and what's not working?
[Android Software/Hacking General [Developers Only]] Taki2011:
fIREST bOOT WORKED FINE AFTER FIRST RESTART STACK aT M LoGo Flashed it again I HAve The Same Problem ... Any One Can Help Me In Ad Hoc Problem ? Or Any Way Can i Edit Wpa File
[Android Software/Hacking General [Developers Only]] saraghon:
Did you format cache and data after installing the MIUI zip?

What do you really want to change in Wpa?

Edit:

Download the attached wpa_supplicant bin and after extracting it to your adb folder do the following:

1. Connect your to pc with adb enabled.

2. Open a CMD line.

> adb shell
# su
# rm -R /system/bin/wpa_supplicant

3. Type Ctrl + C

> adb push wpa_supplicant /system/bin/wpa_supplicant
> adb shell
# chmod 0755 /system/bin/wpa_supplicant
# reboot

Wait for the phone to reboot and I think you ad hoc will work.
[Android Software/Hacking General [Developers Only]] Taki2011:
I made it but wifi Start Then Searching then it turn off

For miui The error in a lib I'll try to fix it
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Unfortunately neither of them them worked. I tried one by one but didn't worked.

Edit : I did everything in a hurry. You can try it too. Maybe I made something wrong. :/
[Android Software/Hacking General [Developers Only]] saraghon:
Try to change Wifi encyption in your router.

If you are using WEP try with Open and with WPA./WPA2 and tell me the result.

---------- Post added at 04:51 PM ---------- Previous post was at 04:47 PM ----------

Ok I hope you succeed.

Tell me some information about your Rom. Is it based on 2.3.5 or 2.3.7 Rom?

Did you succeed booting normally?

What are the known issues?

---------- Post added at 04:54 PM ---------- Previous post was at 04:51 PM ----------

I can't try it Because I have 2.3.7 installed on it. I'm trying to fix the Radio issue with 7amdoun. Maybe I'll do that later. Can you upload the zip file?
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
I tried changing my router to open but didn't succeeded too.

OKay I will again give it a try tonight.
[Android Software/Hacking General [Developers Only]] saraghon:
Ok just give it some of your time. I'm sure one of them must work especially static ip method. try every mothod on unchanged 2.3.5 Rom with new kernel to be sure.
[Android Software/Hacking General [Developers Only]] s.rana71:
The progress is slowing down day by day. I doubt we will get fully working os

---------- Post added at 10:01 PM ---------- Previous post was at 09:56 PM ----------

Cant we bypass signed rom authentication or unlock our bootloaders please reply soon

Also how locked bootloader makes problem in installing custom rom

Please reply
[Android Software/Hacking General [Developers Only]] shalom06:
Dude if you dont know anything stop complaining i am an ex MILESTONE user we Tried fr 1 and an half yr to try unlocking it ,It got unlocked 2 months back by nadalbak and Skrillez_cz.....So please if you cant help just dont be a pain..Let the developers do thier job.
[Android Software/Hacking General [Developers Only]] s.rana71:
But I am just saying so as i am also excited to see ics on the device.

That's why i think i m commenting non related issues.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Hey did you tried to change radio to gsm by info?

If not then try:

Type in keypad *#*#4636#*#*

And then Phone information.

Then try different settings.

Hope it works.
[Android Software/Hacking General [Developers Only]] saraghon:
You're right my friend. This needs a lot of time we don't have but we are doing our best.

---------- Post added at 07:17 PM ---------- Previous post was at 07:11 PM ----------

Some patience please my friend.
[Android Software/Hacking General [Developers Only]] saraghon:
I did that before but it's not working.

I think the problem is not with libs. It's with SIM card because it's not detected by the phone. Do you have any idea about files controlling Sim Card?
[Android Software/Hacking General [Developers Only]] Taki2011:
plz can any one upload the zip that every thing works except phone ? i have somee ideas to fix it
[Android Software/Hacking General [Developers Only]] saraghon:
Download it

here

and share your ideas.
[Android Software/Hacking General [Developers Only]] :
Hi folks i want to help trying to get this work so i did all the steps that you did in my xt531

Reflash stock room

flash cwm and root

in cwm flashed the adreno200 drivers and test4,

so im ready to help you guys, just tell me what you want to test or install and I'll give you the results

EDIT i forgot to mention that i had flashed the kernel too
[Android Software/Hacking General [Developers Only]] saraghon:
Ok welcome. Wait for the coming test zip.
[Android Software/Hacking General [Developers Only]] djj99888:
Can we put DATA2ext's code into init.d to make DATA2ext work?
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Finally.

Someone made a ROM.Go here

PS : I didn't liked it much. :rolleyes:
[Android Software/Hacking General [Developers Only]] saraghon:
I didn't understand the language please help. Is it a stock with which kernel. 2.6.32 or 2.6.35?
[Android Software/Hacking General [Developers Only]] lys0529:
it should be Indonesian
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
It is based on 2.6.32
[Android Software/Hacking General [Developers Only]] saraghon:
Ok. Thanks. It sucks with 2.6.32!

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

Any news about wifi?

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

Thanks man!
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Tired of trying but of no use.
[Android Software/Hacking General [Developers Only]] schrickz:
does this bootmenu works like milestone's open recovery or droid series safestrap ?
[Android Software/Hacking General [Developers Only]] lys0529:
likes Defy's bootmenu
[Android Software/Hacking General [Developers Only]] schrickz:
thanks ..
[Android Software/Hacking General [Developers Only]] saraghon:
I think we have a hope with 2.3.7 Rom because I was replacing some files in Stock with new kernel from 2.3.7 to fix wifi and I got the Radio issue. Radio became unworking in stock with new kernel like in 2.3.7 ROM made by 7amdoun. I think I copied a file from this one that makes Radio unusable. I think it's the same causing Radio issue in 2.3.7 but I'm always trying to find which file or files.
[Android Software/Hacking General [Developers Only]] ufinopantesco:
Aweosomeabhijeet can you modify also the keyboard? Can you make it ICS style? :D
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Easy job. Goto market and download it. Its just an apk nothing else.
[Android Software/Hacking General [Developers Only]] aweosomeabhijeet:
Oh that is a good news. Do you remember if it is a lib or bin or something else?
[Android Software/Hacking General [Developers Only]] saraghon:
I think it's something in /system/etc/ folder

or in /system/etc/bin because I've changed many things at once.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
@Saraghon:

Here's a quick test. Use test4 zip as a base.

In the framework.jar, go to com/android/internal/telephony and replace

ONLY

the following with ones from stock 2.3.5

gsm folder

all RIL smali files

Don't change anything else in the jar or any other jars.

Recompile, add to zip and flash. Don't forget to reset phone (format data) after replacing framework.jar.

I hope that with those changes, it at least recognizes the SIM card (removes the no SIM error on lock screen).

Good luck
[Android Software/Hacking General [Developers Only]] saraghon:
Welcome back 7amdoun. I'm trying this now. Don't zap.

Edit: I did it but can't test because of phone force closing all the time after boot.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Does the lock screen say "no SIM" or "no service"?
[Android Software/Hacking General [Developers Only]] saraghon:
I can't see the lockscreen. Phone force closing all the time
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
I think that is actually a good sign. It means the phone is trying to load something and failing. We're making progress :)

Well, replace the cdma folder and all the phone smali files (13 files I think), then push the new jar using adb, format data, then reboot. Upload the log after that.
[Android Software/Hacking General [Developers Only]] saraghon:
Ok. Doing it. Did you try it or not yet?
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Unfortunately I don't have the phone right now :/
[Android Software/Hacking General [Developers Only]] saraghon:
Ok. I did that but Phone is still force closing. I'm trying to replace SettingsProvider.apk and Phone.apk

Edit: The log in attachement.

Edit2: Nothing changed after pushing phone and settingsprovider
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Only replace phone.apk and format data after that.

EDIT: I know you're gonna hate me now, but could you please replace the "IccCard" stuff too (not the other Icc stuff). Push jar, reset data and upload log.
[Android Software/Hacking General [Developers Only]] ufinopantesco:
I know, but it isn't multitouch, and weights more than 8 MB
[Android Software/Hacking General [Developers Only]] saraghon:
It didn't work. The same result my friend. Please take a look at the last log in my post before this in page 84.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
I did and thats why I'm asking you to replace the IccCard stuff as its failing according to the log :)
[Android Software/Hacking General [Developers Only]] saraghon:
You're welcome brother. We are making progress day after day thanks to your efforts and help.I was thinking about it. Just one moment please.

Edit: The phone app is still force closing after replacing IccCard Stuff. What if we replace only all the telephony folder?

See log in attachement.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Do you get a lock screen now? No sim card or no service?

I'm worried that replacing the whole will make the device not boot so I was trying to make it step by step.

Feel free to try though. Maybe that might fix it :)

PS. Make a backup of current framework.jar with the mods we made so far in case we need to get back to it.
[Android Software/Hacking General [Developers Only]] saraghon:
Ok.

Edit: after replacing all the telephony folder phone booted normally but a lot of apps were force closing. We first must try to fix this force closing problem. Without that we will not be able to see the lock screen or access the phone settings. Is there any method to bypass the setting wizard at boot?

Log in attachement.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
In build.prop, you'll find a line about setup wizard saying OPTIONAL, change it to DISABLE and delete data.
[Android Software/Hacking General [Developers Only]] saraghon:
Ok thanks.

Look at this from all the logs:

I/SettingsProvider( 301): DATA roaming sim1's value = false sim2's value=false

We have to manage to let it look for one sim card and not two sim cards.
[Android Software/Hacking General [Developers Only]] Dr. Hurt:
Any updates?

try replacing the settings.apk too.
[Android Software/Hacking General [Developers Only]] saraghon:
Settings or SettingsProvider? I'm flashing the new zip now with disabled wizard.

Edit: it didn't disable. I'm stuck on it with phone force closing errors. I didn't replace settings.apk yet.