yashsingh1/xdaforums huggingface dataset:
[Android General] Mazen.kh:
Wow i didn't understand a single character in that flex thing :D i'll do more searches so that i may know anything about it.

Also, Does anyone knows how to port screenshot option from cyanogenmod to our phone ?

i copied some lines from motorola xt5 xt502 framework of cm7 from public.xml and strings.xml that is realated to screenshot option in the power menu then apktool couldn't compile and gave me:

C:\>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\\framework-res\res\values\public.xml:6030: error: Multiple entry names declar
ed for public entry identifier 0x13a in type string (fih_plmn_23101_eons vs glob
al_action_screenshot).
C:\\framework-res\res\values\public.xml:1879: Originally defined here.
C:\\framework-res\res\values\public.xml:6030: error: Public symbol string/global
_action_screenshot declared here is not defined.
C:\\framework-res\res\values\public.xml:5408: error: Multiple entry names declar
ed for public entry identifier 0x1ad in type drawable (ic_lock_screenshot vs ic_
menu_allfriends).
C:\\framework-res\res\values\public.xml:6031: Originally defined here.
C:\\framework-res\res\values\public.xml:5408: error: Public symbol drawable/ic_m
enu_allfriends declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\asus\AppData\Local\Temp\AP
KTOOL213157949046319975.tmp, -x, -S, C:\\framework-res\res, -M, C:\\framework-re
s\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\asus\AppData\Local\Temp\APKTOOL213157949046319975.tmp, -x, -S, C:\\framewor
k-res\res, -M, C:\\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

If someone can help mee.. cause i'm a noob in porting :D what else do i have to copy/port ?
[Android General] Mr.Indigo:
I've found a tutorial about porting CM to an stock. But we need a device with the same screen, the same CPU and maybe the same Android version (not confirmed). Maybe we can port an P350 or Galaxy5 CM rom.
[Android General] Mazen.kh:
Give me the link of the tut. Maybe i can port it from an unofficial galaxy y cm7 it have 2.3.7 and armv6 processor too but 800 mhz, but i think we wont need the cpu frequency in anything since we have a locked bootloader
[Android General] Mr.Indigo:
Here is it

Link HERE

It's pretty good, and Galaxy Y runs an unknown chipset, while Galaxy FIT runs MSM7227, our processor!

Let's port from Fit!

EDIT: I take a look in your ROM, global 2.3.5 and it's different than mine, VIVO 2.3.5.

Your ROM have the CMP, and a lot of things that VIVO ROM doesn't have.

EDIT #2: And we have Update via OTA, provided by F.I.H. T.D.C (Foxconn International Holdings (TDC i don't know what is this).
[Android General] Overcrasher:
ChainFire 3D for XT316

Hello guys, im back with good news!

I succeeded with install ChainFire 3D in Motorola XT316 using this 2.3.5 ROM, there is a tutorial and file uploaded ready to use:

4shared.com/rar/t7FzOVTJ/ChainFire_3D__Plugin_Qualcomm.html?

PS: add a www before, im a newbie and i cant post links before 10 posts...
[Android General] Mr.Indigo:
Wow!!!

Now we need an CM ROM, 10% progress at now!

An CWM for XT530 sis going to be launched soon! Maybe we can port to XT316!!

Sent from a lightfire : The. Motorola Spice Key, XT316 de-blurred
[Android General] Mazen.kh:
CWM for xt530 really?! When did you read that :O! It may give us some hope!

Sent from inside the fire with my Motorola Fire via XDA Premium.
[Android General] Mr.Indigo:
Today, here on XDA is on Q&A!

If we can port... it will be lovely!
[Android General] Agoriro:
good night

I wonder if this method also serves for the Motorola XT300. 2 days because I've been looking and can not find how to unlock this mobile network.

I appreciate your help.

Sorry for my bad English I'm using Google translator
[Android General] Mazen.kh:
Excuse me but what method are you talking about? Do you mean chainfire 3D?

If so, Then i don't know actually, but you can always try as long you have the stock sbf you're safe !

Sent From Inside The Fire With My Motorola Fire via XDA Premium.
[Android General] Agoriro:
By method I mean is that I am enclosing, what happens is that I have the cell by an operator and I want to release to be used with any operator.

In advance thank you very much for your help.
[Android General] Dr. Hurt:
Again! Sorry for that.

What was the problem with the graphics anyway. Flickering? White screen? Slow?
[Android General] Mazen.kh:
Flickering, rsd lite finally detected the device, reflashing now, lost my customized /system/ partition xD
[Android General] Dr. Hurt:
I'm soryyyyyy :o

