yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] cyberangel22k:
ok, So I tried pushing framework-res.apk to /system/framework but I got bootloop (not quite a bootloop because the bootanimation doesn't repeat. more of a stucked boot). then I did

adb shell rm /system/framework/framework-res.apk
adb reboot

and the phone worked again. So I guess we need to find a way to mount the /custpack and make it rw. I tried all the possible codes that I know but I can't mount /custpack. I also tried manually copying and pasting the framework-res.apk to /custpack/JRD_custres/framework using ES file explorer. All I get is copied successfully. but when I check md5 sums, they didn't change at all. I'm thinking to use the OTA zip file and edit it. maybe we can use it to flash thru stock recovery. I'll try it now.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
symlink found

I found the symlink inside /system/framework/@framework-res.apk

If I manage to delete the symlink, maybe, we can push the framework-res.apk to the /system/framework and it might boot up. Now the question is how do we delete the symlink?
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I managed to mount the /custpack but only thru adb shell with phone booted up. it doesn't mount thru CWM recovery. I managed to make it rw and replaced framework-res.apk. but I got stucked on boot (maybe incombatible apk. I used a modded framework-res.) All I can do to restore the phone is to flash the custpack2.img using SP flashtool. Will still try other ways to get the stock lockscreen and the sms app. Finding my lost backups from the previous build.
[Android Software/Hacking General [Developers Only]] rajit:
plz upload cwm backup... plzzzzzzzzzzzz
[Android Software/Hacking General [Developers Only]] cyberangel22k:
can I ask what for? for now I can't. I do have a sdcard but it's only 1GB and partitioned to 2 parts. so CWM backup won't fit in.
[Android Software/Hacking General [Developers Only]] rajit:
actualy my brother have this phone. its bricked. so if i get the back up then could able to restore. plz friend upload only system.tar and boot.img ... plz brother

hope you will help me..:confused:
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Sorry. I only use my phone now to reply here. Don't have access to a pc now. You can unbrick using one touch upgrade...
[Android Software/Hacking General [Developers Only]] rajit:
one touch upgrade ??

this phone model no not there !!
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Spop is 4030
[Android Software/Hacking General [Developers Only]] rajit:
It says your phone has already letest update. Tgats why i need whole system and boot.img ;(

.. plz hlep yaar
[Android Software/Hacking General [Developers Only]] qaz13:
hi

Hi! I'm from russian website 4PDA

We also could not decompile framework-res and other system apps.

After updating, in launcher old wallpapers have not been removed developer.

sorry my bad lng

http://yadi.sk/d/pNHZ2cll4i9ih - backup for flashtool
[Android Software/Hacking General [Developers Only]] cyberangel22k:
You might have problems with force closing apps if you don't have proper system and custpack symlinks. Im still finding some ways with that problem. You cant just flash system img from another rom. I alteady did that and force closes occured. I guess the latest version of otu disabled updates if you have the latest firmware. In 2.7.5, you can flash even with the same firmware version. Look at root guide. There's a link there for the version 2.3.5.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Oh. So your working on decompiling framework-res.apk too. I found out the the actual framework-res.apk is located at /custpack/framework. You can now also mount the custpack as rw by typing the folowing codes with su permission.

#mount -o remount,rw /dev/block/mmcblk0p4 /custpack

By that code we can edit whatever is inside custpack. Also other system apps have empty res and resources inside them. The contents are linked at /custpack/JRD_custres/apps. Im still trying ways to decompile and compile them to work with no errors. Hope you can help me too with the given information.
[Android Software/Hacking General [Developers Only]] rajit:
Tryed but :(
[Android Software/Hacking General [Developers Only]] deagle-lim:
hi

i got 4010x 2.3.6

i cant find where to turn on "usb debugging"

under "settings" there is no "development"

please advice

***edited

nvm i found it already

it's under settings > application > development

so my next question is

is there any custom rom ?

or where to get latest stock rom ?
[Android Software/Hacking General [Developers Only]] Mproject:
Hi, thanks a lot, I'm a fresh new owner of OT4030D and I can absolutely confirm that your method is 100% safe and working. Following step by step your guide I didn't find any kind of problem. The only difference I'd like to report is that if you've already installed One touch upgrade S an Universal ADB Driver, the device is immediately recognized and the ADB interface is yet present in the device list. Anyway, other steps are exactly as described. Thanks again, it's very nice, to find immediately a good tutorial for a new device.
[Android Software/Hacking General [Developers Only]] qaz13:
instruction here
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I'm using 2.8.0 otu now with my device (bricked with latest firmware) and firmware is downloading with no problems. Reviving it now. It was bricked because the framework-res is still hard to replace from custpack. All my mods results in brick.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I'm still having problems porting the stock lock screen and the previous SMS app that has the proper threaded view to the latest firmware. Every mod i do results in bricked device. In the meantime, just use holo locker and gosms. In go sms, the default Sim for SMS will be used. You can change it in Sim management.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Threaded view on SMS

I modded the sms app properly and it works perfectly. Here is my screenshot. this is only for those who hate the new sms app after updating. also this is only for rooted devices. This also has a different icons.

To get this, here are the procedures:

1. save the Mms-res.apk to sdcard.

2. using es file explorer, go to settings>tools>root explorer>Mount R/W. Select RW on / then press ok.

3. Navigate to where you save the Mms-res.apk on sdcard. press and hold then copy.

4. Navigate to /custpack/JRD_custres/app

5. Make a backup of the original file by renaming it to Mms-res.apk.bak

6. Paste the new Mms-res.apk. Press and hold the new Mms-res.apk and select more>properties change permissons to rw-r-r.

7. reboot.

8. after reboot, try the sms app to see if it works. if it force closes, go back to /custpack/JRD_custres/app and delete the new Mms-res.apk and rename the original back. Post your Mms-res.apk here and I will do it for you.
[Android Software/Hacking General [Developers Only]] ngoralph:
any plans for cm10??
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I do like to port cm but without proper sources, I can't do it for now. Still hoping mediatek will release their src.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
[MOD] Status Bar (SystemUI.apk)

My mod on the stock SystemUI-res.apk which is located at /custpack/JRD-custres/app.

BTW, I also changed all my system app icons to stock vanilla android. I also use holo launcher HD as launcher but I use the stock icons, not the Holo launcher HD icons.
[Android Software/Hacking General [Developers Only]] The Solutor:
Hey, I'm an OT6010 owner, but I kept one eye here just in case... given the phones are cousins.

Now, see what I've discovered while trying (unsuccessfully) to decompile framework-res to get rid of the hideous (especially on an amoled device) white menus...

I believe an image is better than 1000 words, and looks like your phone has a couple of (hidden) embedded themes too...

Not a lot to add I believe.

But just in case this is the thread I opened on androidiani, in Italian only (sorry).
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Yes. They are the same. Mine is set to jrd theme 1. I'm trying to set default theme to 0 in build.prop but it doesnt change. Also trying to mod framework-res.apk gives bootloop. So i manually changed the png's inside each app-res.apk. hope you can give feed back if you manage to solve how to set the theme to 0.

Edit: what im editing was a different code. I notice your code persist.sys.jrdtheme and I added it to my build.prop. after reboot. The theme was change but some of my apps force close. Maybe because of my mods. Will flash my backup custpack.img and see what will happen. Thanks alot!
[Android Software/Hacking General [Developers Only]] cyberangel22k:
ota notification received.

Poped up now

Downloading it.
[Android Software/Hacking General [Developers Only]] The Solutor:
Looking at your build.prop I see a line ro.jrd.theme.flag=1, have you tried to experiment with it ?
[Android Software/Hacking General [Developers Only]] qaz13:
Yes you are right

Can it is necessary add this code persist.sys.jrdtheme=00* - ?

In fact a code in a file

custpack/jrdtheme.config

# onetouch
001=0x01040523
# Yedong
002=0x01040524
# Premium
003=0x01040525

Yes it has turned out to change the subject

Has made so:

ro.jrd.theme.flag=1
persist.sys.jrdtheme=003

The link to my post in Russian forum

http://4pda.ru/forum/index.php?s=&showtopic=435598&view=findpost&p=22056392
[Android Software/Hacking General [Developers Only]] The Solutor:
Glad it worked.

Thanks for the credits, my cat is aready famous in Russia (because a photo taken with a ZTE U960, and shared over many russian forums), now is my turn :laugh:
[Android Software/Hacking General [Developers Only]] cyberangel22k:
After testing all four themes. Only theme 001 (default theme) and 003 (premium) works. The others cause force close on system apps.. Im using the premium theme now. Thanks a lot.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I see no difference in the ota yesterday. I think they are just optimizations to the system apps. also, broken sms threaded view still exist.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Added mirror to links

Added mirror to links...
[Android Software/Hacking General [Developers Only]] cyberangel22k:
sms default notification tone.

For those who don't know how to change the default notification, do this:

Go your sms app. Settings, select ringtone.
[Android Software/Hacking General [Developers Only]] rajit:
Any rom which cav be flash via flsh tools?
[Android Software/Hacking General [Developers Only]] Havespop:
Anyone who has their stock boot.img back up?

Edit:

Thanks to rimmon1971, he cant write to this thread so he send me a private message.
[Android Software/Hacking General [Developers Only]] Havespop:
Somebody help me to figure this out, last week i rooted my s'pop and it was successful. i am trying to update my cp via fota. I unroot it, flash to the stock boot.img and recovery.img, but still it says

Assert failed: apply_patch_check blah blah blah

update.zip is not correct

Installation aborted.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Alcatel is now open source!!!

Good news. we can now have a chance to port CM

here is the link for the src. i haven't checked it yet but i will when I have time...

http://sourceforge.net/projects/alcatel/files/
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Try flashing orig custpack2.img too.
[Android Software/Hacking General [Developers Only]] Havespop:
No luck, i still having error. And after i flash the stock custpack2.img some apps are force closing.
[Android Software/Hacking General [Developers Only]] Havespop:
I just found out that after flashing the custpack2.img that rimmon1971 uploaded is for 4030D, before flashing my model number is 4030E and now my model number is 4030D . I know that the two is just the same, but how can i bring it back to 4030E ?

And on which box does i need to tick on the flash tool when flashing system.img, for example

bootimg= BOOT

recoveryimg= RECOVERY

custpack2img= CUSTPACK

systemimg= ?
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Custpack and system images need to be the same version. Other wise, you will get force close ir bootloop.
[Android Software/Hacking General [Developers Only]] Havespop:
How do i flash the system.img on flashtool?

edit: how long does it take on otu? i finished my download at 46minutes and now im waiting on what will happen next. i hope i do not get stuck on this.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
For the record, system.img is flashed via spft on android partition.

Just wait for it. It may take some time depending on your pc hardware specs. There will be a notice to reconnect the device when it's done building the downloaded parts.
[Android Software/Hacking General [Developers Only]] Havespop:
Thanks mate, its done. Now that i have the latest and fresh rom, how can i back up the IMGs?
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Use spft and mtk tools and perform readback.
[Android Software/Hacking General [Developers Only]] rimmon1971:
Ehm... I'm sorry. "D" is European model...

As far as I know, it should be ANDROID.

BTW: WOW! I've just noticed that I'm able to post on this thread, even before having reached the "10 post" limit! :D

---------- Post added at 12:11 PM ---------- Previous post was at 11:59 AM ----------

I wonder if it's possible to *save* somewhere the update.zip (or whatever) OTA downloaded by the phone.

I'm asking this because I need to revert back to original recovery, system and custpack2 before the OTA have some chances to succeed... but I'm downloading it just now.
[Android Software/Hacking General [Developers Only]] The Solutor:
Just copy the file build.prop from the original image.

Given /system/build.prop is not a real file but just a symlink to the real one in the custpack partition, if you replace it you replace also the build.prop file and the model will be shown as instructed by that file.

Isn't D=dual sim, E=single sim ?
[Android Software/Hacking General [Developers Only]] Havespop:
Thanks for the reply, i will try that when it happen again in my s'pop, recently i perform one touch upgrade and now im using the fresh,clean, and latest rom. I think D is also dual sim,

It's allright man, me too im a newbie
[Android Software/Hacking General [Developers Only]] qaz13:
build.prop

There are 2 types of files build.prop
[Android Software/Hacking General [Developers Only]] The Solutor:
The bak one is just the backup made by the editor (likely es file explorer or root explorer).

If something goes wrong just delete the modified build.prop and rename the the .bak file as build.prop via ADB.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Bothe 4030e and 4030d are dual sim. E is asian variant. D is european.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Yes you can save the update.zip. it will be saved in a folder named .downloaded in your sdcard. Perform readback before installing the update so you have a chance to revert back if you dont like the update.
[Android Software/Hacking General [Developers Only]] Havespop:
is it necessary to make a new scatterfile when doing a readback on flashtool?
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Yes.. use mtk tools version 2.4.5 to create scatter file. The get the cache partition size in scatter which will be used for readback on spft. Do you know how to do it?
[Android Software/Hacking General [Developers Only]] qaz13:
I do not mean .bak

some build.prop file has not links to custpack

In my phone the file build.prop has links on custpack

When we tried to change a theme have found out, that the build.prop file not in all phones is to the address of /custpack/build.prop

build.prop file can not refer to custpack, and to be an independent file in a folder of system
[Android Software/Hacking General [Developers Only]] Havespop:
Honestly, i have no idea about using mtk tools, and on the spft all i know is flashing. Ill wait for your easy and precise method about it
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Ok. Use this guide from rua1. Follow steps 1-4, skip 5 then proceed to step 6 & 7. That's it. Thats a complete readback.

http://xdaforums.com/showpost.php?p=38337401&postcount=5
[Android Software/Hacking General [Developers Only]] cyberangel22k:
IMO, build.prop in custpack and system are not symlinked. When I edit build prop in system, changes are not reflected to custpack. Same results doing it vice versa. And I think the one being used is the one in system.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Building ubuntu 12.10 now to attempt something I have never done before. Hope I still remember how to use terminal.
[Android Software/Hacking General [Developers Only]] Havespop:
ill do it now thank you
[Android Software/Hacking General [Developers Only]] cyberangel22k:
Building our first custom ROM

Finally finished building ubuntu on virtualbox. now extracting the source via cygwin. It look like the source code is complete to build. Let's hope this will work. Remember, I'm doing this for the first time. Building from source.

EDIT: looks like this will be delayed. My hard disk is nearly full just by extracting the 4030E source code and it hasn't even finished yet. and my ubuntu's vhd is just 8GB. I'm gonna free up more space and rebuild my ubuntu environment. (I need approximately 30 GB of storage for just all the sources need according to xda-university which where i'm learning from).
[Android Software/Hacking General [Developers Only]] The Solutor:
Ah, ok. Got it now :laugh:

I believe root explorer is the culprit of not managing correctly the symlinks.

Way better to use ES file explorer to edit system files (and to do anything else to be honest)

That said, in our case, is safer to have the file and not the symlink.

A lot of utilities (eg the ones meant to change the screen dpi) are poorly written and are used to kill the symlink w/o saving the file.

With the obvious result of a [soft]bricked phone.

I was the first in the world who rooted the 6010, and I did it in less than half hour, but I spent waaaay more time to recover the phone after the first mod done by a such poor utility.

I was unaware of the custpack partition and related symlink, and the CWM recovery I prepared at the time didn't backup it, so even a full CWM restore was not enough to revive the phone.
[Android Software/Hacking General [Developers Only]] rimmon1971:
Hello everybody.

I've found /sdcard/.downloaded/update.zip so I performed:

1) flash of the stock recovery.img (via Flashtool, using MT6575_Android_scatter_emmc_PMT.txt attached for reference)

2) flash of the stock boot.img system.img custpack2.img

