Collection of how to multi dpi - guides - Galaxy Note II Themes and Apps

Hi.
I have been searching like mad to try and understand how the modding of stock apps works to get them working in multi dpi.
I am posting them here in case others can gain from them and i will be adding more once i get my own head around it.
Guides on APKTOOLS:
1. Guide on APKTOOLS - This is the newest guide i could find.
2. Gude on APKTOOLS - Another guide from the same user.
3. Guide on APKtools - This is a guide from 2012 and a little outdated tools wise.
4. ANDROID MULTITOOL - Best tool set i could find.
Guides and info on multi dpi:
1.Best guide - i could find for now.
2. Information - on multi dpi. - Supporting multiple screens on android
3. More Infomation - on multi dpi. - Multiple Screen Sizes With Processing for Android
If anyone has found and videos on this then please link them as it will help better understand rather then reading lots of confusing articles.

Nice work man:thumbup: keep it up
Sent from my GT-N7100 using xda premium

mannyvinny said:
Nice work man:thumbup: keep it up
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
What decompile tools do you use ?
I tried with both the Original Apktool & ICS Apktool.
I just tried to decompile and i got so many errors :
C:\>cd android
C:\android>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080131 drawable/btn_cab_done_default_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
C:\android>apktool d SecContacts.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78
0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
C:\android>apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources:
spec=0x01080131 drawable/btn_cab_done_default_holo_dark, config=-xhdpi
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165
)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
5)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:384)
at brut.androlib.Androlib.installFramework(Androlib.java:365)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
C:\android>apktool d SecContacts.apk
Destination directory (C:\android\SecContacts) already exists. Use -f switch if
you want to overwrite it.
C:\android>apktool d -f SecContacts.apk
I: Baksmaling...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Noesis\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
enabled, value=0x01110037
W: Could not decode attr value, using undecoded value instead: ns=android, name=
enabled, value=0x01110037
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030332
W: Could not decode attr value, using undecoded value instead: ns=android, name=
enabled, value=0x01110037
W: Could not decode attr value, using undecoded value instead: ns=android, name=
enabled, value=0x01110037
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x010806ba
W: Could not decode attr value, using undecoded value instead: ns=android, name=
drawable, value=0x010806b8
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080a12
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x010809fe
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080b3a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080b3a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080b3a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
background, value=0x01080b3a
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
widgetLayout, value=0x02030015
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
W: Could not decode attr value, using undecoded value instead: ns=android, name=
contentDescription, value=0x01040797
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
0x01110037
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.encodeAsResXmlValue(ResSc
alarValue.java:54)
at brut.androlib.res.data.value.ResScalarValue.serializeToResValuesXml(R
esScalarValue.java:71)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137
)
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:\android>

Great thread! Thanks!

greaat tnx!

Good work thank you.

Thanks
Zionator said:
Hi.
I have been searching like mad to try and understand how the modding of stock apps works to get them working in multi dpi.
I am posting them here in case others can gain from them and i will be adding more once i get my own head around it.
Guides on APKTOOLS:
1. Guide on APKTOOLS - This is the newest guide i could find.
2. Gude on APKTOOLS - Another guide from the same user.
3. Guide on APKtools - This is a guide from 2012 and a little outdated tools wise.
4. ANDROID MULTITOOL - Best tool set i could find.
Guides and info on multi dpi:
1.Best guide - i could find for now.
2. Information - on multi dpi. - Supporting multiple screens on android
3. More Infomation - on multi dpi. - Multiple Screen Sizes With Processing for Android
If anyone has found and videos on this then please link them as it will help better understand rather then reading lots of confusing articles.
Click to expand...
Click to collapse
Thanks man..!!
Keep up the good work.!!:D:good:

Zionator said:
Hi.
I have been searching like mad to try and understand how the modding of stock apps works to get them working in multi dpi.
I am posting them here in case others can gain from them and i will be adding more once i get my own head around it.
Guides on APKTOOLS:
1. Guide on APKTOOLS - This is the newest guide i could find.
2. Gude on APKTOOLS - Another guide from the same user.
3. Guide on APKtools - This is a guide from 2012 and a little outdated tools wise.
4. ANDROID MULTITOOL - Best tool set i could find.
Guides and info on multi dpi:
1.Best guide - i could find for now.
2. Information - on multi dpi. - Supporting multiple screens on android
3. More Infomation - on multi dpi. - Multiple Screen Sizes With Processing for Android
If anyone has found and videos on this then please link them as it will help better understand rather then reading lots of confusing articles.
Click to expand...
Click to collapse
smone pls tell me what is 240 dpi for my note 2? and is it gud/bad for note 2? and what is the current dpi on 4.3?

