Maybe a guide on customizing home button(AppLauncher)? #11

Closed
opened 2018-11-22 00:42:00 -08:00 by Antiparadox · 41 comments
Antiparadox commented 2018-11-22 00:42:00 -08:00 (Migrated from github.com)

Since we can evoke su in adb, could we somehow manipulate with the AppLauncher to include more functionalities?
I am thinking about recreating the TAObao version of the home screen, say, adding a browser, or a general app catalog, etc.
It would be nice to have these additional features, since we've come so far.
Thanks!

Since we can evoke su in adb, could we somehow manipulate with the AppLauncher to include more functionalities? I am thinking about recreating the TAObao version of the home screen, say, adding a browser, or a general app catalog, etc. It would be nice to have these additional features, since we've come so far. Thanks!
sisyphose commented 2018-11-23 03:55:58 -08:00 (Migrated from github.com)

yes,the would be a wonderful feather

yes,the would be a wonderful feather
HappyZ commented 2018-11-27 23:38:59 -08:00 (Migrated from github.com)

There is a non-trivial way to customize the home button, as I added in README.md. I suspect taobao wrote their own Launcher that mimics the stock one, as the stock launcher does not have categories.

Ideally we need an app that automates all these.. but for now I get no time to implement it.

There is a non-trivial way to customize the home button, as I added in README.md. I suspect taobao wrote their own Launcher that mimics the stock one, as the stock launcher does not have categories. Ideally we need an app that automates all these.. but for now I get no time to implement it.
Antiparadox commented 2018-11-28 08:12:18 -08:00 (Migrated from github.com)

Unfortunately I encounter AppLauncher Crash when I install shortcut of Android Settings and Browser into the home screen., using the fixed provided
I have tried remove these two extra folders from dp-extension path, but it still crashes after I reboot the system.
Any idea what the issue might be?
Many thanks!

Unfortunately I encounter AppLauncher Crash when I install shortcut of Android Settings and Browser into the home screen., using the fixed provided I have tried remove these two extra folders from dp-extension path, but it still crashes after I reboot the system. Any idea what the issue might be? Many thanks!
HappyZ commented 2018-11-28 14:46:43 -08:00 (Migrated from github.com)

can you post what adb logcat says about applauncher?

can you post what `adb logcat` says about applauncher?
cypresstwist commented 2018-12-02 05:27:29 -08:00 (Migrated from github.com)

First of all - this is amazing work you guys are doing here.
Secondly - to be on point - some pictures of a modified menu would be of great value. And of a 3rd party Android app running on the device (maybe an EPUB reader or - I would love to see that - Mendeley Desktop?).

First of all - this is amazing work you guys are doing here. Secondly - to be on point - some pictures of a modified menu would be of great value. And of a 3rd party Android app running on the device (maybe an EPUB reader or - I would love to see that - Mendeley Desktop?).
JacobJacob commented 2018-12-02 19:52:02 -08:00 (Migrated from github.com)

Unfortunately AppLauncher has stopped. my DPT-CP1 also crashed after i added a shorcut of android settings.

Unfortunately AppLauncher has stopped. my DPT-CP1 also crashed after i added a shorcut of android settings.
JacobJacob commented 2018-12-02 19:57:46 -08:00 (Migrated from github.com)

Unfortunately AppLauncher has stopped. my DPT-CP1 also crashed after i added a shorcut of android settings.

i tried to recovery the system image via DTG mode with the bakup of boot.img , the AppLauncher also crashed when reboot.

any guys could help to resolve this issue ? Thanks.

> Unfortunately AppLauncher has stopped. my DPT-CP1 also crashed after i added a shorcut of android settings. i tried to recovery the system image via DTG mode with the bakup of boot.img , the AppLauncher also crashed when reboot. any guys could help to resolve this issue ? Thanks.
Antiparadox commented 2018-12-02 20:28:41 -08:00 (Migrated from github.com)