3) boot in stock recovery

4) apply update.zip from sdcard

5) boot in normal mode (to check minimum functionality)

6) power off phone

7) readback via Flashtool (length taken from scatter above, 0x3764c000)

8) boot in normal mode

9) fire up MTKDroid 2.4.5, connect phone, root/backup/restore tab, "to process ROM_ from Flashtool"

10) obtained the attached ("with-warning") output with /system/recovery-from-boot.p warning

11) power off phone

12) download via Flashtool of the (attached) ALCATEL-ONE-TOUCH-4030D_130506__recovery_130523-112841.img (CWM recovery) *ONLY*

13) boot in recovery

14) fire up MTKDroid 2.4.5, connect phone, root/backup/restore tab, superuser (I chose "superSU" not superuser), build.prop, remove china.

(/system/recovery-from-boot.p was removed by remove china, screenshot attached)

15) boot and enjoy!
[Android Software/Hacking General [Developers Only]] rajit:
Hey dude try this.. same specs phone as yours..

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

Plz please provide link of full rom which can be flash via flashtools or

link of pre loader

dsp bl

mbr

ebr1

uboot

sec_ro

logo

ebr2

ebr3

ebr4

moble_info

catch

userdata

plz help .
[Android Software/Hacking General [Developers Only]] Havespop:
I just wanna ask if it is okay to install chainfire on my s'pop, no root, no tweaks. Just stock.
[Android Software/Hacking General [Developers Only]] cyberangel22k:
It will brick your phone. Its only for froyo and gingerbread.
[Android Software/Hacking General [Developers Only]] rimmon1971:
After having updated via update.zip with the above described procedure, I keep getting update reminders.

