yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] floyd0815:
@jasontschan

I think that's normal. (hope so, because I get the same ;-))
[Galaxy S II Themes and Apps] floyd0815:
You don't have to edit the precompiled framework!

Also you have to decompile it if you want to edit the values etc.

Put the ori-framework.zip with the ori framework in it onto your sd, in case something goes wrong...

Then just backup the old one onto your sd, copy the modded one over the original one in /system/framework and reboot!

Did it 3 times - no problem.

EDIT: if you downloaded the framework.apk with your phone into the same folder as you copied your ori, the new file is called framework-res-1.apk, so you have to ...
[Galaxy S II Themes and Apps] LBTaylor1984:
This is the problem, I've overwritten the original file numerous times and rebooted, everytime I visit engadget, BBC, any other site with, mobile support I end up on the mobile version. When I check about:useragent the settings are as before the overwriting, this leads me to believe its not working, or I'm just being really retarded. I mean I even downloaded root explorer incase I couldn't use adb properly. I just can't see where this is going wrong. I might do a video of me doing it and you can a watch me being dumb lol
[Galaxy S II Themes and Apps] floyd0815:
Instructions with Rootxplorer!

Just did it again. (went to ori and back to modded version) Works!

Here is a "really fully step-by-step" instruction that worked every time: :D

Safety first:

drag&drop your

original

framework-res.apk (with your computer) into /system/framework/ of the "ori_framework_cwm.zip" I've attached (last post of page 3) and place it somewhere on your phone, so you can flash this via CWM in case something goes

badly

wrong! (which shouldn't be the case if you follow the guide)

Download the

right

framework-res.apk for your ROM! (LiteR 1.4, LiteR1.5 or CognR v1.07)

In RootExplorer:

scroll down to sdcard

press it (sdcard)

scroll down to download (if you have downloaded it with your phone's browser it is in there)

pressit it (download)

scroll down to the modded framework-res.apk

long-press the modded framework-res.apk

press copy

go back to "/" with the "back" button of your SGSII (current location is shown on the upper left corner)

scroll down to system

press it (system)

scroll down to framework

press it (framework)

press the "Mount R/W" button (upper right corner)

press the "Paste" button (lower left corner)

press "Yes"

press the "Home" button of your SGSII (your background should have changed and maybe a "force close" of maps etc.)

long-press the "Power" button of your SGSII

press "Reboot"

press "OK"

Should be done! (did it for me)
[Galaxy S II Themes and Apps] LBTaylor1984:
Ok i have no idea what the hell was going on, I followed your instructions (I recorded a video to show it not working) low and behold, it worked. On reflection I can't see what changed, I did this yesterday but I DL to PC then transferred it, where as I DL straight to my phone from the XDA app this time....

either way I can confirm it does work. Thanks to the modders for the mod, and thanks to the community for their help.

SORRY GUYS CONFUSED MYSELF I WAS USING DOLPHIN HD NOT STOCK.

I'LL PUT THE VIDEO UP IN A SEC.

For the sake of argument i've attached my framework-res.apk

see if you can edit this :-) please not my framework is 8 meg! not 5.10 meg ?

http://realitylabsonline.com/framework-res.apk
[Galaxy S II Themes and Apps] bruflot:
Ignore this post.. I phail'd
[Galaxy S II Themes and Apps] Z4H1D:
OK, I'm not sure whether its me or my phone, but the modified framework-res does not work for me at all on LR 1.5, I must have tried it about a thousand times!!!

I've tried it through ADB, rootexplorer, update.zip via CWM, but to no avail, the useragent seems fixed on custom showing mobile sites by default.

HELP?! :confused:
[Galaxy S II Themes and Apps] floyd0815:
@Z4H1D

This framework is only for the stock browser, if you are using another... :)

Else try the step-by-step instruction on page 5.

Otherwise I cann't help you, sorry.
[Galaxy S II Themes and Apps] Z4H1D:
Hey floyd0815,

I am using the stock browser, it just will not work after numerous attempts of trying. I have also tried your steps, but still no luck.

Could it be something else that is restricting access to the UAString? :confused:
[Galaxy S II Themes and Apps] cmd512:
Working perfectly on my kf2... And, it was even a themed framework-res.apk file! :)
[Galaxy S II Themes and Apps] floyd0815:
I don't think so.

Did you experience a little lag after copying the framework and pressing the home button? (also the wallpaper should have changed)

If not, you maybe haven't mounted the filesystem as R/W before moving the framework.

Or maybe...

you have bookmarked the mobile version of the site? (try engadged.com)