Anyway, have you tried changing debug.composition.type to gpu, c2d, cpu? What was the result?
[Android General] Mazen.kh:
My bad, forgot to do so. maybe will retry later :)
[Android General] Mr.Indigo:
XT315?

This phone exists?

Just plug the usb with vol- and camera button and PC will recognize.

Tested in Windows 7 and Windows 8.
[Android General] Dr. Hurt:
No more playing with graphics libs!

PS. After flashing the newer kernel, start the phone in recovery mode, clear cache partition and data partiton (by selecting system reset).

Keep me updated.

Thanks in advance :)
[Android General] Mazen.kh:
Nevermind :) reflashed :)
[Android General] Mr.Indigo:
I changed to GPU.
[Android General] Dr. Hurt:
How about c2d or cpu?
[Android General] aweosomeabhijeet:
I tried replacing CG2.smg from XT532 ROM to XT530 but it didn't work.

Flashing process failed.

Phone wasn't bricked.

I tried replacing the bootsec.mbn and put it in XT530's ROM but didn't succeeded, again the flashing process was failed.
[Android General] Dr. Hurt:
I tried that too a few months ago and it didn't work.

Rename bootsec.mbn to boot.img and flash it using ADB

use:

fastboot erase boot

fastboot flash boot boot.img
[Android General] aweosomeabhijeet:
Important

Hey

listen i found a new thing.

I replaced charge_only_mode from defy's ROM to XT530's ROM renaming it as "battery_charging"

And i found that the battery icon has changed it's size became small.

And now if i am trying to delete that file it says it cannot be deleted.

May be now we can symlink 2nd-init.

I dont know anything about symlink. So could you please P.M. me all the steps and files required

Thanks

Eagerly waiting for a custom rom

---------- Post added at 09:07 AM ---------- Previous post was at 08:50 AM ----------

Thanks for the guide but the display is lagging too much and sd card doesn't mounts.

And graphics don't work properly.

I think we have to replace Gpu SD card and other files too.
[Android General] Mazen.kh:
Well, can you provide the charge_only_mode file that you renamed ?
[Android General] aweosomeabhijeet:
Sure.

Here it is.

But when I tried symlink(read on some other thread) it says link failed file exists.
[Android General] Dr. Hurt:
Thats interesting

Did you try that battery_charging thing after replacing the kernel?

You're talking about the the battery icon when charging the phone while its turned off, right?

I'll upload the 2nd-init files I modified for the XT530 along with instructions in a few hours because I've gotta go to school now :/
[Android General] Mazen.kh:
Actually when i attempt to execute battery_charging using terminal it says permission denied

do you know where are the images that this binary point to, in defy ?

EDIT: changed permissions, executed through terminal, it gives me

[1] + stopped (signal) battery_charging
[Android General] aweosomeabhijeet:
Thanks

Yes i am talking bout that one only.

No i replaced back my kernel because the display was lagging too much.

OK.

I'll wait.

---------- Post added at 10:02 AM ---------- Previous post was at 09:58 AM ----------

Eh.

I didn't got you.

Can you please elaborate.
[Android General] aweosomeabhijeet:
Do you know something bout that error?
[Android General] Dr. Hurt:
Here is 2nd-init + CWM made by gentrylamp and edited by me for compatibility with XT530

1- unzip the bootmenu folder and copy it to /system/

2- rename battery_charging to battery_charging.bin

3- download terminal emulator from market and type: ln -s /system/bootmenu/binary/bootmenu /system/bin/battery_charging

4- fix permissions for /system/bootmenu/binary/bootmenu and 2nd-init

5- fix permissions for /system /bin/battery_charging (NOT the battery_charging.bin, but rather the NEW one created by symlink in step 3)

6- flash the new kernel

7- switch phone off, plug in the charger, and if all goes right boot menu should start instead of battery charging icon :)
[Android General] aweosomeabhijeet:
Help

Will it be necessary to flash new kernel?

I mean than the phone's display will be lagging.

And have you tried it?
[Android General] Dr. Hurt:
Yes, I tried with the old kernel and it didn't work. Feel free to try it yourself.

BTW, did you try the battery_charging from defy with the old kernel or the new one?

Try setting debug.composition.type in build.prop to c2d and cpu to see which one improves graphics more (just temporarily till we get CWM working and replace the entire ROM)..
[Android General] aweosomeabhijeet:
But have you succeeded? Does it work with new kernel?

And I don't have a DEFY I extracted the charge only from one of cyanogenmod.

And could you tell me what permissions should i set for the files.