But, of course, when I go "manual checking", there is no newer update at all.
[Android Software/Hacking General [Developers Only]] The Solutor:
Clear the settings of the flash notifier in via the application management menu
[Android Software/Hacking General [Developers Only]] rimmon1971:
Ok, thankyou. The problem seems solved.

Clear "application data" not just "cache" of FotaApp, is it right?
[Android Software/Hacking General [Developers Only]] The Solutor:
Rinmon if you want to upload your original recovery I can made a trwp recovery for you.

As I already did for my 6010D, for 6030D and for 6030x.

And add it to my quide

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

right, you haven't anything to loose
[Android Software/Hacking General [Developers Only]] rimmon1971:
Here we are...
[Android Software/Hacking General [Developers Only]] The Solutor:
Ok should be ready, but before posting it, can you confirm the phone has the usual Alcatel partitioning scheme ?

This is the one from 6010d

Just post yours to compare it.

And can you confirm your phone as an external SD card ?
[Android Software/Hacking General [Developers Only]] cyberangel22k:
I saw your thread. The twrp has custpack support. Are you porting it now to 4030? I'll wait for that. I'm attempting to port cm too but it's my first time to do it so I have no idea if it will work. I already have the official alcatel sources.
[Android Software/Hacking General [Developers Only]] rimmon1971:
Hello everybody.

