Why can I got get this to work?
I was trying to get ICS Domination to work on my ROM the other day. It said it works fine on odexed ROM's, but the instructions didn't work. I figured it was because I was odexed. So, I downloaded and installed a deodexed ROM that was said to be compatible with ICS Domination.
I flashed. Nothing. Not a damn thing changed. I didn't even get force closes or anything to indicate something had gone wrong. Nothing changed.
I did everything right. Copied to internal storage. Flashed with CWM. Cleared Cache and Dalvik prior to flashing. It didn't work.
So, I resigned myself to give up and wait for an updated version in case that makes a difference.
Then I got pissed off and figured I'd make some changes of my own. I thought I'd start small, with the SecPhone.apk dialer. I found some .png's I wanted to change and changed them, then I downloaded the VillianROM Themer .zip and followed the instructions there.
I copied my files like this
[ROOT_OF_ZIP]/vrtheme/system/app/SecPhone.apk/drawable-hdpi/[FILES_HERE]
and flashed. Everything was said to have gone ok. I reboot. Nothing has changed AGAIN.
Ok, so then I rip apart a couple of other mods on the site to see how they've been put together. One seems to replace the .apk's themselves.
Ok, so off I go and download apktool and decompile some apk's and get editing (previously having just taken the files from an "unzipped" apk. I finish my changes and try to rebuild an apk. I get some stupid error that I can't copy from the Command Prompt directly or be bothered to type out since it's quite large. Needless to say, my frustration is at an all time high.
So, my suspicion is that something isn't going to work when Vertumus releases ICS Domination 1.2 (or 2.0, whatever) any day now that when I flash it it's not going to work either.
The LFB version of this: http://forum.xda-developers.com/showthread.php?t=1779170 works great. It just doesn't (and apparently never will) change the dialer or much of anything else.
I need one of two things from the community, or both to be great, but I need:
To know if I'm doing anything wrong at all or what could possible be wrong with my setup that won't accept VillianROM Theming (I'm using VillianROM's ROM as it happens also)
To know how the hell I make my own themes and customisations, because I'll get to work doing this and make a thread or two with some of my own mods in them. More modders = better.
EDIT:
My error when trying to build and apk was like this:
Code:
E:\android\Lab\SystemUI\res\values\public.xml:318: error: Public symbol drawable/tw_stat_sys_6_level_signal_3 declared h
erbrut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\DOCUME~1\edp\LOCA
LS~1\Temp\APKTOOL4562847521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\
SystemUI\res, -M, E:\android\Lab\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\DOCUME~1\edp\LOCALS~1\Temp\APKTOOL4562847
521524937175.tmp, -I, C:\Documents and Settings\edp\apktool\framework\1.apk, -S, E:\android\Lab\SystemUI\res, -M, E:\and
roid\Lab\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
e is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:319: error: Public symbol drawable/tw_stat_sys_6_level_signal_3_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:320: error: Public symbol drawable/tw_stat_sys_6_level_signal_4 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:321: error: Public symbol drawable/tw_stat_sys_6_level_signal_4_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:322: error: Public symbol drawable/tw_stat_sys_6_level_signal_5 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:323: error: Public symbol drawable/tw_stat_sys_6_level_signal_5_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:324: error: Public symbol drawable/tw_stat_sys_6_level_signal_6 declared h
ere is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:325: error: Public symbol drawable/tw_stat_sys_6_level_signal_6_fully decl
ared here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:99: error: Public symbol drawable/tw_stat_sys_battery_not_charge declared
here is not defined.
E:\android\Lab\SystemUI\res\values\public.xml:326: error: Public symbol drawable/tw_stat_sys_signal_null declared here i
s not defined.
E:\android\Lab\SystemUI\res\values\public.xml:327: error: Public symbol drawable/tw_status_bar_close_on declared here is
not defined.
E:\android\Lab\SystemUI\res\values\public.xml:101: error: Public symbol drawable/zzz_stat_vt_signal declared here is not
defined.
E:\android\Lab\SystemUI\res\values\public.xml:102: error: Public symbol drawable/zzz_stat_vt_signal_null declared here i
s not defined.
both in having the folder and apk destination the same. Once I read about having the apk made in a separate folder I tried again and got a similar result.
Maybe I am wrong but I think that your png needs to be in drawable-xhdpi and not in drawable-hdpi in order to work with S3
Mopral said:
Maybe I am wrong but I think that your png needs to be in drawable-xhdpi and not in drawable-hdpi in order to work with S3
Click to expand...
Click to collapse
Thanks!
I just tried that instead, though, and there were the exact same files (different names) in that folder. I edited those and did the same format. Nothing
I'm going to pull the SecPhone.apk from my phone now, though and see if they actually DID get changed cause if not I've got a problem.
EDIT:
Ahh, ha. Ok, so I don't have a problem with the VillainROM Themer as the file I just pulled DID have my changes. I guess I just need to see where exactly the files are and see if that works.
Kryten2k35 said:
[ROOT_OF_ZIP]/vrtheme/system/app/SecPhone.apk/drawable-hdpi/[FILES_HERE]
Click to expand...
Click to collapse
Here is your mistake!
It should be:
/vrtheme/system/app/SecPhone.apk/res/drawable-xhdpi/
Click to expand...
Click to collapse
Mopral said:
Here is your mistake!
It should be:
Click to expand...
Click to collapse
Opps, just typed it out incorrectly. It's in that folder, though Like I said I just managed to pull the apk and check the files were correctly copied by VRT - they were. So I guess I just need to hunt down the right/all location(s)!
Kryten2k35 said:
Opps, just typed it out incorrectly. It's in that folder, though Like I said I just managed to pull the apk and check the files were correctly copied by VRT - they were. So I guess I just need to hunt down the right/all location(s)!
Click to expand...
Click to collapse
just not forget that your new png should have the same name and the same size (96*96 for apk icon,...)
All I've been doing is opening them in PSP and then saving them, then copying them into the VRT zip.
I've looked through the whole folders sad changed all the files I can see that are of try dialer. I've pulled through apk from through phone and the changes are there... so where are the old files coming from? I've cleared the caches...
Sent from my GT-I9300 using xda premium
Bump
Sent from my GT-I9300 using xda premium
Might be easier if you upload your non working zip so we can take a look.
Sent from my GT-I9300 using Tapatalk 2
Hi Lenny,
Ill do that, though I think it's something I'm missing because as I said I've pulled the apks that were supposed to be changed by the zip and they have the changes in them. So I think the script is working as it should.
I'll get a copy uploaded when I get to my pc (about 5 mins lol)
Sent from my GT-I9300 using xda premium
There we go:
I've tried compiling the png's using the png9 tool in the Android SDK, too. No different.
There's a theme out there that themes the dialer... doesn't even touch SecPhone.apk and it's all in SystemUI.apk. Yet, I've ripped open his SystemUI.apk from his mod file and I can't even see the images that would relate to his mod?
This is... frustrating.
Does anyone have any GOOD theming guides? This is something I want to get into but there's this "nothing works for me" barrier to entry.
Related
Hi all when i tried to recompile apk with the apktool with this line: apktool b <file>, it comes out with this error.
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \strings.xml:199: error: Apost
rophe not preceded by \ (in There's a new version available, please update)
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:587: error: Public
symbol string/upgrade_detail declared here is not defined.
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:688: error: Public
entry identifier 0x7f090129 entry index is larger than available symbols (index
297, total symbols 297).
L:\Users\YJ\Downloads\apktool\MiuiMusic\res\values \public.xml:688: error: Public
symbol string/url_debug_update declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, L:\Users\YJ\AppData\Local\Temp\APKT
OOL1164060080391540263.tmp, -I, L:\Users\YJ\apktool\framework\1.apk, -S, L:\User
s\YJ\Downloads\apktool\MiuiMusic\res, -M, L:\Users\YJ\Downloads\apktool\MiuiMusi
c\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib .java:301)
at brut.androlib.Androlib.buildResources(Androlib.jav a:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, L:\U
sers\YJ\AppData\Local\Temp\APKTOOL1164060080391540 263.tmp, -I, L:\Users\YJ\apkto
ol\framework\1.apk, -S, L:\Users\YJ\Downloads\apktool\MiuiMusic\res, -M, L:\User
s\YJ\Downloads\apktool\MiuiMusic\AndroidManifest.x ml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(An drolibResources.jav
a:191)
... 6 more
Anybody can give me help?
Using windows 7 to compile.
I am just assuming you didn't decompile using apktool, and using it only to recompile. And use latest apktool.
Sent from my LG-P500 using XDA Premium App
4silvertooth said:
I am just assuming you didn't decompile using apktool, and using it only to recompile. And use latest apktool.
Sent from my LG-P500 using XDA Premium App
Click to expand...
Click to collapse
omg thanks for replying. But the thing is that i'm using v1.4.1 of apktool. I did decompile. After decompiling, i edited the strings.xml file, and then recompiled
kongyujian said:
omg thanks for replying. But the thing is that i'm using v1.4.1 of apktool. I did decompile. After decompiling, i edited the strings.xml file, and then recompiled
Click to expand...
Click to collapse
You have not installed the apk tool correctly. Read the wiki on apktool site.
aapt path has to be set.
Sent from my LG-P500 using XDA Premium App
Oh i resolved it! =) Thanks for helping though!
The problem is that in the .xml file, i'm supposed to put a backslash before an apostrophe. E.g. Proxy's must be written as Proxy\'s
Thanks for helping! =) Hope to have helped others. =)
Ok nice.
Sent from my LG-P500 using XDA Premium App
kongyujian said:
Oh i resolved it! =) Thanks for helping though!
The problem is that in the .xml file, i'm supposed to put a backslash before an apostrophe. E.g. Proxy's must be written as Proxy\'s
Thanks for helping! =) Hope to have helped others. =)
Click to expand...
Click to collapse
So is the miui music app gonna be done soon?
Sent using LGE Xda Secret phone
Trying to learn how to sign the apk. =( no luck so far. Haha. probably tonight or tmr night. :\ i got an output apk file already. The only thing is it cannot install.
kongyujian said:
Trying to learn how to sign the apk. =( no luck so far. Haha. probably tonight or tmr night. :\ i got an output apk file already. The only thing is it cannot install.
Click to expand...
Click to collapse
Wad? I tht miui music u have to push system/app... It will not work by jus installing... Btw can u attach so i can test it...
Sent using LGE Xda Secret phone
Hi every one.
Today i found a link to a Chinese application Called StormPlayer and some peaple say that it is Coreplayer!
Also someone already made a topic about this app on XDA and users confimed it is not fake (showthread.php?t=1545299)
But the problem is its in chinese language;(....
I started discompiling it using ApkTool and then translate almost all strings but when i wanted to recompile it again,i found Apk tool didn't discompiled some XML files correctly(maybe it did)
I didn't change any Smali code or resource (but Strings.xml) file and im sure xml syntax is correct
Also some errors say that some strings didnt defined but they are all declared in public.xml and defined in strings.xml
Even when discompile/recompile original version without any mod it says this errors again.so the problem should be from apktool?
This is compile error that i get:
ERROR: this items declared but not defined :
(Full and original log is included to zip attachment...)
Code:
\storm\res\values\public.xml:217:Public symbol drawable/mybf_useful
\storm\res\values\public.xml:132:Public symbol drawable/myfile_goback_bg
\storm\res\values\public.xml:133:Public symbol drawable/myfile_goback_btn
\storm\res\values\public.xml:134:Public symbol drawable/myfile_title_bg
\storm\res\values\public.xml:135:Public symbol drawable/myfile_title_btn
\storm\res\values\public.xml:136:Public symbol drawable/offline_bg
\storm\res\values\public.xml:137:Public symbol drawable/offline_btn
\storm\res\values\public.xml:138:Public symbol drawable/old_umeng_analyse_write_feedback_normal
\storm\res\values\public.xml:139:Public symbol drawable/old_umeng_analyse_write_feedback_pressed
\storm\res\values\public.xml:218:Public symbol drawable/play_bg
\storm\res\values\public.xml:29:Public symbol drawable/play_button_bg
\storm\res\values\public.xml:140:Public symbol drawable/play_play_cycle
.
.
.
.
.
\storm\res\values\public.xml:321:Public symbol array/download_num
\storm\res\values\public.xml:315:Public symbol array/filelist_longclick_director_menu_items
\storm\res\values\public.xml:316:Public symbol array/filelist_longclick_file_menu_items
\storm\res\values\public.xml:317:Public symbol array/filelist_menu_addDirctory
\storm\res\values\public.xml:319:Public symbol array/palylist_menu_title2
\storm\res\values\public.xml:312:Public symbol array/playlist_longclick_menu_items
.
.
.
.
.
\storm\res\values\public.xml:816:Public symbol string/UMToast_IsUpdating
\storm\res\values\public.xml:812:Public symbol string/UMUpdateNow
\storm\res\values\public.xml:809:Public symbol string/UMUpdateTitle
\storm\res\values\public.xml:814:Public symbol string/UMUpdatingNow
\storm\res\values\public.xml:801:Public symbol string/UMViewFeedback
\storm\res\values\public.xml:798:Public symbol string/UMViewThread
\storm\res\values\public.xml:743:Public symbol string/add_to_playlist
\storm\res\values\public.xml:399:Public symbol string/antiSelect
\storm\res\values\public.xml:381:Public symbol string/app_name
\storm\res\values\public.xml:417:Public symbol string/basePlayer_audio
\storm\res\values\public.xml:419:Public symbol string/basePlayer_format
\storm\res\values\public.xml:418:Public symbol string/basePlayer_video
\storm\res\values\public.xml:390:Public symbol string/cancel
.
.
.
Apk Mirror:
Code:
crocko[dot]com/D6A746AD8A5846BAACFE8D1068454EEC/1924132330
I attached translated ,discompiled files.Please someone help to build first CorePlayer for android
+SORRY for my bad english
.
I also tryed Apk Multi-Tool and it had same problem.
+Good to know this program uses this modules:
libsplitter.so
libmad.so
libmpeg1.so
libmpeg4.so
libcodecwrapper.so
libaac.so
libac3.so
libamr.so
libasap.so
libcamera.so
libflac.so
libmatroska.so
libmikmod.so
libmpc.so
libspeex.so
libtemplate.so
libvorbishq.so
libvorbislq.so
libwavpack.so
libtta.so
libbhdserver.so
libstpserver.so
libstpclient.so
Im waiting for your Help,,,,,,,
XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
THIS IS ONLY FOR THEMERS AND MODERS
If Someone needs to add xperia S lockscreen to your MODED files
::::::::::::::::::::::::::::::::ANDROID.POLICY.JAR:::::::::::::::::::::::::::::::
First:::: Download This ::::http://www.mediafire.com/download.php?g35chi82ex5wou9
Then
DECOMPILE your android.policy.jar (After Deodexing them if odexed ) --- Using x10modtool or any other tool
Then
Copy the files from the downloaded RAR (above) to the decompiled folder /policy/impl and RECOMPILE
Thats your android.policy.jar
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
No NEED TO.ADD.ANYTHING.ANYWHERE SORRY
help
please tell me how to deodex android.policy.jar (x10moddtool cant)...
dex87xda said:
please tell me how to deodex android.policy.jar (x10moddtool cant)...
Click to expand...
Click to collapse
Use xultimate
Thank You,
Aeon
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
simplyjustkids said:
I can't download the apktool.jar which has plurals error fix, can you upload the file here?
EDIT: i had try both my default apktool.jar and a new one gotten from the google seach but both ended up with error when building the apk still :|
Click to expand...
Click to collapse
Explain the error, give a screen shot
Thank You,
Aeon
I post the log here ones I reach home. It's not a problem to decompile but recompile is an issue. I think it's my apk manager.
EDIT: logs are here
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:09:54.45|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\yourdog\AppData\Local\Temp\APKTOOL2279707019009041448.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
--------------------------------------------------------------------------
|Mon 16/07/2012 -- 21:11:04.77|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\yourdog\Desktop\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public entry identifier 0x104051c entry index is larger than available symbols (index 1308, total symbols 1308).
C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res\values\public.xml:7249: error: Public symbol string/permdesc_external_lockscreen declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java: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:\Users\yourdog\AppData\Local\Temp\APKTOOL7622665506179392662.tmp, -x, -S, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\res, -M, C:\Users\yourdog\Desktop\Apk Manager\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sent From My Sony Xperia Arc S
Like the compiler said, you didn't add lines in strings.xml, and the hex code you added was over, write hex in a way in continuation to the respective part in public.xml
Thank You,
Aeon
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
simplyjustkids said:
Wait you mean i forgot to add any one line mention above? or... i don't get it =[
Click to expand...
Click to collapse
1. You didn't add lines in strings.xml or manifest
2. You also set the hex codes wrong
3. You might have not installed framework files
Thank You,
Aeon
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
simplyjustkids said:
do you mean this part where i set the codes wrongly?
Add these to the end of string names in public.xml (/res/values/public.xml)
I did copy whatever that was posted above. =\
EDIT: I saw some post saying it only require the android policy jar to work as you don't really have to mod the framework apk file. True or?
Click to expand...
Click to collapse
Update : thanks man I really forgot to check that ,I will update every post
Thank You,
Aeon
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
Yes i think mate
sent from my Xperia Neo V Supercharged ICS 4.0.4
simplyjustkids said:
I had try what's mentioned above... but it's not working =|, could it be that the problem is that i'm running 4.0.3?
Click to expand...
Click to collapse
May be, and can you try it with an aosp multiwave framework-res and check it out
Thank You,
Aeon
multiwave framework? Which?
Sent From My Sony Xperia Arc S
simplyjustkids said:
multiwave framework? Which?
Sent From My Sony Xperia Arc S
Click to expand...
Click to collapse
I meant an ASOP framework files, no need I tried with Slide stock ics UN modified framework still it works
Thank You,
Aeon
The android.policy.jar file that i posted is what i did using your tutorial, is there anything wrong i did in there that make it not work?
After trying your android.policy.jar mod I am getting the lockscreen settings but no lockscreen. And editing framework-res.apk gives bootloop, as you mentioned earlier it needs editing androidmanifest.xml, but afaik editing it changes the signature of the apk.
I am using a lot of mods (including hansip87's) and I want to incorporate this mod too.
And I dont want to flash the rom.
Any help will be appreciated
what about mod for GB
AeonWorld said:
XPERIA ICS LOCKSCREEN TUTORIAL ............. Aeon
Click to expand...
Click to collapse
Please tutorial how to add lockscreen from SXS for 587 Xperia arc?
Okay, so I have my framework-res.apk pulled out and decompiled for the S4...
> http://www.overkillhq.com/downloads/tech/framework-res.apk
I have installed apktools and successfully decompiled the apk...
Code:
java -jar apktool.jar if framework-res.apk
java -jar apktool.jar d framework-res.apk
I back up the manifest/meta-inf and later copy it back when appropriate
I remove the following lines:
Code:
<string-array translatable="false" name="config_mobile_hotspot_provision_app">
<item>"com.samsung.spg"</item>
<item>"com.samsung.spg.NewSPGActivity"</item>
</string-array>
I then go to build and get the following:
Code:
C:\apktoolsJB>java -jar apktool.jar b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\apktoolsJB\framework-res\res\values\public.xml:5998: error: Public symbol array/config_mobile_hotspot_provision_app declared here is not defined.
C:\apktoolsJB\framework-res\res\values\public.xml:6050: error: Public entry identifier 0x1070056 entry index is larger than available symbols (index 86, total symbols 86).
C:\apktoolsJB\framework-res\res\values\public.xml:6050: error: Public symbol array/config_multiWindowHideFlashBarPackageList declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\ADMINI~1\AppData\Lo
cal\Temp\APKTOOL5619132064710751576.tmp, -x, -0, arsc, -S, C:\apktoolsJB\framework-res\res, -M, C:\apktoolsJB\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL5619132064710751576.tmp, -x, -0,
arsc, -S, C:\apktoolsJB\framework-res\res, -M, C:\apktoolsJB\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\ADMINI~1\AppData\Local\Temp\APKTOOL5619132064710751576.tmp, -x, -0, arsc, -S, C:\apktoolsJB\framework
-res\res, -M, C:\apktoolsJB\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
What should I do to get back on track?
We need to wait for a new apktool, it's a known problem at this point. I've managed to edit some java with smali/baksmali, but not yet resources. THere is some chatter over in the ATT S4 forum about someone that got it to compile.
[FIX] systemUI, framework-res, SecPhone compile error
Jeff
If you didn't develop it it doesn't belong in the development section.
Please watch the noob video it explains not to do just this and why. You will get more support if you ask in the correct section... Q and A
Sent from my Nexus 4 using xda premium
Other thread is similar but different:
This is for those having compiling issues with systemUI.apk and framework-res.apk and the error is a layout error. Here is what I did to fix it.
For example the error in framework-res that pops up: "@layout/keyguard_transport_control" which is in keyguard_screen_unlock_portrait.xml
Just change the line to "[email protected]/keyguard_transport_control"
Click to expand...
Click to collapse
If you get a layout error, stick a + in front of your @ and it will ward off compiling demons.
Also, I'm not sure what "wifi_watchdog_on" and "subscription_mode" do in our settings.db; anybody able to enlighten me on this?
What is widgetsoid doing to enable the built-in wifi with the toggle?!
Rushing said:
If you didn't develop it it doesn't belong in the development section.
Please watch the noob video it explains not to do just this and why. You will get more support if you ask in the correct section... Q and A
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Lesson learned. I apologize; I come from a forum that posts all root/advanced discussion in the development subthread, assumed this would be the same. Mods please move thread as you see fit =)
I went from scratch and found that if I followed another user's suggestion (cannot recall to give credit, 4:30 AM with a 6:30 wakeup time =/) in combination with the "+" trick, I got the APK to build with warnings about the translations:
Instead of removing all 4 lines, replace them with a single line:
Code:
<string-array translatable="false" name="config_mobile_hotspot_provision_app" />
Put @layout instead of @layout in 6 locations:
Code:
res\layout\keyguard_screen_password_landscape.xml
res\layout\keyguard_screen_password_portrait.xml
res\layout\keyguard_screen_tab_unlock.xml
res\layout\keyguard_screen_tab_unlock_land.xml
res\layout\keyguard_screen_unlock_landscape.xml
res\layout\keyguard_screen_unlock_portrait.xml
I'm scared to do it but I'm about to move this to my phone...wish me luck!
OverkillSD said:
Lesson learned. I apologize; I come from a forum that posts all root/advanced discussion in the development subthread, assumed this would be the same. Mods please move thread as you see fit =)
I went from scratch and found that if I followed another user's suggestion (cannot recall to give credit, 4:30 AM with a 6:30 wakeup time =/) in combination with the "+" trick, I got the APK to build with warnings about the translations:
Instead of removing all 4 lines, replace them with a single line:
Code:
<string-array translatable="false" name="config_mobile_hotspot_provision_app" />
Put @layout instead of @layout in 6 locations:
Code:
res\layout\keyguard_screen_password_landscape.xml
res\layout\keyguard_screen_password_portrait.xml
res\layout\keyguard_screen_tab_unlock.xml
res\layout\keyguard_screen_tab_unlock_land.xml
res\layout\keyguard_screen_unlock_landscape.xml
res\layout\keyguard_screen_unlock_portrait.xml
I'm scared to do it but I'm about to move this to my phone...wish me luck!
Click to expand...
Click to collapse
And now my phone is stuck at the verizon logo and ADB won't recognize it...can somebody link the thread I need to reference to fix this?
I'm at work right now (retail manager) and I need the phone tonight. This will be a lesson in playing with my phone when I'm tired and have things to do later ^_^
Thanks
Overkill
Can you get into download mode? If so use Odin to flash back to stock. That's what I would try. Its not bricked as you prolly know just need to wipe and flash with Odin the correct .tar for your verizon device.
Sent from my Nexus 4 using xda premium
Rushing said:
Can you get into download mode? If so use Odin to flash back to stock. That's what I would try. Its not bricked as you prolly know just need to wipe and flash with Odin the correct .tar for your verizon device.
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Yeah, I was able to download the tar and flash with Odin earlier in the day...thanks though!
OverkillSD said:
Yeah, I was able to download the tar and flash with Odin earlier in the day...thanks though!
Click to expand...
Click to collapse
good deal! Odin has saved me every time I mess up my Sammy =]
So I looked at the Odin file I downloaded; is there a way to JUST flash the system.img.ext4 file from the tarball i downloaded? I want to keep goofing around with this and maybe be the one to post a working hack xD
Thanks guys,
Overkill
Alrighty...
I installed CWRM so that I can use ADB if needed to push the original file back, great success!
Whenever I use a modified framework-res.apk, it seems to freeze at the verizon logo =(
I have now tried using the APK Multi-Tool and apktools to create the modded framework-res.apk
Expected: Free native hotspot, wootsauce!
Actual: Phone stops loading at the Verizon logo and stays there. I have to re-load the original APK and the phone boots fine.
Scott released in the dev section a mod for this.
Sent from my SCH-I545 using xda app-developers app
imablackhat said:
Scott released in the dev section a mod for this.
Sent from my SCH-I545 using xda app-developers app
Click to expand...
Click to collapse
Cool. I also figured out it was because I didn't wipe the [dalvik] cache (I wiped both, not sure which one did it).
Going to see about removing the E911 icon next...
I'm trying to build this on my device, but I have some problems during the building process. First of all, I synced the AOSP 4.3_r2.2 source tree. Then I copied the entire cornerstone codes (from branch v4.3_r2.2) into the source tree. Then I start to build.
First, I got a lot of errors like these:
Code:
frameworks/base/core/res/res/values/public.xml:244: error: Symbol 'config_bluetooth_adapter_quick_switch' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:1558: error: Symbol 'config_enableDreams' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:919: error: Symbol 'ic_suggestions_add' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:920: error: Symbol 'ic_suggestions_delete' declared with <java-symbol> not defined
...
After compared a lot, I found lots of missing symbols seems only in public.xml. If I were right, I think these symbols should be defined in somewhere else, then be added into public.xml. So I just removed these by restore the public.xml to unmodified (git checkout).
And then when I ran building again, I got the error like this:
Code:
frameworks/base/services/java/com/android/server/wm/DimAnimator.java:57: cannot find symbol
symbol : variable FX_SURFACE_DIM
location: class android.view.Surface
Surface.FX_SURFACE_DIM);
^
frameworks/base/services/java/com/android/server/wm/DimAnimator.java:54: internal error; cannot instantiate com.android.server.wm.WindowStateAnimator.SurfaceTrace.<init> at com.android.server.wm.WindowStateAnimator.SurfaceTrace to ()
mDimSurface = new WindowStateAnimator.SurfaceTrace(session, 0,
^
...
frameworks/base/services/java/com/android/server/wm/DimSurface.java:48: cannot find symbol
symbol : variable FX_SURFACE_DIM
location: class android.view.Surface
Surface.FX_SURFACE_DIM);
^
frameworks/base/services/java/com/android/server/wm/DimSurface.java:45: internal error; cannot instantiate com.android.server.wm.WindowStateAnimator.SurfaceTrace.<init> at com.android.server.wm.WindowStateAnimator.SurfaceTrace to ()
mDimSurface = new WindowStateAnimator.SurfaceTrace(session, 0,
^
...
By looked into the AOSP source, I found the Surface.FX_SURFACE_DIM should be SurfaceControl.FX_SURFACE_DIM, and the WindowStateAnimator.SurfaceTrace constructor's parameter number is different. So I wonder whether am I use the "right" source tree of AOSP? If not, which version should I sync? Since there are so many differences than the codes in cornerstone.
Thanks.
popoalex said:
I'm trying to build this on my device, but I have some problems during the building process. First of all, I synced the AOSP 4.3_r2.2 source tree. Then I copied the entire cornerstone codes (from branch v4.3_r2.2) into the source tree. Then I start to build.
First, I got a lot of errors like these:
Code:
frameworks/base/core/res/res/values/public.xml:244: error: Symbol 'config_bluetooth_adapter_quick_switch' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:1558: error: Symbol 'config_enableDreams' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:919: error: Symbol 'ic_suggestions_add' declared with <java-symbol> not defined
frameworks/base/core/res/res/values/public.xml:920: error: Symbol 'ic_suggestions_delete' declared with <java-symbol> not defined
...
After compared a lot, I found lots of missing symbols seems only in public.xml. If I were right, I think these symbols should be defined in somewhere else, then be added into public.xml. So I just removed these by restore the public.xml to unmodified (git checkout).
And then when I ran building again, I got the error like this:
Code:
frameworks/base/services/java/com/android/server/wm/DimAnimator.java:57: cannot find symbol
symbol : variable FX_SURFACE_DIM
location: class android.view.Surface
Surface.FX_SURFACE_DIM);
^
frameworks/base/services/java/com/android/server/wm/DimAnimator.java:54: internal error; cannot instantiate com.android.server.wm.WindowStateAnimator.SurfaceTrace.<init> at com.android.server.wm.WindowStateAnimator.SurfaceTrace to ()
mDimSurface = new WindowStateAnimator.SurfaceTrace(session, 0,
^
...
frameworks/base/services/java/com/android/server/wm/DimSurface.java:48: cannot find symbol
symbol : variable FX_SURFACE_DIM
location: class android.view.Surface
Surface.FX_SURFACE_DIM);
^
frameworks/base/services/java/com/android/server/wm/DimSurface.java:45: internal error; cannot instantiate com.android.server.wm.WindowStateAnimator.SurfaceTrace.<init> at com.android.server.wm.WindowStateAnimator.SurfaceTrace to ()
mDimSurface = new WindowStateAnimator.SurfaceTrace(session, 0,
^
...
By looked into the AOSP source, I found the Surface.FX_SURFACE_DIM should be SurfaceControl.FX_SURFACE_DIM, and the WindowStateAnimator.SurfaceTrace constructor's parameter number is different. So I wonder whether am I use the "right" source tree of AOSP? If not, which version should I sync? Since there are so many differences than the codes in cornerstone.
Thanks.
Click to expand...
Click to collapse
Finally resolved the problem, by did these:
1. Removed the symbol definition from public.xml;
2. Replaced android.view.Surface with android.view.SurfaceControl, and WindowManagerService.DEFAULT_DIM_DURATION with WindowAnimator.DEFAULT_DIM_DURATION.