you have to reinitialize the DPT in order to recover, this is the only way.
First, make sure that you backup all your files in your PC,
then, run:
adb shell am start -a com.sony.capas.setting.intent.action.SETTINGS_TOP
This will evoke settings for you
Then, under Device settings, reinitialize the DPT,
Hope this will help

you have to reinitialize the DPT in order to recover, this is the only way. First, make sure that you backup all your files in your PC, then, run: adb shell am start -a com.sony.capas.setting.intent.action.SETTINGS_TOP This will evoke settings for you Then, under Device settings, reinitialize the DPT, Hope this will help
JacobJacob commented 2018-12-02 20:46:40 -08:00 (Migrated from github.com)

you have to reinitialize the DPT in order to recover, this is the only way.
First, make sure that you backup all your files in your PC,
then, run:
adb shell am start -a com.sony.capas.setting.intent.action.SETTINGS_TOP
This will evoke settings for you
Then, under Device settings, reinitialize the DPT,
Hope this will help

Thanks Antiparadox, the reset function of DPT system can't work.
i'm trying flash system.img following this guide : https://github.com/HappyZ/dpt-tools/issues/14
hope the home applauncher will come back.

> you have to reinitialize the DPT in order to recover, this is the only way. > First, make sure that you backup all your files in your PC, > then, run: > adb shell am start -a com.sony.capas.setting.intent.action.SETTINGS_TOP > This will evoke settings for you > Then, under Device settings, reinitialize the DPT, > Hope this will help Thanks Antiparadox, the reset function of DPT system can't work. i'm trying flash system.img following this guide : https://github.com/HappyZ/dpt-tools/issues/14 hope the home applauncher will come back.
JacobJacob commented 2018-12-02 20:51:53 -08:00 (Migrated from github.com)

it's so confusing , the issue still is here .

it's so confusing , the issue still is here .
Antiparadox commented 2018-12-02 20:54:31 -08:00 (Migrated from github.com)

flash system would not work, since all your modification remains in cache.
Could you explain what you did to dp_extensions?

flash system would not work, since all your modification remains in cache. Could you explain what you did to dp_extensions?
Antiparadox commented 2018-12-02 20:57:41 -08:00 (Migrated from github.com)

Also, try to go to Android settings:
adb shell am start -a android.settings.SETTINGS
then clear all cache.
If the issue is still there, try sent me a cap of log cat app launcher.apk, this would probably reveal something suspicious

Also, try to go to Android settings: adb shell am start -a android.settings.SETTINGS then clear all cache. If the issue is still there, try sent me a cap of log cat app launcher.apk, this would probably reveal something suspicious
JacobJacob commented 2018-12-02 21:05:00 -08:00 (Migrated from github.com)

I modified a new icon for android setting function via URI which could be launched in CMD ADB following guide. And pull the folder dp_extensions to my local Mac. That’s all, reboot and crashed.

I modified a new icon for android setting function via URI which could be launched in CMD ADB following guide. And pull the folder dp_extensions to my local Mac. That’s all, reboot and crashed.
JacobJacob commented 2018-12-02 21:06:30 -08:00 (Migrated from github.com)

Maybe I can’t use ADB since i’ve update boot.img morning.

Maybe I can’t use ADB since i’ve update boot.img morning.
Antiparadox commented 2018-12-02 21:11:30 -08:00 (Migrated from github.com)

Have you tried reinitialized DPT already? This is how I get rid of this issue.
could you post contents of the modified .xml file?

Have you tried reinitialized DPT already? This is how I get rid of this issue. could you post contents of the modified .xml file?
JacobJacob commented 2018-12-02 21:18:53 -08:00 (Migrated from github.com)

Ive tried reset function in Android stetting before flash boot.img and system.img.
And insert the reset button besides power.
Later I submit the xml.

Ive tried reset function in Android stetting before flash boot.img and system.img. And insert the reset button besides power. Later I submit the xml.
Antiparadox commented 2018-12-02 21:21:45 -08:00 (Migrated from github.com)

