[Q] Help to compile APK - Galaxy Ace S5830 Q&A, Help & Troubleshooting

Sorry for my question but i have a big problem with my PC so i can't compile the apk inside the .rar in the attachment file...
Can someone compile it for me please?
Thanks in advance

G.Galante said:
Sorry for my question but i have a big problem with my PC so i can't compile the apk inside the .rar in the attachment file...
Can someone compile it for me please?
Thanks in advance
Click to expand...
Click to collapse
I pressed the thanks button by error somehow. I need the source apk file to compile it.

ImSoBored said:
I pressed the thanks button by error somehow. I need the source apk file to compile it.
Click to expand...
Click to collapse
I have added the original APK

Open apktool.yml
And under ids
-1 add -2
Then compile
Then it wont fc
Its lidroid framework app so make sure u add that - 2
And install framework res and twframework note:
Twframework not twframeworks
Sent from my ST25i using xda app-developers app

R: [Q] Help to compile APK
SpaceCaker said:
Open apktool.yml
And under ids
-1 add -2
Then compile
Then it wont fc
Its lidroid framework app so make sure u add that - 2
And install framework res and twframework note:
Twframework not twframeworks
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
The problemi si that my PC si not working
Sent from my GT-P3110 using xda app-developers app

G.Galante said:
The problemi si that my PC si not working
Sent from my GT-P3110 using xda app-developers app
Click to expand...
Click to collapse
How u decomplliled it then?
Sent from my ST25i using xda app-developers app

R: [Q] Help to compile APK
SpaceCaker said:
How u decomplliled it then?
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
With my PC! When it worked
Sent from my GT-P3110 using xda app-developers app

when recompiling I get an error messages:
Code:
[*] /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk
rebuilding /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk...
recompiling _INPUT_APK/twframeworks-res.apk.apk...
W: Could not find sources
I: Building resources...
/home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Can anybody help please?
Some errorr message recompiling under ubuntu12.04 64bit or win7 prof. 64bit.
Is it a problem, running that under a 64bit OS?

muelra said:
when recompiling I get an error messages:
Code:
[*] /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk
rebuilding /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk...
recompiling _INPUT_APK/twframeworks-res.apk.apk...
W: Could not find sources
I: Building resources...
/home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL4977741146867658710.tmp, -x, -I, /home/muelra/apktool/framework/1.apk, -S, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res, -M, /home/muelra/android-sdk-linux/platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Can anybody help please?
Some errorr message recompiling under ubuntu12.04 64bit or win7 prof. 64bit.
Is it a problem, running that under a 64bit OS?
Click to expand...
Click to collapse
platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Thats the error
Sent from my ST25i using xda app-developers app

SpaceCaker said:
platform-tools/XAutoAPKTool1.0.4/_INPUT_APK/twframeworks-res.apk/res/layout/power_widget_scrollview.xml:2: error: No resource identifier found for attribute 'overScrollMode' in package 'android'
Thats the error
Sent from my ST25i using xda app-developers app
Click to expand...
Click to collapse
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.

muelra said:
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.
Click to expand...
Click to collapse
It pretty much says what your error is and a bit how to solve
Sent from my ST25i using xda app-developers app

muelra said:
Thanks.
How can I resolve it? I decompiled the apk and than recompiled the folder.
Click to expand...
Click to collapse
I found it.
I edit inside power_widget_scrollview.xml the value
Code:
android:overScrollMode=
from "2" to "never"
and recompiled it.
I will send you the apk to PM.
Regards

Related

Platlogo [SOLVED]

Devs ... Wich File Contains Platlogo Text?
Thanks
Framework-res mostly..Maybe strings.XML,try checking it...
Insert witty sentence here
Prawesome said:
Framework-res mostly..Maybe strings.XML,try checking it...
Insert witty sentence here
Click to expand...
Click to collapse
I Also Thought of that but no!
Its in framework.jar and i have already done it
SnowPluralism said:
I Also Thought of that but no!
Its in framework.jar and i have already done it
Click to expand...
Click to collapse
Wich smali
I was right it was in smali
But wich one
Sent from my ST25i using xda premium
CoolCatGetHome said:
Wich smali
I was right it was in smali
But wich one
Sent from my ST25i using xda premium
Click to expand...
Click to collapse
U have to edit classes.dex on famework.jar
Its in android/internal/app/platlogo...
Sent from my GT-S5830 using xda premium
SnowPluralism said:
U have to edit classes.dex on famework.jar
Its in android/internal/app/platlogo...
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
1. Backup your current "framework.jar"
2.Open 'framework.jar' via 7zip
3. Extract the file "classes.dex"
4. goto this thread and download "AvaboxV2"
http://forum.xda-developers.com/showthread.php?t=709037
Follow instructions in the thread
5. put back the file to 'framework.jar' via 7zip

