Related
Im on mac osx and need to resign some swype keyboards that ive worked on...can anyone help?
ive seen some stuff on how to resign apk's but theyre for windows not mac
jxnrxy said:
Im on mac osx and need to resign some swype keyboards that ive worked on...can anyone help?
ive seen some stuff on how to resign apk's but theyre for windows not mac
Click to expand...
Click to collapse
pm sent.....
Why PM? let us all in on your fun.
Linux APK signing goodness mentioned here would be great too...
hoban_eris said:
Why PM? let us all in on your fun.
Linux APK signing goodness mentioned here would be great too...
Click to expand...
Click to collapse
i will if it work, or else y post instructions that might not work ???
T.C.P said:
pm sent.....
Click to expand...
Click to collapse
replied to pm
bump
so did it work? please tell us!
Code:
$ keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -validity 10000
$ jarsigner -verbose -keystore my-release-key.keystore my_application.apk alias_name
$ jarsigner -verify my_application.apk
replace my-release-key.keystore with whatever you want to call the keystore (mine is something line andrew.keystore)
replace alias_name with you alias (mine is andrew)
and replace my_application.apk with the application filename (swype.apk maybe?)
keytool and jarsigner are in the Java JDK
Warning From TheRomMistress:
8. Donations.
We appreciate all donations to xda-developers.com, it keeps our forum online and well maintained. As a user you're allowed to ask for donations in your signature as a thank you for your hard work. However donations up front are not allowed, this forum is about sharing, not about getting paid to do something, that's what your job is for.
Hello guys !!!
So I am endrix and I am trying to port the linux kernel to our Toshiba TG01. I am an h.264 developer who loves linux. Many of you may hate the phone (I do a little too) because of the crappy windows mobile operating system that Toshiba has offered us. Beside the resistive touch screen our phones have a strong processor that is used almost in each smartphone (ok Samsung and Apple are not using snapdragon but is still Cortex A8).
So to the main point!
Firstly is not an easy task and I do not somebody to write in this thread when Android will work with our phones, I truly do not know if I will (or we will) achieve this! Secondly think to contribute as you can to this project, I am here to guide you if you have any questions about how to compile the kernel and if you have any other problem just send me a message or write it in this thread!
My git repository of the TG01 kernel is this one
github.com/endrix/kernel_common
System compilers and libraries:
I used the one given by source.android.com
apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev.
certainly you do not need all of them but is ok to have it
So how can you compile the kernel?
Steps:
Use an Ubuntu Linux distribution or virtualise it with Virtualbox
I am using this cross tools: arm-2009q1-203-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2"
in my system I have created a directory in my /opt folder, to that just do "sudo mkdir /opt/cross"
Now go to the directory with "cd /opt/cross"
now rember where you have download the tar archieve and execute the following command, in this command i have downloaded my tar in /home/endrix/Download: so for my directory I do " tar xjvf /home/endrix/Downloads/gnueabi-i686-pc-linux-gnu.tar.bz2"
Now that we have our cross tools installed in our system is it good to create an eviromental varibale to easy our task of ceoss compiling. do this command "gedit ~/.bashrc" and at the end of the file put this line: export CROSS_TOOLS=/opt/cross/arm-2009q1/bin/arm-none-linux-gnueabi-
now execute this command "source ~/.bashrc" so that you command can be activated for the current command, the next time that you will open another console or reboot the varibale $CROSS_TOOLS will work
This is all for the cross tools
Next step Compile the linux kernel:
Create a directory for example "Projects" in your main directory(home), "mkdir ~/Projects"
Clone the repository of my git address: "git clone github.com/endrix/kernel_common.git"
Now you wait, take a coffe or eat a fruit
now you execute this command in the "kernel_common" directory, "make ARCH=arm htcleo_defconfig"
and then to compile the kernel" make ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
To make the process even faster if you have a multicore system, put -j4 (for 2 cores) or -j16 (if you have an intel iCore7 with 4 cores double threaded), that means, "make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image"
After a while depending you system you will get the kernel image file in the arch/arm/boot directory
So now you have the kernel compiled
Next step test the kernel with Haret:
1) Create the file default.txt with :
set mtype 2675
set ramaddr 0x11800000
set ramsize 0x18C00000
set kernel Image
boot
2)Download My modified version of Haret with TG01 support!
Haret for TG01
3)Create a folder in your sd card --> "ToshDroid and put the Image the haret.exe and the default.txt in it.
4) Finally execute the haret.ext and clik on run!
That's all folks! Now I am focusing in the Memory Map...
PS: sorry for links, As a junior member i cannot give a full url
I will update also my blog too for TG01
endri-bezati.blogspot.com
Hi endrix and welcome to xda-developers
I very much appreciate your work.. i've the same device.. it's a beautiful phone.. with a powerful hardware.. but windows mobile is not worthy of the hardware it runs on.. so we look forward for a release of android!
BTW.. i'd know what do you need to do your work.. can you make a list of thing that you need to accelerate your work? the first thing is compile android kernel.. but next? need you we post results? how we can fix the errors?
Sorry for my english but i'm italian.. and thank you.. hoping to see soon a first version of android..
Image Compiled without errors..
running haret it stops to "Jumping to kernel(custom). and freeze..
isikil87 : Ok! forgot something!
Do
1) make clean
2) git checkout android-msm-2.6.32-tg01
3) make ARCH=arm htcleo_defconfig
4) make -j4 ARCH=arm CROSS_COMPILE=$CROSS_TOOLS Image
actually I am working on the android-msm-2.6.32-tg01 branch
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.
now we need the right address to write memory.
Cool !
isikil87 said:
compiled successfully...
boot ok.
jump to image ok.
linux pic visible.ok.
now we need the right address to write memory.
Click to expand...
Click to collapse
Exactly, the framebuffer is wrong too i think the addresse in the msm_iomap is not correct
#define MSM_RAM_CONSOLE_BASE IOMEM(0xF8010000)
have you dump the memory???
dump ?
isikil87 said:
have you dump the memory???
Click to expand...
Click to collapse
I have run haret with "dump mmu" but is not easy to understand everything, I am really a beginner in this domain I am currently searching for documentation!
I am beginer too. How can I help?
Can you share with us that Image file?
The image file
TruckyBN said:
I am beginer too. How can I help?
Can you share with us that Image file?
Click to expand...
Click to collapse
It will not help you a lot but here is the compiled kernel
megaupload.com/?d=W027CS8P
this is interesting
http://htc-linux.org/wiki/index.php?title=Talk:Tg01
About the code
isikil87 said:
this is interesting
http://htc-linux.org/wiki/index.php?title=Talk:Tg01
Click to expand...
Click to collapse
Actually if you compare my modified code for the tg01 branch you will see that I have done the same modification (I was inspired by this pages too)!
endrix said:
It will not help you a lot but here is the compiled kernel
megaupload.com/?d=W027CS8P
Click to expand...
Click to collapse
Thanks for share.
I already to boot up. But error is (teminating haret due to unhandled exception pc=00017254)
please tell me how to config and boot it. thank so much.
best regard !
nhattuong said:
Thanks for share.
I already to boot up. But error is (teminating haret due to unhandled exception pc=00017254)
please tell me how to config and boot it. thank so much.
best regard !
Click to expand...
Click to collapse
have you downloaded the latest version of haret?
check it http://netripper.com/leo/haret-pre-0.5.3-20100914_124354.exe
isikil87 said:
have you downloaded the latest version of haret?
check it http://netripper.com/leo/haret-pre-0.5.3-20100914_124354.exe
Click to expand...
Click to collapse
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
nhattuong said:
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
Click to expand...
Click to collapse
that is only an alpha version. it doesn't boot up untill we have the right addresses of nand iomap ram ecc of the device.
regards
isikil87 said:
that is only an alpha version. it doesn't boot up untill we have the right addresses of nand iomap ram ecc of the device.
regards
Click to expand...
Click to collapse
oops ! I understand. Thanks.
Best Regard,
No questions about Android please, this thread is only for the kernel!!!
nhattuong said:
Thanks for share.
It is already to boot. But after 10 sec...auto reset.
Then hit HaRet App again...after 10 sec...device reset...
Please teach me more ! thank you very much !
P/S : Wich one Android Version you use ?
Best Regard !
Click to expand...
Click to collapse
For the moment the kernel has a problem because I have not figured out all the memory addresses and the reset is normal. Now you have to wait for a long time till we achieve to find the memory values. For android is another story if the kernel does not work correctly android will not work!
endrix said:
For the moment the kernel has a problem because I have not figured out all the memory addresses
Click to expand...
Click to collapse
how can we help in reading memory addresses? maybe there is a way that we all could divide work on many tg01 users?
endrix said:
For the moment the kernel has a problem because I have not figured out all the memory addresses and the reset is normal. Now you have to wait for a long time till we achieve to find the memory values. For android is another story if the kernel does not work correctly android will not work!
Click to expand...
Click to collapse
yeap ! i see. Thanks for your great works.
Does the initrd.gz need have permissions reset after unpacking and repacking???? I keep getting bootloops and im not sure what commands to run to set permissions. I use ubuntu any help would be greatly appreciated thanks!!!!!!!
I have the same problem, anyone can help?
You can try use Kitchen here:
http://forum.xda-developers.com/showthread.php?t=633246
blacksn said:
I have the same problem, anyone can help?
Click to expand...
Click to collapse
What commands are you using
The following command will do it for you
Code:
find .|cpio --quiet -H newc -o|gzip -9 -c - > ../initrd.gz
here is original initrd.gz from ROM and image that i want to put inside:
black.volyn.net/or.zip
here is the file i'm getting after command:
black.volyn.net/initrd.gz
(add http to links, i can't post links yet)
Image is changed, but the phone reboots when bootanimation must to start.
Can someone to pack me initrd.gz with image from archieve?
Try the link below
http://dl.dropbox.com/u/26430630/initrd.gz
Hopefully that will work for you
Thanks, works fine!
Which version of Linux did you use to make inird.gz?
blacksn said:
Thanks, works fine!
Which version of Linux did you use to make inird.gz?
Click to expand...
Click to collapse
I use sabayon, debian or ubuntu
The same command should work all linux machines
Hi all.
I'm attempting to make a simple change to the HD2 libs. I need to make a change to BoardConfig.mk, and hence recompile the lib sources.
So, I'm asking one of two things:
1) Could someone who has a build environment already set up make the change, and give me the compiled libs?
2) Could someone point me in the right direction for adapting this repo in order to run on the HD2, and then I'll make the changes myself?
There seems to be a fuzzy gap in terms of compiling Android for the HD2 from source. Hope I haven't missed anything.
Thanks for your time guys,
MrP.
Are you running Linux? Also what version of android are you wanting compiled? Sense, ice, miui, cm7, or gingerbread?? It may be possible to just use the kitchen to break down the rom and then make your changes and just rebuild with kitchen.
Edit. I just saw which report you wanted. Wouldn't rom have to be completely ported over to the hd2?
Sent from my HD2 using xda premium
kylew1212 said:
Are you running Linux? Also what version of android are you wanting compiled? Sense, ice, miui, cm7, or gingerbread?? It may be possible to just use the kitchen to break down the rom and then make your changes and just rebuild with kitchen.
Edit. I just saw which report you wanted. Wouldn't rom have to be completely ported over to the hd2?
Sent from my HD2 using xda premium
Click to expand...
Click to collapse
How do you break down already compiled ROMs ? and what kitchens are available ? yes im on linux
If you're running a linux distro with basic gnu core binutils, then it is a simple process
mkdir ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin -R
PATH=~/bin:$PATH
mkdir ~/android
cd ~/android
repo init -u <root link of the android project you will be building>
Code:
https://android.googlesource.com/platform/manifest is for AOSP
git://github.com/CyanogenMod/android.git is for Cyanogenmod
edit ~/android/android/default.xml to have the device vendor files as you provided in the list
Code:
Device files for cyanogenmod build
https://github.com/cmhtcleo/android_device_htc_leo
Vendor files for cyanogenmod build
https://github.com/cmhtcleo/android_vendor_htc_leo
repo sync -j16
Code:
The command above downloads the code of all the repositories mentioned in the
default.xml we edited earlier to your computer and should take some time.
<Edit/write stuff here>
cd ~/android
./build/envsetup.sh
./brunch <device code name> (ie. passion for nexusone, bravo for desire, leo for hd2)
If you want to just breakdown roms, change some libs from other rom and swap apks, make the rom lighter by deleting unrequired stuff, you need just winzip if you're experienced or "dsixda" android kitchen. (Google it)
Thanks for that advice Rick.
Maybe I should clarify exactly what I want compiled:
I'm not looking to compile to entire Android project for leo. What I essentially want is to make a change to the device files in the BoardConfig.mk, and then only recompile those, producing the hardware libs for the HD2. It doesn't have to be the sources linked, as I haven't been able to find vendor files for leo, however, you've given the link to the cmhtcleo repo. Would you be able to guide me on that?
Sorry to be a pain, but all in a learning process here. Thanks for all the help.
MrP.
MrPadie said:
Thanks for that advice Rick.
Maybe I should clarify exactly what I want compiled:
I'm not looking to compile to entire Android project for leo. What I essentially want is to make a change to the device files in the BoardConfig.mk, and then only recompile those, producing the hardware libs for the HD2. It doesn't have to be the sources linked, as I haven't been able to find vendor files for leo, however, you've given the link to the cmhtcleo repo. Would you be able to guide me on that?
Sorry to be a pain, but all in a learning process here. Thanks for all the help.
MrP.
Click to expand...
Click to collapse
If you use build/envsetup.sh, you can use some of the defined functions to build only a part of the tree. Use the 'mm' or 'mmm' commands to do this.
The 'mm' command makes stuff in the current directory (and sub-directories, I believe). With the 'mmm' command, you specify a directory or list of directories, and it builds those. However i am unsure if mmm has any further complexions or not but it still does require to have the complete android platform source code on your machine.
Rick,
Quick question. When I follow your beginning steps to compile android. I get the following error.
Code:
bash: syntax error near unexpected token `newline'
This is what I typed in :
Code:
[email protected]:~/android$ repo init -u <git://github.com/CyanogenMod/android.git>
Hope you still have your eye on this post.
Actually here is everything i've done in terminal. The reason it says file exists is because I've already tried this like 5 times..
Code:
[email protected]:~/android$ mkdir ~/bin
mkdir: cannot create directory `/home/kyle/bin': File exists
[email protected]:~/android$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 19933 100 19933 0 0 34392 0 --:--:-- --:--:-- --:--:-- 58283
[email protected]:~/android$ chmod a+x ~/bin -R
[email protected]:~/android$ PATH=~/bin:$PATH
[email protected]:~/android$ mkdir ~/android
mkdir: cannot create directory `/home/kyle/android': File exists
[email protected]:~/android$ cd ~/android
[email protected]:~/android$ repo init -u <https://android.googlesource.com/platform/manifest>
bash: syntax error near unexpected token `newline'
[email protected]:~/android$
Thanks,
Kyle
kylew1212 said:
Rick,
Quick question. When I follow your beginning steps to compile android. I get the following error.
Code:
bash: syntax error near unexpected token `newline'
This is what I typed in :
Code:
[email protected]:~/android$ repo init -u <git://github.com/CyanogenMod/android.git>
Hope you still have your eye on this post.
Thanks,
Kyle
Click to expand...
Click to collapse
Remove this "<>" from url.. try this:
Code:
repo init -u git://github.com/CyanogenMod/android.git
My suggestion: use -b gingerbread or -b ics not download all repository.. need more more disk space XD
Namaless said:
Remove this "<>" from url.. try this:
Code:
repo init -u git://github.com/CyanogenMod/android.git
My suggestion: use -b gingerbread or -b ics not download all repository.. need more more disk space XD
Click to expand...
Click to collapse
Thank you !
Question, what does -b mean?
kylew1212 said:
Thank you !
Question, what does -b mean?
Click to expand...
Click to collapse
Use this options for choose "branch" See: repo init --help for more informations or repo --help for complete informations.
Seeyou
Namaless said:
Use this options for choose "branch" See: repo init --help for more informations or repo --help for complete informations.
Seeyou
Click to expand...
Click to collapse
You're great! thanks so much!
When I'm editing the manifest, do I just add the extra repo's at the bottom, or what exactly??
kylew1212 said:
You're great! thanks so much!
When I'm editing the manifest, do I just add the extra repo's at the bottom, or what exactly??
Click to expand...
Click to collapse
No edit manifest but "default.xml" in the "manifests" directory.
I'm noob and not have more experience with compile cm9, but for a moment can help you
Namaless said:
No edit manifest but "default.xml" in the "manifests" directory.
I'm noob and not have more experience with compile cm9, but for a moment can help you
Click to expand...
Click to collapse
Sorry, I knew thats the file to edit, but do I need how do I get it to sync with cmthcleo's files?
You have been very helpful! Thanks
when trying to extract HyperDroid's ROM i get this following error :
Code:
Error: Cannot extract ROM!
Why notttt ????
elesbb said:
when trying to extract HyperDroid's ROM i get this following error :
Code:
Error: Cannot extract ROM!
Why notttt ????
Click to expand...
Click to collapse
What are you using to extract it?
kylew1212 said:
Sorry, I knew thats the file to edit, but do I need how do I get it to sync with cmthcleo's files?
You have been very helpful! Thanks
Click to expand...
Click to collapse
When you edited this file return in your android root directory and run repo sync again
---------- Post added at 02:14 AM ---------- Previous post was at 02:14 AM ----------
elesbb said:
when trying to extract HyperDroid's ROM i get this following error :
Code:
Error: Cannot extract ROM!
Why notttt ????
Click to expand...
Click to collapse
You are offtopic.. -.-''
Namaless said:
When you edited this file return in your android root directory and run repo sync again
---------- Post added at 02:14 AM ---------- Previous post was at 02:14 AM ----------
You are offtopic.. -.-''
Click to expand...
Click to collapse
I don't know what to edit? Do I delete the files within or just add the ones I need to the bottom of the list?
---------- Post added at 07:19 PM ---------- Previous post was at 07:16 PM ----------
elesbb said:
when trying to extract HyperDroid's ROM i get this following error :
Code:
Error: Cannot extract ROM!
Why notttt ????
Click to expand...
Click to collapse
Download the kitchen Here
Extract the kitchen somewhere
Open terminal Ctrl+Alt+T
Cd to wherever you extracted the Kitchen
once inside kitchen folder type ./menu
Then Kitchen Starts
option 1 to break down rom (something to do with working folder I don't remember exact name)
kylew1212 said:
I don't know what to edit? Do I delete the files within or just add the ones I need to the bottom of the list?
---------- Post added at 07:19 PM ---------- Previous post was at 07:16 PM ----------
Download the kitchen Here
Open terminal Ctrl+Alt+T
Cd to Kitchen
type ./menu
Then kitchen starts
option 1 to break down rom
Click to expand...
Click to collapse
That's what I do and I get that error ......, why would you even recommend tthat ? Lol
Sent from my GT-I9100 using Tapatalk
elesbb said:
That's what I do and I get that error ......, why would you even recommend tthat ? Lol
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Well.. That's how it's done lol... Idk whats wrong, possibly protected somehow? I know that you used to could require a password on zip files..
---------- Post added at 07:24 PM ---------- Previous post was at 07:23 PM ----------
If I can ever figure out all of this, I will write one hell of a guide for it!!
kylew1212 said:
I don't know what to edit? Do I delete the files within or just add the ones I need to the bottom of the list?
Click to expand...
Click to collapse
Add before
Code:
</manifest>
Here are a simple example: https://github.com/Namaless/android/commit/8699b22ac29506c98a0988fc47e68536b9e1edda
I have a Nook Simple Touch, BNRV300, and I have successfully modified uRamdisk to gain root shell access with ADB over USB (Thanks Renate!). I am currently on firmware version 1.2.1.
I know this may seem like heresy to some here, but I really do not want or need to root my NST and add a number of apps I won't use anyway. I have a fully rooted Nexus 7 for that sort of thing.
All I would like to be able to do is turn off the need to swipe to unlock when returning from sleep, and modify the text on the screensaver overlay.
I have discovered, by the way, that sqlite3 does not seem to be available on this NST, as when trying to use it via ADB shell, it says "sqlite3: not found".
SO, there we are... I would greatly appreciate any assistance offered.
MildBill
P.S. I have tried Nook Manager, and while it did what I wanted, there were many things added that I just have no need for. And, battery drain seemed to double.So, it had to go.
Regarding SQLite3.
Since the guts of it (libsqlite.so) is already in the Nook, you only need the command line executable (sqlite3).
It's here: http://forum.xda-developers.com/showthread.php?p=50958855#post50958855
Unzip it, stick it in /system/bin, chmod 755 it.
Renate NST said:
Regarding SQLite3.
Since the guts of it (libsqlite.so) is already in the Nook, you only need the command line executable (sqlite3).
It's here: http://forum.xda-developers.com/showthread.php?p=50958855#post50958855
Unzip it, stick it in /system/bin, chmod 755 it.
Click to expand...
Click to collapse
Ahh, once again, thank you Renate. Now if I can get some idea on my main questions...
There are no simple questions here. Even the answers are complicated.
Many people have created solutions and packed them into these "manager" things.
I finally got around to doing my own minimal one.
It's packaged up in nook121patch.zip (in the signature).
Code:
C:\>adb pull /system/framework/android.policy.jar
C:\>apktool d android.policy.jar \AP
C:\>mergesmali /v C:\AP\smali C:\Nook121Patch\KeyguardViewMediator.smali
C:\>apktool b C:\AP android.policy.jar
C:\>adb shell stop
C:\>adb mount -o rw,remount /dev/block/mmcblk0p5 /system
C:\>adb push android.policy.jar /system/framework/
C:\>adb shell chmod 644 /system/framework/android.policy.jar
C:\>adb shell reboot
Renate NST said:
There are no simple questions here. Even the answers are complicated.
Many people have created solutions and packed them into these "manager" things.
I finally got around to doing my own minimal one.
It's packaged up in nook121patch.zip (in the signature).
Click to expand...
Click to collapse
Well Renate, I hate to complicate your answer any more than necessary, but...
On the Temblast page that clicking on your signature takes me to, I do see mergesmali, one of the two tools I will need based on the instructions you gave. I do not see nook121patch.zip, nor apktool, however. Where can I find these?
Also, can you tell me something about what this will do for me?
I hate to be such a noob, I have just enough knowledge to be dangerous. Thanks again for all your help, sorry I have to keep asking for more.
MildBill
Well, I wasn't that clear.
mergesmali is in the signature, nook121patch.zip is on the mergesmali project page too.
Apktool is detailed and linked here: http://forum.xda-developers.com/wiki/Apktool
There are many patches in the nook121patch.zip
You can apply them selectively.
.jar is easy, they don't need signing.
.apk is trickier they must be signed.
System .apk is even trickier, they must be signed with the system signature.
The KeyguardViewMediator.smali will make that your Nook just opens with a push of the power button and no swipe.
Renate NST said:
Well, I wasn't that clear.
mergesmali is in the signature, nook121patch.zip is on the mergesmali project page too.
Apktool is detailed and linked here: http://forum.xda-developers.com/wiki/Apktool
Click to expand...
Click to collapse
Ahh! Well, my bad, I should have tried harder. And, yet again, thanks. Nook users owe you much, Renate!
MildBill
Renate NST said:
Code:
C:\>adb pull /system/framework/android.policy.jar
Click to expand...
Click to collapse
OK so far, and (I think) I have apktool properly installed, then realized I also needed to install the Java Development Kit as well to use it, which I managed to do. But, when I try to do
Code:
C:\>apktool d android.policy.jar \AP
I get
Code:
Input file (\AP) was not found or was not readable.
as a response.
So, I guess I need to return to the magic well of your knowledge for further assistance and/or instruction.
To which I can only add...
HELP!
EDIT: By the way, I am using an adb.exe implementation from another root kit I have installed, not the standard installation from the SDK. Is this perhaps part of my problem?
Well, something goofy is going on there.
Type just apktool and get the usage and version.
\AP in this case is the destination directory.
It should not already exist or else you get a warning.
Maybe the input file (the jar) can't be found, but the error message is wrong?
Code:
C:\>apktool
Apktool v1.5.2 - a tool for reengineering Android apk files
Copyright 2010 Ryszard Wi?niewski <[email protected]>
with smali v1.4.1, and baksmali v1.4.1
Code:
C:\>apktool d C:\nook121\system\framework\android.policy.jar \AP
I: Baksmaling...
I: Copying assets and libs...
Code:
C:\>apktool d C:\boguspath \BogusDir
Input file (C:\boguspath) was not found or was not readable.
Renate NST said:
Well, something goofy is going on there.
Type just apktool and get the usage and version.
Click to expand...
Click to collapse
Well, there ya go... I got apktool v2.0.0b9.
I can get 1.5.2, but will it work with Java 7? Oh well, live and learn I guess...
MildBill
Oh, well, then the 2.0 probably uses different args.
"apktool" by itself will tell you the order of arguments.
To run anything on the desktop the Java 7 runtime environment is fine.
To compile an Android application you have to use Java 6.0 SDK.
Renate NST said:
Oh, well, then the 2.0 probably uses different args.
"apktool" by itself will tell you the order of arguments.
To run anything on the desktop the Java 7 runtime environment is fine.
To compile an Android application you have to use Java 6.0 SDK.
Click to expand...
Click to collapse
Well then, since it appears from the changes that 2.0 requires the Java 7 SDK, I guess I'll uninstall it all and get 1.5.2 and Java 6.
I'm running desktop applications:
Code:
C:\>java.exe -version
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)
I'm compiling Android applications with:
Code:
C:\>javac.exe -version
javac 1.6.0_38-ea
apktool runs under the JRE, version 1.7 is fine.
OK, finally got around to completing the instructions as posted, and except for having to add the command 'shell' to the mount statement, everything worked fine. And, it accomplishes exactly what I was after.
Next I may look into trying your library and reader apps.
Thanks again!
MildBill
P.S. You might consider rewriting the readme file included in nook121patch.zip to better describe what each patch does.
The readme is admittedly very old.
That's because I forgot that it's even there!
Each of the individual smali files has comments at the head saying what it does.
I'll make something to compile the individual comments into a single readme.
I can also report, at this point, that unlike an other method I have tried to accomplish this simple task, this one does NOT run thru battery life like it was going out of style.
The next most popular option, NookManager, which uses the NookModManager to do this fix, uses an average of 10% battery life every day, even when in in sleep mode the whole time. Turning the option off (I.E. reinstating the swipe to unlock) again reduces battery drain to a more normal point.
But, the fix by Renate seems to use nomorebattery than the stock reader, whether reading, sleeping, with WiFi on or off. I like it!
Once again, Renate, thank you very much for this, and for all you have done for the Nook community.
MildBill