TO clarify, reset in Android settings won't work, since the original Sony is untouched.
Did you reinitialize DPT in Sony DPT settings? (The settings menu that come with Sony software)

TO clarify, reset in Android settings won't work, since the original Sony is untouched. Did you reinitialize DPT in Sony DPT settings? (The settings menu that come with Sony software)
que01 commented 2018-12-02 21:22:28 -08:00 (Migrated from github.com)

Also, try to go to Android settings:
adb shell am start -a android.settings.SETTINGS
then clear all cache.
If the issue is still there, try sent me a cap of log cat app launcher.apk, this would probably reveal something suspicious

My situation is the same as him @JacobJacob . I tried this method but it didn't work.

> Also, try to go to Android settings: > adb shell am start -a android.settings.SETTINGS > then clear all cache. > If the issue is still there, try sent me a cap of log cat app launcher.apk, this would probably reveal something suspicious My situation is the same as him @JacobJacob . I tried this method but it didn't work.
HappyZ commented 2018-12-02 21:39:18 -08:00 (Migrated from github.com)

thanks @Antiparadox for helping.

and @JacobJacob @que01, flashing system.img does not work because it remains the cache of that app state in user data. You have to do a hard reset from initialize digital paper in Sony's DPT settings. It will reformat all user data.

But if you want to wait a bit till next weekend, I shall be able to find where the cache is and fix this without wiping out the entire system.

thanks @Antiparadox for helping. and @JacobJacob @que01, flashing `system.img` does not work because it remains the cache of that app state in user data. You have to do a hard reset from `initialize digital paper` in Sony's `DPT settings`. It will reformat all user data. But if you want to wait a bit till next weekend, I shall be able to find where the cache is and fix this without wiping out the entire system.
JacobJacob commented 2018-12-02 21:47:04 -08:00 (Migrated from github.com)

thanks @Antiparadox for helping.

and @JacobJacob @que01, flashing system.img does not work because it remains the cache of that app state in user data. You have to do a hard reset from initialize digital paper in Sony's DPT settings. It will reformat all user data.

But if you want to wait a bit till next weekend, I shall be able to find where the cache is and fix this without wiping out the entire system.

Many thanks @HappyZ , @Antiparadox for your all reply.

i found i can't access Sony's DPT settings since the Applauncher crashed. and so far i lost the ADB shell bcz i've flash a bakup of boot.img. maybe i should flash a boot.img with ADB shell.

here is my xml for your review:
`

`
> thanks @Antiparadox for helping. > > and @JacobJacob @que01, flashing `system.img` does not work because it remains the cache of that app state in user data. You have to do a hard reset from `initialize digital paper` in Sony's `DPT settings`. It will reformat all user data. > > But if you want to wait a bit till next weekend, I shall be able to find where the cache is and fix this without wiping out the entire system. Many thanks @HappyZ , @Antiparadox for your all reply. i found i can't access Sony's DPT settings since the Applauncher crashed. and so far i lost the ADB shell bcz i've flash a bakup of boot.img. maybe i should flash a boot.img with ADB shell. here is my xml for your review: `<?xml version="1.0" encoding="utf-8"?> <Application name="AndroidSetting" type="System" version="1"> <LauncherEntry name="AndroidSetting" category="Launcher" uri="intent:#Intent;component=com.android.settings/.Settings;end" string="STR_ICONMENU_9999" icon="ic_homemenu_androidsetting.png" order="999"/> </Application> `
JacobJacob commented 2018-12-02 21:51:58 -08:00 (Migrated from github.com)

xmlcapture