Need help editing settings.apk

Hey guys, the ICS styled settings.apk has an option "Launcher" which directs you to the home launcher settings directly.After exploring the XMLs I have found that we can change the home launcher app.But, I want to remove the option totally. I have tried editing .smali files too but in all seriousness, I have no idea what to edit. Any help would be appreciated.
Settings.apk/xml/settings.xml
find the launcher lines and delete
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Settings.apk/xml/settings.xml
find the launcher lines and delete
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I already tried that...There was a line related to Launcher_settings which had all info on which app to look for AND I deleted the line but No difference..
TJ_Ahluwalia said:
I already tried that...There was a line related to Launcher_settings which had all info on which app to look for AND I deleted the line but No difference..
Click to expand...
Click to collapse
There are 3 lines that are for it delete it
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
There are 3 lines that are for it delete it
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Of coures.. I deleted the 3 lines..I replaces resources.arsc and classes.dex after compiling..
TJ_Ahluwalia said:
Of coures.. I deleted the 3 lines..I replaces resources.arsc and classes.dex after compiling..
Click to expand...
Click to collapse
And you need to replace the res folder ofcourse
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
And you need to replace the res folder ofcourse
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Yes, after deleting lines in settings.xml I compile.Then replace res, resources.arsc and classes.desc.then i open the compiled settings.apk and replace the settings.xml with my modded one.I tried all methods but nothing work!
TJ_Ahluwalia said:
Yes, after deleting lines in settings.xml I compile.Then replace res, resources.arsc and classes.desc.then i open the compiled settings.apk and replace the settings.xml with my modded one.I tried all methods but nothing work!
Click to expand...
Click to collapse
Replace the archive settings.xml and edit strings.xml ubicated in res/values
Hey! I'm acctyaly looking for ics styled settings that HAVE this launcher option... Could you pleeease post a download link with these settings.apk!

APKManager errors