you copied it to the wrong folder? (sys should ask for overwriting the file...)

you have copied the ori framework over it again? (confounded sdcard with external_sdcard...)

Try a last time to download the file via your phone-browser, follow the instructions really STEP-BY-STEP and check the md5sum to make sure you copy the right one, because the devil is in the detail. :)
[Galaxy S II Themes and Apps] floyd0815:
script to change UA strings in /res

Hi!

Just made a little Linux script (only tested in Ubuntu) to change the strings in the decompiled apk folder. It only changes the strings - not more.

rename it to values.sh or adapt the command below

make it executable

copy it into the /res folder

execute it (in Terminal via "sh values.sh)

remove it from /res

done

I have tried it on the framework from this post (is also attached)

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] Yanardag:
please please please a framwork-res for Congnition 1.08 with desktop agent please
[Galaxy S II Themes and Apps] floyd0815:
framework for Cognition 2 v1.08

Done!

(not tested so be careful) -> Read and follow this guide

md5sum: 5efc5fa29195eb327b34a13c88772f65

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] Yanardag:
Thank you very much....
[Galaxy S II Themes and Apps] takato23:
I cant recompile it with APKTool... when I use the command apktool b ........, says "-couldn't load source, 2 more lines for a while and then "creating framework-res.apk" But nothing happens.. no new apk :\
[Galaxy S II Themes and Apps] floyd0815:
The "couldn't find..." is normal, doesn't matter respectively. (was asked on page 5 too so plz search before...)

And the new apk is under /TW4Launcher/dist

Now just drag the resources.arsc from the new one into the old one and it's done.

Would be nice if you post your framework here! (with infos about which ROM,...)
[Galaxy S II Themes and Apps] takato23:
Okay.. here is the framework-res.apk for stock KF2 firmware and kernel (that's what I have installed). BTW.. this framework-res change between alls versions?

View attachment 645356
[Galaxy S II Themes and Apps] sianzb0i:
is it a MUST to change all the lanuages?

i only changed "values" and all those "values-en" related xml

however it didnt work....can anyone advice me?
[Galaxy S II Themes and Apps] Limpperi:
if anyone would't mind to do and upload modifed framework with desktop useragent for KF3, i'd be grateful :)
[Galaxy S II Themes and Apps] floyd0815:
@Limpperi and sianzb0i

Link/post your original frameworks and I will try to mod them.
[Galaxy S II Themes and Apps] sianzb0i:
thanks but i will try again later. if really still cannot then i will upload.

but whats the right command to push it back?

just adb push framework-res.apk

or theres more?
[Galaxy S II Themes and Apps] Yanardag:
Hi,

can you change/patch this framework-res (stock kf2) to desktop, please.

Thx
[Galaxy S II Themes and Apps] mostyle:
If it's stock (meaning it's not deodexed) I think you'll need to post the associated .odex file as well. I was going to mod if your you but when I looked inside the apk there was no 'classes.dex' file.
[Galaxy S II Themes and Apps] floyd0815:
Takato23 has already done it. (4th post on this page)

@sianzboi

On page 3 or 4 are the commands to push it...
[Galaxy S II Themes and Apps] Yanardag:
Thx now my last wish :D please a fwres for infusion 1.2. this rom is my

fav. its really fast.
[Galaxy S II Themes and Apps] floyd0815:
Done!

You can say "Thanks" with one single click.;)

md5sum 9b818dcf9c5da08a2dc00d4ed55f1bbb

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] scorpionredblack:
Please is possible to change my framework by introducing User agent desktop?
[Galaxy S II Themes and Apps] sianzb0i:
if i root wif CF's kernel does it mean its stock?

if yes, then what should i do?
[Galaxy S II Themes and Apps] sianzb0i:
THANKS for all the help given!

im finally done wif this after failing so many times :)
[Galaxy S II Themes and Apps] Limpperi:
i dont have my gs2 atm but i'll UL the framework and .dex file. never searched .dex file before though so where can i find it?
[Galaxy S II Themes and Apps] floyd0815:
Hopefully there is no odex-file, because I don't know what to do with that...:)
[Galaxy S II Themes and Apps] sianzb0i:
Bros

after my browser is ok my facebook app is not working Properly.

When i start the app, and go to news feed (only news feed and post status button got the problem)

Its supposed to have the facebook app template, but the content shown is basically a web browser in mobile mode. I took a screenshot. Before this was ok. I tried to reinstall, cleared dalvic cache

help is seriously appreciated