Thanks
[Android General] Dr. Hurt:
No, I haven't tried it with the new kernel yet as I don't have access to a windows PC at the moment :/

So you used the files from cyanogen with the new kernel or the old one??

permissions should be rwxr-xr-x

[x] [x] [x]

[x] [ ] [x]

[x] [ ] [x]
[Android General] aweosomeabhijeet:
It had a new kernel.

I didn't succeed :(
[Android General] Dr. Hurt:
Hmmm, don't really know what to do next.

You followed my steps exactly and got battery charging logo instead of bootmenu?

So it's either our phone is not trying to load the binary or maybe GentryLamp's port is just incompatible with our phone!

@Indigo:

What do you think? Have you tried any 2nd-init/CWM other than that by GentryLamp?
[Android General] aweosomeabhijeet:
Yes!!!

Yes i followed the steps exactly.

But the battery icon remained there.

I have something in mind i'll try it tommorow.

I am going to bed.

Meet you guys tomorrow
[Android General] Mr.Indigo:
I tried with XT615 recovery....

But didn't work. I think that we should use another binary, like fih_imgupd. If we use terminal emulator to execute, we will got success.
[Android General] aweosomeabhijeet:
Ohh I see

So will this file load at start up?

But when will it load do you have something in mind for it?
[Android General] Mr.Indigo:
It didn't load at the startup. We just execute and the modded binary will restart the phone and enter in CWM. Simple.
[Android General] Dr. Hurt:
I didn't actually know that the XT615 had a compatible CWM6 image. I guess I was far away from the forums for too long :)

The XT615 has the same chipset, so our device should be theoretically 100% compatible with the binary.

Did you try booting it using: (using the newer kernel)

adb reboot-bootloader

fastboot boot recovery.img

OR the start_recovery.bat by enox

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

If it didn't work, the the problem is NOT with the binary. The problem is probably with the bootloader.
[Android General] Mr.Indigo:
I tried all of the XT615 tutorials. But no success...
[Android General] Mr.Indigo:
There's a newer SBF than 4480-4017 or 4620-2013??
[Android General] Dr. Hurt:
Did you try with the new kernel too?

