yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] freedom_il:
Hi!

I just successfully restored my phone from French 2.1.1 to Bell 0.37.23!!!

It has been one of the most stressful things I did with any of my gadgets since I don't live in Canada and there is always the risk of brick without warrenty and help.

Anyway, it was successful and I am now downloading the Gingerbread update on my phone.

I hope that this post helps people that want to return to stock Bell for Gingerbread and are unsure if such a hack will work.

Ao, Kudos and thanks again for your work man.
[Atrix 4G Android Development] freedom_il:
Do these scripts (root, deodex) work on Gingerbread updated Bell phone?

Also, do you know if the Gingerbread update unlocks the bootloader or do I need to do something else to unlock it?
[Atrix 4G Android Development] NFHimself:
These scripts were done with Froyo in it's various compatible forms for the Bell atrix, it wasn't updated/tested for Gingerbread. Gingerbreak won't work. Also, it was getting a bit tangly dealing with all the variations out there.

The Gingerbread update from Bell doesn't unlock anything.

Cheers!
[Atrix 4G Android Development] NFHimself:
All files should be chmod 644, chown 0.0, so..

chmod 644 /data/local/tmp/app/*

chmod 644 /data/local/tmp/framework/*

chown 0.0 /data/local/tmp/app/*

chown 0.0 /data/local/tmp/framework/*
[Atrix 4G Android Development] NFHimself:
All the files are in system.tar.gz, use 7zip to extract.

You can probably automate this with a bat script, for file in files adb push $file if error prompt to continue, that kind of thing, and in another command prompt window do the psneuter over an over.
[Atrix 4G Android Development] NFHimself:
Hi,

Version 3 now contains a bat file to gradually copy files over to /data/local/tmp

Cheers!
[Atrix 4G Android Development] NFHimself:
I'll probably be silently fixing bugs without posting for a while, I'll just update dropbox.
[Atrix 4G Android Development] ChongoDroid:
Hey I was just wondering if you were going to make this flashable via cwm?

Sent from my Motorola Olympus
[Atrix 4G Android Development] NFHimself:
Hi,

I can easily do that, sure. I haven't tried using it myself yet though, cwm 2.5.* seems old to me, and next week the requirement to use a power adapter might be gone. I'd like to understand more about what it is doing first, I don't want another busybox installation ala one click root. Is there some kind of version checking you can do in updater script to make sure it's the right update for the right phone? I can see people tossing around update.zip files and folks getting into trouble because the firmware isn't the correct one or the carrier is not right.

For me it's a matter of upload bandwidth, an update.zip would have to have everything included, any change means an hour spent uploading. The files I am using from system are available, you can toss it into an update.zip yourself or anybody can, most update.zip's just contain system folders to be copied over, just add more files. I'd be more inclined to create an update.zip on the fly via script. :)

All you are really doing is making sure android isn't running while you are making changes, duplicating the linux side of the boot environment without the android startup. If we had a proper init.rc setup we could just use onprop to start android and do our thing beforehand via init.d style scripting. We don't even had a proper root right now (one that can take adb remount or adb root without psneuter) and we are way behind on the firmware. I get the feeling that I could do a bunch of stuff and have Bell come along with an update -how about a final release version?- making it all pointless. :)

There is one thing I noticed from the adeo scripts, it attempts to delete odex files, my phone never had odex files in /data/dalvik-cache, so there may be things going on that are different on Bell phones or things are being done via assumptions about other phones. Scripting compensating for bugs in other scripts/programs is getting a bit silly. I am not even sure what the point of deodexing is for our phones, (odex'd files just make the phone boot faster, saving the step of doing the byte code optimization into dalvik-cache), framework-res is just resources, no classes.dex involved at all, you can make changes to that all you want without deodexing everything.

My momentary interest is in avoiding system specific "roms". Just give me the changes and I can update the files on the fly, do we need a rom for 4.1.26 and the exact same rom for 4.1.57, etc, if all you are doing is replacing images and xml files and doing a small source code patch here or there? Why not port smali and bakamali to the phone itself and do everything there? Just some ideas, I am sure there have to be manual oversight on some of the changes that are made, but still.

Cheers!
[Atrix 4G Android Development] dasmoover:
http://gititbit.ch/asbf5 - mirror for Bell Atrix System Odex.
[Atrix 4G Android Development] SN4K3B1T3:
Running right now, root worked beautifully thanks for the great work!!
[Atrix 4G Android Development] ChongoDroid:
Are there even any themes that won't brick our bellatrix?

Sent from my Motorola Olympus
[Atrix 4G Android Development] raybond25:
i don't think anyone's shared a bell atrix theme yet. none of the AT&T ones will work due to different frameworks, but i'm sure SOMEONE has made some changes to a bell framework, but just hasn't posted it.

i think i might try port a theme soon when i have some more time, give us bell atrix users something to work with
[Atrix 4G Android Development] Crazed47:
that would be awesome!!!! a nice gingerbread theme :)
[Atrix 4G Android Development] raybond25:
Yeah, I'll have to double check everything involved, but maybe within the next couple weeks :)
[Atrix 4G Android Development] NFHimself:
Hi,

I was playing with a translucent title bar, but it affects the notification drop down, the date is displayed with the same translucent png, and you can see the edge of the notification window go past the titlebar.

I tossed it into the archive along with the H status icons.

Cheers!
[Atrix 4G Android Development] raybond25:
would you mind tossing a screenshot that shows that? would be helpful to decide whether to use or not :)
[Atrix 4G Android Development] Silent8Strike:
I tried installing via recovery and got an error on line 4 of the update script, tried it the normal way and everything went perfect :D.
[Atrix 4G Android Development] NFHimself:
Here you go.
[Atrix 4G Android Development] dascope:
In a few words, what does this "deodexing" do exactly?

Already rooted and CWM'ed here - why would I want to do this?

Does this unencrypt apk packages and allows you to modify the source?? New to this deodexing thig-a-ma-jig...

Thanks guys!
[Atrix 4G Android Development] NFHimself:
http://xdaforums.com/archive/index.php/t-709630.html
[Atrix 4G Android Development] ScottRTL:
Bell Atrix Love

I would love to see some Bell Atrix love. Maybe if enough Bell Atrix users on XDA were to put 5 or 10 bucks in each, we might be able to create a bounty that is high enough to catch the interest of the creators of Gingerblur or another mod, and maybe they would give us a ROM too...
[Atrix 4G Android Development] Mossys:
IT works. But it says when installing

and so forth down to app, framework.. has that same error.

the cmd box just closes after.

can anyone help and tell me what im doing wrong?

thanks!!

*EDIT*

Going to try to put that big upload on the sd card... MY BAD! (TESTING NOW)

Edit#2

Not working still. Oh well.
[Atrix 4G Android Development] NFHimself:
What operating system are you using? I have only tested Windows 7 and ubuntu.

Also, tell me what you did. Did you run SuperOneClick, apparently that would be bad for the Atrix, I never used the thing. Do you have an sdcard in the phone, I never tested that config. /sdcard on my phone refers to internal storage.

If your internal storage is mounted read only that would be odd, and nothing to do with my scripts. Sometimes that happens when there is an error in the filesystem, you pulled the battery while running or something, and the fs couldn't be fixed automatically, so it's mounted read only by the system. What could foul things up is an installed busybox from SuperOneClick that had commands with different behaviour.
[Atrix 4G Android Development] Rickroller:
Agreed. I'd throw in $20 for that.
[Atrix 4G Android Development] joe ferreira:
is their a bell 1.26 spf?

if so and you are not worried about bricking you might try to apply gingerblur 1.2 then apply the bell deodex files over the top of gingerblur before the CWM reboot

btw: get the files from the respective threads.

Does anyone else know of any reasons why this would not work?
[Atrix 4G Android Development] plemen:
The key is that we don't have an sbf to restore the phone to factory in case of soft-brick from one of the dev builds... I see on the first page it says:

"Added new script to copy files over when bricked."

If this will indeed replace the files modified by gingerblur with factory ones then the recovery may work... NFHimself - if the phone is softbricked from bad framework files can we still copy the deodexed files back to the phone?
[Atrix 4G Android Development] toughbax:
Can't we now use cwm to do a restore in case of a brick?
[Atrix 4G Android Development] NFHimself:
That script is for trying to get the files back over to /data/local/tmp if by some some miracle they get deleted and you happen to be bricked, (normally you would just use soft_brick.bat which just repeats the install commands). By itself it does nothing, just puts the deodexed files in /data/local/tmp. you would then run soft_brick.bat to run the same command to install the files from /data/local/tmp to /system/. When installing or uninstalling it's the same operation, copying files from /data/local/tmp to /system, so if you brick when uninstalling or installing, it's the same procedure. Other than that you can just restore the system partition to stock using dd and the img file from the first post. (Which I have done successfully, although the thought of it was a bit scary)

Bell users are not on 1.26, so no, there is no spf for that available, nor is there one for 0.37.4.
[Atrix 4G Android Development] ScottRTL:
The same phone...

Are they not effectively the same phone? I know when I had a Bell HTC Desire Z I had similar issues. All support was for the T-Mobile G2, but basically what I did, was turn my phone into a t-mobile g2 via firmware and then use all of the G2 Methods, worked like a charm, got CM 7 on it...

My Atrix is an MB860, is that not literally the same model number?
[Atrix 4G Android Development] TareX:
Noob question here (Bell Atrix Day 1); but if I follow the instructions on this post, get all "deodexed", will I still be able to put 1.5.7 on the phone using these instructions:

http://briefmobile.com/motorola-atrix-4g-1-5-7-ota-update-sbf

I really need that update because the battery sucks (down 90% in 7 hrs with minimal usage), and I have zero apps and widgets.
[Atrix 4G Android Development] cheetah2k:
I only bought the Bell Atrix as it had no AT&T logo on it. Seems theres little or no development going on for this handset, so I may as well just buy an AT&T version as it seems as though theres loads of stuff plus the updates going round.

Just looks like Bell has a fire n forget attitude with the updates. We may well never see 4.1.57 or anything above that at all :(

I'm not sure if this is Bell or Motorola related. Either way its back to the old ways and what we know of Motorola phones and lack of support really.
[Atrix 4G Android Development] NFHimself:
No, you can't put the ATT 1.57 on a Bell Atrix. Or at least you can't try it safely since you wouldn't be able to go back. Most likely you'd end up with a brick, or you'd end up with an ATT branded phone that may or may not work on Bell.

My battery life is pretty good, I read books, play games, and I get a full 24 hours out of the thing.
[Atrix 4G Android Development] bova:
Could you provide SBF Bell Atrix some link for download?

Thanks.
[Atrix 4G Android Development] NFHimself:
Short answer, no. I don't have one to give.
[Atrix 4G Android Development] plemen:
That sounds like it would recover from any changes made by the roms... now for a brave soul to try installing gingerblur and reverting back using dd and the img file.
[Atrix 4G Android Development] TareX:
Will I be able to use the At&t "mod for webtop via HDMI" on a Deodexed Bell Atrix?
[Atrix 4G Android Development] -Roze-:
I think the best thing to do is get developers insterested to break the AT&T Atrix, as the phone is basically the same sans the firmwares, they can use the same process and break the Bell model.

I pledge $20 for AT&T bounty and $30 if the dev gets the Bell crack after. lol
[Atrix 4G Android Development] NFHimself:
You can do that with or without it, the point of a deodexed rom is to give theme developers a blank slate to work with.

The Bell version of that is what you want, it's two files that are deodexed already. So, you'd want to do that after using my script to get the changes it does. I didn't include them because they are on this forum already and work fine.
[Atrix 4G Android Development] NFHimself:
It would be easier to just port Gingerblur over to the Bell Atrix, should be a lot easier than porting it from another phone. I was looking around for a good translucent theme to port over myself. One tip if you are doing that kind of stuff, apktool wants moto-res.apk and blur-res.apk installed using "apktool if moto-res.apk" before it will compile framework-res.apk back. then just grab the files you modified and toss them into the original apk. (I was looking at statusbar.xml and friends in layout to see if I could change the file to get a better looking dropdown when the status bar is semi transparent.)
[Atrix 4G Android Development] ScottRTL:
Ported or not

Ported to the Bell Atrix or from the ground up... It would just be nice to have someone that knows how, to create/make a "custom rom" work for the Bell Atrix. everyone with one is dealing with ancient firmware...
[Atrix 4G Android Development] ChongoDroid:
I hate bell, I'm on fido and I think I'm gonna return this bs and get an att model

Sent from my Motorola Olympus
[Atrix 4G Android Development] NFHimself:
I've done some stuff with the Archos A7HT, but not much with phones, having full access to the boot partition, being able to flash a custom recovery is a lot easier. Only point for me with phones was to get android on a windows mobile device or get the next version of android. The stock phone works well, making changes to it is just icing on the cake. :)
[Atrix 4G Android Development] Crazed47:
what is the procedure for this>?
[Atrix 4G Android Development] ScottRTL:
...

Bell... Rogers... Fido... Telus. They are all the same, it is all about the experience you get with the company...
[Atrix 4G Android Development] ChongoDroid:
I thought telus and bell weren't gsm like fido and rogers (same company)? I mean they use sim cards and I was never sure how this worked. Anyone know the details on cdma sim cards?

Sent from my Motorola Olympus
[Atrix 4G Android Development] -Roze-:
Their 2Gs are CDMA. Yhey both have partnered up to build the 3G HSPA+ infrastructure. That is why all At&t 3G smart phones will work on them since they use the same HSPA+ frequencies.

Rocking my Bell Atrix!
[Atrix 4G Android Development] NFHimself:
/data/local/tmp/psneuter

..

dd if=/sdcard/system.img of=/dev/block/mmcblk0p12

..

This is writing your system partition bit by bit, don't do it unless you know what you are doing. I managed to get away with running it from a live session, best to do it from a recovery mode, maybe that clockworkmod thing can be used as an environment for that, if adb access is available.
[Atrix 4G Android Development] freedom_il:
Hi!

Sorry for being a NOOB in advance but I have a couple of questions:

1. Do I need to install the deodex in order to root and remove ads or can I just root and remove ads with your script?

2. There is still no version update, but if there will be one, I guess returning to the original version is required. How can I do that?

Thanks!
[Atrix 4G Android Development] NFHimself:
Nope, the scripts are independent of each other. :)

Not sure what you mean with 2.
[Atrix 4G Android Development] freedom_il:
Thanks for the reply. Happy to hear the scripts are independant, that's great.

Let me explain (2): The Atrix 4G on AT&T required the original build in order to install their software update, hence, to unroot the phone before installing the update. aRoot supplied an unroot script for that.

If there will be a version update for Bell Atrix, will I be able to return it to the original state - unroot etc?
[Atrix 4G Android Development] NFHimself:
It's just a matter of deleting some files, /system/bin/su /system/xbin/su (just a symlink to former) and /system/app/Superuser.apk, do that and you are unrooted.

I have a system dump of a pristine Bell system partition, see first post, one way or another you can get back to stock.

Cheers!
[Atrix 4G Android Development] NFHimself:
Hi,

i just updated archive with better transparent statusbar, no artifacts with notifications now, instead you just have the date on top.

I edited status_bar.xml to have a different background for the date and to have it fill_parent instead of wrap_content. Inject the files into the regular framework-res.apk to use. resources.arsc should not be compressed, add to archive using 7zip (type zip, compression level store), or just use zip from linux with filters. I will probably automate this. :)

Cheers!
[Atrix 4G Android Development] ScottRTL:
CDMA/GSM

Basically, Bell/Telus were CDMA only, but they saw that it was killing them, and decided to upgrade to a GSM network since WCDMA will take a decade to fully introduce. So unlike Verizon, who are too damn stubborn, they bit the bullet.

Rogers bought Fido because they consider it a "hip" company that the "kids" will use, then they will eventually graduate to Rogers since there is no ETF/ECF to switch and they will bait you with a better plan.

From what I can tell, Bell (Telus') service in Vancouver is actually better then Roger's was surprisingly... I get HSPA speeds more consistently...Nice!
[Atrix 4G Android Development] freedom_il:
Thanks again!

I was wondering about sideloading. Is in enabled by your root script?

Sorry about asking basic questions, I got the phone while visiting a friend in Canada but I don't live there. I am afraid to damage the device and being unable to restore it so I am asking before doing anything.
[Atrix 4G Android Development] NFHimself:
Good idea. :)

Sideloading is built in stock, no need to add what is already there.

Cheers!
[Atrix 4G Android Development] NFHimself:
I just updated the OP to version 4.

ApplyMods.bat (and .sh) take the system.tar.gz archive and convert it to a custom firmware by using the contents of the mods folder. Alternatively, you can push the modified parts over to the phone in /data/local/tmp/app (/framework), and from there get them in /system/app (/framework).

ToDo. Install CWM recovery and get the update.zip generator tested.

Cheers!
[Atrix 4G Android Development] raybond25:
so, i just ran install_bell_deodex.bat, since all i wanted was a deodex, and nothing happened, using root explorer i can still see all the .odex files in their places.

is your script actually supposed to rename the odex files to .bak or something, or does it just render the .odex files useless? i'm not a complete noob to EVERYTHING, but i am to deodexing :P

should i just run the script again? or what?
[Atrix 4G Android Development] doaneramma:
BRICKED???

Um, so ran the script. Everything looked ok. but not I get the flashing red lights on the first boot screen. And the soft_brick.bat isn't finding the device. Any ideas? Is there a way to flash back to original?
[Atrix 4G Android Development] NFHimself:
You have to run root.bat first, and then reboot the phone, otherwise nothing happens when it goes to install the files, they will be copied over but the script that does the install won't execute. This is new behaviour for what I am doing, psneuter turns off the property system of android, handy for the initial hack, but annoying afterword.

Any other bug reports, I really need more info. I don't get any red blinking light here anymore, I'm disabling android before changing the files, it's not part of what should happen in other words. You root the phone, reboot it, and don't run psneuter for anything else before running the install script. PM me with bug reports.

Kind of things I need to know:

What you did already to mod the phone, CWM, oneclickroot, etc.. (anything that overwrites busybox is likely to have missing commands or ones with different behaviour, for example a mount listing that has an extra column, things like that. The busybox that comes with the phone is pretty complete, no need to replace it just because.)

What operating system you are running.

Exact steps you performed. Did you get a red blinking light before or after the phone rebooted?

What the output on the screen was.

Without a clue to what could be wrong, I can't do anything to fix it. I could absolutely do more testing of this stuff, and I am sorry if you run into problems. Some things I discover on my own and I fix them, but I probably won't catch everything.

Red blinking is ok, it just means the system files didn't pass a check. I have recovered from that several dozen times. No biggy. Just restore the files back to what they were. Get into early usb device enumeration, keep trying adb shell until it works, exit it and run softbrick.bat (.sh) or just su, remount system as rw and copy the files over from /data/local/tmp. If you have no files in /data/local/tmp, you have gone somewhere I have not been able to duplicate. If the files are there, then soft_brick.bat should do the job.

If you can follow what the script is doing, then you should be able to figure it out. There could be bugs in it, nature of the beast, windows bat files are random in syntax from one version of windows to another. The linux ones should be more successful depending on when I was last working on the scripts in linux.
[Atrix 4G Android Development] raybond25:
i already rooted with GladRoot, so i didn't think i had to run root.bat, should i, then try deodex again?
[Atrix 4G Android Development] NFHimself:
You have to run root.bat to root the phone first, then reboot the phone, you can always unroot it later. The entire app and framework folders are backed up to internal memory. Probably easier just to read the scripts, pretty straight forward. :)
[Atrix 4G Android Development] NFHimself:
I haven't run that, but it shouldn't be a problem, the point is not to have psneuter affecting the phone, and if you said yes to sideloading, etc, not sure how that would affect things, the only thing that applies is the rooting part for bell phones. The script is piped to su, if su isn't on the phone, nothing happens. I assume we are using the same su binary. I would run my root.bat, just to be sure.
[Atrix 4G Android Development] raybond25:
mkay, i'll try it later today and let you know how it goes
[Atrix 4G Android Development] raybond25:
update: ran root.bat, then ran deodex.bat again and it worked :) thanks NF