(Theres no content displayed)
[Galaxy S II Themes and Apps] Z4H1D:
If anyone can help here is my original Lite'ning 1.5. ROM framework-res.apk.

See if you have any luck, still can't get it working :confused:.

BTW I am on a UK network provider, if this helps.

Thanks in advance
[Galaxy S II Themes and Apps] sianzb0i:
no one expericing this?
[Galaxy S II Themes and Apps] janreiviardo:
I tried following the steps. I even made a simple program that could instantly replace the line that must be replaced in the whole res folder with what is needed to make it desktop browsing. But I just end up bricking my phone. My framework-res.apk is 8mb and the recompiled file is only 5+mb. I dont know what I did wrong but I just followed the instructions. Anyway can you just make me one? Thanks. I will also include here the program I made, I am 100% sure it will help you in converting our framework-res.apks. Thanks

BTW, please take a look onto my recompile. It has errors and I dont know why. All I did was follow the instructions. I am using XXKG1 2.3.4 stock firmware.

My Framework-res.apk

Attached file is Browser String Replacer to Desktop Mode. Thanks. Just browse it to Framework-res Location\framework-res\res. It will automatically replace strings.xml's mobile to desktop on all values folders.
[Galaxy S II Themes and Apps] sianzb0i:
looks perfectly normal. mine also dropped from 8mb to 5mb. then u grab the resources.arsc and copy to the original 8mbps .apk and push back into the phone.

try it and if it works, mind going to the FB app and see ur news feed got problems?
[Galaxy S II Themes and Apps] janreiviardo:
Hey, thanks for the reply. I managed to make it work. Thanks for this guide and thanks to you. I have skipped that step wherein I will only grab resources.arsc. But instead what i pushed back to system/framework was the one in the dist folder. XD

Regarding your concern/problem. It did not occur to me. My FB app is perfectly working. Try reinstalling your FB app or try rebuilding a new framework-res.apk w/ the use of my string replacer program. So you dont have to manually edit those xmls. It is automated and it will replace all the strings.xml mobile code to desktop code in the res folder. If I'm not mistaken there are 152 strings.xml in res folder. And half or more than half of it you do not have to edit because it doesnt contain the code. In 5 seconds you can do that manual editing of xmls. Goodluck
[Galaxy S II Themes and Apps] janreiviardo:
Author, please try to include my program to the instructions so the manual editing of xmls would not be such a hassle to anyone. BTW, nice tut. I never wanted my S II to display mobile pages. What's the reason for that if the net is fast and the phone is dual core right? My program is on page 8.
[Galaxy S II Themes and Apps] sianzb0i:
Glad to hear its working.

I did not change all of the languages. i only changed those UK and EN and its working fine alrdy. For me i only surf chinese and english website thats all so it doesnt make a diff. I wonder which are the chinese folders

BTW i reinstalled and cleared cache alrdy, no help at all
[Galaxy S II Themes and Apps] sianzb0i:
i pushed back the original framework-res.apk and my Facebook app is fine again.

cant i have the facebbok app working fine and desktop mode?
[Galaxy S II Themes and Apps] janreiviardo:
Like I said, try to use my program in editing the xmls. May be youre having problem while you are editing like deleting chars, etc. It's on Page 8. It's easier than manually editing those strings.xml.
[Galaxy S II Themes and Apps] sianzb0i:
But we might be on different roms or even locale as we do not "activate"/"inicialize" the same languages.

but i will give it a shot. At most i will just push back the original.

Mind telling us in details what ur script exactly changes or edits?
[Galaxy S II Themes and Apps] floyd0815:
UA for VillainROM 2.0

Here is a CWM flashable zip with greener-systemUI and battery-mod! (attached)

Unclean009 made the original one without UA-string