Attached, you can find my "blocks map" as shown by MTK Droid.

Yes, I confirm that my 4030D has external SD support and actually has a 4Gb SDcard inserted, with about 900Mb free.

Should I free up some more space?
[Android Software/Hacking General [Developers Only]] The Solutor:
Thanks, looks like the usual mount scheme, so should work as expected.

A complete backup can be even more than 900MB, depending on the number of the programs you have installed. And depending if you enable the compression or not
[Android Software/Hacking General [Developers Only]] qaz13:
OT 4030D

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

TWRP-Recovery "test"

http://4pda.ru/forum/index.php?s=&showtopic=435598&view=findpost&p=22330584
[Android Software/Hacking General [Developers Only]] The Solutor:
I can't understand your point. What has to do the TWRP recovery with the rom itself ?

Btw here is the recovery. Try it, if you want, (the scatter file is included, and is also the stock recovery to flash it in case the trwp doesn't work).

Keep in mind I'm doing it blindly because I haven't the phone in my hands.

P.S. If you're not used with datafilehost uncheck the "use the download manager" option (and push the smaller gray button, non the darker, bigger one)
[Android Software/Hacking General [Developers Only]] rimmon1971:
Ok, now I've got about 2.9Gb free on the SDcard.

I'll try the new recovery when I'll be able to download it: I should perform the download from my phone, because file hosting services are filtered out by Websense here at work :crying:

Thanks in advance, again.