If yes, then the problem is bootloader, not kernel :(
[Android General] Dr. Hurt:
CONFIRMED: problem is caused by the bootloader, not the kernel.

Interestingly enough, I was able to load the bootloader from the XT532 on my XT530 and it WORKED!

Is there an easy way to flash the bootloader to the phone? I think we might be able to do it by creating a custom SBF.
[Android General] Mazen.kh:
So which .MBN is the bootloader in the sbf ?
[Android General] Dr. Hurt:
Its called appsbootsec.mbn

To integrate the newer bootloader into the SBF, copy the appsbootsec.mbn from the XT532 (or XT317) to the XT530 (or XT316), recalc checksums, compile the CG2.smg, then the compile the SBF.

I'm not sure if it'll work though, try on your own risk!
[Android General] aweosomeabhijeet:
FaIl

No it didnt worked i tried it.

:(
[Android General] Mazen.kh:
In my opinion we should copy all the following (see attachment)

not only appsbootsec.mbn
[Android General] aweosomeabhijeet:
It wouldn't work.

I have tried replacing all 4 files too but flashing fails.
[Android General] Dr. Hurt:
I don't have those .header files in my SBF, but they're not important anyway.
[Android General] aweosomeabhijeet:
Exactly headers aren't important i think.
[Android General] Dr. Hurt:
Well, I don't know where to go next.

The problem is I don't think it would be possible to flash the bootloader using fastboot.

If you have linux, try flashing the SBF using sbf_flash tool. Its know to work better than RSD lite.

For the mean time, I just thought about something interesting. Why not flash system.img (from XT532) after flashing the boot.img? This could potentially update the phone to 2.3.7 and fix many of the issues we had.
[Android General] aweosomeabhijeet:
It SUCKS

Tried that it replied file too large.

:(
[Android General] Dr. Hurt:
Well, this sucks now :(
[Android General] Mazen.kh:
Away from CWM a little bit, and away from 2nd init

I discovered something that could be useful for xt31x and xt53x users

When i decompiled "services.jar" i found that the notification led is controlled by "services.jar" with the help of "NotifyLed.apk"

I just wonder if someone who understand Java-android development, can help us to make it blink for other apps to (eg: whatsapp)

not only mms.apk and missed calls and low battery.
[Android General] aweosomeabhijeet:
Important yes yes yes finally

FinALLY I BOOTED INTO BOOT MENU.

But it is lagging too much

copy bootmenu to /system/bin

open terminal emulator type

exec bootmenu.

Voila you are in.

Now i cant go into CWM it loads into stock recovery tell me how to its too interesting.

And could you u tell me where stock recovery lods from?

i think replacing that with CWM file will work.
[Android General] Mazen.kh:
Well stock recovery loads from "recovery partition" and if you put an unsigned recovery there, your will be a wall brick

if we could replace stock recovery file with cwm, we would've had cwm ages ago :D
[Android General] aweosomeabhijeet:
Well for your kind info the phone was not introduced "ages ago"

And I m able to boot in CWM

Yes. :fingers-crossed:
[Android General] Mazen.kh:
i was just joking :D

how did you do that ? full HOW-TO please :)?
[Android General] Dr. Hurt:
By boot, do you mean "restart" the phone into CWM?
[Android General] aweosomeabhijeet:
Don't worry I will Give full detailed instructions.

But BTW tell me the solution I am not able to copy the whole bootmenu folder which 7amdoun provided.

It gives me error . something like the disk is full

Solution please

Thanks

---------- Post added at 05:07 PM ---------- Previous post was at 05:05 PM ----------

7amdoun

I tried it but it was lagging too much.

But when it entered stock recovery (by some mistake :laugh: ) it restarted so i think it'll work.:cowboy:
[Android General] Mazen.kh:
i think you need at least about 7 mb free in system partition

try to copy with root explorer and try with adb
[Android General] aweosomeabhijeet:
Root explorer doesn't work.

I have upto 10 mb free but only some of the files give error.

other all are pasted.
[Android General] Dr. Hurt:
It's lagging because it's trying to set the wrong resolution.
[Android General] Mazen.kh:
Sorry but, what permissions do i need to set ?
[Android General] aweosomeabhijeet:
I found it that only script folder is not copied.

Could you help?

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

[x] [x] [x]

[x] [ ] [x]

[ ] [ ] [x]
[Android General] Dr. Hurt:
I tried exec battery_charging in terminal emulator and it started bootmenu, but when I select the recovery option (CWM) the OS crashes and phone restarts.

I still cannot get bootmenu loaded during phone startup. How did you do it?
[Android General] Mazen.kh:
Don't know actually, i copied the files from sd card with "root browser" normally with no errors

so i'd set these permissions to the files that 7amdoun mentioned only, right ?
[Android General] aweosomeabhijeet:
Now mine too isn't loading.

It loaded st time i saw a menu then suddenly the phone restarted. :(

---------- Post added at 05:31 PM ---------- Previous post was at 05:31 PM ----------

Yes

---------- Post added at 05:39 PM ---------- Previous post was at 05:31 PM ----------

Can't we get any other CWM file?

We'll try it by that one

Edit :Custom recovery still loads in stock recovery.
[Android General] Dr. Hurt:
Problem is not with CWM.

Problem is that CWM *CANNOT* be run on top of Android. It HAS to be run during early boot. Thats why we were trying to hijack a binary in the first place.

===============

EDIT: Nevermind, tried it and it's not working!
[Android General] Mr.Indigo:
I tried to run on term emulator, and IT WORKED! The menu is laggy, by 7amdoun explain... but if I'm not wrong, if we make a recovery, put on the SBF and recalc the checksums, it will work charmly.
[Android General] andrewidya:
I found init.rc file in /data/local/tmp/

When I opened this file there are line about what proses to be initialized during boot time, maybe you have to add some line to execute cwm from this

:confused::confused:
[Android General] Mr.Indigo:
Do you mean.... binaries, right?
[Android General] andrewidya:
No, it's just script file, there are sequences of daemon/procedure to call when boot time before kernel bring android up
[Android General] Dr. Hurt:
No, that'll brick the phone due to the locked bootloader.
[Android General] aweosomeabhijeet:
We are not able to make a change to those files.

When you restart the device all the lines get deleted by itself.
[Android General] Mr.Indigo:
Dammit... but if we build an SBF similar to IHOP_BELL (Atrix MB860 bootloader unlock), I think we will get success.

—EDIT

Detail: you need to run as superuser in terminal. So here is the full instrunctions:

1. Copy bootmenu to /system/bin and repair the permissions;

2. Open terminal emulator and type:

$ su

Accept root permissions now

# exec bootmenu

And voila! You're in! ;D
[Android General] aweosomeabhijeet:
That is ok we have booted into bootmenu.

But how to load CWM that is the question.
[Android General] Dr. Hurt:
No, we haven't booted into bootmenu. We just loaded it on top of the OS and therefore we cannot use CWM because it requires unmounting the system partition.

========

BTW, I found a way that might flash the custom SBF with the bootloader:

Copy the SBF to C:\Program Files\Motorola\RSD lite

Then in command prompt, type

> cd C:\

> cd Program Files

> cd Motorola

> cd RSD lite

now for the flashing type:

> SDL.exe -f xxxx.sbf -t 2

where xxxx.sbf is the firmware you are flashing to the phone.

Try at your own risk
[Android General] aweosomeabhijeet:
Doesn't work. :(
[Android General] Mr.Indigo:
The bootloader that we will use is from XT317, right?
[Android General] Dr. Hurt:
If you're using XT316, then yes the bootloader from XT317.
[Android General] Mr.Indigo:
I will replace CG2 only, so it's easier. Then I repack everything and recalc the checksums.
[Android General] aweosomeabhijeet:
I have a question.

When we exec bootmenu and enter stock recovery the device reboots and enters stock recovery, right?

Then why does the device doesn't reboot into CWM when we select custom recovery?

Can anyone explain?
[Android General] Dr. Hurt:
No, CG2 is the entire ROM. The radio file inside the XT317 CG2 is probably incompatible with XT316 so it could brick the phone.
[Android General] aweosomeabhijeet:
Editing anything in .sbf doesn't work. :(
[Android General] Dr. Hurt:
Because stock recovery is loaded by the bootloader while CWM is loaded by the system hijack (which we don't have)!

---------- Post added at 07:57 PM ---------- Previous post was at 07:33 PM ----------

Does anyone here have Linux (Ubuntu, Mint, Solus... etc)?

If anyone here does have Linux (even if a live CD) do the following in terminal:

sbf_flash -v xxxxxx.sbf

if it doesn't work try

sbf_flash -f -v xxxxxx.sbf

Get sbf_flash from here:

http://xdaforums.com/showthread.php?p=13927329
[Android General] Mr.Indigo:
We can use cygwin...
[Android General] Mazen.kh:
I have ubuntu installed alongside with windows, but i don't think i'mma take such risk messing with bootloader
[Android General] Dr. Hurt:
I don't know if cygwin has support for hardware access. And to be honest, I wouldn't trust cygwin with such a delicate process.

It would be much safer doing on a full linux system.
[Android General] Mr.Indigo:
I got it... so I have to wait until my desktop gets out of the store....

So I have to rebuild all the sbf with appsboothd and sec, right? So, I will replace:

systemhd

systemsec

appsbootsec

appsboothd

bootsec

boothd

Only, right? And how I can replace splash.img?
[Android General] chen2011521:
Splash.img has nothing to do with it. You can replace it with

"Fastboot flash splash splash.img "

Xt615 use recovery with "fastboot boot recovery.img "

I ported a recovery.img from ics source On ubuntu 12,when I boot it with the command .

It said:

sending 'recovery.img' XXXKB ...

OKAY

waiting 'recovery '...

OKAY

H:\>_

But devices didn't respond.

When I replace the recovery.img with the one I got with command

cat /dev/mtd/mtd3 > /sdcard/recovery.img

It told me:

FAILED (remote:incomplete bootimage )

Even I try the secrecovery.mbn

it also the same notice.

Why?

I think we can use the command

fastboot boot recovery.img

but donot have a suit rec.

Anyone can do something about it?
[Android General] aweosomeabhijeet:
Hey CWM works on top of android.

I had a clockworkmod menu with its icon behind.

It had options of flashing zip, wipe data,Install zip from sd card etc etc

by the command exec bootmenu

but this time i used

exec /system/bootmenu/binary/bootmenu

Edit : The only problem is that it cannot mount or umount sdcard or /system.
[Android General] Dr. Hurt:
Yes, as I said before for some reason the bootload is not loading the recovery image. When I try fastboot boot recovery.img (or any other img for that mattert), the phone freezes and I have to remove battery to reboot.

Thats why we've been trying to replace the bootloader.

---------- Post added at 09:09 AM ---------- Previous post was at 09:02 AM ----------

Well, I would say you should start with only appsbootsec and bootsec. If it works we could then try other stuff.
[Android General] andrewidya:
You need to run bootmenu in boot time if you want to mount partition on system, all we have to do is overwrite init when in boot time, as I know init is in ramdisk when in boot, even though it read-only but when boot the init is write to memory, so in this stage we can overwrite it, turn 2n-init on to boot CWM Recovery, 2nd-init comes from 7amdoun doesn't contain hijack script, so we need this hijack script to do that

- CMIIW -
[Android General] aweosomeabhijeet:
Which script you are talkng about?