It works, but because of the laggy browser in 2.3.4....:(

@janreiviardo

Files in which folders does your programm edit the strings - have a look at my script, maybe you are editing too much? (or mine does too less which would assert why some people doesn't notice an effect)

FB:

Did you clear cache/data of the FB-app or maybe there are other apps for FB? (don't know...)

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] janreiviardo:
My script/program allows you to browse the folder where those strings.xml are located (which is under framework-res/res/ folder). Then the script/program will automatically do the editing of those strings.xml.

It automatically changes all strings.xml in values* folders that have these codes

"Mozilla/5.0 (Linux; U; Android 2.2; en-us; GT-I9000 Build/MASTER) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1"

to

"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_7; en-us) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Safari/530.17".

So you do not have to manually edit them. It just automates your work. But still you have to do all the steps. The script/program only does step 6 which is "Change it to this (make sure you change the localized strings.xml also (eg en_gb, nl_nl etc)"
[Galaxy S II Themes and Apps] sianzb0i:
String replacer program flagged out as a trojan by AVG. But may be due to the way it behaves.

Gonna try it after dinner, but still got a feeling it doesnt work
[Galaxy S II Themes and Apps] janreiviardo:
It worked for me. Im already in permanent desktop browsing. I used my program to change the codes. Im also sure that any language I will use, it will always stay on desktop view.
[Galaxy S II Themes and Apps] sianzb0i:
ok, i just edited using ur method and now my phone cant boot.

i can go into recovery. i wiped cache and dalvik.

still stucked at the Samsung with the triangle (rooted) and the animation didnt even come up

EDIT: pushed back the original framework and its working again. I will attempt again

EDIT 2: I tried all kinds of funny methods, even manually changing all of the folders. still couldnt get the phone to boot up. Could it be a kernal or rom problem? im on KF1, rooted wif CF. Previous attempts was just changing the "values" folder and all those related to "EN" and "UK". Others were left untouched. Now i got a feeling i should like a few untouched or dont change the "values" folder. or im just crazy.

Anyway the values-xxxxxxxx-en <------ these folders i did not touch. Correct right?
[Galaxy S II Themes and Apps] cCeT:
tried with KF1 but didnt work. and my accuaweather widget doesnt work anymore even though i pushed original framework back.how can i fix it?
[Galaxy S II Themes and Apps] sianzb0i:
Wow dun tell me its KF1's issue.

For ur case u tried to remove the widget and add back? But right if u made a original backup of the apk it should be ok. Mind seeing ur facebook app and see issit the same as mine
[Galaxy S II Themes and Apps] Limpperi:
Stock KG1, anyone?
[Galaxy S II Themes and Apps] kramerty88:
And cognition 1.12?
[Galaxy S II Themes and Apps] sianzb0i:
those guys who got it to work, any of u guys on CF's stock rooted KF1?
[Galaxy S II Themes and Apps] floyd0815:
Here is the framework for VR2.0 (KG1) with extended power menu.

(without CRT, battery mod)

If someone has a framework with battery mod, CRT, greener UI plz post it!

md5sum 3f4889600a5890a8b296d8789075bbd4

framework-res.apk
[Galaxy S II Themes and Apps] Yanardag:
Hi floyd,

can you please :D Stock Litening 2.2

PS: Wenn ichs könnte hät ichs selber gemacht. Finde ich toll von dir hier uns zu helfen ;).

Musste es packen weil >8mb
[Galaxy S II Themes and Apps] floyd0815:
@Yanardag

I need a framework to mod - maybe it was to big to attach...?

One with power menu, CRT, battery mod, greener UI for VR2.0 would be interesting. (the one on page 9 has no power menu)

THX

EDIT: i thought that Lite'ning ROM has it as default? (is written in the change log)
[Galaxy S II Themes and Apps] floyd0815:
Done.

FW for LR2.2 is attached! NOT tested No warranty! ;)

md5sum 317dac8fcb5d0d2f1f395ae733b2536e

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] Yanardag:
Ok thx. But is that not to small? Only 5mb with change a column? -3MB?

Edit: IT kills my system it does not boot :(
[Galaxy S II Themes and Apps] floyd0815:
That's normal. if you look into the apk, the sum of the filesizes is about 8mb.
[Galaxy S II Themes and Apps] Yanardag:
OK. Now works THANK YOU. I dis miss (permission not set)
[Galaxy S II Themes and Apps] Limpperi:
not sure, but does this work with stock KG1 also?
[Galaxy S II Themes and Apps] floyd0815:
The FW is from ROM to ROM different and also if you have battery mod, power menu ...

So if you post your FW-res.apk with details (ROM, mods, theme) about it, we will mod it for you.
[Galaxy S II Themes and Apps] Limpperi:
here, stock KG1 with batterymod and CRT effect
[Galaxy S II Themes and Apps] sianzb0i:
what permissions? my phone also could not boot the other time. care to explain more?
[Galaxy S II Themes and Apps] floyd0815:
Done. NOT tested! (FW is attached)

md5sum db1028677eff4826739f83705573b4ce

@DJDAKI

FW for PFC-ROM Lacus-theme:

Link - You have to rename it!

md5sum 245aacc23788d75c5e85359d71d5dba0

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] floyd0815:
Look in Astro-filemanager or Rootexplorer at the permissions of the ori FW and give the moded one the same.
[Galaxy S II Themes and Apps] Yanardag:
after of the problem:

