Thanks, it worked and ADB is working fine now.
My goal is to prepare a EPubProd.apk in which is just removed the empty bookmark icon, following the instructions:
Quote:
Remove the Bookmark Icon
In the reader app, a bookmark icon is shown on every page to indicate the place that can be tapped to add a bookmark, which I find unnecessary and distracting. To get rid of it:
Replace the file res/drawable-nodpi-v4/dogear_image_passive.png with a fully transparent PNG image to hide the icon when RMSDK is being used (this can be done even without Apktool)
To remove the icon when Readium is being used, in the file res/values/strings.xml, edit the entry for ic_dogear to read:
<string name="ic_dogear"></string>
The place can still be tapped to add a bookmark, and the icon will still be shown on bookmarked pages.
|
So I extracted the official EPubProd.apk from official firmware image.
Then, to validate the pushing procedure via ADB, I gave a try of the following procedire and got the EPubProd.apk running:
Quote:
adb shell mount -o remount,rw /system
adb push EPubProd.apk /system/app/
adb shell chown root.root /system/app/EPubProd.apk
adb shell chmod 644 /system/app/EPubProd.apk
adb shell chcon u bject_r:system_file:s0 /system/app/EPubProd.apk
adb shell mount -o remount,ro /system
|
The repushed EPubProd.apk indeed starts. Let's now modify the EPubProd.apk.
I decoded this EPubProd.apk with command:
apktool d EPubProd.apk
Then I replaced the PNG and edited the strings.xml as explained above.
Then I built the new EPubProd.apk with command:
apktool b EPubProd
(where EPubProd is a folder containing the decoded files)
I then pushed this patched EPubProd.apk to the Tolino using ADB and restarted the device.
On screen, the 3 dots are running forever and the application is not starting.
What am I doing wrong? Should I sign the EPubProd.apk ?