Im trying to decompile SystemUI.apk tried apktool and manager and both give a folder with some decompiled items in but also and error
Code:
C:\Users\Barbra\Desktop\apktool>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Barbra\Desktop\apktool> apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Barbra\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x010300a9
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x010300a9
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferen
ceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResRefe
renceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResSca
larValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:4
0)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlRe
sourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValu
e(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartT
ag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(Stati
cXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDe
coder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamD
ecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:1
00)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\Users\Barbra\Desktop\apktool>
Im trying to mod statusbar.xml from mindCr rom
here is the decompiled version of the .xml with my edit in
http://pastebin.com/S0zn9CWF
and here is the compled version from my phone
https://dl.dropbox.com/u/94731736/SystemUIapk.rar
please can someone help me
Good luck
Sent from my GT-S5830 using xda premium
K3vin71 said:
Good luck
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Sent from my GT-S5830i using xda premium
thanks i guess?
Are you not so genius enough to read a guide before doing it!
I recommend apkmanager
And before using the apkmanager
You have to paste SystemUI.apk and framework-res.apk on Others folder
You have to run Setup.bat
Choose option 2
Install SystemUI.apk and framework-res.apk
Then open Script.bat
Then Decompile
I just wanted to post Good Luck too
I followed 3 guides i have apk manager and this is there error i get with them all, ok then use the folder i give and see if you get the error too then mr so so bright.
Sent from my GT-S5830i using xda premium
PhaseCoder said:
I followed 3 guides i have apk manager and this is there error i get with them all, ok then use the folder i give and see if you get the error too then mr so so bright.
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Have you even read what I posted?
sorry posted from my phone just came across as cocky yes i am not so genius i am new to this im not a total noob tho.
So in the same folder were I normaly put SystemUI.apk also put ramework-res.apk
PhaseCoder said:
sorry posted from my phone just came across as cocky yes i am not so genius i am new to this im not a total noob tho.
So in the same folder were I normaly put SystemUI.apk also put ramework-res.apk
Click to expand...
Click to collapse
Yes
(I am in a big need of Thanks)
I can do it for you (tomorrow).
Sent from my GT-S5830i using xda premium
RubenStauttener said:
I can do it for you (tomorrow).
Sent from my GT-S5830i using xda premium
Click to expand...
Click to collapse
Thank you very much I really appreciate it.

[Q] [DEV] camera2.h problem

In file included from development/tools/emulator/system/camera/EmulatedCamera2.h:28:0,
from development/tools/emulator/system/camera/EmulatedFakeCamera2.h:26,
from development/tools/emulator/system/camera/EmulatedCameraFactory.cpp:28:
hardware/libhardware/include/hardware/camera2.h:112:39: error: 'HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED' was not declared in this scope
make: *** [/home/syafiq0408/slim/out/target/product/janice/obj/SHARED_LIBRARIES/camera.goldfish_intermediates/EmulatedCameraFactory.o] Error 1
make: *** Waiting for unfinished jobs....
Click to expand...
Click to collapse
can someone please help me.. i'm trying to build slim rom but during build, this error appear and i dont to how to deal with HAL_PIXEL_FORMAT_IMPLEMENTATION..
Grab the string from system/core/graphics.h and add it to the camera2.h file
Sent from my GT-I9070 using Tapatalk 4 Beta
Maybe you are missing the framework mods for camera hal, pixel format, vibrator, etc from github cause they don't sync automatically with a repo init and sync I guess unless you manually edit your default.xml in .repo folder
Sent from my GT-I9070 using xda app-developers app
Shaaan said:
Grab the string from system/core/graphics.h and add it to the camera2.h file
Sent from my GT-I9070 using Tapatalk 4 Beta
Click to expand...
Click to collapse
I will look into graphic.h and try as u suggested..thanks shaan
frapeti said:
Maybe you are missing the framework mods for camera hal, pixel format, vibrator, etc from github cause they don't sync automatically with a repo init and sync I guess unless you manually edit your default.xml in .repo folder
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
No2 i did not manually edit the default.xml..so what is your suggestion then?btw, i will try as shaan suggested and report back here..
Sent from my GT-I9070 using xda premium

[Q][DEV] building aokp error

The buidlding of aokp is not complete and this error appear..can any developer(s) help me..
using device-specific extensions in device/samsung/common
unable to load device-specific module; assuming none
Traceback (most recent call last):
File "./device/samsung/u8500-common/releasetools/u8500_ota_from_target_files", line 115, in <module>
main(sys.argv[1:])
File "/home/syafiq0408/aokp/build/tools/releasetools/ota_from_target_files", line 873, in main
WriteFullOTAPackage(input_zip, output_zip)
File "./device/samsung/u8500-common/releasetools/u8500_ota_from_target_files", line 63, in WriteFullOTAPackage
if OPTIONS.backuptool:
AttributeError: 'Options' object has no attribute 'backuptool'
make: *** [/home/syafiq0408/aokp/out/target/product/janice/aokp_janice-ota-eng.syafiq0408.zip] Error 1
[email protected]:~/aokp$
SOLVED
Does the syncing part work properly for you. I got some error.
Sent from my GT-I9070 using xda premium
Abhinandh Ajay said:
Does the syncing part work properly for you. I got some error.
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
yup! work nicely and about time to publish my first ever source-built rom..
Edit : and btw, what errors that you facing?
assassin0408 said:
yup! work nicely and about time to publish my first ever source-built rom..
Edit : and btw, what errors that you facing?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=43344115&postcount=26
I had posted it here quiet some time back
Abhinandh Ajay said:
http://forum.xda-developers.com/showpost.php?p=43344115&postcount=26
I had posted it here quiet some time back
Click to expand...
Click to collapse
try renaming your local_manifest to local_manifests
assassin0408 said:
try renaming your local_manifest to local_manifests
Click to expand...
Click to collapse
OK thanks and I see you have built AOKP from source. Nice
Sent from my GT-I9070 using xda premium

Categories

Resources