Ok flash with cwm the last rom without a wipe. Then create with rootexplorer

a folder to /system/framework/ with any x name then copy framework-res into it. Then change the permissions

to rwx r r in other 644 or

xx.

X..

X..

And then copy it to /system/framework/ and reboot
[Galaxy S II Themes and Apps] sianzb0i:
can i do it thru adb?

whats the command? my linux skills arent good :(
[Galaxy S II Themes and Apps] sianzb0i:
woah woah.....thats kinda messy.

can i just adb shell and navigate to /system/framework/ and then chmod my edited framework-res.apk?

is this is the right way, whats the proper chmod command?
[Galaxy S II Themes and Apps] xryousukex:
I attached Litening Rom 2.2 framework, can someone please reverse to the original? I've been trying but when i recompile it doesn't give me a framework-res to extract the resource for some reason.

Clarification: I want both desktop and android useragent... as i manually switch in dolphin :)

I winrared it because it was too big for the attachment.
[Galaxy S II Themes and Apps] cCeT:
i edited framework for those use XWKE7:

XWKE7

Firmware info:

PDA:XWKE7

PHONE: XXKE4
[Galaxy S II Themes and Apps] floyd0815:
Is attached. (I've modded the one from this post)

md5sum 322feabaae71e8793862a0f2cd2adda8

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] xryousukex:
just tried it floyd, its actually still has the desktop only. the original LR 2.2 already had the perm. desktop as well..

i wanted one with the android/desktop again...

thanks for helping!

is there a way to put the original codes back?

NEVERMIND

used a 2.0 framework with no useragent change and got it back... thanks though floyd! =)
[Galaxy S II Themes and Apps] Yanardag:
Hi floyd,

can you change this framwork-res please. It is the leomar75 revolution 2.1

thx
[Galaxy S II Themes and Apps] floyd0815:
Here you are - it's a flashable zip, otherwise extract it...

(attached file)

md5sum 567abbe8df74ecf2710679fdb5446ef6

EDIT: Cognition 1.13

md5sum d1e00376e14480aabfd9ae39779b53ea

Link

Maybe make a copy of the zip, rename it and place the ori fw-res into (the right place in) it.

(to flash that after something went wrong...)

EDIT:

Not all languages supported! (bad script - my fault) If you want a working one contact me or use the software from the 1st post.
[Galaxy S II Themes and Apps] Yanardag:
Hi floyd,

i need the fwres what i uploaded... can i use the congnition 1.13

fwres for revolution 2.1 too?
[Galaxy S II Themes and Apps] floyd0815:
It's the attached file in my previous post (Leomar75)

Cognition 1.13 is the link!
[Galaxy S II Themes and Apps] Yanardag:
Yooo it works... flashed it with cw and tadaaaa thx floyd
[Galaxy S II Themes and Apps] jeppson:
me too!

tanks.
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
i get Force Close when I compile back with apktool and apk manager...

anyone that can help?

i get this :

c:>apktool b framework-res

W: Could not find sources

I: Checking whether resources has changed...

I: Building resources...

thanks
[Galaxy S II Themes and Apps] Limpperi:
no mods in this one, wanted CRT though but for some reason i didnt get it working :( anyone make this permanent desktop? changed from KG1 to KG2 and now in need of a new one :rolleyes:
[Galaxy S II Themes and Apps] Yanardag:
Hi floyd :D

can you please...

Ps: litening 3.0
[Galaxy S II Themes and Apps] floyd0815:
This output seems normal.

The apk should be under /framework-res/dist in the working directory of apktool. (I'm on Linux, so I don't...)

Now just drag&drop the resources.arsc into the original fw-res.apk (in /system/framework of it) and you're done.
[Galaxy S II Themes and Apps] floyd0815:
@Yanardag, Limpperi, ...

Here are some FWs: (flashable ZIPs)

link - KG2 (uploaded from Limpperi - so I think it's for stock KG2)

link- LR 3.0

link - VR 2.1

Only tested VR 2.1 and HW accelerated browser is still working! :D

EDIT:

Now they should work!
[Galaxy S II Themes and Apps] K_Hismoom:
It seems that at least the LR3 version does not include a modified useragent string.

It's still Mozilla/5.0 (Linux; U; Android %1$s) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
[Galaxy S II Themes and Apps] floyd0815:
Yeah, I took the wron script! :p (for mobil...) Sorry

Will update my post in a few minutes!
[Galaxy S II Themes and Apps] K_Hismoom:
Works beautifully now, thanks!