http://forum.xda-developers.com/showthread.php?t=2508625
vickyvc said:
smone pls tell me what is 240 dpi for my note 2? and is it gud/bad for note 2? and what is the current dpi on 4.3?
Click to expand...
Click to collapse
240 dpi makes the screen density smaller and looks so much better then stock dpi.
No it does no harm to u r phone.
4.3 is still stock.
If you wanna change it then use this link

Any chance to get multi dpi tw landscape or full tablet UI on 4.3?
Wysyłane z mojego GT-N7100 za pomocą Tapatalk 2

Related

Default LCD density

Does any one know the Default LCD density for the galaxy tab 10.1 as I changed it and I didn,t find option to get the default, it says unknown
Sent from my HTC HD2 using XDA App
Any one ?
Sent from my GT-P7500 using XDA App
Galaxy tab 10,1 = 1280 x 800
Sent from my GT-P7510 using xda premium
hoss_n2 said:
Does any one know the Default LCD density for the galaxy tab 10.1 as I changed it and I didn,t find option to get the default, it says unknown
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
If you're talking about the 'android' LCD Density ...
I think the default is 160.
wiffeltje said:
If you're talking about the 'android' LCD Density ...
I think the default is 160.
Click to expand...
Click to collapse
lol!
Yeah, he probably was. It did seem like an awfully easy question for this place.

Nfl livewallpaper .pkm file?

I was wondering what I could use to mod the nfl livewallpaper. The logos on the helmets and flags seem to be in an .pkm file.
Sent from my HTC ThunderBolt using XDA Premium App

[Q] How can I change the oom adj value on certain app by using init.d??

Recently I come across this adj value..I'm trying decrease it from -13 to -17 on android process acore and other app.. did I did anything wrong??
Sent from my Desire Z using xda app-developers app

What is the original DPI of the galaxy player

I want to change my resolution of the device to the original 800×480 resolution and I need to do that with the DPI so anyone know what is the the DPI?
Sent from my YP-G70 using Tapatalk 2
kfirbep said:
I want to change my resolution of the device to the original 800×480 resolution and I need to do that with the DPI so anyone know what is the the DPI?
Sent from my YP-G70 using Tapatalk 2
Click to expand...
Click to collapse
The 5.0 has stock dpi of 240
Mmmm-) said:
The 5.0 has stock dpi of 240
Click to expand...
Click to collapse
It's 240 too, here's the stock build.prop line
Code:
wifi.interface=tiwlan0
ro.sf.lcd_density=240
dalvik.vm.heapsize=64m
I know. Custom ROMs don't change your DPI. (unless you make them) Consider using 200, that's what I use.
Sent from my YP-G70 using xda app-developers app
If you use 213 (nexus 7 dpi) then you maintain play store compatibility
Sent from my YP-G70 running my PA 2.57.4 using xda app-developers app.
iurnait said:
If you use 213 (nexus 7 dpi) then you maintain play store compatibility
Sent from my YP-G70 running my PA 2.57.4 using xda app-developers app.
Click to expand...
Click to collapse
I have a galaxy player 4.0 running the linaro ics rom and I use a dpi of 120 + a modified services.jar to get tablet ui.
120 dpi is play store compatible.
I also recommend using the xposed framework + the app settings module if using ics/jb so you can do dpi settings on a per app basis which can let you choose what uia napp uses.
I believe you can use the app settings module to set the playstore to a compatible dpi, that way you maintain play store compatibility even though your system wide dpi may not be play store compatible.
Play store and all other apps run smoothly and well on 200 DPI for me.
Sent from my YP-G70 using xda app-developers app

[Q] DPI Value

I was wondering what the DPI value for the Galaxy S4 is. I changed it to 290 a while back and would like to go back.
Thank you!
240
Sent from my SCH-I545 using XDA Premium 4 mobile app
When I change the DPI it starts at 480
Default software DPI = 480. Actual hardware DPI = 440.
Sent from my SCH-I545 using Tapatalk 4

Categories

Resources