![xmlcapture](https://user-images.githubusercontent.com/7627796/49355447-96fda280-f702-11e8-9a39-c954c58e23c9.PNG)
que01 commented 2018-12-02 21:53:07 -08:00 (Migrated from github.com)

initialize digital paper in Sony's DPT settings
it can't work

>`initialize digital paper` in Sony's `DPT settings` it can't work
JacobJacob commented 2018-12-02 21:57:17 -08:00 (Migrated from github.com)

So, any ideas for me to wipe ALL current configurations of DPT system , Guys?

So, any ideas for me to wipe ALL current configurations of DPT system , Guys?
HappyZ commented 2018-12-02 21:58:42 -08:00 (Migrated from github.com)

initialize digital paper in Sony's DPT settings
it can't work

Did you remove the folders you added and then do the reset?

FYI, while helping Antiparadox, I also asked Antiparadox to do the following before the reset:

  1. Go to Android settings (via adb), and open Apps and clear the cache for AppLauncher.
  2. And clear dalvik-cache of the system: (in adb sudo)
cd /data/dalvik-cache/
rm *
reboot
> > `initialize digital paper` in Sony's `DPT settings` > > it can't work Did you remove the folders you added and then do the reset? FYI, while helping Antiparadox, I also asked Antiparadox to do the following before the reset: 1. Go to Android settings (via adb), and open `Apps` and clear the cache for AppLauncher. 2. And clear `dalvik-cache` of the system: (in adb sudo) ``` cd /data/dalvik-cache/ rm * reboot ```
HappyZ commented 2018-12-02 22:04:10 -08:00 (Migrated from github.com)

This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend.

This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend.
JacobJacob commented 2018-12-02 22:09:14 -08:00 (Migrated from github.com)

This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend.

Thanks a lot @HappyZ , let me know you email address for zip sending and if you need other logs of current devices.

> This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend. Thanks a lot @HappyZ , let me know you email address for zip sending and if you need other logs of current devices.
HappyZ commented 2018-12-02 22:13:17 -08:00 (Migrated from github.com)

This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend.

Thanks a lot @HappyZ , let me know you email address for zip sending and if you need other logs of current devices.

use yz@9pm.me

> > This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend. > > Thanks a lot @HappyZ , let me know you email address for zip sending and if you need other logs of current devices. use yz@9pm.me
que01 commented 2018-12-02 22:17:13 -08:00 (Migrated from github.com)

This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend.

It seems to be because I run command chmod 0644 * in /etc/dp_extensions/ ? how to fix it ?

> This issue is weird to me as I can't reproduce what happened to you all. If you have the folder that causes this malfunction, can you zip it and send it to me so I can try it? I modified many times that crash the ExtensionManagerService but once I changed it back it's working fine.. I'll have more time to dig more next weekend. It seems to be because I run command `chmod 0644 *` in /etc/dp_extensions/ ? how to fix it ?
HappyZ commented 2018-12-02 22:19:46 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`.
que01 commented 2018-12-02 22:22:28 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

> Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. ........it work!..........please update the readme.md!!!!
JacobJacob commented 2018-12-02 22:23:14 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

cool !

> > Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. > > ........it work!..........please update the readme.md!!!! cool !
HappyZ commented 2018-12-02 22:23:23 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

cheers! I have added to readme.md one more line of cd MyTemplate

> > Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. > > ........it work!..........please update the readme.md!!!! cheers! I have added to readme.md one more line of `cd MyTemplate`
que01 commented 2018-12-02 22:25:13 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

cheers! I have added to readme.md one more line of cd MyTemplate

Very thanks for you . and hope everyone could avoid this problem

> > > Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. > > > > > > ........it work!..........please update the readme.md!!!! > > cheers! I have added to readme.md one more line of `cd MyTemplate` Very thanks for you . and hope everyone could avoid this problem
JacobJacob commented 2018-12-02 22:34:56 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

@que01 did you just change the permission of the MyTemplate folder ? i found i've delete this folder yesterday.

> > Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. > > ........it work!..........please update the readme.md!!!! @que01 did you just change the permission of the MyTemplate folder ? i found i've delete this folder yesterday.
JacobJacob commented 2018-12-02 22:38:47 -08:00 (Migrated from github.com)

although i've finished the flash process, the app installed yesterday , such as Kindle, is still in my DPT-CP1. so funny.

although i've finished the flash process, the app installed yesterday , such as Kindle, is still in my DPT-CP1. so funny.
que01 commented 2018-12-02 23:00:49 -08:00 (Migrated from github.com)

Possibly. You need to do chmod 0755 <folder/path> for all folders under /etc/dp_extensions/.

........it work!..........please update the readme.md!!!!

@que01 did you just change the permission of the MyTemplate folder ? i found i've delete this folder yesterday.

i deleted it , and run 'chmod 0644 * ' when the cwd is /etc/dp_extensions/.
and i just change the permission(755) for /etc/dp_extensions/* folder

> > > Possibly. You need to do `chmod 0755 <folder/path>` for all folders under `/etc/dp_extensions/`. > > > > > > ........it work!..........please update the readme.md!!!! > > @que01 did you just change the permission of the MyTemplate folder ? i found i've delete this folder yesterday. i deleted it , and run 'chmod 0644 * ' when the cwd is /etc/dp_extensions/. and i just change the permission(755) for **/etc/dp_extensions/*** folder
HappyZ commented 2018-12-02 23:37:24 -08:00 (Migrated from github.com)

I have found where the cache is that causes the un-recoverable issue. Will update README.md.

I have found where the `cache` is that causes the un-recoverable issue. Will update `README.md`.
JacobJacob commented 2018-12-02 23:40:44 -08:00 (Migrated from github.com)

My dpt-cp1 home Applauncher has come back from yesterday evening lost.
Thanks a lot for @Antiparadox @HappyZ @que01
As all your recommendations , i've done the following steps to solve this issue:
1, ADB shell, chmod 0755 /etc/dp_extensions/*
2, install a third party launcher app - nolauncher
3, with nolauncher , launch the function initialize digital paper in Sony's DPT settings

Thanks all your help.

My dpt-cp1 home Applauncher has come back from yesterday evening lost. Thanks a lot for @Antiparadox @HappyZ @que01 As all your recommendations , i've done the following steps to solve this issue: 1, ADB shell, chmod 0755 /etc/dp_extensions/* 2, install a third party launcher app - nolauncher 3, with nolauncher , launch the function initialize digital paper in Sony's DPT settings Thanks all your help.
JacobJacob commented 2018-12-03 07:30:22 -08:00 (Migrated from github.com)
screen shot 2018-12-03 at 23 29 56
<img width="563" alt="screen shot 2018-12-03 at 23 29 56" src="https://user-images.githubusercontent.com/7627796/49383292-5e39e980-f753-11e8-8c6d-7adad789d550.png">
cypresstwist commented 2018-12-03 08:03:25 -08:00 (Migrated from github.com)

Thank you JacobJacob. It looks amazing.

Thank you JacobJacob. It looks amazing.
DeeDive commented 2019-02-08 03:29:52 -08:00 (Migrated from github.com)

My dpt-cp1 home Applauncher has come back from yesterday evening lost.
Thanks a lot for @Antiparadox @HappyZ @que01
As all your recommendations , i've done the following steps to solve this issue:
1, ADB shell, chmod 0755 /etc/dp_extensions/*
2, install a third party launcher app - nolauncher
3, with nolauncher , launch the function initialize digital paper in Sony's DPT settings

Thanks all your help.

@JacobJacob Hi, how could u push your *.png file to the device? I use the command "adb root“ & ”adb remount" but it does not work. Error : read-only Thanks:)

> My dpt-cp1 home Applauncher has come back from yesterday evening lost. > Thanks a lot for @Antiparadox @HappyZ @que01 > As all your recommendations , i've done the following steps to solve this issue: > 1, ADB shell, chmod 0755 /etc/dp_extensions/* > 2, install a third party launcher app - nolauncher > 3, with nolauncher , launch the function initialize digital paper in Sony's DPT settings > > Thanks all your help. @JacobJacob Hi, how could u push your *.png file to the device? I use the command "adb root“ & ”adb remount" but it does not work. Error : read-only Thanks:)
Sign in to join this conversation.
No description provided.